/*
  Travel to Learn v02, in Conceptual Studio's house style.
  Layout: warm paper, hairlines margin to margin, one Agatho word per page,
  Instrument Sans for everything else, round pills, 28px corners. The college's
  own brand lives only in the outputs (the map sheet), never in the tool chrome.
  Single light theme by choice: it matches the studio site and the printed maps.
*/
@font-face { font-family: 'Agatho'; src: url('assets/fonts/agatho-medium-text.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('assets/fonts/instrument-sans-text.woff2') format('woff2-variations'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Agatho Georgia'; src: local('Georgia'); size-adjust: 87.6%; }
@font-face { font-family: 'Instrument Arial'; src: local('Arial'), local('Helvetica'), local('Liberation Sans'); size-adjust: 105.8%; }

:root {
  --paper: #F1DFC8;
  --paper-2: #E8D3B8;
  --paper-3: #F7ECDD;
  --ink: #000000;
  --ink-2: color-mix(in srgb, var(--ink) 62%, var(--paper));
  --ink-3: color-mix(in srgb, var(--ink) 40%, var(--paper));
  --rule: color-mix(in srgb, var(--ink) 22%, var(--paper));
  --gold: #926E34;
  --live: #1F9D55;
  --amber: #F1A90F;
  --warn-bg: #F4D9A6;
  --warn-ink: #5A3A05;
  --bad: #A3271B;
  --night: #14110D;

  --display: 'Agatho', 'Agatho Georgia', Georgia, serif;
  --text: 'Instrument Sans', 'Instrument Arial', system-ui, sans-serif;

  --margin: max(16px, 2.5vw);
  --radius: 28px;
  --radius-inner: 16px;
  --pill: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --lift: 0 1px 2px rgb(40 24 8 / .12), 0 6px 14px -4px rgb(40 24 8 / .14), 2px 22px 44px -16px rgb(40 24 8 / .36);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-synthesis: none; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--margin); top: -60px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--pill); z-index: 100; }
.skip:focus { top: 12px; }

.wrap { padding-left: max(var(--margin), env(safe-area-inset-left, 0px)); padding-right: max(var(--margin), env(safe-area-inset-right, 0px)); max-width: 1480px; margin: 0 auto; }

/* ---------- top bar ---------- */
.top { border-bottom: 1px solid var(--rule); }
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.studio { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.studio img { height: 30px; width: auto; display: block; }
.studio span { font-size: 15px; color: var(--ink-2); border-left: 1px solid var(--rule); padding-left: 12px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { text-decoration: none; padding: 6px 10px; font-size: 16px; color: var(--ink-2); border-radius: var(--pill); }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::before { content: "["; }
.nav a[aria-current="page"]::after { content: "]"; }
.who { position: relative; }
.who__btn { display: flex; align-items: center; gap: 10px; border: 1px solid var(--rule); background: transparent; border-radius: var(--pill); padding: 5px 14px 5px 6px; cursor: pointer; font-size: 15px; }
.who__btn:hover { border-color: var(--ink-2); }
.who__logo { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #fff; flex: none; }
.who__logo svg, .who__logo img { width: 30px; height: 30px; display: block; object-fit: contain; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--paper-3); border-radius: 20px; box-shadow: var(--lift); padding: 8px; min-width: 260px; z-index: 50; display: grid; gap: 2px; }
.menu p { padding: 8px 12px 10px; font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--rule); margin-bottom: 4px; }
.menu p strong { display: block; color: var(--ink); font-size: 16px; font-weight: 600; }
.menu button, .menu a { text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: 12px; cursor: pointer; font-size: 15px; text-decoration: none; }
.menu button:hover, .menu a:hover { background: var(--paper-2); }

/* ---------- page head: one Agatho word on a hairline ---------- */
.head { padding-top: clamp(28px, 5vw, 64px); }
.head__word { font-family: var(--display); font-weight: 500; font-size: clamp(72px, 12vw, 168px); line-height: .82; letter-spacing: -0.02em; margin: 0; }
.head__rule { height: 1px; background: var(--ink); margin-top: clamp(12px, 1.6vw, 22px); }
.head__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; padding-top: 14px; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.35; }
.head__row > * { min-width: 0; }
.head__row .muted { color: var(--ink-2); }
.head--small .head__word { font-size: clamp(60px, 8vw, 112px); }

/* setup steps: the credits row */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; border-top: 1px solid var(--rule); margin-top: 28px; padding-top: 12px; font-size: 16px; }
.steps li { color: var(--ink-3); display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.steps li.is-done { color: var(--ink-2); }
.steps li.is-done::after { content: ""; width: 10px; height: 6px; border-left: 1.6px solid var(--live); border-bottom: 1.6px solid var(--live); transform: rotate(-45deg) translateY(-3px); flex: none; }
.steps li[aria-current="step"] { color: var(--ink); font-weight: 600; }
.steps b { font-weight: 600; font-variant-numeric: tabular-nums; }

main { padding-bottom: 80px; }
.section { padding-top: 40px; display: grid; gap: 20px; }
.section > h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--ink-2); max-width: 60ch; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: var(--pill); font-size: 17px; font-weight: 600; cursor: pointer; border: 1px solid var(--ink); background: transparent; text-decoration: none; white-space: nowrap; transition: background-color .3s var(--ease), color .3s var(--ease); }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: #2a241d; }
.btn--sm { height: 40px; padding: 0 16px; font-size: 15px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn .arrow { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: rotate(-45deg); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; color: var(--ink); }

/* ---------- panels and fields ---------- */
.panel { background: var(--paper-3); border-radius: var(--radius); padding: clamp(18px, 2vw, 28px); display: grid; gap: 18px; min-width: 0; }
.panel--plain { background: transparent; border: 1px solid var(--rule); }
.panel h3 { font-size: 20px; font-weight: 600; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.grid-aside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; align-items: start; }
.sticky { position: sticky; top: 16px; }

.field { display: grid; gap: 6px; }
.field > label, .field > .label { font-size: 15px; font-weight: 600; }
.field small { color: var(--ink-2); font-size: 14px; }
.input, select.input, textarea.input { width: 100%; height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--rule); background: #FFFBF5; font-size: 17px; }
textarea.input { height: auto; min-height: 110px; padding: 12px 16px; line-height: 1.45; resize: vertical; }
.input:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: transparent; }
.prefix { display: flex; align-items: center; border: 1px solid var(--rule); background: #FFFBF5; border-radius: 14px; overflow: hidden; }
.prefix span { padding: 0 4px 0 16px; color: var(--ink-2); }
.prefix input { border: 0; background: transparent; height: 48px; flex: 1; min-width: 0; padding-right: 16px; font-size: 17px; }
.prefix:focus-within { outline: 2px solid var(--ink); }
.prefix input:focus { outline: none; }

.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--pill); border: 1px solid var(--rule); flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; border-radius: var(--pill); padding: 8px 16px; font-size: 15px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }

.drop { display: grid; place-items: center; text-align: center; gap: 6px; padding: 40px 20px; border: 1.5px dashed var(--ink-3); border-radius: var(--radius); cursor: pointer; transition: background-color .3s var(--ease), border-color .3s var(--ease); background: transparent; }
.drop:hover, .drop.is-over { background: var(--paper-3); border-color: var(--ink); }
.drop strong { font-size: 20px; font-weight: 600; }
.drop span { color: var(--ink-2); font-size: 15px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 14px; padding: 4px 10px; border-radius: var(--pill); border: 1px solid var(--rule); color: var(--ink-2); }
.chip--live { border-color: transparent; background: #D8E9D6; color: #164A2A; }

.status { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-2); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live); flex: none; }

/* progress lines (brand finding, file reading) */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; font-size: 17px; animation: rise .5s var(--ease) both; }
.ticks li::before { content: ""; width: 12px; height: 7px; border-left: 2px solid var(--live); border-bottom: 2px solid var(--live); transform: rotate(-45deg) translateY(-3px); flex: none; }
.ticks li.is-warn::before { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--amber); transform: none; }
.ticks li.is-busy::before { width: 10px; height: 10px; border: 2px solid var(--ink-3); border-top-color: var(--ink); border-radius: 50%; transform: none; animation: spin .8s linear infinite; }
.ticks small { display: block; color: var(--ink-2); font-size: 15px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: .001; transform: translateY(8px); } }

/* ---------- brand editor ---------- */
.logo-slot { display: flex; gap: 16px; align-items: center; }
.logo-slot__img { width: 88px; height: 88px; border-radius: 20px; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; border: 1px solid var(--rule); }
.logo-slot__img svg, .logo-slot__img img { width: 72px; height: 72px; object-fit: contain; }
.swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.swatch { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; }
.swatch input[type="color"] { width: 48px; height: 48px; border: 0; padding: 0; border-radius: 14px; overflow: hidden; cursor: pointer; background: none; }
.swatch input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.swatch input[type="color"]::-webkit-color-swatch { border: 1px solid rgb(0 0 0 / .15); border-radius: 14px; }
.swatch strong { display: block; font-size: 15px; font-weight: 600; }
.swatch span { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pass { display: inline-block; margin-top: 4px; font-size: 14px; padding: 2px 8px; border-radius: var(--pill); background: #D8E9D6; color: #164A2A; white-space: nowrap; }
.fail { display: inline-block; margin-top: 4px; font-size: 14px; padding: 2px 8px; border-radius: var(--pill); background: var(--warn-bg); color: var(--warn-ink); white-space: nowrap; }
.fontpair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.specimen { font-size: 28px; line-height: 1.1; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--rule); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.specimen--body { font-size: 17px; line-height: 1.4; white-space: normal; }

/* ---------- the map sheet (the exhibit) ---------- */
.sheet { background: #fff; border-radius: var(--radius-inner); overflow: hidden; box-shadow: var(--lift); line-height: 0; }
.sheet svg { width: 100%; height: auto; display: block; }
.sheet .district, .sheet .area { cursor: pointer; transition: opacity .15s; }
.sheet .district:hover, .sheet .area:hover, .sheet .area:focus { opacity: .82; outline: none; }
.caption { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; padding-top: 10px; color: var(--ink); }
.caption b { font-weight: 700; display: block; }
.caption span { color: var(--ink-2); }
.tip { position: fixed; z-index: 60; pointer-events: none; background: var(--night); color: var(--paper); padding: 8px 12px; border-radius: 12px; font-size: 14px; line-height: 1.35; transform: translate(-50%, calc(-100% - 12px)); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tip b { font-weight: 600; }

/* filters */
.filters { display: flex; gap: 10px 14px; flex-wrap: wrap; align-items: end; padding-block: 18px; border-bottom: 1px solid var(--rule); }
.filters .field { min-width: 150px; flex: 1 1 150px; max-width: 230px; }
.filters .field > label { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.filters select.input { height: 42px; font-size: 15px; border-radius: 12px; padding: 0 12px; }
.toggles { display: flex; gap: 6px; flex-wrap: wrap; }
.toggle { border: 1px solid var(--rule); background: transparent; border-radius: var(--pill); padding: 9px 14px; font-size: 15px; font-weight: 600; cursor: pointer; color: var(--ink-2); display: inline-flex; gap: 7px; align-items: center; }
.toggle::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; }
.toggle[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }
.toggle[aria-pressed="true"]::before { background: var(--ink); border-color: var(--ink); }

.report { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; padding-top: 24px; }
.side { display: grid; gap: 22px; min-width: 0; }
.figs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; border-top: 1px solid var(--ink); padding-top: 14px; }
.fig strong { display: block; font-family: var(--display); font-weight: 500; font-size: 44px; line-height: 1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.fig span { font-size: 15px; color: var(--ink-2); line-height: 1.3; display: block; padding-top: 4px; }
.block { border-top: 1px solid var(--rule); padding-top: 12px; display: grid; gap: 10px; }
.block h2 { font-size: 18px; font-weight: 600; }
.bars { display: grid; gap: 7px; }
.bar { display: grid; grid-template-columns: 90px minmax(0, 1fr) 44px; gap: 10px; align-items: center; font-size: 15px; font-variant-numeric: tabular-nums; }
.bar__t { height: 12px; background: var(--paper-2); border-radius: 3px; overflow: hidden; }
.bar__t i { display: block; height: 100%; background: var(--ink); border-radius: 3px; }
.bar b { text-align: right; font-weight: 600; }
.places { list-style: none; margin: 0; padding: 0; display: grid; }
.places li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 15px; font-variant-numeric: tabular-nums; }
.places li:last-child { border-bottom: 0; }
.places em { font-style: normal; font-size: 13px; color: var(--warn-ink); background: var(--warn-bg); border-radius: var(--pill); padding: 1px 8px; margin-left: 6px; white-space: nowrap; }
.findings { margin: 0; padding: 0 0 0 18px; display: grid; gap: 10px; font-size: 16px; line-height: 1.45; }
.findings li::marker { color: var(--gold); }

/* tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius-inner); }
.tbl { border-collapse: collapse; width: 100%; font-size: 15px; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; font-weight: 600; font-size: 14px; color: var(--ink-2); padding: 8px 12px; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl select.input { height: 38px; font-size: 15px; border-radius: 10px; padding: 0 10px; min-width: 190px; }
.tbl code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; background: #FFFBF5; padding: 2px 6px; border-radius: 6px; }
.conf { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.conf--hi::before, .conf--drop::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--live); }
.conf--drop::before { background: var(--ink-3); }
.sample { color: var(--ink-2); font-size: 14px; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.found { display: grid; gap: 0; }
.found__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.found__item:first-child { border-top: 1px solid var(--rule); }
.found__item strong { font-weight: 600; display: block; }
.found__item small { color: var(--ink-2); font-size: 15px; display: block; }
.switch { position: relative; width: 46px; height: 28px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: var(--pill); background: var(--ink-3); transition: background-color .25s var(--ease); pointer-events: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); box-shadow: 0 1px 3px rgb(0 0 0 / .25); }
.switch input:checked + i { background: var(--live); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 2px solid var(--ink); outline-offset: 2px; }

.campus-row { display: grid; grid-template-columns: 44px minmax(0, 1.4fr) minmax(0, .8fr) auto auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.campus-row input[type="color"] { width: 44px; height: 44px; border: 0; padding: 0; border-radius: 50%; overflow: hidden; cursor: pointer; background: none; }
.campus-row input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.campus-row input[type="color"]::-webkit-color-swatch { border: 1px solid rgb(0 0 0 / .15); border-radius: 50%; }
.campus-row .input { height: 44px; }
.campus-row small { color: var(--ink-2); font-size: 14px; display: block; }
.num { font-variant-numeric: tabular-nums; }

/* sign in */
.signin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(24px, 5vw, 80px); padding-top: 36px; align-items: start; }
.signin form { display: grid; gap: 16px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.creds { display: grid; gap: 10px; }
.cred { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.cred code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; }
.error { color: var(--bad); font-size: 15px; }
.ms { width: 18px; height: 18px; display: inline-grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.ms i { display: block; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal__bg { position: absolute; inset: 0; background: rgb(20 17 13 / .55); animation: fade .25s var(--ease) both; }
.modal__panel { position: relative; background: var(--paper); border-radius: var(--radius); width: min(1180px, 100%); max-height: calc(100% - 32px); overflow: auto; padding: clamp(18px, 2.4vw, 32px); display: grid; gap: 20px; animation: pop .4s var(--ease) both; box-shadow: var(--lift); }
.modal__panel--narrow { width: min(620px, 100%); }
.modal__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rule); background: transparent; cursor: pointer; display: grid; place-items: center; }
.modal h2 { font-size: 28px; font-weight: 600; padding-right: 48px; letter-spacing: -0.01em; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.985); } }

.export { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.export__preview { background: var(--paper-2); border-radius: var(--radius-inner); padding: 16px; display: grid; place-items: center; min-height: 300px; }
.export__preview img { max-width: 100%; max-height: 62vh; box-shadow: var(--lift); background: #fff; }
.presets { display: grid; gap: 8px; }
.preset { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 16px; cursor: pointer; }
.preset:has(input:checked) { border-color: var(--ink); background: var(--paper-3); }
.preset input { margin: 4px 0 0; accent-color: #000; grid-row: span 2; }
.preset strong { font-weight: 600; font-size: 16px; }
.preset small { color: var(--ink-2); font-size: 14px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 15px; }
.checks label { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.checks input { accent-color: #000; width: 16px; height: 16px; }

/* privacy page */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.flow > div { padding: 16px 18px 18px 0; display: grid; gap: 6px; align-content: start; }
.flow > div + div { border-left: 1px solid var(--rule); padding-left: 18px; }
.flow strong { font-size: 19px; font-weight: 600; }
.flow p { color: var(--ink-2); font-size: 16px; }
.flow .where { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.prose { max-width: 70ch; display: grid; gap: 14px; font-size: 17px; }
.prose h3 { font-size: 21px; font-weight: 600; padding-top: 12px; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.note { background: var(--warn-bg); color: var(--warn-ink); border-radius: 16px; padding: 12px 16px; font-size: 15px; }
.night-band { background: var(--night); color: var(--paper); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); display: grid; gap: 12px; }
.night-band p { color: color-mix(in srgb, var(--paper) 72%, var(--night)); }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 90; background: var(--night); color: var(--paper); padding: 12px 20px; border-radius: var(--pill); font-size: 15px; animation: pop .35s var(--ease) both; max-width: calc(100% - 32px); }

.foot { border-top: 1px solid var(--rule); margin-top: 56px; padding-block: 18px 28px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .report { grid-template-columns: minmax(0, 1fr); }
  .side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .figs { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-aside, .export { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .head__row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2, .signin, .fontpair, .swatches { grid-template-columns: minmax(0, 1fr); }
  .side { grid-template-columns: minmax(0, 1fr); }
  .figs { grid-template-columns: 1fr 1fr; }
  .fig strong { font-size: 36px; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
  .campus-row { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .campus-row .pc, .campus-row .src { grid-column: 2 / -1; }
  .filters .field { max-width: none; }
  .nav { order: 3; width: 100%; }
  .studio span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* PDF export: print only the prepared pages */
.print-pages { display: none; }
@media print {
  @page { size: A4 landscape; margin: 0; }
  body { background: #fff; }
  body > *:not(.print-pages) { display: none !important; }
  .print-pages { display: block; }
  .print-page { width: 297mm; height: 210mm; break-after: page; overflow: hidden; }
  .print-page img { width: 100%; height: 100%; object-fit: contain; display: block; }
  .print-text { padding: 16mm 18mm; font: 11pt/1.45 'Instrument Sans', Arial, sans-serif; color: #000; display: grid; gap: 5mm; align-content: start; }
  .print-text h1 { font-size: 18pt; }
  .print-text h2 { font-size: 12pt; }
  .print-text table { border-collapse: collapse; width: 100%; }
  .print-text th, .print-text td { text-align: left; border-bottom: .3mm solid #bbb; padding: 1.4mm 2mm; }
}

/* keyboard users can reach every file picker */
.drop:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; background: var(--paper-3); }
.drop .btn { margin-top: 10px; pointer-events: none; }

/* "More options" folds away what most people never need */
.more { border-top: 1px solid var(--rule); padding-top: 14px; }
.more > summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; gap: 10px; align-items: center; min-height: 44px; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before { content: "+"; width: 28px; height: 28px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-weight: 400; flex: none; }
.more[open] > summary::before { content: "–"; }
.more[open] > summary { margin-bottom: 12px; }

/* MapCheck */
.mc-banner { border-radius: var(--radius-sm, 16px); padding: 20px 24px; display: grid; gap: 6px; background: var(--paper-2); }
.mc-banner strong { font-size: 24px; font-weight: 600; line-height: 1.25; }
.mc-banner span { color: var(--ink-2); font-size: 16px; }
.mc-banner.is-pass { background: #D8E9D6; } .mc-banner.is-pass strong { color: #164A2A; }
.mc-banner.is-warn { background: var(--warn-bg); } .mc-banner.is-warn strong { color: var(--warn-ink); }
.mc-banner.is-fail { background: #F2D3CC; } .mc-banner.is-fail strong { color: var(--bad); }
.mc-page { display: grid; gap: 22px; }
.mc-for { color: var(--ink-2); font-size: 16px; }
.mc-group { border-top: 1px solid var(--rule); padding-top: 16px; display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr); gap: 16px; }
.mc-group h3 { font-size: 17px; font-weight: 600; }
.ticks--mc { gap: 14px; }
.ticks--mc em { font-style: normal; font-size: 14px; font-weight: 600; padding: 2px 10px; border-radius: var(--pill); background: var(--warn-bg); color: var(--warn-ink); margin-left: 6px; }
.ticks li.is-fail::before { width: 10px; height: 10px; border: 0; border-radius: 2px; background: var(--bad); transform: none; }
.ticks li.is-fail em { background: #F2D3CC; color: var(--bad); }
.mc-badge { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 12px 16px; border-radius: 16px; font-size: 16px; text-decoration: none; color: var(--ink); background: var(--paper-2); }
.mc-badge b { font-weight: 700; }
.mc-badge b::before { content: ""; display: inline-block; width: 12px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-3px); margin-right: 8px; }
.mc-badge span { color: var(--ink-2); font-size: 15px; }
a.mc-badge span { text-decoration: underline; text-underline-offset: 3px; }
.mc-badge.is-pass { background: #D8E9D6; } .mc-badge.is-pass b { color: #164A2A; }
.mc-badge.is-warn { background: var(--warn-bg); }
.mc-badge.is-fail { background: #F2D3CC; } .mc-badge.is-fail b { color: var(--bad); }
.mc-badge.is-fail b::before { border: 0; width: 10px; height: 10px; background: var(--bad); transform: none; border-radius: 2px; }
@media (max-width: 760px) { .mc-group { grid-template-columns: 1fr; gap: 8px; } .mc-banner strong { font-size: 20px; } }
@media (max-width: 760px) { .cred { grid-template-columns: 1fr; } }

/* ---------- v04: recruitment ---------- */
.upload-strip { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; margin-top: 26px; padding: 18px 22px; border-radius: var(--radius-inner); background: var(--paper-3); }
.upload-strip strong { display: block; font-size: 17px; }
.upload-strip span { color: var(--ink-2); font-size: 15px; }
.legend-key { display: flex; gap: 18px; font-size: 14px; color: var(--ink-2); padding-bottom: 8px; }
.legend-key span { display: inline-flex; align-items: center; gap: 6px; }
.k { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.k--last, .b--last { background: #B8B0A7; }
.k--now, .b--now { background: var(--ink); }
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; align-items: end; }
.month { display: grid; grid-template-rows: 96px auto auto; gap: 4px; text-align: center; font-size: 12px; color: var(--ink-2); }
.month > span:first-child { order: 2; }
.month__bars { order: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 96px; }
.month__bars .b { width: 7px; border-radius: 4px 4px 0 0; display: block; min-height: 0; }
.month small { order: 3; font-size: 11px; color: var(--ink); font-variant-numeric: tabular-nums; min-height: 1em; }
.flag { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: var(--pill); white-space: nowrap; }
.flag--down { background: #F3D6D1; color: #7A2420; }
.flag--up { background: #D5E2F2; color: #1F4373; }
.flag--down::before { content: "▼ "; }
.flag--up::before { content: "▲ "; }
button.mc-badge { border: 0; cursor: pointer; text-align: left; font: inherit; }
@media (max-width: 760px) { .month { grid-template-rows: 70px auto auto; } .month__bars { height: 70px; } .month__bars .b { width: 5px; } }
