/* The showcase's global layer, in the explorer's register (Kit v5 tokens, kit/v5-tokens.css).
   G6 Glass result tiles over the photo band: the chart library's story-site stats band (chassis.css lines 349 to 375,
   .glass, .kpi-title, .kpi-value, .kpi-context), on the tiles each page already builds (kit.js kpiTile); the band stays.
   G3 The expanded chart: the insights site's large preview window (gallery.css .gm), as one dialog (expand.js).
   G8 The rail: the narrow control at rest at the rail's foot, and the names of the narrowed rail's icons as tooltips. */

/* ---------- G6 glass result tiles */
#work .card-glass.glass {
  padding: 24px 22px 22px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--k-r-tile, 22px);
  background: rgba(255, 252, 247, 0.8);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 1px 2px rgba(10, 25, 48, 0.08), 0 30px 60px -40px rgba(10, 25, 48, 0.55);
}
#work .glass .kpi-title { font-family: var(--font-heading); font-size: 0.62rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: var(--color-navy-700); margin-bottom: 12px; min-height: 0; }
#work .glass .kpi-value { font-family: var(--font-heading); font-weight: 600; font-size: clamp(2rem, 2.6vw, 2.6rem); line-height: 1; letter-spacing: -0.02em; color: var(--color-navy-900); font-variant-numeric: tabular-nums; min-height: 0; }
#work .glass .kpi-value[data-flag="true"] { color: var(--hue-coral); }
#work .glass .kpi-context { font-size: 0.86rem; line-height: 1.5; color: var(--color-navy-700); margin-top: 10px; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { #work .card-glass.glass { background: rgba(255, 252, 247, 0.96); } }
@media print { #work .card-glass.glass { background: #fff; backdrop-filter: none; box-shadow: none; } }

/* ---------- G3 the "Open large" button in a card's head, and the dialog */
.xl-head { display: flex; align-items: flex-start; gap: 12px; }
.xl-open { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -8px -10px 0 0; border: 0; border-radius: 12px; background: transparent; color: var(--color-navy-700); cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .xl-open:hover { background: rgba(17, 19, 22, 0.06); color: var(--color-navy-900); } }
.xl-open:focus-visible { outline: 2px solid var(--k-focus); outline-offset: 2px; }

dialog.xl { width: min(1240px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: var(--k-r-tile, 22px); background: #fff; color: var(--color-navy-900); box-shadow: 0 40px 120px rgba(10, 25, 48, 0.5); overflow: hidden; }
dialog.xl:not([data-k-sheet]) { position: fixed; inset: 0; margin: auto; height: fit-content; }
dialog.xl::backdrop { background: rgba(10, 25, 48, 0.66); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.xl__in { display: grid; grid-template-columns: 1.6fr 1fr; height: min(780px, calc(100dvh - 48px)); }
.xl__media { position: relative; min-width: 0; padding: 32px 28px 28px; background: rgba(244, 245, 247, 0.7); overflow-y: auto; }
.xl__side { position: relative; padding: 32px 32px 28px; overflow-y: auto; }
.xl__close { position: absolute; top: 12px; right: 14px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 10px; background: none; color: var(--color-navy-900); font: inherit; font-weight: 600; font-size: 0.86rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.xl__close:focus-visible { outline: 2px solid var(--k-focus); outline-offset: 2px; }
.xl__h { margin: 28px 0 0; font-family: var(--font-heading); font-weight: 600; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-navy-600); }
.xl__title { margin: 10px 0 10px; font-family: var(--font-heading); font-weight: 600; font-size: 1.6rem; line-height: 1.15; letter-spacing: -0.02em; color: var(--color-navy-900); }
.xl__line { margin: 0 0 18px; color: var(--color-navy-700); font-size: var(--type-secondary); line-height: 1.55; }
.xl__read { margin: 0 0 18px; padding-top: 16px; border-top: 1px solid var(--color-navy-100); color: var(--color-navy-800); font-size: var(--type-secondary); line-height: 1.6; }
.xl__src { margin: 0; font-size: var(--type-meta); line-height: 1.45; color: var(--quiet, #5a5d63); }
@media (max-width: 900px) {
  .xl__in { grid-template-columns: 1fr; height: auto; max-height: calc(100dvh - 48px); overflow-y: auto; }
  .xl__media { overflow: visible; }
}
@media (max-width: 640px) {
  dialog.xl[data-k-sheet] { width: 100%; border-radius: 24px 24px 0 0; }
  .xl__in { max-height: none; }
  .xl__media { padding: 20px 14px 12px; }
  .xl__side { padding: 8px 20px 24px; }
  .xl__close { position: sticky; top: 0; float: right; margin: -6px -8px 0 0; background: #fff; }
  .xl__h { margin-top: 6px; }
  .xl__title { font-size: 1.3rem; padding-right: 72px; }
}
/* (showcase phase 4) the source sheet in the expanded dialog's look: its corners, its shadow, its scrim and its title; the
   figures beside it on the dialog's grey panel. A sheet opened from inside it takes its place as any sheet does. */
@media (min-width: 640px) {
  .sheet.sheet--xl { width: min(1240px, calc(100% - 32px)); height: auto; max-height: calc(100dvh - 48px); border-radius: var(--k-r-tile, 22px); box-shadow: 0 40px 120px rgba(10, 25, 48, 0.5); overflow: hidden; }
}
div:has(> .sheet--xl) > button[aria-label="Close"] { background: rgba(10, 25, 48, 0.66) !important; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet--xl .sheet-head { border-bottom-color: transparent; }
.sheet--xl .sheet-title { font-size: 1.6rem; line-height: 1.15; letter-spacing: -0.02em; }
.sheet--xl .sheet-aside { padding: 24px 22px; border-radius: 16px; background: rgba(244, 245, 247, 0.7); }
@media print { dialog.xl { display: none; } .xl-open { display: none; } }

/* ---------- G8 the rail's foot and its tooltips */
.rail-btn:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.rail-btn[hidden] { display: none; }
.rail-tip { position: fixed; z-index: 70; max-width: 16rem; padding: 6px 10px; border-radius: 8px; background: var(--color-navy-900); color: #fff; font-size: var(--type-meta); line-height: 1.3; white-space: nowrap; pointer-events: none; box-shadow: 0 6px 18px rgba(7, 37, 59, 0.3); }
.rail-tip[hidden] { display: none; }
@media print { .rail-tip { display: none; } }

/* ---------- the Overview: two waffles side by side, and the way into the Story */
.ov-waffles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 640px) { .ov-waffles { grid-template-columns: 1fr; } }
#work .ov-door { display: flex; align-items: center; gap: 16px; padding: 20px 24px; color: var(--color-navy-900); text-decoration: none; }
.ov-door__words { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.ov-door__k { font-family: var(--font-heading); font-size: var(--type-kicker); font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--color-navy-600); }
.ov-door__t { margin-top: 4px; font-size: var(--type-body); line-height: 1.45; }
.ov-door:focus-visible { outline: 2px solid var(--k-focus); outline-offset: 2px; }

/* ---------- G8 the narrowed rail: the sidebar's Search (header-auto.js) as its icon alone */
#sidebar.w-14 .side-search { justify-content: center; gap: 0; padding-left: 0; padding-right: 0; }
#sidebar.w-14 .side-search :is(span, kbd) { display: none; }
/* many small waffles (Enrollment: each student group of every hundred) */
.ov-waffles--many { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 28px 24px; }

/* ---------- the sign-in door: Google's own button (renderButton), visible from the start, inside the sign-in starter's
   container: a square frame in the bar's own ink, 3px corners (its google-signin-button) */
.gate-signin { display: inline-flex; padding: 6px; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 3px; color: #fff; }
.gate-signin[hidden] { display: none; }
.gate-signin { max-width: 100%; box-sizing: border-box; }
.gate-signin .gate-gsi { min-height: 44px; display: flex; align-items: center; }
/* the Schools heat map's toolbar: its Open large at the row's end */
.hm-toolbar-end { margin-left: auto; }
.hm-toolbar .xl-open { margin: 0; }
/* a waffle prints its figure once, as its headline: the legend line keeps the words, its repeat of the number is for
   screen readers and the chart's table only */
[data-kc-kind="waffle"] .kc-pair__legend b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
