/* New Public High School — "The elements of a good school" (periodic table)
   Flat chart tiles, Space Grotesk symbols, Source Sans 3 reading. Bootstrap 5.3.3 grid only. */

/* metric-matched fallbacks so the font swap does not shift layout */
@font-face { font-family: "SG Fallback"; src: local("Arial"); size-adjust: 104%; ascent-override: 94%; descent-override: 28%; line-gap-override: 0%; }
@font-face { font-family: "SS Fallback"; src: local("Arial"); size-adjust: 92%; ascent-override: 106%; descent-override: 30%; line-gap-override: 0%; }

:root {
  --ground: #F7F7F5;
  --paper: #FFFFFF;
  --ink: #1B1F24;
  --ink-2: #474C55;
  --line: #D6D7D2;
  --line-2: #E7E7E3;
  --tint: #EEEEEA;
  --coral: #E85D4F;
  --teal: #1F9A8F;
  --violet: #6E54C8;
  --amber: #E9A53A;
  --on-tile: #101216;
  --coral-d: #B13A2D;
  --teal-d: #12665F;
  --violet-d: #4F38A3;
  --violet-soft: #E6E0F7;
  --err: #A82A1E;
  --ok: #12665F;
  --display: "Space Grotesk", "SG Fallback", system-ui, sans-serif;
  --body: "Source Sans 3", "SS Fallback", system-ui, sans-serif;
  --r: 6px;
  --gap: 6px;
  --head-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--head-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--violet); color: #fff; }
input, textarea, select { caret-color: var(--violet); }
html { scrollbar-color: #9A9DA3 var(--ground); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet-d); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.6vw, 2.4rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 62ch; }
.narrow { max-width: 760px; }
.narrow-p { max-width: 60ch; }
.hi-line { font-size: 1.1rem; color: var(--violet-d); font-weight: 600; margin-bottom: .6em; }
.small-note { font-size: .92rem; color: var(--ink-2); }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r); font-weight: 600; }
.skip:focus { top: 12px; color: #fff; }
main:focus { outline: none; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.15rem; border-radius: var(--r);
  font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink);
  transition: background-color .18s ease-out, color .18s ease-out, transform .12s ease-out;
}
.btn .ic { width: 20px; height: 20px; flex: none; }
.btn:hover { background: var(--tint); }
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #343A43; color: #fff; }
.btn-sm { min-height: 44px; padding: .5rem .9rem; font-size: .95rem; }
.btn-icon { width: 48px; padding: 0; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0; }
.more { margin-top: 1.5rem; }

/* ------------------------------------------------------------ header */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(247, 247, 245, .97); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 1rem; min-height: var(--head-h); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand img { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font: 700 1.08rem/1.15 var(--display); letter-spacing: -.01em; }
.brand-sub { font-size: .85rem; color: var(--ink-2); }
.main-nav { display: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }

/* element tiles in the nav */
.ntile, .menu-btn { display: inline-flex; align-items: center; gap: .55rem; padding: 6px 8px 6px 6px; border-radius: var(--r); text-decoration: none; color: var(--ink); font: 600 .98rem/1.1 var(--body); background: none; border: 0; cursor: pointer; min-height: 48px; }
.nt-box { position: relative; width: 38px; height: 38px; border: 1.5px solid var(--ink); border-radius: 5px; display: grid; place-items: center; background: var(--paper); flex: none; transition: background-color .18s ease-out, color .18s ease-out; }
.nt-num { position: absolute; top: 2px; left: 4px; font: 500 .62rem/1 var(--display); }
.nt-sym { font: 700 1rem/1 var(--display); margin-top: 6px; letter-spacing: -.02em; }
.ntile:hover .nt-box, .menu-btn:hover .nt-box { background: var(--tint); }
.ntile[aria-current="page"] .nt-box { background: var(--violet); border-color: var(--violet); color: #fff; }
.ntile[aria-current="page"] .nt-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; text-decoration-color: var(--violet); }
.head-call { display: none; white-space: nowrap; }
@media (min-width: 992px) {
  .main-nav { display: block; }
  .menu-btn { display: none; }
  .head-call { display: inline-flex; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .brand-sub { display: none; }
  .brand-name { font-size: .98rem; max-width: 9.5em; }
  .ntile { gap: .4rem; padding-right: 4px; font-size: .92rem; }
  .head-call span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .head-call { width: 48px; padding: 0; }
}
@media (max-width: 991.98px) { .menu-btn { margin-left: auto; } .brand { margin-right: 0; } }
@media (max-width: 420px) { .brand-sub { font-size: .78rem; } .brand-name { font-size: 1rem; } .menu-btn .nt-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* menu sheet: a sheet of tiles */
.sheet-scrim { position: fixed; inset: 0; background: rgba(16, 18, 22, .45); z-index: 60; opacity: 0; transition: opacity .25s ease-out; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: var(--ground); border-radius: 14px 14px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 92vh; overflow: auto; transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.sheet.open { transform: none; }
.sheet-scrim.open { opacity: 1; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet-title { font: 700 1.2rem/1 var(--display); margin: 0; }
.sheet-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stile { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 8px; min-height: 96px; padding: 10px; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--paper); text-decoration: none; color: var(--ink); font: 600 1rem/1.15 var(--body); }
.stile .nt-box { border: 0; background: none; width: auto; height: auto; display: flex; flex-direction: column; align-items: flex-start; }
.stile .nt-num { position: static; font-size: .72rem; }
.stile .nt-sym { font-size: 1.6rem; margin: 2px 0 0; }
.stile[aria-current="page"] { background: var(--violet); border-color: var(--violet); color: #fff; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
body.sheet-open { overflow: hidden; }
@media (min-width: 576px) { .sheet { left: auto; top: 0; bottom: 0; width: 420px; border-radius: 0; max-height: none; transform: translateX(100%); } .sheet.open { transform: none; } }

/* ------------------------------------------------------------ tiles */
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 8px 9px; border-radius: var(--r); text-decoration: none; color: var(--on-tile);
  min-width: 0; overflow: hidden; border: 1.5px solid transparent;
  transition: transform .16s ease-out, background-color .16s ease-out, color .16s ease-out;
}
a.tile:hover, button.tile:hover { transform: translateY(-2px); }
.t-num { position: absolute; top: 6px; left: 8px; font: 500 .78rem/1 var(--display); font-variant-numeric: tabular-nums; }
.t-sym { font: 700 1.9rem/1 var(--display); letter-spacing: -.03em; margin-bottom: auto; padding-top: 20px; }
.t-name { font: 600 .86rem/1.15 var(--body); overflow-wrap: anywhere; }
.t-data { font: 400 .76rem/1.2 var(--body); margin-top: 1px; }
.t-v { position: absolute; top: 5px; right: 5px; width: 18px; height: 18px; border-radius: 50%; background: #fff; color: var(--violet-d); display: grid; place-items: center; }
.t-v .ic { width: 12px; height: 12px; stroke-width: 3; }
.t-violet { background: var(--violet); color: #fff; }
.t-coral { background: var(--coral); }
.t-teal { background: var(--teal); }
.t-amber { background: var(--amber); }
.t-action { background: var(--paper); border-color: var(--ink); color: var(--ink); }
a.t-action:hover { background: var(--ink); color: #fff; }
.t-violet-soft { background: var(--violet-soft); }
.t-ink-soft { background: #D9DCE1; }

/* ------------------------------------------------------------ hero: the table */
.hero { padding: 20px 0 8px; }
.ptable { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.hero-head { grid-column: 1 / -1; order: 0; padding: 4px 0 10px; }
.hero-head h1 { margin: 0; font-size: clamp(2rem, 1.3rem + 3.6vw, 2.9rem); line-height: 1.06; letter-spacing: -.03em; }
.ptable .tile { aspect-ratio: 1; order: 1; }
.ptable .tile .t-data { display: none; }
.ptable .t-action { order: 3; }
.ptable .hide-sm, .ptable .el-link { display: none; }
.hero-photo { grid-column: 1 / -1; order: 2; margin: 0; position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; background: var(--tint); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption, .ph-photo figcaption { position: absolute; left: 8px; bottom: 8px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: .78rem; padding: 3px 8px; border-radius: 4px; }
@media (max-width: 380px) { .ptable .t-sym { font-size: 1.5rem; padding-top: 16px; } .ptable .t-name { font-size: .78rem; } .tile { padding: 6px; } }
@media (min-width: 576px) and (max-width: 991.98px) { .ptable { grid-template-columns: repeat(8, 1fr); } .hero-photo { aspect-ratio: 21 / 9; } .ptable .t-sym { font-size: 1.6rem; } }

@media (min-width: 992px) {
  .hero { padding-top: 28px; }
  .ptable { container-type: inline-size; grid-template-columns: repeat(12, 1fr); grid-auto-rows: calc((100cqi - 11 * var(--gap)) / 12); }
  .ptable > * { order: 0 !important; }
  .ptable .tile { aspect-ratio: auto; grid-row: var(--r); grid-column: var(--c); }
  .ptable .hide-sm, .ptable .el-link { display: flex; }
  .hero-head { grid-row: 1 / 3; grid-column: 3 / 10; align-self: center; padding: 0 2cqi 0 1cqi; }
  .hero-head h1 { font-size: 3.5cqi; }
  .hero-photo { grid-row: 3 / 6; grid-column: 3 / 10; aspect-ratio: auto; }
  .ptable .t-sym { font-size: 2.5cqi; padding-top: 0; margin-top: auto; margin-bottom: 4px; }
  .ptable .t-name { font-size: max(.74rem, 1.06cqi); }
  .ptable .t-num { font-size: max(.68rem, .9cqi); }
}
@media (min-width: 1200px) { .ptable .tile .t-data { display: block; font-size: max(.7rem, .88cqi); } }

/* load moment: tiles settle into the table once */
@media (prefers-reduced-motion: no-preference) {
  .ptable .tile { animation: settle .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--r, 1) * 40ms + var(--c, 1) * 18ms); }
  @keyframes settle { from { opacity: 0; transform: translateY(8px); } }
}

.hero-foot { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.hero-lead { font-size: 1.15rem; max-width: 60ch; }
.legend { list-style: none; margin: 0 0 .5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .95rem; }
.legend li { display: inline-flex; align-items: center; gap: .45rem; }
.sw { width: 16px; height: 16px; border-radius: 3px; display: inline-block; border: 1.5px solid transparent; }
.sw.t-action { border-color: var(--ink); }
.legend-note { font-size: .92rem; color: var(--ink-2); max-width: 46ch; }

.open-sign { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; font-weight: 600; margin: .5rem 0; }
.open-sign .dot { width: 10px; height: 10px; border-radius: 50%; background: #8B8F96; }
.open-sign.is-open .dot { background: var(--teal); box-shadow: 0 0 0 3px rgba(31, 154, 143, .2); }
.open-sign.is-closed .dot { background: var(--coral); }
.open-sign .src { font-weight: 400; font-size: .88rem; color: var(--ink-2); }

/* ------------------------------------------------------------ sections */
.sec { padding: 64px 0; }
.sec-tint { background: var(--tint); }
.sec-head { margin-bottom: 1.75rem; }
@media (min-width: 992px) { .sec { padding: 96px 0; } }

.v-badge { display: inline-flex; align-items: center; gap: 4px; background: var(--violet); color: #fff; font: 600 .78rem/1 var(--body); padding: 4px 8px 4px 6px; border-radius: 99px; vertical-align: .1em; white-space: nowrap; }
.v-badge .ic { width: 13px; height: 13px; stroke-width: 3; }
.l-badge, .t-badge { display: inline-block; font: 600 .78rem/1 var(--body); padding: 4px 8px; border-radius: 99px; white-space: nowrap; }
.l-badge { background: #FBE7C6; color: #6B4508; }
.t-badge { border: 1.5px dashed var(--ink-2); color: var(--ink); }

.todo { border: 2px dashed #9A9DA3; border-radius: var(--r); padding: .8rem 1rem; background: rgba(255, 255, 255, .6); color: var(--ink); margin: 0 0 1rem; }
span.todo { display: inline-block; padding: .35rem .6rem; margin: 0; }
.todo-tag { display: inline-block; font: 700 .8rem/1.2 var(--display); color: var(--coral-d); margin-right: .25rem; }

/* elements explorer */
.el-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (min-width: 576px) { .el-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 992px) { .el-grid { grid-template-columns: repeat(4, 1fr); } }
.el-btn { width: 100%; aspect-ratio: 1; font: inherit; cursor: pointer; text-align: left; }
.el-btn[aria-pressed="true"] { outline: 3px solid var(--ink); outline-offset: 2px; }
.el-btn[aria-pressed="true"]:focus-visible { outline-color: var(--violet); }
.el-panel { background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 20px; min-height: 320px; }
.el-detail { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 576px) { .el-detail { grid-template-columns: 150px 1fr; } }
.el-big { position: relative; aspect-ratio: 1; border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; color: var(--on-tile); max-width: 150px; }
.el-big.t-violet { color: #fff; }
.el-big .t-num { top: 10px; left: 12px; font-size: .95rem; }
.el-big .t-sym { font-size: 3.2rem; padding-top: 0; margin: auto 0 6px; }
.el-big .t-name { font-size: 1rem; }
.el-big .t-data { font-size: .85rem; }
.el-text h3 { font-size: 1.6rem; margin-bottom: .2em; }
.el-cat { font: 600 .9rem/1.3 var(--body); color: var(--ink-2); margin-bottom: .8em; }
.el-here { border-left: 0; padding: .8rem 1rem; background: var(--violet-soft); border-radius: var(--r); }
.v-inline { margin: 0 .15em; }
.el-photo { margin: 16px 0 0; position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 1.4; }
.el-photo img { width: 100%; height: 100%; object-fit: cover; }
.el-photo figcaption, .framed figcaption { position: absolute; right: 8px; bottom: 8px; background: rgba(255, 255, 255, .92); font-size: .78rem; padding: 3px 8px; border-radius: 4px; }
@media (prefers-reduced-motion: no-preference) { .el-detail:not([hidden]) .el-big { animation: flip .35s cubic-bezier(.2, .8, .2, 1); } @keyframes flip { from { opacity: .2; transform: scale(.92); } } }

/* reaction */
.reaction { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rx-step { position: relative; background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 14px 16px 14px 64px; min-height: 64px; }
.rx-n { position: absolute; left: 12px; top: 12px; width: 40px; height: 40px; display: grid; place-items: center; background: var(--amber); color: var(--on-tile); border-radius: 5px; font: 700 1.15rem/1 var(--display); }
.rx-name { display: block; font: 700 1.15rem/1.25 var(--display); padding-top: 8px; }
.rx-step p { margin: .4rem 0 0; color: var(--ink-2); }
.rx-product { background: var(--violet); border-color: var(--violet); color: #fff; }
.rx-product p { color: #fff; }
.rx-product .rx-n { background: #fff; }
.rx-op { align-self: center; font: 700 1.6rem/1 var(--display); color: var(--ink-2); display: grid; place-items: center; height: 28px; }
.rx-op .ic { transform: rotate(90deg); width: 26px; height: 26px; }
@media (min-width: 992px) {
  .reaction { flex-direction: row; align-items: stretch; gap: 10px; }
  .rx-step { flex: 1 1 0; padding: 70px 16px 18px; }
  .rx-n { top: 16px; left: 16px; }
  .rx-op { height: auto; flex: none; width: 26px; }
  .rx-op .ic { transform: none; }
  .reaction-short .rx-step { padding: 18px 16px 18px 70px; }
  .reaction-short .rx-name { padding-top: 9px; }
}

/* facts list */
.facts { margin: 0; border-top: 1.5px solid var(--ink); }
.facts > div { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 576px) { .facts > div { grid-template-columns: 11rem 1fr; gap: 16px; } }
.facts dt { font: 700 1rem/1.4 var(--display); }
.facts dd { margin: 0; }

/* visit */
.sec-visit { background: var(--ink); color: #EDEEF0; }
.sec-visit h2 { color: #fff; }
.sec-visit .hi-line { color: #CFC5F3; }
.sec-visit .open-sign .src { color: #C4C7CD; }
.sec-visit .btn-ink { background: #fff; color: var(--ink); border-color: #fff; }
.sec-visit .btn-ink:hover { background: #E4E5E8; }
.sec-visit .btn-plain, .sec-visit .btn:not(.btn-ink) { background: transparent; color: #fff; border-color: #fff; }
.sec-visit .btn:not(.btn-ink):hover { background: rgba(255, 255, 255, .12); }
.sec-visit :focus-visible { outline-color: var(--amber); }
.addr-big { font: 500 1.35rem/1.4 var(--display); letter-spacing: -.01em; }
.loc-tile, .map-art, .data-card { position: relative; aspect-ratio: 1; max-width: 360px; margin-inline: auto; border-radius: var(--r); background: var(--violet); color: #fff; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; }
.loc-tile .t-num, .map-art .t-num, .data-card .t-num { top: 18px; left: 22px; font-size: 1.15rem; }
.loc-tile .t-sym, .data-card .t-sym { font-size: clamp(5rem, 14vw, 8.5rem); margin: auto 0 8px; padding: 0; }
.loc-tile .t-name, .data-card .t-name { font: 700 1.5rem/1.1 var(--display); }
.loc-tile .t-data, .data-card .t-data { font-size: 1rem; margin-top: 4px; }
.loc-coords { position: absolute; top: 18px; right: 22px; font: 500 .9rem/1 var(--display); font-variant-numeric: tabular-nums; }

/* page heads */
.page-head { padding: 28px 0 48px; border-bottom: 1px solid var(--line); }
.crumbs ol { list-style: none; margin: 0 0 22px; padding: 0; display: flex; gap: .5rem; font-size: .92rem; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: #8B8F96; }
.ph-title { display: flex; align-items: center; gap: 16px; margin-bottom: .4rem; }
.ph-title h1 { margin: 0; }
.ph-tile { position: relative; flex: none; width: 76px; height: 76px; border-radius: var(--r); display: flex; align-items: flex-end; padding: 8px 10px; color: var(--on-tile); }
.ph-tile.t-violet { color: #fff; }
.ph-tile .t-num { top: 7px; left: 9px; }
.ph-tile .t-sym { padding: 0; margin: 0; font-size: 2rem; }
.ph-tile.big { width: 120px; height: 120px; margin-bottom: 1.25rem; }
.ph-tile.big .t-sym { font-size: 3.2rem; }
.page-head .lead { margin-top: 1rem; }
.ph-photo { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; background: var(--tint); }
.ph-photo img { width: 100%; height: 100%; object-fit: cover; }
.center-page { text-align: left; padding: 72px 0 96px; }
.ph-contact .contact-tiles { margin-top: 1.25rem; }
.ph-contact .contact-tiles .tile { aspect-ratio: 1.6; }
.ph-contact .contact-tiles .tile .t-sym { font-size: 1.9rem; }
@media (min-width: 992px) { .ph-contact .contact-tiles .tile { aspect-ratio: 1.9; } }

/* about */
.data-card { max-width: 320px; margin: 0; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
.props th, .props td, .stages th, .stages td, .ages th, .ages td, .hours th, .hours td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.props thead th, .stages thead th, .ages thead th { font: 700 .9rem/1.3 var(--display); border-bottom: 1.5px solid var(--ink); }
.props tbody th { font-weight: 600; white-space: nowrap; }
.props .src { display: block; font-size: .85rem; color: var(--ink-2); margin-top: 4px; }
.principal { display: flex; gap: 14px; align-items: flex-start; }
.principal .todo { flex: 1; }
.ph-box { width: 72px; height: 72px; border: 2px dashed #9A9DA3; border-radius: var(--r); display: grid; place-items: center; flex: none; }
.ph-box .t-sym { padding: 0; margin: 0; font-size: 1.6rem; color: var(--ink-2); }
.h-small { font-size: 1.15rem; margin-top: 1.5rem; }

/* academics */
.period { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 10px; border-radius: 4px; background: var(--ink); color: #fff; font: 700 .85rem/1 var(--display); }
.stages th[scope="row"] { white-space: nowrap; font-weight: 600; }
.sub-table { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (min-width: 576px) { .sub-table { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) { .sub-table { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 1200px) { .sub-table { grid-template-columns: repeat(9, 1fr); } }
.sub { position: relative; aspect-ratio: 1; border-radius: var(--r); padding: 8px 9px; display: flex; flex-direction: column; justify-content: flex-end; color: var(--on-tile); }
.sub .t-sym { font-size: 1.8rem; padding: 0; margin: auto 0 4px; }
.sub .t-tbc { position: absolute; top: 5px; right: 6px; font: 700 .75rem/1 var(--display); background: rgba(255, 255, 255, .85); color: var(--ink); padding: 3px 4px; border-radius: 3px; }
.framed { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; }
.ticks { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.ticks li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ticks .ic { flex: none; width: 22px; height: 22px; color: var(--teal-d); margin-top: 2px; }

/* admissions */
.ages td { font-variant-numeric: tabular-nums; }
.docs { list-style: none; margin: 0 0 .5rem; padding: 0; columns: 1; }
@media (min-width: 768px) { .docs { columns: 2; column-gap: 16px; } }
.doc-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin-bottom: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; break-inside: avoid; min-height: 48px; }
.doc-row input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--violet); flex: none; }
.doc-row:has(input:checked) span { text-decoration: line-through; color: var(--ink-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1.5px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; font: 600 1.05rem/1.35 var(--body); min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq-ic .ic { width: 20px; height: 20px; transition: transform .2s ease-out; }
.faq details[open] .faq-ic .ic { transform: rotate(45deg); }
.faq details p { margin: 0 0 14px; color: var(--ink-2); max-width: 62ch; }

/* form */
.enquiry { background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 20px; }
@media (min-width: 768px) { .enquiry { padding: 28px; } }
.form-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.form-tile { position: relative; flex: none; width: 56px; height: 56px; border-radius: 5px; background: var(--ink); color: #fff; display: flex; align-items: flex-end; padding: 6px 8px; }
.form-tile .t-num { top: 5px; left: 7px; font-size: .68rem; }
.form-tile .t-sym { padding: 0; margin: 0; font-size: 1.45rem; }
.form-title { margin: 0 0 .2em; font-size: 1.45rem; }
.form-intro { margin: 0; color: var(--ink-2); }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; font: 400 1rem/1.4 var(--body); color: var(--ink); background: #fff; border: 1.5px solid #8B8F96; border-radius: 5px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--violet); outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--err); background: #FFF6F5; }
.hint { font-size: .88rem; color: var(--ink-2); margin: 5px 0 0; }
.err { font-size: .9rem; color: var(--err); font-weight: 600; margin: 5px 0 0; }
.form-summary { border: 2px solid var(--err); border-radius: var(--r); padding: 12px 14px; margin-bottom: 14px; color: var(--err); font-weight: 600; background: #FFF6F5; }
.form-summary ul { margin: 6px 0 0; padding-left: 1.2rem; }
.form-summary a { color: var(--err); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; }
.form-note { margin: 0; font-size: .9rem; color: var(--ink-2); }
.form-ok, .form-fail { margin: 16px 0 0; padding: 12px 14px; border-radius: var(--r); font-weight: 600; }
.form-ok { background: #E3F3F1; color: var(--ok); border: 1.5px solid var(--teal); }
.form-fail { background: #FFF6F5; color: var(--err); border: 1.5px solid var(--err); }

/* campus life */
.fac-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
@media (min-width: 768px) { .fac-row { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .fac-row { grid-template-columns: repeat(7, 1fr); } }
.fac { border: 2px dashed #9A9DA3; border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 6px; min-height: 140px; background: rgba(255, 255, 255, .6); }
.fac .t-sym { font-size: 2rem; padding: 0; margin: 0 0 auto; color: var(--ink-2); }
.fac .t-name { font-size: 1rem; }
.fac .todo-tag { font-size: .74rem; margin: 0; }
.acts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.acts li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.acts li:first-child { border-top: 1.5px solid var(--ink); }
.acts h3 { margin-bottom: .25em; }
.acts p { margin: 0; color: var(--ink-2); }
.gallery { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
@media (min-width: 992px) { .gallery { grid-template-columns: repeat(5, 1fr); grid-auto-rows: 220px; } .gallery li:nth-child(1) { grid-column: span 2; grid-row: span 2; } .gallery li:nth-child(2) { grid-row: span 2; } .gallery li:nth-child(3) { grid-column: span 2; } }
.g-item { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; cursor: zoom-in; background: var(--tint); aspect-ratio: 4 / 3; }
@media (min-width: 992px) { .g-item { aspect-ratio: auto; } }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease-out; }
.g-item:hover img { transform: scale(1.03); }
.g-zoom { position: absolute; right: 8px; bottom: 8px; width: 36px; height: 36px; border-radius: 5px; background: rgba(255, 255, 255, .92); color: var(--ink); display: grid; place-items: center; }
.g-zoom .ic { width: 18px; height: 18px; }
.notices { list-style: none; margin: 0; padding: 0; }
.notices li { position: relative; padding: 16px 0 16px 0; border-bottom: 1px solid var(--line); }
.notices li:first-child { border-top: 1.5px solid var(--ink); }
.notices h3 { margin: .35rem 0 .2em; font-size: 1.15rem; }
.notices p { margin: 0; color: var(--ink-2); }
.n-tag { display: inline-block; font: 700 .74rem/1 var(--display); padding: 4px 7px; border: 1.5px dashed var(--coral-d); color: var(--coral-d); border-radius: 4px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); width: 100%; }
.lightbox::backdrop { background: rgba(16, 18, 22, .86); }
.lb-inner { background: var(--ink); border-radius: var(--r); overflow: hidden; color: #fff; }
.lb-img { width: 100%; height: auto; max-height: 76vh; object-fit: contain; background: #000; }
.lb-cap { margin: 0; padding: 10px 14px 0; font-size: .95rem; }
.lb-nav { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 12px 12px; }
.lb-nav .btn { background: transparent; color: #fff; border-color: #fff; }
.lb-nav .btn:hover { background: rgba(255, 255, 255, .14); }
.lb-nav :focus-visible { outline-color: var(--amber); }

/* contact */
.hours th { font-weight: 600; }
.hours td { font-variant-numeric: tabular-nums; }
.hours tr.today th, .hours tr.today td { background: var(--violet-soft); font-weight: 700; }
.hours tr.today th::after { content: " (today)"; font-weight: 400; color: var(--ink-2); }
.map-card { background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.map-fallback { padding: 20px; }
.map-art { max-width: none; aspect-ratio: 2.2; margin-bottom: 16px; }
.map-art .t-sym { font-size: 4.5rem; padding: 0; margin: auto 0 4px; }
.map-art .t-name { font: 700 1.25rem/1.1 var(--display); }
.map-art .t-data { font-size: .95rem; }
.map-card iframe { display: block; width: 100%; height: 420px; border: 0; }

.stock-note { font-size: .88rem; color: var(--ink-2); }

/* footer */
.site-foot { background: var(--ink); color: #D6D8DC; padding: 56px 0 28px; }
.site-foot a { color: #fff; }
.site-foot :focus-visible { outline-color: var(--amber); }
.foot-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 700 1.3rem/1.15 var(--display); color: #fff; margin-bottom: 14px; }
.foot-hi { color: #CFC5F3; }
.foot-phone { font: 700 1.4rem/1 var(--display); text-decoration: none; }
.foot-h { font: 700 1rem/1.2 var(--display); color: #fff; margin-bottom: .6rem; }
.foot-list { list-style: none; margin: 0; padding: 0; }
.foot-list a { display: inline-block; padding: 7px 0; min-height: 40px; }
.foot-notes { margin-top: 36px; padding-top: 18px; border-top: 1px solid #3A4049; font-size: .9rem; color: #C4C7CD; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print { .site-head, .site-foot, .sheet, .actions { display: none; } }
.hero-actions { margin: 16px 0 0; }
@media (min-width: 992px) { .hero-actions { margin-top: 1.6cqi; } }
.el-detail[hidden] { display: none; }
.el-key { grid-column: span 2; display: flex; align-items: center; padding: 10px 12px; border: 1.5px dashed var(--line); border-radius: var(--r); }
.el-key .legend { flex-direction: column; gap: .35rem; margin: 0; font-size: .9rem; }
@media (min-width: 576px) { .el-key { grid-column: span 3; } .el-key .legend { flex-direction: row; } }
.menu-box { width: auto; min-width: 64px; padding: 0 10px; height: 42px; }
.menu-box .nt-sym { font-size: .95rem; }
.ph-tile.t-action { border: 1.5px solid var(--ink); }
.reaction + .todo { margin-top: 16px; }
.contact-tiles + .small-note { margin-top: 10px; }
@media (min-width: 992px) { .ph-contact .contact-tiles .tile { aspect-ratio: 2.3; } .ph-contact .contact-tiles .tile .t-sym { font-size: 2.3rem; } }
@media (min-width: 992px) { .data-card { position: sticky; top: calc(var(--head-h) + 24px); } }
@media (max-width: 767.98px) {
  .props thead, .stages thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .props tr, .stages tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .props th, .props td, .stages th, .stages td { display: block; padding: 2px 0; border: 0; }
  .props tbody th, .stages th[scope="row"] { white-space: normal; }
  .props td:last-child, .stages td:last-child { margin-top: 6px; }
  .props .src { display: inline; margin-left: 6px; }
  .data-card { max-width: 200px; }
  .data-card .t-sym { font-size: 4.2rem; }
  .data-card .t-name { font-size: 1.1rem; }
  .map-art { aspect-ratio: 1.5; }
  .map-art .t-sym { font-size: 3.4rem; }
}
.rx-step { min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 992px) and (max-width: 1199.98px) { .reaction-short .rx-step { padding: 64px 12px 16px; } .reaction-short .rx-name { padding-top: 0; } }
.el-panel .todo, .el-panel .el-here { border: 0; border-top: 2px dashed #9A9DA3; border-radius: 0; background: none; padding: .8rem 0 0; margin: 0; }
.el-panel .el-here { border-top: 2px solid var(--violet); }
.narrow p { max-width: 68ch; }
@media (min-width: 576px) and (max-width: 991.98px) { .ptable .t-action { order: 1; } .ptable .hero-photo { order: 2; } }
