/*
 * F4IOZ site — « FT8/FT4 »: the tabs, the spectrogram and its card, the stations' list, the map, the replay's
 * scrubber, the passes' table. The site's tokens (light and dark follow); the spectrogram itself stays dark, as a
 * waterfall is.
 */
.ft8-onglets { display: flex; gap: 6px; margin: 0 0 12px; flex-wrap: wrap; }
.ft8-onglets a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--panel); color: var(--text-dim); font-weight: 600; font-size: 13.5px; text-decoration: none; transition: border-color var(--anim), color var(--anim); }
.ft8-onglets a:hover { border-color: var(--border-strong); color: var(--text); }
.ft8-onglets a[aria-current="page"] { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--accent); }
.ft8-onglets .num { font-size: 12px; opacity: .8; }

/* ------------------------------------------------------------ the header */
.ft8-tete { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.ft8-tete-g { min-width: 0; flex: 1 1 260px; }
.ft8-tete .card-title { display: flex; align-items: center; gap: 9px; }
.ft8-sous { margin: 3px 0 0; font-size: 13px; }
.ft8-led { width: 10px; height: 10px; border-radius: 50%; background: var(--text-muted); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--text-muted) 20%, transparent); }
.ft8-led.vivant { background: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 25%, transparent); animation: ft8-pouls 1.6s ease-in-out infinite; }
@keyframes ft8-pouls { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--red) 0%, transparent); } }
.ft8-horloge { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.3; min-height: 38px; }
.ft8-anneau { --p: 0; width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--accent) calc(var(--p) * 360deg), color-mix(in srgb, var(--accent) 14%, transparent) 0);
  -webkit-mask: radial-gradient(circle, transparent 54%, #000 56%); mask: radial-gradient(circle, transparent 54%, #000 56%); }

/* ------------------------------------------------------------ the body */
.ft8-corps { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.ft8-toile { position: relative; height: 460px; border-radius: var(--r-m); overflow: hidden; background: #050c18; border: 1px solid var(--border); }
.ft8-toile canvas { display: block; width: 100%; height: 100%; touch-action: manipulation; }
.ft8-toile canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ft8-bulle { position: absolute; z-index: 2; max-width: min(320px, 90%); padding: 8px 10px; border-radius: var(--r-m); background: var(--panel); color: var(--text);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-pop); font-size: 12.5px; line-height: 1.55; pointer-events: none; }
.ft8-bulle b.mono { font-size: 13.5px; }
.ft8-drapeau { font-family: Drapeaux, var(--font-sans); }
.ft8-p { display: inline-block; margin-top: 3px; padding: 0 7px; border-radius: 999px; font-weight: 700; font-size: 11px; }
.ft8-p-moi { background: #FF4FA3; color: #fff; } .ft8-p-cq { background: #5BD68A; color: #04170C; }

.ft8-legende { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 8px 0 0; font-size: 12.5px; }
.ft8-l { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.ft8-l::before { content: ""; width: 22px; height: 11px; border-radius: 3px; background: var(--c); border: 1px solid var(--b, transparent); }
.ft8-l-cq { --c: #5BD68A; } .ft8-l-moi { --c: #FF4FA3; } .ft8-l-autre { --c: #0b1420; --b: rgba(150,170,190,.6); }

.ft8-rejeu { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.ft8-rejeu input[type="range"] { min-width: 140px; }
.ft8-rejeu input[type="range"] { flex: 1; accent-color: var(--accent); }
.ft8-rejeu .btn { min-width: 84px; }
.ft8-instant { font-size: 12.5px; color: var(--text-dim); white-space: nowrap; }

/* ------------------------------------------------------------ beside it: the map and the stations */
.ft8-cote { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ft8-carte { height: 190px; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--border); background: var(--m-ocean); }
.ft8-carte canvas { display: block; width: 100%; height: 100%; cursor: crosshair; }
.ft8-cote-t { margin: 4px 0 0; font-size: 14px; }
.ft8-stations { list-style: none; margin: 0; padding: 0; max-height: 252px; overflow: auto; border: 1px solid var(--border); border-radius: var(--r-m); background: var(--well); }
.ft8-stations li { display: grid; grid-template-columns: 22px minmax(0, 1fr) 46px 66px 54px; align-items: center; gap: 6px; padding: 5px 8px; font-size: 12.5px;
  border-bottom: 1px solid var(--td-border); cursor: pointer; position: relative; }
.ft8-stations li:last-child { border-bottom: 0; }
.ft8-stations li::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 2px; background: var(--c, transparent); }
.ft8-stations li.cq { --c: var(--green); } .ft8-stations li.moi { --c: #FF4FA3; }
.ft8-stations li:hover, .ft8-stations li:focus-visible { background: var(--accent-soft); outline: none; }
.ft8-stations li.choisi { background: color-mix(in srgb, var(--sat) 16%, transparent); }
.ft8-stations li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft8-stations li .num { text-align: right; }
.ft8-stations:empty::after { content: "—"; display: block; padding: 10px; color: var(--text-muted); text-align: center; }

/* ------------------------------------------------------------ a pass's figures, the passes' table */
.ft8-chiffres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 12px; }
.ft8-chiffre { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-l); background: var(--panel); box-shadow: var(--shadow); }
.ft8-chiffre b { font: 700 26px/1.1 var(--font-mono); color: var(--accent); }
.ft8-chiffre span { font-size: 12.5px; color: var(--text-dim); }
.ft8-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ft8-table th, .ft8-table td { padding: 7px 8px; border-bottom: 1px solid var(--td-border); text-align: left; white-space: nowrap; }
.ft8-table th { font-size: 12px; color: var(--text-dim); font-weight: 600; }
.ft8-table .num { text-align: right; }
.ft8-derniers { margin-top: 14px; }

@media (max-width: 1100px) {
  .ft8-corps { grid-template-columns: minmax(0, 1fr); }
  .ft8-cote { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .ft8-carte { grid-row: span 2; height: auto; min-height: 220px; }
}
@media (max-width: 640px) {
  .ft8-toile { height: 380px; }
  .ft8-cote { display: flex; }
  .ft8-carte { height: 200px; min-height: 0; }
  .ft8-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft8-stations li { grid-template-columns: 20px minmax(0, 1fr) 42px 60px 50px; font-size: 12px; padding: 5px 6px; }
}
@media (prefers-reduced-motion: reduce) { .ft8-led.vivant { animation: none; } }
