/* AP-PLATFORM F1.0 — frame.css. The school's frame: its name and colors around every page.
   Colors arrive from the school record as five variables; nothing here names a school. */
:root {
  --band: #1F2A44;
  --band-text: #F3EDE3;
  --accent: #B8945F;
  --paper: #FBF9F5;
  --ink: #2B3040;
  --sand: color-mix(in srgb, var(--accent) 14%, var(--paper));
  --quiet: color-mix(in srgb, var(--ink) 68%, var(--paper));
  --rule: color-mix(in srgb, var(--ink) 16%, var(--paper));
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
h1, h2, h3 { line-height: 1.25; margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }

/* The band: the school's name and where you are. */
.band { background: var(--band); color: var(--band-text); }
.band-in { max-width: 1120px; margin: 0 auto; padding: 22px 24px 24px; }
.eyebrow { font-size: 13px; letter-spacing: 0.09em; text-transform: uppercase; opacity: 0.88; margin: 0 0 4px; }
.band h1 { font-size: 30px; font-weight: 650; }
.band .school { font-size: 22px; font-weight: 650; margin: 0; }
.band .why { margin: 8px 0 0; max-width: 40em; opacity: 0.92; }

/* Public pages are centered. */
.public { min-height: 100vh; display: flex; flex-direction: column; }
.public .band-in { text-align: center; }
.public main { flex: 1; width: 100%; max-width: 460px; margin: 0 auto; padding: 36px 24px 24px; text-align: center; }
.public h2 { font-size: 26px; margin-bottom: 8px; }
.lead { color: var(--quiet); margin-bottom: 24px; }
.field { text-align: left; margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--quiet); border-radius: 8px; padding: 12px 14px;
}
.btn {
  appearance: none; font: inherit; font-weight: 600; cursor: pointer;
  background: var(--band); color: var(--band-text);
  border: 0; border-radius: 8px; padding: 13px 22px; min-height: 48px; width: 100%;
}
.btn[disabled] { opacity: 0.6; cursor: default; }
.link {
  appearance: none; font: inherit; background: none; border: 0; padding: 8px 4px;
  color: var(--ink); text-decoration: underline; cursor: pointer; min-height: 44px;
}
.link[disabled] { color: var(--quiet); text-decoration: none; cursor: default; }
.note { color: var(--quiet); font-size: 15px; margin: 18px 0 0; }
.notice { background: var(--sand); border-left: 4px solid var(--accent); padding: 12px 14px; text-align: left; border-radius: 4px; margin-bottom: 18px; }
.sent .addr { font-weight: 650; word-break: break-all; }
.foot { text-align: center; font-size: 13px; color: var(--quiet); padding: 18px 24px 26px; }

/* The room: menu beside the content on a computer, tabs under the band on a phone. */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--band); color: var(--band-text); padding: 10px 16px; }
.topbar .name { font-weight: 650; }
.topbar .link { color: var(--band-text); }
.tabs { display: flex; gap: 4px; background: var(--band); padding: 0 16px; }
.tab { appearance: none; font: inherit; color: var(--band-text); background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 12px; cursor: pointer; min-height: 44px; }
.tab[aria-current="page"] { border-bottom-color: var(--accent); font-weight: 650; }
.room { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 24px 24px 12px; display: block; }
.menu { display: none; }
.row { display: block; width: 100%; text-align: left; appearance: none; font: inherit; color: var(--ink); background: none; border: 0; border-left: 3px solid transparent; padding: 10px 14px; cursor: pointer; }
.row .rname { display: block; font-weight: 650; }
.row .rline { display: block; font-size: 14px; color: var(--quiet); }
.row[aria-current="page"] { border-left-color: var(--accent); background: var(--sand); }
.menu .room-name { font-weight: 650; padding: 0 14px 8px; }
.menu .rule { border: 0; border-top: 1px solid var(--rule); margin: 14px 0; }
.panel { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 18px 20px; margin-bottom: 18px; }
.panel h2 { font-size: 19px; margin-bottom: 6px; }
.panel p:last-child { margin-bottom: 0; }
.back { margin: 0 0 14px -4px; }
.sheet h2 { font-size: 24px; margin-bottom: 14px; }
.sheet section { margin-bottom: 20px; max-width: 40em; }
.sheet h3 { font-size: 18px; margin-bottom: 6px; }
.sheet .btn { width: auto; }
.kv { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 14px; }
.kv .k { color: var(--quiet); }
.kv .v { font-weight: 650; word-break: break-all; }

@media (min-width: 900px) {
  .topbar, .tabs { display: none; }
  .room { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; padding-top: 28px; }
  .menu { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
