/* shared header + footer, one source for every page (Diva 639). Generated from the home page rules. */
html body .site-header, html body .foot { --bg:#FEF8F4;--ink:#3A2A2C;--maroon:#5A2A33;--soft:#7A6468;--line:#E6D5CD;--rose:#D9A4A8; --sage:#8DA57F;--sage-deep:#5B7352;--sage-pale:#E7EEDF;--gold:#B67F45; --peach:#FBE4D4;--pink:#F9DDE0;--lav:#EBE4F4;--lav-d:#DCD3EC;--cream:#FFFDFB;--butter:#FBEBCB; --pad:24px;--serif:'Cormorant Garamond',Georgia,serif;--sans:'DM Sans',system-ui,sans-serif; --wave-lav:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpath fill='%23EBE4F4' d='M0 34C240 -6 470 64 760 34S1230 2 1440 40V160C1200 198 1000 146 720 168S240 196 0 156Z'/%3E%3C/svg%3E"); --wave-sage:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpath fill='%23E7EEDF' d='M0 40C220 4 460 70 740 40S1240 8 1440 44V158C1200 196 990 148 720 170S250 196 0 154Z'/%3E%3C/svg%3E"); --wave-foot:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%23EBE4F4' d='M0 50C260 10 520 90 800 52S1250 14 1440 46V120H0Z'/%3E%3C/svg%3E"); --sy:26px; font:400 17px/1.6 var(--sans); color:var(--ink); }
html body .site-header .wrap, html body .foot .wrap { width:100%; max-width:1280px; margin:0 auto; padding:0 var(--pad); }
@media (min-width:768px){ html body .site-header, html body .foot { --pad:40px } }
@media (min-width:1024px){ html body .site-header, html body .foot { --pad:56px; --sy:34px } }
html body .site-header a:focus-visible, html body .foot a:focus-visible { outline:2px solid var(--maroon); outline-offset:3px; border-radius:4px }
html body .site-header svg, html body .foot svg { display:block }
html body .site-header p, html body .foot p { margin:0 }
html body .skip{position:absolute;left:-999px;top:8px;background:var(--maroon);color:#fff;padding:10px 16px;z-index:100;text-decoration:none}
html body .skip:focus{left:8px}
html body .foot a { color:inherit }
html body .logo-e, html body .logo-w {display:block;flex:none;background:url(img/logo.png) no-repeat}
html body .logo-e {aspect-ratio:710/610;background-size:169% auto;background-position:51% 17.8%}
html body .logo-w {aspect-ratio:800/240;background-size:150% auto;background-position:51.25% 75.5%}
html body .brand-logo {display:flex;align-items:center;gap:10px;min-height:44px;text-decoration:none}
html body .brand-logo .logo-e {height:44px}
html body .brand-logo .logo-w {height:34px}
html body .site-header .btn {display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:56px;padding:0 32px;background:var(--sage-deep);color:#fff;text-decoration:none;font:500 19px/1 var(--serif);letter-spacing:.01em;border-radius:999px;border:0;cursor:pointer;transition:background .2s,transform .2s;box-shadow:0 8px 20px rgba(91,115,82,.22)}
html body .site-header .btn:hover {background:#4A6042;transform:translateY(-1px)}
html body .site-header .btn-sm {min-height:46px;padding:0 24px;font-size:17px;box-shadow:none}
html body .site-header .arr {font-size:1.1em}
html body .site-header {position:sticky;top:0;z-index:50;background:rgba(254,248,244,.94);backdrop-filter:blur(8px)}
html body .site-header .bar {display:flex;align-items:center;justify-content:space-between;min-height:72px}
html body .nav {display:none}
html body .burger {display:flex;flex-direction:column;justify-content:center;gap:6px;width:48px;height:48px;padding:0 12px;background:none;border:0;cursor:pointer}
html body .burger span {display:block;height:2px;background:var(--maroon);border-radius:2px;transition:transform .2s,opacity .2s}
html body .burger[aria-expanded=true] span:nth-child(1) {transform:translateY(8px) rotate(45deg)}
html body .burger[aria-expanded=true] span:nth-child(2) {opacity:0}
html body .burger[aria-expanded=true] span:nth-child(3) {transform:translateY(-8px) rotate(-45deg)}
html body .nav.open {display:flex;flex-direction:column;position:absolute;left:0;right:0;top:100%;background:var(--bg);padding:12px var(--pad) 24px;border-bottom:1px solid var(--line)}
html body .nav .nl {display:flex;align-items:center;min-height:52px;text-decoration:none;font-size:18px;border-bottom:1px solid var(--line);color:var(--ink)}
html body .nav .nav-cta {margin-top:18px}
html body .foot {padding:56px 0 54px;background:var(--wave-foot) center bottom/100% 100% no-repeat}
html body .foot-grid {display:flex;flex-direction:column;gap:18px;align-items:flex-start}
html body .by {color:var(--soft);font-size:16px}
html body .soc {display:flex;flex-direction:column;gap:2px;width:100%}
html body .soc a {display:flex;align-items:center;gap:12px;min-height:46px;text-decoration:none;font-size:17px}
html body .soc svg {width:24px;height:24px;color:var(--maroon)}
html body .legal {display:flex;gap:14px;font-size:14px;color:var(--soft)}
html body .by-link {color:var(--maroon);text-underline-offset:3px;text-decoration-thickness:1px}
html body .by-link:hover {color:var(--sage-deep)}
html body .legal a {display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:48px}
@media (min-width:1024px){
  html body .site-header .btn {font-size:20px}
  html body .site-header .bar {min-height:76px;gap:28px}
  html body .burger {display:none}
  html body .nav {display:flex;align-items:center;gap:6px;flex:1;margin-left:20px;padding-left:34px;border-left:1px solid var(--line);height:44px}
  html body .nav .nl {border:0;min-height:40px;padding:0 20px;border-radius:999px;font-size:17px}
  html body .nav .nl.is-on {background:var(--peach)}
  html body .nav .nav-cta {margin:0 0 0 auto}
  html body .foot {padding:44px 0 62px}
  html body .foot-grid {display:grid;grid-template-columns:auto 1fr auto;align-items:center;column-gap:36px;row-gap:6px}
  html body .by {padding-left:36px;border-left:1px solid var(--line)}
  html body .soc {flex-direction:row;gap:34px;width:auto}
  html body .legal {grid-column:1/-1;justify-content:flex-start}
}
@media (prefers-reduced-motion:reduce){
  html body .site-header .btn, html body .burger span {transition:none}
}
@media (min-width:1024px){
  html body .nav .nl {min-height:44px}
  html body .foot-grid {grid-template-columns:auto 1fr auto auto}
  html body .legal {grid-column:auto;justify-content:flex-end;margin-left:20px}
}
html body .foot {padding-top:calc(var(--sy) + 4px)!important}
html body .foot {padding-top:calc(var(--sy) + 2px)!important;padding-bottom:36px!important}
html body .site-header .wrap, html body .foot .wrap { max-width:1400px }
html body .site-header .nav .nl, html body .site-header .btn { white-space:nowrap }
html body .site-header { position:sticky; top:0; z-index:50; background:rgba(254,248,244,.94); backdrop-filter:blur(8px) }
@media (min-width:1024px){ html body .site-header .nav .nl { padding:0 16px; font-size:16px } }
/* Diva 650: mobile menu identical on every page (style.css .nav centering must not leak in) */
html body .site-header { border-bottom:0 }
@media (max-width:1023px){
  html body .site-header .nav.open { align-items:stretch; justify-content:flex-start; gap:0; text-align:left }
  html body .site-header .nav.open .nl { justify-content:flex-start; text-align:left; padding:0; font-size:18px; min-height:52px }
  html body .site-header .nav.open .nav-cta { margin-top:18px; align-self:stretch; justify-content:center; padding:0 32px }
}
/* Diva 661: identical nav on every page, style.css/quiz.css/about.css must not leak into mobile header */
@media (max-width:1023px){
  html body .site-header .bar { gap:0 }
  html body .site-header .nav { gap:0 }
  html body .site-header .nav .nl { padding:0 }
}

/* Diva 676 QA: tap targets >=44px on touch for inline links */
@media (max-width:1023px){ html body .readmore, html body .by-link { display:inline-block; padding:11px 4px; margin:-11px -4px } }
