
/* Shared layout: page-specific form widths must not resize the site header. */
.shell { box-sizing:border-box; width:100%; max-width:1180px; margin-inline:auto; }
.shell > .page { max-width:none; width:100%; margin:0 auto 70px; }
.site-header { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:20px; align-items:center; margin-bottom:34px; }
.site-header .main-nav { display:flex; flex-wrap:nowrap; justify-content:center; min-width:0; gap:4px; }
.site-header .nav-link { flex:none; white-space:nowrap; text-decoration:none; }
.site-header .account-menu { position:relative; margin:0; min-width:0; max-width:none; z-index:30; }
.site-header .account-menu summary { display:flex; align-items:center; gap:9px; min-width:0; width:auto; padding:8px; list-style:none; cursor:pointer; }
.site-header .account-menu summary::-webkit-details-marker { display:none; }
/* Keep the full identity in the dropdown; show it in the trigger when space allows. */
.site-header .account-name { display:block; min-width:0; max-width:160px; overflow-wrap:anywhere; white-space:normal; text-align:left; font-weight:800; line-height:1.3; }
.site-header .account-name small { display:block; margin-top:3px; font-size:12px; font-weight:500; color:#52708a; }
@media(max-width:1050px) { .site-header .account-name { display:none; } }
.site-header .account-avatar { display:grid; place-items:center; flex:none; width:36px; height:36px; border-radius:50%; background:#f27761; color:white; font-weight:800; }
.site-header .account-avatar { overflow:hidden; }
.site-header .account-avatar img { display:block; width:100%; height:100%; object-fit:cover; }
.site-header .account-chevron { margin:0; }
.site-header .account-dropdown { position:absolute; right:0; top:calc(100% + 8px); box-sizing:border-box; width:min(300px,calc(100vw - 32px)); padding:16px; background:white; border:1px solid #dce9df; border-radius:16px; box-shadow:0 12px 28px #14263d22; }
.site-header .account-dropdown a,.site-header .account-dropdown button { display:block; box-sizing:border-box; width:100%; padding:12px 8px; border:0; border-radius:8px; background:none; color:#14263d; text-decoration:none; text-align:left; font:inherit; font-weight:700; }
.site-header .account-dropdown a:hover,.site-header .account-dropdown button:hover { background:#e8f3f2; }
.account-heading { padding:4px 8px 12px; border-bottom:1px solid #e8eee9; }
.account-heading strong,.account-heading small { display:block; overflow-wrap:anywhere; }
.account-heading small { margin-top:6px; color:#52708a; }
.site-header .account-dropdown .sign-out { color:#e46354; }
.page > a[href="account.php#children"],.page > a[href="account.php"] { display:inline-flex; padding:8px 12px; margin-bottom:12px; border-radius:10px; background:#e8f3f2; color:#176b6d; font-weight:800; text-decoration:none; }
.page > a[href="account.php#children"]:hover,.page > a[href="account.php"]:hover { background:#d3ebe7; }
.family-updates{margin:24px 0;padding:22px 26px;border:1px solid #dce9df;border-radius:22px;background:#fffdf4}.family-updates h2{margin:4px 0 14px}.family-update-list{display:grid;gap:10px}.family-update-list article{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border-radius:14px;background:#f4faf7}.family-update-list article>span{font-size:22px}.family-update-list strong{display:block}.family-update-list p{margin:4px 0 0;color:#52708a;font-size:14px}
@media(max-width:700px) { .site-header { grid-template-columns:1fr auto; gap:12px; } .site-header .main-nav { grid-column:1/-1; grid-row:2; justify-content:flex-start; overflow-x:auto; padding-bottom:3px; } .site-header .account-menu { grid-column:2; grid-row:1; } }

/* Consistent controls and links across all shared-layout screens. */
.site-header .nav-link:hover,.site-header .nav-link.active { color:var(--text-accent,#176b6d); }
.shell :where(.eyebrow) { color:var(--text-accent,#176b6d); }
html { scrollbar-gutter:stable; }
.shell a.child-space-back { display:inline-flex; align-items:center; min-height:44px; padding:8px 12px; margin-bottom:12px; border-radius:10px; background:#e8f3f2; color:#176b6d; font-weight:800; text-decoration:none; }
.shell a.child-space-back:hover { background:#d3ebe7; }
.shell :where(a):not(.button):not(.nav-link):not(.brand-link):not(.lesson-button):not(.exam-button):not(.child-card):not(.family-child-card):not(.public-action):not(.spanish-enroll-cta):not(.adult-dashboard-button):not(.admin-action):not(.welcome-flow-link) { color:#176b6d; text-decoration-thickness:1px; text-underline-offset:3px; }
.shell :where(a:visited):not(.button):not(.nav-link):not(.brand-link):not(.lesson-button):not(.exam-button):not(.child-card):not(.family-child-card):not(.public-action):not(.spanish-enroll-cta):not(.adult-dashboard-button):not(.admin-action):not(.welcome-flow-link) { color:#176b6d; }
.shell :where(a,button,input,select,textarea,summary):focus-visible { outline:3px solid var(--focus-ring,#9a5600); outline-offset:3px; }
.shell :where(input,select,textarea) { max-width:100%; font:inherit; }
.shell :where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea) { min-height:44px; }
.shell :where(.button,.camera-button,.lesson-button,.exam-button) { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; border-radius:var(--radius-control,10px); font:inherit; font-weight:800; text-decoration:none; cursor:pointer; }
.shell a.button,.shell a.button:visited { color:white; }
.shell :where(.hero,.panel,.card,.admin-panel,.admin-hero) { overflow-wrap:anywhere; }
.shell > :where(.page,.admin-page,.child-page) { width:100%; max-width:none; margin:0 auto 48px; }
.shell .progress-grid { grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr)); }
.shell .badge-grid { grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr)); }
.shell .table-wrap { max-width:100%; overflow-x:auto; }
.shell .form input[type=file]::file-selector-button { border:0; border-radius:10px; padding:10px 14px; margin-right:10px; background:#f3a94b; color:#13243a; font:inherit; font-weight:800; cursor:pointer; }
.site-header .account-menu summary { min-height:44px; }
.site-header .account-dropdown { font-size:16px; }
.site-header .account-heading strong { font-size:18px; }
.site-header .account-heading small { font-size:14px; line-height:1.4; }
.shell .weekly-plan .weekly-subject-card ul { padding:0; margin:12px 0 0; list-style:none; display:grid; gap:8px; }
.shell .weekly-plan .weekly-subject-card li { position:relative; display:flex; align-items:center; padding:6px 44px 6px 0; min-height:44px; }
.shell .weekly-plan .weekly-subject-card li > span:first-child { position:absolute; right:0; top:50%; transform:translateY(-50%); width:34px; height:34px; display:grid; place-items:center; font-size:0; }
.shell .weekly-plan .weekly-subject-card li > span:first-child::after { content:'▶'; font-size:18px; color:#176b6d; }
.shell .weekly-plan .weekly-subject-card li.is-done > span:first-child::after { content:'✓'; display:grid; place-items:center; width:34px; height:34px; font-size:24px; font-weight:900; color:white; background:#277d65; border-radius:50%; }
.shell .weekly-plan .weekly-subject-card li.is-locked > span:first-child::after { content:none; }
.shell .weekly-plan .weekly-locked-message { position:absolute; right:0; top:50%; transform:translateY(-50%); width:34px!important; height:34px!important; padding:0!important; margin:0; display:grid!important; place-items:center!important; background:#25364d!important; border-radius:10px!important; font-size:0!important; }
.shell .weekly-plan .weekly-locked-message::before { content:'🔒'!important; font-size:21px!important; filter:none!important; }
@media(max-width:700px) { .shell { padding:20px 16px 40px; } .shell :where(.hero,.panel,.card,.admin-panel,.admin-hero) { padding:20px; } }
@media print { .site-header { display:none; } .shell { max-width:none; padding:0; } }

