@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("fonts/chakra-petch-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("fonts/chakra-petch-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("fonts/chakra-petch-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }


.page { margin: 0; background: var(--bg-0); color: var(--tx); font-family: var(--font-text); }
.is-hidden { display: none !important; }

/* The frame fills the window, whatever its shape (the sheet sizes it by container queries). */
.page .mz-page { position: fixed; inset: 0; min-height: 0; }
.page .mz-page__in { display: flex; flex-direction: column; padding-bottom: calc(var(--sy) * .6); }
.page .mz-page__body { flex: 1 1 0; min-height: 0; }
.page .mz-page__head { flex: none; min-width: 0; }
.page .mz-page__head .m-title { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.page .mz-page__head .clock { flex: none; }
/* A panel holds one scrolling column; the neon frame and its moving mark stay still. */
.page .mz-panel { grid-template-rows: minmax(0, 1fr); align-content: stretch; }
.pg-col { position: relative; display: grid; align-content: start; gap: 10px; min-width: 0; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.pg-col::-webkit-scrollbar { display: none; }
.page .mz-panel .pg-col { grid-auto-rows: max-content; }
/* The footer sits in the flow below the panels: its height is never overlapped. */
.page .mz-pfoot { position: static; flex: none; align-items: center; min-width: 0; margin-top: calc(var(--sy) * .5); }
.page .mz-pfoot > * { min-width: 0; }
.pg-phrase { margin: 0; font-family: var(--font-data); font-size: inherit; color: var(--tx-mu); overflow-wrap: anywhere; }
.pg-phrase:empty { display: none; }
.pg-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.m-mentions a, .mentions a { color: inherit; }
.pg-nav a:focus-visible, .m-mentions a:focus-visible, button.seg__item:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* Rows: sizes follow the height of the frame (TV and desktop), the sheet gives the phone sizes. */
.mz-page .mrow { grid-template-columns: clamp(52px, 8cqh, 120px) minmax(0, 1fr) auto; gap: clamp(12px, 1.8cqh, 24px); min-height: clamp(56px, 8cqh, 84px); }
.mz-page .mrow__time { font-size: clamp(14px, 2.2cqh, 26px); }
.mz-page .mrow__a { font-size: clamp(17px, 2.6cqh, 30px); }
.mz-page .mrow__t { font-size: clamp(14px, 2cqh, 24px); }
.mz-page .mrow { padding-inline: 8px; }
.mz-page .mrow--onair { margin: 0; }
.mz-page .mrow--played .mrow__time { color: var(--tx-mu); }
.mz-page .mrow:focus-visible { outline: var(--rz-focus, 3px) solid var(--acc); outline-offset: -2px; background: var(--tx); color: var(--bg-0); }
.mz-page .mrow:focus-visible .mrow__a, .mz-page .mrow:focus-visible .mrow__t, .mz-page .mrow:focus-visible .mrow__time, .mz-page .mrow:focus-visible .pg-why { color: var(--bg-0); }
.mz-page .mrow:focus-visible .tag { border-color: var(--bg-0); color: var(--bg-0); }
.pg-why { display: block; font-size: clamp(11px, 1.7cqh, 18px); color: var(--tx-mu); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-prog { margin: 0 0 8px; }
.pg-fixed { padding-top: 4px; }
.mz-page .divider { min-height: 0; padding: 6px 0; }
.daytabs { position: sticky; top: 0; z-index: 1; display: flex; flex-wrap: wrap; gap: 0; background: var(--bg-0); border-bottom: var(--stroke) solid var(--line); }
.daytab { appearance: none; background: transparent; border: 0; border-bottom: 3px solid transparent; cursor: pointer; padding: 10px 14px 8px; font-family: var(--font-display); font-weight: 700; font-size: clamp(13px, 2cqh, 22px); letter-spacing: .04em; text-transform: uppercase; color: var(--tx-mu); }
.daytab.is-active { color: var(--tx); border-bottom-color: var(--acc); }
.daytab:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; }
.daytabs .pg-today { margin-inline-start: auto; align-self: center; }
.pg-archive:empty { display: none; }
.mz-page .mrow:target, .mz-page .mrow.is-target { outline: 2px solid var(--acc); outline-offset: -2px; }
.pg-tabs { display: none; flex: none; }
button.seg__item { appearance: none; background: transparent; border: 0; cursor: pointer; font-family: var(--font-display); color: var(--tx-mu); }
button.seg__item.is-active { background: var(--tx); color: var(--bg-0); }

/* Now: the card lives in the panel, without a plate of its own. */
.mz-page .now-card { background: transparent; padding: 0; }
.mz-page .now-card__a, .mz-page .now-card__t { overflow-wrap: anywhere; }
.now-card.is-off .now-card__a, .now-card.is-off .now-card__t { color: var(--tx-mu); text-shadow: none; }
.mz-page .now-card .btn { min-height: 44px; }
.now-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.now-card__actions .btn:focus-visible, .mrow__yt:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.now-card__fb { min-height: 1.4em; }
.now-card__fb:empty { visibility: hidden; }
.mrow__yt { align-self: center; font-family: var(--font-data); font-size: clamp(11px, 1.7cqh, 16px); letter-spacing: .06em; text-transform: uppercase; color: var(--acc); text-decoration: underline; text-underline-offset: 3px; }

/* About. */
.pg-para { margin: 0 0 16px; }
.pg-slogan { margin: 0; }
.mz-legal { margin-top: 12px; }
.mz-legal__list a, .pg-credit { overflow-wrap: anywhere; }
.pg-credit { color: inherit; }
.pg-credit:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* Front desk. */
.fd-form { display: grid; gap: 14px; max-width: 640px; }
.fd-field { display: grid; gap: 6px; }
.fd-label { font-family: var(--font-data); font-size: var(--fs-label); letter-spacing: .06em; text-transform: uppercase; color: var(--tx-mu); }
.fd-input { box-sizing: border-box; width: 100%; min-height: 44px; padding: 8px 10px; border: var(--stroke) solid var(--line); border-radius: 0; background: var(--bg-1); color: var(--tx); font-family: var(--font-text); font-size: 16px; }
.fd-input--text { resize: vertical; min-height: 140px; line-height: 1.4; }
.fd-input:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; border-color: var(--tx); }
.fd-trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.fd-actions .btn { min-height: 44px; }
.fd-status { margin: 0; min-height: 1.4em; overflow-wrap: anywhere; }
.fd-status:empty { visibility: hidden; }
.fd-status.is-error { color: var(--sig-bad); }

/* Logo of the page heads: the K1 of the loading screen, lit once (2026-10-19), reduced to --page-logo-zoom
   (about 110 px high) and further on narrow screens, so that the title and the clock keep their room. */
.page { --page-logo-zoom: .46; }
.js-logo .mlogo { zoom: var(--page-logo-zoom); }
.page .mz-page__head { align-items: center; }
/* The logo leads back to the antenna (a link since 2026-10-18): no link colour, the accent outline on focus. */
a.js-logo { color: inherit; text-decoration: none; }
a.js-logo:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
@media (max-width: 640px) { .page { --page-logo-zoom: .36; } }
@media (max-width: 420px) { .page { --page-logo-zoom: .3; } }

/* Narrow screens (the same breakpoint as WIDE_QUERY in pages/programme.ts): one column, tabs on the Programme. */
@media (max-width: 760px) {
  .page .mz-page__body { grid-template-columns: minmax(0, 1fr); }
  .page .mz-page__body--1 { grid-template-rows: minmax(0, 1fr); }
  .page .mz-page__body:not(.mz-page__body--1) { grid-template-rows: none; grid-auto-rows: minmax(0, auto); }
  .page.page--now .mz-page__body:not(.mz-page__body--1) { grid-template-rows: max-content minmax(0, 1fr); }
  /* The card never scrolls on its own on a phone: its panel is as tall as the card (copy and share buttons included). */
  .page--now .mz-page__body > .mz-panel:first-child .pg-col { overflow: visible; }
  .pg-tabs { display: flex; margin-bottom: calc(var(--sy) * .5); }
  .page--programme .mz-page__body { grid-template-rows: minmax(0, 1fr); }
  #pg-body[data-tab="coming"] #panel-played, #pg-body[data-tab="played"] #panel-coming { display: none; }
  .page .mz-page { --sx: 14px; --sy: 10px; }
  .page .mz-page__head { flex-wrap: wrap; row-gap: 4px; }
  .page .mz-page__head .m-title { order: 3; flex: 1 0 100%; font-size: 18px; }
  .mz-page .pg-slogan { font-size: clamp(22px, 8cqw, 40px); }
  .pg-tabs .seg__item { min-height: 40px; }
  .daytab { padding: 8px 10px 6px; }
  .page .mz-pfoot { gap: 6px 12px; font-size: 11px; }
  .page .mz-pfoot .btn { min-height: 30px; padding-inline: 10px; }
  .page .mz-deco { display: none; }
}

/* Week page as a magazine grid (atelier of 2026-11-01): small type on purpose, the whole week at a glance. */
.pg-semaine { --pg-semaine-fs: 10.5px; --pg-semaine-col: 168px; --pg-semaine-gap: 10px; display: grid; grid-template-columns: repeat(7, minmax(var(--pg-semaine-col), 1fr)); gap: var(--pg-semaine-gap); overflow-x: auto; scrollbar-width: thin; }
.pg-jour { min-width: 0; }
.pg-jour__titre { margin: 0; padding: 4px 0 2px; background: var(--bg-0); font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .04em; color: var(--tx); }
.pg-jour__compte, .pg-jour__vide { margin: 0 0 6px; font-family: var(--font-data); font-size: var(--pg-semaine-fs); color: var(--tx-mu); }
.pg-passages { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pg-passage { display: grid; padding: 3px 0; border-bottom: 1px solid var(--line); font-size: var(--pg-semaine-fs); line-height: 1.3; }
.pg-passage__artiste { font-weight: 600; color: var(--tx); text-decoration: none; overflow-wrap: anywhere; }
.pg-passage__titre { color: var(--tx-mu); text-decoration: none; overflow-wrap: anywhere; }
a.pg-passage__artiste:hover, a.pg-passage__titre:hover { text-decoration: underline; }
a.pg-passage__artiste:focus-visible, a.pg-passage__titre:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
.pg-passage__neuf { justify-self: start; margin-top: 2px; padding: 0 4px; background: var(--acc); color: var(--bg-0); font-family: var(--font-data); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
