/* TruHue editorial layer — facelift part 4 (Nov 2026): the free tools.
   /score/, /dupe-finder/ (te-tool te-score / te-dupes), /olive-checker/ (te-olive),
   /compare/ (te-compare), /ingredient-checker/ (te-ingredients).
   Requires /css/truhue-editorial.css first; loaded AFTER each page's own <style>.
   Rules: chrome, type, buttons and cards go editorial. The tools' own verdict colors
   (YAY / OKAY / NAY cells, safety badges, match badges) are deliberately NOT touched,
   and no markup, script, form or link changes. */

/* ================= Shared tool chrome (score + dupe finder) ================= */
body.te-tool, body.te-olive, body.te-compare, body.te-ingredients { background: var(--te-ivory) !important; font-family: var(--te-sans) !important; color: var(--te-body); }
.te-tool .brand-bar { background: var(--te-ivory) !important; border-bottom: 1px solid var(--te-rule) !important; }
.te-tool .brand-bar a { color: var(--te-ink) !important; font-family: var(--te-serif) !important; font-weight: 500 !important; }
.te-tool .brand-bar .tagline { color: var(--te-muted) !important; font-family: var(--te-sans) !important; }
.te-tool .breadcrumb { font-family: var(--te-sans) !important; color: var(--te-muted) !important; }
.te-tool .breadcrumb a { color: var(--te-ink) !important; }
.te-tool .hero-intro { text-align: left !important; padding: 2.6rem 16px 1.4rem !important; }
.te-tool .hero-intro h1 { font-family: var(--te-serif) !important; font-optical-sizing: auto; font-weight: 500 !important; font-size: clamp(2.1rem, 4.6vw, 3.1rem) !important; line-height: 1.06 !important; letter-spacing: -0.015em; color: var(--te-ink) !important; text-wrap: balance; }
.te-tool .hero-intro p { font-family: var(--te-sans) !important; font-size: var(--te-size-lede) !important; color: var(--te-body) !important; margin: 0 !important; max-width: 38rem !important; line-height: 1.6 !important; }

/* Search, selects, inputs */
.te-tool .search-box { background: var(--te-ivory) !important; }
.te-tool .search-box input, .te-tool .season-selector select, .te-tool .email-capture input[type="email"] {
  font-family: var(--te-sans) !important; border: 1px solid var(--te-rule) !important; border-radius: var(--te-radius) !important; background-color: var(--te-paper) !important; color: var(--te-ink) !important; }
.te-tool .search-box input:focus, .te-tool .season-selector select:focus, .te-tool .email-capture input[type="email"]:focus { border-color: var(--te-ink) !important; outline: none; box-shadow: 0 0 0 3px var(--te-rose-soft) !important; }
.te-tool .season-selector label { font-family: var(--te-sans) !important; color: var(--te-ink) !important; }
.te-tool .season-selector .hint, .te-tool .search-meta, .te-tool .legend { color: var(--te-muted) !important; font-family: var(--te-sans) !important; }
.te-tool .season-selector .hint a { color: var(--te-ink) !important; text-decoration-color: var(--te-rose) !important; }
.te-tool .suggestion-chip { font-family: var(--te-sans) !important; background: transparent !important; color: var(--te-ink) !important; border: 1px solid var(--te-rule) !important; border-radius: var(--te-radius) !important; }
.te-tool .suggestion-chip:hover { border-color: var(--te-ink) !important; }
.te-tool .empty-state, .te-tool .empty-state p { color: var(--te-muted) !important; }

/* Result cards: paper on ivory, thin rule, no shadow (verdict cells inside keep their colors) */
.te-tool .product-card, .te-tool .source-product, .te-tool .dupe-card { background: var(--te-paper) !important; border: 1px solid var(--te-rule) !important; border-radius: var(--te-radius) !important; box-shadow: none !important; }
.te-tool .product-info h3, .te-tool .source-info h3, .te-tool .dupe-info h4 { font-family: var(--te-sans) !important; color: var(--te-ink) !important; }
.te-tool .product-info .shade, .te-tool .source-info .shade, .te-tool .dupe-info .shade { font-family: var(--te-serif) !important; font-weight: 500 !important; color: var(--te-ink) !important; }
.te-tool .product-info .meta, .te-tool .source-info .meta, .te-tool .dupe-info .meta { color: var(--te-muted) !important; }
.te-tool .score-explain { font-family: var(--te-sans) !important; color: var(--te-body) !important; }
.te-tool .pro-gate-overlay { background: var(--te-ivory-2) !important; border: 1px solid var(--te-rule) !important; border-radius: var(--te-radius) !important; }
.te-tool .pro-gate-overlay p { font-family: var(--te-sans) !important; color: var(--te-ink) !important; }
.te-tool .pro-gate-overlay .pro-btn, .te-tool .app-cta .btn, .te-tool .email-capture button {
  background: var(--te-ink) !important; color: var(--te-ivory) !important; border-radius: var(--te-radius) !important; font-family: var(--te-sans) !important; border: 1px solid var(--te-ink) !important; }
.te-tool .pro-gate-overlay .pro-btn:hover, .te-tool .app-cta .btn:hover, .te-tool .email-capture button:hover { background: var(--te-rose) !important; border-color: var(--te-rose) !important; color: #fff !important; }
.te-tool .shop-amazon { border-radius: var(--te-radius) !important; font-family: var(--te-sans) !important; }

/* Pro banner: ink band instead of a rose gradient */
.te-tool .pro-banner { background: var(--te-night) !important; }
.te-tool .pro-banner h2 { font-family: var(--te-serif) !important; font-weight: 500 !important; color: var(--te-ivory) !important; font-size: clamp(1.6rem, 3vw, 2rem) !important; }
.te-tool .pro-banner .subtitle, .te-tool .pro-banner .price { font-family: var(--te-sans) !important; color: rgba(250, 246, 240, 0.8) !important; opacity: 1 !important; }
.te-tool .pro-banner .feature { background: transparent !important; border: 1px solid rgba(250, 246, 240, 0.3); border-radius: var(--te-radius) !important; font-family: var(--te-sans) !important; }
.te-tool .pro-banner .pro-cta-btn { background: var(--te-ivory) !important; color: var(--te-ink) !important; border-radius: var(--te-radius) !important; font-family: var(--te-sans) !important; transform: none !important; }
.te-tool .pro-banner .pro-cta-btn:hover { background: #fff !important; }
.te-tool .pro-auth-bar { background: var(--te-night) !important; }

/* How it works, FAQ, app CTA, email, more tools */
.te-tool .how-it-works { background: transparent !important; border-top: 1px solid var(--te-rule) !important; text-align: left !important; }
.te-tool .how-it-works h2, .te-tool .faq-section h2, .te-tool .app-cta h2, .te-tool .tool-nav h2, .te-tool .email-capture h3 {
  font-family: var(--te-serif) !important; font-weight: 500 !important; color: var(--te-ink) !important; font-size: clamp(1.6rem, 3vw, 2.1rem) !important; text-align: left !important; }
.te-tool .steps-row { justify-content: flex-start !important; max-width: none !important; }
.te-tool .step { text-align: left; border-top: 1px solid var(--te-rule); padding-top: 0.9rem; }
.te-tool .step .num { background: transparent !important; color: var(--te-rose) !important; font-family: var(--te-serif) !important; font-style: italic; font-weight: 400 !important; width: auto !important; height: auto !important; line-height: 1 !important; font-size: 1.5rem !important; }
.te-tool .step h3 { font-family: var(--te-sans) !important; color: var(--te-ink) !important; }
.te-tool .step p, .te-tool .faq-answer, .te-tool .app-cta p, .te-tool .email-capture p, .te-tool .tool-card p { font-family: var(--te-sans) !important; color: var(--te-body) !important; }
.te-tool .faq-item { border: 0 !important; border-top: 1px solid var(--te-rule) !important; border-radius: 0 !important; margin: 0 !important; }
.te-tool .faq-item:last-of-type { border-bottom: 1px solid var(--te-rule) !important; }
.te-tool .faq-item summary { background: transparent !important; font-family: var(--te-serif) !important; font-weight: 500 !important; color: var(--te-ink) !important; padding: 1rem 0 !important; }
.te-tool .faq-item summary::after { color: var(--te-rose) !important; }
.te-tool .faq-answer { padding: 0 0 1rem !important; }
.te-tool .app-cta { background: var(--te-ivory-2) !important; border-top: 1px solid var(--te-rule) !important; border-bottom: 1px solid var(--te-rule); text-align: left !important; }
.te-tool .app-cta p { margin-left: 0 !important; }
.te-tool .email-capture { text-align: left !important; max-width: 700px !important; }
.te-tool .email-capture form { margin: 0 !important; }
.te-tool .tool-cards { gap: 0 2rem !important; border-top: 1px solid var(--te-ink); }
.te-tool .tool-card { background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--te-rule) !important; border-radius: 0 !important; text-align: left !important; padding: 1.1rem 0 !important; box-shadow: none !important; transform: none !important; }
.te-tool .tool-card .icon { display: none !important; }
.te-tool .tool-card h3 { font-family: var(--te-serif) !important; font-weight: 500 !important; font-size: 1.15rem !important; color: var(--te-ink) !important; }
.te-tool .tool-card:hover h3 { color: var(--te-rose) !important; }
.te-tool .site-footer { background: var(--te-night) !important; color: rgba(250, 246, 240, 0.75) !important; }
.te-tool .footer-col h4 { color: var(--te-ivory) !important; font-family: var(--te-sans) !important; }
.te-tool .footer-col a { color: rgba(250, 246, 240, 0.72) !important; font-family: var(--te-sans) !important; }
.te-tool .footer-col a:hover { color: var(--te-ivory) !important; }
.te-tool .footer-bottom { color: rgba(250, 246, 240, 0.6) !important; font-family: var(--te-sans) !important; border-top-color: rgba(250, 246, 240, 0.12) !important; }

/* Dupe finder specifics (match badges keep their colors) */
.te-dupes .autocomplete-list, .te-dupes #autocomplete { border-radius: var(--te-radius) !important; border-color: var(--te-rule) !important; box-shadow: 0 8px 24px rgba(30, 26, 23, 0.08) !important; }
.te-dupes .autocomplete-item .ac-brand { color: var(--te-muted) !important; }
.te-dupes .autocomplete-item .ac-name { color: var(--te-ink) !important; }
.te-dupes .source-actions .share-btn, .te-dupes .source-actions .clear-btn { border-radius: var(--te-radius) !important; font-family: var(--te-sans) !important; }
.te-dupes .source-actions .share-btn { border-color: var(--te-ink) !important; color: var(--te-ink) !important; background: transparent !important; }
.te-dupes .results-header { font-family: var(--te-serif) !important; font-weight: 500 !important; color: var(--te-ink) !important; }
.te-dupes .dupe-shop { background: var(--te-ink) !important; color: var(--te-ivory) !important; border-radius: var(--te-radius) !important; }
.te-dupes .dupe-shop:hover { background: var(--te-rose) !important; }
.te-dupes .badge-tier { border-radius: var(--te-radius) !important; }

/* One left edge for every section of the score + dupe finder pages */
.te-tool .how-it-works, .te-tool .faq-section, .te-tool .email-capture, .te-tool .tool-nav, .te-tool .app-cta, .te-tool .ftc-strip { max-width: 900px !important; margin-left: auto !important; margin-right: auto !important; padding-left: 16px !important; padding-right: 16px !important; }
.te-tool .faq-section, .te-tool .email-capture { margin-top: 0 !important; }
/* These pages carried two "More Free Tools" lists; keep the fuller site-wide one (it also lists the acne audit + olive checker) */
.te-tool .tool-nav { display: none !important; }

/* Site-wide "More Free Tools" strip (score, dupe finder, olive checker) */
.te-tool .ftc-strip, .te-olive .ftc-strip { background: transparent !important; border-top: 1px solid var(--te-rule) !important; text-align: left !important; }
.te-tool .ftc-strip h2, .te-olive .ftc-strip h2 { font-family: var(--te-serif) !important; font-weight: 500 !important; color: var(--te-ink) !important; font-size: clamp(1.6rem, 3vw, 2.1rem) !important; text-align: left !important; }
.te-tool .ftc-grid, .te-olive .ftc-grid { gap: 0 2rem !important; border-top: 1px solid var(--te-ink); }
.te-tool .ftc-card, .te-olive .ftc-card { background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--te-rule) !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important; text-align: left !important; padding: 1.1rem 0 !important; }
.te-tool .ftc-icon, .te-olive .ftc-icon { display: none !important; }
.te-tool .ftc-card h3, .te-olive .ftc-card h3 { font-family: var(--te-serif) !important; font-weight: 500 !important; font-size: 1.15rem !important; color: var(--te-ink) !important; }
.te-tool .ftc-card:hover h3, .te-olive .ftc-card:hover h3 { color: var(--te-rose) !important; }
.te-tool .ftc-card p, .te-olive .ftc-card p { font-family: var(--te-sans) !important; color: var(--te-body) !important; }

/* ================= /olive-checker/ — keeps its olive accent (its identity), editorial frame ================= */
.te-olive nav { background: rgba(250, 246, 240, 0.96) !important; border-bottom: 1px solid var(--te-rule) !important; }
.te-olive .logo { font-family: var(--te-serif) !important; font-weight: 500 !important; color: var(--te-ink) !important; }
.te-olive .nav-link { color: var(--te-ink) !important; border: 1px solid var(--te-ink); border-radius: var(--te-radius); padding: 0.35rem 0.9rem; }
.te-olive .nav-link:hover { background: var(--te-ink); color: var(--te-ivory) !important; }
.te-olive .hero-label { font-family: var(--te-sans); font-size: var(--te-size-label) !important; font-weight: 600 !important; letter-spacing: 0.16em !important; }
.te-olive .hero h1, .te-olive .whats-inside h2, .te-olive .gate-headline, .te-olive .picks-heading { font-family: var(--te-serif) !important; font-optical-sizing: auto; font-weight: 500 !important; color: var(--te-ink) !important; letter-spacing: -0.015em; text-wrap: balance; }
.te-olive .hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem) !important; line-height: 1.06 !important; }
.te-olive .hero h1 em { font-weight: 400 !important; }
.te-olive .hero-body, .te-olive .upload-zone p, .te-olive .consent-row, .te-olive .benefit p, .te-olive .result-notes, .te-olive .error-state p, .te-olive .used-state p, .te-olive .loading-state p { color: var(--te-body) !important; }
.te-olive .tool-card { border-radius: var(--te-radius) !important; box-shadow: none !important; border: 1px solid var(--te-rule) !important; background: var(--te-paper) !important; }
.te-olive .upload-zone { border-radius: var(--te-radius) !important; border-width: 1px !important; }
.te-olive .btn-primary, .te-olive .btn-secondary, .te-olive .pick-link, .te-olive .gate-overlay button, .te-olive .app-cta a { border-radius: var(--te-radius) !important; font-family: var(--te-sans) !important; transform: none !important; }
.te-olive .btn-primary:not(:disabled) { background: var(--te-ink) !important; }
.te-olive .btn-primary:hover:not(:disabled) { background: var(--te-rose) !important; }
.te-olive .gate-overlay input[type="email"] { border-radius: var(--te-radius) !important; border-width: 1px !important; }
.te-olive .result-badge { border-radius: var(--te-radius) !important; font-family: var(--te-serif) !important; font-weight: 500 !important; }
.te-olive .result-notes, .te-olive .pick-card { border-radius: var(--te-radius) !important; }
.te-olive .app-cta { background: var(--te-ivory-2) !important; border: 0 !important; border-top: 1px solid var(--te-rule) !important; border-bottom: 1px solid var(--te-rule) !important; border-radius: 0 !important; }
.te-olive .app-cta a { background: var(--te-ink) !important; }
.te-olive .whats-inside h2 { text-align: left !important; font-size: clamp(1.6rem, 3vw, 2.1rem) !important; }
.te-olive .benefits { gap: 0 2rem !important; border-top: 1px solid var(--te-ink); }
.te-olive .benefit { background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--te-rule) !important; border-radius: 0 !important; padding: 1.2rem 0 !important; }
.te-olive .benefit-icon { display: none !important; }
.te-olive .benefit h3 { font-family: var(--te-serif) !important; font-weight: 500 !important; color: var(--te-ink) !important; font-size: 1.2rem !important; }
.te-olive .whats-inside p a, .te-olive footer a { color: var(--te-ink) !important; text-decoration: underline; text-decoration-color: var(--te-rose); }
.te-olive footer { background: var(--te-ivory-2) !important; border-top: 1px solid var(--te-rule); }
.te-olive footer p { color: var(--te-body) !important; }

/* ================= /compare/ ================= */
body.te-compare { background: var(--te-ivory) !important; }
.te-compare .hero { background: var(--te-ivory) !important; border-bottom: 1px solid var(--te-rule); text-align: left !important; }
.te-compare .hero .eyebrow { font-family: var(--te-sans) !important; font-weight: 600 !important; letter-spacing: 0.16em !important; color: var(--te-rose) !important; }
.te-compare .hero h1 { font-family: var(--te-serif) !important; font-weight: 500 !important; color: var(--te-ink) !important; letter-spacing: -0.015em; text-wrap: balance; }
.te-compare .hero .subtitle { margin: 0 !important; color: var(--te-body) !important; font-size: var(--te-size-lede) !important; }
.te-compare section h2 { font-family: var(--te-serif) !important; font-weight: 500 !important; color: var(--te-ink) !important; }
.te-compare section h3 { font-family: var(--te-serif) !important; font-weight: 500 !important; color: var(--te-ink) !important; }
.te-compare p { color: var(--te-body) !important; font-size: 1rem !important; }
.te-compare .comparison-table-wrap { border-radius: var(--te-radius) !important; border-color: var(--te-rule) !important; }
.te-compare .comparison-table thead th, .te-compare .comparison-table thead th:first-child { background: var(--te-ivory-2) !important; color: var(--te-ink) !important; border-bottom: 1px solid var(--te-ink) !important; }
.te-compare .comparison-table thead th.highlight { background: var(--te-ink) !important; color: var(--te-ivory) !important; }
.te-compare .comparison-table tbody td { border-bottom-color: var(--te-rule-2) !important; }
.te-compare .comparison-table tbody td:first-child { background: var(--te-ivory) !important; color: var(--te-ink) !important; }
.te-compare .comparison-table tbody tr:hover td { background: var(--te-ivory-2) !important; }
.te-compare .scroll-hint { color: var(--te-muted) !important; }
.te-compare .app-cards { gap: 0 2rem !important; border-top: 1px solid var(--te-ink); }
.te-compare .app-card { background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--te-rule) !important; border-radius: 0 !important; padding: 1.2rem 0 !important; }
.te-compare .app-card .best-for { background: transparent !important; border: 1px solid var(--te-rose); color: var(--te-rose) !important; border-radius: var(--te-radius) !important; }
.te-compare .app-card li { color: var(--te-body) !important; }
.te-compare .app-card li::before { color: var(--te-rose) !important; }
.te-compare .cta-section { background: var(--te-ivory-2) !important; border-radius: 0 !important; border-top: 1px solid var(--te-rule); border-bottom: 1px solid var(--te-rule); text-align: left !important; }
.te-compare .cta-section p { margin-left: 0 !important; }
.te-compare .btn-primary { background: var(--te-ink) !important; border-radius: var(--te-radius) !important; color: var(--te-ivory) !important; font-weight: 600 !important; }
.te-compare .btn-primary:hover { background: var(--te-rose) !important; }
.te-compare .btn-secondary { color: var(--te-ink) !important; text-decoration: underline; text-decoration-color: var(--te-rose); }
.te-compare .faq-item { border: 0 !important; border-top: 1px solid var(--te-rule) !important; border-radius: 0 !important; margin: 0 !important; }
.te-compare .faq-item summary { background: transparent !important; font-family: var(--te-serif) !important; font-weight: 500 !important; color: var(--te-ink) !important; padding-left: 0 !important; padding-right: 0 !important; }
.te-compare .faq-item summary::after { color: var(--te-rose) !important; }
.te-compare .faq-item .faq-answer { padding-left: 0 !important; padding-right: 0 !important; color: var(--te-body) !important; }
.te-compare .deep-dives { background: transparent !important; border: 0 !important; border-top: 1px solid var(--te-rule) !important; border-radius: 0 !important; }
.te-compare .deep-dives h3 { color: var(--te-ink) !important; }
.te-compare .deep-dives a { color: var(--te-ink) !important; border-color: var(--te-rule-2) !important; }
.te-compare .deep-dives a:hover { color: var(--te-rose) !important; }
.te-compare footer { background: var(--te-night) !important; color: rgba(250, 246, 240, 0.75) !important; }
.te-compare .footer-logo, .te-compare .footer-nav h4 { color: var(--te-ivory) !important; font-family: var(--te-serif) !important; font-weight: 500 !important; }
.te-compare .footer-tagline, .te-compare .footer-copyright, .te-compare .footer-nav a, .te-compare .footer-bottom-links a { color: rgba(250, 246, 240, 0.72) !important; }
.te-compare .footer-nav a:hover, .te-compare .footer-bottom-links a:hover { color: var(--te-ivory) !important; }
.te-compare .footer-social a { background: transparent !important; color: var(--te-ivory) !important; border-color: rgba(250, 246, 240, 0.3) !important; border-radius: var(--te-radius) !important; }

/* ================= /ingredient-checker/ — re-point its own design tokens; the 0–5 rating colors stay ================= */
body.te-ingredients {
  --bg: var(--te-ivory); --rose: var(--te-ink); --accent: var(--te-rose); --text: var(--te-ink); --secondary: var(--te-body);
  --card-bg: var(--te-paper); --border: var(--te-rule); --hover-bg: var(--te-ivory-2);
  --serif: 'Fraunces', Georgia, serif; --sans: 'Public Sans', Helvetica, Arial, sans-serif; --radius: 2px;
}
.te-ingredients .hero { text-align: left !important; }
.te-ingredients .hero h1 { font-weight: 500 !important; letter-spacing: -0.015em; text-wrap: balance; }
.te-ingredients .hero .subtitle { margin: 0 !important; font-weight: 400 !important; }
.te-ingredients #search { border-radius: var(--te-radius) !important; border-width: 1px !important; }
.te-ingredients #search:focus { border-color: var(--te-ink) !important; box-shadow: 0 0 0 3px var(--te-rose-soft) !important; }
.te-ingredients .search-wrap svg { stroke: var(--te-muted) !important; }
.te-ingredients .card-name { font-weight: 500 !important; min-width: 0; overflow-wrap: anywhere; }
.te-ingredients .card:hover { transform: none !important; box-shadow: none !important; border-color: var(--te-ink) !important; }
.te-ingredients .filter-btn, .te-ingredients .filter-group select { border-radius: var(--te-radius) !important; }
.te-ingredients h2 { font-weight: 500 !important; }
/* fix: mobile page was 81px wider than the screen */
.te-ingredients .results { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)) !important; }
.te-ingredients .search-wrap { margin: 0 !important; }
.te-ingredients .search-hint, .te-ingredients .results-count { text-align: left !important; }
.te-ingredients .filters { justify-content: flex-start !important; }
.te-olive .hero h1 { font-size: clamp(2.1rem, 4.4vw, 3rem) !important; text-wrap: pretty; }

/* ---------- Mobile fit (Nov 2026): the email + "Take the Quiz" row wraps instead of overflowing ---------- */
.te-tool .email-capture, .te-tool .email-capture * { box-sizing: border-box; }
.te-tool .email-capture form { flex-wrap: wrap; max-width: 100%; min-width: 0; }
.te-tool .email-capture input[type="email"] { flex: 1 1 12rem; min-width: 0; width: auto; }
.te-tool .email-capture button { flex: 1 0 auto; max-width: 100%; }
@media (min-width: 480px) { .te-tool .email-capture button { flex: 0 0 auto; } }
