/* ===========================================================
   Dadgree — shared stylesheet
   Brand: red / white / blue · warm & approachable
   =========================================================== */
:root{
  --blue:#1F4E9B; --blue-dark:#163C78; --red:#D72638; --red-dark:#B41E2E;
  --ink:#222B36; --muted:#5A6B82; --line:#E2E8F1;
  --bg:#FFFFFF; --bg-soft:#F4F7FB; --bg-blue:#0F2C57;
  --radius:18px; --shadow:0 10px 30px rgba(16,44,92,.10);
  --maxw:1140px; --readw:720px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Inter',system-ui,-apple-system,sans-serif;color:var(--ink);background:var(--bg);line-height:1.65;-webkit-font-smoothing:antialiased}
h1,h2,h3,h4,.serif{font-family:'Fraunces','Georgia',serif}
a{color:var(--blue);text-decoration:none}
img{max-width:100%}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}
.btn{display:inline-block;font-weight:600;border-radius:999px;padding:14px 26px;transition:.18s;cursor:pointer;border:0;font-size:1rem;line-height:1.2}
.btn-red{background:var(--red);color:#fff;box-shadow:0 8px 20px rgba(215,38,56,.28)}
.btn-red:hover{background:var(--red-dark);transform:translateY(-2px)}
.btn-blue{background:var(--blue);color:#fff}
.btn-blue:hover{background:var(--blue-dark)}
.btn-ghost{background:#fff;color:var(--blue);border:2px solid var(--blue)}
.btn-ghost:hover{background:var(--blue);color:#fff}
.kicker{color:var(--red);font-weight:700;letter-spacing:.08em;text-transform:uppercase;font-size:.82rem;margin-bottom:10px}

/* ---------- Header ---------- */
header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;height:74px}
.brand img{height:58px;width:58px;display:block}
.brand .fallback{font-family:'Fraunces',serif;font-weight:700;font-size:1.7rem;color:var(--blue)}
.brand .fallback b{color:var(--red)}
nav.links{display:flex;gap:24px;align-items:center}
nav.links a{font-weight:500;font-size:.95rem;color:var(--ink)}
nav.links a:hover,nav.links a.active{color:var(--blue)}
.menu-btn{display:none;background:none;border:0;font-size:1.6rem;color:var(--blue);cursor:pointer}
#m{display:none}
#m.open{display:block;padding-bottom:16px}
#m a{display:block;padding:10px 0;border-top:1px solid var(--line);color:var(--ink)}
@media(max-width:980px){nav.links{display:none}.menu-btn{display:block}}

/* ---------- Buttons row / hero shared ---------- */
.eyebrow{display:inline-block;background:#EAF1FB;color:var(--blue);font-weight:600;font-size:.82rem;letter-spacing:.06em;text-transform:uppercase;padding:7px 14px;border-radius:999px;margin-bottom:18px}

/* ---------- Home hero ---------- */
.hero{background:radial-gradient(1200px 500px at 80% -10%,#EAF1FB 0%,transparent 60%),var(--bg);padding:64px 0 40px}
.hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:48px;align-items:center}
.hero h1{font-size:clamp(2.3rem,4.6vw,3.6rem);line-height:1.08;font-weight:700;letter-spacing:-.5px}
.hero h1 .u{color:var(--red)}
.hero p.lead{font-size:1.18rem;color:var(--muted);margin:20px 0 28px;max-width:33em}
.hero-cta{display:flex;gap:14px;flex-wrap:wrap;align-items:center}
.hero-note{font-size:.9rem;color:var(--muted);margin-top:14px}
.hero-seal{justify-self:center}
.hero-seal img{width:min(360px,80vw);filter:drop-shadow(0 18px 40px rgba(16,44,92,.18))}
.seal-fallback{width:300px;height:300px;border-radius:50%;border:8px solid var(--blue);display:flex;align-items:center;justify-content:center;text-align:center;background:#fff;color:var(--blue);font-family:'Fraunces',serif;font-weight:600;padding:30px}
@media(max-width:860px){.hero-grid{grid-template-columns:1fr;text-align:center}.hero p.lead{margin-left:auto;margin-right:auto}.hero-cta{justify-content:center}.hero-seal{order:-1}}

/* ---------- Page hero (hubs/articles) ---------- */
.pagehero{background:radial-gradient(900px 400px at 85% -20%,#EAF1FB 0%,transparent 60%),var(--bg);padding:46px 0 30px;border-bottom:1px solid var(--line)}
.crumbs{font-size:.85rem;color:var(--muted);margin-bottom:14px}
.crumbs a{color:var(--muted)}.crumbs a:hover{color:var(--blue)}
.pagehero h1{font-size:clamp(2rem,4vw,3rem);line-height:1.1;letter-spacing:-.4px;max-width:18ch}
.pagehero p.lead{font-size:1.15rem;color:var(--muted);margin-top:16px;max-width:46ch}
.pagehero.with-emoji h1 .emoji{font-style:normal}

/* ---------- Stats ---------- */
.stats{background:var(--bg-blue);color:#fff;padding:36px 0}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;text-align:center}
.stat .n{font-family:'Fraunces',serif;font-size:2.2rem;font-weight:700;color:#fff}
.stat .n span{color:#FF6B7A}
.stat p{font-size:.92rem;color:#C7D6EE;margin-top:4px}
@media(max-width:760px){.stats-grid{grid-template-columns:1fr 1fr;gap:28px 16px}}

/* ---------- Sections ---------- */
section.pad{padding:72px 0}
section.pad.tight{padding:52px 0}
.sec-head{text-align:center;max-width:42em;margin:0 auto 44px}
.sec-head h2{font-size:clamp(1.9rem,3.4vw,2.6rem);font-weight:700;letter-spacing:-.4px}
.sec-head p{color:var(--muted);font-size:1.08rem;margin-top:12px}
.soft{background:var(--bg-soft)}

/* ---------- Pillars grid ---------- */
.pillars{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
@media(max-width:980px){.pillars{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.pillars{grid-template-columns:1fr}}
.pillar{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:26px 22px;transition:.18s;display:block}
.pillar:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:#C9D8EE}
.picon{width:54px;height:54px;border-radius:14px;display:flex;align-items:center;justify-content:center;margin-bottom:16px;background:#EAF1FB;font-size:1.7rem}
.pillar:nth-child(even) .picon{background:#FBE7E9}
.picon svg{width:28px;height:28px}
.pillar h3{font-size:1.18rem;font-weight:600}
.pillar .tag{color:var(--red);font-weight:600;font-size:.85rem;margin:2px 0 8px}
.pillar p{color:var(--muted);font-size:.94rem}

/* ---------- How it works ---------- */
.how-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
@media(max-width:820px){.how-grid{grid-template-columns:1fr}}
.how-card{background:#fff;border-radius:var(--radius);padding:30px;border:1px solid var(--line)}
.how-card .step{width:40px;height:40px;border-radius:50%;background:var(--blue);color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center;font-family:'Fraunces',serif;margin-bottom:16px}
.how-card h3{font-size:1.2rem;margin-bottom:8px}
.how-card p{color:var(--muted);font-size:.96rem}

/* ---------- Article cards ---------- */
.articles{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.articles.cols-3{grid-template-columns:repeat(3,1fr)}
@media(max-width:980px){.articles,.articles.cols-3{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.articles,.articles.cols-3{grid-template-columns:1fr}}
.article{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#fff;transition:.18s;display:flex;flex-direction:column}
.article:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.article .top{height:8px;background:linear-gradient(90deg,var(--blue),var(--red))}
.article .body{padding:22px;display:flex;flex-direction:column;flex:1}
.article .cat{font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--blue)}
.article h3{font-size:1.08rem;font-weight:600;margin:8px 0 10px;line-height:1.3}
.article p{color:var(--muted);font-size:.9rem}
.article .read{display:inline-block;margin-top:auto;padding-top:12px;color:var(--red);font-weight:600;font-size:.9rem}

/* ---------- Newsletter ---------- */
.news{background:linear-gradient(135deg,var(--blue) 0%,var(--blue-dark) 100%);color:#fff;border-radius:26px;padding:54px;text-align:center;position:relative;overflow:hidden}
.news:before{content:"";position:absolute;width:300px;height:300px;background:rgba(215,38,56,.25);border-radius:50%;top:-120px;right:-80px}
.news h2{font-size:clamp(1.8rem,3vw,2.4rem);position:relative;color:#fff}
.news p{color:#C7D6EE;margin:14px auto 26px;max-width:34em;position:relative}
.news form{display:flex;gap:12px;max-width:480px;margin:0 auto;position:relative;flex-wrap:wrap;justify-content:center}
.news input{flex:1;min-width:220px;border:0;border-radius:999px;padding:15px 22px;font-size:1rem;font-family:inherit}
.news .fineprint{font-size:.82rem;color:#9FB6D9;margin-top:14px;position:relative}

/* ---------- Article (prose) layout ---------- */
.article-wrap{max-width:var(--readw);margin:0 auto;padding:48px 24px 20px}
.prose{font-size:1.07rem;color:#2C3744}
.prose > p{margin:0 0 20px}
.prose h2{font-size:1.62rem;margin:38px 0 14px;letter-spacing:-.3px;line-height:1.2}
.prose h3{font-size:1.24rem;margin:28px 0 10px}
.prose ul,.prose ol{margin:0 0 20px 1.2em}
.prose li{margin:0 0 9px}
.prose strong{color:var(--ink)}
.prose a{text-decoration:underline;text-underline-offset:2px}
.prose blockquote{border-left:4px solid var(--blue);background:var(--bg-soft);padding:14px 20px;border-radius:0 12px 12px 0;margin:0 0 24px;color:var(--muted);font-style:italic}

/* article figure (embedded graphics) */
.artfig{margin:26px 0;text-align:center}
.artfig img{width:100%;border:1px solid var(--line);border-radius:12px}
.artfig figcaption{font-size:.86rem;color:var(--muted);margin-top:8px;font-style:italic}

/* Dad's Quick Take */
.quicktake{background:#EAF1FB;border:1px solid #C9DBF3;border-radius:var(--radius);padding:22px 24px;margin:0 0 30px;position:relative}
.quicktake .label{display:inline-flex;align-items:center;gap:8px;font-family:'Fraunces',serif;font-weight:700;color:var(--blue);font-size:1.02rem;margin-bottom:6px}
.quicktake .label:before{content:"🎓"}
.quicktake p{margin:0;color:#2C3744;font-size:1.02rem}

/* Decoder / callout */
.callout{background:#FFF6E9;border:1px solid #F4D9A8;border-radius:var(--radius);padding:18px 22px;margin:0 0 26px}
.callout.red{background:#FBE7E9;border-color:#F2C0C6}
.callout .t{font-weight:700;color:var(--ink);margin-bottom:4px}
.callout p{margin:0;color:#5a4b34}
.callout.red p{color:#7a2230}

/* Checklist */
.checklist{list-style:none;margin:0 0 26px!important;padding:0}
.checklist li{position:relative;padding:0 0 10px 32px;margin:0;color:#2C3744}
.checklist li:before{content:"✓";position:absolute;left:0;top:-1px;width:22px;height:22px;background:var(--blue);color:#fff;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:700}

/* article meta */
.amETA{display:flex;gap:14px;align-items:center;color:var(--muted);font-size:.9rem;margin:8px 0 6px}
.tag-pill{display:inline-block;background:#EAF1FB;color:var(--blue);font-weight:600;font-size:.78rem;text-transform:uppercase;letter-spacing:.05em;padding:5px 12px;border-radius:999px}

/* FAQ */
.faq{border-top:1px solid var(--line);margin-top:10px}
.faq details{border-bottom:1px solid var(--line);padding:16px 0}
.faq summary{font-weight:600;cursor:pointer;list-style:none;font-size:1.05rem;color:var(--ink);display:flex;justify-content:space-between;gap:14px}
.faq summary:after{content:"+";color:var(--red);font-weight:700}
.faq details[open] summary:after{content:"–"}
.faq details p{margin:12px 0 0;color:var(--muted)}

/* related + back */
.related{background:var(--bg-soft);border-top:1px solid var(--line);padding:52px 0}
.backline{margin:30px 0 0}
.backline a{font-weight:600}

/* inline CTA in article */
.midcta{background:var(--bg-soft);border:1px dashed #C9DBF3;border-radius:var(--radius);padding:22px 24px;margin:30px 0;text-align:center}
.midcta p{margin:0 0 12px;color:var(--muted)}

/* ---------- Downloads / Printables ---------- */
.dl-featured{display:grid;grid-template-columns:auto 1fr;gap:32px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px;box-shadow:var(--shadow);max-width:900px;margin:0 auto}
.dl-featured img{width:210px;border:1px solid var(--line);border-radius:8px;display:block}
.dl-featured h3{font-size:1.5rem;margin-bottom:8px}
.dl-featured p{color:var(--muted);margin-bottom:18px;max-width:46ch}
@media(max-width:680px){.dl-featured{grid-template-columns:1fr;text-align:center}.dl-featured img{margin:0 auto;width:180px}.dl-featured p{margin-inline:auto}}
.dlgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
@media(max-width:900px){.dlgrid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.dlgrid{grid-template-columns:1fr}}
.dlcard{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;transition:.18s}
.dlcard:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.dlcard .thumb{background:var(--bg-soft);padding:14px;border-bottom:1px solid var(--line)}
.dlcard .thumb img{width:100%;border-radius:4px;display:block}
.dlcard .body{padding:18px;display:flex;flex-direction:column;flex:1}
.dlcard .cat{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--blue);margin-bottom:4px}
.dlcard h3{font-size:1.04rem;margin-bottom:14px;line-height:1.3}
.dlcard .btn{margin-top:auto;text-align:center;padding:11px 18px;font-size:.92rem}

/* ---------- Tools / calculators ---------- */
.calc{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:30px;max-width:640px;margin:0 auto;box-shadow:var(--shadow)}
.calc label{display:block;font-weight:600;color:var(--ink);margin:16px 0 6px;font-size:.96rem}
.calc label:first-child{margin-top:0}
.calc input,.calc select{width:100%;border:1.5px solid var(--line);border-radius:10px;padding:12px 14px;font-size:1rem;font-family:inherit;color:var(--ink)}
.calc input:focus,.calc select:focus{outline:none;border-color:var(--blue)}
.calc .row2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media(max-width:520px){.calc .row2{grid-template-columns:1fr}}
.calc-result{margin-top:24px;background:linear-gradient(135deg,var(--blue),var(--blue-dark));color:#fff;border-radius:14px;padding:24px;text-align:center}
.calc-result .big{font-family:'Fraunces',serif;font-size:2.3rem;font-weight:700;line-height:1.1}
.calc-result .sub{color:#C7D6EE;font-size:.95rem;margin-top:4px}
.calc-breakdown{margin-top:18px;text-align:left}
.calc-breakdown .r{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid rgba(255,255,255,.18);font-size:.98rem}
.calc-breakdown .r:last-child{border-bottom:0}
.calc-breakdown .r b{font-weight:700}
.calc-note{font-size:.84rem;color:var(--muted);text-align:center;margin-top:14px}
.tool-ico{font-size:1.7rem}

/* ---------- Guides index search ---------- */
.gsearch{max-width:560px;margin:0 auto 30px}
.gsearch input{width:100%;border:1.5px solid var(--line);border-radius:999px;padding:14px 22px;font-size:1.05rem;font-family:inherit}
.gsearch input:focus{outline:none;border-color:var(--blue)}
.gcount{text-align:center;color:var(--muted);font-size:.9rem;margin-bottom:24px}
.gindex{max-width:820px;margin:0 auto}
.gindex .ggroup{margin-bottom:26px}
.gindex .ghead{font-family:'Fraunces',serif;font-size:1.3rem;color:var(--blue);border-bottom:2px solid var(--line);padding-bottom:6px;margin-bottom:10px}
.gindex a.gitem{display:block;padding:11px 14px;border-radius:10px;border:1px solid var(--line);margin-bottom:8px;transition:.12s}
.gindex a.gitem:hover{border-color:#C9D8EE;background:var(--bg-soft)}
.gindex a.gitem b{color:var(--ink);font-weight:600}
.gindex a.gitem span{color:var(--muted);font-size:.9rem}
.gindex a.gitem .gcat{color:var(--red);font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em}

/* ---------- Resources ---------- */
.res-group{max-width:820px;margin:0 auto 22px}
.res-group h2{font-size:1.4rem;margin-bottom:6px}
.reslist{list-style:none;margin:0;padding:0}
.reslist li{padding:12px 0;border-bottom:1px solid var(--line)}
.reslist li a{font-weight:600}
.reslist li span{display:block;color:var(--muted);font-size:.92rem;margin-top:2px}
.help-box{max-width:820px;margin:0 auto 26px;background:#FBE7E9;border:1px solid #F2C0C6;border-radius:var(--radius);padding:22px 24px}
.help-box h2{color:#7a2230;font-size:1.3rem;margin-bottom:8px}
.help-box .line{padding:8px 0;border-bottom:1px solid #f2c0c6}
.help-box .line:last-child{border-bottom:0}
.help-box b{color:#7a2230}

/* path steps */
.pathsteps{max-width:760px;margin:0 auto;list-style:none;padding:0}
.pathstep{display:flex;gap:18px;padding:0 0 26px;position:relative}
.pathstep:not(:last-child):before{content:"";position:absolute;left:21px;top:44px;bottom:0;width:3px;background:var(--line)}
.pathstep .num{flex:0 0 auto;width:44px;height:44px;border-radius:50%;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center;font-family:'Fraunces',serif;font-weight:700;font-size:1.2rem}
.pathstep .body h3{font-size:1.12rem;margin-bottom:3px}
.pathstep .body h3 a{color:var(--ink)}.pathstep .body h3 a:hover{color:var(--blue)}
.pathstep .body p{color:var(--muted);font-size:.94rem}

/* ---------- Cookie bar ---------- */
.cookiebar{position:fixed;left:16px;right:16px;bottom:16px;z-index:150;background:#0B2347;color:#dce6f4;
  border-radius:14px;padding:14px 18px;display:flex;gap:16px;align-items:center;justify-content:space-between;
  box-shadow:0 14px 40px rgba(11,35,71,.4);font-size:.9rem;flex-wrap:wrap;max-width:760px;margin:0 auto}
.cookiebar a{color:#fff;text-decoration:underline}
.cookiebar button{flex:0 0 auto;background:var(--red);color:#fff;border:0;border-radius:999px;padding:9px 20px;font-weight:600;cursor:pointer;font-family:inherit}
.cookiebar button:hover{background:var(--red-dark)}
.foot-legal a{color:#7E96BC}
.foot-legal a:hover{color:#fff}

/* ---------- Glossary ---------- */
.gloss-nav{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:0 auto 30px;max-width:760px}
.gloss-nav a{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:8px;
  background:#EAF1FB;color:var(--blue);font-weight:700;font-size:.9rem}
.gloss-nav a:hover{background:var(--blue);color:#fff}
.gloss-group{max-width:760px;margin:0 auto 26px}
.gloss-letter{font-family:'Fraunces',serif;font-size:1.6rem;color:var(--red);border-bottom:2px solid var(--line);padding-bottom:6px;margin-bottom:14px}
.gloss-term{margin-bottom:16px}
.gloss-term dt{font-weight:700;color:var(--ink);font-size:1.05rem}
.gloss-term dd{color:var(--muted);margin-top:2px}

/* ---------- About / content ---------- */
.about-hero{display:grid;grid-template-columns:auto 1fr;gap:36px;align-items:center}
.about-hero img{width:200px;border-radius:50%}
@media(max-width:640px){.about-hero{grid-template-columns:1fr;text-align:center}.about-hero img{width:150px;margin:0 auto}}
.startgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
@media(max-width:900px){.startgrid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.startgrid{grid-template-columns:1fr}}
.contact-form{max-width:560px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px}
.contact-form input,.contact-form textarea{width:100%;border:1.5px solid var(--line);border-radius:12px;padding:13px 16px;font-size:1rem;font-family:inherit;margin-bottom:14px}
.contact-form textarea{min-height:140px;resize:vertical}
.contact-form input:focus,.contact-form textarea:focus{outline:none;border-color:var(--blue)}
.notfound{text-align:center;padding:70px 0}
.notfound .big{font-family:'Fraunces',serif;font-size:5rem;color:var(--blue);line-height:1}
.notfound .big b{color:var(--red)}

/* ---------- Download gate modal ---------- */
.dlmodal{position:fixed;inset:0;z-index:200;display:none;align-items:center;justify-content:center;
  background:rgba(11,35,71,.55);backdrop-filter:blur(3px);padding:20px}
.dlmodal.open{display:flex}
.dlmodal-card{background:#fff;border-radius:22px;max-width:440px;width:100%;padding:34px 32px 28px;
  position:relative;box-shadow:0 30px 70px rgba(16,44,92,.35);animation:dlpop .18s ease}
@keyframes dlpop{from{transform:translateY(12px);opacity:0}to{transform:none;opacity:1}}
.dlmodal-x{position:absolute;top:14px;right:16px;background:none;border:0;font-size:1.7rem;line-height:1;
  color:var(--muted);cursor:pointer}
.dlmodal-x:hover{color:var(--ink)}
.dlmodal-card h3{font-size:1.5rem;margin:6px 0 8px}
.dlmodal-card p{color:var(--muted);font-size:.96rem;margin-bottom:18px}
.dlmodal-card input[type=text],.dlmodal-card input[type=email]{width:100%;border:1.5px solid var(--line);
  border-radius:12px;padding:13px 16px;font-size:1rem;font-family:inherit;margin-bottom:12px}
.dlmodal-card input:focus{outline:none;border-color:var(--blue)}
.dlmodal-card .hp{position:absolute;left:-9999px}
.dlmodal-fine{font-size:.8rem;color:var(--muted);text-align:center;margin:12px 0 0}

/* ---------- The Book ---------- */
.book-hero{display:grid;grid-template-columns:1fr .82fr;gap:50px;align-items:center}
.book-hero .cover{justify-self:center}
.book-hero .cover img{width:min(330px,74vw);border-radius:8px;box-shadow:0 26px 60px rgba(16,44,92,.30);transform:rotate(-2deg);transition:.25s}
.book-hero .cover img:hover{transform:rotate(0) translateY(-4px)}
.book-meta .byline{color:var(--muted);font-size:1.08rem;margin:4px 0 18px}
.book-meta .blurb{font-size:1.12rem;color:var(--muted);margin:0 0 24px;max-width:40ch}
.buyrow{display:flex;gap:14px;flex-wrap:wrap;align-items:center}
.buynote{font-size:.86rem;color:var(--muted);margin-top:12px}
@media(max-width:820px){.book-hero{grid-template-columns:1fr;text-align:center}.book-hero .cover{order:-1}.book-meta .blurb{margin-left:auto;margin-right:auto}.buyrow{justify-content:center}}

.toc-list{list-style:none;margin:0;padding:0;display:grid;gap:12px;max-width:840px;margin-inline:auto}
.toc-row{display:flex;justify-content:space-between;gap:16px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:14px;padding:15px 20px;flex-wrap:wrap}
.toc-row .ch{font-family:'Fraunces',serif;font-weight:600;color:var(--ink);font-size:1.02rem}
.toc-row .num{color:var(--red);font-weight:700;font-family:'Fraunces',serif;margin-right:10px}
.toc-row .rel{font-size:.84rem;font-weight:600;white-space:nowrap}
.toc-extra{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:18px}
.toc-extra span{background:#EAF1FB;color:var(--blue);font-weight:600;font-size:.82rem;padding:7px 14px;border-radius:999px}

.author-card{display:grid;grid-template-columns:170px 1fr;gap:30px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:30px;max-width:840px;margin-inline:auto}
.author-card img{width:170px;border-radius:50%}
.author-card h3{font-size:1.4rem;margin-bottom:8px}
.author-card p{color:var(--muted)}
@media(max-width:620px){.author-card{grid-template-columns:1fr;text-align:center}.author-card img{width:140px;margin:0 auto}}

.bookband .wrap{display:grid;grid-template-columns:auto 1fr auto;gap:30px;align-items:center}
.bookband img{width:120px;border-radius:6px;box-shadow:0 12px 30px rgba(16,44,92,.22)}
.bookband h3{font-size:1.5rem;margin-bottom:6px}
.bookband p{color:var(--muted);max-width:48ch}
@media(max-width:760px){.bookband .wrap{grid-template-columns:1fr;text-align:center;justify-items:center}}

/* ---------- Footer ---------- */
footer{background:#0B2347;color:#AFC2DE;padding:54px 0 30px}
.foot-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr 1fr;gap:28px;margin-bottom:34px}
@media(max-width:960px){.foot-grid{grid-template-columns:1fr 1fr 1fr}}
@media(max-width:600px){.foot-grid{grid-template-columns:1fr 1fr}}
@media(max-width:420px){.foot-grid{grid-template-columns:1fr}}
footer .flogo img{height:46px;background:#fff;padding:8px 12px;border-radius:12px}
footer .flogo .fallback{font-family:'Fraunces',serif;font-weight:700;font-size:1.5rem;color:#fff}
footer .flogo .fallback b{color:#FF6B7A}
footer p.tagline{margin-top:14px;font-size:.92rem;max-width:24em}
footer h4{color:#fff;font-size:.95rem;margin-bottom:14px;letter-spacing:.04em}
footer ul{list-style:none}
footer ul li{margin-bottom:9px}
footer ul li a{font-size:.92rem;color:#AFC2DE}
footer ul li a:hover{color:#fff}
.foot-bottom{border-top:1px solid rgba(255,255,255,.12);padding-top:22px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:.85rem;color:#7E96BC}
.disclaimer{font-size:.8rem;color:#6C84AB;margin-top:14px;max-width:60ch}
