/* Aerial Economy Large Drone Index page. House palette: paper, ink, navy, starlight, gold. No inline styles anywhere (CSP). */

/* ---------- hero band: navy, full width ---------- */
.aeldi-band { background: var(--navy); color: var(--starlight); padding: var(--s-3) 0 var(--s-4); }
.aeldi-band-in { max-width: 78rem; margin: 0 auto; padding: 0 var(--s-3); }
.aeldi-crumb { font-family: var(--sans); font-size: var(--t-1); color: color-mix(in srgb, var(--starlight) 70%, var(--navy)); margin: 0 0 var(--s-3); }
.aeldi-crumb span[aria-current] { color: var(--starlight); }
.aeldi-viewbox { position: relative; display: grid; gap: var(--s-2) var(--s-4); grid-template-columns: 1fr; grid-template-areas: "head" "panel" "tabs" "main"; }
.aeldi-viewbox > input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.aeldi-head { grid-area: head; }
.aeldi-code { font-family: var(--sans); font-size: var(--t-1); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin: 0 0 .35rem; }
.aeldi-head h1 { color: var(--starlight); font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.1; margin: 0; max-width: none; }
.aeldi-panel { grid-area: panel; border: 1px solid var(--navy-line); border-radius: var(--radius); padding: var(--s-2); background: var(--navy-2); }
.aeldi-plabel { font-family: var(--sans); font-size: var(--t-1); letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--starlight) 70%, var(--navy-2)); margin: 0; }
.aeldi-level { font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1.05; font-weight: 700; margin: 0; font-variant-numeric: tabular-nums; }
.aeldi-count { font-size: var(--t-3); font-weight: 700; margin: .1rem 0 0; }
.aeldi-asof { font-family: var(--sans); font-size: var(--t-1); line-height: 1.35; margin: .4rem 0 var(--s-2); color: color-mix(in srgb, var(--starlight) 85%, var(--navy-2)); }
.aeldi-changes { margin: 0; font-family: var(--sans); font-size: var(--t-2); }
.aeldi-changes div { display: flex; justify-content: space-between; gap: var(--s-1); padding: .3rem 0; border-top: 1px solid var(--navy-line); }
.aeldi-changes dt { color: color-mix(in srgb, var(--starlight) 75%, var(--navy-2)); }
.aeldi-changes dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; font-weight: 600; }
.aeldi-def2 { font-family: var(--sans); font-size: 12px; line-height: 1.4; margin: .6rem 0 0; color: color-mix(in srgb, var(--starlight) 75%, var(--navy-2)); }

.aeldi-tabs { grid-area: tabs; display: flex; gap: var(--s-3); border-bottom: 1px solid var(--navy-line); align-self: end; }
.aeldi-tabs label { font-family: var(--sans); font-size: var(--t-2); padding: .55rem .1rem; min-height: 2.75rem; display: inline-flex; align-items: center; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; color: color-mix(in srgb, var(--starlight) 75%, var(--navy)); }
#aeldi-v-chart:checked ~ .aeldi-tabs label[for="aeldi-v-chart"], #aeldi-v-table:checked ~ .aeldi-tabs label[for="aeldi-v-table"] { color: var(--starlight); border-bottom-color: var(--gold); font-weight: 600; }
#aeldi-v-chart:focus-visible ~ .aeldi-tabs label[for="aeldi-v-chart"], #aeldi-v-table:focus-visible ~ .aeldi-tabs label[for="aeldi-v-table"] { outline: 2px solid var(--gold); outline-offset: 2px; }

.aeldi-main { grid-area: main; min-width: 0; }
.aeldi-tablearea { display: none; }
#aeldi-v-table:checked ~ .aeldi-main .aeldi-chartarea { display: none; }
#aeldi-v-table:checked ~ .aeldi-main .aeldi-tablearea { display: block; }

/* timeframe controls: text buttons, the chosen one filled */
.aeldi-chartbox > input { position: absolute; opacity: 0; pointer-events: none; }
.aeldi-pills { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem; margin: 0 0 var(--s-1); position: relative; }
.aeldi-pills label, .aeldi-pills .off { font-family: var(--sans); font-size: var(--t-2); padding: .35rem .8rem; min-height: 2.5rem; min-width: 2.75rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px; cursor: pointer; position: relative; color: var(--starlight); }
.aeldi-pills label:hover { border-color: var(--navy-line); }
.aeldi-pills .off { opacity: .5; cursor: not-allowed; color: color-mix(in srgb, var(--starlight) 70%, var(--navy)); }
.aeldi-pills .off:hover { border-color: transparent; }
.aeldi-pills .off:hover::after, .aeldi-pills .off:focus::after { content: attr(data-note); position: absolute; right: 0; top: 100%; margin-top: 6px; z-index: 5; width: max-content; max-width: 16rem; background: var(--starlight); color: var(--navy); font-size: var(--t-1); padding: .4rem .6rem; border-radius: var(--radius); }
#aeldi-r-1m:checked ~ .aeldi-pills label[for="aeldi-r-1m"], #aeldi-r-3m:checked ~ .aeldi-pills label[for="aeldi-r-3m"], #aeldi-r-1y:checked ~ .aeldi-pills label[for="aeldi-r-1y"], #aeldi-r-5y:checked ~ .aeldi-pills label[for="aeldi-r-5y"], #aeldi-r-10y:checked ~ .aeldi-pills label[for="aeldi-r-10y"], #aeldi-r-all:checked ~ .aeldi-pills label[for="aeldi-r-all"] { background: var(--starlight); color: var(--navy); font-weight: 600; }
#aeldi-r-1m:focus-visible ~ .aeldi-pills label[for="aeldi-r-1m"], #aeldi-r-3m:focus-visible ~ .aeldi-pills label[for="aeldi-r-3m"], #aeldi-r-1y:focus-visible ~ .aeldi-pills label[for="aeldi-r-1y"], #aeldi-r-all:focus-visible ~ .aeldi-pills label[for="aeldi-r-all"] { outline: 2px solid var(--gold); outline-offset: 2px; }
.aeldi-pills .off:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* chart: one line, one color */
.aeldi-chart svg { display: none; overflow: visible; width: 100%; height: auto; color: var(--starlight); }
#aeldi-r-1m:checked ~ .aeldi-svgs .s-1m, #aeldi-r-3m:checked ~ .aeldi-svgs .s-3m, #aeldi-r-1y:checked ~ .aeldi-svgs .s-1y, #aeldi-r-5y:checked ~ .aeldi-svgs .s-5y, #aeldi-r-10y:checked ~ .aeldi-svgs .s-10y, #aeldi-r-all:checked ~ .aeldi-svgs .s-all { display: block; }
.aeldi-chart svg text { font-family: var(--sans); font-size: 19px; fill: currentColor; }
.aeldi-chart .line { fill: none; stroke: currentColor; stroke-width: 3; stroke-linejoin: round; }
.aeldi-chart .line-dash { fill: none; stroke: currentColor; stroke-width: 3; stroke-opacity: .6; stroke-dasharray: 6 5; }
.aeldi-chart .dot-cleared { fill: currentColor; }
.aeldi-chart .gapmark { stroke: currentColor; stroke-opacity: .8; stroke-width: 2; }
.aeldi-chart .lab-start, .aeldi-chart .lab-end { font-size: 28px; font-weight: 700; }
.aeldi-chart .pt { outline: none; }
.aeldi-chart .pt .hit { fill: currentColor; fill-opacity: 0; }
.aeldi-chart .pt:hover .hit, .aeldi-chart .pt:focus .hit { fill-opacity: .9; }
.aeldi-chart .pt .tip { display: none; font-size: 21px; font-weight: 700; }
.aeldi-chart .pt:hover .tip, .aeldi-chart .pt:focus .tip { display: block; }
.aeldi-key { font-family: var(--sans); font-size: 13px; line-height: 1.45; color: color-mix(in srgb, var(--starlight) 78%, var(--navy)); margin: var(--s-1) 0 0; max-width: 60rem; }
.aeldi-docs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s-1); margin: var(--s-1) 0 0; }
.aeldi-pill { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .4rem 1.1rem; border: 1px solid var(--starlight); border-radius: 999px; color: var(--starlight); font-family: var(--sans); font-size: var(--t-2); text-decoration: none; }
.aeldi-pill:hover { background: var(--starlight); color: var(--navy); }
.aeldi-pill:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.aeldi-def { font-size: var(--t-3); max-width: 46rem; margin: var(--s-3) 0 0; color: var(--starlight); }

/* table view (on navy) */
.aeldi-tablearea .aeldi-table { color: var(--starlight); }
.aeldi-tablearea .aeldi-table th, .aeldi-tablearea .aeldi-table td { border-bottom-color: var(--navy-line); }
.aeldi-tablearea .aeldi-table caption { color: color-mix(in srgb, var(--starlight) 75%, var(--navy)); }
.aeldi-btn { display: inline-flex; align-items: center; font-family: var(--sans); font-size: var(--t-2); padding: .4rem 1.1rem; border: 1px solid var(--starlight); border-radius: 999px; text-decoration: none; margin: 0 .5rem .5rem 0; min-height: 2.75rem; color: var(--starlight); }
.aeldi-btn:hover { background: var(--starlight); color: var(--navy); }
.tpage { display: none; scroll-margin-top: 16rem; }
.tpage:target { display: block; }
.aeldi-tviews:not(:has(.tpage:target)) .tpage:first-child { display: block; }
.aeldi-pager { font-family: var(--sans); font-size: var(--t-2); display: flex; flex-wrap: wrap; gap: .25rem .5rem; align-items: center; margin-top: var(--s-1); color: var(--starlight); }
.aeldi-pager a { padding: .5rem .6rem; min-width: 2.75rem; text-align: center; border: 1px solid var(--navy-line); border-radius: var(--radius); color: var(--starlight); }

/* tables, both on navy and on paper */
.aeldi-table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: var(--t-2); font-variant-numeric: tabular-nums; }
.aeldi-table caption { text-align: left; font-size: var(--t-1); color: var(--ink-muted); padding: 0 0 .4rem; }
.aeldi-table th, .aeldi-table td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--rule); font-weight: 400; }
.aeldi-table thead th { font-weight: 600; border-bottom-width: 2px; }
.aeldi-table tbody th { font-weight: 600; }
.aeldi-table td:nth-child(2), .aeldi-table td:nth-child(3), .aeldi-table th:nth-child(2), .aeldi-table th:nth-child(3) { text-align: right; }
.aeldi-perf td:nth-child(4), .aeldi-perf th:nth-child(4) { text-align: right; }
.aeldi-perf td:nth-child(2), .aeldi-perf th:nth-child(2) { text-align: left; }
.aeldi-tablearea .aeldi-perf { margin-bottom: var(--s-2); }

/* below the fold: content column and the sticky right rail */
.aeldi-body { padding-top: var(--s-4); }
.aeldi-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.aeldi-content section { margin-bottom: var(--s-5); scroll-margin-top: 5rem; }
.aeldi-content h2 { margin-top: 0; }
.aeldi-rail { display: none; }
.aeldi-rail-m { font-family: var(--sans); font-size: var(--t-2); border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: var(--s-3); }
.aeldi-rail-m summary { cursor: pointer; padding: .7rem var(--s-2); min-height: 2.75rem; }
.aeldi-rail-m nav { display: grid; padding: 0 var(--s-2) var(--s-1); }
.aeldi-rail-m nav a { padding: .55rem 0; border-top: 1px solid var(--rule); }
@media (min-width: 64rem) {
  .aeldi-cols { grid-template-columns: minmax(0, 1fr) 13rem; }
  .aeldi-rail { display: block; position: sticky; top: 4.5rem; font-family: var(--sans); font-size: var(--t-2); }
  .aeldi-rail-h { font-size: var(--t-1); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 var(--s-1); }
  .aeldi-rail a { display: block; padding: .55rem 0; border-top: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
  .aeldi-rail a:hover { text-decoration: underline; }
  .aeldi-rail-m { display: none; }
}
.aeldi-facts { margin: var(--s-2) 0 0; border-top: 2px solid var(--ink); }
.aeldi-facts div { display: grid; grid-template-columns: 12rem 1fr; gap: var(--s-2); padding: .6rem 0; border-bottom: 1px solid var(--rule); }
.aeldi-facts dt { font-family: var(--sans); font-size: var(--t-2); color: var(--ink-muted); }
.aeldi-facts dd { margin: 0; font-family: var(--sans); font-size: var(--t-2); font-weight: 600; }
@media (max-width: 34rem) { .aeldi-facts div { grid-template-columns: 1fr; gap: .1rem; } }
.aeldi-note { font-size: var(--t-1); color: var(--ink-muted); font-family: var(--sans); margin-top: var(--s-1); }
.aeldi-receipt { border: 1px solid var(--ink); border-radius: var(--radius); padding: var(--s-3); margin: var(--s-2) 0; background: var(--stock); }
.aeldi-receipt ul { list-style: none; padding: 0; margin: var(--s-1) 0; }
.aeldi-receipt li { padding: .25rem 0; }
.aeldi-limits { border-left: 3px solid var(--ink); padding: var(--s-1) var(--s-3); margin: var(--s-2) 0; }
.aeldi-soon { border: 1px dashed var(--ink-muted); border-radius: var(--radius); padding: var(--s-2); }
.aeldi-cite { font-family: var(--sans); font-size: var(--t-2); background: var(--stock); padding: var(--s-2); border-radius: var(--radius); user-select: all; overflow-wrap: anywhere; }
.aeldi-days summary { cursor: pointer; font-family: var(--sans); min-height: 2.75rem; display: flex; align-items: center; }
.aeldi-days ul { columns: 2; padding-left: 1.2rem; font-size: var(--t-2); }
@media (max-width: 34rem) { .aeldi-days ul { columns: 1; } }
.aeldi-res { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.aeldi-res li { display: grid; grid-template-columns: 14rem 1fr; gap: var(--s-2); padding: .65rem 0; border-bottom: 1px solid var(--rule); font-family: var(--sans); font-size: var(--t-2); }
.aeldi-res li span { color: var(--ink-muted); }
@media (max-width: 34rem) { .aeldi-res li { grid-template-columns: 1fr; gap: .1rem; } }

/* ---------- desktop: chart left and dominant, readout panel right ---------- */
@media (min-width: 48rem) {
  .aeldi-viewbox { grid-template-columns: minmax(0, 1fr) 19rem; grid-template-areas: "head head" "docs docs" "tabs tabs" "main panel"; align-items: start; }
  .aeldi-docs { grid-area: docs; margin: 0; }
  .aeldi-chart svg { max-height: calc(100svh - 24rem); min-height: 16rem; }
  .aeldi-tabs { align-self: auto; }
}
@media (min-width: 48rem) and (max-width: 64rem) {
  .aeldi-viewbox { grid-template-columns: minmax(0, 1fr) 16rem; }
  .aeldi-level { font-size: 2.75rem; }
}

/* ---------- phone: title, readout strip, tabs, chart, buttons, document links ---------- */
@media (max-width: 47.99rem) {
  .aeldi-band { padding: .75rem 0 var(--s-3); }
  .aeldi-band-in { padding: 0 var(--s-2); }
  .aeldi-crumb { margin-bottom: var(--s-1); }
  .aeldi-viewbox { gap: var(--s-1); grid-template-areas: "head" "panel" "tabs" "main" "docs"; }
  .aeldi-docs { grid-area: docs; margin-top: var(--s-1); }
  .aeldi-head h1 { font-size: 1.5rem; }
  .aeldi-panel { display: grid; grid-template-columns: auto 1fr; column-gap: var(--s-2); align-items: center; padding: .55rem var(--s-2); }
  .aeldi-plabel { display: none; }
  .aeldi-level { font-size: 2.5rem; grid-row: 1 / span 2; }
  .aeldi-count { font-size: var(--t-2); margin: 0; }
  .aeldi-asof { margin: 0; font-size: 12px; }
  .aeldi-changes { grid-column: 1 / -1; display: flex; gap: var(--s-1); margin-top: .4rem; }
  .aeldi-changes div { flex: 1; display: block; padding: .3rem 0 0; font-size: 12px; }
  .aeldi-changes div:nth-child(n+3) { display: none; }
  .aeldi-changes dd { text-align: left; }
  .aeldi-def2 { display: none; }
  .aeldi-tabs label { min-height: 2.5rem; padding: .35rem .1rem; }
  .aeldi-pills { justify-content: flex-start; }
  .aeldi-pills label { min-height: 2.5rem; padding: .3rem .7rem; }
  .aeldi-chart svg .lab-start, .aeldi-chart svg .lab-end { font-size: 40px; }
  .aeldi-chart svg text { font-size: 28px; }
  .aeldi-chart svg .pt .tip { font-size: 28px; }
  .aeldi-tablearea .aeldi-table { font-size: 13px; }
  .aeldi-tablearea .aeldi-table th, .aeldi-tablearea .aeldi-table td { padding: .4rem .3rem; }
}
.aeldi-formula { font-family: var(--sans); background: var(--stock); padding: var(--s-2); border-radius: var(--radius); overflow-wrap: anywhere; }

/* typographic rhythm below the fold */
.aeldi-content h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.2; margin: 0 0 var(--s-2); padding-top: var(--s-1); border-top: 1px solid var(--rule); }
.aeldi-content #overview h2 { border-top: 0; padding-top: 0; }
.aeldi-content p { margin: 0 0 var(--s-2); }
.aeldi-content .aeldi-table { margin-bottom: var(--s-1); }
.aeldi-days summary::before { content: '+'; display: inline-block; width: 1.25rem; font-size: var(--t-3); }
.aeldi-days details[open] summary::before { content: '\2212'; }

.aeldi-chart .dot-single { fill: currentColor; opacity: .9; }
.aeldi-chart .refline { stroke: currentColor; stroke-opacity: .35; stroke-dasharray: 2 6; }
.aeldi-chart .lab-ref { font-size: 17px; fill: currentColor; opacity: .75; }

/* the shared header pads its left edge by --axis-left; between 64rem and 75rem that pushes the Subscribe button off screen. Scoped to this page only. */
@media (min-width: 64rem) and (max-width: 75rem) { body:has(.aeldi-band) { --axis-left: var(--gutter); } }

/* v2.0: legend, base row, corrections list */
.aeldi-legend { max-width: 62rem; }
.aeldi-baserow { margin-bottom: var(--s-2); }
.aeldi-corr { padding-left: 1.2rem; }
.aeldi-corr li { margin-bottom: var(--s-1); }
