/* The Authority's public pages. Phone first: everything is one column at 375 px and widens from 640 px.
   Palette (from the logo): deep teal #003A45, teal #0F6F7C, gold #C9A227, pale gold #E8CF7A, text #10222B,
   muted #566166, danger #B42318. Dressing: parchment page #F6F1E4, ivory cards #FFFDF7, gold rules and ornaments.
   Gold is never the colour of text on a light background (it fails AA): there the text is teal, teal-deep or
   gold-ink #80620A. Gold text only on teal-deep. Input text is 16 px so phones do not zoom in; tap targets are
   44 px or more. */

:root {
  --teal-deep: #003A45; --teal: #0F6F7C; --gold: #C9A227; --gold-pale: #E8CF7A;
  --text: #10222B; --muted: #566166; --danger: #B42318; --line: #D5DDE0; --page: #F6F1E4; --card: #FFFDF7;
  --ivory: #FFFDF7; --gold-ink: #80620A;
  --map-sans: "Segoe UI", Roboto, system-ui, -apple-system, Arial, sans-serif;
  --display: "Cinzel", Georgia, "Times New Roman", serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --g: linear-gradient(var(--gold), var(--gold));
  /* the fleuron: two scrolls and a diamond, drawn in gold, used on the rules */
  --fleuron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 20'%3E%3Cg fill='none' stroke='%23C9A227' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath fill='%23C9A227' d='M32 3l6 7-6 7-6-7z'/%3E%3Cpath d='M24 10c-6 0-7-6-12-5-3 .5-3 4 0 4'/%3E%3Cpath d='M24 10c-6 0-7 6-12 5-3-.5-3-4 0-4'/%3E%3Cpath d='M40 10c6 0 7-6 12-5 3 .5 3 4 0 4'/%3E%3Cpath d='M40 10c6 0 7 6 12 5 3-.5 3-4 0-4'/%3E%3C/g%3E%3C/svg%3E");
}

body { background: var(--page); color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.5; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.rg-skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--teal-deep); padding: 10px 14px; z-index: 100; }
.rg-skip:focus { left: 8px; top: 8px; }
a { color: var(--teal); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, .btn:focus-within { outline: 3px solid var(--teal-deep); outline-offset: 2px; } /* gold rings vanish on gold borders and parchment */

/* the ribbon (banner_html in hooks.py) */
.rg-ribbon { background: var(--gold); color: var(--teal-deep); text-align: center; font-size: 15px; font-weight: 600; font-variant: small-caps; letter-spacing: .05em; padding: 5px 16px; border-top: 1px solid var(--teal-deep); border-bottom: 1px solid var(--teal-deep); }

/* masthead: ivory band, the seal and three lines, the nav, and a gold double rule with a fleuron in it */
.rg-header { background: var(--ivory); padding-bottom: 12px; }
.rg-wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }
.rg-head { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 14px; }
.rg-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; text-decoration: none; color: var(--teal-deep); }
.rg-brand img { height: 56px; width: auto; flex: none; }
.rg-brand-text { display: block; }
.rg-crown { display: block; font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); line-height: 1.5; }
.rg-brand b { display: block; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: .05em; line-height: 1.25; color: var(--teal-deep); }
.rg-brand small { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 18px; color: var(--muted); line-height: 1.3; }
.rg-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 6px; }
.rg-nav a, .rg-linkbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 2px 10px 0; font-family: var(--display); font-size: 14px; font-weight: 600; letter-spacing: .06em; color: var(--teal); text-decoration: none; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; }
.rg-nav a:hover, .rg-linkbtn:hover, .rg-nav a[aria-current] { border-bottom-color: var(--gold); color: var(--teal-deep); }
.rg-rule { position: relative; height: 6px; margin-top: 10px; background: var(--g) 0 0 / 100% 3px no-repeat, var(--g) 0 5px / 100% 1px no-repeat; }
.rg-rule::after { content: ""; position: absolute; left: 50%; top: 50%; width: 92px; height: 22px; transform: translate(-50%, -50%);
  background: var(--fleuron) center / 64px 20px no-repeat, linear-gradient(var(--ivory), var(--ivory)); }

/* page */
.rg-main { outline: none; }
.rg-page { padding-top: 20px; padding-bottom: 48px; overflow-wrap: anywhere; }
.card > .btn, .card form > .btn, form.card > .btn { margin-top: 16px; }
.rg-page h1 { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: .04em; line-height: 1.25; color: var(--teal-deep); margin: 8px 0 8px; }
.rg-page h2 { font-family: var(--serif); font-weight: 600; font-size: 25px; line-height: 1.2; color: var(--teal-deep); margin: 0 0 12px; outline: none; }
.rg-page h2::after { content: ""; display: block; width: 40px; height: 2px; background: var(--gold); margin-top: 6px; }
.rg-page h3 { font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--teal-deep); margin: 20px 0 4px; }
.rg-page h4 { font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 16px 0 6px; }
.lede { font-family: var(--serif); font-style: italic; font-weight: 500; color: #46535A; font-size: 21px; line-height: 1.35; margin: 0 0 16px; }
.hint { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.card, .page-card { position: relative; background: linear-gradient(90deg, var(--teal), var(--gold)) 0 0 / 100% 4px no-repeat, var(--card); border: 1px solid var(--gold); border-radius: 3px; padding: 22px 20px 18px; margin: 0 0 16px; }
/* gold corner flourishes: a 14 px L of double line in each corner, drawn with gradients so there is no image to load */
.card::before, .card::after, .page-card::before, .page-card::after { content: ""; position: absolute; left: 5px; right: 5px; height: 14px; pointer-events: none; background-repeat: no-repeat;
  background-image: var(--g), var(--g), var(--g), var(--g), var(--g), var(--g), var(--g), var(--g);
  background-size: 14px 1px, 1px 14px, 11px 1px, 1px 11px, 14px 1px, 1px 14px, 11px 1px, 1px 11px; }
.card::before, .page-card::before { top: 9px;
  background-position: 0 0, 0 0, 3px 3px, 3px 3px, 100% 0, 100% 0, calc(100% - 3px) 3px, calc(100% - 3px) 3px; }
.card::after, .page-card::after { bottom: 5px;
  background-position: 0 100%, 0 100%, 3px calc(100% - 3px), 3px calc(100% - 3px), 100% 100%, 100% 100%, calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) calc(100% - 3px); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.more { margin: 0 0 16px; }

/* buttons: primary is gilded (teal, a 2 px gold edge and a fine ivory line inside it); 48 px high; the focus ring is above */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 2px solid var(--gold); border-radius: 6px; background: var(--teal); color: #fff; font-size: 16px; font-weight: 700; font-family: inherit; text-decoration: none; cursor: pointer; text-align: center;
  box-shadow: inset 0 0 0 2px var(--teal), inset 0 0 0 3px rgba(255, 253, 247, .85); }
.btn:hover { background: var(--teal-deep); border-color: var(--gold); color: #fff; box-shadow: inset 0 0 0 2px var(--teal-deep), inset 0 0 0 3px rgba(255, 253, 247, .85); }
.btn-gold { background: var(--gold); border: 1px solid var(--teal-deep); color: var(--teal-deep); box-shadow: none; }
.btn-gold:hover { background: var(--gold-pale); border-color: var(--teal-deep); color: var(--teal-deep); box-shadow: none; }
.btn-plain { background: var(--ivory); border: 2px solid var(--gold); color: var(--teal); box-shadow: none; }
.btn-plain:hover { background: var(--page); border-color: var(--gold); color: var(--teal-deep); box-shadow: none; }
.btn-small { min-height: 44px; padding: 0 14px; font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: default; }
.step-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.step-nav .btn { flex: 1 1 140px; }

/* forms */
.fld { margin: 14px 0 0; }
.fld label { display: block; font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.req { color: var(--danger); }
.fld input[type=text], .fld input[type=email], .fld input[type=tel], .fld input[type=number], .fld input[type=date], .fld select {
  display: block; width: 100%; min-height: 48px; padding: 8px 12px; border: 1px solid #8C999E; border-radius: 6px; background: #fff; color: var(--text); font-size: 16px; font-family: inherit; }
.fld input:focus, .fld select:focus { border-color: var(--teal); outline: 3px solid var(--gold-pale); }
.fld [aria-invalid=true] { border-color: var(--danger); }
.err { color: var(--danger); font-size: 15px; font-weight: 600; margin: 6px 0 0; }
.rg-row { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
.check-row { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; }
.check-row input { flex: none; width: 24px; height: 24px; margin-top: 10px; accent-color: var(--teal); }
.check-row label { margin: 0; padding: 10px 0; font-weight: 600; }
label.opt, .fld label.opt { display: flex; font-weight: 400; font-size: 16px; align-items: flex-start; gap: 12px; padding: 12px; margin: 8px 0 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; min-height: 44px; }
.opt input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--teal); }
.opt b { display: block; font-weight: 700; }
.opt small { display: block; color: var(--muted); font-size: 14px; font-weight: 400; margin-top: 2px; }
.opt:has(input:checked) { border-color: var(--teal); background: #E7F2F4; }
.rg-step { margin: 0; }
.rg-step.is-off { display: none; }
.rg-progress { color: var(--muted); font-size: 14px; font-weight: 600; margin: 0 0 8px; }
.amount { font-size: 30px; font-weight: 800; color: var(--teal-deep); margin: 4px 0; }

/* notices */
.notice { background: #E7F2F4; border-left: 4px solid var(--teal); padding: 10px 12px; margin: 14px 0; }
.notice p { margin: 4px 0 0; }
.warning { background: #FFF4F2; border: 2px solid var(--danger); border-radius: 6px; padding: 12px; margin: 16px 0 0; color: #7A1A12; }
.warning p { margin: 4px 0 0; }
.flash { background: #E7F2F4; border-left: 4px solid var(--teal); padding: 10px 12px; margin: 0 0 16px; font-weight: 600; }
.flash-bad { background: #FFF4F2; border-left-color: var(--danger); color: #7A1A12; }
.next { padding-left: 20px; }
.next li { margin: 6px 0; }

/* lists and records */
.list { list-style: none; padding: 0; margin: 8px 0 0; }
.list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list small { color: var(--muted); font-size: 14px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rec { padding: 10px 0; border-top: 1px solid var(--line); }
.rec:first-of-type { border-top: 0; }
.rec-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.rec-sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.rec-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #E8EDEF; color: var(--text); }
.badge-approved, .badge-paid, .badge-active { background: #DDF3E4; color: #0B5D2A; }
.badge-pending-review, .badge-submitted, .badge-due, .badge-pending { background: #FBF0C8; color: #6B5200; }
.badge-revoked, .badge-rejected, .badge-expired { background: #FBE0DC; color: #8A1A10; }

/* landing */
.hero { padding: 8px 0 4px; }
.choices { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0 0 16px; }
.choice-card { display: block; background: var(--ivory); border: 1px solid var(--gold); border-left: 6px solid var(--gold); border-radius: 3px; padding: 16px; text-decoration: none; color: var(--text); min-height: 44px; }
.choice-card:hover { border-left-color: var(--teal); box-shadow: 0 2px 8px rgba(0, 58, 69, .12); }
.choice-card b { display: block; font-family: var(--serif); font-weight: 600; font-size: 23px; line-height: 1.2; color: var(--teal-deep); margin-bottom: 4px; }
.choice-card span { color: var(--muted); font-size: 15px; }
.rules { padding-left: 20px; margin: 8px 0 0; }
.rules li { margin: 4px 0; }
.fees { list-style: none; padding: 0; margin: 8px 0 0; }
.fees li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); }
.fees li:first-child { border-top: 0; }
.fees b { white-space: nowrap; }
.tag { display: block; color: var(--muted); font-size: 13px; }
.proposed { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 8px; }
.proposed summary { cursor: pointer; font-weight: 700; color: var(--teal-deep); min-height: 44px; display: flex; align-items: center; }

/* landing: the airspace map, and the costs that sit closed at the bottom */
.airspace-map { height: 340px; border: 1px solid var(--gold); box-shadow: 0 0 0 3px var(--ivory), 0 0 0 4px var(--gold); margin-left: 4px; margin-right: 4px; border-radius: 4px; background: #E4E9EA; margin: 12px 0 0; z-index: 0; }
.map-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--teal); border-radius: 999px; background: #fff; color: var(--teal); font-family: var(--map-sans); font-weight: 600; font-size: 13px; line-height: 1.2; cursor: pointer; }
.chip:hover { background: var(--page); color: var(--teal-deep); }
.chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.chip[aria-pressed="true"]::before { content: ""; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--gold-pale); flex: none; }
/* the markers and names on the map (drawn by registry-map.js): a round teal marker with a white ring and an aeroplane for an aerodrome, a smaller red or gold one for the other zones; the name is a pill beside it */
.map-pin { position: absolute; width: 0; height: 0; z-index: 3; }
.pin-dot { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; padding: 0; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--teal); color: #fff; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .45); cursor: pointer; }
.pin-dot svg { width: 16px; height: 16px; display: block; }
.pin-zone .pin-dot { left: -11px; top: -11px; width: 22px; height: 22px; }
.pin-zone .pin-dot svg { width: 13px; height: 13px; }
.map-pin-red .pin-dot { background: var(--danger); }
.map-pin-gold .pin-dot { background: var(--gold); color: var(--teal-deep); }
.pin-zone { display: none; }
.z-markers .pin-zone { display: block; }
.pin-label { position: absolute; top: 0; left: 22px; transform: translateY(calc(-50% + var(--dy, 0px))); width: max-content; padding: 3px 9px; background: rgba(0, 58, 69, .85); color: #fff; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); font-family: var(--map-sans); font-weight: 600; font-size: 12px; line-height: 1.35; white-space: nowrap; cursor: pointer; }
.pin-zone .pin-label { left: 19px; display: none; }
.z-zones .pin-zone .pin-label { display: block; }
.pin-label.pin-left { left: auto; right: 22px; }
.pin-zone .pin-label.pin-left { right: 19px; }
.pl-code, .pl-full { display: none; font-weight: 400; }
.z-code .pl-code { display: inline; }
.z-full .pl-full { display: inline; }
.legend { display: flex; flex-wrap: wrap; gap: 2px 16px; list-style: none; padding: 0; margin: 10px 0 0; font-family: var(--map-sans); font-size: 13px; }
.legend li { display: flex; align-items: center; gap: 6px; min-height: 24px; }
.swatch { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--teal); flex: none; }
.swatch-no-flight { border-color: var(--danger); background: rgba(180, 35, 24, .45); }
.swatch-coordinator { border-color: var(--gold); background: rgba(201, 162, 39, .55); }
.swatch-notify { border-color: var(--teal); background: transparent; }
/* live air traffic (registry-map.js, api/traffic.py): the strip above the map, the toggle chip, the plane glyphs and their key */
.traffic-strip { margin: 12px 0 0; padding: 10px 12px; border: 1px solid var(--gold); border-radius: 4px; background: var(--ivory); }
.ts-line { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 0; }
.ts-line-day { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.ts-item { display: flex; flex-direction: column; min-width: 0; }
.ts-label { font-family: var(--display); font-weight: 600; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; line-height: 1.3; color: var(--teal-deep); }
.ts-num { font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1.05; color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.ts-when { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.ts-below { display: none; }
.traffic-strip.is-low .ts-below { display: flex; }
.traffic-strip.is-stale .ts-when { color: var(--gold-ink); font-weight: 600; }
.traffic-strip.is-down .ts-item:not(.ts-when), .traffic-strip.is-down .ts-line-day { display: none; }
.plane { position: absolute; width: 0; height: 0; z-index: 2; }
.plane:hover, .plane.is-selected { z-index: 5; }
.plane-hit { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
.plane svg { display: block; overflow: visible; filter: drop-shadow(1px 0 0 #0A2A33) drop-shadow(-1px 0 0 #0A2A33) drop-shadow(0 1px 0 #0A2A33) drop-shadow(0 -1px 0 #0A2A33) drop-shadow(0 2px 2px rgba(0, 0, 0, .5)); }
.plane path { stroke-linejoin: round; stroke: none; }
.plane-overflight path { fill: var(--ivory); stroke: var(--teal); stroke-width: 1.6; }
.plane-arriving path { fill: var(--gold); }
.plane-departing path { fill: #2BB3C4; }
.plane-low path { fill: var(--ivory); }
.plane-ground path { fill: #8A9499; }
.plane-label { display: none; position: absolute; left: 14px; top: 0; transform: translateY(-50%); width: max-content; padding: 2px 8px; background: rgba(0, 58, 69, .85); color: #fff; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); font-family: var(--map-sans); font-weight: 600; font-size: 12px; line-height: 1.35; pointer-events: none; }
.plane:hover .plane-label, .plane.is-selected .plane-label, .plane-hit:focus-visible ~ .plane-label { display: block; }
.plane-info { font-size: 14px; line-height: 1.45; color: var(--text); }
.legend-traffic { margin-top: 2px; }
.swatch-plane.plane-overflight { background: var(--ivory); border-color: var(--teal); }
.swatch-plane.plane-arriving { background: var(--gold); border-color: #0A2A33; }
.swatch-plane.plane-departing { background: #2BB3C4; border-color: #0A2A33; }
.swatch-plane.plane-low { background: var(--ivory); border-color: #0A2A33; }
.swatch-plane.plane-ground { background: #8A9499; border-color: #0A2A33; }
.costs > summary { cursor: pointer; font-family: var(--serif); font-size: 25px; font-weight: 600; color: var(--teal-deep); min-height: 44px; display: flex; align-items: center; }
.costs[open] > summary { margin-bottom: 8px; }
.costs > summary::after, .proposed > summary::after { content: "+"; margin-left: 12px; font-family: var(--display); font-weight: 700; color: var(--gold-ink); }
.costs[open] > summary::after, .proposed[open] > summary::after { content: "\2212"; }

/* verify */
/* the verdict is a roundel: gold for Valid; the others are muted, so a lapsed certificate never looks like a good one */
.status { display: flex; align-items: center; justify-content: center; text-align: center; width: 148px; height: 148px; margin: 8px auto 14px; padding: 12px; border-radius: 50%;
  font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2;
  background: #ECEEEE; color: #3B484D; border: 3px solid #8A969B; box-shadow: inset 0 0 0 5px #ECEEEE, inset 0 0 0 6px #8A969B; }
.status-valid { font-size: 24px; letter-spacing: .08em; color: var(--teal-deep); border-color: var(--gold);
  background: radial-gradient(circle, #FFF8DC 0%, var(--gold-pale) 100%); box-shadow: inset 0 0 0 5px var(--gold-pale), inset 0 0 0 6px var(--gold), 0 2px 6px rgba(0, 58, 69, .25); }
.status-revoked { border-style: double; border-width: 5px; }
.facts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 8px 0; }
.facts dt { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin-top: 10px; }
.facts dd { margin: 0; font-weight: 600; }

/* certificate: the print format's own HTML (it carries its own frame and styles), printed without the page around it */
.rg-cert { margin: 0 0 16px; overflow-wrap: anywhere; }
.rg-cert img { max-width: 100%; }

/* footer: gold double rule on top, the seal, the Authority and its motto, then the contact columns */
.rg-footer { position: relative; background: var(--teal-deep); color: #fff; padding: 28px 0 16px; margin-top: 24px; font-size: 14px; border-top: 3px solid var(--gold); }
.rg-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 2px; height: 1px; background: var(--gold); }
.rg-footer a { color: var(--gold-pale); display: inline-block; padding: 12px 0; }
.rg-footer address { font-style: normal; margin: 4px 0 8px; }
.rg-footer p { margin: 0 0 8px; }
.rg-foot-id { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid rgba(232, 207, 122, .35); }
.rg-seal { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--ivory); border: 2px solid var(--gold); box-shadow: 0 0 0 3px var(--teal-deep), 0 0 0 4px var(--gold-pale); flex: none; }
.rg-seal img { width: 40px; height: auto; }
.rg-foot-name { display: block; font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.rg-motto { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 20px; color: var(--gold-pale); margin-top: 2px; }
.rg-foot-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.rg-foot-grid b { font-family: var(--display); font-weight: 600; letter-spacing: .06em; }
.rg-foot-demo { border-top: 1px solid rgba(255, 255, 255, .25); margin-top: 16px; padding-top: 12px; color: var(--gold-pale); }

/* login page (Frappe's own page: no header of ours, so the masthead is drawn from the page's own boxes with CSS
   alone, and the card gets the same gold frame as every other card). #page-login wins over Frappe's own rules. */
#page-login::before { content: "Demonstration"; display: block; background: var(--ivory); text-align: center; padding: 14px 16px 0;
  font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); }
#page-login .page-breadcrumbs { display: block; position: relative; background: var(--g) 0 calc(100% - 13px) / 100% 3px no-repeat, var(--g) 0 calc(100% - 10px) / 100% 1px no-repeat, var(--ivory); text-align: center; padding: 2px 16px 22px; }
#page-login .page-breadcrumbs::before { content: "UAS Registry"; display: block; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: .05em; line-height: 1.3; color: var(--teal-deep); }
#page-login .page-breadcrumbs::after { content: "Civil Aviation Authority"; display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 18px; color: var(--muted); }
body[data-path="login"] { background: var(--page); }
#page-login .page-content-wrapper { padding-top: 0; min-height: calc(100vh - 260px); }
#page-login .page-breadcrumbs { margin-bottom: 32px; }
#page-login .page-card { background-color: var(--card); border: 1px solid var(--gold); border-radius: 3px; padding: 30px 26px 26px; box-shadow: 0 2px 10px rgba(0, 58, 69, .12); }
#page-login .page-card-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
#page-login .page-card-head .app-logo { height: 72px; width: auto; }
#page-login .page-card-head h4 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: .08em; color: var(--teal-deep); }
#page-login .page-card-subtitle { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 19px; color: #46535A; }
#page-login .page-card .btn-login, #page-login .page-card .btn-login:focus { background: var(--teal); border: 2px solid var(--gold); color: #fff; font-weight: 700; box-shadow: inset 0 0 0 2px var(--teal), inset 0 0 0 3px rgba(255, 253, 247, .85); }
#page-login .page-card .btn-login:hover, #page-login .page-card .btn-login:active { background: var(--teal-deep); border-color: var(--gold); color: #fff; box-shadow: inset 0 0 0 2px var(--teal-deep), inset 0 0 0 3px rgba(255, 253, 247, .85); }
#page-login .page-card .btn-primary, #page-login .page-card .btn-primary:focus { background: var(--gold); border: 1px solid var(--teal-deep); color: var(--teal-deep); font-weight: 700; }
#page-login .page-card .btn-primary:hover, #page-login .page-card .btn-primary:active { background: var(--gold-pale); border-color: var(--teal-deep); color: var(--teal-deep); }
#page-login .page-card .form-control:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--gold-pale); }
#page-login .page-card a { color: var(--teal); }
.forgot-password-message { display: none; } /* a reset link is an email, and this system sends none */

/* document photos: two buttons, then a gold-framed preview with Retake */
.up-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.up-actions[hidden], .up-preview[hidden], .scan-box[hidden] { display: none; }
.fld label.btn { display: inline-flex; margin: 0; font-size: 15px; font-weight: 700; }
.up-btn { flex: 1 1 140px; }
.up-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 10px; }
.up-thumb { display: grid; place-items: center; flex: none; max-width: 100%; margin: 4px; background: #fff; border: 1px solid var(--gold); box-shadow: 0 0 0 3px var(--ivory), 0 0 0 4px var(--gold); }
.up-thumb img { display: block; max-width: 100%; max-height: 160px; object-fit: contain; }
.up-thumb img[hidden], .up-doc[hidden] { display: none; }
.up-doc { width: 72px; height: 88px; padding: 12px; color: var(--teal); }
.up-info { display: flex; flex: 1 1 120px; flex-direction: column; min-width: 0; font-size: 14px; color: var(--muted); }
.up-name { overflow-wrap: anywhere; color: var(--text); }
.from-passport { display: inline-block; margin: 0 0 4px; padding: 1px 10px; border: 1px solid var(--gold); border-radius: 999px; background: var(--gold-pale); color: var(--teal-deep); font-size: 12px; font-weight: 700; line-height: 1.6; }
.passport-state.is-bad { color: var(--danger); font-weight: 600; }

/* the camera on the verify page */
.scan-box { margin: 14px 0 0; padding: 4px; border: 1px solid var(--gold); box-shadow: 0 0 0 3px var(--ivory), 0 0 0 4px var(--gold); background: #000; }
.scan-box video { display: block; width: 100%; max-height: 60vh; object-fit: cover; background: #000; }
.scan-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.scan-actions .btn { flex: 1 1 160px; }

/* the airman's view on the landing map: flight-category rings, the aerodrome card, the FAA layers, and the key to them
   (registry-map-common.js rings, registry-aerodrome.js, registry-map-faa.js). A thin outer ring in the METAR colour. */
.pin-dot[data-cat="VFR"] { box-shadow: 0 0 0 3px #2E7D32, 0 2px 6px rgba(0, 0, 0, .45); }
.pin-dot[data-cat="MVFR"] { box-shadow: 0 0 0 3px #1565C0, 0 2px 6px rgba(0, 0, 0, .45); }
.pin-dot[data-cat="IFR"] { box-shadow: 0 0 0 3px #B42318, 0 2px 6px rgba(0, 0, 0, .45); }
.pin-dot[data-cat="LIFR"] { box-shadow: 0 0 0 3px #8E24AA, 0 2px 6px rgba(0, 0, 0, .45); }
.swatch-ring { background: var(--teal); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--ring, #6B7479); margin: 0 3px; }
.swatch-ring.cat-VFR { --ring: #2E7D32; } .swatch-ring.cat-MVFR { --ring: #1565C0; } .swatch-ring.cat-IFR { --ring: #B42318; } .swatch-ring.cat-LIFR { --ring: #8E24AA; }
.swatch-line { width: 20px; height: 0; border: 0; border-top: 2px solid var(--line-color, #1E4FD8); border-radius: 0; background: none; }
.swatch-line.us-b { --line-color: #1E4FD8; } .swatch-line.us-c { --line-color: #B5178C; } .swatch-line.us-d { --line-color: #1E4FD8; border-top-style: dashed; }
.swatch-cell { width: 14px; height: 14px; border-radius: 2px; border: 1px solid rgba(255, 255, 255, .8); background: rgba(10, 42, 51, .55); }
.swatch-cell.zero { background: rgba(220, 38, 38, .55); border-color: #B42318; }
.faa-grid { position: absolute; pointer-events: none; }
.map-stage { margin: 12px 0 0; }
.map-stage .airspace-map { margin: 0; }
.aero-card { position: fixed; left: 0; right: 0; bottom: 0; height: 60vh; z-index: 60; display: flex; flex-direction: column; overflow: hidden; background: var(--ivory); border-top: 2px solid var(--gold); border-radius: 14px 14px 0 0; box-shadow: 0 -6px 24px rgba(0, 0, 0, .35); font-family: var(--map-sans); font-size: 14px; line-height: 1.45; transition: height .2s ease; }
.aero-card[hidden] { display: none; }
.aero-card.is-peek { height: 100px; }
.aero-card.is-tall { height: 90vh; }
/* a header that stays (the handle and the close button, then the title) and a body that scrolls */
.ac-bar { flex: none; display: flex; flex-wrap: wrap; align-items: center; background: var(--ivory); padding: 0 8px 0 16px; }
.ac-grip { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 44px; cursor: grab; touch-action: none; }
.ac-grip span { width: 40px; height: 5px; border-radius: 3px; background: #B9C2C6; }
.ac-close { flex: none; order: 2; width: 44px; height: 44px; border: 0; background: none; color: var(--teal-deep); font-size: 28px; line-height: 1; cursor: pointer; }
.ac-bar .ac-title { order: 3; flex: 0 0 100%; margin: 0; padding: 0 0 8px; }
.ac-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px 20px; }
.ac-body .ac-mono, .aero-card .ac-mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace; }
.aero-card .ac-title { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace; font-size: 28px; font-weight: 700; letter-spacing: .02em; line-height: 1.1; color: var(--teal-deep); outline: none; }
.ac-name { margin: 2px 0 0; font-weight: 600; color: var(--text); }
.ac-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 4px 0 0; color: var(--muted); }
.ac-cat { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff; background: #6B7479; }
.ac-cat-VFR { background: #2E7D32; } .ac-cat-MVFR { background: #1565C0; } .ac-cat-IFR { background: #B42318; } .ac-cat-LIFR { background: #8E24AA; }
.ac-atis { font-weight: 700; color: var(--teal-deep); }
.aero-card .ac-sec { margin: 16px 0 0; padding-top: 4px; border-top: 1px solid var(--line); }
.aero-card .ac-sec h4 { margin: 8px 0 6px; font-size: 12px; letter-spacing: .08em; color: var(--teal-deep); }
.ac-freq { width: 100%; border-collapse: collapse; }
.ac-freq tr { border-top: 1px solid var(--line); }
.ac-freq tr:first-child { border-top: 0; }
.ac-freq th { text-align: left; font-weight: 600; padding: 5px 0; }
.ac-freq td { text-align: right; padding: 5px 0; font-size: 15px; font-weight: 700; color: var(--teal-deep); }
.ac-note { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.ac-grid { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; }
.ac-grid dt { color: var(--muted); }
.ac-grid dd { margin: 0; text-align: right; }
.ac-raw { margin: 8px 0 0; padding: 8px 10px; border-radius: 4px; background: #EFEBDD; font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.ac-taf summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 700; color: var(--teal-deep); }
.ac-taf .ac-raw { margin-top: 0; }
.ac-muted { margin: 0; color: var(--muted); }
.ac-runways { list-style: none; padding: 0; margin: 0; }
.ac-runways li { padding: 3px 0; }
.ac-planes { list-style: none; padding: 0; margin: 0; }
.ac-plane { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; width: 100%; min-height: 44px; padding: 8px 4px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.ac-planes li:first-child .ac-plane { border-top: 0; }
.ac-plane:hover { background: var(--page); }
.ac-plane b { color: var(--teal-deep); }
.ac-type, .ac-alt { color: var(--muted); }
.ac-state { margin-left: auto; font-weight: 600; }
.ac-state::first-letter { text-transform: uppercase; }
.ac-today { margin: 8px 0 0; font-weight: 700; color: var(--teal-deep); }
.aero-card .btn { margin-top: 6px; }
/* the Plan your flight section on the landing page */
.plan-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 16px 0 0; }
.plan-card { display: flex; flex-direction: column; padding: 14px 16px 16px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 3px; }
.rg-page .plan-card h3 { margin: 0 0 6px; }
.plan-card p { margin: 0 0 10px; font-size: 15px; }
.plan-card .btn { margin-top: auto; align-self: flex-start; }
.card .plan-card > .btn { margin-top: auto; }
.usecases { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.usecases li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--ivory); font-family: var(--map-sans); font-size: 13px; font-weight: 600; color: var(--teal-deep); }
.usecases svg { width: 18px; height: 18px; flex: none; color: var(--teal); }

@media (min-width: 640px) {
  .map-stage { display: flex; align-items: stretch; }
  .map-stage .airspace-map { flex: 1 1 auto; min-width: 0; }
  .aero-card { position: relative; left: auto; right: auto; bottom: auto; flex: 0 0 360px; width: 360px; height: auto; z-index: 0; margin-left: 12px; border: 1px solid var(--gold); border-radius: 4px; box-shadow: 0 0 0 3px var(--ivory), 0 0 0 4px var(--gold); transition: none; }
  .aero-card.is-peek, .aero-card.is-tall { height: auto; }
  .ac-grip { display: none; }
  .ac-bar { flex-wrap: nowrap; justify-content: space-between; gap: 12px; padding: 12px 16px 10px; border-bottom: 1px solid var(--line); }
  .ac-bar .ac-title { order: 0; flex: 1 1 auto; min-width: 0; padding: 0; overflow-wrap: anywhere; }
  .ac-close { width: 36px; height: 36px; border: 1.5px solid var(--teal); border-radius: 50%; font-size: 22px; padding: 0 0 2px; } /* in the header row beside the title; the phone keeps its 44 px */
  .ac-close:hover { background: var(--page); }
  .ac-body { padding-top: 10px; }
  .plan-grid { grid-template-columns: repeat(3, 1fr); }
  .ts-line { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 32px; }
  .ts-when { margin-left: auto; text-align: right; }
  .chip { padding: 0 16px; font-size: 14px; }
  .airspace-map { height: 480px; }
  .rg-row { grid-template-columns: 1fr 1fr; }
  .choices { grid-template-columns: 1fr 1fr; }
  .rg-foot-grid { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 200px 1fr; }
  .facts dt { margin-top: 0; padding: 8px 0; border-top: 1px solid var(--line); }
  .facts dd { padding: 8px 0; border-top: 1px solid var(--line); }
  .rg-page h1 { font-size: 30px; }
  .rg-head { padding-top: 18px; }
  .rg-brand { flex-direction: row; gap: 20px; text-align: left; }
  .rg-brand img { height: 72px; }
  .rg-brand b { font-size: 22px; }
  .card, .page-card { padding: 26px 28px 22px; }
  .rg-foot-id { flex-direction: row; justify-content: center; text-align: left; gap: 20px; }
  .step-nav .btn { flex: 0 1 auto; min-width: 160px; }
}

/* the landing page's map teaser */
.airspace-teaser { height: 280px; }
.teaser-go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 14px 0 0; }
.teaser-go .hint { margin: 0; }

/* the Airspace page (/airspace): the map fills the screen inside a gold frame, a toolbar above it and a dock beside it
   (a bottom sheet on a phone); registry-airspace.js, registry-weather.js, registry-scope.js */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.air-page { padding: 12px 16px 32px; }
.air-page .traffic-strip { margin: 0; }
.air-frame { max-width: 100%; margin: 12px 0 0; border: 1px solid var(--gold); border-radius: 4px; background: var(--ivory); box-shadow: 0 0 0 3px var(--ivory), 0 0 0 4px var(--gold); }
.air-frame[hidden] { display: none; }
.air-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 8px 10px; border-bottom: 1px solid var(--gold); }
.air-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.air-mode { margin-left: auto; }
.air-glabel { font-family: var(--display); font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }
.chip-mode { min-width: 72px; justify-content: center; }
.air-stage { display: flex; height: 560px; }
.air-mapwrap { position: relative; flex: 1 1 auto; min-width: 0; }
.air-frame .air-map { position: absolute; inset: 0; height: 100%; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.scope-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.air-frame.is-scope .map-pin, .air-frame.is-scope .plane { display: none; }
.air-frame.is-scope [data-view="all"], .air-frame.is-scope #us-airspace-toggle { display: none; }
.wx-bar { position: absolute; left: 10px; bottom: 34px; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; max-width: calc(100% - 20px); padding: 4px 12px 4px 4px; border-radius: 22px; background: rgba(0, 58, 69, .9); color: #fff; font-family: var(--map-sans); font-size: 12px; font-weight: 600; }
.wx-bar[hidden], .wx-sat-note[hidden] { display: none; }
.wx-play { min-width: 64px; min-height: 36px; padding: 0 12px; border: 1px solid var(--gold); border-radius: 18px; background: var(--ivory); color: var(--teal-deep); font: 700 13px var(--map-sans); cursor: pointer; }
.wx-scrub { width: 130px; accent-color: var(--gold); }
.wx-frame { white-space: nowrap; }
.wx-sat-note { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 3; margin: 0; padding: 3px 12px; border-radius: 999px; background: rgba(0, 58, 69, .88); color: #fff; font: 600 12px/1.4 var(--map-sans); white-space: nowrap; pointer-events: none; }
.air-note { margin-top: 12px; }
.air-page .legend { margin-top: 6px; }

/* the dock: three panels (the aerodrome card, weather for airmen, the scope) take turns in the same place */
.air-stage .aero-card[hidden] { display: none; }
.aero-card .ac-title.ac-title-plain { font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: .05em; line-height: 1.3; }
.ac-src { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.wx-pick { display: block; width: 100%; min-height: 44px; padding: 0 10px; border: 1px solid var(--gold); border-radius: 6px; background: var(--ivory); color: var(--text); font: 600 15px var(--map-sans); }
.wx-now { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.wx-temp { display: block; font-family: var(--serif); font-size: 30px; line-height: 1.05; color: var(--teal-deep); }
.wx-cond { display: block; color: var(--muted); }
.wx-icon { width: 40px; height: 40px; flex: none; }
.wx-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 0; }
.wx-day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 4px; font-size: 12px; text-align: center; }
.wx-day b { color: var(--teal-deep); }
.wx-rain { color: var(--muted); }
.wx-winds { width: 100%; border-collapse: collapse; font-size: 13px; }
.wx-winds th { text-align: left; font-weight: 600; padding: 3px 0; }
.wx-winds td { text-align: right; padding: 3px 0; }
.wx-winds tr { border-top: 1px solid var(--line); }
.wx-winds tr:first-child { border-top: 0; }
.wx-list { list-style: none; padding: 0; margin: 0; }
.wx-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; width: 100%; min-height: 44px; padding: 8px 4px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.wx-list li:first-child .wx-item { border-top: 0; }
.wx-item:hover { background: var(--page); }
.wx-item small { flex: 0 0 100%; color: var(--muted); font-size: 12px; }
.wx-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #fff; }
.wx-badge-sigmet { background: #D93025; }
.wx-badge-airmet { background: #E3A008; color: #10222B; }
.wx-raw { margin-top: 6px; max-height: 140px; overflow: auto; font: 11px/1.4 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.pirep { position: absolute; width: 0; height: 0; z-index: 2; }
.pirep-dot { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
.pirep-dot svg { display: block; width: 14px; height: 14px; margin: 4px; fill: #fff; stroke: #0A2A33; stroke-width: 1; }
.pirep-level { position: absolute; left: 10px; top: -7px; display: none; font: 700 10px/1 var(--map-sans); color: #fff; text-shadow: 0 0 3px #000, 0 0 3px #000, 0 0 2px #000; white-space: nowrap; pointer-events: none; }
.z-code .pirep-level { display: block; }
.swatch-haz { border-radius: 2px; }
.swatch-haz.haz-sigmet { border-color: #D93025; background: rgba(217, 48, 37, .3); }
.swatch-haz.haz-airmet { border-color: #E3A008; background: rgba(227, 160, 8, .3); }
.swatch-pirep { width: 9px; height: 9px; border: 1.5px solid #0A2A33; border-radius: 1px; background: #fff; transform: rotate(45deg); }

/* the radar scope's panel is dark: the same classes, the palette flipped by variables */
#scope-panel { --teal-deep: #9BF0C8; --text: #9BF0C8; --muted: #6FB99B; --line: rgba(61, 220, 151, .25); --page: rgba(61, 220, 151, .1); --ivory: #07161C; background: #07161C; color: #9BF0C8; }
#scope-panel .ac-bar { border-color: rgba(61, 220, 151, .3); }
#scope-panel .wx-pick { background: #0B242D; }
.sc-controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.sc-ranges { display: flex; gap: 4px; width: 100%; }
.sc-range { flex: 1 1 0; min-height: 44px; border: 1px solid #3DDC97; border-radius: 6px; background: transparent; color: #9BF0C8; font: 700 13px ui-monospace, Menlo, Consolas, monospace; cursor: pointer; }
.sc-range[aria-pressed="true"] { background: #3DDC97; color: #04121A; }
.sc-code { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.15; color: var(--teal-deep); outline: none; }
.sc-bad { color: #FF5A4F; }
.sc-wx { margin: 4px 0 0; }
.sc-honest { margin-top: 14px; }
.sc-back { margin: 0 0 8px; }
.sc-photo { display: block; margin: 8px 0 0; }
.sc-photo img { display: block; width: 100%; max-height: 150px; object-fit: cover; border-radius: 4px; }
#scope-panel .ac-plane.is-chosen { background: rgba(255, 200, 87, .14); }
#scope-panel .btn { background: #0B242D; border-color: #3DDC97; color: #9BF0C8; box-shadow: none; }
#scope-panel a { color: #9BF0C8; }

@media (max-width: 639.98px) {
  .air-toolbar { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; gap: 6px 14px; }
  .air-group { flex: none; flex-wrap: nowrap; }
  .air-mode { margin-left: 0; }
  .air-stage { height: 560px; }
  .air-frame.is-offscreen .aero-card { display: none; }
  .wx-scrub { width: 90px; }
  .wx-bar { bottom: 12px; }
  .wx-play { min-height: 44px; }
}
@media (min-width: 640px) {
  .airspace-teaser { height: 320px; }
  .air-page { padding: 16px 16px 40px; }
  .air-stage { height: max(560px, calc(100vh - 380px)); }
  /* the strip and the toolbar are one slim line each, so the map starts as high as it can */
  .air-page .traffic-strip { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 30px; padding: 6px 12px; }
  .air-page .ts-line, .air-page .ts-line-day { display: contents; }
  .air-page .ts-num { font-size: 26px; }
  .air-page .ts-when { order: 99; margin-left: auto; }
  .air-page .air-toolbar { padding: 6px 10px; }
  .air-page .chip { min-height: 34px; padding: 0 12px; font-size: 13px; }
  .air-stage .aero-card { margin: 0; border: 0; border-left: 1px solid var(--gold); border-radius: 0; box-shadow: none; }
  #scope-panel .ac-bar { border-bottom-color: rgba(61, 220, 151, .3); }
}

@media print {
  @page { margin: 10mm; }
  .rg-ribbon, .rg-header, .rg-footer, .no-print, .rg-skip { display: none !important; }
  body { background: #fff; }
}


/* the next hours for drone flights (registry-weather.js hourStrip, in the weather dock and on the aerodrome card): a cell for
   each hour, teal for go, gold for caution, muted red for no, dark grey for night; two rows of 24 beside the map, one
   row that scrolls sideways on a phone, with 44 px cells */
.hr { --hr-go: #0F6F7C; --hr-caution: #C9A227; --hr-no: #A94A42; --hr-night: #4A5459; margin: 4px 0 0; }
.hr-title { margin: 12px 0 4px; font: 700 12px/1.3 var(--map-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--teal-deep); }
.hr-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; padding: 6px 6px 4px; border: 1px solid var(--gold); border-radius: 3px; background: #fff; }
.hr-strip { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 4px 2px; }
.hr-compact .hr-strip { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.hr-cell { display: flex; flex-direction: column; align-items: stretch; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: center; cursor: pointer; }
.hr-day { display: block; width: 0; height: 11px; overflow: visible; white-space: nowrap; text-align: left; font: 700 9px/11px var(--map-sans); letter-spacing: .03em; color: var(--teal-deep); }
.hr-bar { display: block; height: 22px; border-radius: 2px; background: var(--hr-go); }
.hr-caution .hr-bar { background: var(--hr-caution); }
.hr-no .hr-bar { background: var(--hr-no); }
.hr-night .hr-bar { background: var(--hr-night); }
.hr-hour { display: block; font: 600 9px/13px var(--map-sans); font-variant-numeric: tabular-nums; color: var(--muted); }
.hr-cell.is-chosen .hr-bar { outline: 2px solid var(--teal-deep); outline-offset: 1px; }
.hr-cell.is-chosen .hr-hour { color: var(--teal-deep); font-weight: 800; }
.hr-detail { margin: 8px 0 0; min-height: 4.2em; font-size: 13px; line-height: 1.4; color: var(--text); }
.hr-key { margin-top: 4px; }
.swatch-hr { border: 0; border-radius: 2px; }
.swatch-hr-go { background: #0F6F7C; }
.swatch-hr-caution { background: #C9A227; }
.swatch-hr-no { background: #A94A42; }
.swatch-hr-night { background: #4A5459; }
/* "WeatherNext" in a source line: a small gold-outline badge that links to Google's announcement */
.wx-model { position: relative; display: inline-block; margin: 0 1px; padding: 0 8px; border: 1px solid var(--gold); background: var(--ivory); color: var(--teal-deep); font-size: 12px; font-weight: 700; line-height: 1.6; text-decoration: none; }
.wx-model::after { content: ""; position: absolute; inset: -13px -4px; }
.wx-model:hover { background: var(--gold-pale); }
@media (max-width: 639.98px) {
  .hr-strip, .hr-compact .hr-strip { width: max-content; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44px; gap: 4px 0; }
  .hr-bar { height: 24px; }
  .hr-day { height: 13px; font-size: 11px; line-height: 13px; }
  .hr-hour { font-size: 12px; line-height: 16px; }
}
/* WeatherNext flying conditions on the Airspace page (registry-weathernext.js): four classes in four colours, the controls
   under the toolbar, the strip in the weather dock. The colours are the hourly Google strip's too. */
.wn-c0 { background: #2A9D8F; } .wn-c1 { background: #C9A227; } .wn-c2 { background: #B5443C; } .wn-c3 { background: #4A4F57; }
.wn-cnone { background: repeating-linear-gradient(45deg, #D8DDE0, #D8DDE0 2px, #fff 2px, #fff 4px); }
.wn-canvas { position: absolute; pointer-events: none; }
.wn-bar { padding: 8px 10px; border-bottom: 1px solid var(--gold); background: var(--ivory); font-family: var(--map-sans); font-size: 13px; line-height: 1.4; }
.wn-bar[hidden] { display: none; }
.wn-row { display: flex; align-items: center; gap: 6px 12px; }
.wn-row .wx-play { flex: none; }
.wn-slider { flex: 1 1 auto; min-width: 120px; height: 34px; accent-color: var(--gold); }
.wn-time { flex: none; min-width: 9.5em; font-weight: 700; color: var(--teal-deep); white-space: nowrap; }
.wn-run { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.wn-key { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 6px 0 0; padding: 0; list-style: none; font-size: 12px; }
.wn-swatch { display: inline-block; width: 14px; height: 14px; margin-right: 4px; border-radius: 2px; vertical-align: -2px; }
.wn-notices { margin: 6px 0 0; font-size: 11px; line-height: 1.35; color: var(--muted); }
.wn-notices p { margin: 2px 0; }
.wn-notices a { color: inherit; overflow-wrap: anywhere; }
.wn-dock .wn-key { margin: 4px 0 0; }
.wn-strip { display: flex; gap: 1px; margin: 6px 0 0; }
.wn-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.wn-cell { display: block; width: 100%; height: 24px; }
.wn-hr, .wn-day { display: block; height: 11px; font: 9px/11px var(--map-sans); color: var(--muted); white-space: nowrap; overflow: visible; position: relative; }
.wn-day { font-weight: 700; color: var(--teal-deep); }
.wn-sentence { margin: 6px 0 0; }
@media (max-width: 639.98px) {
  .wn-row { flex-wrap: wrap; }
  .wn-slider { order: 3; flex: 1 1 100%; height: 44px; }
  .wn-time { min-width: 0; }
}
