/* F4IOZ site — « Les concours radioamateurs » (tuto-concours.js): the club's clock, the calendar, the exchange, the locator's
   three pieces, the score's table and calculator, the log to read, the situations, the order. Only .co-… classes (and
   the « Apprendre » cards, as the CW documentary draws them); the site's colours, light and dark. */

.co-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-bottom: 12px; }
.co-carte, .co-cartes .cw-carte { padding: 10px 12px 4px; border-radius: 14px; background: linear-gradient(150deg, color-mix(in srgb, var(--tu-or) 9%, var(--panel-2)), var(--panel-2)); border: 1px solid var(--border-strong); border-top: 4px solid var(--tu-or); }
.co-cartes .cw-carte:nth-child(3n+2) { border-top-color: var(--tu-ciel); } .co-cartes .cw-carte:nth-child(3n) { border-top-color: var(--tu-vert); }
.co-cartes .cw-carte h3 { margin: 0 0 4px; font-size: 15px; }
.co-cartes .cw-carte p, .co-cartes .cw-carte li { margin: 0 0 8px; font-size: 13.5px; line-height: 1.45; }
.co-cartes .cw-carte ul { margin: 0 0 8px; padding-left: 18px; }
.tu-apprendre .cw-loin { margin: 6px 0 12px; padding: 8px 12px; border-radius: 14px; border: 1px dashed var(--border-strong); background: var(--panel); }
.tu-apprendre .cw-loin summary { cursor: pointer; font-weight: 800; color: var(--tu-violet); }
.tu-apprendre .cw-loin li { font-size: 13px; line-height: 1.5; margin-bottom: 4px; }

.co-panneau { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(150deg, color-mix(in srgb, var(--tu-ciel) 9%, var(--panel-2)), var(--panel-2)); border: 1px solid var(--border-strong); }
.co-compte { margin: 0; color: var(--tu-or); font-size: 13px; }

/* The club: the clock in UTC and a word. */
.co-club { flex-direction: row; align-items: center; gap: 14px; background: linear-gradient(135deg, #14213D, #0A1326); color: #E8EEF6; border-color: #2A3B63; }
.co-horloge { display: flex; flex-direction: column; align-items: center; padding: 6px 14px; border-radius: 12px; background: #050B16; border: 2px solid var(--tu-rose); box-shadow: 0 0 18px color-mix(in srgb, var(--tu-rose) 35%, transparent); }
.co-horloge small { color: var(--tu-rose); font-weight: 800; letter-spacing: .2em; font-size: 11px; }
.co-horloge b { font-size: 32px; color: #FFE08A; letter-spacing: .06em; }
.co-club-mot { margin: 0; font-size: 13px; line-height: 1.45; color: #C9D6EC; }

/* The calendar. */
.co-cal-titre { margin: 0; }
.co-grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; max-width: 420px; }
.co-jour-nom { text-align: center; font-size: 12px; font-weight: 800; color: var(--text-dim); text-transform: uppercase; }
.co-jour { padding: 8px 0; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--panel); color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.co-jour.co-we { background: color-mix(in srgb, var(--tu-ciel) 14%, var(--panel)); }
.co-jour:hover, .co-jour:focus-visible { outline: 2px solid var(--tu-or); }
.co-jour.co-entier { background: color-mix(in srgb, var(--tu-vert) 24%, var(--panel)); border-color: var(--tu-vert); }
.co-jour.co-bon { background: linear-gradient(135deg, var(--tu-or), var(--tu-rose)); color: #0B1220; border-color: transparent; animation: co-pop .5s cubic-bezier(.3, 1.8, .6, 1); }
@keyframes co-pop { from { transform: scale(.8); } to { transform: none; } }
.co-heures { gap: 6px; }
.co-frise { height: 26px; border-radius: 13px; background: linear-gradient(90deg, var(--panel) 0 25%, color-mix(in srgb, var(--tu-or) 55%, var(--panel)) 25% 45.8%, var(--panel) 45.8%); border: 1px solid var(--border-strong); position: relative; }
.co-frise span { position: absolute; left: 25%; width: 20.8%; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; font: 800 12px ui-monospace, monospace; color: #0B1220; }
.co-ligne { margin: 0; font-size: 14px; }

/* The exchange. */
.co-mon { margin: 0; font-weight: 800; }
.co-sit { margin: 0; font-size: 15px; line-height: 1.45; }
.co-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 4px; }
.co-form label { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; font-weight: 700; color: var(--text-dim); }
.co-form input, .co-simu-form input, .co-simu-form textarea { padding: 8px 10px; border-radius: 10px; border: 2px solid var(--border-strong); background: var(--panel); color: inherit; font-size: 16px; }
.co-form input:focus-visible, .co-simu-form input:focus-visible, .co-simu-form textarea:focus-visible { outline: 3px solid var(--tu-or); outline-offset: 1px; }
.co-fois { align-self: flex-end; padding-bottom: 8px; font-size: 22px; font-weight: 800; color: var(--tu-or); }
.co-entendu { margin: 0; padding: 10px 12px; border-radius: 12px; background: #0E1626; color: #FFE08A; font-size: 15px; line-height: 1.6; letter-spacing: .01em; }

/* The locator and its squares. */
.co-loc { display: flex; justify-content: center; gap: 8px; }
.co-seg { padding: 10px 20px; border-radius: 14px; border: 3px solid var(--c, var(--tu-or)); background: color-mix(in srgb, var(--c, var(--tu-or)) 18%, var(--panel)); color: inherit; cursor: pointer; font-size: 30px; }
.co-s1 { --c: var(--tu-bleu); } .co-s2 { --c: var(--tu-orange); } .co-s3 { --c: var(--tu-vert); }
.co-seg[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 45%, var(--panel)); transform: translateY(-3px); }
.co-seg:focus-visible { outline: 3px solid var(--tu-or); outline-offset: 2px; }
.co-explique { margin: 0; min-height: 3em; padding: 8px 12px; border-left: 5px solid var(--c, var(--border-strong)); border-radius: 8px; background: var(--panel); font-size: 14.5px; line-height: 1.45; }
.co-explique.co-s1 { --c: var(--tu-bleu); } .co-explique.co-s2 { --c: var(--tu-orange); } .co-explique.co-s3 { --c: var(--tu-vert); }
.co-puces { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.co-puces li { padding: 6px 12px; border-radius: 999px; border: 2px solid var(--border-strong); background: var(--panel); font-size: 15px; font-weight: 700; }
.co-puces li.co-colore { border-color: hsl(calc(var(--c) * 67), 70%, 55%); background: hsl(calc(var(--c) * 67), 70%, 55%, .22); }

/* The score. */
.co-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.co-table caption { text-align: left; font-weight: 800; padding-bottom: 6px; }
.co-table th { text-align: left; font-size: 12px; color: var(--text-dim); text-transform: uppercase; padding: 4px 8px; border-bottom: 2px solid var(--border-strong); }
.co-table td { padding: 5px 8px; border-bottom: 1px solid var(--border); }
.co-simu-form { display: flex; flex-direction: column; gap: 8px; }
.co-simu-form label { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; font-weight: 700; color: var(--text-dim); }
.co-simu-form textarea { resize: vertical; }
.co-simu-form button { align-self: flex-start; }
.co-simu-res ul { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.5; }
.co-total { margin: 6px 0 0; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--tu-vert) 14%, var(--panel)); }
.co-ko { color: var(--tu-rouge); }
.co-aide { margin: 0; font-size: 12.5px; }

/* The log to read. */
.co-bandeau { margin: 0; padding: 6px 10px; border-radius: 10px; background: color-mix(in srgb, var(--tu-or) 14%, var(--panel)); font-size: 13px; }
.co-logt tbody tr { cursor: pointer; }
.co-logt tbody tr:hover, .co-logt tbody tr:focus-visible { background: color-mix(in srgb, var(--tu-or) 14%, transparent); outline: none; }
.co-logt tbody tr:focus-visible { box-shadow: inset 0 0 0 2px var(--tu-or); }
.co-logt tbody tr.co-choisie { background: color-mix(in srgb, var(--tu-rose) 24%, transparent); box-shadow: inset 5px 0 0 var(--tu-rose); }
.co-logt tbody tr.co-defaut { background: color-mix(in srgb, var(--tu-rouge) 20%, transparent); box-shadow: inset 5px 0 0 var(--tu-rouge); }
.co-defauts { margin: 6px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.5; }

/* Allowed or forbidden, the order. */
.co-situation, .co-regles .co-phrase { margin: 0; padding: 10px 14px; border-left: 6px solid var(--tu-violet); border-radius: 8px; background: var(--panel); font-size: 18px; font-weight: 700; line-height: 1.4; }
.co-ordre { margin: 0; padding-left: 0; list-style: none; counter-reset: etape; display: flex; flex-direction: column; gap: 6px; }
.co-etape { counter-increment: etape; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--tu-vert) 16%, var(--panel)); border-left: 5px solid var(--tu-vert); font-size: 14px; }
.co-etape::before { content: counter(etape) ". "; font-weight: 800; color: var(--tu-vert); }

@media (prefers-reduced-motion: reduce) { .co-jour.co-bon { animation: none; } }
@media (max-width: 859px) { .co-horloge b { font-size: 26px; } .co-club { flex-direction: column; align-items: flex-start; } }

/* The animated explanations (explique-concours.js): the station's own square, outlined. */
.ex-lecteur .co-ex-ici { stroke: var(--ex-c0); stroke-width: 2.5; stroke-dasharray: 6 4; }
/* In this episode's levels, the picture takes the scene's whole width (its words are small), the caption under it, scrolling in its own frame. */
@media (min-width: 860px) {
  .tu-app[data-tuto="tconcours"] .tu-scene > .ex-lecteur .ex-cadre { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .tu-app[data-tuto="tconcours"] .tu-scene > .ex-lecteur .ex-cote { max-height: 128px; }
  .tu-app[data-tuto="tconcours"] .tu-scene > .ex-lecteur .ex-titre { font-size: 16px; }
  .tu-app[data-tuto="tconcours"] .tu-scene > .ex-lecteur .ex-legende { font-size: 14px; }
}
