/* Video pitch peer vote. Plain, Canvas-like layout. Lato is served from this site. */
@font-face { font-family: Lato; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/lato-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Lato; font-weight: 400; font-style: italic; font-display: swap; src: url(/fonts/lato-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: Lato; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/lato-latin-700-normal.woff2) format("woff2"); }

:root {
  --navy: #000830;
  --ink: #2d3b45;
  --muted: #55646f;
  --line: #c7cdd1;
  --soft: #f5f5f5;
  --link: #345bd0;
  --link-hover: #1f3fa3;
  --sky: #beddf7;
  --ok: #0b6b3a;
  --warn: #8a4b00;
  --bad: #a3231b;
  --radius: 3px;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; background: #fff; color: var(--ink); font-family: Lato, "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 1.5; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 1rem; font-weight: 700; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 2rem 0 .5rem; font-weight: 700; }
h3 { font-size: 1.05rem; margin: 1.25rem 0 .25rem; font-weight: 700; }
p { margin: 0 0 1rem; max-width: 46rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.topbar { background: var(--navy); color: #fff; display: flex; align-items: center; gap: 1rem; padding: 0 1rem; min-height: 3.25rem; }
.topbar .course { font-weight: 700; flex: 1; }
.topbar .who { font-size: .9rem; color: var(--sky); }
.topbar button { background: none; border: 1px solid #5c6798; color: #fff; padding: .3rem .7rem; border-radius: var(--radius); font: inherit; font-size: .9rem; cursor: pointer; }
.topbar button:hover { background: #1b2350; }
.crumbs { padding: .75rem 1.5rem; border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--muted); }

/* layout */
.layout { display: grid; grid-template-columns: 17rem minmax(0, 1fr); min-height: calc(100vh - 7rem); }
.nav { border-right: 1px solid var(--line); padding: 1rem 0 2rem; }
.nav summary { display: none; }
.nav h2 { font-size: .8rem; text-transform: none; letter-spacing: 0; color: var(--muted); margin: 1.25rem 0 .25rem; padding: 0 1.25rem; font-weight: 700; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a { display: flex; justify-content: space-between; gap: .5rem; padding: .4rem 1.25rem; color: var(--link); text-decoration: none; border-left: 4px solid transparent; }
.nav a:hover { background: var(--soft); }
.nav a[aria-current="page"] { font-weight: 700; color: var(--navy); border-left-color: var(--navy); background: var(--soft); }
.mark { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.mark.done { color: var(--ok); font-weight: 700; }
main { padding: 1.5rem 2rem 4rem; min-width: 0; }
footer { border-top: 1px solid var(--line); padding: 1rem 1.5rem; font-size: .875rem; color: var(--muted); }

/* buttons, Canvas style and flat */
.btn { white-space: nowrap; display: inline-block; font: inherit; font-size: .95rem; padding: .5rem 1rem; border: 1px solid #8d959a; border-radius: var(--radius); background: var(--soft); color: var(--ink); cursor: pointer; text-decoration: none; }
.btn:hover { background: #e8eaec; color: var(--ink); }
.btn.primary { background: var(--link); border-color: var(--link); color: #fff; }
.btn.primary:hover { background: var(--link-hover); border-color: var(--link-hover); color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1rem 0; }

/* login */
.login { max-width: 26rem; margin: 4rem auto; padding: 0 1rem; }
.login input { font: inherit; font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; width: 100%; padding: .6rem .75rem; border: 1px solid #8d959a; border-radius: var(--radius); margin: .25rem 0 1rem; }
.error { color: var(--bad); font-weight: 700; }
.notice { border-left: 4px solid var(--warn); padding: .5rem 1rem; background: #fdf6ec; margin: 0 0 1rem; max-width: 46rem; }
.notice.good { border-left-color: var(--ok); background: #eef8f1; }

/* tables, horizontal rules only */
table { border-collapse: collapse; width: 100%; max-width: 60rem; margin: .5rem 0 1.5rem; }
thead th { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); text-align: left; padding: .4rem .6rem; font-weight: 700; }
tbody td { padding: .4rem .6rem; border-bottom: 0; vertical-align: top; }
tbody tr:last-child td { border-bottom: 2px solid var(--ink); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* media */
.stage { position: relative; width: 100%; max-width: 50rem; aspect-ratio: 16 / 9; background: #0b0f1f; display: flex; align-items: center; justify-content: center; }
.stage iframe, .stage video { width: 100%; height: 100%; border: 0; background: #000; }
.facade { color: #fff; max-width: 32rem; padding: 1.5rem; text-align: left; }
.facade p { color: #dfe4f5; }
.expand { max-width: 50rem; margin: .25rem 0 1rem; }
.expand > summary { cursor: pointer; font-weight: 700; color: var(--link); padding: .4rem 0; }
.slides { max-width: 50rem; }
.slides .frame { background: var(--soft); border: 1px solid var(--line); display: flex; justify-content: center; }
.slides img { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: contain; cursor: zoom-in; }
.slides .bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-top: .5rem; }
.slides .bar .hint { flex-basis: 100%; }
.overlay { position: fixed; inset: 0; background: rgba(0, 8, 48, .92); display: flex; align-items: center; justify-content: center; z-index: 20; padding: 1rem; }
.overlay img { max-width: 96vw; max-height: 92vh; }
.overlay button { position: absolute; top: .75rem; right: .75rem; }

/* rating scale */
fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
legend { font-weight: 700; padding: 0; }
.crit-help { margin: 0 0 .4rem; color: var(--muted); font-size: .95rem; }
.scale { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.scale .end { font-size: .85rem; color: var(--muted); min-width: 4.2rem; }
.scale .nums { display: flex; gap: .3rem; flex-wrap: wrap; }
.scale label { position: relative; }
.scale input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.scale span.v { display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border: 1px solid #8d959a; border-radius: var(--radius); font-weight: 700; background: #fff; }
.scale input:checked + span.v { background: var(--navy); border-color: var(--navy); color: #fff; }
.scale input:focus-visible + span.v { outline: 2px solid var(--link); outline-offset: 2px; }
.scale label:hover span.v { border-color: var(--navy); }
.status { min-height: 1.5rem; font-size: .9rem; color: var(--muted); }

/* results */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.podium section h2 { margin-top: 0; font-size: 1.15rem; }
.podium ol { list-style: none; padding: 0; margin: 0; }
.podium li { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: .75rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.podium li:first-child { border-top: 2px solid var(--navy); }
.podium .place { font-size: 2.75rem; line-height: 1; font-weight: 700; color: var(--navy); }
.podium .title { font-size: 1.2rem; font-weight: 700; margin: 0 0 .15rem; }
.podium .score { font-size: .95rem; margin: .25rem 0; }
.podium .bar { height: .5rem; background: var(--soft); border: 1px solid var(--line); max-width: 16rem; }
.podium .bar i { display: block; height: 100%; background: var(--navy); width: calc(var(--w) * 1%); }

@media (max-width: 1100px) { .podium { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .scale .nums { display: grid; grid-template-columns: repeat(5, 2.75rem); gap: .4rem; }
  .scale .end { display: none; }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .nav { border-right: 0; border-bottom: 1px solid var(--line); padding: 0; }
  .nav summary { display: block; padding: .75rem 1rem; font-weight: 700; cursor: pointer; }
  main { padding: 1rem 1rem 3rem; }
  h1 { font-size: 1.6rem; }
  .crumbs { padding: .6rem 1rem; }
  .topbar { padding: .4rem .75rem; gap: .6rem; }
  .topbar .course { font-size: .85rem; line-height: 1.25; }
  .topbar .who { font-size: .8rem; }
}

main.notice-page { max-width: 52rem; margin: 0 auto; padding: 1.5rem 1.5rem 3rem; }

.stage .loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; max-width: none; color: #dfe4f5; pointer-events: none; }
.stage iframe { position: relative; }

/* overview of all pitches at the bottom of a pitch page */
.overview { max-width: 50rem; }
.pitch-grid { list-style: none; margin: .25rem 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.pitch-grid a { display: block; text-decoration: none; color: var(--ink); }
.pitch-grid img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--soft); border: 1px solid var(--line); }
.pitch-grid a:hover img { border-color: var(--navy); }
.pitch-grid a.here img { box-shadow: 0 0 0 3px var(--navy); }
.pitch-grid .cap { display: block; margin-top: .35rem; font-weight: 700; color: var(--link); }
.pitch-grid .now { display: block; font-size: .8rem; font-weight: 700; color: var(--navy); }
.pitch-grid .st { display: block; font-size: .85rem; color: var(--muted); }
.pitch-grid .st.done { color: var(--ok); font-weight: 700; }
@media (max-width: 600px) { .pitch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* the two points every team has to see, and the wait before rating */
.key { max-width: 46rem; margin: 0 0 1rem; padding: .7rem 1rem; border-left: 5px solid var(--navy); background: #eaf1fb; }
.key strong { display: block; font-size: 1.05rem; color: var(--navy); margin-bottom: .15rem; }
.wait { max-width: 46rem; margin: 0 0 1rem; padding: .5rem 1rem; border-left: 4px solid var(--warn); background: #fdf6ec; font-weight: 700; }
.wait[hidden] { display: none; }
input.narrow { width: 6rem; font: inherit; padding: .35rem .5rem; border: 1px solid #8d959a; border-radius: var(--radius); }

/* confirmation inside the page */
.confirm-back { position: fixed; inset: 0; background: rgba(0, 8, 48, .55); display: flex; align-items: center; justify-content: center; z-index: 30; padding: 1rem; }
.confirm-back .panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); max-width: 30rem; width: 100%; padding: 1.25rem 1.5rem .25rem; box-shadow: 0 4px 24px rgba(0, 8, 48, .3); }
.confirm-back .panel p { margin: 0 0 .25rem; }

/* lists on the instructions page */
.steps { max-width: 46rem; margin: 0 0 1rem; padding-left: 1.6rem; }
.steps li { margin: 0 0 .45rem; }
