
:root{
  --kh-nav-navy:#0b2450;--kh-nav-blue:#3f72e6;--kh-nav-gold:#ffd267;
  --kh-nav-white:#fff;--kh-nav-muted:#9fb0cf;--kh-nav-line:rgba(255,255,255,.10);
}
body.kh-global-menu-open{overflow:hidden!important;touch-action:none}
.kh-global-header{position:relative;z-index:2100;width:100%;background:rgba(255,255,255,.96);border-bottom:1px solid rgba(19,48,91,.09);box-shadow:0 7px 28px rgba(19,48,91,.045);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.kh-global-header-inner{width:min(1220px,calc(100% - 48px));min-height:96px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:24px}
.kh-global-brand{display:inline-flex;align-items:center;color:#0d2242;text-decoration:none;min-width:0;max-width:min(100%,760px)}
.kh-global-brand-logo{display:block;width:auto;height:auto;max-height:62px;max-width:min(100%,420px);object-fit:contain;filter:drop-shadow(0 8px 18px rgba(11,36,80,.08))}
.kh-global-menu-toggle{width:49px;height:49px;flex:0 0 49px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:0;border:1px solid #dce4ef;border-radius:14px;background:#fff;box-shadow:0 8px 22px rgba(20,48,95,.07);cursor:pointer;transition:.16s ease}
.kh-global-menu-toggle:hover{transform:translateY(-1px);border-color:#b9c9e1;box-shadow:0 12px 28px rgba(20,48,95,.11)}
.kh-global-menu-toggle span{width:20px;height:2px;display:block;border-radius:999px;background:#102b58}
.kh-global-menu-overlay{position:fixed;inset:0;z-index:4800;background:rgba(2,10,25,.59);opacity:0;visibility:hidden;pointer-events:none;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);transition:opacity .24s ease,visibility .24s ease}
.kh-global-menu-overlay.open{opacity:1;visibility:visible;pointer-events:auto}
.kh-global-drawer{position:fixed;top:0;right:0;z-index:4900;width:min(430px,92vw);height:100dvh;display:flex;flex-direction:column;color:#fff;background:radial-gradient(circle at 88% 4%,rgba(72,119,246,.30),transparent 25%),radial-gradient(circle at 8% 92%,rgba(255,204,88,.09),transparent 22%),linear-gradient(160deg,#06142c 0%,#0b234c 52%,#081b3a 100%);border-left:1px solid rgba(255,255,255,.09);box-shadow:0 34px 90px rgba(0,0,0,.34);transform:translate3d(104%,0,0);visibility:hidden;transition:transform .32s cubic-bezier(.22,.76,.22,1),visibility .32s ease;overflow:hidden}
.kh-global-drawer::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.10;background:radial-gradient(circle,rgba(255,255,255,.8) 0 1px,transparent 1.4px) 0 0/45px 45px}
.kh-global-drawer.open{transform:translate3d(0,0,0);visibility:visible}
.kh-global-drawer-top{position:relative;z-index:2;min-height:86px;padding:19px 20px 17px 23px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--kh-nav-line)}
.kh-global-drawer-brand{display:flex;align-items:center;gap:12px;min-width:0;max-width:calc(100% - 52px)}
.kh-global-drawer-logo{display:block;width:auto;height:auto;max-height:48px;max-width:min(100%,300px);object-fit:contain;filter:drop-shadow(0 8px 20px rgba(0,0,0,.22))}
.kh-global-menu-close{width:43px;height:43px;flex:0 0 43px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.12);border-radius:13px;background:rgba(255,255,255,.055);color:#fff;font-size:27px;line-height:1;cursor:pointer}
.kh-global-drawer-scroll{position:relative;z-index:2;flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.18) transparent}
.kh-global-drawer-intro{padding:26px 24px 19px}
.kh-global-drawer-intro span{color:var(--kh-nav-gold);font-size:9px;font-weight:1000;letter-spacing:.13em}
.kh-global-drawer-intro p{margin:8px 0 0;max-width:330px;color:#aabbd9;font-size:11px;line-height:1.6}
.kh-global-menu-links{padding:0 16px 24px}
.kh-global-menu-label{padding:9px 10px 7px;color:#6f87ae;font-size:8px;font-weight:1000;letter-spacing:.15em}
.kh-global-menu-divider{height:1px;margin:13px 10px 10px;background:rgba(255,255,255,.075)}
.kh-global-menu-link{position:relative;min-height:59px;margin:3px 0;padding:10px 12px 10px 14px;display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid transparent;border-radius:15px;color:#d8e3f5;text-decoration:none;transition:.16s ease}
.kh-global-menu-link:hover{color:#fff;background:rgba(255,255,255,.055);border-color:rgba(255,255,255,.07);transform:translateX(-2px)}
.kh-global-menu-link.active{color:#fff;background:linear-gradient(110deg,rgba(57,105,218,.25),rgba(255,255,255,.045));border-color:rgba(112,154,255,.20);box-shadow:inset 3px 0 0 var(--kh-nav-gold)}
.kh-global-menu-link.active::after{content:"★";position:absolute;left:12px;top:7px;color:var(--kh-nav-gold);font-size:7px}
.kh-global-menu-link-main{min-width:0;display:block;padding-left:1px}
.kh-global-menu-link-main b,.kh-global-menu-link-main small{display:block}
.kh-global-menu-link-main b{font-size:11px;font-weight:1000;letter-spacing:.025em;line-height:1.25}
.kh-global-menu-link-main small{margin-top:4px;color:#8298bb;font-size:9px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kh-global-menu-link:hover small,.kh-global-menu-link.active small{color:#aebfe0}
.kh-global-menu-arrow{flex:0 0 auto;color:#7188ae;font-size:17px}
.kh-global-menu-count{min-width:29px;height:29px;padding:0 8px;flex:0 0 auto;display:grid;place-items:center;border-radius:999px;background:var(--kh-nav-gold);color:#11213d;font-size:9px;font-weight:1000}
.kh-global-menu-link.compact{min-height:45px}
.kh-global-signout-form{margin:7px 0 2px}
.kh-global-signout-form button{width:100%;min-height:42px;border:1px solid rgba(255,255,255,.09);border-radius:12px;background:rgba(255,255,255,.04);color:#9fb1d0;font-size:9px;font-weight:1000;letter-spacing:.05em;cursor:pointer}
.kh-global-drawer-footer{position:relative;z-index:2;min-height:79px;padding:16px 22px;display:flex;align-items:center;gap:11px;border-top:1px solid var(--kh-nav-line);background:rgba(2,12,29,.22)}
.kh-global-drawer-footer-star{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;border-radius:11px;background:rgba(255,210,103,.12);color:var(--kh-nav-gold);font-size:15px}
.kh-global-drawer-footer small,.kh-global-drawer-footer strong{display:block}
.kh-global-drawer-footer small{color:#758cad;font-size:7px;font-weight:1000;letter-spacing:.12em}
.kh-global-drawer-footer strong{margin-top:3px;color:#dce5f4;font-size:10px}
.site-header,.kh-account-header{display:none!important}
@media(max-width:720px){
 .kh-global-header-inner{width:calc(100% - 28px);min-height:78px;gap:14px}
 .kh-global-brand{max-width:calc(100% - 60px)}
 .kh-global-brand-logo{width:min(100%,250px);height:auto;max-height:48px}
 .kh-global-menu-toggle{width:45px;height:45px;flex-basis:45px;border-radius:13px}
 .kh-global-drawer{width:min(390px,92vw)}
 .kh-global-drawer-top{min-height:88px;padding:16px 16px 14px 19px}
 .kh-global-drawer-logo{width:min(100%,260px);height:auto;max-height:42px}
 .kh-global-drawer-intro{padding:22px 20px 15px}
 .kh-global-menu-links{padding-left:12px;padding-right:12px}
}
@media(prefers-reduced-motion:reduce){.kh-global-drawer,.kh-global-menu-overlay,.kh-global-menu-toggle,.kh-global-menu-link{transition:none!important}}

/* ============================================================
   KIDHEROART — UNIFIED CONTENT WIDTH
   Match the usable 1220px content width of the public logo/menu.
   Keep full-bleed section backgrounds and deliberately narrower cards.
   ============================================================ */
:root{
  --kh-page-max:1220px;
  --kh-page-gutter:24px;
  --kh-flow-max:var(--kh-page-max);
}

/* Shared reference: visible logo/menu edges. */
.kh-global-header-inner{
  width:min(var(--kh-page-max),calc(100% - (2 * var(--kh-page-gutter))));
}

/* Top-level full-bleed sections remain full width, their contents do not. */
.section-shell,
.kh-account-shell{
  width:100%;
  max-width:var(--kh-page-max);
  margin-inline:auto;
}
.section-space,
.gallery-main-section,
.gallery-confidence,
.gallery-controls-section{
  padding-inline:var(--kh-page-gutter);
}

/* These shells already own their own padding; account for it in the outer width. */
.hero-shell,
.gallery-hero-shell,
.footer-shell{
  box-sizing:border-box;
  width:100%;
  max-width:calc(var(--kh-page-max) + (2 * var(--kh-page-gutter)));
  padding-inline:var(--kh-page-gutter);
  margin-inline:auto;
}

/* Checkout/cart/intake/review use the same outer content grid. */
.flow-main{
  padding-inline:var(--kh-page-gutter) !important;
}
.flow-main > .flow-shell{
  max-width:var(--kh-page-max) !important;
}

/* My Account and My Order are the canonical content-width references. */
.kh-account-main,
.kh-order-page,
.payment-result-main{
  padding-inline:var(--kh-page-gutter);
}
.payment-result-main{
  width:100%;
  max-width:calc(var(--kh-page-max) + (2 * var(--kh-page-gutter)));
  margin-inline:auto;
}

/* Legal pages have no section-shell wrapper. */
main.section{
  box-sizing:border-box;
  width:100%;
  max-width:calc(var(--kh-page-max) + (2 * var(--kh-page-gutter)));
  margin-inline:auto;
  padding:70px var(--kh-page-gutter);
}

/* Keep the bottom footer row aligned with the top navigation. */
.footer-bottom{
  padding-inline:max(var(--kh-page-gutter),calc((100% - var(--kh-page-max))/2));
}

@media (max-width:720px){
  :root{--kh-page-gutter:14px;}
  /* Original gallery mobile rule uses !important; align it to nav edges. */
  .gallery-hero-shell{
    padding-inline:var(--kh-page-gutter) !important;
  }
  /* The gallery mobile rules add 18px of internal padding; avoid double gutters. */
  .gallery-controls-section .section-shell,
  .gallery-main-section .section-shell,
  .gallery-confidence .section-shell{
    padding-inline:0;
  }
}

/* Mobile's previous flow and gallery layout supplied separate horizontal gutters.
   Consolidate each into one nav-matching 14px inner gutter. */
@media (max-width:720px){
  .flow-main,
  .cart-flow-main,
  .intake-main.flow-main,
  .review-main.flow-main{
    padding-inline:0 !important;
  }
  .flow-main > .flow-shell{
    padding-inline:var(--kh-page-gutter) !important;
  }
  .gallery-main-section{
    padding-inline:var(--kh-page-gutter) !important;
  }
}

/* KidHeroArt unified public footer — same design as Home; shared by all public pages. */
.site-footer.kh-site-footer{display:block;position:relative;clear:both;width:100%;margin:0;background:#050e20;color:#fff;box-sizing:border-box;font-family:"Avenir Next","Segoe UI",Inter,system-ui,-apple-system,BlinkMacSystemFont,sans-serif}
.kh-site-footer,.kh-site-footer *{box-sizing:border-box}
.kh-site-footer .footer-shell{width:100%;max-width:calc(var(--kh-page-max,1220px) + 2 * var(--kh-page-gutter,24px));margin:0 auto;padding:54px var(--kh-page-gutter,24px);display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:80px}
.kh-site-footer .brand{display:flex;align-items:center;gap:11px;flex:none}
.kh-site-footer .brand-logo{display:block;width:auto;height:54px;max-width:min(100%,420px);filter:drop-shadow(0 12px 26px rgba(0,0,0,.20))}
.kh-site-footer .footer-brand p{max-width:390px;color:#8294b5;font-size:12px;line-height:1.65;margin:18px 0 0}
.kh-site-footer .footer-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:35px;min-width:0}
.kh-site-footer .footer-links strong{display:block;font-size:10px;letter-spacing:.13em;text-transform:uppercase;color:#d9e4fa;margin-bottom:14px;font-weight:800}
.kh-site-footer .footer-links a{display:block;color:#8194b7;text-decoration:none;font-size:12px;font-weight:400;margin:9px 0;line-height:1.45;overflow-wrap:break-word}
.kh-site-footer .footer-links a:hover,.kh-site-footer .footer-links a:focus-visible{color:#fff}
.kh-site-footer .footer-bottom{border-top:1px solid rgba(255,255,255,.08);padding:18px max(var(--kh-page-gutter,24px),calc((100% - var(--kh-page-max,1220px))/2));display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;color:#687a9b;font-size:10px;line-height:1.5}
@media(max-width:640px){
  .kh-site-footer .footer-shell{grid-template-columns:1fr;gap:35px;padding-top:44px;padding-bottom:40px}
  .kh-site-footer .footer-links{gap:20px}
  .kh-site-footer .footer-bottom{padding:18px var(--kh-page-gutter,14px);display:grid}
}
@media(max-width:430px){.kh-site-footer .footer-links{gap:12px}.kh-site-footer .footer-links a{font-size:11px}}
/* Keep the bottom bar readable when a customer has saved gallery favorites. */
@supports selector(body:has(.selection-bar.show)) {
  .gallery-page-body:has(.selection-bar.show) .kh-site-footer{padding-bottom:82px}
}

@media(max-width:420px){
 .kh-global-header-inner{width:calc(100% - 22px);gap:12px;min-height:74px}
 .kh-global-brand{max-width:calc(100% - 57px)}
 .kh-global-brand-logo{width:min(100%,228px);max-height:44px}
 .kh-global-menu-toggle{width:43px;height:43px;flex-basis:43px}
 .kh-global-drawer-logo{width:min(100%,240px);max-height:38px}
}


/* Shared public typography tokens come from site.css. Drawer-only overrides. */
.kh-global-drawer-intro span,
.kh-global-menu-label,
.kh-global-drawer-footer small { font-size: var(--kh-type-eyebrow, 11px); }
.kh-global-drawer-intro p { font-size: var(--kh-type-help, 14px); line-height: 1.55; color: #c0d0ed; }
.kh-global-menu-link-main b { font-size: var(--kh-type-help, 14px); line-height: 1.3; }
.kh-global-menu-link-main small {
  font-size: var(--kh-type-secondary, 12px);
  line-height: 1.45;
  color: #afc2e1;
  white-space: normal;
  text-overflow: clip;
}
.kh-global-menu-link { min-height: 65px; }
.kh-global-menu-link.compact { min-height: 49px; }
.kh-global-menu-count { font-size: var(--kh-type-secondary, 12px); }
.kh-global-drawer-footer strong { font-size: var(--kh-type-label, 13px); }
.kh-global-signout-form button { font-size: var(--kh-public-action-font-size, 14px); }
