/* ==========================================================================
   Figma round 4 (Hershey Nov 10 2026, after the independent review): the
   Figma sidebar (nine groups, the current one highlighted and open, the
   viewing-location card and the user at the bottom), the Figma top bar
   (breadcrumb, search, bell) and the Figma page titles (big Georgia title,
   one line, the page's main action). Screen only.
   ========================================================================== */
html.fg-shell .portal-nav.has-toggle .nav-drawer { display: flex; flex-direction: column; }
html.fg-shell .portal-nav.has-toggle .nav-drawer > .fig-main-nav { flex: 1 1 auto; overflow-y: auto; scrollbar-width: none; min-height: 0; }
html.fg-shell .fig-main-nav::-webkit-scrollbar { display: none; }
html.fg-shell .portal-nav.has-toggle .nav-drawer .fig-group-link { padding: 11px 12px; margin: 3px 0; gap: 13px; }
html.fg-shell .portal-nav.has-toggle .nav-drawer .fig-group-link .nav-badge { margin-left: auto; }
html.fg-shell .fig-subnav { display: flex; flex-direction: column; margin: 0 0 6px 24px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.12); }
html.fg-shell .nav-drawer .fig-sub-link { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 6px 10px; border-radius: 8px; color: #a9c3bf; font-size: 13px; font-weight: 500; text-decoration: none; background: none; border: 0; width: 100%; text-align: left; font-family: inherit; cursor: pointer; }
html.fg-shell .nav-drawer .fig-sub-link:hover { background: rgba(255,255,255,.07); color: #fff; }
html.fg-shell .nav-drawer .fig-sub-link.is-current { color: #fff; font-weight: 650; background: rgba(144,202,192,.10); }
html.fg-shell .nav-drawer .fig-sub-link .nav-badge { margin-left: auto; }
html.fg-shell .nav-drawer .fig-sub-link.portal-nav-lang-row { flex-wrap: wrap; cursor: default; }
html.fg-shell .nav-drawer .fig-sub-link.portal-nav-lang-row a { color: inherit; text-decoration: none; }
html.fg-shell .fig-side-bottom { flex: none; padding-top: 10px; }
html.fg-shell .fig-side-tablet { display: flex; flex-direction: column; margin-bottom: 8px; }
html.fg-shell .fig-side-tablet form { margin: 0; }
html.fg-shell a.fig-side-location { margin: 0 0 13px; text-decoration: none; color: #fff; }
html.fg-shell a.fig-side-location:hover { background: rgba(255,255,255,.09); }
html.fg-shell .fig-side-location .fig-location-text { flex: 1 1 auto; }
html.fg-shell .fig-location-chev { color: #85a8a2; display: grid; place-items: center; transform: rotate(0deg); }
html.fg-shell .fig-side-user { display: flex; align-items: center; gap: 9px; padding: 10px 8px 0; border-top: 1px solid rgba(255,255,255,.1); color: #fff; }
html.fg-shell .fig-avatar { width: 30px; height: 30px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; background: #e7efed; color: #35524c; font-size: 10px; font-weight: 750; border: 2px solid #fff; box-sizing: border-box; }
html.fg-shell .fig-user-text { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; font-size: 12px; }
html.fg-shell .fig-user-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
html.fg-shell .fig-user-text small { color: #91aba7; font-size: 11px; }
html.fg-shell .fig-user-out { color: #91aba7; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; }
html.fg-shell .fig-user-out:hover { color: #fff; background: rgba(255,255,255,.08); }

/* Top bar: "Daycare / Group" over the page, search, bell. */
html.fg-shell .fig-crumbs { text-decoration: none; min-width: 210px; }
html.fg-shell .fig-crumb-line { display: block; font-size: 10px; color: #84908c; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 340px; }
html.fg-shell .fig-crumbs .fig-topbar-page { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 340px; }
html.fg-shell .fig-search { margin: 0 0 0 auto; height: 36px; width: 260px; border: 1px solid var(--fg-line); border-radius: 9px; display: flex; align-items: center; gap: 8px; color: #88928e; padding: 0 9px; background: #f8faf8; box-sizing: border-box; }
html.fg-shell .fig-search:focus-within { border-color: var(--fg-teal); background: #fff; box-shadow: 0 0 0 3px rgba(36,111,102,.12); }
html.fg-shell .fig-search input { border: 0; background: transparent; outline: 0; min-width: 0; flex: 1; font-size: 12px; color: var(--fg-ink); padding: 0; height: 34px; box-shadow: none; font-family: inherit; }
html.fg-shell .fig-search kbd { font-size: 9px; border: 1px solid #d8dfda; border-radius: 4px; padding: 2px 4px; background: #fff; color: #88928e; font-family: inherit; white-space: nowrap; }
html.fg-shell .fig-bell { position: relative; width: 36px; height: 36px; flex: none; border: 1px solid var(--fg-line); border-radius: 9px; background: #fff; color: #56635f; display: grid; place-items: center; }
html.fg-shell .fig-bell:hover { border-color: #aab8b2; color: var(--fg-ink); }
html.fg-shell .fig-bell i { position: absolute; right: 7px; top: 7px; width: 6px; height: 6px; background: #d36d4f; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
html.fg-shell .fig-search ~ .portal-nav-home, html.fg-shell .fig-bell ~ .portal-nav-home { margin-left: 0; }

/* Page titles (Figma .page-title): big Georgia title, one line, actions. */
.fig-page-title { display: none; }
html.fg-shell .fig-page-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 0 0 22px; }
html.fg-shell .fig-eyebrow { display: block; color: var(--fg-teal); font-size: 12px; font-weight: 650; margin-bottom: 6px; min-height: 1em; }
html.fg-shell .fig-h1 { font-family: var(--fg-serif); font-size: clamp(27px, 3vw, 36px); line-height: 1.08; letter-spacing: -.9px; margin: 0 0 6px; font-weight: 600; color: var(--fg-ink-strong); }
html.fg-shell .fig-page-copy { color: var(--fg-muted); font-size: 13px; margin: 0; }
html.fg-shell .fig-page-actions { display: flex; gap: 10px; flex: none; }
html.fg-shell .fig-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 15px; border-radius: 9px; border: 1px solid var(--fg-line); background: #fff; color: var(--fg-ink); font-size: 13px; font-weight: 650; text-decoration: none; white-space: nowrap; box-shadow: 0 1px 2px rgba(25,46,40,.04); }
html.fg-shell .fig-btn:hover { border-color: #aab8b2; }
html.fg-shell .fig-btn.is-primary { background: var(--fg-teal); border-color: var(--fg-teal); color: #fff; box-shadow: 0 2px 5px rgba(36,111,102,.18); }
html.fg-shell .fig-btn.is-primary:hover { background: var(--fg-teal-dark); }
/* Every other inner page: its own first title in the Figma serif. */
html.fg-shell main#main h1:not(.sr-only):not(.visually-hidden) { font-family: var(--fg-serif); font-weight: 600; letter-spacing: -.6px; color: var(--fg-ink-strong); }
@media (min-width: 821px) {
    html.fg-shell main#main h1:not(.sr-only):not(.visually-hidden) { font-size: clamp(27px, 2.6vw, 34px); line-height: 1.1; }
    /* Attendance: the labelled History / Daily sheet buttons are in the title row. */
    html.fg-shell #figAttendanceHead ~ * .roster-shortcut, html.fg-shell .kids-grid #rosterDaySheetLink, html.fg-shell .kids-grid #rosterHistoryLink { display: none !important; }
}
@media (max-width: 1100px) {
    html.fg-shell .fig-search { width: 200px; }
    html.fg-shell .fig-search kbd { display: none; }
}
@media (max-width: 820px) {
    html.fg-shell .fig-search { display: none; }
    html.fg-shell .fig-crumbs { min-width: 0; flex: 1 1 auto; }
    html.fg-shell .fig-crumb-line, html.fg-shell .fig-crumbs .fig-topbar-page { max-width: 52vw; }
    html.fg-shell .fig-page-title { flex-direction: column; align-items: stretch; gap: 14px; margin-bottom: 16px; }
    html.fg-shell .fig-page-actions .fig-btn { flex: 1 1 0; justify-content: center; }
    /* Phone keeps the toolbar's own History / Daily sheet buttons. */
    html.fg-shell #figAttendanceHead .fig-page-actions { display: none; }
    html.fg-shell #figAttendanceHead .fig-h1 { font-size: 26px; }
}
html.fg-shell .fig-search input[type="search"], html.fg-shell .fig-search input[type="search"]:focus { border: 0 !important; box-shadow: none !important; background: transparent !important; outline: 0 !important; margin: 0; border-radius: 0; min-height: 0; -webkit-appearance: none; appearance: none; }
@media (min-width: 821px) { html.fg-shell .container:has(#figOverviewHead) > .portal-brand { display: none; } }
html.fg-shell .portal-nav-brand.fig-crumbs { align-items: flex-start; text-align: left; }
/* The Figma title replaces the old one on Overview (all widths). */
html.fg-shell #figOverviewHead ~ .portal-header > div > h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.fg-shell .container:has(#figOverviewHead) > .portal-brand { display: none; }
@media (max-width: 820px) {
    html.fg-shell .portal-nav.has-toggle .portal-nav-inner { flex-wrap: nowrap; gap: 8px; }
    html.fg-shell .portal-nav-brand.fig-crumbs { flex: 1 1 0; min-width: 0; overflow: hidden; }
    html.fg-shell .portal-nav .portal-nav-home { flex: none; }
}
