
:root {
  --brand-teal-deep: #17403d;
  --brand-teal: #235450;
  --brand-gold: #e8a33d;
  --brand-gold-bright: #f8d79b;
  --brand-bark: #2e2419;
  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1120px;
  --hero-ink: #f8f0e5;

  color-scheme: light;
  --bg: #f2e9dc; --bg-tint: #f8f1e7; --panel: #fffdf8; --panel-2: #f6ecdd; --panel-3: #ebdcc7;
  --line: #dccbb2; --line-soft: #e8dac6;
  --text: #2a4442; --heading: #16403c; --muted: #6d827d;
  --accent: #d9922e; --accent-ink: #2e2008; --accent-tint: rgba(216,146,46,.15); --accent-edge: rgba(216,146,46,.5);
  --link: #96601c; --ok-text: #14602f; --ok-bg: rgba(22,128,61,.1); --ok-border: rgba(22,128,61,.3);
  --warn-text: #85570a; --warn-bg: rgba(180,120,10,.12); --warn-border: rgba(180,120,10,.32);
  --bad-text: #9c2626; --bad-bg: rgba(190,40,40,.1); --bad-border: rgba(190,40,40,.3);
  --shadow: 0 1px 2px rgba(46,36,25,.08); --shadow-lift: 0 10px 30px rgba(46,36,25,.14);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e2523; --bg-tint: #12302c; --panel: #16332f; --panel-2: #1d403b; --panel-3: #275149;
    --line: #2c5a53; --line-soft: #21453f;
    --text: #e9dfd2; --heading: #f8f0e5; --muted: #9cb2ac;
    --accent: var(--brand-gold); --accent-ink: #2a1d06; --accent-tint: rgba(232,163,61,.14); --accent-edge: rgba(232,163,61,.42);
    --link: #eeb055; --ok-text: #7fe0a8; --ok-bg: rgba(34,197,94,.13); --ok-border: rgba(34,197,94,.34);
    --warn-text: #fbc356; --warn-bg: rgba(245,158,11,.13); --warn-border: rgba(245,158,11,.34);
    --bad-text: #fca5a5; --bad-bg: rgba(239,68,68,.13); --bad-border: rgba(239,68,68,.34);
    --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lift: 0 10px 30px rgba(0,0,0,.45);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e2523; --bg-tint: #12302c; --panel: #16332f; --panel-2: #1d403b; --panel-3: #275149;
  --line: #2c5a53; --line-soft: #21453f;
  --text: #e9dfd2; --heading: #f8f0e5; --muted: #9cb2ac;
  --accent: var(--brand-gold); --accent-ink: #2a1d06; --accent-tint: rgba(232,163,61,.14); --accent-edge: rgba(232,163,61,.42);
  --link: #eeb055; --ok-text: #7fe0a8; --ok-bg: rgba(34,197,94,.13); --ok-border: rgba(34,197,94,.34);
  --warn-text: #fbc356; --warn-bg: rgba(245,158,11,.13); --warn-border: rgba(245,158,11,.34);
  --bad-text: #fca5a5; --bad-bg: rgba(239,68,68,.13); --bad-border: rgba(239,68,68,.34);
  --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lift: 0 10px 30px rgba(0,0,0,.45);
}

/*
 * Autumn: a seasonal look, switched on in Settings. The page is the same page;
 * the gold turns to pumpkin and rust, the backgrounds warm a touch, and a few
 * leaves drift across the top of the home page.
 *
 * Order matters here. The light block below outranks the everyday dark
 * block, so each dark block that follows sets every variable the light one
 * does, and dark stays dark.
 */
:root.fall {
  --brand-gold: #e0853a; --brand-gold-bright: #f5c48c;
  --bg: #f3e6d5; --bg-tint: #f9eee1; --panel-2: #f7e6d1; --panel-3: #eed5b9;
  --line: #dfc4a4; --line-soft: #ead5bc;
  --accent: #c7662a; --accent-ink: #2e1606; --accent-tint: rgba(199,102,42,.14); --accent-edge: rgba(199,102,42,.45);
  --link: #9a4516;
  --leaf-1: #b5532a; --leaf-2: #d98a2f; --leaf-3: #c9a13b; --leaf-4: #9c3b25;
}

@media (prefers-color-scheme: dark) {
  :root.fall:not([data-theme="light"]) {
    --brand-gold: #e98c45; --brand-gold-bright: #f7c691;
    --bg: #0f2421; --bg-tint: #13302b; --panel-2: #1f3f38; --panel-3: #2a4f46;
    --line: #2f5850; --line-soft: #23453e;
    --accent: #e98c45; --accent-ink: #2a1406; --accent-tint: rgba(233,140,69,.15); --accent-edge: rgba(233,140,69,.42);
    --link: #f2a468;
  }
}

:root.fall[data-theme="dark"] {
  --brand-gold: #e98c45; --brand-gold-bright: #f7c691;
  --bg: #0f2421; --bg-tint: #13302b; --panel-2: #1f3f38; --panel-3: #2a4f46;
  --line: #2f5850; --line-soft: #23453e;
  --accent: #e98c45; --accent-ink: #2a1406; --accent-tint: rgba(233,140,69,.15); --accent-edge: rgba(233,140,69,.42);
  --link: #f2a468;
}

/* A thin ribbon of turning leaves under the header and over the footer. */
.fall .site-head::after, .fall footer.site::before {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, var(--leaf-4), var(--leaf-1) 20%, var(--leaf-2) 45%, var(--leaf-3) 65%, var(--leaf-1) 85%, var(--leaf-4));
  opacity: .75;
}
.fall .site-head { border-bottom-color: transparent; }
.fall .site-head::after { bottom: -1px; }
.fall footer.site { position: relative; border-top-color: transparent; }
.fall footer.site::before { top: 0; }

/* The drawn hero, in autumn colours. A photo is left as it is. */
.fall .scene-art .crown.t0, .fall .scene-art .crown-side.t0 { fill: #b5532a; }
.fall .scene-art .crown.t1, .fall .scene-art .crown-side.t1 { fill: #d98a2f; }
.fall .scene-art .crown.t2, .fall .scene-art .crown-side.t2 { fill: #b89235; }
.fall .scene-art .crown.t3, .fall .scene-art .crown-side.t3 { fill: #8f3a22; }
.fall .scene-art .crown-side { opacity: .9; }
.fall .scene-art .row { stroke: #d6ae62; }

/* Leaves, drifting down the hero behind its words. */
.leaves { display: none; }
.fall .leaves { display: block; position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.fall .leaves i {
  position: absolute; top: -30px; left: 10%; width: 14px; height: 14px; opacity: 0;
  background: var(--leaf-1); border-radius: 0 72% 0 72%;
  animation: leaf-drift 24s linear infinite;
}
.fall .leaves i:nth-child(1) { left: 6%;  animation-delay: -2s; }
.fall .leaves i:nth-child(2) { left: 18%; background: var(--leaf-2); width: 11px; height: 11px; animation-duration: 28s; animation-delay: -15s; animation-name: leaf-drift-back; }
.fall .leaves i:nth-child(3) { left: 31%; background: var(--leaf-3); animation-duration: 21s; animation-delay: -8s; }
.fall .leaves i:nth-child(4) { left: 44%; background: var(--leaf-4); width: 12px; height: 12px; animation-duration: 30s; animation-delay: -22s; animation-name: leaf-drift-back; }
.fall .leaves i:nth-child(5) { left: 57%; background: var(--leaf-2); animation-duration: 25s; animation-delay: -5s; }
.fall .leaves i:nth-child(6) { left: 68%; width: 10px; height: 10px; animation-duration: 27s; animation-delay: -18s; animation-name: leaf-drift-back; }
.fall .leaves i:nth-child(7) { left: 79%; background: var(--leaf-3); width: 15px; height: 15px; animation-duration: 23s; animation-delay: -11s; }
.fall .leaves i:nth-child(8) { left: 88%; background: var(--leaf-4); animation-duration: 29s; animation-delay: -26s; animation-name: leaf-drift-back; }
.fall .leaves i:nth-child(9) { left: 95%; background: var(--leaf-2); width: 11px; height: 11px; animation-duration: 26s; animation-delay: -13s; }
@keyframes leaf-drift {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: .55; }
  50%  { transform: translate(38px, 320px) rotate(170deg); }
  85%  { opacity: .45; }
  100% { transform: translate(-18px, 680px) rotate(330deg); opacity: 0; }
}
@keyframes leaf-drift-back {
  0%   { transform: translate(0, 0) rotate(20deg); opacity: 0; }
  10%  { opacity: .5; }
  50%  { transform: translate(-34px, 330px) rotate(-150deg); }
  85%  { opacity: .4; }
  100% { transform: translate(22px, 680px) rotate(-310deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fall .leaves { display: none; }
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; color: var(--text); background: var(--bg);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--heading); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 5vw, 48px); letter-spacing: -.01em; }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.measure { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.eyebrow.on-hero { color: var(--brand-gold-bright); }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose.lead { font-size: 18px; color: var(--muted); max-width: 62ch; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 20; background: var(--panel); padding: 8px 12px; border-radius: 8px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 8; background: color-mix(in srgb, var(--panel) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--heading); font-weight: 800; font-size: 18px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--text); padding: 8px 12px; border-radius: 999px; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--accent-tint); color: var(--heading); text-decoration: none; }
.who { display: flex; align-items: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn:hover { text-decoration: none; filter: brightness(1.04); }
.btn.primary { background: linear-gradient(180deg, var(--brand-gold-bright), var(--brand-gold)); color: #2a1d06; box-shadow: var(--shadow); }
.btn.ghost { border-color: var(--line); color: var(--heading); background: var(--panel); }
.btn.on-hero { border-color: rgba(248,240,229,.5); color: var(--hero-ink); background: rgba(14,37,35,.25); }
.btn.gtaw { background: var(--brand-teal-deep); color: #f8f0e5; border-color: #2b5c56; }
.btn.small { padding: 7px 14px; font-size: 14px; }
.btn.danger { background: #b83232; color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: var(--heading); font-weight: 600; font-size: 14px; }
.pip { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: var(--accent-tint); border: 1px solid var(--accent-edge); font-size: 12px; font-weight: 800; color: var(--heading); }
.menu { display: none; }
.acct { position: relative; }
.acct > summary { list-style: none; cursor: pointer; }
.acct > summary::-webkit-details-marker { display: none; }
.acct > summary::marker { content: ""; }
.acct > summary:hover, .acct[open] > summary { border-color: var(--accent-edge); }
.acct .caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .6; transition: transform .15s ease; }
.acct[open] .caret { transform: rotate(180deg); }
.acct nav { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 220px; display: grid; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lift); }
.acct nav a { padding: 9px 12px; border-radius: 8px; color: var(--text); font-size: 15px; }
.acct nav a:hover { background: var(--accent-tint); color: var(--heading); text-decoration: none; }
.acct nav a.out { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; padding-top: 11px; }
.acct-head { margin: 4px 12px 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* Hero */
.hero { position: relative; overflow: hidden; color: var(--hero-ink); min-height: 520px; display: flex; align-items: flex-end; }
.hero .scene { position: absolute; inset: 0; }
.hero .scene-art, .hero .scene-photo { width: 100%; height: 100%; display: block; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,28,26,.82) 0%, rgba(10,28,26,.25) 55%, rgba(10,28,26,0) 100%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; padding-bottom: 64px; padding-top: 120px; width: 100%; }
.hero h1 { color: var(--hero-ink); max-width: 16ch; }
.hero p { max-width: 52ch; font-size: 18px; color: rgba(248,240,229,.9); }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* Sections */
.band { padding: 72px 0; }
.band.tint { background: var(--bg-tint); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.page-head { padding: 56px 24px 12px; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.split.flip > :first-child { order: 2; }
.grid { display: grid; gap: 20px; margin-top: 24px; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); margin-bottom: 14px; }
.card.empty { color: var(--muted); text-align: center; }
.photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--line); background: var(--panel-2); }
.photo img, .photo svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; }
.stat b { display: block; font-size: 26px; color: var(--heading); }
.head-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; }

/* Positions */
.pos { display: flex; flex-direction: column; gap: 10px; }
.pos .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.pos h3 { margin: 0; }
.pos p { margin: 0; }
.tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); }
.tag.ok { color: var(--ok-text); background: var(--ok-bg); border-color: var(--ok-border); }
.tag.warn { color: var(--warn-text); background: var(--warn-bg); border-color: var(--warn-border); }
.pos .pay { font-size: 20px; font-weight: 800; color: var(--heading); }
.pos .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.filters { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.filters a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); font-size: 14px; background: var(--panel); }
.filters a[aria-current] { background: var(--accent-tint); border-color: var(--accent-edge); color: var(--heading); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.facts-list { display: grid; gap: 14px; }
.facts-list > div { display: flex; flex-direction: column; }
.facts-list b { font-size: 20px; color: var(--heading); }

/* Events */
.list { display: grid; gap: 14px; margin-top: 24px; }
.event { display: grid; grid-template-columns: 84px 1fr; gap: 18px; align-items: center; }
.event h3 { margin-bottom: 2px; }
.event .blurb { margin-top: 6px; white-space: pre-line; }
.date { text-align: center; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); padding: 10px 0; }
.date b { display: block; font-size: 26px; color: var(--heading); line-height: 1; }
.date span { font-size: 12px; letter-spacing: .1em; font-weight: 700; color: var(--accent); }

/* Questions */
.faq { margin-top: 20px; display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--heading); }
.faq details[open] summary { margin-bottom: 8px; }

/* Gallery and people */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 24px; }
.gallery figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person { text-align: center; }
.person .avatar, .person .portrait { width: 96px; height: 96px; border-radius: 999px; margin: 0 auto 14px; display: grid; place-items: center; object-fit: cover; }
.person .avatar { background: linear-gradient(135deg, var(--accent-tint), var(--panel-2)); border: 1px solid var(--accent-edge); font-size: 28px; font-weight: 800; color: var(--heading); }
.person h3 { margin-bottom: 2px; }

/* The dark band */
.cta { background: linear-gradient(120deg, var(--brand-teal-deep), var(--brand-teal)); color: #f8f0e5; border-radius: 20px; padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.cta h2 { color: #f8f0e5; margin: 0 0 6px; }
.cta p { color: rgba(248,240,229,.84); margin: 0; }

/* Messages */
.flash { max-width: var(--wrap); margin: 16px auto 0; padding: 12px 18px; border-radius: var(--radius-sm); border: 1px solid var(--ok-border); background: var(--ok-bg); color: var(--text); }
.flash.bad { border-color: var(--bad-border); background: var(--bad-bg); }

/* Footer */
footer.site { padding: 48px 0 36px; border-top: 1px solid var(--line); margin-top: 24px; }
footer .cols { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 28px; }
footer h4 { margin: 0 0 10px; color: var(--heading); font-size: 14px; }
footer .cols a:not(.brand) { display: block; color: var(--muted); font-size: 14px; padding: 3px 0; }
footer .ooc { text-align: center; color: var(--muted); font-size: 13px; margin-top: 34px; }
footer .socials { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
footer .cols a.social { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 999px; color: var(--heading); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
footer .cols a.social:hover { color: var(--accent); border-color: var(--accent-edge); text-decoration: none; }
footer .cols a.social.facebrowser { width: 42px; height: 42px; border: 0; box-shadow: none; background: transparent; }
.facebrowser .fb-ink { stroke: #f5a91b; }
.facebrowser .fb-ink-fill { fill: #f5a91b; }
.facebrowser .fb-cut { fill: var(--bg); }
footer .cols a.social.facebrowser:hover svg { filter: brightness(1.12); transform: scale(1.06); }
footer .cols a.social.facebrowser svg { transition: transform 120ms ease; }
footer .cols a.btn.discord { display: inline-flex; padding: 9px 16px; font-size: 14px; color: #fff; background: #5865f2; border-color: #5865f2; box-shadow: var(--shadow); }
footer .cols a.btn.discord:hover { background: #4752c4; border-color: #4752c4; text-decoration: none; }
.theme-switch { display: flex; gap: 6px; justify-content: center; margin-top: 14px; }
.theme-switch button { font: inherit; font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; }
.theme-switch button[aria-pressed="true"] { background: var(--accent-tint); color: var(--heading); border-color: var(--accent-edge); }

/* Signed in: characters, applying, following an application */
.narrow { max-width: 900px; }
.page-head.narrow { margin: 0 auto; }
.lead { font-size: 18px; max-width: 62ch; }
.push { margin-left: auto; }
form.inline { display: inline; margin: 0; }
.who-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); margin: 22px 0 26px; }
.chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.char { position: relative; text-align: left; font: inherit; color: var(--text); cursor: pointer; display: grid; justify-items: start; gap: 8px; }
.char:hover { border-color: var(--accent-edge); }
.char .avatar { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-weight: 800; font-size: 22px; color: var(--heading); background: linear-gradient(135deg, var(--accent-tint), var(--panel-2)); border: 1px solid var(--accent-edge); margin-bottom: 6px; }
.char .char-name { font-size: 19px; color: var(--heading); }
.char.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint), var(--shadow-lift); }
.char .check { position: absolute; top: 18px; right: 18px; width: 26px; height: 26px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 900; font-size: 14px; }
.char .line { font-size: 14px; color: var(--muted); }
.steps { display: flex; gap: 8px; margin: 18px 0 26px; flex-wrap: wrap; }
.steps span { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--panel); }
.steps span.on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); font-weight: 700; }
.steps span.done { color: var(--ok-text); background: var(--ok-bg); border-color: var(--ok-border); }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.form-layout fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 22px 22px; margin: 0 0 20px; background: var(--panel); min-width: 0; }
.form-layout legend { padding: 0 8px; font-weight: 700; color: var(--heading); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.field { min-width: 0; }
.field.wide { grid-column: 1 / -1; }
main label { display: block; font-size: 14px; color: var(--muted); margin: 14px 0 0; }
main input[type="text"], main textarea, main select { display: block; width: 100%; margin-top: 6px; padding: 11px 13px; font: inherit; color: var(--text); background: var(--bg-tint); border: 1px solid var(--line); border-radius: var(--radius-sm); }
main textarea { resize: vertical; }
main input[readonly] { background: var(--panel-2); color: var(--heading); font-weight: 600; }
main input.err, main textarea.err, main select.err { border-color: var(--bad-text); }
.hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
.hint.prose p { margin: 0 0 .4em; }
.hint.prose blockquote { margin: 6px 0; padding-left: 10px; border-left: 3px solid var(--line); }
.bad { color: var(--bad-text); }
.aside { position: sticky; top: 24px; }
.aside h3 { margin-top: 0; }
.aside hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.actions.spread { justify-content: space-between; }
.actions.start { justify-content: flex-start; }
.inline-flash { margin: 0 0 20px; }
.callout { border: 1px solid var(--warn-border); background: var(--warn-bg); color: var(--text); border-radius: var(--radius-sm); padding: 14px 16px; margin: 18px 0; }
.callout p { margin: 0 0 8px; }
.callout.ok { border-color: var(--ok-border); background: var(--ok-bg); }
.form-layout.single { grid-template-columns: minmax(0, 1fr); }
main input.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.answers { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 10px 18px; margin: 0; }
.answers dt { color: var(--muted); font-size: 14px; }
.answers dd { margin: 0; color: var(--heading); overflow-wrap: anywhere; white-space: pre-wrap; }
.steps-list { padding-left: 22px; margin: 22px 0; }
.steps-list li { margin-bottom: 16px; }
.code-box { margin: 10px 0 6px; padding: 14px 18px; border-radius: var(--radius-sm); border: 1px dashed var(--accent-edge); background: var(--accent-tint); font-size: 20px; overflow-x: auto; }
.code-box code { font-weight: 700; color: var(--heading); letter-spacing: .04em; }
.app-card { margin-top: 20px; }
.portal-h2 { margin-top: 36px; }
.order-table { width: 100%; border-collapse: collapse; }
.order-table th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 10px 8px 6px 0; border-bottom: 1px solid var(--line); }
.order-table td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.order-table td label { margin: 0; color: var(--heading); }
.order-table td .small { display: block; }
.order-table td:last-child { width: 110px; }
.order-table input { margin-top: 0 !important; }
.order-lines { margin: 0 0 14px; padding-left: 20px; }
.app-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 18px; }
.app-head h3 { margin: 0 0 2px; }
.timeline { list-style: none; margin: 8px 0 20px; padding: 0; display: flex; }
.timeline li { flex: 1; position: relative; padding-top: 28px; font-size: 13px; color: var(--muted); min-width: 0; }
.timeline li::before { content: ""; position: absolute; top: 8px; left: 0; right: 0; height: 3px; background: var(--line); }
.timeline li::after { content: ""; position: absolute; top: 2px; left: 0; width: 15px; height: 15px; border-radius: 999px; background: var(--panel); border: 3px solid var(--line); box-sizing: border-box; }
.timeline li.done::before, .timeline li.done::after { background: var(--accent); border-color: var(--accent); }
.timeline li.now::after { background: var(--panel); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.timeline li.done, .timeline li.now { color: var(--heading); font-weight: 600; }
.msg { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; margin: 16px 0; }
.msg.mine { border-left-color: var(--line); }
.msg .by { font-size: 13px; color: var(--muted); }
.msg .prose p { margin: 4px 0; }
.event-interest { margin-top: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.donate-card { margin-top: 20px; }
.donate-form label { margin-top: 0; }
.donate-row { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; margin-top: 6px; }
.donate-row input[type="text"] { flex: 1 1 180px; width: auto; margin-top: 0; }
.donate-form .quick { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.donate-info { margin-top: 20px; align-items: start; }

/* Phones */
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .page-head { padding: 40px 16px 4px; }
  .site-head .wrap { gap: 12px; min-height: 60px; }
  .brand { font-size: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .brand img { width: 32px; height: 32px; }
  .nav { display: none; }
  .menu { display: block; margin-left: auto; position: relative; }
  .menu summary { list-style: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--heading); background: var(--panel); cursor: pointer; font-size: 18px; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu nav { position: absolute; right: 0; top: 48px; min-width: 200px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow-lift); display: grid; }
  .menu nav a { padding: 10px 12px; border-radius: 8px; color: var(--text); }
  .who .btn.gtaw span.long, .who .chip span.long { display: none; }
  .who .dash { display: none; }
  .acct nav { width: min(260px, calc(100vw - 32px)); min-width: 0; }
  .hero { min-height: 480px; }
  .hero .wrap { padding-bottom: 40px; }
  .hero p { font-size: 16px; }
  .band { padding: 48px 0; }
  .split, .cards-2, .cards-3, .facts { grid-template-columns: minmax(0, 1fr); }
  .split.flip > :first-child { order: 0; }
  .head-row { flex-direction: column; align-items: start; }
  .event { grid-template-columns: 64px 1fr; }
  .cta { flex-direction: column; align-items: start; padding: 28px; }
  footer .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  footer .cols > :first-child { grid-column: 1 / -1; }
  .form-layout, .row2 { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
  .answers { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .answers dd { margin-bottom: 10px; }
  .timeline li { font-size: 11.5px; }
  .code-box { font-size: 16px; }
}
