/* Shared navigation, rendered with a separate menu for each audience. */
.imagia-header{position:sticky;top:0;z-index:40;background:#fffdf8;border-bottom:1px solid #e4d8bf;color:#173954;font-family:'Nunito Sans',system-ui,sans-serif;box-shadow:0 3px 12px #142f4d08}
.imagia-header *{box-sizing:border-box}
.imagia-header .imagia-nav{width:min(1220px,calc(100% - 48px));min-height:88px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:24px}
.imagia-header a{color:inherit;text-decoration:none}
.imagia-header .imagia-brand{display:flex;align-items:center;gap:22px;flex-shrink:0;text-decoration:none}
.imagia-header .imagia-brand img{display:block;width:132px;height:80px;object-fit:contain}
.imagia-header .imagia-area{padding-left:22px;border-left:1px solid #d7d9d7;font-size:14px;line-height:1.3;font-weight:800}
.imagia-header .imagia-links{display:flex;align-items:center;gap:24px;font-size:14px;line-height:1.4;font-weight:800}
.imagia-header .imagia-links>a,.imagia-header summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:10px 0;white-space:nowrap;border:0;border-radius:0;background:none;color:inherit;cursor:pointer;font:inherit}
.imagia-header .imagia-links>a[aria-current=page]{color:#255695;box-shadow:0 2px #b28a3e}
.imagia-header .imagia-dropdown{position:relative;border:0;padding:0;margin:0;background:transparent}
.imagia-header summary{list-style:none}
.imagia-header summary::-webkit-details-marker{display:none}
.imagia-header summary:after{display:none}
.imagia-header summary span[aria-hidden]{font-size:17px;line-height:1;transition:transform .15s}
.imagia-header details[open]>summary span[aria-hidden]{transform:rotate(180deg)}
.imagia-header .imagia-dropdown-panel{position:absolute;top:calc(100% + 8px);right:-16px;min-width:268px;padding:12px;background:#fffdf8;border:1px solid #ddd4bf;border-radius:14px;box-shadow:0 14px 35px #15355022;font-size:14px}
.imagia-header .imagia-dropdown-panel a{display:block;padding:12px;border-radius:8px;min-height:44px;line-height:1.4;white-space:nowrap}
.imagia-header .imagia-dropdown-panel p{font-size:12px;font-weight:500;line-height:1.4;color:#53677a;margin:-8px 12px 12px}
.imagia-header .imagia-dropdown-panel a:hover,.imagia-header .imagia-dropdown-panel a:focus-visible{background:#edf3f7}
.imagia-header .imagia-links>.imagia-nav-cta{padding:12px 20px;min-height:46px;border:1px solid #b28a3e;border-radius:10px;background:linear-gradient(180deg,#326caf,#244f88);color:#fff;font-weight:800;font-size:13px;box-shadow:inset 0 1px #ffffff38,0 3px 0 #142f4d22}
.imagia-header .imagia-toggle{display:none;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 12px;border:1px solid #b9c7d8;border-radius:9px;background:#fffdf7;color:#173954;font:800 14px/1.4 system-ui,sans-serif;cursor:pointer}
.imagia-header :is(a,button,summary):focus-visible{outline:3px solid #7754b0;outline-offset:4px}
.imagia-header [hidden]{display:none!important}
.imagia-workspace-footer{display:flex;justify-content:center;flex-wrap:wrap;gap:16px 28px;padding:24px 20px 36px;color:#405d71;font:14px/1.5 system-ui,sans-serif}
.imagia-workspace-footer a{color:inherit;text-underline-offset:3px;margin-left:0}
.family-editor #main>section:not(#card-product):not(.editor-recovery),.family-editor #main>.product-jump{display:none!important}
.family-editor .editor-recovery{max-width:720px;margin:40px auto;padding:28px}.family-editor .editor-recovery a{margin:16px 16px 0 0}
.family-editor #card-product{padding-top:24px;scroll-margin-top:95px}
.family-editor #family-pilot-banner{font:14px/1.5 system-ui,sans-serif;padding:10px 16px}
.family-editor .school-preview-note{display:none}
.family-editor .editor-intro{max-width:46ch}
@media(max-width:1100px){.imagia-header .imagia-links{gap:18px}.imagia-header .imagia-area{font-size:12px;padding-left:14px}.imagia-header .imagia-brand{gap:14px}}
@media(max-width:900px){
 .imagia-header .imagia-nav{width:calc(100% - 32px);min-height:76px;gap:12px;flex-wrap:wrap}
 .imagia-header .imagia-brand img{width:104px;height:68px}
 .imagia-header .imagia-area{max-width:112px}
 .imagia-header.has-menu .imagia-toggle{display:inline-flex}
 .imagia-header .imagia-links{display:flex;flex-direction:column;align-items:stretch;gap:3px;width:100%;padding:8px 0 20px;border-top:1px solid #e4d8bf;max-height:calc(100dvh - 88px);overflow:auto;overscroll-behavior:contain}
 .imagia-header.has-menu:not(.menu-open) .imagia-links{display:none}
 .imagia-header .imagia-links>a,.imagia-header summary{padding:12px;font-size:15px;justify-content:space-between}
 .imagia-header .imagia-links>a[aria-current=page]{background:#edf3f7;border-radius:8px;box-shadow:none}
 .imagia-header .imagia-dropdown-panel{position:static;min-width:0;margin:0 8px 10px;padding:6px 8px;background:#f2f5f4;box-shadow:none;border:0;border-radius:8px}
 .imagia-header .imagia-dropdown-panel a{white-space:normal}
 .imagia-header .imagia-links>.imagia-nav-cta{justify-content:center;margin-top:8px}
}
@media(max-width:400px){.imagia-header .imagia-brand{gap:10px}.imagia-header .imagia-brand img{width:90px}.imagia-header .imagia-area{max-width:80px;padding-left:10px;font-size:11px}}
@media(prefers-reduced-motion:reduce){.imagia-header *{transition:none!important}}

.skip{position:fixed;top:-200px;left:16px;z-index:9999;padding:12px 18px;background:#fff;color:#173954;border:2px solid #315a95;border-radius:8px}.skip:focus{top:8px}
.account-identity{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:8px 20px;padding:6px max(16px,calc((100vw - 1220px)/2));border-top:1px solid #e4d8bf;font:13px/1.5 system-ui,sans-serif;overflow-wrap:anywhere}
.account-identity button{border:0;background:none;color:#24558a;text-decoration:underline;cursor:pointer;min-height:36px;font:inherit}
.family-entry-links{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin-top:24px;padding-top:20px;border-top:1px solid #d8d1bb}.family-entry-links h2{width:100%;font-size:1.2rem!important;margin:0}
.review-proof{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.review-proof canvas{width:100%;height:auto}.review-proof p{grid-column:1/-1}
.family-editor #editor-heading{font-size:clamp(1.8rem,4vw,2.4rem);line-height:1.15;margin:.5rem 0 1rem;scroll-margin-top:120px}
.family-editor .school-delivery{padding:16px;background:#f0f5f0;border:1px solid #b8cdb9;border-radius:12px;margin:0 0 20px}
.family-editor .quick-preview{margin-top:12px}
.family-editor #family-signout{display:none!important}
@media(max-width:900px){.family-editor .product-grid.is-editing{display:flex;flex-direction:column}.family-editor .product-grid.is-editing>.product-info{order:1;width:100%}.family-editor .product-grid.is-editing>.gallery{order:2;width:100%}.family-editor .quick-preview{width:100%}.account-identity{justify-content:flex-start;font-size:12px}}

/* Keep focused controls clear of the sticky header; release it on short screens. */
html{scroll-padding-top:160px}
@media(max-height:500px){.imagia-header{position:relative}html{scroll-padding-top:16px}}

/* Signed-in account menu keeps the same hierarchy as the sign-in dropdown. */
.imagia-header .imagia-account-identity{margin:0 12px 8px;padding:8px 0 14px;border-bottom:1px solid #e4d8bf;max-width:280px;line-height:1.5}
.imagia-header .imagia-account-caption{display:block;font-size:11px;font-weight:700;letter-spacing:.04em;color:#53677a}
.imagia-header .imagia-account-email{display:block;font-size:12px;font-weight:600;color:#173954;overflow-wrap:anywhere;white-space:normal}
.imagia-header .imagia-dropdown-panel .imagia-account-destination{white-space:normal;min-width:244px}
.imagia-header .imagia-account-destination strong{display:block;font-size:14px;font-weight:800;line-height:1.4}
.imagia-header .imagia-account-description{display:block;margin-top:5px;font-size:12px;font-weight:500;line-height:1.4;color:#53677a}
.imagia-header .imagia-account-signout{display:block;width:calc(100% - 24px);min-height:44px;margin:10px 12px 2px;padding:10px 12px;border:1px solid #d8dfdf;border-radius:8px;background:#f2f5f4;color:#173954;text-align:left;font:700 13px/1.4 'Nunito Sans',system-ui,sans-serif;cursor:pointer}
.imagia-header .imagia-account-signout:hover{background:#e7efed;border-color:#a7bdb7}
.imagia-header .imagia-account-signout:disabled{opacity:.65;cursor:wait}
@media(max-width:760px){.imagia-header .imagia-dropdown-panel .imagia-account-destination{min-width:0}.imagia-header .imagia-account-identity{max-width:none}}
