/* Veterans Talk TV upload page. Palette measured from the master channel logo (REFERENCE/logo). */
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url(/assets/fonts/Montserrat-400-normal.woff) format("woff"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url(/assets/fonts/Montserrat-600-normal.woff) format("woff"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url(/assets/fonts/Montserrat-700-normal.woff) format("woff"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-style: normal; font-display: swap; src: url(/assets/fonts/Montserrat-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 900; font-style: normal; font-display: swap; src: url(/assets/fonts/Montserrat-900-normal.woff2) format("woff2"); }

:root {
  --navy-deep: #061842;      /* flag blue in the logo */
  --navy: #1e365a;           /* badge navy */
  --navy-lift: #224672;      /* lettering-panel navy */
  --gold: #ecb853;           /* bright gold fill */
  --gold-deep: #c8802b;      /* banner gold */
  --red: #aa020d;            /* stripe red */
  --ink: #0d1f44;
  --muted: #4a5878;
  --cream: #fbf8f0;
  --line: #d9d2bf;
  --ok: #1d6b3a;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 400 16px/1.55 "Montserrat", "Segoe UI", Arial, sans-serif; color: var(--ink);
  background: var(--navy-deep) radial-gradient(1100px 620px at 50% -120px, var(--navy-lift) 0%, var(--navy) 38%, var(--navy-deep) 78%) no-repeat;
}
body::before { content: ""; display: block; height: 6px; background: linear-gradient(90deg, var(--gold-deep), var(--gold) 50%, var(--gold-deep)); }

.top { text-align: center; padding: 28px 16px 8px; }
.top img { width: 230px; max-width: 62vw; height: auto; display: inline-block; }
.tag { margin: 10px auto 0; max-width: 28em; color: var(--gold); font-weight: 700; font-size: 14px; text-wrap: balance; }

main { flex: 1; width: 100%; max-width: 680px; margin: 0 auto; padding: 18px 16px 36px; }

h1 { margin: 6px 0 4px; text-align: center; color: #fff; text-transform: uppercase; font-weight: 900; font-size: clamp(26px, 6vw, 38px); line-height: 1.12; text-wrap: balance; }
.lede { margin: 0 auto 20px; max-width: 34em; text-align: center; color: #d6def0; text-wrap: pretty; }
.lede b { color: #fff; }

.card { background: var(--cream); border-radius: 14px; padding: 26px 26px 24px; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); border-top: 4px solid var(--gold); }
[hidden] { display: none !important; }

.step { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-weight: 800; font-size: 17px; color: var(--navy); }
.step i { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 15px; }
.step + .field, .step + .drop { margin-top: 0; }
.step.second { margin-top: 26px; }

.field { margin: 0 0 16px; }
label.lab { display: block; margin: 0 0 5px; font-weight: 700; font-size: 15px; color: var(--navy); }
.hint { display: block; margin: 5px 0 0; font-size: 13px; color: var(--muted); text-wrap: pretty; }
input[type=text] {
  width: 100%; font: inherit; color: var(--ink); background: #fff; padding: 12px 14px;
  border: 2px solid #b9c0d0; border-radius: 9px; outline: 0; transition: border-color .15s, box-shadow .15s;
}
input[type=text]:hover { border-color: var(--navy-lift); }
input[type=text]:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(236, 184, 83, .55); }
.bad input[type=text] { border-color: var(--red); }
.err { display: none; margin: 6px 0 0; font-size: 13px; font-weight: 700; color: var(--red); }
.bad .err { display: block; }

.drop {
  display: block; text-align: center; cursor: pointer; padding: 26px 16px; border: 2px dashed var(--gold-deep); border-radius: 12px;
  background: #fff; color: var(--navy); transition: background .15s, border-color .15s;
}
.drop:hover, .drop.over, .drop:focus-within { background: #fff7e0; border-color: var(--navy); }
.drop svg { width: 44px; height: 44px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drop strong { display: block; margin-top: 6px; font-size: 17px; }
.drop span { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.bad .drop { border-color: var(--red); }

.chip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid var(--navy); border-radius: 12px; background: #fff; }
.chip svg { flex: none; width: 28px; height: 28px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chip .nm { flex: 1; min-width: 0; font-weight: 700; word-break: break-word; }
.chip .nm small { display: block; font-weight: 400; color: var(--muted); }
.chip button { flex: none; }

button { font: inherit; cursor: pointer; }
.btn {
  display: block; width: 100%; margin-top: 22px; padding: 15px 20px; border: 0; border-radius: 10px;
  background: var(--gold); color: var(--navy-deep); font-weight: 800; font-size: 17px; box-shadow: 0 3px 0 var(--gold-deep);
  transition: transform .08s, background .15s;
}
.btn:hover { background: #f5c76a; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--gold-deep); }
.btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); box-shadow: none; }
.btn.ghost:hover { background: #f1ead3; }
.link { background: none; border: 0; padding: 4px 2px; color: var(--navy); text-decoration: underline; font-weight: 700; font-size: 14px; }

.prog h2, .panel h2 { margin: 0 0 8px; color: var(--navy); font-size: 21px; font-weight: 800; text-wrap: balance; }
.prog .what { margin: 0 0 14px; color: var(--muted); text-wrap: pretty; }
.track { height: 16px; border-radius: 99px; background: #dfd8c3; overflow: hidden; }
.track b { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); transition: width .25s; }
.stats { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 9px 0 0; font-size: 14px; font-weight: 600; color: var(--navy); }
.keep { margin: 14px 0 0; padding: 11px 13px; border-radius: 9px; background: #fff7e0; border: 1px solid var(--gold-deep); font-size: 14px; text-wrap: pretty; }

.panel .mark { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin: 0 0 12px; }
.panel .mark svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.panel.ok .mark { background: var(--ok); }
.panel.fail .mark { background: var(--red); }
.panel.fail { border-top-color: var(--red); }
.panel p { margin: 0 0 8px; text-wrap: pretty; }
.panel .got { font-weight: 700; color: var(--navy); }

.history { list-style: none; margin: 20px 0 0; padding: 0; }
.history li { display: flex; gap: 9px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.history li:first-child { border-top: 0; }
.history svg { flex: none; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.history .hh { margin: 0 0 4px; font-weight: 800; color: var(--navy); font-size: 14px; }

footer { padding: 6px 16px 30px; }
footer p { max-width: 640px; margin: 0 auto; text-align: center; font-size: 12.5px; line-height: 1.6; color: #b9c6e2; text-wrap: pretty; }

@media (max-width: 520px) {
  .card { padding: 20px 16px 18px; }
  .top { padding-top: 20px; }
  .chip { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* text typed by the sender (show / episode / title) can end on a short line: even out the lines */
.panel .got, .prog .what, .history li span { text-wrap: balance; }
