/* Editorial layouts, scoped to family guides. No scripts or hidden content. */
/* Long contents and topic jumps should arrive immediately, including at high zoom. */
html:has(.family-guide),html:has(.blog-hub-hero){scroll-behavior:auto}
.blog-hub-hero{background:#f4f0e7;border-bottom:1px solid #e2dfd1}
.blog-hub-hero h1{max-width:850px;font-size:clamp(2.6rem,5.2vw,4.6rem);line-height:1.09}
.blog-hub-hero .eyebrow,.guide-hero .eyebrow{font-size:.78rem;color:#376253;letter-spacing:.12em}
.blog-hub-hero .guide-topics{display:flex;flex-wrap:wrap;gap:10px;margin:30px 0 20px}
.blog-hub-hero .guide-topics a{display:inline-flex;align-items:center;justify-content:space-between;gap:28px;padding:12px 18px;margin:0;border-radius:8px;background:#fffdf8;font-size:.95rem;font-weight:650;color:#234c40}
.blog-hub-hero .guide-topics a:hover{background:#e7eddf;border-color:#718874}
.blog-hub-hero .guide-hub-note{font-size:.9rem;margin:0;color:#536459}
.guide-category[id]{scroll-margin-top:24px}
.guide-category-heading{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);align-items:end;gap:60px;margin-bottom:32px}
.guide-category-heading .eyebrow{font-size:.75rem;margin-bottom:14px}
.guide-category-heading h2{font-size:clamp(1.8rem,3vw,2.65rem);max-width:600px;margin:0}
.guide-category-heading>p{max-width:410px;margin:0;color:var(--muted)}
.guide-category .cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}
.guide-card{position:relative;border-radius:16px;display:flex;flex-direction:column;box-shadow:0 3px 0 #183b3504}
.guide-card .guide-art{border-bottom:1px solid #e3e7dc;background:#f5efdf}
.guide-card .guide-art svg{aspect-ratio:2/1;object-fit:cover}
.guide-card .card-body{display:flex;flex-direction:column;align-items:start;flex:1;padding:26px}
.guide-card .guide-card-meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 16px;width:100%;font-size:.75rem;line-height:1.5;color:#496257;margin-bottom:18px}
.guide-card .guide-card-meta span:first-child{font-weight:700}
.guide-card h3{font-size:1.4rem;line-height:1.3;letter-spacing:-.025em}
.guide-card h3 a{text-decoration:none}
.guide-card h3 a::after{content:'';position:absolute;inset:0;border-radius:16px}
.guide-card:focus-within{outline:3px solid #1975ba;outline-offset:5px}
.guide-card h3 a:focus-visible{outline:none}
.guide-card:hover{border-color:#829b86}
.guide-card h3 a:hover{text-decoration:underline;text-decoration-thickness:1px}
.guide-card .card-body>p:not(.guide-card-meta){font-size:1rem;margin-bottom:24px}
.guide-card-read{margin-top:auto;border-top:1px solid #e0e7df;padding-top:16px;width:100%;display:flex;justify-content:space-between;font-size:.9rem;font-weight:700;color:#2c5a49}
.guide-hub-next{background:#f6f3eb;border-top:1px solid #e3e5da}
.guide-hub-next>.wrap{display:flex;align-items:center;justify-content:space-between;gap:40px}
.guide-hub-next h2{font-size:clamp(1.8rem,3vw,2.6rem)}
.guide-hub-next p:last-child{margin-bottom:0;max-width:620px}
.guide-hub-next .button{flex-shrink:0}
.guide-hero{padding-block:28px 48px;background:#f4f0e7;border-bottom:1px solid #e2dfd1}
.guide-breadcrumbs{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;margin-bottom:28px;font-size:.85rem;color:#3d6052}
.guide-breadcrumbs a{display:inline-flex;align-items:center;min-height:44px;text-decoration-thickness:1px}
.guide-hero-grid{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:48px}
.guide-hero h1{font-size:clamp(2.2rem,3.8vw,3.5rem);line-height:1.14;letter-spacing:-.04em;margin-bottom:20px}
.guide-hero .guide-hero-grid p:not(.eyebrow){font-size:1.1rem;line-height:1.65;margin-bottom:18px}
.guide-hero-art{max-width:430px;width:100%;justify-self:end}
.guide-jump{display:inline-flex;align-items:center;gap:18px;min-height:44px;font-size:.9rem;font-weight:700;text-decoration-thickness:1px}
.guide-reading-layout{display:grid;grid-template-columns:minmax(220px,280px) minmax(0,720px);justify-content:center;gap:64px;padding-block:64px 72px}
.guide-sidebar{min-width:0}
.guide-contents{position:sticky;top:130px;border-top:3px solid #809376;padding-top:22px}
.guide-contents h2{font-size:1rem;letter-spacing:0;margin-bottom:16px}
.guide-contents ol{list-style:none;counter-reset:contents;padding:0;margin:0 0 18px}
.guide-contents li{counter-increment:contents;border-bottom:1px solid #e1e7df}
.guide-contents li a{display:grid;grid-template-columns:1.1rem 1fr;gap:10px;padding:12px 0;font-size:.88rem;line-height:1.5;text-decoration:none}
.guide-contents li a::before{content:counter(contents,decimal-leading-zero);color:#55715b;font-size:.7rem;padding-top:3px;font-weight:700}
.guide-contents a:hover{text-decoration:underline}
.guide-back{display:inline-flex;align-items:center;min-height:44px;font-size:.85rem;text-decoration-thickness:1px}
.guide-prose{max-width:none;min-width:0;font-size:1.08rem;line-height:1.8}
.guide-prose>p:first-child{font-size:1.18rem;color:#294c43;line-height:1.75}
.guide-prose p{color:#455b52;margin-bottom:24px}
.guide-prose h2{font-size:1.65rem;letter-spacing:-.025em;line-height:1.3;margin:2.1em 0 .8em;scroll-margin-top:24px}
.guide-prose a:not(.button){color:#255b49;text-decoration-thickness:1px}
.guide-prose:focus,.guide-prose h2:focus{outline:none}
.guide-prose h2:target{border-left:3px solid #819674;padding-left:14px}
#guide-content,#guide-top{scroll-margin-top:24px}
.guide-next-step{padding:30px;background:#f3f6ef;border:1px solid #dbe3d5;border-radius:14px;margin:48px 0 20px}
.guide-next-step .eyebrow{font-size:.73rem;color:#3d6954;margin:0 0 14px}
.guide-next-step h2{font-size:1.5rem;margin:0 0 18px}
.guide-next-step .button{font-size:.95rem}
.guide-next-step .guide-next-note{font-size:.8rem;line-height:1.5;margin:16px 0 0}
.guide-back-top{display:inline-flex;align-items:center;gap:16px;min-height:44px;font-size:.85rem}
.guide-related{background:#f5f3eb;border-top:1px solid #e2e5d9}
.guide-related-heading{display:flex;align-items:center;justify-content:space-between;gap:30px;margin-bottom:30px}
.guide-related-heading h2{font-size:clamp(1.7rem,3vw,2.5rem);margin:0}
.guide-related-heading>a{display:inline-flex;align-items:center;min-height:44px;flex-shrink:0;font-size:.9rem}
.guide-related .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
.guide-related .guide-card{display:grid;grid-template-columns:minmax(130px,.7fr) minmax(0,1fr)}
.guide-related .guide-art{display:flex;align-items:center;border:0}
.guide-related .guide-art svg{aspect-ratio:5/3}
.guide-related .guide-card h3{font-size:1.15rem}
.guide-related .guide-card .card-body{padding:24px}
.guide-related .guide-card .card-body>p:not(.guide-card-meta){font-size:.9rem}
@media(max-width:1100px){.guide-reading-layout{gap:40px;grid-template-columns:220px minmax(0,1fr)}.guide-related .guide-card{display:flex}.guide-category .cards{grid-template-columns:repeat(2,minmax(0,1fr))}.guide-contents{top:125px}}
@media(max-width:800px){
 .guide-category-heading{grid-template-columns:1fr;gap:16px}.guide-category-heading>p{max-width:600px}
 .guide-hero-grid{grid-template-columns:minmax(0,1fr);gap:20px}.guide-hero-art{display:none}
 .guide-hero{padding-block:16px 32px}.guide-breadcrumbs{margin-bottom:18px}.guide-hero .eyebrow{margin-bottom:18px}
 .guide-hero h1{font-size:clamp(2rem,5.8vw,2.8rem)}
 .guide-reading-layout{grid-template-columns:minmax(0,1fr);gap:32px;padding-block:32px 48px}
 .guide-contents{position:static;border:1px solid #dce4d6;border-top:3px solid #809376;border-radius:0 0 12px 12px;padding:22px 24px 12px;background:#fafbf7}
 .guide-contents ol{margin-bottom:6px}.guide-contents li:last-child{border-bottom:0}.guide-contents .guide-back{display:none}
 .guide-prose{font-size:1rem}.guide-prose>p:first-child{font-size:1.08rem}.guide-prose h2{font-size:1.45rem;scroll-margin-top:12px}
 #guide-content,#guide-top{scroll-margin-top:12px}.guide-next-step{padding:24px;margin-top:36px}
 .guide-hub-next>.wrap{align-items:start;flex-direction:column;gap:24px}
 .guide-related-heading{align-items:start;flex-direction:column;gap:10px}
}
@media(max-width:560px){
 .blog-hub-hero .guide-topics{gap:8px}.blog-hub-hero .guide-topics a{font-size:.85rem;padding:11px 13px;gap:14px}
 .guide-category .cards,.guide-related .cards{grid-template-columns:minmax(0,1fr);gap:24px}
 .guide-card .guide-art svg{aspect-ratio:2.4/1}.guide-related .guide-art svg{aspect-ratio:2.4/1}
 .guide-card h3{font-size:1.35rem}.guide-contents{padding-inline:20px}.guide-next-step .button{width:100%;text-align:center}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media print{.guide-sidebar,.guide-hero-art,.guide-jump,.guide-related,.guide-next-step,.guide-back-top{display:none}.guide-reading-layout{display:block;padding:24px 0}.guide-prose{max-width:70ch;margin:auto}.guide-hero{background:none;padding:20px 0}.guide-prose h2{break-after:avoid}.guide-prose p{orphans:3;widows:3}}
@media(max-height:650px){.guide-contents{position:static}}
