/* Shipaton utility pages: projects, speakers, and starter kit. */
.page-main { min-height: 70vh; background: var(--night); }
.page-hero {
  position: relative; overflow: hidden; border-bottom: 2px solid var(--line);
  padding-block: clamp(3.25rem, 8vw, 6rem);
}
.page-hero::after {
  content: ""; position: absolute; width: 18rem; height: 18rem; right: -5rem; top: -7rem;
  border: 2px solid var(--line); border-radius: 50%; box-shadow: 0 0 0 2.8rem var(--subtle), 0 0 0 3rem var(--line);
  opacity: 0.55; pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; max-width: 62rem; }
.page-hero .eyebrow { margin-bottom: 1.25rem; }
.page-title { font-size: clamp(2.5rem, 8vw, 5rem); max-width: 13ch; }
.page-lede { color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); max-width: 62ch; margin: 1.25rem 0 0; }
.thai-line { display: block; color: var(--gold); font-size: 0.88em; margin-top: 0.35rem; }
.page-section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.page-section--alt { background: var(--void); }

.path-grid, .resource-grid, .step-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.4rem;
}
.path-card, .resource-card, .step-card { padding: 1.5rem; }
.path-card h2, .resource-card h2, .resource-card h3, .step-card h3 { font-size: 1.25rem; margin-bottom: 0.65rem; }
.path-card p, .resource-card p, .step-card p { color: var(--muted); margin: 0; }
.path-card .btn, .resource-card .btn { margin-top: 1.2rem; }
.card-tag {
  display: inline-block; margin-bottom: 1rem; padding: 0.28rem 0.5rem;
  background: var(--gold); color: var(--ink); border: 2px solid var(--ink); border-radius: 4px;
  font: 800 0.72rem/1 var(--mono); text-transform: uppercase; transform: rotate(-1deg);
}

.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.38fr); gap: 2rem; align-items: start; }
.form-shell { padding: clamp(1.2rem, 3vw, 2rem); }
.form-shell h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: 0.5rem; }
.form-intro { margin: 0 0 1.8rem; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.field { display: grid; gap: 0.42rem; }
.field--wide { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 800; font-size: 0.9rem; }
.field small { color: var(--muted); font-size: 0.78rem; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--void); border: 2px solid var(--line); border-radius: var(--r);
  color: var(--cream); font: 600 0.95rem/1.45 var(--sans); padding: 0.78rem 0.85rem;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); outline: none; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--dp-compete); }
.check-row { display: flex; gap: 0.7rem; align-items: flex-start; }
.check-row input { width: 1.1rem; height: 1.1rem; margin-top: 0.22rem; flex: none; accent-color: var(--orange); }
.check-row label { font-size: 0.88rem; color: var(--muted); }
.captcha-box { min-height: 68px; margin-top: 0.2rem; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 1.4rem; }
.form-actions .btn[disabled] { opacity: 0.48; cursor: not-allowed; transform: none; box-shadow: 3px 3px 0 var(--ink); }
.form-status { min-height: 1.4em; margin: 1rem 0 0; color: var(--muted); font-size: 0.88rem; }
.form-status.is-error { color: var(--dp-compete); font-weight: 700; }
.form-status.is-ok { color: var(--dp-camp); font-weight: 700; }
.verify-panel { margin-top: 1.5rem; padding: 1.35rem; background: var(--void); }
.verify-panel h3 { font-size: 1.2rem; margin-bottom: 0.45rem; }
.verify-panel p { color: var(--muted); margin: 0 0 1rem; }
.code-input { max-width: 13rem; letter-spacing: 0.35em; font: 800 1.3rem/1 var(--mono) !important; text-align: center; }
.side-note { padding: 1.4rem; position: sticky; top: 5.5rem; }
.side-note h2 { font-size: 1.15rem; margin-bottom: 0.8rem; }
.side-note ol, .side-note ul { margin: 0; padding-inline-start: 1.25rem; color: var(--muted); }
.side-note li + li { margin-top: 0.7rem; }
.privacy-note { margin-top: 1.2rem; color: var(--muted); font-size: 0.8rem; }
.success-card { padding: 2rem; text-align: center; }
.success-card h2 { font-size: 1.8rem; margin-bottom: 0.7rem; }
.success-card p { color: var(--muted); max-width: 52ch; margin: 0 auto 1.2rem; }
/* Registration — signup happens here, then hands off to Luma.
   The two-step rail is load-bearing copy, not decoration: people who stop
   after this form are not on the guest list that gets the venue email. */
.steprail { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin: 0 0 1.4rem; }
.steprail li { display: flex; align-items: center; gap: 0.45rem; list-style: none; font: 800 0.78rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.steprail li b { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border: 2px solid var(--line); border-radius: 999px; background: var(--void); color: var(--muted); font-size: 0.75rem; }
.steprail li[aria-current="step"] { color: var(--cream); }
.steprail li[aria-current="step"] b { border-color: var(--orange); background: var(--orange); color: var(--ink); }
.steprail span { color: var(--line); }

.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.choice { position: relative; margin: 0; }
/* The input covers the card so the whole card is the hit target, and it stays
   in the a11y tree — visually-hidden inputs lose the focus ring on some UAs. */
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice__body { display: block; height: 100%; padding: 0.85rem 0.9rem; border: 2px solid var(--line); border-radius: var(--r); background: var(--void); transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.choice__body b { display: block; font-size: 0.95rem; }
.choice__body small { display: block; margin-top: 0.25rem; color: var(--muted); font-size: 0.78rem; line-height: 1.4; }
.choice input:checked + .choice__body { border-color: var(--orange); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 0 var(--ink); }
.choice input:focus-visible + .choice__body { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (hover: hover) { .choice input:not(:checked):hover + .choice__body { border-color: var(--muted); } }

.handoff { margin-top: 1.4rem; padding: 1.35rem; background: var(--void); text-align: left; }
.handoff h3 { font-size: 1.15rem; margin-bottom: 0.45rem; }
.handoff p { color: var(--muted); margin: 0 0 1rem; max-width: 46ch; }
.handoff .btn { width: 100%; justify-content: center; }
.handoff__fallback { margin: 0.9rem 0 0; font-size: 0.8rem; color: var(--muted); }
.handoff__fallback a { color: var(--gold); }

@media (max-width: 46rem) {
  .choice-grid { grid-template-columns: 1fr; }
}

/* Organizer registration list. Not linked from anywhere public. */
.admin-gate { max-width: 26rem; padding: 1.4rem; margin-top: 1.6rem; }
.admin-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 0.75rem; margin: 1.6rem 0 1.2rem; padding: 0; list-style: none; }
.admin-tiles li { padding: 0.9rem 1rem; border: 2px solid var(--line); border-radius: var(--r); background: var(--night); }
.admin-tiles b { display: block; font-size: 1.9rem; line-height: 1.1; color: var(--gold); font-family: var(--mono); }
.admin-tiles span { display: block; margin-top: 0.2rem; font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.admin-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 0.75rem; margin-bottom: 1rem; }
.admin-search { flex: 1 1 16rem; }
/* The table is wider than a phone and must scroll inside its own box rather
   than making the whole page scroll sideways. */
.admin-tablewrap { overflow-x: auto; border: 2px solid var(--line); border-radius: var(--r); background: var(--night); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.admin-table th, .admin-table td { padding: 0.65rem 0.8rem; text-align: left; vertical-align: top; white-space: nowrap; }
.admin-table thead th { position: sticky; top: 0; background: var(--subtle); color: var(--cream); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.admin-table tbody tr + tr { border-top: 1px solid var(--line); }
.admin-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
.admin-table td:nth-child(9), .admin-table td:nth-child(10) { white-space: normal; min-width: 14rem; }
.admin-mono { font-family: var(--mono); font-size: 0.8rem; color: var(--gold); }

[hidden] { display: none !important; }

/* Project board */
.page-hero--board { padding-block: clamp(2.4rem, 6vw, 4.8rem); }
.page-hero--board::after { display: none; }
.project-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.55fr); align-items: center; gap: 2rem; }
.project-hero__characters { position: relative; align-self: stretch; min-height: 31rem; }
.project-hero__laptop { position: absolute; right: 6rem; bottom: -4.8rem; width: min(21rem, 68%); z-index: 2; }
.project-hero__peek { position: absolute; right: -1.5rem; bottom: -4.8rem; width: min(13rem, 44%); z-index: 1; }
.project-hero__spark { position: absolute; right: 1rem; top: 2rem; width: 4.5rem; transform: rotate(12deg); }

.board-section { padding-block: clamp(2.5rem, 6vw, 5rem); background: var(--void); overflow: hidden; }
.board-shell { max-width: 92rem; }
.board-toolbar { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(24rem, 1fr); gap: 2rem; align-items: end; padding: 1.4rem; margin-bottom: 1.4rem; }
.board-toolbar h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); }
.board-toolbar p { color: var(--muted); margin: 0.45rem 0 0; max-width: 56ch; }
.board-kicker { color: var(--orange) !important; font: 800 0.72rem/1.2 var(--mono); letter-spacing: 0.11em; }
.board-tools { display: grid; gap: 0.9rem; }
.board-search { display: grid; gap: 0.35rem; color: var(--cream); font-weight: 800; font-size: 0.78rem; }
.board-search input { width: 100%; min-height: 2.8rem; padding: 0.7rem 0.85rem; color: var(--cream); background: var(--void); border: 2px solid var(--line); border-radius: var(--r); font: 600 0.9rem/1.2 var(--sans); }
.board-search input:focus { border-color: var(--orange); outline: none; }
.board-filters { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.board-filter { border: 2px solid var(--line); border-radius: 999px; background: var(--void); color: var(--muted); padding: 0.42rem 0.78rem; font: 800 0.72rem/1 var(--mono); cursor: pointer; }
.board-filter:hover, .board-filter.is-active { background: var(--gold); border-color: var(--ink); color: var(--ink); }

.board-viewport { overflow-x: auto; background: #1d1629 url("/assets/img/deco-swash.webp") no-repeat right 1.5rem top 1.5rem / 11rem auto; scrollbar-color: var(--orange) var(--void); }
.board-canvas { min-width: 68rem; min-height: 41rem; display: grid; grid-template-columns: repeat(3, minmax(21rem, 1fr)); gap: 1rem; padding: 1.1rem; }
.board-lane { position: relative; min-height: 38rem; padding: 1rem; border: 2px dashed var(--line); border-radius: var(--r); overflow: hidden; }
.board-lane > header { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; align-items: center; gap: 0.7rem; margin-bottom: 1rem; padding-bottom: 0.85rem; border-bottom: 2px solid var(--line); }
.board-lane > header img { width: 3.4rem; height: 3.4rem; object-fit: contain; }
.board-lane > header span { display: block; color: var(--orange); font: 800 0.66rem/1 var(--mono); letter-spacing: 0.08em; }
.board-lane > header h3 { margin-top: 0.3rem; font-size: 1.2rem; }
.board-lane > header strong { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--cream); color: var(--ink); font: 900 0.8rem/1 var(--mono); }
.board-cards { display: grid; gap: 0.85rem; }
.project-pin { --pin: #fff0bd; display: grid; gap: 0.8rem; width: 100%; padding: 1rem; border: 2px solid var(--ink); border-radius: 4px; background: var(--pin); color: var(--ink); text-align: left; box-shadow: 5px 5px 0 rgba(7,5,14,.5); transform: rotate(var(--pin-tilt, -1deg)); cursor: pointer; font-family: var(--sans); transition: transform .15s ease, box-shadow .15s ease; }
.project-pin:nth-child(3n+2) { --pin: #cfe0ff; }
.project-pin:nth-child(3n) { --pin: #ffd0a6; }
.project-pin:hover { transform: translate(-2px,-2px) rotate(0); box-shadow: 8px 8px 0 rgba(7,5,14,.55); }
.project-pin__top { display: flex; justify-content: space-between; gap: 0.6rem; color: #4c3b4e; font: 800 0.62rem/1.2 var(--mono); text-transform: uppercase; }
.project-pin__stage { color: #7c3800; }
.project-pin > strong { font-size: 1.22rem; line-height: 1.1; }
.project-pin__pitch { color: #392f3e; font-size: 0.86rem; line-height: 1.45; }
.project-pin__team { padding-top: 0.7rem; border-top: 2px solid rgba(7,5,14,.18); color: #4c3b4e; font: 800 0.65rem/1.2 var(--mono); }
.board-prompt { margin-top: 1rem; padding: 1rem; border: 2px solid var(--ink); border-radius: 4px; color: var(--ink); box-shadow: 5px 5px 0 rgba(7,5,14,.45); transform: rotate(-1deg); }
.board-prompt--gold { background: #fff0bd; }
.board-prompt--blue { background: #cfe0ff; transform: rotate(1deg); }
.board-prompt--orange { background: #ffd0a6; }
.board-prompt span { font: 900 0.62rem/1 var(--mono); letter-spacing: .08em; }
.board-prompt h4 { margin: 0.65rem 0 0.35rem; font-size: 1.05rem; line-height: 1.15; }
.board-prompt p { margin: 0; color: #392f3e; font-size: .85rem; line-height: 1.45; }
.board-character { position: absolute; pointer-events: none; }
.board-character--building { width: 8rem; right: -1rem; bottom: -1.6rem; }
.board-empty { display: grid; grid-template-columns: 7rem 1fr; align-items: center; gap: 0.8rem; margin-top: 1rem; padding: 0.8rem; border: 2px dashed var(--line); border-radius: var(--r); }
.board-empty img { width: 7rem; }
.board-empty h4 { margin: 0; font-size: 1rem; }
.board-empty p { margin: 0.35rem 0; color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.board-empty a { color: var(--gold); font-weight: 800; font-size: 0.82rem; }
.board-status { min-height: 1.4rem; margin: 0.85rem 0 0; color: var(--muted); font-size: .82rem; }

.project-dialog { width: min(38rem, calc(100% - 2rem)); max-height: calc(100vh - 2rem); overflow: auto; padding: clamp(1.4rem, 4vw, 2.3rem); color: var(--cream); }
.project-dialog::backdrop { background: rgba(7,5,14,.78); }
.project-dialog__close { float: right; border: 0; background: transparent; color: var(--gold); font: 800 .75rem/1 var(--mono); cursor: pointer; }
.project-dialog h2 { clear: both; margin: .7rem 0; font-size: clamp(1.7rem, 5vw, 2.6rem); }
.project-dialog__pitch { color: var(--muted); font-size: 1.05rem; }
.project-dialog dl { display: grid; gap: .7rem; margin: 1.4rem 0 0; }
.project-dialog dl div { padding-top: .7rem; border-top: 2px solid var(--line); }
.project-dialog dt { color: var(--orange); font: 800 .7rem/1 var(--mono); text-transform: uppercase; }
.project-dialog dd { margin: .4rem 0 0; color: var(--cream); }

.form-heading { display: grid; grid-template-columns: 7.5rem minmax(0,1fr); gap: 1.2rem; align-items: end; margin-bottom: 1.5rem; }
.form-heading > img { width: 7.5rem; max-height: 10rem; object-fit: contain; object-position: bottom; }
.form-heading .form-intro { margin: .55rem 0 0; }
.side-note { overflow: hidden; }
.side-note__character { float: right; width: 5.5rem; margin: -1.4rem -1.2rem .4rem .7rem; }

/* Character-led utility page accents */
.character-hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(12rem,.35fr); align-items: center; gap: 2rem; }
.character-hero__art { position: relative; align-self: end; }
.character-hero__art > img { max-height: 21rem; margin-inline: auto; object-fit: contain; object-position: bottom; }
.card-icon { width: 4.2rem; height: 4.2rem; object-fit: contain; margin-bottom: .9rem; }
.kit-guide { display: grid; grid-template-columns: minmax(0,1fr) minmax(14rem,.3fr); gap: 2rem; align-items: start; }
.kit-guide__buddy { position: sticky; top: 6rem; padding: 1.2rem; text-align: center; }
.kit-guide__buddy img { width: min(13rem,100%); margin-inline: auto; }
.kit-guide__buddy p { margin: .75rem 0 0; color: var(--muted); font-size: .85rem; }

.kit-list { display: grid; gap: 1rem; counter-reset: kit; }
.kit-item { position: relative; padding: 1.35rem 1.35rem 1.35rem 4.5rem; }
.kit-item::before {
  counter-increment: kit; content: counter(kit, decimal-leading-zero); position: absolute; left: 1.15rem; top: 1.25rem;
  color: var(--orange); font: 900 1rem/1 var(--mono);
}
.kit-item h2 { font-size: 1.2rem; margin-bottom: 0.45rem; }
.kit-item p { color: var(--muted); margin: 0; }
.link-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.text-link { color: var(--gold); font-weight: 800; text-underline-offset: 0.25em; }
.callout { padding: 1.4rem; border-inline-start: 6px solid var(--orange); }
.callout h2 { font-size: 1.3rem; margin-bottom: 0.55rem; }
.callout p { margin: 0; color: var(--muted); }

@media (max-width: 860px) {
  .form-layout { grid-template-columns: 1fr; }
  .side-note { position: static; }
  .project-hero { grid-template-columns: 1fr; }
  .project-hero__characters { min-height: 20rem; }
  .project-hero__laptop { left: 7%; right: auto; bottom: -3rem; width: 13rem; }
  .project-hero__peek { right: 3%; bottom: -3rem; width: 9rem; }
  .board-toolbar { grid-template-columns: 1fr; }
  .character-hero { grid-template-columns: 1fr; }
  .character-hero__art > img { max-height: 15rem; }
  .kit-guide { grid-template-columns: 1fr; }
  .kit-guide__buddy { position: static; }
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .page-hero::after { opacity: 0.25; }
  .kit-item { padding-inline-start: 1.35rem; padding-top: 3.6rem; }
  .kit-item::before { top: 1.2rem; }
  .board-section { padding-inline: 0; }
  .board-shell { padding-inline: .8rem; }
  .board-canvas { min-width: 58rem; grid-template-columns: repeat(3, minmax(18rem, 1fr)); }
  .board-lane { min-height: 34rem; }
  .form-heading { grid-template-columns: 5rem minmax(0,1fr); }
  .form-heading > img { width: 5rem; max-height: 7rem; }
}
