/* The antenna jobs app, in SingleVisit's family (docs/design-language.md): navy, aqua and sun; the deep card only for
   the one big thing on a page; one aqua button in view; SF Rounded headings; no web fonts. Every page keeps the ladder:
   one big thing, one sheet, a quiet foot. */
:root { --navy: #0F2135; --navy2: #183552; --deep: #0C4A5A; --aqua: #3FC6D9; --sun: #FFC94A; --green: #1B7A3A;
  --bg: #f3f7fa; --muted: #5b6b7c; --line: #dde5ec; --link: #0b6f80; --red: #b3261e;
  --sight: #00849C; --ground: #7A9A3C; --thing: #8A97A5; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--navy); -webkit-text-size-adjust: 100%; }
h1, h2, .brand, .word, .big { font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif; font-weight: 700; }
a { color: var(--link); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* Top bar */
header.top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; padding: 11px 18px;
  background: linear-gradient(120deg, var(--navy), var(--navy2)); color: #fff; }
.brand { color: #fff; font-size: 18px; text-decoration: none; white-space: nowrap; }
.brand small { font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-weight: 600; font-size: 13.5px; color: var(--aqua); margin-left: 7px; }
nav.links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; font-size: 15px; }
nav.links a { color: #cfe3ea; text-decoration: none; }
nav.links a[aria-current="page"] { color: #fff; font-weight: 600; }
@media (max-width: 480px) { nav.links { gap: 12px; font-size: 14.5px; } .deep h1 { font-size: 25px; } }
main { max-width: 680px; margin: 0 auto; padding: 16px 16px 48px; display: grid; gap: 14px; }
main.wide { max-width: 1100px; }
.back { font-size: 15px; text-decoration: none; }

/* The one big thing */
.deep { background: linear-gradient(135deg, var(--navy), var(--deep)); color: #fff; border-radius: 20px; padding: 16px 18px 18px; }
.deep .label { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.8); }
.deep h1 { margin: 2px 0 4px; font-size: 28px; line-height: 1.15; }
.deep p { margin: 0 0 4px; color: rgba(255,255,255,.92); }
.deep .big { font-size: 46px; line-height: 1.05; margin: 4px 0; }
.deep .alt { color: #cfe3ea; font-size: 15px; }
.deep a { color: #bfeaf1; }
.pill { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 1px 9px; border-radius: 10px; white-space: nowrap; vertical-align: 2px; }
.pill.sun { background: var(--sun); color: var(--navy); }
.pill.grey { background: #e6edf2; color: #3b4b5c; }
.deep .pill.grey { background: rgba(255,255,255,.16); color: #fff; }
.pill.done { background: #fff; color: var(--green); }

/* Buttons: one aqua in view, everything else quiet */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: var(--aqua); color: var(--navy);
  font-weight: 600; font-size: 16.5px; padding: 12px 20px; border-radius: 14px; cursor: pointer; text-decoration: none; }
.btn.full { width: 100%; margin-top: 14px; }
.btn:disabled { opacity: .55; cursor: default; }
.quiet { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--navy); padding: 8px 14px;
  border-radius: 12px; cursor: pointer; font-size: 15px; text-decoration: none; }
.deep .quiet, .deep a.quiet { border-color: rgba(255,255,255,.45); background: none; color: #fff; }
.deep a.btn { color: var(--navy); }
.linkish { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; text-decoration: underline; font-size: inherit; }
.danger { color: var(--red); }

/* One sheet */
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px 14px; position: relative; }
.group { color: var(--muted); font-size: 13px; font-weight: 600; margin: 4px 0 4px; }
.row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid #edf1f5; }
.row:last-child { border-bottom: 0; }
.row .m { flex: 1; min-width: 0; }
.row .s { color: var(--muted); font-size: 13.5px; }
.row .p { font-weight: 600; white-space: nowrap; }
a.row { color: inherit; text-decoration: none; }
.tick { flex: none; width: 18px; font-weight: 800; color: #1d9fb3; }
.tick.green { color: var(--green); }
.note { font-size: 13.5px; color: var(--muted); margin: 6px 2px 0; }

/* A quiet foot */
.foot { color: var(--muted); font-size: 14.5px; text-align: center; }
.foot p { margin: 4px 0; }
.foot details { text-align: left; border-top: 1px solid var(--line); padding: 9px 2px; }
.foot details:last-of-type { border-bottom: 1px solid var(--line); }
.foot summary { cursor: pointer; color: var(--navy); }
.foot ul { margin: 8px 0 2px; padding-left: 18px; display: grid; gap: 4px; }

/* Forms */
label.f { display: grid; gap: 4px; font-size: 14px; color: var(--muted); font-weight: 600; }
input.t, textarea.t, select.t { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 16.5px;
  background: #fff; color: var(--navy); font-weight: 400; }
textarea.t { min-height: 96px; resize: vertical; }
.field { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 3px 4px 3px 12px; background: #fff; }
.field input { flex: 1; border: 0; outline: 0; font-size: 16.5px; padding: 9px 0; min-width: 0; background: none; }
.mic { border: 0; background: var(--bg); color: var(--navy); width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex: none; }
.mic.on { background: var(--sun); }
.mic svg { width: 18px; height: 18px; }
.seg { display: inline-flex; background: #e9eff4; border-radius: 10px; padding: 2px; }
.seg button { border: 0; background: none; color: #3b4b5c; padding: 6px 11px; border-radius: 8px; cursor: pointer; font-size: 14.5px; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--navy); font-weight: 600; box-shadow: 0 1px 2px rgba(15,33,53,.12); }
.deep .seg { background: rgba(255,255,255,.12); }
.deep .seg button { color: #dbe8ee; }
.deep .seg button[aria-pressed="true"] { background: #fff; color: var(--navy); }
.controls { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.matches { display: grid; }
.matches button { text-align: left; border: 0; border-top: 1px solid #edf1f5; background: none; padding: 10px 2px; cursor: pointer; font-size: 15px; }
.heard { font-size: 14px; color: var(--muted); }
.problem { font-size: 14.5px; color: #8a5a00; background: #fff6de; border-radius: 10px; padding: 8px 12px; }
.deep .problem { background: rgba(255,201,74,.18); color: #ffe7a8; }
.choice { display: block; width: 100%; text-align: left; border: 1.5px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); color: #fff;
  border-radius: 14px; padding: 10px 14px; margin-top: 8px; cursor: pointer; }
.choice[aria-pressed="true"] { border-color: var(--aqua); background: rgba(63,198,217,.16); }
.choice b { float: right; }

/* Photos and videos */
.media { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 6px; }
.media figure { margin: 0; }
.media img, .media video { width: 100%; border-radius: 12px; background: #dfe6ec; display: block; max-height: 260px; object-fit: cover; }
.media figcaption { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.slot { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #edf1f5; }
.slot:last-child { border-bottom: 0; }
.slot .m { flex: 1; }
.slot .state { font-size: 13.5px; color: var(--muted); }
.slot input[type=file] { display: none; }

/* Two columns on a computer, one on a phone: the same rungs in the same order */
.cols { display: grid; gap: 14px; }
@media (min-width: 900px) { .cols { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: start; } }

/* The signal check's charts */
.inset { background: #fff; border-radius: 14px; padding: 8px 10px 6px; color: var(--navy); position: relative; }
.inset .cap { font-size: 12.5px; color: var(--muted); margin: 0 4px 2px; display: flex; justify-content: space-between; gap: 8px; }
svg.chart { display: block; width: 100%; height: auto; }
.signal { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 10px 0 12px; }
.word { font-size: 30px; line-height: 1; }
.signal span.r { color: #cfe3ea; font-size: 15px; }
.card .signal span.r { color: var(--muted); }
.facts { display: grid; gap: 7px; margin-top: 12px; }
.fact { display: grid; grid-template-columns: 92px 1fr; gap: 10px; font-size: 15px; }
.fact .k { color: rgba(255,255,255,.7); font-size: 13.5px; font-weight: 600; padding-top: 1px; }
.card .fact .k { color: var(--muted); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: #3b4b5c; margin: 0 2px 4px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; }
.legend i.box { height: 10px; width: 10px; border-radius: 3px; }
.tip { position: absolute; pointer-events: none; background: var(--navy); color: #fff; font-size: 12.5px; line-height: 1.35; padding: 6px 9px;
  border-radius: 8px; white-space: nowrap; display: none; z-index: 3; }
.towerbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }

/* A sheet over the page */
dialog.sheet { border: 0; border-radius: 20px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); }
dialog.sheet::backdrop { background: rgba(15,33,53,.45); }
dialog.sheet .head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 4px; }
dialog.sheet .head h2 { margin: 0; font-size: 20px; }
dialog.sheet .body { padding: 6px 18px 18px; display: grid; gap: 12px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
