/* QTIC portal — QTIC 2026 brand tokens (Webflow site), layout patterned on intake.queensny.org */
:root {
  --page: #f7f8fa;
  --surface: #ffffff;
  --sunk: #f3f5f8;
  --ink: #1a1e27;
  --ink-2: #5c6472;
  --ink-3: #7c8494;
  --line: #eceef2;
  --line-2: #dfe3e9;
  --line-3: #c8ced8;
  --brand: #2f6bed;
  --brand-600: #1f55d6;
  --brand-700: #1a46ae;
  --brand-50: #f2f6fe;
  --brand-100: #e3ecfd;
  --brand-200: #c9d9fb;
  --on-brand: #ffffff;
  --good: #2f7a55;
  --good-soft: #ecf6f0;
  --warn: #8f5c06;
  --warn-soft: #fcf5e6;
  --crit: #b4382d;
  --crit-soft: #fcefed;
  --player: #141922;
  --on-player: #e9edf3;
  --f-sans: "Cooper Hewitt", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --r: 12px;
  --r-sm: 8px;
  --max: 1160px;
  --shadow: 0 1px 2px rgba(20, 28, 45, 0.04), 0 4px 16px rgba(20, 28, 45, 0.04);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #11151c; --surface: #171c25; --sunk: #1d232e; --ink: #e6eaf0; --ink-2: #a3abb8; --ink-3: #7c8493;
    --line: #242b37; --line-2: #2e3644; --line-3: #3b4556; --brand: #6b97f3; --brand-600: #86aaf6; --brand-700: #a9c3f8;
    --brand-50: #18223a; --brand-100: #1d2a47; --brand-200: #2c3f69; --on-brand: #0f1420; --good: #6cc596; --good-soft: #17291f;
    --warn: #e2ad55; --warn-soft: #2e2414; --crit: #ef8f84; --crit-soft: #33201d; --player: #0a0d12; --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #11151c; --surface: #171c25; --sunk: #1d232e; --ink: #e6eaf0; --ink-2: #a3abb8; --ink-3: #7c8493;
  --line: #242b37; --line-2: #2e3644; --line-3: #3b4556; --brand: #6b97f3; --brand-600: #86aaf6; --brand-700: #a9c3f8;
  --brand-50: #18223a; --brand-100: #1d2a47; --brand-200: #2c3f69; --on-brand: #0f1420; --good: #6cc596; --good-soft: #17291f;
  --warn: #e2ad55; --warn-soft: #2e2414; --crit: #ef8f84; --crit-soft: #33201d; --player: #0a0d12; --shadow: none; color-scheme: dark;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.6 var(--f-sans); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
body.has-modal { overflow: hidden; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--f-sans); text-wrap: balance; margin: 0; line-height: 1.2; letter-spacing: -0.005em; font-weight: 600; }
h1 { font-size: 1.85rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
h1:focus { outline: none; }
p { margin: 0; }
a { color: var(--brand-700); text-decoration-color: var(--brand-200); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 24px; width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.center { text-align: center; justify-content: center; }
.pre { white-space: pre-wrap; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
a.skip { position: absolute; left: -999px; }
a.skip:focus { left: 12px; top: 10px; background: var(--surface); padding: 9px 14px; border-radius: 8px; z-index: 200; }
.eyebrow { display: block; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-700); margin-bottom: 10px; }
.label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.sub { display: block; font-size: 14px; color: var(--ink-2); font-weight: 400; }
.warn-t { color: var(--warn); }
.danger-t { color: var(--crit) !important; }

/* ---------- header ---------- */
header.site { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; flex-wrap: wrap; }
.brandlink { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brandlink .logo { display: block; height: 48px; width: auto; flex: none; }
.brandlink .txt { display: flex; flex-direction: column; justify-content: center; gap: 1px; padding-left: 12px; border-left: 1px solid var(--line); line-height: 1.15; white-space: nowrap; }
.brandlink .txt .yr { font-weight: 600; font-size: 14px; color: var(--ink); }
.brandlink .txt .portal-l { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.brandlink .txt .yr:empty { display: none; }
.hdr-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.roles { display: flex; align-items: center; background: var(--sunk); border-radius: 999px; padding: 3px; }
.roles-l { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding: 0 8px 0 10px; }
.roles button { background: none; border: 0; padding: 4px 13px; border-radius: 999px; font-weight: 500; font-size: 14px; color: var(--ink-2); }
.roles button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 28, 45, 0.08); }
.acct { display: flex; align-items: center; gap: 10px; }
.acct-who { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-2); max-width: 220px; }
.acct-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) {
  .brandlink .txt { display: none; }
  .brandlink .logo { height: 40px; }
  .acct-who { display: none; }
  .roles-l { display: none; }
}
.proto-banner { background: var(--brand-50); border-bottom: 1px solid var(--brand-100); font-size: 13px; color: var(--brand-700); }
.proto-banner .wrap { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-block: 7px; }
.proto-banner .link { font-size: 13px; }
.tabs { background: var(--surface); border-bottom: 1px solid var(--line); }
.tabs .wrap { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.tabs button { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 12px 0 11px; font-weight: 500; font-size: 14.5px; color: var(--ink-3); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button:hover:not(:disabled) { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand); }
.tabs button:disabled { opacity: 0.5; }
main { padding-block: 40px 80px; flex: 1; }
.screen { display: grid; gap: 28px; }
.site-foot { border-top: 1px solid var(--line); background: var(--surface); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 18px; font-size: 12.5px; color: var(--ink-3); }

/* ---------- page parts ---------- */
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.head-t { min-width: 0; max-width: 72ch; }
.head p { color: var(--ink-2); margin-top: 6px; }
.head-r { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; min-width: 0; box-shadow: var(--shadow); }
.card.flush { padding: 8px 0; }
.card-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.card-h p { margin-top: 4px; }
.tbl-card { padding: 8px 16px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.split.wide-left { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.split.watch { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.even { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
@media (max-width: 900px) {
  .grid2, .split, .split.wide-left, .split.watch, .even { grid-template-columns: 1fr; }
}
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.tight { gap: 6px; }
.row.wide-gap { gap: 22px; }
.row.end { justify-content: flex-end; }
.between { justify-content: space-between; }
.stack { display: grid; gap: 16px; }
.stack.tight { gap: 8px; }
.stack-lg { display: grid; gap: 24px; }
.narrow { max-width: 640px; margin: 0 auto; width: 100%; }
.mid { max-width: 820px; margin: 0 auto; width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 14px; background: none; border: 0; padding: 0; margin-bottom: 12px; }
.back:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); background: var(--surface); padding: 0 16px; min-height: 40px; border-radius: var(--r-sm); font-weight: 500; font-size: 14.5px; white-space: nowrap; color: var(--ink); text-decoration: none; line-height: 1.2; }
.btn:hover { background: var(--sunk); }
.btn.ghost { background: var(--surface); border-color: var(--line-2); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); font-weight: 600; }
.btn.primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn.danger { background: var(--crit); border-color: var(--crit); color: #fff; font-weight: 600; }
.btn.danger:hover { filter: brightness(0.94); }
.btn.sm { min-height: 32px; padding: 0 12px; font-size: 13.5px; gap: 6px; }
.btn.big { min-height: 54px; padding: 0 28px; font-size: 16.5px; }
.btn.wide { width: 100%; }
.btn.link { background: none; border: 0; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; padding: 0 4px; font-weight: 500; font-size: 14.5px; min-height: 0; }
.btn.link:hover { color: var(--ink); }
.btn:disabled, .btn:disabled:hover { background: var(--sunk); border-color: var(--line); color: var(--ink-3); font-weight: 500; filter: none; }
.link { background: none; border: 0; padding: 0; color: var(--brand-700); font-weight: 500; font-size: 14px; text-decoration: underline; text-decoration-color: var(--brand-200); text-underline-offset: 3px; }
.link:hover { text-decoration-color: currentColor; }
.btn svg, .tabs svg { flex: none; }

/* ---------- pills, meters, small things ---------- */
.pill { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 500; padding: 2px 10px; border-radius: 999px; white-space: nowrap; background: var(--sunk); color: var(--ink-2); line-height: 1.6; }
.p-good { background: var(--good-soft); color: var(--good); }
.p-warn { background: var(--warn-soft); color: var(--warn); }
.p-crit { background: var(--crit-soft); color: var(--crit); }
.p-brand { background: var(--brand-50); color: var(--brand-700); }
.p-mute { background: var(--sunk); color: var(--ink-3); }
.meter { height: 6px; background: var(--sunk); border-radius: 999px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width 0.3s; }
.meter.ok span { background: var(--good); }
.demo { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); }
.demo .link { font-family: var(--f-mono); font-size: 11.5px; }
.kvs { margin: 6px 0 0; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.kvs .kv:first-child { border-top: 0; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.kv-h { font-size: 13px; font-family: var(--f-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); font-weight: 400; margin-top: 18px; }
.help-card p { font-size: 14.5px; color: var(--ink-2); margin-top: 8px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { border: 1px solid var(--line-2); background: var(--surface); padding: 0 14px; height: 34px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-200); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); white-space: nowrap; color: var(--ink-2); }
.chip.coi { background: var(--crit-soft); border-color: transparent; color: var(--crit); }
.chip button, .x { background: none; border: 0; padding: 0 0 0 4px; color: inherit; opacity: 0.6; font-size: 14px; line-height: 1; }
.chip button:hover, .x:hover { opacity: 1; }
.warnbox, .okbox, .infobox { border-radius: var(--r-sm); padding: 12px 14px; font-size: 14.5px; }
.warnbox { background: var(--warn-soft); color: var(--warn); }
.okbox { background: var(--good-soft); color: var(--good); }
.infobox { background: var(--brand-50); color: var(--brand-700); }
.empty { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 56px 24px; }
.empty .icon { width: 56px; height: 56px; border-radius: 50%; background: var(--sunk); display: grid; place-items: center; color: var(--ink-3); }
.empty p { max-width: 50ch; color: var(--ink-2); }
.emptyrow { padding: 40px 20px; text-align: center; color: var(--ink-2); display: grid; gap: 10px; }
.saving { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); }
.loading { display: flex; gap: 6px; align-items: center; justify-content: center; padding: 80px 0; color: var(--ink-3); }
.loading span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); opacity: 0.3; animation: dot 1s ease-in-out infinite; }
.loading span:nth-child(2) { animation-delay: 0.14s; }
.loading span:nth-child(3) { animation-delay: 0.28s; }
.loading p { margin-left: 10px; font-size: 14px; }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: 0.3; } 30% { transform: translateY(-4px); opacity: 0.8; } }

/* ---------- cover (home), patterned on intake.queensny.org ---------- */
.screen-applicant-home { padding-top: 28px; }
.cover-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: clamp(36px, 5.5vw, 76px); align-items: start; }
.poster { order: 2; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; position: relative; color: #fff;
  background:
    repeating-conic-gradient(from 0deg at 50% 118%, rgba(255, 255, 255, 0.07) 0deg 4deg, transparent 4deg 12deg),
    radial-gradient(120% 90% at 50% 110%, #5b8cf5 0%, #2f6bed 45%, #1a46ae 100%); }
.poster-in { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 9% 10%; }
.p-top { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: clamp(11px, 1.1vw, 13.5px); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; position: absolute; top: 8%; left: 10%; right: 10%; }
.p-word { font-weight: 700; font-size: clamp(76px, 11.5vw, 156px); line-height: 0.88; letter-spacing: -0.02em; }
.p-rule { display: block; height: clamp(6px, 0.8vw, 10px); width: 78%; background: #fff; border-radius: 99px; margin: 6% 0 7%; transform: rotate(-2deg); transform-origin: left; }
.p-name { font-weight: 600; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.12; }
.p-by { position: absolute; bottom: 8%; left: 10%; font-family: var(--f-mono); font-size: clamp(11px, 1.1vw, 13.5px); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
.cover-text { order: 1; max-width: 590px; }
.cover-eyebrow { margin: 0 0 14px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.cover-text h1 { font-weight: 700; font-size: clamp(32px, 3.7vw, 46px); line-height: 1.08; letter-spacing: -0.018em; }
.cover-body p { margin: 20px 0 0; font-size: 18px; line-height: 1.7; color: var(--ink); }
.cover-body p:first-child { margin-top: 22px; }
.cover-body p + p { color: var(--ink-2); font-size: 17px; }
.cover-facts { margin: 30px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line-2); list-style: none; }
.cover-facts li { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; font-size: 15.5px; line-height: 1.5; }
.cover-facts li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background-color: var(--brand); background-repeat: no-repeat; background-position: center;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='8'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' d='M1 4l3 3 6-6'/%3E%3C/svg%3E"); }
.cover-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 32px 0 0; }
.cover-note { margin: 30px 0 0; padding-top: 18px; border-top: 1px solid var(--line-2); font-size: 13.5px; color: var(--ink-2); }
.cover-note a { color: var(--ink-2); }
@media (max-width: 980px) {
  .cover-grid { grid-template-columns: 1fr; gap: 34px; }
  .poster { order: 1; max-width: 460px; width: 100%; }
  .cover-text { order: 2; max-width: 640px; }
  .p-word { font-size: clamp(76px, 22vw, 150px); }
  .p-name { font-size: clamp(22px, 5.5vw, 32px); }
  .p-top, .p-by { font-size: 12px; }
}
@media (max-width: 560px) {
  .screen-applicant-home { padding-top: 4px; }
  .poster { max-width: none; }
  .cover-text h1 { font-size: clamp(28px, 8vw, 36px); }
  .cover-body p { font-size: 17px; }
  .cover-actions .btn { width: 100%; }
}
