/* « Carte APRS » (/direct/hf/aprs, and the live page while TellusMe is on APRS): the map, the legend, the list, the live arrows.
   One desktop screen, only the frames scroll; stacked on a phone. */
.dhfa-source { background: color-mix(in srgb, var(--accent) 14%, var(--panel)); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.dhfa-grille { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.dhfa-grille > .card { min-height: 0; display: flex; flex-direction: column; }
.dhfa-carte-corps { position: relative; flex: 1; min-height: 0; }
.dhfa-leaflet { height: 56vh; min-height: 320px; width: 100%; background: var(--well); border-radius: 0 0 var(--r-m, 8px) var(--r-m, 8px); }
.dhfa-legende { position: absolute; left: 8px; bottom: 8px; z-index: 500; display: flex; gap: 4px 12px; flex-wrap: wrap; margin: 0; padding: 4px 10px; list-style: none;
  background: color-mix(in srgb, var(--panel) 88%, transparent); border: 1px solid var(--border); border-radius: 999px; font-size: 12px; max-width: calc(100% - 16px); }
.dhfa-legende li { display: inline-flex; align-items: center; gap: 5px; }
.dhfa-legende i { display: inline-block; width: 18px; height: 0; border-top: 3px solid var(--c); }
.dhfa-legende i.dhfa-pointille { border-top-style: dashed; }
.dhfa-legende i.dhfa-moi { width: 10px; height: 10px; border: 2px solid #3FE0C8; border-radius: 50%; background: #3FE0C833; }
.dhfa-liste-corps { overflow: auto; padding: 4px 6px; min-height: 0; flex: 1; max-height: 340px; }
.dhfa-stations { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dhfa-stations button { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 2px 8px; align-items: center; padding: 4px 8px;
  border-radius: var(--r-m, 8px); cursor: pointer; border: 1px solid transparent; }
.dhfa-stations button:hover { background: var(--well); }
.dhfa-stations button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.dhfa-stations button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.dhfa-sym { font-size: 18px; text-align: center; line-height: 1; }
.dhfa-nom { font: 600 13px var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dhfa-sous { grid-column: 2 / 4; font-size: 11.5px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dhfa-voie { font-size: 11px; font-weight: 600; padding: 0 7px; border-radius: 999px; border: 1px solid var(--c); color: var(--c); white-space: nowrap; }
.dhfa-fiche { border-top: 1px solid var(--border); padding: 8px 12px; font-size: 12.5px; max-height: 38%; overflow: auto; }
.dhfa-fiche h3 { margin: 0 0 4px; font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dhfa-fiche h3 button { margin-left: auto; }
.dhfa-fiche dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; margin: 0; }
.dhfa-fiche dt { color: var(--text-muted); }
.dhfa-fiche dd { margin: 0; overflow-wrap: anywhere; }
.dhfa-fiche .dhfa-pt { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 5px; }
.dhfa-m { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--c); background: color-mix(in srgb, var(--panel, #10161c) 85%, transparent);
  font-size: 15px; line-height: 1; box-shadow: 0 1px 4px rgba(0,0,0,.45); }
.dhfa-m.choisie { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 45%, transparent), 0 1px 4px rgba(0,0,0,.45); transform: scale(1.15); }
.dhfa-m.sat { border-style: dashed; }
.dhfa-m.moi { border-color: #3FE0C8; background: #3FE0C826; font-size: 13px; }
.dhfa-ctl { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-dim); margin-left: auto; }
.dhfa-note { margin: 0; }
.dhfa .leaflet-tooltip { font: 600 12px var(--font-mono); }
@media (min-width: 1100px) and (min-height: 640px) {
  body.ecran-dhfa .site-main > .dhf, body.ecran-dhfa .dhf { flex: 1; min-height: 0; }
  body.ecran-dhfa .dhfa-grille { flex: 1; min-height: 0; grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr); }
  body.ecran-dhfa .dhfa-leaflet { height: 100%; min-height: 0; position: absolute; inset: 0; }
  body.ecran-dhfa .dhfa-liste-corps { max-height: none; }
}

/* The live arrows (aprs-fleches.js): the arrowhead, the ring where a frame starts, the dot running along. */
.dhfa-pointe-b, .dhfa-onde-b { pointer-events: none; }
.dhfa-pointe { display: block; width: 14px; height: 14px; background: var(--c); clip-path: polygon(100% 50%, 0 0, 22% 50%, 0 100%); filter: drop-shadow(0 0 2px rgba(0,0,0,.6)); }
.dhfa-onde { display: block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--c); opacity: 0; animation: dhfa-onde 1.6s ease-out 1; }
@keyframes dhfa-onde { from { transform: scale(.6); opacity: .9; } to { transform: scale(4.2); opacity: 0; } }
.leaflet-overlay-pane path.dhfa-pouls { stroke-dasharray: 0.1 100000; }
.dhfa-legende i.dhfa-pointille { border-top-style: dashed; }
@media (prefers-reduced-motion: reduce) { .dhfa-onde { animation: none; } }

/* The live page (/direct/hf) while TellusMe is on APRS: the map and the stations in place of the waterfall, the CW skimmer and « Entendues ». */
.dhf:not(.mode-aprs) .dhf-aprs-carte, .dhf:not(.mode-aprs) .dhf-aprs-liste, .dhf:not(.mode-aprs) [data-c="aprs"] { display: none; }
.dhf.mode-aprs .dhf-grille > .card:not(.dhf-aprs-carte):not(.dhf-aprs-liste),
.dhf.mode-aprs [data-smetre], .dhf.mode-aprs [data-c="ent"], .dhf.mode-aprs [data-c="pays"], .dhf.mode-aprs [data-c="dec"] { display: none !important; }
.dhf-aprs-carte, .dhf-aprs-liste { display: flex; flex-direction: column; }
.dhf.mode-aprs .dhf-aprs-carte .dhfa-leaflet { height: 60vh; }
@media (min-width: 1100px) and (min-height: 640px) {
  body.ecran-dhf .dhf.mode-aprs .dhf-grille { grid-template-columns: minmax(0, 2fr) minmax(300px, .95fr); grid-template-rows: minmax(0, 1fr); grid-template-areas: "acarte aliste"; }
  body.ecran-dhf .dhf-aprs-carte { grid-area: acarte; }
  body.ecran-dhf .dhf-aprs-liste { grid-area: aliste; }
  body.ecran-dhf .dhf.mode-aprs .dhf-aprs-carte .dhfa-leaflet { height: 100%; min-height: 0; position: absolute; inset: 0; }
  body.ecran-dhf .dhf-aprs-liste .dhfa-liste-corps { max-height: none; }
}
