@font-face { font-family: Nas; src: url(/fonts/Nasalization-Rg.otf); font-display: swap; }
:root {
  --navy: #1B2A41; --navy2: #24385A; --gold: #F0C419; --gold-d: #B88A00; --ink: #1d2533; --mut: #5B6474;
  --line: #DDE1E7; --bg: #F4F6F8; --card: #fff; --hover: #FFF8DB; --good: #1E6B3A; --good-bg: #E5F4EA; --bad: #A12A1F; --bad-bg: #FBE9E7;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.45 "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--navy2); }
header.top { background: var(--navy); color: #fff; }
header.top .in { max-width: 1520px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 10px 20px; flex-wrap: wrap; }
header.top .brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
header.top img { width: 38px; height: 38px; }
header.top .name { font-family: Nas, sans-serif; font-size: 22px; letter-spacing: 1px; line-height: 1.1; }
header.top .name small { display: block; font: 11px "Segoe UI", sans-serif; color: #AEB7C6; letter-spacing: .5px; }
header.top nav { display: flex; gap: 22px; margin-left: 30px; flex-wrap: wrap; }
header.top nav a { color: #D3D9E4; text-decoration: none; font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; }
header.top nav a.cur, header.top nav a:hover { color: var(--gold); border-bottom-color: var(--gold); }
header.top .who { margin-left: auto; display: flex; gap: 10px; align-items: center; }
header.top .unitsw { margin-left: auto; display: inline-flex; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; overflow: hidden; flex: none; }
header.top .unitsw + .who { margin-left: 0; }
header.top .unitsw button { background: transparent; color: #fff; border: 0; padding: 6px 10px; font: 600 13px/1 inherit; cursor: pointer; }
header.top .unitsw button.on { background: #F0C419; color: #1B2A41; }
header.top .home { margin-left: 4px; color: var(--navy); background: #E7EBF2; font-weight: 700; font-size: 13px; text-decoration: none; border-radius: 6px; padding: 5px 10px; white-space: nowrap; }
header.top .home:hover { background: #fff; }
header.top .who .me { color: #D3D9E4; font-weight: 600; text-decoration: none; }
.btn { display: inline-block; background: var(--gold); color: var(--navy); font: 700 14px "Segoe UI", sans-serif; border-radius: 6px; padding: 8px 14px; border: 0; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; color: #fff; border: 1px solid #5B6474; }
.btn.plain { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn.danger { background: #fff; color: var(--bad); border: 1px solid #E8B4AE; }
.btn:disabled { opacity: .55; cursor: default; }
main { max-width: 1520px; margin: 0 auto; padding: 22px 20px 40px; }
h1 { font-family: Nas, sans-serif; font-weight: normal; font-size: 26px; margin: 0 0 4px; color: var(--navy); }
h2 { font-size: 17px; color: var(--navy); margin: 0 0 10px; }
.sub { color: var(--mut); margin-bottom: 16px; }
.m { color: var(--mut); font-size: 12.5px; }
.grid { display: grid; grid-template-columns: 250px 1fr; gap: 20px; align-items: start; }
.grid > *, .two > * { min-width: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.f h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--mut); margin: 16px 0 6px; }
.f h3:first-child { margin-top: 0; }
select, input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font: inherit; color: var(--ink); background: #fff; }
textarea { min-height: 70px; resize: vertical; }
select:focus, input:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold-d); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { border: 1px solid var(--line); border-radius: 5px; padding: 3px 0; min-width: 32px; text-align: center; font-weight: 700; font-size: 13px; color: var(--mut); background: #fff; cursor: pointer; user-select: none; }
.chip.wide { padding: 3px 7px; }
.chip.on { background: var(--navy); color: var(--gold); border-color: var(--navy); }
.chip.off { opacity: .4; cursor: default; }
.chip.none:not(.on) { color: #B4BBC6; border-style: dashed; }   /* leaderboard: a class with no flights yet (still selectable) */
label.chk { display: flex; gap: 8px; align-items: center; margin: 6px 0; cursor: pointer; }
label.chk input { width: 16px; height: 16px; accent-color: var(--navy); }
label.chk.opt { align-items: flex-start; margin: 10px 0; }                   /* a choice with a title and a line under it */
label.chk.opt input { flex: none; margin-top: 3px; }
label.chk.opt b { display: block; }
label.chk.opt .m { display: block; margin-top: 2px; line-height: 1.45; }
input[type=date] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; min-height: 40px; }   /* iPhone and iPad: date boxes stay inside the form */
.form .pair > div { min-width: 0; }
.tw { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--mut); padding: 9px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
tr.link { cursor: pointer; }
th[data-k] { cursor: pointer; user-select: none; }
th[data-k]:hover { color: var(--navy); }
th[data-k] .arr { display: inline-block; width: 14px; margin-left: 4px; color: #7A8496; font-size: 13px; text-align: center; }
th[data-k].on { color: #fff; background: var(--navy); border-bottom-color: var(--gold); }
th[data-k].on:hover { color: #fff; }
th[data-k].on .arr { color: var(--gold); font-size: 14px; }
.sorted { font-size: 14px; color: var(--mut); margin: 0 0 8px 2px; }
.sorted b { color: var(--navy); }
.sorted .arr { color: var(--gold-d); font-size: 13px; margin-left: 2px; }
tr.link:hover td { background: var(--hover); }
tr:last-child td { border-bottom: 0; }
.cls { display: inline-block; min-width: 26px; height: 26px; line-height: 26px; padding: 0 4px; text-align: center; border-radius: 6px; background: var(--navy); color: var(--gold); font-weight: 800; font-size: 13px; }
.ver { white-space: nowrap; display: inline-flex; gap: 4px; align-items: center; background: var(--good-bg); color: var(--good); font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.ver.no { background: #EEF0F3; color: var(--mut); }
.badge { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: #FCEFD0; color: #8A5A00; margin-left: 6px; vertical-align: 1px; }
.badge.sample { background: #E9E3F7; color: #4B3A8C; }
.num { font-weight: 700; white-space: nowrap; }
.num .m { font-weight: 600; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { padding: 6px 12px; border-radius: 6px; border: 1px solid var(--line); background: #fff; font-weight: 600; color: var(--mut); cursor: pointer; font-size: 14px; }
.tab.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 14px 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.stat b { display: block; font-size: 22px; color: var(--navy); }
.stat span { color: var(--mut); font-size: 12.5px; }
.two { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }
dl { display: grid; grid-template-columns: 130px 1fr; margin: 10px 0 0; row-gap: 7px; }
dt { color: var(--mut); }
dd { margin: 0; font-weight: 600; }
.legend { display: flex; gap: 18px; font-size: 12.5px; color: var(--mut); margin-top: 6px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 18px; height: 3px; vertical-align: middle; margin-right: 5px; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 10px; }
.pod { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; text-align: center; cursor: pointer; }
.pod:hover { background: var(--hover); }
.medal { width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 6px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; }
.awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 18px; }
.aw { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px; padding: 12px 14px; }
.aw b { color: var(--navy); }
.note { font-size: 12.5px; color: var(--mut); margin-top: 12px; }
.empty { text-align: center; color: var(--mut); padding: 40px 10px; }
.msg { border-radius: 8px; padding: 10px 14px; margin: 10px 0; font-weight: 600; }
.msg.err { background: var(--bad-bg); color: var(--bad); }
.msg.ok { background: var(--good-bg); color: var(--good); }
.msg.info { background: #EAF0F8; color: var(--navy2); }
.form { max-width: 640px; }
.form .row { margin-bottom: 14px; }
.form .row > label:first-child { display: block; font-weight: 600; margin-bottom: 5px; }
.form .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .hint { font-size: 12.5px; color: var(--mut); margin-top: 4px; }
.drop { display: block; border: 2px dashed #AEB7C6; border-radius: 10px; padding: 30px; text-align: center; background: #fff; cursor: pointer; }
.drop.over { border-color: var(--gold-d); background: var(--hover); }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 10px; }
.chartbox { position: relative; }
.chartbox svg { width: 100%; height: auto; display: block; }
.tip { position: absolute; pointer-events: none; background: var(--navy); color: #fff; font-size: 12.5px; border-radius: 6px; padding: 6px 9px; white-space: nowrap; display: none; }
footer { color: var(--mut); font-size: 12.5px; text-align: center; padding: 20px; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 24px; }
.prose li { margin: 4px 0; }
table.guide { font-size: 14.5px; margin: 8px 0 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
table.guide th, table.guide td { text-align: left; vertical-align: top; padding: 7px 10px; border-bottom: 1px solid var(--line); }
table.guide th { background: var(--bg); font-size: 13px; }
table.guide { table-layout: fixed; }
table.guide th, table.guide td { white-space: normal; overflow-wrap: break-word; }
table.guide th:nth-child(1) { width: 24%; } table.guide th:nth-child(2) { width: 44%; } table.guide th:nth-child(3) { width: 19%; } table.guide th:nth-child(4) { width: 13%; }
@media (max-width: 640px) {                     /* phones: each contest as its own small card */
  table.guide, table.guide tbody, table.guide tr, table.guide td { display: block; width: auto; }
  table.guide tr:first-child { display: none; }
  table.guide tr { padding: 8px 10px; border-bottom: 1px solid var(--line); }
  table.guide td { border: 0; padding: 2px 0; }
  table.guide td:nth-child(3)::before { content: "Decided by: "; color: var(--mut); }
  table.guide td:nth-child(4)::before { content: "Winner: "; color: var(--mut); }
}
@media (max-width: 900px) {
  .grid, .two { grid-template-columns: 1fr; }
  header.top nav { margin-left: 0; order: 3; width: 100%; gap: 16px; }
  header.top .home { order: 1; margin-left: 0; }
  header.top .home .long { display: none; }
  header.top .who { order: 2; }
  header.top .unitsw { order: 2; margin-left: auto; }
  .podium { grid-template-columns: 1fr; }
  .form .pair { grid-template-columns: 1fr; }
}

/* flight page: messages under Open in StarLog / Download CSV */
.panel{margin-top:12px;border-radius:10px;padding:12px 14px;font-size:14.5px;line-height:1.5;border:1px solid #C7D9EF;background:#EEF4FB}
.panel.ok{background:#E5F4E4;border-color:#BFE3C2}.panel.err{background:#FBEBEB;border-color:#F1C4C4}
.panel .pbtns{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.panel .pnote{margin-top:10px}.panel ol{margin:8px 0;padding-left:22px}

/* popups on the Verified badge and the flight date, and the date-certify dialog */
.pop-t { cursor: pointer; }
.dt { cursor: pointer; border-bottom: 1px dotted currentColor; }
.pop { position: absolute; z-index: 50; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 24px rgba(27, 42, 65, .22); padding: 14px 34px 14px 14px; font-size: 14px; white-space: normal; text-align: left; font-weight: 400; }
.pop p { margin: 6px 0 0; }
.pop .x { position: absolute; top: 4px; right: 6px; background: none; border: 0; font-size: 22px; line-height: 1; color: var(--mut); cursor: pointer; }
.pop form input[type=email] { width: 100%; margin: 4px 0 8px; }
dialog.dlg { border: 1px solid var(--line); border-radius: 12px; padding: 20px; max-width: 360px; box-shadow: 0 10px 40px rgba(27, 42, 65, .3); }
dialog.dlg::backdrop { background: rgba(27, 42, 65, .45); }
dialog.dlg p { margin: 8px 0 16px; }
dialog.dlg .btns { display: flex; gap: 10px; justify-content: flex-end; }

/* the beta tester confidentiality acknowledgment (on joining, and once for fliers who joined before it) */
dialog.dlg.terms { max-width: 580px; width: calc(100% - 32px); padding: 0; }
dialog.terms .th { padding: 18px 22px 10px; border-bottom: 1px solid var(--line); }
dialog.terms .th h2 { margin: 0; font-size: 19px; color: var(--navy); }
dialog.terms .th .m { margin-top: 3px; }
dialog.terms .tb { padding: 12px 22px; max-height: min(52vh, 440px); overflow-y: auto; font-size: 14px; line-height: 1.5; }
dialog.terms .tb p { margin: 0 0 10px; }
dialog.terms .tb ol { margin: 0; padding-left: 22px; }
dialog.terms .tb li { margin-bottom: 9px; }
dialog.terms .tf { padding: 12px 22px 18px; border-top: 1px solid var(--line); background: #FAFBFC; border-radius: 0 0 12px 12px; }
dialog.terms .tf .chk { font-weight: 600; margin: 0 0 12px; }

/* flight list: fits the window. Names and sites wrap, the second unit sits under the first, and on a phone each
   flight becomes a small card instead of a table row. */
table.flights th { white-space: normal; padding: 9px 7px; vertical-align: bottom; line-height: 1.25; }
table.flights td { padding: 9px 7px; }
table.flights td.c-flier, table.flights td.c-model, table.flights td.c-site { white-space: normal; min-width: 92px; }
table.flights td.c-flier .badge { margin-left: 4px; }
table.flights td.num .m { display: block; font-size: 12px; }
table.flights .pm { display: none; }
@media (max-width: 1100px) {
  .grid { grid-template-columns: 1fr; }
  .grid > .card.f { column-count: 3; column-gap: 28px; }
  .grid > .card.f h3 { break-after: avoid; }
  .grid > .card.f select, .grid > .card.f .chips { break-inside: avoid; }
}
@media (max-width: 700px) {
  .grid > .card.f { column-count: 1; }
}
table.flights .c-off { display: none; }
table.flights tr.yr td { background: var(--navy); color: var(--gold); font-size: 22px; font-weight: 800; letter-spacing: .06em; padding: 8px 12px; border: 0; }
table.flights.acc .c-off { display: table-cell; }
@media (max-width: 700px) {
  table.flights thead { display: none; }
  table.flights, table.flights tbody { display: block; }
  table.flights tr.link { display: grid; grid-template-columns: 34px 1fr auto; column-gap: 10px; row-gap: 3px; padding: 11px 4px; border-bottom: 1px solid var(--line);
    grid-template-areas: "cls flier peak" "cls model speed" "cls site site" "cls foot foot"; }
  table.flights tr.link:last-child { border-bottom: 0; }
  table.flights tr.yr { display: block; } table.flights tr.yr td { display: block; border-radius: 6px; margin: 8px 0 2px; }
  table.flights tr.link td { padding: 0; border: 0; min-width: 0; }
  table.flights .c-cls { grid-area: cls; align-self: start; }
  table.flights .c-flier { grid-area: flier; }
  table.flights .c-model { grid-area: model; color: var(--mut); font-size: 13.5px; }
  table.flights .c-motor { display: none; }
  table.flights .pm { display: inline; }
  table.flights .c-peak { grid-area: peak; text-align: right; }
  table.flights .c-speed { grid-area: speed; text-align: right; font-size: 13.5px; }
  table.flights td.num .m { display: none; }
  table.flights .c-site { grid-area: site; font-size: 13px; color: var(--mut); }
  table.flights .c-date { grid-area: foot; font-size: 13px; color: var(--mut); }
  table.flights .c-log { grid-area: foot; justify-self: end; }
  table.flights.acc .c-speed { display: none; }
  table.flights.acc .c-off { display: block; grid-area: speed; text-align: right; font-size: 13.5px; }
}

/* My predictions, and the prediction step on the upload page */
.mt22 { margin-top: 22px; }
.cards { display: flex; flex-direction: column; gap: 8px; }
.ic { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.ic .m { margin-top: 2px; } .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.big { font-size: 22px; font-weight: 800; color: var(--navy); }
.pstat { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; font-size: 14px; font-weight: 700; }
.pstat .ok { color: var(--good); } .pstat .no { color: var(--bad); } .pstat .m { font-weight: 400; }
/* Upload: flights sent from StarLog, waiting to finish */
.waiting .wrow{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 0;border-top:1px solid var(--line)}
.waiting .wbtns{display:flex;gap:8px}
.parts{margin-top:8px;padding:8px 10px;border:2px solid var(--gold, #F0C419);border-radius:10px;background:rgba(240,196,25,.10)}
.parts select{margin:0 4px;font:inherit;padding:2px 6px}

/* Local meets */
.meets { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.meet { display: block; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 8px; padding: 12px 14px; color: var(--ink); text-decoration: none; }
.meet:hover { background: var(--hover); }
.meet .mh { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.meet .mh b { color: var(--navy); font-size: 16px; margin-right: auto; }
.meet .m { margin-top: 2px; }
.mst { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 10px; white-space: nowrap; background: #EEF0F3; color: var(--mut); }
.mst.now { background: var(--gold); color: var(--navy); } .mst.up { background: #EAF0F8; color: var(--navy2); }
.mst.late { background: #FCEFD0; color: #8A5A00; } .mst.in { background: var(--good-bg); color: var(--good); }
.acts .mst { align-self: center; }
.meetdet { white-space: pre-wrap; margin-bottom: 4px; }
tr.out td { opacity: .5; } tr.out td:last-child { opacity: 1; }
.badge.guest { background: #E3F0FB; color: #24527A; }
.orgtools { margin: 14px 0 4px; border-left: 4px solid var(--gold); }
.orgtools .otg { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px 24px; }
.orgtools h3 { font-size: 14px; color: var(--navy); margin: 0 0 4px; }
.orgtools .otfl { grid-column: 1 / -1; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0 16px; }
.orgtools h3.otfh { font-size: 16px; margin-bottom: 10px; }
.orgtools .otup { margin-top: 14px; }
.orgtools .acts input[type=text] { flex: 1; min-width: 140px; }
.orgtools .code.big, .code.big { font: 800 24px ui-monospace, Menlo, Consolas, monospace; letter-spacing: 3px; color: var(--navy); }
.acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.why { font-weight: 600; }
.mjoin { border-left: 4px solid var(--gold); margin-bottom: 14px; }
/* printed results (meet-print) */
.print h1 { margin-bottom: 2px; } .print h2 { margin: 18px 0 6px; } .print h3 { margin: 10px 0 4px; font-size: 14px; }
.print table { margin-bottom: 8px; } .print td, .print th { padding: 5px 8px; }
@media print {
  header.top, footer, .noprint { display: none !important; }
  body { background: #fff; } main { padding: 0; }
  .print .sec { break-inside: avoid; } .print table { font-size: 12px; }
}
#entrants td { padding: 8px 4px; } #entrants .btn { padding: 6px 10px; }

/* the sign-up QR code shown full screen at a meet */
dialog.qrbig { border: 0; margin: 0; padding: 4vmin; width: 100vw; height: 100vh; max-width: none; max-height: none; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2vmin; text-align: center; cursor: pointer; }
dialog.qrbig:not([open]) { display: none; }
dialog.qrbig .qrname { font-size: clamp(20px, 4vmin, 40px); font-weight: 700; color: var(--navy); }
dialog.qrbig .qrimg { width: min(78vmin, 640px); }
dialog.qrbig .qrimg svg { display: block; width: 100%; height: auto; }
dialog.qrbig .qrsay { font-size: clamp(15px, 2.6vmin, 24px); max-width: 32em; }
dialog.qrbig .qrnote { color: #9a5b00; font-weight: 600; }

/* meet certificates (meet-certificate), one landscape page each */
.certs .cert { background: #fff; border: 3px solid var(--navy); padding: 8px; margin: 0 auto 22px; max-width: 900px; aspect-ratio: 11 / 8.5; box-sizing: border-box; }
.certs .cin { border: 2px solid #C9A227; height: 100%; box-sizing: border-box; padding: 2% 6%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.certs .trophy { width: 34%; max-width: 280px; }
.certs .cplace { font-size: clamp(34px, 7vw, 72px); font-weight: 800; letter-spacing: .02em; line-height: 1.05; }
.certs .cwhat { font-size: clamp(20px, 3.6vw, 36px); font-weight: 700; color: var(--navy); margin-top: 2px; }
.certs .cby { font-style: italic; color: #5b6b80; margin-top: 14px; }
.certs .cname { font-size: clamp(22px, 4vw, 40px); font-weight: 700; color: #1b2a41; border-bottom: 1px solid #c8ced6; padding: 0 24px 2px; margin: 2px 0 6px; }
.certs .cval { color: #5b6b80; }
.certs .cmeet { margin-top: 12px; font-size: clamp(12px, 1.6vw, 16px); line-height: 1.4; }
.certs .cfoot { margin-top: auto; width: 100%; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #5b6b80; padding-top: 8px; }
.certs .cfoot img { width: 18px; height: 18px; vertical-align: -4px; }
@media print {
  @page { size: letter landscape; margin: 0.4in; }
  .certs .cert { margin: 0; max-width: none; width: 100%; height: 7.6in; aspect-ratio: auto; break-after: page; }
  .certs .cert:last-child { break-after: auto; }
}
/* target altitude for each motor class (meet-edit) */
.targets { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px 10px; }
.targets .tgt { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; }
.targets .tgt span { min-width: 30px; text-align: right; } .targets .tgt input { width: 100%; min-width: 0; }

/* a rocket photo in a flight's details */
.rphoto { display: block; width: 100%; max-height: 420px; object-fit: contain; border-radius: 10px; background: var(--bg); margin-bottom: 12px; }
.phslot { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px; margin: 0 0 10px; border: 2px dashed var(--line); border-radius: 10px;
  background: var(--bg); color: #6B7482; text-align: left; font: inherit; cursor: pointer; }
.phslot:hover { border-color: #B9C0CB; } .phslot b { color: #4A5361; } .phslot svg { flex: none; }
