/* Startup TNT Forms. Tokens copied from the Startup TNT Design System (colors_and_type.css, Sep 2026).
   Web font: Barlow Condensed (the design system's named fallback). Avenir Next Condensed is not
   embedded on public pages until its web licence is confirmed.
   Look matched to startuptnt.com (2026-11-03): white page, charcoal type, square corners, solid brand-pink
   buttons, title-case condensed headings, the pink A mark over photos, charcoal footer band. */
:root {
  --tnt-pink: #FF4C88;
  --tnt-pink-10: rgba(255, 76, 136, 0.10);
  --tnt-pink-25: rgba(255, 76, 136, 0.25);
  /* Darker pinks from the design system hover/press tokens. Used for text and buttons so they pass
     WCAG AA contrast on white (brand pink #FF4C88 is about 3:1, too light for small text). */
  --accent-strong: #CC3469;
  --accent-strong-hover: #B02C5A;
  --black: #000000;
  --grey-dark: #333333;
  --fg2: #555555;
  --fg3: #6E6E6E;
  --line: #E4E4E4;
  --off-white: #F2F2F2;
  --white: #FFFFFF;
  --ok: #1F8A5B;
  --err: #B3261E;
  --font: "Barlow Condensed", "Avenir Next Condensed", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --charcoal: #333333;
  --grey-btn: #575556;
  --radius-md: 2px;
  --radius-lg: 2px;
  --radius-pill: 2px;
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--grey-dark);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-strong); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--grey-dark); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 10; }

.topbar { background: var(--white); padding: 14px 16px; border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 720px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar img { height: 40px; width: auto; display: block; }
.topbar .region-tag {
  font-family: var(--font); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 13px; color: var(--white); background: var(--grey-btn); border-radius: var(--radius-pill); padding: 4px 10px;
}

main { max-width: 720px; margin: 0 auto; padding: 24px 16px 64px; }

.eyebrow {
  font-family: var(--font); font-weight: 700; font-size: 14px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-strong); margin: 0 0 6px;
}
h1 {
  font-family: var(--font); font-weight: 700; letter-spacing: -0.005em;
  font-size: clamp(38px, 8vw, 58px); line-height: 1.02; margin: 0 0 14px; color: var(--charcoal);
}
h2 {
  font-family: var(--font); font-weight: 700; font-size: 26px; line-height: 1.1; margin: 0 0 4px; color: var(--charcoal);
}
.intro p { margin: 0 0 12px; color: var(--fg2); }

.banner { border-radius: var(--radius-md); padding: 12px 14px; margin: 16px 0; font-weight: 500; }
.banner.test { background: #FFF4CC; border: 1px solid #E8C547; }
.banner.info { background: var(--white); border: 1px solid var(--line); }
.banner.closed { background: var(--white); border: 2px solid var(--grey-dark); }
.banner.template { background: var(--tnt-pink-10); border: 1px dashed var(--accent-strong); }
.banner.error { background: #FDECEA; border: 1px solid var(--err); color: var(--err); }
.banner.ok { background: #E7F5EE; border: 1px solid var(--ok); }

.card {
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--tnt-pink); border-radius: var(--radius-lg);
  padding: 20px 16px; margin: 20px 0;
}
.card > .section-desc { color: var(--fg2); margin: 0 0 12px; }

.field { margin: 18px 0 0; }
.field:first-of-type { margin-top: 12px; }
.field[hidden] { display: none; }
label.q, legend.q { display: block; font-weight: 600; margin: 0 0 6px; color: var(--black); padding: 0; }
.req { color: var(--accent-strong); margin-left: 2px; }
.help { display: block; font-size: 15px; color: var(--fg3); margin: -2px 0 8px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=date],
select, textarea {
  width: 100%; font: inherit; color: var(--black); background: var(--white);
  border: 1px solid #BDBDBD; border-radius: var(--radius-md); padding: 12px 12px; min-height: 48px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--grey-dark); box-shadow: 0 0 0 3px var(--tnt-pink-25); }
[aria-invalid=true] { border-color: var(--err) !important; }
.err-msg { color: var(--err); font-size: 15px; margin: 6px 0 0; }
.count { font-size: 13px; color: var(--fg3); text-align: right; margin-top: 4px; }

.choices { display: grid; gap: 8px; }
.choice {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px; min-height: 48px;
  border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); cursor: pointer;
}
.choice:hover { border-color: #BDBDBD; }
.choice input { margin: 3px 0 0; width: 20px; height: 20px; accent-color: var(--accent-strong); flex-shrink: 0; }
.choice:has(input:checked) { border-color: var(--accent-strong); background: var(--tnt-pink-10); }

/* Segmented buttons for ratings, 0-10 scales and yes/no */
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; flex: 1 0 44px; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 10px;
  border: 1px solid #BDBDBD; border-radius: var(--radius-md); font-weight: 600; background: var(--white);
}
.seg input:checked + span { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--white); }
.seg input:focus-visible + span { outline: 3px solid var(--grey-dark); outline-offset: 2px; }
.seg-ends { display: flex; justify-content: space-between; font-size: 14px; color: var(--fg3); margin-top: 6px; gap: 12px; }

/* Ranking board */
.board { list-style: none; margin: 12px 0 0; padding: 0; }
.item {
  display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 10px 8px 10px 10px; margin: 0 0 8px; touch-action: manipulation;
  transition: box-shadow 120ms var(--ease);
}
.item.top { background: #FFF5F8; border-color: var(--tnt-pink-25); }
.item .rank {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--grey-dark); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-family: var(--font); font-weight: 700; font-size: 17px;
}
.item.top .rank { background: var(--accent-strong); }
.item .nm { flex: 1; min-width: 0; }
.item .nm strong { display: block; color: var(--black); font-weight: 600; line-height: 1.2; }
.item .nm small { display: block; color: var(--fg3); font-size: 14px; }
.item .arrows { display: flex; gap: 4px; flex-shrink: 0; }
.item .arrows button {
  width: 40px; height: 40px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--white);
  color: var(--grey-dark); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0;
}
.item .arrows button:disabled { opacity: 0.3; cursor: default; }
.item .grip { flex-shrink: 0; color: #9E9E9E; cursor: grab; padding: 6px 2px; }
.sortable-ghost { opacity: 0.4; }
.sortable-chosen { box-shadow: var(--shadow-md); }
.cutline {
  list-style: none; font-family: var(--font); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 13px; color: var(--accent-strong); text-align: center; margin: 4px 0 12px; border-top: 2px dashed var(--tnt-pink-25); padding-top: 6px;
}

/* Consent */
.consent .choice { border-style: dashed; }
.fine { font-size: 14px; color: var(--fg3); margin: 10px 0 0; }

/* Submit */
.actions { margin-top: 24px; }
button.primary {
  width: 100%; min-height: 56px; border: 0; border-radius: var(--radius-pill); cursor: pointer;
  /* Brand pink with white passes contrast for large bold text (22px, 700). */
  background: var(--tnt-pink); color: var(--white); font-family: var(--font); font-weight: 700;
  font-size: 22px; letter-spacing: 0.01em;
  transition: background 120ms var(--ease), transform 120ms var(--ease);
}
button.primary:hover { background: var(--accent-strong); }
button.primary:active { transform: scale(0.98); }
button.primary:disabled { background: #9E9E9E; cursor: default; transform: none; }
button.ghost {
  min-height: 44px; border: 0; background: var(--grey-btn); color: var(--white); border-radius: var(--radius-pill);
  padding: 0 18px; font-family: var(--font); font-size: 18px; font-weight: 700; cursor: pointer;
}
.linkbox { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.linkbox input { flex: 1 1 240px; font-size: 15px; }

.thanks h2 { font-size: 36px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

footer.site { background: var(--charcoal); color: #D6D6D6; padding: 28px 16px 40px; font-size: 14px; }
footer.site p { max-width: 720px; margin: 0 auto; }
footer.site a { color: var(--white); }

/* Photo band (optional "hero" in a form's config). The pink A mark sits on the photo like the website hero. */
.hero { position: relative; overflow: hidden; background: var(--charcoal); min-height: 240px; }
.hero[hidden] { display: none; }
.hero img.photo { display: block; width: 100%; height: clamp(240px, 42vw, 420px); object-fit: cover; }
.hero::after {
  content: ""; position: absolute; right: -6%; bottom: -14%; width: clamp(150px, 30vw, 300px); aspect-ratio: 1324 / 1173;
  background: url(/assets/icon-a-mark.png) no-repeat center / contain; pointer-events: none;
}
.hero .credit {
  position: absolute; left: 12px; bottom: 8px; margin: 0; font-size: 12px; color: var(--white);
  background: rgba(0, 0, 0, 0.45); padding: 2px 8px;
}
.partner { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 4px; margin: 0 0 18px; color: var(--fg2); font-size: 15px; }
.partner img { height: 40px; width: auto; display: block; }
.programs { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.programs li { border-left: 4px solid var(--tnt-pink); background: #f6f6f6; padding: 12px 14px; }
.programs p { margin: 0; }
.programs .prog-name { font-weight: 700; font-size: 17px; color: var(--charcoal); }
.programs .prog-name a { color: var(--charcoal); text-decoration-color: var(--tnt-pink); text-underline-offset: 3px; }
.programs .prog-name a:hover { color: var(--tnt-pink); }
.programs .prog-dates { font-size: 14px; color: var(--fg2); margin-top: 2px; }
.programs .prog-text { font-size: 15px; margin-top: 6px; }
.programs .prog-text strong, .programs .prog-dates strong { color: var(--charcoal); font-weight: 700; }
.programs .prog-need { display: inline-block; margin-top: 6px; padding: 2px 8px; background: var(--tnt-pink); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.programs .prog-more { font-size: 14px; margin-top: 6px; }
.programs .choices { margin-top: 10px; }
.programs .choice { background: #fff; }
.programs .prog-more a { color: var(--tnt-pink); font-weight: 700; }

.gallery { display: grid; gap: 12px; }
.gallery a.card { display: block; text-decoration: none; color: inherit; margin: 0; }
.gallery a.card:hover { border-color: var(--accent-strong); }
.gallery .type { font-family: var(--font); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; color: var(--accent-strong); }

@media (min-width: 600px) {
  main { padding-top: 40px; }
  .card { padding: 24px; }
  .topbar img { height: 52px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* Keep the hosting badge (bottom corner) from covering the last buttons and text. */
body { padding-bottom: 88px; }

/* Sign-up slots already booked (onePerSlot) */
.choice.taken { opacity: .5; cursor: not-allowed; text-decoration: line-through; }
.choice.taken:hover { border-color: inherit; }

/* Brand frame (CK, 2026-11-17): light pink page, pink rule under the top bar, and the form itself on a
   white panel with a pink border. Solid colours only (no transparency or blur), so text stays crisp. */
body { background: #FFF0F5; }
.topbar { border-bottom: 3px solid var(--tnt-pink); }
main { background: var(--white); border: 2px solid var(--tnt-pink); margin: 28px auto 48px; padding: 28px 24px 48px; }
@media (max-width: 760px) { main { margin: 16px 12px 32px; padding: 22px 16px 40px; } }
.hero:not([hidden]) + main { margin-top: 0; border-top-width: 0; }
/* TNT x partner lockup in the top bar: "partner": { ..., "lockup": true } */
.lockup { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lockup .x { font-family: var(--font-body); font-weight: 400; font-size: 26px; color: var(--fg3); line-height: 1; }
.topbar .lockup img.partner-mark { height: 30px; }
@media (max-width: 420px) { .topbar img { height: 32px; } .topbar .lockup img.partner-mark { height: 24px; } .lockup { gap: 8px; } }
