/* Critical above-the-fold CSS — renders before fonts/images load */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;}
body{font-family:'Gill Sans','Gill Sans MT','Trebuchet MS','Segoe UI',system-ui,sans-serif;background:#FAF7F3;color:#221C17;-webkit-font-smoothing:antialiased;}
nav{background:rgba(250,247,243,0.98);border-bottom:1px solid #CFC4B8;position:sticky;top:0;z-index:200;padding:0 2rem;}
.nav-inner{max-width:1140px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;height:70px;}
.logo .smart{color:#A63347;font-weight:600;font-size:1.5rem;}
.logo .choice{color:#221C17;font-weight:300;font-style:italic;font-size:1.5rem;}
.logo .hub{color:#fff;background:#221C17;font-size:0.62rem;font-weight:600;letter-spacing:0.18em;text-transform:uppercase;padding:3px 9px;border-radius:2px;margin-left:8px;line-height:1.7;display:inline-block;}
.hero-home{position:relative;min-height:100vh;display:flex;align-items:center;overflow:hidden;background:#221C17;contain:layout;}
.hero-bg{position:absolute;inset:0;overflow:hidden;contain:strict;background:linear-gradient(135deg,#2d1f1a 0%,#3d2820 40%,#4a2535 70%,#3a2030 100%);}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(120deg,rgba(34,28,23,0.88) 0%,rgba(34,28,23,0.55) 55%,rgba(166,51,71,0.25) 100%);}
.hero-content{position:relative;z-index:2;max-width:1140px;margin:0 auto;padding:120px 2rem 80px;display:grid;grid-template-columns:1fr 1fr;gap:4rem;align-items:center;}
.hero-title{font-family:'Palatino Linotype','Book Antiqua',Palatino,Georgia,serif;font-size:clamp(2.4rem,5vw,4rem);font-weight:300;line-height:1.12;margin-bottom:1.5rem;color:#fff;}
.hero-eyebrow{display:inline-block;font-size:0.7rem;letter-spacing:0.22em;text-transform:uppercase;color:#EDD9A8;margin-bottom:1.2rem;border-left:2px solid #B8873C;padding-left:12px;}
.hero-subtitle{font-size:1rem;color:rgba(255,255,255,0.72);max-width:480px;line-height:1.8;margin-bottom:2.5rem;}


/* ===================================================
   SMARTCHOICE HUB — EDUCATIONAL REDESIGN 2026
   Architecture: One-page homepage + category sub-pages
   Palette: Deep Berry Rose, Antique Gold, Warm Ivory
   =================================================== */
:root {
  --rose: #A63347;
  --rose-light: #FDF5F7;
  --rose-mid: #E8BEC8;
  --rose-dark: #6E1E2E;
  --blush: #F5DDE4;
  --gold: #B8873C;
  --gold-light: #FBF6EC;
  --gold-mid: #EDD9A8;
  --sage: #4A7A65;
  --sage-light: #EEF5F2;
  --ivory: #FAF7F3;
  --ivory-deep: #F2ECE4;
  --ivory-mid: #EDE5DA;
  --charcoal: #221C17;
  --charcoal-mid: #3D342C;
  --charcoal-light: #5C5048;
  --muted: #6B6057;
  --muted-light: #857670;
  --border: #E8E0D6;
  --border-dark: #CFC4B8;
  --white: #FFFFFF;
  --font-serif: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, 'Times New Roman', serif;
  --font-sans: 'Gill Sans', 'Gill Sans MT', 'Trebuchet MS', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --max-width: 1140px;
}
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}

/* ── Skip link (keyboard accessibility) ── */
.skip-link{position:absolute;top:-100px;left:1rem;background:var(--rose);color:#fff;padding:12px 20px;border-radius:0 0 6px 6px;font-size:0.85rem;font-weight:600;text-decoration:none;z-index:1000;transition:top 0.2s;}
.skip-link:focus{top:0;}
main:focus{outline:none;}

/* ── Respect reduced-motion preference ── */
@media(prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *,*::before,*::after{animation-duration:0.01ms!important;animation-iteration-count:1!important;transition-duration:0.01ms!important;scroll-behavior:auto!important;}
}
body{font-family:var(--font-sans);background:var(--ivory);color:var(--charcoal);line-height:1.75;font-size:16px;-webkit-font-smoothing:antialiased;}

/* ── Navigation ── */
nav{background:rgba(250,247,243,0.98);backdrop-filter:blur(16px);border-bottom:1px solid var(--border-dark);position:sticky;top:0;z-index:200;padding:0 1.5rem;transition:box-shadow 0.3s;}
.nav-inner{max-width:var(--max-width);margin:0 auto;display:flex;align-items:center;justify-content:space-between;height:70px;gap:1rem;}
.nav-right{display:flex;align-items:center;gap:1.5rem;margin-left:auto;}
.search-trigger{background:none;border:1px solid var(--border-dark);color:var(--charcoal-light);width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all 0.2s;flex-shrink:0;}
.search-trigger:hover{border-color:var(--rose);color:var(--rose);}
.search-trigger svg{width:16px;height:16px;stroke-width:2;}
.logo{font-family:var(--font-serif);text-decoration:none;display:inline-flex;align-items:center;gap:0;cursor:pointer;flex-shrink:0;}
.logo .smart{color:var(--rose);font-weight:600;font-size:1.5rem;letter-spacing:-0.01em;line-height:1;}
.logo .choice{color:var(--charcoal);font-weight:300;font-style:italic;font-size:1.5rem;line-height:1;}
.logo .hub{align-self:center;color:var(--white);background:var(--charcoal);font-size:0.6rem;font-weight:600;font-style:normal;font-family:var(--font-sans);letter-spacing:0.16em;text-transform:uppercase;padding:4px 8px 3px;border-radius:2px;margin-left:8px;line-height:1;}
.nav-links{display:flex;gap:2rem;list-style:none;align-items:center;}
.nav-links a{color:var(--charcoal-light);text-decoration:none;font-size:0.78rem;font-weight:600;letter-spacing:0.1em;text-transform:uppercase;transition:color 0.2s;position:relative;cursor:pointer;}
.nav-links a::after{content:'';position:absolute;bottom:-2px;left:0;width:0;height:1px;background:var(--rose);transition:width 0.25s;}
.nav-links a:hover{color:var(--rose);}
.nav-links a:hover::after{width:100%;}
.nav-cta{background:var(--rose);color:var(--white)!important;padding:8px 18px;border-radius:3px;font-weight:500!important;}
.nav-cta:hover{background:var(--rose-dark)!important;}
.nav-cta::after{display:none!important;}
.hamburger{display:none;flex-direction:column;gap:5px;cursor:pointer;padding:4px;}
.hamburger span{display:block;width:22px;height:2px;background:var(--charcoal);transition:all 0.3s;}
@media(max-width:768px){
  .nav-links{display:none;position:fixed;top:70px;left:0;right:0;background:var(--ivory);flex-direction:column;padding:2rem;gap:1.5rem;border-bottom:1px solid var(--border);z-index:199;}
  .nav-links.open{display:flex;}
  .hamburger{display:flex;}
}

/* ── HOMEPAGE HERO ── */
#home-page{display:block;}
.hero-home{position:relative;min-height:100vh;display:flex;align-items:center;overflow:hidden;background:var(--charcoal);contain:layout;}
.hero-bg img{width:100%;height:100%;object-fit:cover;object-position:center 30%;opacity:0;display:block;transition:opacity 0.6s ease;}
.hero-bg img.loaded{opacity:0.45;}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(120deg,rgba(34,28,23,0.88) 0%,rgba(34,28,23,0.55) 55%,rgba(166,51,71,0.25) 100%);}
.hero-content{position:relative;z-index:2;max-width:var(--max-width);margin:0 auto;padding:120px 2rem 80px;display:grid;grid-template-columns:1fr 1fr;gap:4rem;align-items:center;}
.hero-text{color:var(--white);}
.hero-eyebrow{display:inline-block;font-size:0.7rem;letter-spacing:0.22em;text-transform:uppercase;color:var(--gold-mid);margin-bottom:1.2rem;border-left:2px solid var(--gold);padding-left:12px;}
.hero-title{font-family:var(--font-serif);font-size:clamp(2.4rem,5vw,4rem);font-weight:300;line-height:1.12;margin-bottom:1.5rem;color:var(--white);}
.hero-title em{font-style:italic;color:var(--rose-mid);}
.hero-subtitle{font-size:1rem;color:rgba(255,255,255,0.72);max-width:480px;line-height:1.8;margin-bottom:2.5rem;}
.hero-actions{display:flex;gap:1rem;flex-wrap:wrap;}
.btn-primary{background:var(--rose);color:var(--white);padding:14px 28px;border-radius:3px;font-size:0.82rem;font-weight:500;letter-spacing:0.08em;text-transform:uppercase;text-decoration:none;transition:background 0.25s;cursor:pointer;border:none;}
.btn-primary:hover{background:var(--rose-dark);}
.btn-outline{background:transparent;color:var(--white);border:1px solid rgba(255,255,255,0.4);padding:14px 28px;border-radius:3px;font-size:0.82rem;font-weight:500;letter-spacing:0.08em;text-transform:uppercase;text-decoration:none;transition:all 0.25s;cursor:pointer;}
.btn-outline:hover{border-color:var(--gold-mid);color:var(--gold-mid);}
.hero-stats{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;}
.stat-card{background:rgba(255,255,255,0.07);border:1px solid rgba(255,255,255,0.12);border-radius:8px;padding:1.5rem;backdrop-filter:blur(8px);}
.stat-num{font-family:var(--font-serif);font-size:2.2rem;font-weight:400;color:var(--gold-mid);line-height:1;}
.stat-label{font-size:0.78rem;color:rgba(255,255,255,0.6);letter-spacing:0.06em;margin-top:0.3rem;}
@media(max-width:900px){
  .hero-content{grid-template-columns:1fr;gap:2.5rem;padding:100px 1.5rem 60px;}
  .hero-stats{grid-template-columns:1fr 1fr;}
}

/* ── Category Icons Section ── */
.categories-section{background:var(--ivory);padding:5rem 2rem;text-align:center;}
.categories-section .section-label{font-size:0.72rem;letter-spacing:0.22em;text-transform:uppercase;color:var(--rose);margin-bottom:0.5rem;}
.categories-section h2{font-family:var(--font-serif);font-size:2.2rem;font-weight:300;color:var(--charcoal);margin-bottom:0.8rem;}
.categories-section .section-intro{color:var(--muted);max-width:560px;margin:0 auto 3.5rem;font-size:0.95rem;}
.cat-grid{max-width:var(--max-width);margin:0 auto;display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem;}
@media(max-width:900px){.cat-grid{grid-template-columns:repeat(4,1fr);}}
@media(max-width:500px){.cat-grid{grid-template-columns:repeat(2,1fr);gap:1rem;}}
.cat-icon-btn{display:flex;flex-direction:column;align-items:center;gap:1.1rem;padding:2.2rem 1rem 1.8rem;background:var(--white);border:1px solid var(--border);border-radius:14px;cursor:pointer;transition:all 0.3s cubic-bezier(.2,.8,.2,1);text-decoration:none;color:var(--charcoal);position:relative;}
.cat-icon-btn{will-change:transform;contain:layout style;} .cat-icon-btn:hover{transform:translateY(-6px);box-shadow:0 16px 36px rgba(166,51,71,0.14);border-color:var(--rose-mid);}
.cat-icon{width:72px;height:72px;border-radius:50%;display:flex;align-items:center;justify-content:center;position:relative;transition:transform 0.3s cubic-bezier(.2,.8,.2,1);overflow:hidden;border:3px solid var(--ivory-deep);box-shadow:0 2px 10px rgba(34,28,23,0.08);}
.cat-icon img{width:100%;height:100%;object-fit:cover;}
.cat-icon-btn:hover .cat-icon{transform:scale(1.08);}
.cat-icon-btn:hover .cat-icon svg{transform:scale(1.05);}
.cat-icon-btn .cat-name{font-size:0.78rem;font-weight:600;letter-spacing:0.08em;text-transform:uppercase;color:var(--charcoal-light);}
.cat-icon-btn:hover .cat-name{color:var(--rose);}

/* ── Featured Article Strip ── */
.featured-strip{background:var(--charcoal-mid);padding:3rem 2rem;}
.featured-strip-inner{max-width:var(--max-width);margin:0 auto;display:flex;align-items:center;gap:2rem;flex-wrap:wrap;}
.featured-strip-label{font-size:0.7rem;letter-spacing:0.2em;text-transform:uppercase;color:var(--gold-mid);white-space:nowrap;}
.featured-links{display:flex;gap:1.5rem;flex-wrap:wrap;}
.featured-link{color:rgba(255,255,255,0.7);font-size:0.85rem;text-decoration:none;padding:6px 0;border-bottom:1px solid rgba(255,255,255,0.2);transition:all 0.2s;cursor:pointer;}
.featured-link:hover{color:var(--gold-mid);border-color:var(--gold-mid);}

/* ── Why We're Different ── */
.why-section{padding:5rem 2rem;background:var(--ivory-deep);}
.why-inner{max-width:var(--max-width);margin:0 auto;}
.why-grid{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:center;}
.why-image-side{position:relative;}
.why-image-wrap{border-radius:12px;overflow:hidden;aspect-ratio:4/3;background:var(--blush);}
.why-image-wrap img{width:100%;height:100%;object-fit:cover;}
.why-badge{position:absolute;bottom:-1.5rem;right:-1rem;background:var(--rose);color:var(--white);padding:1.2rem 1.6rem;border-radius:50px;text-align:center;box-shadow:0 10px 28px rgba(166,51,71,0.32);border:3px solid var(--ivory);}
.why-badge-num{font-family:var(--font-serif);font-size:2rem;font-weight:400;display:block;line-height:1;}
.why-badge-txt{font-size:0.7rem;letter-spacing:0.08em;text-transform:uppercase;opacity:0.85;}
.why-text-side{padding-left:2rem;}
.why-text-side .section-label{font-size:0.72rem;letter-spacing:0.22em;text-transform:uppercase;color:var(--rose);margin-bottom:0.5rem;}
.why-text-side h2{font-family:var(--font-serif);font-size:2.2rem;font-weight:300;color:var(--charcoal);margin-bottom:1rem;line-height:1.2;}
.why-text-side p{color:var(--muted);line-height:1.8;margin-bottom:2rem;}
.why-points{list-style:none;display:flex;flex-direction:column;gap:1rem;}
.why-point{display:flex;gap:1rem;align-items:flex-start;}
.why-point-icon{width:36px;height:36px;border-radius:50%;background:var(--rose-light);display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:1rem;}
.why-point-text strong{display:block;font-size:0.88rem;color:var(--charcoal);margin-bottom:0.2rem;}
.why-point-text span{font-size:0.84rem;color:var(--muted);}
@media(max-width:768px){
  .why-grid{grid-template-columns:1fr;}
  .why-text-side{padding-left:0;}
  .why-badge{bottom:-1rem;right:0.5rem;}
}

/* ── PAGE VIEWS (category + content pages) ── */

/* Page header */
.page-header{background:linear-gradient(135deg,var(--charcoal) 0%,var(--charcoal-mid) 100%);padding:80px 2rem 60px;text-align:center;position:relative;overflow:hidden;}
.page-header::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 80% 50%,rgba(166,51,71,0.2),transparent 60%);}
.page-header-inner{max-width:720px;margin:0 auto;position:relative;z-index:1;}
.page-header .back-link{display:inline-flex;align-items:center;gap:6px;color:rgba(255,255,255,0.5);font-size:0.78rem;letter-spacing:0.08em;text-transform:uppercase;text-decoration:none;margin-bottom:1.5rem;cursor:pointer;transition:color 0.2s;}
.page-header .back-link:hover{color:var(--gold-mid);}
.page-header h1{font-family:var(--font-serif);font-size:clamp(2rem,4vw,3rem);font-weight:300;color:var(--white);margin-bottom:0.8rem;}
.page-header p{color:rgba(255,255,255,0.6);font-size:0.95rem;max-width:560px;margin:0 auto;}
.page-header .page-icon{width:72px;height:72px;border-radius:50%;background:rgba(255,255,255,0.16);border:1.5px solid rgba(255,255,255,0.35);display:flex;align-items:center;justify-content:center;margin:0 auto 1.3rem;backdrop-filter:blur(6px);box-shadow:0 4px 16px rgba(0,0,0,0.2);}
.page-header .page-icon svg{width:34px;height:34px;stroke:#FFFFFF;stroke-width:1.8;fill:none;}

/* ── Breadcrumbs ── */
.breadcrumb{max-width:var(--max-width);margin:0 auto 1.5rem;padding:0 2rem;}
.breadcrumb ol{list-style:none;display:flex;flex-wrap:wrap;align-items:center;gap:0.4rem;font-size:0.78rem;}
.breadcrumb li{display:flex;align-items:center;gap:0.4rem;color:rgba(255,255,255,0.4);}
.breadcrumb a{color:rgba(255,255,255,0.6);text-decoration:none;cursor:pointer;transition:color 0.2s;}
.breadcrumb a:hover{color:var(--gold-mid);}
.breadcrumb li[aria-current="page"]{color:rgba(255,255,255,0.85);}
.breadcrumb li:not(:last-child)::after{content:'/';margin-left:0.4rem;color:rgba(255,255,255,0.25);}
.breadcrumb-share-row{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.8rem;}
.share-btn{background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.18);color:rgba(255,255,255,0.75);font-size:0.72rem;letter-spacing:0.06em;text-transform:uppercase;padding:6px 14px;border-radius:20px;cursor:pointer;display:inline-flex;align-items:center;gap:6px;transition:all 0.2s;}
.share-btn:hover{background:rgba(255,255,255,0.16);color:#fff;}
.share-btn svg{width:13px;height:13px;stroke:currentColor;stroke-width:2;fill:none;}

/* ── Instant Search Overlay ── */
.search-overlay{position:fixed;inset:0;background:rgba(34,28,23,0.6);backdrop-filter:blur(4px);z-index:500;display:none;align-items:flex-start;justify-content:center;padding:10vh 1.5rem 2rem;}
.search-overlay.open{display:flex;}
.search-panel{background:var(--white);border-radius:14px;max-width:640px;width:100%;max-height:70vh;display:flex;flex-direction:column;box-shadow:0 24px 64px rgba(0,0,0,0.3);overflow:hidden;}
.search-input-row{display:flex;align-items:center;gap:0.8rem;padding:1.2rem 1.4rem;border-bottom:1px solid var(--border);flex-shrink:0;}
.search-input-row svg{width:20px;height:20px;stroke:var(--muted);stroke-width:2;fill:none;flex-shrink:0;}
#search-input{flex:1;border:none;outline:none;font-family:var(--font-sans);font-size:1rem;color:var(--charcoal);background:transparent;}
#search-input::placeholder{color:var(--muted-light);}
.search-close-btn{background:none;border:none;color:var(--muted);cursor:pointer;font-size:0.75rem;letter-spacing:0.06em;text-transform:uppercase;padding:4px 8px;flex-shrink:0;}
#search-results{overflow-y:auto;padding:0.6rem;}
.search-hint{padding:1.5rem;text-align:center;color:var(--muted-light);font-size:0.88rem;}
.search-result{display:flex;flex-direction:column;gap:2px;width:100%;text-align:left;background:none;border:none;padding:0.8rem 1rem;border-radius:8px;cursor:pointer;transition:background 0.15s;}
.search-result:hover{background:var(--ivory-deep);}
.search-result-tag{font-size:0.68rem;letter-spacing:0.08em;text-transform:uppercase;color:var(--rose);}
.search-result-title{font-size:0.92rem;color:var(--charcoal);font-family:var(--font-serif);}

/* Article layout */
.articles-wrapper{max-width:var(--max-width);margin:0 auto;padding:4rem 2rem;}
.articles-intro{background:var(--white);border:1px solid var(--border);border-radius:12px;padding:2.5rem;margin-bottom:3rem;border-left:4px solid var(--rose);}
.articles-intro h2{font-family:var(--font-serif);font-size:1.6rem;font-weight:400;color:var(--charcoal);margin-bottom:0.8rem;}
.articles-intro p{color:var(--muted);line-height:1.8;}

/* Educational Article Card */
.edu-article{background:var(--white);border:1px solid var(--border);border-radius:12px;margin-bottom:2.5rem;overflow:hidden;transition:box-shadow 0.25s;scroll-margin-top:90px;}
.edu-article:hover{box-shadow:0 8px 32px rgba(34,28,23,0.08);}
.edu-article-header{padding:2rem 2.5rem 1.5rem;border-bottom:1px solid var(--border-light);cursor:pointer;list-style:none;display:block;position:relative;}
.edu-article-header::-webkit-details-marker{display:none;}
.edu-article-header::after{content:'+ Read the full guide';display:inline-block;margin-top:1rem;font-size:0.78rem;font-weight:600;color:var(--rose);letter-spacing:0.04em;}
details.edu-article[open] > .edu-article-header::after{content:'− Close guide';}
details.edu-article[open] > .edu-article-header{border-bottom:1px solid var(--border-light);}
.edu-article-meta{display:flex;align-items:center;gap:1rem;margin-bottom:1rem;flex-wrap:wrap;}
.edu-tag{font-size:0.7rem;font-weight:600;letter-spacing:0.1em;text-transform:uppercase;background:var(--rose-light);color:var(--rose-dark);padding:4px 10px;border-radius:3px;}
.edu-tag.gold{background:var(--gold-light);color:#7a5820;}
.edu-tag.sage{background:var(--sage-light);color:#2d5c48;}
.edu-article-header h3{font-family:var(--font-serif);font-size:1.6rem;font-weight:400;color:var(--charcoal);line-height:1.25;margin-bottom:0.6rem;}
.edu-article-header .problem-statement{background:var(--ivory-deep);border-left:3px solid var(--gold);padding:1rem 1.2rem;border-radius:0 6px 6px 0;font-size:0.9rem;color:var(--muted);margin-top:1rem;}
.edu-article-header .problem-statement strong{color:var(--charcoal);}
.lib-body .problem-statement{background:var(--ivory-deep);border-left:3px solid var(--gold);padding:0.9rem 1.1rem;border-radius:0 6px 6px 0;font-size:0.86rem;color:var(--muted);margin-bottom:1rem;}
.lib-body .problem-statement strong{color:var(--charcoal);}
.lib-body h4{font-family:var(--font-serif);font-size:1.05rem;font-weight:500;color:var(--charcoal);margin-bottom:0.5rem;}
.lib-body .lib-solution{font-size:0.88rem;color:var(--muted);line-height:1.75;margin-bottom:1rem;}
details.lib-card .product-cta-box{margin-top:0.5rem;padding:1.2rem 1.4rem;}

/* Article body — revealed on expand */
.edu-article-body{padding:2rem 2.5rem;}
.edu-article-body h4{font-family:var(--font-serif);font-size:1.2rem;font-weight:500;color:var(--charcoal);margin:1.5rem 0 0.6rem;}
.edu-article-body h4:first-child{margin-top:0;}
.edu-article-body p{color:var(--muted);line-height:1.85;margin-bottom:1rem;font-size:0.95rem;}
.edu-article-body ul{padding-left:1.2rem;color:var(--muted);line-height:1.8;font-size:0.95rem;margin-bottom:1rem;}
.edu-article-body ul li{margin-bottom:0.4rem;}
.science-box{background:var(--sage-light);border:1px solid var(--sage-mid,#B8D4CA);border-radius:8px;padding:1.2rem 1.5rem;margin:1.2rem 0;}
.science-box strong{color:var(--sage);font-size:0.78rem;letter-spacing:0.1em;text-transform:uppercase;display:block;margin-bottom:0.4rem;}
.science-box p{margin:0;font-size:0.9rem;color:#2d5c48;}
.ingredient-list{background:var(--gold-light);border:1px solid var(--gold-mid);border-radius:8px;padding:1.2rem 1.5rem;margin:1.2rem 0;}
.ingredient-list strong{color:var(--gold);font-size:0.78rem;letter-spacing:0.1em;text-transform:uppercase;display:block;margin-bottom:0.6rem;}
.ingredient-item{display:flex;gap:0.6rem;font-size:0.88rem;color:var(--muted);margin-bottom:0.4rem;}
.ingredient-item::before{content:'◆';color:var(--gold);flex-shrink:0;font-size:0.6rem;margin-top:0.35rem;}
.product-cta-box{background:linear-gradient(135deg,var(--rose-light),var(--blush));border:1px solid var(--rose-mid);border-radius:10px;padding:1.8rem 2rem;margin-top:1.5rem;display:flex;align-items:center;justify-content:space-between;gap:1.5rem;flex-wrap:wrap;}
.product-cta-box .cta-text{flex:1;}
.product-cta-box .cta-text strong{display:block;font-size:1rem;color:var(--charcoal);margin-bottom:0.3rem;}
.product-cta-box .cta-text span{font-size:0.85rem;color:var(--muted);}
.cta-btn{background:var(--rose);color:var(--white);padding:12px 24px;border-radius:4px;text-decoration:none;font-size:0.82rem;font-weight:600;letter-spacing:0.06em;text-transform:uppercase;white-space:nowrap;transition:background 0.2s;display:inline-block;}
.cta-btn:hover{background:var(--rose-dark);}
.disclaimer-small{font-size:0.73rem;color:var(--muted-light);margin-top:0.5rem;font-style:italic;}

/* Article footer / toggle */
.edu-article-footer{padding:1.2rem 2.5rem;background:var(--ivory);border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem;}
.edu-article-footer .quick-link{color:var(--muted);font-size:0.82rem;text-decoration:none;display:flex;align-items:center;gap:6px;}
.edu-article-footer .quick-link:hover{color:var(--rose);}

/* ── HOW-TO / Instructions page ── */
.instructions-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:2rem;}
.how-to-card{background:var(--white);border:1px solid var(--border);border-radius:12px;padding:2rem;transition:box-shadow 0.25s;scroll-margin-top:90px;}
.how-to-card:hover{box-shadow:0 6px 24px rgba(34,28,23,0.07);}
.how-to-card .card-icon{width:48px;height:48px;border-radius:50%;background:var(--rose-light);display:flex;align-items:center;justify-content:center;margin-bottom:1.2rem;}
.how-to-card .card-icon svg{width:22px;height:22px;stroke:var(--rose);stroke-width:1.6;fill:none;}
.how-to-card h3{font-family:var(--font-serif);font-size:1.2rem;font-weight:500;color:var(--charcoal);margin-bottom:0.6rem;}
.how-to-card p{font-size:0.88rem;color:var(--muted);line-height:1.8;}
.steps-list{counter-reset:step;list-style:none;margin-top:1rem;}
.steps-list li{counter-increment:step;display:flex;gap:0.8rem;margin-bottom:0.8rem;font-size:0.88rem;color:var(--muted);}
.steps-list li::before{content:counter(step);min-width:24px;height:24px;border-radius:50%;background:var(--rose);color:var(--white);display:flex;align-items:center;justify-content:center;font-size:0.72rem;font-weight:600;flex-shrink:0;margin-top:0.15rem;}

/* ── Interactive Tools ── */
.tools-grid{display:flex;flex-direction:column;gap:2.5rem;}
.tool-card{background:var(--white);border:1px solid var(--border);border-radius:14px;padding:2.2rem;scroll-margin-top:90px;}
.tool-card-header{display:flex;align-items:center;gap:1rem;margin-bottom:1.6rem;}
.tool-icon{width:44px;height:44px;border-radius:50%;background:var(--rose-light);display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.tool-icon svg{width:22px;height:22px;stroke:var(--rose);stroke-width:1.6;fill:none;}
.tool-card-header h3{font-family:var(--font-serif);font-size:1.5rem;font-weight:500;color:var(--charcoal);}
.tool-card-header p{font-size:0.85rem;color:var(--muted);margin-top:0.2rem;}
.tool-step-label{font-size:0.72rem;letter-spacing:0.1em;text-transform:uppercase;color:var(--rose);font-weight:600;margin-bottom:0.7rem;}
.chip-group{display:flex;flex-wrap:wrap;gap:0.6rem;margin-bottom:1.6rem;}
.chip{background:var(--ivory);border:1px solid var(--border-dark);color:var(--charcoal-light);font-size:0.84rem;padding:8px 16px;border-radius:20px;cursor:pointer;transition:all 0.2s;}
.chip:hover{border-color:var(--rose-mid);}
.chip.selected{background:var(--rose);border-color:var(--rose);color:#fff;}
.tool-btn{background:var(--rose);color:#fff;border:none;padding:12px 26px;border-radius:6px;font-size:0.85rem;font-weight:600;letter-spacing:0.04em;cursor:pointer;transition:background 0.2s;}
.tool-btn:hover{background:var(--rose-dark);}
.tool-btn:disabled{background:var(--border-dark);cursor:not-allowed;}
.tool-btn-outline{display:inline-block;text-decoration:none;background:none;border:1px solid var(--border-dark);color:var(--charcoal-light);padding:10px 20px;border-radius:6px;font-size:0.82rem;cursor:pointer;transition:all 0.2s;}
.tool-btn-outline:hover{border-color:var(--rose);color:var(--rose);}
.tool-result{margin-top:1.6rem;padding-top:1.6rem;border-top:1px dashed var(--border);display:none;}
.tool-result.show{display:block;animation:fadeIn 0.3s ease;}
@keyframes fadeIn{from{opacity:0;transform:translateY(6px);}to{opacity:1;transform:translateY(0);}}
.routine-step{display:flex;gap:1rem;padding:1rem 0;border-bottom:1px solid var(--border-light,#F0EBE4);}
.routine-step:last-child{border-bottom:none;}
.routine-step-num{width:28px;height:28px;border-radius:50%;background:var(--gold-light);color:var(--gold);display:flex;align-items:center;justify-content:center;font-size:0.8rem;font-weight:700;flex-shrink:0;}
.routine-step-body strong{display:block;font-size:0.95rem;color:var(--charcoal);margin-bottom:0.2rem;}
.routine-step-body span{font-size:0.85rem;color:var(--muted);line-height:1.6;}
.ingredient-search-row{display:flex;gap:0.6rem;margin-bottom:1rem;}
.ingredient-search-row input{flex:1;border:1px solid var(--border-dark);border-radius:6px;padding:11px 14px;font-family:var(--font-sans);font-size:0.9rem;outline:none;}
.ingredient-search-row input:focus{border-color:var(--rose);}
.ingredient-suggestions{display:flex;flex-wrap:wrap;gap:0.5rem;margin-bottom:0.5rem;}
.ingredient-suggestions button{background:var(--ivory-deep);border:none;color:var(--charcoal-light);font-size:0.78rem;padding:5px 12px;border-radius:14px;cursor:pointer;}
.ingredient-suggestions button:hover{background:var(--blush);color:var(--rose-dark);}
.ingredient-card{background:var(--ivory);border-radius:10px;padding:1.4rem 1.6rem;}
.ingredient-card h4{font-family:var(--font-serif);font-size:1.2rem;color:var(--charcoal);margin-bottom:0.6rem;}
.ingredient-card .ing-row{margin-bottom:0.6rem;}
.ingredient-card .ing-row strong{font-size:0.76rem;letter-spacing:0.06em;text-transform:uppercase;color:var(--rose);display:block;margin-bottom:0.2rem;}
.ingredient-card .ing-row span{font-size:0.88rem;color:var(--muted);line-height:1.7;}
.spf-radio-group{display:flex;flex-direction:column;gap:0.6rem;margin-bottom:1.4rem;}
.spf-radio{display:flex;align-items:center;gap:0.7rem;padding:0.7rem 1rem;border:1px solid var(--border);border-radius:8px;cursor:pointer;transition:all 0.15s;}
.spf-radio:hover{border-color:var(--rose-mid);}
.spf-radio input{accent-color:var(--rose);}
.spf-radio.checked{border-color:var(--rose);background:var(--rose-light);}
.spf-result-box{background:linear-gradient(135deg,var(--rose-light),var(--gold-light));border-radius:10px;padding:1.6rem;text-align:center;}
.spf-result-num{font-family:var(--font-serif);font-size:2.4rem;color:var(--rose);font-weight:400;}
.spf-result-box p{font-size:0.86rem;color:var(--charcoal-light);margin-top:0.4rem;}
.quiz-progress{display:flex;gap:6px;margin-bottom:1.6rem;}
.quiz-progress span{flex:1;height:4px;border-radius:2px;background:var(--border);}
.quiz-progress span.done{background:var(--rose);}
.quiz-question{display:none;}
.quiz-question.active{display:block;}
.quiz-options{display:flex;flex-direction:column;gap:0.6rem;}
.quiz-option{text-align:left;background:var(--ivory);border:1px solid var(--border);padding:0.9rem 1.1rem;border-radius:8px;cursor:pointer;font-size:0.9rem;color:var(--charcoal-light);transition:all 0.15s;}
.quiz-option:hover{border-color:var(--rose-mid);background:var(--rose-light);}
.quiz-result-card{background:var(--ivory);border-left:3px solid var(--rose);border-radius:0 8px 8px 0;padding:1.4rem 1.6rem;}
.quiz-result-card h4{font-family:var(--font-serif);font-size:1.25rem;color:var(--charcoal);margin-bottom:0.6rem;}
.quiz-result-card p{font-size:0.88rem;color:var(--muted);line-height:1.75;margin-bottom:0.8rem;}
.quiz-derm-note{font-size:0.8rem;color:var(--rose-dark);background:var(--rose-light);padding:0.7rem 1rem;border-radius:6px;margin-top:0.8rem;}

/* ── About Page ── */
.about-grid{display:grid;grid-template-columns:1fr 2fr;gap:3rem;margin-bottom:3rem;}
.about-photo{border-radius:12px;overflow:hidden;aspect-ratio:3/4;background:var(--blush);position:relative;}
.about-photo img{width:100%;height:100%;object-fit:cover;}
.about-avatar{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(150deg,var(--blush) 0%,var(--rose-light) 55%,var(--gold-light) 100%);position:relative;}
.about-avatar::before{content:'';position:absolute;inset:14px;border:1px solid rgba(166,51,71,0.25);border-radius:6px;}
.about-avatar .monogram{font-family:var(--font-serif);font-size:5.5rem;font-weight:400;color:var(--rose);line-height:1;}
.about-avatar .monogram-sub{font-size:0.7rem;letter-spacing:0.25em;text-transform:uppercase;color:var(--rose-dark);margin-top:0.8rem;opacity:0.75;}
.about-text h2{font-family:var(--font-serif);font-size:2rem;font-weight:400;color:var(--charcoal);margin-bottom:0.4rem;}
.about-text .title-tag{font-size:0.78rem;letter-spacing:0.1em;text-transform:uppercase;color:var(--rose);margin-bottom:1.5rem;display:block;}
.about-text p{color:var(--muted);line-height:1.85;margin-bottom:1rem;font-size:0.95rem;}
.cred-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;margin-top:2.5rem;}
.cred-card{background:var(--white);border:1px solid var(--border);border-radius:10px;padding:1.5rem;text-align:center;}
.cred-num{font-family:var(--font-serif);font-size:2rem;color:var(--rose);font-weight:400;}
.cred-label{font-size:0.8rem;color:var(--muted);margin-top:0.3rem;}
@media(max-width:768px){
  .about-grid{grid-template-columns:1fr;}
  .cred-grid{grid-template-columns:repeat(2,1fr);}
}

/* ── Contact Page ── */
.contact-grid-layout{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.5rem;margin-bottom:2rem;}
.contact-card{background:var(--white);border:1px solid var(--border);border-radius:10px;padding:1.8rem;}
.contact-card h4{font-family:var(--font-serif);font-size:1.1rem;margin-bottom:0.6rem;color:var(--charcoal);display:flex;align-items:center;gap:0.6rem;}
.contact-card h4 svg{width:18px;height:18px;stroke:var(--rose);stroke-width:1.6;fill:none;flex-shrink:0;}
.contact-card p{font-size:0.88rem;color:var(--muted);line-height:1.8;margin-bottom:0.8rem;}
.contact-card a{color:var(--rose);text-decoration:none;font-size:0.88rem;font-weight:500;}
.contact-card a:hover{text-decoration:underline;}

/* ── Legal/Policy Pages ── */
.legal-content{max-width:780px;margin:0 auto;}
.legal-content .page-meta{font-size:0.8rem;color:var(--muted-light);margin-bottom:2rem;padding-bottom:1.5rem;border-bottom:1px solid var(--border);}
.legal-content h3{font-family:var(--font-serif);font-size:1.3rem;font-weight:500;color:var(--charcoal);margin:2rem 0 0.8rem;}
.legal-content h3:first-of-type{margin-top:0;}
.legal-content p{color:var(--muted);line-height:1.85;margin-bottom:1rem;font-size:0.94rem;}
.legal-content ul{padding-left:1.3rem;color:var(--muted);line-height:1.85;margin-bottom:1rem;font-size:0.94rem;}
.legal-content ul li{margin-bottom:0.5rem;}
.legal-content a{color:var(--rose);text-decoration:none;}
.legal-content a:hover{text-decoration:underline;}
.legal-content strong{color:var(--charcoal-mid);}

/* ── Articles Page ── */
.blog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:2rem;}
.blog-card{display:block;text-decoration:none;color:inherit;background:var(--white);border:1px solid var(--border);border-radius:12px;overflow:hidden;transition:all 0.25s;cursor:pointer;}
.blog-card:hover{transform:translateY(-3px);box-shadow:0 10px 28px rgba(34,28,23,0.08);}
.blog-card-img{height:180px;background:linear-gradient(135deg,var(--blush),var(--rose-light));display:flex;align-items:center;justify-content:center;}
.blog-card-img svg{width:46px;height:46px;stroke:var(--rose);stroke-width:1.3;fill:none;opacity:0.85;}
.blog-card-body{padding:1.5rem;}
.blog-cat{font-size:0.7rem;letter-spacing:0.1em;text-transform:uppercase;color:var(--rose);margin-bottom:0.6rem;}
.blog-card-body h3{font-family:var(--font-serif);font-size:1.2rem;font-weight:400;color:var(--charcoal);line-height:1.3;margin-bottom:0.6rem;}
.blog-card-body p{font-size:0.85rem;color:var(--muted);line-height:1.7;}
.blog-read-more{display:inline-block;margin-top:1rem;font-size:0.8rem;color:var(--rose);font-weight:500;letter-spacing:0.06em;}

/* ── Product Library ── */
.library-section{margin-top:4rem;padding-top:3rem;border-top:2px solid var(--border);}
.library-header{text-align:center;margin-bottom:2rem;}
.library-header h2{font-family:var(--font-serif);font-size:2rem;font-weight:400;color:var(--charcoal);margin-bottom:0.5rem;}
.library-header p{color:var(--muted);font-size:0.92rem;max-width:600px;margin:0 auto;}
.library-controls{position:sticky;top:70px;background:var(--ivory);z-index:50;padding:1rem 0;margin-bottom:1.5rem;border-bottom:1px solid var(--border);}
.library-search-row{display:flex;gap:0.7rem;margin-bottom:1rem;}
.library-search-row input{flex:1;border:1px solid var(--border-dark);border-radius:8px;padding:12px 16px;font-family:var(--font-sans);font-size:0.9rem;outline:none;}
.library-search-row input:focus{border-color:var(--rose);}
.library-count{font-size:0.8rem;color:var(--muted);white-space:nowrap;align-self:center;padding:0 0.4rem;}
.library-filters{display:flex;flex-wrap:wrap;gap:0.5rem;}
.lib-filter{background:var(--white);border:1px solid var(--border-dark);color:var(--charcoal-light);font-size:0.78rem;padding:6px 14px;border-radius:16px;cursor:pointer;transition:all 0.15s;white-space:nowrap;}
.lib-filter:hover{border-color:var(--rose-mid);}
.lib-filter.active{background:var(--rose);border-color:var(--rose);color:#fff;}
.library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.2rem;}
.lib-card{background:var(--white);border:1px solid var(--border);border-radius:10px;padding:1.3rem 1.4rem;display:flex;flex-direction:column;transition:box-shadow 0.2s;scroll-margin-top:180px;}
.lib-card:hover{box-shadow:0 6px 18px rgba(34,28,23,0.07);}
.lib-card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:0.7rem;}
.lib-tag{font-size:0.65rem;font-weight:600;letter-spacing:0.06em;text-transform:uppercase;background:var(--rose-light);color:var(--rose-dark);padding:3px 8px;border-radius:3px;}
.lib-price{font-size:0.72rem;font-weight:700;padding:2px 8px;border-radius:10px;}
.price-budget{background:var(--sage-light);color:#2d5c48;}
.price-mid{background:var(--gold-light);color:#7a5820;}
.price-premium{background:var(--rose-light);color:var(--rose-dark);}
.lib-headline{font-family:var(--font-serif);font-size:1.12rem;font-weight:500;color:var(--charcoal);margin-bottom:0.5rem;line-height:1.35;}
.lib-name{font-size:0.78rem;color:var(--charcoal-light);font-weight:600;margin-bottom:0.2rem;}
.lib-brand{font-size:0.72rem;color:var(--muted-light);text-transform:uppercase;letter-spacing:0.04em;margin-bottom:0.5rem;}
.lib-edu{font-size:0.83rem;color:var(--muted);line-height:1.65;margin-bottom:0.9rem;flex:1;}
.lib-cta{display:inline-block;background:var(--rose);color:#fff;text-align:center;padding:9px;border-radius:5px;text-decoration:none;font-size:0.78rem;font-weight:600;letter-spacing:0.03em;margin-top:auto;}
.lib-cta:hover{background:var(--rose-dark);}
.lib-empty{grid-column:1/-1;text-align:center;padding:3rem 1rem;color:var(--muted-light);font-size:0.9rem;}
.lib-loadmore{display:none;margin:2rem auto 0;}
.lib-loadmore.show{display:block;}

/* ── Shop by Category grid (homepage + skincare hub) ── */
.shop-cat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;}
@media(max-width:900px){#library-cat-section .shop-cat-grid{grid-template-columns:repeat(3,1fr);}}
@media(max-width:700px){.shop-cat-grid{grid-template-columns:repeat(2,1fr);}}
.shop-cat-card{display:flex;flex-direction:column;align-items:center;gap:0.5rem;background:var(--white);border:1px solid var(--border);border-radius:12px;padding:1.6rem 1rem;cursor:pointer;transition:all 0.2s;text-align:center;text-decoration:none;}
.shop-cat-card:hover{border-color:var(--rose-mid);box-shadow:0 8px 22px rgba(166,51,71,0.1);transform:translateY(-3px);}
.shop-cat-icon{width:46px;height:46px;border-radius:50%;background:var(--rose-light);display:flex;align-items:center;justify-content:center;}
.shop-cat-icon svg{width:22px;height:22px;stroke:var(--rose);stroke-width:1.5;fill:none;}
.shop-cat-name{font-family:var(--font-serif);font-size:1rem;color:var(--charcoal);font-weight:500;}
.shop-cat-count{font-size:0.72rem;color:var(--muted-light);}

/* ── lib-card as native <details> ── */
details.lib-card{padding:0;overflow:hidden;scroll-margin-top:180px;cursor:default;}
details.lib-card > summary{list-style:none;cursor:pointer;padding:1.3rem 1.4rem 1rem;}
details.lib-card > summary::-webkit-details-marker{display:none;}
details.lib-card > summary::after{content:'+ Read the guide';display:block;margin-top:0.7rem;font-size:0.76rem;color:var(--rose);font-weight:600;}
details.lib-card[open] > summary::after{content:'− Close';}
.lib-body{padding:0 1.4rem 1.3rem;}
.lib-problem{font-size:0.8rem;color:var(--muted);line-height:1.6;margin-bottom:0.8rem;padding:0.6rem 0.8rem;background:var(--ivory);border-left:2px solid var(--gold);border-radius:0 4px 4px 0;}

/* ── Footer ── */
footer{background:var(--charcoal);color:rgba(255,255,255,0.6);padding:4rem 2rem 2rem;}
.footer-inner{max-width:var(--max-width);margin:0 auto;}
.affiliate-notice{background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.08);border-radius:6px;padding:1rem 1.5rem;font-size:0.8rem;margin-bottom:3rem;line-height:1.7;}
.footer-grid{display:grid;grid-template-columns:1.8fr 1fr 1fr 1fr;gap:2.5rem;margin-bottom:3rem;}
@media(max-width:768px){.footer-grid{grid-template-columns:1fr 1fr;gap:2rem;}}
@media(max-width:480px){.footer-grid{grid-template-columns:1fr;}}
.footer-brand .logo{margin-bottom:1rem;display:inline-flex;}
.footer-brand .logo .choice{color:var(--white);}
.footer-brand .logo .hub{background:var(--gold);color:var(--charcoal);}
.footer-brand p{font-size:0.85rem;line-height:1.8;max-width:320px;}
.footer-col h5{font-size:0.72rem;letter-spacing:0.2em;text-transform:uppercase;color:rgba(255,255,255,0.85);margin-bottom:1.2rem;}
.footer-col ul{list-style:none;}
.footer-col ul li{margin-bottom:0.6rem;}
.footer-col ul a{color:rgba(255,255,255,0.5);text-decoration:none;font-size:0.85rem;transition:color 0.2s;cursor:pointer;}
.footer-col ul a:hover{color:var(--gold-mid);}
.footer-bottom{border-top:1px solid rgba(255,255,255,0.08);padding-top:1.5rem;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem;font-size:0.78rem;}

/* Utility */
.max-width{max-width:var(--max-width);margin:0 auto;}
.text-center{text-align:center;}
.section-label{font-size:0.72rem;letter-spacing:0.22em;text-transform:uppercase;color:var(--rose);display:block;margin-bottom:0.5rem;}
