/* ==========================================================================
   24-skins.css — FOUR SKINS

   Each one reads a single attribute the body carries and nothing else:
   `data-skin` for the page, `data-skin-mo` for anything in a window. No
   markup changes, no class is added to a card, no function moves. That is
   the point — a skin that needed the screens rebuilt would be a fork, and a
   fork drifts.

   WHAT A SKIN IS ALLOWED TO CHANGE
       geometry      corner radius, border weight, padding rhythm
       surfaces      panel fill, depth, how a card separates from the page
       type          family, weight, tracking, how numbers are set
       state         how LIVE, NEXT and FINISHED announce themselves

   WHAT IT MUST NOT CHANGE
       colour meaning  the theme still owns the palette. A skin works in the
                       theme's own colours so the 4.5:1 guard in
                       js/04b-contrast.js still holds every word it checked.
       layout          nothing moves column to column. A person who knows
                       where a button is still finds it there.
       size on a phone the type band in js/49-fontfloor.js has the last word.

   SPEAKER CARDS — the default — appears nowhere in this file on purpose.
   The app as it ships is the app as it ships.
   ========================================================================== */

/* ==========================================================================
   🎛 BROADCAST CONTROL — the gallery

   Built from what a vision mixer looks like: nothing is round, every panel
   is separated by a single hard rule rather than by shadow, numbers are
   tabular so a clock does not jitter as it counts, and red is reserved. On
   a mixer red means ON AIR and nothing else, so here it means live and
   nothing else.
   ========================================================================== */

body[data-skin="broadcast"] {
  --sk-radius: 0px;
  --sk-rule: 1px;
}

body[data-skin="broadcast"] .card,
body[data-skin="broadcast"] .module-card,
body[data-skin="broadcast"] .feed-item,
body[data-skin="broadcast"] .maint-feed-item,
body[data-skin="broadcast"] .l-card,
body[data-skin="broadcast"] .dash-sec,
body[data-skin="broadcast"] .landing-hdr,
body[data-skin="broadcast"] .roster-card {
  border-radius: 0 !important;
  box-shadow: none !important;
  border: var(--sk-rule) solid var(--c-border) !important;
  background: var(--navy2) !important;
}

body[data-skin="broadcast"] .btn {
  border-radius: 0 !important;
  text-transform: uppercase;
  letter-spacing: .6px;
  font-weight: 800;
}

/* The tracking rule down the left of a live card — a tally lamp. */
body[data-skin="broadcast"] .feed-item.is-live,
body[data-skin="broadcast"] .feed-item.live {
  border-left: 4px solid var(--red) !important;
}
body[data-skin="broadcast"] .feed-item.is-next,
body[data-skin="broadcast"] .feed-item.next {
  border-left: 4px solid var(--brand) !important;
}

/* A clock that jitters as it counts is a clock nobody trusts. */
body[data-skin="broadcast"] .c-t,
body[data-skin="broadcast"] .feed-date-pill,
body[data-skin="broadcast"] .ros-tf,
body[data-skin="broadcast"] .cd-num,
body[data-skin="broadcast"] td {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

body[data-skin="broadcast"] .section-bar-light,
body[data-skin="broadcast"] .section-bar-blue,
body[data-skin="broadcast"] .dash-sec-head {
  border-radius: 0 !important;
  letter-spacing: 1.2px;
}

/* Each tile gets a lamp strip along its top edge, the way a mixer labels a
   bus. The brand colour, because none of these is live. */
html body[data-skin="broadcast"] .l-card {
  border-top: 3px solid var(--brand) !important;
}
html body[data-skin="broadcast"] .dash-sec-title,
html body[data-skin="broadcast"] .lh-name {
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
}
html body[data-skin="broadcast"] .feed-date-pill {
  border-radius: 0 !important;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   📰 EDITORIAL — the printed programme

   The opposite decision at every turn: air instead of rules, a serif for
   anything that is a title, and colour spent once rather than everywhere.
   A card stops being a box and becomes a block of text with a hairline over
   it, which is how a programme separates one item from the next.
   ========================================================================== */

body[data-skin="editorial"] {
  --sk-serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
}

body[data-skin="editorial"] .card,
body[data-skin="editorial"] .module-card,
body[data-skin="editorial"] .feed-item,
body[data-skin="editorial"] .maint-feed-item,
body[data-skin="editorial"] .l-card,
body[data-skin="editorial"] .landing-hdr,
body[data-skin="editorial"] .roster-card {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-top: 1px solid var(--c-border) !important;
  border-radius: 0 !important;
  padding: 18px 20px 20px !important;
}

/* `html body[...]` and !important, because the headings on these screens
   are styled by id-scoped rules in css/03-chrome.css that a two-part
   selector loses to. The same fight css/07-modes.css records having had. */
html body[data-skin="editorial"] h1,
html body[data-skin="editorial"] h2,
html body[data-skin="editorial"] h3,
html body[data-skin="editorial"] .l-card h3,
html body[data-skin="editorial"] .dash-sec-title,
html body[data-skin="editorial"] .lh-name,
html body[data-skin="editorial"] .c-n,
html body[data-skin="editorial"] .sm-card-name,
html body[data-skin="editorial"] .tb-app-name {
  font-family: var(--sk-serif) !important;
  font-weight: 600 !important;
  letter-spacing: .2px !important;
  text-transform: none !important;
}

/* The section heads become a rule with small capitals over it. */
html body[data-skin="editorial"] .dash-sec-head {
  background: transparent !important;
  border-bottom: 1px solid var(--c-border) !important;
  border-radius: 0 !important;
}

/* The four tiles stop being boxes and become columns of a page. */
html body[data-skin="editorial"] .l-card {
  border-top: 2px solid var(--brand) !important;
  padding-top: 16px !important;
}

/* The heading bars become a line of small capitals over a rule, which is
   what a section heading is in print. */
body[data-skin="editorial"] .section-bar-light,
body[data-skin="editorial"] .section-bar-blue {
  background: transparent !important;
  color: var(--muted) !important;
  border-bottom: 1px solid var(--c-border);
  border-radius: 0 !important;
  padding-left: 0 !important;
  letter-spacing: 2px;
  font-size: 9.5pt;
}

body[data-skin="editorial"] .btn {
  border-radius: 2px !important;
  font-weight: 600;
  letter-spacing: .4px;
}

/* One accent a screen: only the live card is allowed to carry the brand. */
body[data-skin="editorial"] .feed-item.is-live,
body[data-skin="editorial"] .feed-item.live {
  border-left: 2px solid var(--brand) !important;
  padding-left: 18px !important;
}

/* ==========================================================================
   🪟 GLASS — depth

   The only skin that uses shadow as a structural tool rather than as
   decoration: panels sit ABOVE the page rather than being drawn on it, and
   the live one is lit from behind. Round geometry throughout, because a
   soft shadow under a hard corner reads as a mistake.

   backdrop-filter is behind @supports: without it the panels are simply a
   little more opaque, which still looks deliberate.
   ========================================================================== */

body[data-skin="glass"] .card,
body[data-skin="glass"] .module-card,
body[data-skin="glass"] .feed-item,
body[data-skin="glass"] .maint-feed-item,
body[data-skin="glass"] .l-card,
body[data-skin="glass"] .dash-sec,
body[data-skin="glass"] .landing-hdr,
body[data-skin="glass"] .roster-card {
  border-radius: 18px !important;
  border: 1px solid color-mix(in srgb, var(--white) 10%, transparent) !important;
  background: color-mix(in srgb, var(--navy2) 72%, transparent) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35) !important;
}

@supports (backdrop-filter: blur(1px)) {
  body[data-skin="glass"] .card,
  body[data-skin="glass"] .module-card,
  body[data-skin="glass"] .feed-item,
  body[data-skin="glass"] .maint-feed-item,
  body[data-skin="glass"] .l-card,
  body[data-skin="glass"] .dash-sec,
  body[data-skin="glass"] .landing-hdr,
  body[data-skin="glass"] .roster-card {
    backdrop-filter: blur(14px) saturate(130%);
    background: color-mix(in srgb, var(--navy2) 52%, transparent) !important;
  }
}

body[data-skin="glass"] .btn {
  border-radius: 12px !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
}

body[data-skin="glass"] .section-bar-light,
body[data-skin="glass"] .section-bar-blue,
body[data-skin="glass"] .dash-sec-head {
  border-radius: 10px !important;
}
html body[data-skin="glass"] .feed-date-pill { border-radius: 999px !important; }
html body[data-skin="glass"] .l-card:hover {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 40%, transparent),
              0 14px 40px rgba(0, 0, 0, .45) !important;
}

/* Lit from behind, rather than outlined. */
body[data-skin="glass"] .feed-item.is-live,
body[data-skin="glass"] .feed-item.live {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 55%, transparent),
              0 0 34px color-mix(in srgb, var(--brand) 28%, transparent),
              0 10px 30px rgba(0, 0, 0, .35) !important;
}

/* ==========================================================================
   🛰 MISSION — everything at once

   For the machine in the booth, where the question is "what is happening
   across all of it" rather than "tell me about this one". Card chrome is
   stripped to a rule, padding comes down hard, labels go to small capitals,
   and a state is carried by a SHAPE — a filled dot or a hollow one — rather
   than by a block of colour, so the screen stays quiet when nothing is
   wrong.

   The type band in js/49-fontfloor.js still has the last word on a phone,
   so this cannot shrink text below what is readable there.
   ========================================================================== */

body[data-skin="mission"] .card,
body[data-skin="mission"] .module-card,
body[data-skin="mission"] .feed-item,
body[data-skin="mission"] .maint-feed-item,
body[data-skin="mission"] .l-card,
body[data-skin="mission"] .landing-hdr,
body[data-skin="mission"] .roster-card {
  border-radius: 2px !important;
  box-shadow: none !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid color-mix(in srgb, var(--c-border) 70%, transparent) !important;
  padding: 7px 9px !important;
}

body[data-skin="mission"] .dash-sec {
  border-radius: 2px !important;
  box-shadow: none !important;
  border: 1px solid var(--c-border) !important;
}

body[data-skin="mission"] .section-bar-light,
body[data-skin="mission"] .section-bar-blue {
  border-radius: 0 !important;
  padding: 3px 7px !important;
  letter-spacing: 1.4px;
  font-size: 8.5pt;
}

body[data-skin="mission"] .btn {
  border-radius: 2px !important;
  padding: 4px 9px !important;
  letter-spacing: .5px;
  text-transform: uppercase;
}

html body[data-skin="mission"] .l-card {
  border-left: 2px solid var(--brand) !important;
  padding: 9px 11px !important;
}
html body[data-skin="mission"] .dash-sec-title,
html body[data-skin="mission"] .lh-name {
  font-size: 9.5pt !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
}
html body[data-skin="mission"] .feed-date-pill {
  border-radius: 1px !important;
  padding: 1px 5px !important;
}

body[data-skin="mission"] table td,
body[data-skin="mission"] table th {
  padding: 3px 6px !important;
  font-variant-numeric: tabular-nums;
}

/* A state is a shape here, not a colour block. */
body[data-skin="mission"] .feed-item.is-live::before,
body[data-skin="mission"] .feed-item.live::before {
  content: '● ';
  color: var(--red);
  font-size: 11px;
}
body[data-skin="mission"] .feed-item.is-next::before,
body[data-skin="mission"] .feed-item.next::before {
  content: '○ ';
  color: var(--brand);
  font-size: 11px;
}

/* ==========================================================================
   DIALOGS WEAR THEIR OWN

   A window sits OVER whichever screen is open, so Options can be skinned
   separately from the page behind it. data-skin-mo is what says so, and
   these rules repeat the same four looks inside #mo only.
   ========================================================================== */

body[data-skin-mo="broadcast"] #mo .modal-content { border-radius: 0 !important; }
body[data-skin-mo="broadcast"] #mo .btn { border-radius: 0 !important; text-transform: uppercase; }

body[data-skin-mo="editorial"] #mo .modal-content { border-radius: 2px !important; }
body[data-skin-mo="editorial"] #mo h2,
body[data-skin-mo="editorial"] #mo h3,
body[data-skin-mo="editorial"] #mo #mh {
  font-family: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  font-weight: 600;
}

body[data-skin-mo="glass"] #mo .modal-content {
  border-radius: 20px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5) !important;
}
@supports (backdrop-filter: blur(1px)) {
  body[data-skin-mo="glass"] #mo .modal-content { backdrop-filter: blur(18px) saturate(130%); }
}
body[data-skin-mo="glass"] #mo .btn { border-radius: 12px !important; }

body[data-skin-mo="mission"] #mo .modal-content { border-radius: 2px !important; }
body[data-skin-mo="mission"] #mo .btn { border-radius: 2px !important; padding: 4px 9px !important; }
body[data-skin-mo="mission"] #mo table td,
body[data-skin-mo="mission"] #mo table th { padding: 3px 6px !important; }

/* ==========================================================================
   THE PICKERS, on the Format, Colour & Layout screen
   ========================================================================== */

.sk-intro { font-size: 10.5px; line-height: 1.6; color: var(--muted); margin: 0 0 12px; }

.sk-rows { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; }

.sk-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--c-border) 50%, transparent);
}
.sk-row:last-child { border-bottom: none; }

.sk-row-text { min-width: 0; }
.sk-row-name { display: block; font-size: 11.5px; font-weight: 700; }
.sk-row-note { display: block; font-size: 9.5px; color: var(--muted); margin-top: 1px; }

.sk-select {
  flex: 0 0 auto; min-width: 190px;
  padding: 7px 9px; font: inherit; font-size: 11px;
  border-radius: 6px; border: 1px solid var(--c-border);
  background: var(--inp-bg); color: var(--inp-text);
}

.sk-legend { list-style: none; margin: 0 0 10px; padding: 0; }
.sk-leg { padding: 6px 0; border-top: 1px solid color-mix(in srgb, var(--c-border) 40%, transparent); }
.sk-leg-name { display: block; font-size: 10.5px; font-weight: 800; }
.sk-leg-blurb { display: block; font-size: 10px; color: var(--muted); line-height: 1.55; margin-top: 1px; }

.sk-foot { font-size: 9.5px; color: var(--muted); margin: 0; }

@media screen and (max-width: 640px) {
  .sk-row { flex-direction: column; align-items: stretch; gap: 6px; }
  .sk-select { width: 100%; min-width: 0; }
}

/* On paper, no skin. A filed document looks like the document. */
@media print {
  body[data-skin] .card, body[data-skin] .module-card, body[data-skin] .feed-item {
    background: none !important; box-shadow: none !important; backdrop-filter: none !important;
  }
  .sk-wrap { display: none !important; }
}
