/* Find the Gap hackathon pages: landing, workspace and score page.
   "Bold poster" design (concept C5, picked by Tom 2026-10-23), in We The
   Flywheel brand colours from wetheflywheel.com design/tokens.json:
   ink #1F1D2B, violet #7C3AED (ink variant #6D28D9), greys #4B5563 / #E5E7EB.
   Loaded after intake.css and scoped to body.hk-page. Served at
   /apply/hackathon/app.css because wetheflywheel.com proxies only /apply/* and
   /{lang}/hackathon/*.
   Dosis is self-hosted under /apply/assets/ (no font CDN on these pages).
   Concepts and screenshots: PR #22, docs/design/hackathon-concepts/. */

@font-face {
    font-family: "Dosis";
    src: url("/apply/assets/dosis-latin.woff2") format("woff2");
    font-weight: 200 800;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Vietnamese glyphs (/vi/hackathon/); only downloaded when the page uses them. */
@font-face {
    font-family: "Dosis";
    src: url("/apply/assets/dosis-vietnamese.woff2") format("woff2");
    font-weight: 200 800;
    font-display: swap;
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

body.hk-page {
    --page-max: 1200px;
    --gutter: 16px;
    --bg: #ffffff;
    --ink: #1F1D2B;
    --muted: #4B5563;
    --rule: #E5E7EB;
    --block: #7C3AED;            /* white text on it: 5.7:1 */
    --block-ink: #6D28D9;        /* links and small violet text: 7.1:1 on white */
    --block-soft: #EDE9FE;
    --lilac: #C4B5FD;            /* violet on ink: 8.6:1 */
    --warn: #FCD34D;
    --danger: #D92D20;
    --display: "Dosis", "Helvetica Neue", Helvetica, Arial, Roboto, system-ui, sans-serif;
    --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.5;
}
html:has(> body.hk-page) { background: #ffffff; }
.hk-page a { color: var(--block-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.hk-page :focus-visible { outline: 4px solid var(--block); outline-offset: 3px; }
.hk-page .muted { color: var(--muted); }

.hk-page .intake-shell { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter) 80px; }

/* Shared top bar: same on landing, workspace and score page */
.hk-page .hk-topbar { position: sticky; top: 0; z-index: 20; background: var(--ink); color: #fff; }
.hk-page .hk-topbar-inner {
    max-width: var(--page-max); margin: 0 auto; padding: 8px var(--gutter);
    display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px;
}
.hk-page .hk-logo { display: block; line-height: 0; text-decoration: none; }
.hk-page .hk-logo img { height: 48px; width: auto; }
.hk-page .hk-topbar-right { display: flex; align-items: center; gap: 14px; }
.hk-page .hk-topbar-right a { color: #fff; font: 700 15px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; display: inline-flex; align-items: center; min-height: 44px; }
.hk-page .hk-topbar .pill { white-space: nowrap; background: var(--lilac); color: var(--ink); border-radius: 0; font: 800 13px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; }

/* The one block */
.hk-page .intake-header {
    background: var(--block); color: #fff; box-shadow: 0 0 0 100vmax var(--block); clip-path: inset(0 -100vmax);
    padding: 34px 0 34px; margin-bottom: 0;
}
.hk-page .intake-header .brand-row { display: none; }
.hk-page .intake-header h1 {
    font-family: var(--display); font-weight: 800; text-transform: uppercase; color: #fff;
    font-size: 72px; line-height: .86; letter-spacing: -.02em; margin: 0 0 20px;
}
.hk-page .intake-header .lead { color: #fff; font-size: 20px; line-height: 1.35; font-weight: 600; max-width: 680px; margin: 0 0 22px; }
.hk-page .intake-header .pill { display: none; }
.hk-page .intake-header .muted { color: #fff; font-weight: 600; }

/* What you get: the tagline */
.hk-page .hk-promise { list-style: none; margin: 4px 0 26px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 3px solid #fff; }
.hk-page .hk-promise li { padding: 12px 12px 14px 0; border-bottom: 1px solid rgba(255,255,255,.45); }
.hk-page .hk-promise li:nth-child(odd) { padding-right: 14px; border-right: 1px solid rgba(255,255,255,.45); }
.hk-page .hk-promise li:nth-child(even) { padding-left: 14px; }
.hk-page .hk-promise strong { display: block; font: 800 21px/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; color: #fff; }
.hk-page .hk-promise span { display: block; font-size: 14px; line-height: 1.35; margin-top: 4px; color: #F5F3FF; }

/* Sections: no boxes, thick rules, huge labels */
.hk-page .intake-card { background: none; border: 0; border-top: 6px solid var(--ink); border-radius: 0; padding: 18px 0 34px; margin: 0; }
.hk-page .intake-shell > header + .intake-card, .hk-page .intake-shell > .error-card + .intake-card { border-top: 0; }
.hk-page .intake-card h2 {
    font-family: var(--display); font-size: 42px; line-height: .95; font-weight: 800; text-transform: uppercase;
    letter-spacing: -.01em; color: var(--ink); margin: 0 0 18px;
}
.hk-page .intake-card h3 { font: 800 24px/1.1 var(--display); text-transform: uppercase; margin: 28px 0 8px; }
.hk-page .checklist li { padding: 10px 0 10px 40px; border-bottom: 2px solid var(--ink); }
.hk-page .checklist li::before { content: "\2192"; color: var(--block); font-size: 22px; line-height: 1; top: 12px; }
.hk-page .checklist strong { font-weight: 800; }
.hk-page .intake-card ol { padding-left: 0; list-style: none; counter-reset: f; }
.hk-page .intake-card ol li { counter-increment: f; display: grid; grid-template-columns: 54px 1fr; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.hk-page .intake-card ol li::before { content: counter(f); font: 800 38px/1 var(--display); color: var(--block); grid-row: span 2; }
.hk-page .rubric li { border-bottom: 2px solid var(--ink); padding: 10px 0; font-weight: 700; align-items: baseline; }
.hk-page .rubric strong { font: 800 32px/1 var(--display); white-space: nowrap; }

/* Prize: big statement on ink */
.hk-page main > section:nth-of-type(3) p:first-of-type { font: 700 27px/1.2 var(--display); }

/* Board */
.hk-page #leaderboard h2::after { content: " live"; font-size: .45em; letter-spacing: .06em; vertical-align: middle; color: var(--block-ink); }
.hk-page .lb { font-size: 18px; }
.hk-page .lb th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; border-bottom: 2px solid var(--ink); padding: 6px 6px; }
.hk-page .lb td { border-bottom: 1px solid var(--rule); padding: 12px 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hk-page .lb td:first-child { font: 800 28px/1 var(--display); width: 1.6em; }
.hk-page .lb td:last-child { font: 800 32px/1 var(--display); }
.hk-page .lb tbody tr:first-child td { background: var(--ink); color: #fff; }
.hk-page .lb tbody tr:first-child td:last-child { color: var(--lilac); }
.hk-page .lb tbody tr:nth-child(2) td:first-child, .hk-page .lb tbody tr:nth-child(3) td:first-child { color: var(--block-ink); }
.hk-page .lb td[colspan] { font: 700 22px/1.3 var(--display) !important; color: var(--ink) !important; background: none !important; }

/* Form */
.hk-page #start { border-top: 12px solid var(--block); }
.hk-page .entry-form .field span { color: var(--ink); font: 800 15px/1.2 var(--display); text-transform: uppercase; letter-spacing: .06em; }
.hk-page .intake-card input:not([type=checkbox]),
.hk-page .intake-card select {
    width: 100%; min-height: 54px; padding: 10px 12px; font: 600 18px/1.2 var(--body); color: var(--ink);
    background: #fff !important; border: 3px solid var(--ink) !important; border-radius: 0 !important;
}
.hk-page .consent-block { background: #F9FAFB; border: 0; border-radius: 0; }
.hk-page .consent-terms summary { min-height: 44px; padding: 10px 0; cursor: pointer; }
.hk-page .consent-terms details[open] { max-height: 320px; overflow: auto; }
.hk-page .consent-block > label { border-top: 2px solid var(--ink) !important; }
.hk-page form label:has(> input[type=checkbox]) { min-height: 44px; align-items: center !important; }
.hk-page #start label > span { color: var(--ink) !important; font-size: 15px !important; }
.hk-page input[type=checkbox] { width: 24px !important; height: 24px !important; margin-top: 0 !important; accent-color: var(--block) !important; }
.hk-page .begin-warning { background: var(--warn); border: 0; border-radius: 0; color: var(--ink); font-weight: 700; }
.hk-page .primary-cta {
    display: inline-flex; align-items: center; justify-content: center; min-height: 64px; padding: 14px 28px; width: 100%;
    background: var(--block); color: #fff; border-radius: 0; font: 800 23px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; text-decoration: none;
}
.hk-page .primary-cta:hover { background: var(--ink); }

@media (min-width: 900px) {
    body.hk-page { --gutter: 40px; }
    .hk-page .intake-shell { padding-bottom: 120px; }
    .hk-page .hk-logo img { height: 56px; }
    .hk-page .intake-header { padding: 64px 0 60px; }
    .hk-page .intake-header h1 { font-size: 176px; }
    .hk-page .intake-header .lead { font-size: 28px; max-width: 900px; }
    .hk-page .hk-promise { grid-template-columns: repeat(4, 1fr); }
    .hk-page .hk-promise li, .hk-page .hk-promise li:nth-child(odd), .hk-page .hk-promise li:nth-child(even) { padding: 14px 18px 16px 0; border-right: 0; border-bottom: 0; }
    .hk-page .hk-promise li + li { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.45); }
    .hk-page .hk-promise strong { font-size: 26px; }
    .hk-page .intake-card { display: grid; grid-template-columns: 340px minmax(0, 1fr); column-gap: 40px; padding: 26px 0 50px; }
    .hk-page .intake-card > * { grid-column: 2; }
    .hk-page .intake-card > h2 { grid-column: 1; grid-row: 1 / span 20; font-size: 50px; overflow-wrap: anywhere; }
    .hk-page .intake-card > form { min-width: 0; max-width: 620px; }
}

/* Workspace: the clock sits in the shared bar */
.hk-page .countdown {
    display: inline-flex; align-items: baseline; gap: 8px; margin: 0; padding: 6px 12px; border-radius: 0;
    background: var(--block); color: #fff; font: 800 32px/1 var(--display); font-variant-numeric: tabular-nums;
}
.hk-page .countdown::before { content: attr(data-l-left); font-size: 13px; letter-spacing: .1em; }
.hk-page .countdown.warn { background: var(--warn); color: var(--ink); }
.hk-page .countdown.warn::before { content: attr(data-l-warn); }
.hk-page .countdown.over { background: var(--danger); color: #fff; }
.hk-page .countdown.over::before { content: attr(data-l-over); }
.hk-page .hk-entry-title { font: 800 48px/.9 var(--display); text-transform: uppercase; color: var(--block); margin: 30px 0 12px; }
.hk-page .intake-shell > .lead { font-size: 18px; font-weight: 600; max-width: 760px; }
.hk-page #entryForm { max-width: 820px; }
.hk-page .hk-field { display: block; margin: 0 0 30px; padding-top: 12px; border-top: 4px solid var(--ink); }
.hk-page .hk-field strong { display: block; font: 800 26px/1.05 var(--display); text-transform: uppercase; }
.hk-page .hk-help { color: var(--muted); font-size: 15px; margin: 6px 0 10px; }
.hk-page .hk-field textarea { border: 3px solid var(--ink); border-radius: 0; padding: 12px; font: 500 17px/1.5 var(--body); }
.hk-page .hk-field textarea:focus { border-color: var(--block); outline: none; box-shadow: 0 0 0 3px var(--block-soft); }
.hk-page .word-counter { display: inline-block; margin-top: 8px; border-radius: 0; background: var(--ink); color: #fff; }
.hk-page #entryForm .primary-cta { max-width: 420px; }
@media (min-width: 900px) {
    .hk-page .hk-entry-title { font-size: 88px; margin-top: 44px; }
}

/* Score page: the score is the poster */
.hk-page main:not(:has(#leaderboard)):not(:has(#entryForm)) .intake-header h1 { font-size: 64px; }
@media (min-width: 900px) {
    .hk-page main:not(:has(#leaderboard)):not(:has(#entryForm)) .intake-header h1 { font-size: 132px; }
}
.hk-page main:not(:has(#leaderboard)):not(:has(#entryForm)) .intake-card:last-child a:not(.primary-cta) { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; }
.hk-page main:not(:has(#leaderboard)):not(:has(#entryForm)) .intake-card:last-child .primary-cta { max-width: 420px; color: #fff; }

/* Language switcher (landing page top bar) */
.hk-page .hk-lang { position: relative; }
.hk-page .hk-lang summary { list-style: none; cursor: pointer; color: #fff; font: 700 15px/1 var(--display); letter-spacing: .06em; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.hk-page .hk-lang summary::-webkit-details-marker { display: none; }
.hk-page .hk-lang summary::after { content: "▾"; margin-inline-start: 6px; font-size: 12px; }
.hk-page .hk-lang ul { position: absolute; inset-inline-end: 0; top: 100%; margin: 6px 0 0; padding: 6px 0; list-style: none; background: #fff; border: 2px solid var(--ink); min-width: 170px; z-index: 30; }
.hk-page .hk-lang li { margin: 0; padding: 0; }
.hk-page .hk-topbar-right .hk-lang ul a { color: var(--ink); display: block; min-height: 0; padding: 10px 14px; font: 600 15px/1.2 var(--body); letter-spacing: 0; text-transform: none; }
.hk-page .hk-topbar-right .hk-lang ul a:hover, .hk-page .hk-topbar-right .hk-lang ul a[aria-current] { background: var(--block-soft); color: var(--block-ink); }
.hk-page .hk-en-note { font-size: 14px; }

/* Right-to-left (/ar/hackathon/). English blocks carry dir="ltr" in the templates. */
[dir="rtl"] .hk-page .checklist li { padding: 10px 40px 10px 0; }
[dir="rtl"] .hk-page .checklist li::before { content: "\2190"; left: auto; right: 0; }
[dir="rtl"] .hk-page .hk-promise li:nth-child(odd) { padding-right: 0; padding-left: 14px; border-right: 0; border-left: 1px solid rgba(255,255,255,.45); }
[dir="rtl"] .hk-page .hk-promise li:nth-child(even) { padding-left: 0; padding-right: 14px; }
[dir="rtl"] .hk-page .lb th, [dir="rtl"] .hk-page .lb td { text-align: right; }
[dir="rtl"] .hk-page .lb td.num, [dir="rtl"] .hk-page .lb th.num { text-align: left; }
@media (min-width: 900px) {
    [dir="rtl"] .hk-page .hk-promise li, [dir="rtl"] .hk-page .hk-promise li:nth-child(odd), [dir="rtl"] .hk-page .hk-promise li:nth-child(even) { padding: 14px 0 16px 18px; border-left: 0; border-right: 0; }
    [dir="rtl"] .hk-page .hk-promise li + li { padding-left: 0; padding-right: 18px; border-left: 0; border-right: 1px solid rgba(255,255,255,.45); }
}
