/*
 * Newtown Radio - Zine homepage styles (scaffold).
 * Mirrors the approved mockup (round 4). Tokens live in style.css.
 * Fonts: Anton (display), Archivo Black (show names), Archivo (body).
 */

/* ---------- base ---------- */
html { scroll-behavior: smooth; } /* nav About / Merch anchor jumps */
.nr-zine-page {
  margin: 0;
  background: var(--ink);
  color: #fff;
  font-family: 'Archivo', sans-serif;
  /* No bottom padding here on purpose (v0.2.8): .nr-zine-page is
     the <body> element itself in both templates, and bottom padding
     on <body> does not reliably extend the root scroller's
     scrollable overflow, so it bought no clearance at max scroll -
     the fixed player bar painted over the footer text on tall
     pages. The clearance now lives in the flow instead: see
     .nr-playerbar-spacer, the last in-flow element of both
     templates. */
}
.nr-zine-page a { color: var(--pink); }

/* ---------- ticker ---------- */
.nr-ticker {
  background: var(--blue);
  color: var(--ink);
  overflow: hidden;
  white-space: nowrap;
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 0;
}
/* The track is exactly two identical groups wide (see the
   templates) and the animation shifts it by -50%, so the loop
   seam is invisible (v0.2.11 - the old two-span track could run
   out of text and sit blank before jumping back). */
.nr-ticker-track {
  display: flex;
  width: max-content;
  animation: nr-ticker-scroll 45s linear infinite;
}
.nr-ticker-group { display: flex; flex: none; }
.nr-ticker-group span { flex: none; }
@keyframes nr-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- header / nav ---------- */
.nr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: var(--ink);
}
.nr-header-brand { display: flex; align-items: center; gap: 18px; min-width: 0; }
/* No .nr-header-address rule any more (v0.2.11): the address left
   the header entirely - it is in the ticker and the footer. */
.nr-wordmark-img {
  display: block;
  width: 220px;
  height: 100px;
  background: var(--pink);
  /* The mask points at the hand-drawn wordmark PNG in this folder
     (black lettering on transparent). Mask uses the alpha channel,
     so the lettering takes the pink background color. */
  -webkit-mask: url('wordmark.png') left center / contain no-repeat;
          mask: url('wordmark.png') left center / contain no-repeat;
}
.nr-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
}
.nr-nav a { color: #fff; text-decoration: none; }
.nr-nav a:hover { color: var(--blue); }
.nr-nav-icons { display: inline-flex; align-items: center; gap: 12px; margin-left: 6px; }
.nr-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  line-height: 0;
}
.nr-icon svg { width: 22px; height: 22px; display: block; }
.nr-nav a.nr-icon:hover { color: var(--blue); }

/* ---------- wall bands ---------- */
.nr-wall-band {
  /* The STO squiggle wall photo (assets/wall-squiggle.jpg, 1800px wide). */
  background: var(--ink) url('wall-squiggle.jpg') center / cover no-repeat;
}
.nr-wall-band-head { height: 154px; } /* mockup band, shrunk 30% per Mark's staging review */
.nr-wall-band-foot { height: 120px; }

/* ---------- main grid ---------- */
.nr-main { max-width: 1280px; margin: 0 auto; padding: 24px 20px 40px; }
.nr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch; /* tote bottom aligns with poster bottom */
}
.nr-side { display: flex; flex-direction: column; gap: 24px; }
.nr-tote { margin-top: auto; }

/* ---------- On Air Today poster ---------- */
.nr-poster {
  background: var(--paper);
  color: var(--ink);
  padding: 22px 24px;
}
.nr-poster-title {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  margin: 0;
  font-size: 40px;
}
.nr-poster-date { margin: 4px 0 16px; font-weight: 600; }
.nr-today-list { list-style: none; margin: 0; padding: 0; }
.nr-today-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  padding: 10px 0;
  border-top: 2px solid var(--ink);
}
.nr-today-time { color: var(--blue); font-weight: 700; min-width: 86px; }
.nr-today-name {
  font-family: 'Archivo Black', sans-serif;
  text-transform: uppercase;
  color: var(--pink);
  text-decoration: none;
}
a.nr-today-name:hover { text-decoration: underline; }
.nr-live-flag {
  background: var(--pink);
  color: var(--ink);
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: 12px;
  padding: 2px 8px;
}
.nr-genres { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.nr-genre {
  border: 1px solid var(--ink);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0 6px;
  line-height: 1.7;
}

/* ---------- video ---------- */
/* Ross Cooper's feedback (Nov 20, v0.2.25): the blue offset drop
   shadow is gone, and the player fills its quadrant of the main
   grid - the video stretches to fill the right column above the
   tote instead of floating as a 16:9 box at the top, which made
   it look off center next to the full-height schedule. On mobile
   (stacked layout) it goes back to a plain 16:9 box. */
.nr-video { flex: 1; display: flex; }
.nr-video-frame {
  position: relative;
  flex: 1;
  min-height: 300px;
  background: #000;
}
.nr-video-frame iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---------- tote ---------- */
/* Horizontal card (Mark's staging reviews): photo left at a fixed
   width, name / price / actions stacked on the right. Full width
   of the right column (v0.2.6, Mark: the box should extend right to
   align with the side of the video player above it - the earlier
   ~360px cap left dead space beside it). Sits at the bottom of the
   right column via margin-top: auto on .nr-tote (see main grid). */
.nr-tote {
  background: var(--paper);
  color: var(--ink);
  padding: 12px;
  display: flex;
  gap: 14px;
  align-items: stretch;
  width: 100%;
}
.nr-tote-stage {
  position: relative;
  flex: 0 0 150px;
  width: 150px;
  aspect-ratio: 4 / 5; /* Mark's tote photos and sketches are 4:5 (v0.2.11) */
}
/* (The v0.2.11 "Now with a pocket!" starburst was removed in
   v0.2.13 on Mark's call.) */
.nr-tote-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border: 2px solid var(--ink);
}
/* The display:flex above overrides the UA stylesheet's [hidden] rule,
   so without this both faces stack and their labels overlap. Honor
   the hidden attribute the flip script toggles. */
.nr-tote-face[hidden] { display: none; }
.nr-tote-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* No side labels on the tote faces (Mark, 2026-11-17). */
.nr-tote-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}
.nr-tote-name { font-family: 'Archivo Black', sans-serif; text-transform: uppercase; margin: 0; font-size: 16px; line-height: 1.25; }
.nr-tote-price { font-weight: 700; font-size: 18px; margin: 0; }
.nr-tote-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.nr-tote-buy {
  border: 2px solid var(--ink);
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  padding: 6px 14px;
  cursor: pointer;
}
.nr-tote-buy { background: var(--ink); color: var(--paper); }
/* Tote carousel chrome (v0.2.12): prev/next arrows ride the
   stage edges, dots sit in the meta column, and the incoming
   face fades in. */
.nr-tote-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.nr-tote-prev { left: 6px; }
.nr-tote-next { right: 6px; }
.nr-tote-dots { display: flex; gap: 7px; margin-top: 2px; }
.nr-tote-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper);
  cursor: pointer;
}
.nr-tote-dot.is-active { background: var(--ink); }
@keyframes nr-tote-in { from { opacity: 0; } to { opacity: 1; } }
.nr-tote-face-in { animation: nr-tote-in 0.35s ease; }

/* ---------- tote order modal ---------- */
/* display:flex on .nr-modal would override [hidden] the same way as
   the tote faces, so the hidden rule comes first and explicit. */
.nr-modal[hidden] { display: none; }
.nr-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.nr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 19, 7, 0.72);
}
.nr-modal-box {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--pink);
  padding: 22px 24px 24px;
  width: 100%;
  max-width: 400px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}
.nr-modal-x {
  position: absolute;
  top: 6px;
  right: 10px;
  background: transparent;
  border: 0;
  font-size: 26px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  padding: 4px;
}
.nr-modal-title {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  margin: 0 32px 6px 0;
  font-size: 24px;
}
.nr-modal-price { margin: 0 0 14px; font-weight: 600; }
.nr-modal-form { display: flex; flex-direction: column; gap: 10px; }
.nr-modal-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.nr-modal-form input,
.nr-modal-form textarea {
  border: 2px solid var(--ink);
  padding: 8px 10px;
  font: inherit;
  text-transform: none;
  letter-spacing: normal;
  background: #fff;
  color: var(--ink);
  width: 100%;
  box-sizing: border-box;
}
.nr-modal-submit {
  margin-top: 6px;
  background: var(--blue);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  padding: 9px 14px;
  opacity: 0.65;
  cursor: not-allowed;
}
.nr-modal-choices { display: flex; flex-direction: column; gap: 10px; }
.nr-modal-choice {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  box-shadow: 4px 4px 0 var(--pink);
  transition: transform 0.15s;
}
.nr-modal-choice:nth-child(even) { box-shadow: 4px 4px 0 var(--blue); }
.nr-modal-choice:hover { transform: translateX(4px); }
.nr-modal-choice-title {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: 17px;
  letter-spacing: 0.02em;
}
.nr-modal-choice-sub { font-size: 13px; font-weight: 600; }
.nr-modal-note { margin: 12px 0 0; font-size: 13px; }

/* ---------- section titles ---------- */
.nr-section-title {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: 34px;
  margin: 40px 0 14px;
  color: var(--pink);
}
.nr-about .nr-section-title { color: var(--blue); }

/* ---------- Recent Bangers (horizontal capsules, v0.2.18) ---------- */
.nr-banger-list { display: flex; flex-direction: column; gap: 14px; }
.nr-banger-capsule {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 12px 26px 12px 14px;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--pink);
  text-decoration: none;
  transition: transform 0.15s;
}
.nr-banger-capsule:hover { transform: translateX(6px) rotate(-0.4deg); }
.nr-banger-hit { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.nr-banger-capsule:nth-child(even) { box-shadow: 6px 6px 0 var(--blue); }
.nr-banger-badge {
  background: var(--ink);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.nr-banger-tower { height: 42px; width: auto; display: block; }
.nr-banger-tower-blue { display: none; }
.nr-banger-capsule:nth-child(even) .nr-banger-tower-pink { display: none; }
.nr-banger-capsule:nth-child(even) .nr-banger-tower-blue { display: block; }
.nr-banger-main { display: flex; flex-direction: column; min-width: 0; }
.nr-banger-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(15px, 2.2vw, 21px);
  text-transform: uppercase;
  line-height: 1.15;
}
.nr-banger-handle {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 3px;
  color: #D6336C;
  text-decoration: none;
}
.nr-banger-handle:hover { text-decoration: underline; }
.nr-banger-capsule:nth-child(even) .nr-banger-handle { color: var(--iw-blue); }
.nr-banger-play {
  margin-left: auto;
  font-family: 'Anton', sans-serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nr-banger-play::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 11px solid var(--ink);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}
@media (max-width: 820px) {
  .nr-banger-capsule { padding: 10px 16px 10px 10px; gap: 12px; border-radius: 26px; }
  .nr-banger-badge { width: 46px; height: 46px; }
  .nr-banger-tower { height: 34px; }
  .nr-banger-play { display: none; }
}

/* ---------- weekly schedule ---------- */
.nr-week-nav { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.nr-week-label { font-family: 'Anton', sans-serif; text-transform: uppercase; color: var(--blue); }
.nr-week-nav button {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  padding: 5px 12px;
  cursor: pointer;
}
.nr-week-nav button:disabled { opacity: 0.35; cursor: default; }
.nr-week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}
.nr-day {
  border: 2px solid #fff;
  padding: 10px;
  min-height: 120px;
}
.nr-day.is-today { border-color: var(--blue); background: rgba(143, 188, 221, 0.12); }
/* Day header toggle (v0.2.11): a real button so mobile users can
   tap a day to expand it. On desktop the list below it is always
   visible and the caret is hidden, so it reads as a plain header. */
.nr-day-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  background: none;
  border: 0;
  padding: 0;
  margin: 0 0 8px;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.nr-day-name { font-family: 'Anton', sans-serif; text-transform: uppercase; margin: 0; }
.nr-day-caret { display: none; }
.nr-day-list { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.nr-day-list li { margin-bottom: 8px; }
.nr-day-time { color: var(--blue); font-weight: 700; display: block; }
.nr-day-show { color: #fff; text-decoration: none; font-weight: 600; }
/* Every grid entry renders white, linked or not (Mark's staging
   review). The base .nr-zine-page a rule would otherwise paint links
   pink, so this needs the extra specificity; underline on hover only
   is what marks a link. Applies to the JS re-render too (same
   classes). */
.nr-day-list a.nr-day-show { color: #fff; text-decoration: none; }
.nr-day-list a.nr-day-show:hover { color: #fff; text-decoration: underline; }

/* ---------- Shows archive ---------- */
/* /shows/ in the same Zine chrome (template-shows-zine.php). Tiles
   are paper cards on the ink background; filtering is client-side.
   Hiding a filtered tile takes all three of: the [hidden]
   attribute, the !important guard below, and an inline style set
   by zine.js. v0.2.6 shipped with only the attribute plus a plain
   .nr-show-tile[hidden] { display: none } guard, and the tiles
   never hid (the result count updated, the grid did not): the
   guard's specificity (0,2,0 - one class + one attribute) LOSES
   to the tile's own display rule, .nr-zine-page a.nr-show-tile
   (0,2,1 - two classes + one element), whose display:block won.
   The same trap as the tote faces in v0.2.0, one level deeper:
   there the guard only had to beat the UA stylesheet, here it
   had to beat an author rule. The !important below plus the
   inline style make the hide un-losable. */
.nr-shows-title { margin-top: 0; }
.nr-shows-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 12px;
}
.nr-shows-search,
.nr-shows-genre {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--blue);
  font: inherit;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 0;
}
.nr-shows-search { flex: 1 1 240px; min-width: 0; }
.nr-shows-genre { flex: 0 1 230px; cursor: pointer; }
.nr-shows-search:focus,
.nr-shows-genre:focus { outline: 3px solid var(--pink); outline-offset: 1px; }
.nr-shows-surprise {
  background: var(--pink);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--blue);
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 10px 18px;
  cursor: pointer;
}
.nr-shows-surprise:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.nr-shows-count { color: var(--blue); font-weight: 700; margin: 0 0 16px; }
.nr-shows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}
.nr-zine-page a.nr-show-tile {
  display: block;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  border: 2px solid var(--ink);
}
.nr-show-tile[hidden] { display: none !important; }
.nr-zine-page a.nr-show-tile:hover { box-shadow: 8px 8px 0 var(--pink); }
.nr-show-tile-media {
  display: block;
  aspect-ratio: 660 / 450; /* the DJ collateral image spec */
  background: var(--ink);
  overflow: hidden;
}
.nr-show-tile-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* No featured image: initials on a solid brand color. Even tiles
   flip to mural blue so the grid keeps some zine variety. */
.nr-show-tile-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--pink);
  color: var(--ink);
  font-family: 'Archivo Black', sans-serif;
  font-size: 54px;
  text-transform: uppercase;
}
.nr-show-tile:nth-child(even) .nr-show-tile-fallback { background: var(--blue); }
.nr-show-tile-title {
  display: block;
  font-family: 'Archivo Black', sans-serif;
  text-transform: uppercase;
  font-size: 15px;
  line-height: 1.25;
  padding: 10px 12px 12px;
}
.nr-shows-empty {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 18px;
}
.nr-shows-empty[hidden] { display: none !important; }

/* ---------- About ---------- */
.nr-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  gap: 24px;
  align-items: stretch;
}
.nr-about-text { display: flex; flex-direction: column; grid-column: 1; grid-row: 1; }
/* International Waters card: white gallery-style card carrying the
   IW royal blue (--iw-blue, sampled from the tote proof art). Blue
   text straight on the dark page background would be unreadable, so
   the blue lives on white here: heading and links in royal blue, and
   the IW wave pattern itself runs across the bottom of the box.
   The card is a grid item in the left column's second row (the text
   row stretches), so its bottom aligns with the photo's bottom. On
   mobile it stacks after the photo (see the mobile query). */
.nr-iw-card {
  grid-column: 1;
  grid-row: 2;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid #e3e3e3;
  padding: 16px 18px;
  overflow: hidden; /* clips the wave band to the card's bottom edge */
}
.nr-iw-card h3 {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  color: var(--iw-blue);
  margin: 0 0 8px;
}
.nr-iw-card a { color: var(--iw-blue); text-decoration: underline; }
/* Wave band across the bottom of the card: negative margins pull it
   full-bleed over the card's side and bottom padding. */
.nr-iw-waves {
  height: 68px;
  margin: 14px -18px -16px;
  background: url('iw-waves.jpg') center / cover no-repeat;
}
.nr-about-photo { margin: 0; display: flex; flex-direction: column; grid-column: 2; grid-row: 1 / -1; }
.nr-about-photo img { flex: 1; object-fit: cover; width: 100%; min-height: 0; }
.nr-about-photo figcaption { color: var(--grey-pink); font-size: 13px; padding-top: 8px; }

/* ---------- footer ---------- */
.nr-footer {
  background: var(--pink);
  color: var(--ink);
  padding: 22px 20px 30px;
  text-align: center;
  font-weight: 600;
}
/* The footer text is pinned on the paragraph itself, not left to
   inheritance from .nr-footer. An inherited color loses to ANY
   rule from any stylesheet that targets the <p> directly, and on
   staging the shows archive's footer text was seen unreadable on
   its pink band while the homepage's identical footer rendered
   fine (the two templates' footer markup and this stylesheet are
   byte-identical, and every stylesheet the site serves loads on
   both pages - the inheritance hop was the one point where the
   rendering could silently diverge). Color, visibility and
   opacity are all set here, scoped to the zine pages, so the
   footer text renders ink-on-pink on both templates alike. */
.nr-zine-page .nr-footer p {
  color: var(--ink);
  visibility: visible;
  opacity: 1;
}

/* ---------- floating chat ---------- */
.nr-chat {
  position: fixed;
  right: 16px;
  bottom: 128px; /* floats above the fixed player ribbon */
  z-index: 250;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
/* Locked square + border-radius 50% + flex centering: BeTheme button
   styles were stretching this into an oval (Mark's staging review).
   Scoped to .nr-zine-page (v0.2.11) so the black outline and the
   ink-on-pink colors outrank theme button styles - Mark asked for
   a clear black outline so the bubble never bleeds into the other
   pink boxes it floats over. */
.nr-zine-page .nr-chat-button {
  width: 64px;
  height: 64px;
  min-width: 64px;
  max-width: 64px;
  min-height: 64px;
  max-height: 64px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-sizing: border-box;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--pink);
  color: var(--ink);
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
}
/* Chat popout panel (v0.2.10): the Discord #radio-chat channel
   embedded via WidgetBot, styled after the tote modal - paper
   box, 3px ink border, hard pink shadow, Anton title on a pink
   header band. The panel is display:flex (header / embed /
   footer in a column), which would override the UA [hidden]
   rule the toggle relies on, so the guard comes first and
   explicit - the same trap as the modal and the show tiles;
   zine.js also sets inline display as a second layer. The
   panel carries the width; the iframe fills it, so on mobile
   the panel takes most of the viewport width. */
.nr-chat-panel[hidden] { display: none !important; }
.nr-chat-panel {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--pink);
  width: min(370px, calc(100vw - 32px));
  box-sizing: border-box;
}
.nr-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--pink);
  border-bottom: 3px solid var(--ink);
  padding: 9px 8px 9px 14px;
}
.nr-chat-title {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0.02em;
}
.nr-chat-x {
  background: transparent;
  border: 0;
  font-size: 24px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  padding: 2px 6px;
  flex: none;
}
.nr-chat-frame {
  display: block;
  width: 100%;
  height: min(500px, calc(100vh - 180px));
  border: 0;
  background: #fff;
}
.nr-chat-foot {
  border-top: 2px solid var(--ink);
  padding: 8px 14px;
  font-size: 13px;
}
.nr-chat-foot a {
  color: var(--ink);
  font-weight: 700;
}

/* ---------- fixed bottom player ribbon ---------- */
/* Pink ribbon, always on screen (Mark's staging review). Since
   v0.2.6 the player is built in - a native <audio> element wired
   up in zine.js - after the Radio.co jQuery widget failed to
   inject its UI on these templates twice. The bar's height is
   pinned to the --nr-playerbar-h token (v0.2.8): its content
   already sums to exactly that (52px toggle + 8px top/bottom
   padding + 3px top border, border-box), so nothing renders
   differently, but the token is now the single source the footer
   clearance is computed from - see .nr-playerbar-spacer below. */
.nr-playerbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: var(--pink);
  border-top: 3px solid var(--ink);
  color: var(--ink);
  padding: 8px 16px;
  height: var(--nr-playerbar-h);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 14px;
}
.nr-playerbar audio { display: none; } /* element only carries the stream */
.nr-player-toggle {
  flex: none;
  width: 52px;
  height: 52px;
  padding: 0;
  box-sizing: border-box;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
/* Play state: a CSS triangle. Pause state: two bars drawn with a
   hard-stop gradient. zine.js toggles .is-playing on the button. */
.nr-player-icon-play {
  display: block;
  width: 0;
  height: 0;
  margin-left: 4px; /* optical centering of the triangle */
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--ink);
}
.nr-player-icon-pause {
  display: none;
  width: 16px;
  height: 18px;
  background: linear-gradient(to right,
    var(--ink) 0, var(--ink) 6px,
    transparent 6px, transparent 10px,
    var(--ink) 10px, var(--ink) 16px);
}
.nr-player-toggle.is-playing .nr-player-icon-play { display: none; }
.nr-player-toggle.is-playing .nr-player-icon-pause { display: block; }
.nr-player-nowplaying {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nr-player-volume-label {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.nr-player-volume { width: 110px; accent-color: var(--ink); }

/* In-flow clearance for the fixed bar (v0.2.8). Both templates
   end their flow with <footer class="nr-footer"> followed by
   this spacer as the last in-flow element. A block element's
   height always counts toward the document height, so at maximum
   scroll the footer's bottom edge stops one spacer-height above
   the bottom of the scrollport: the whole footer band, text
   included, sits above the fixed bar with --nr-playerbar-gap of
   the page's ink background showing between the band and the
   bar. This replaces the old padding-bottom: 112px on
   .nr-zine-page, which sits on the <body> element itself and
   did not extend the scrollable overflow - on tall pages the
   footer slid under the 71px bar and its text (22-46px into a
   ~76px band) was fully covered, while short pages, which never
   scroll the footer down to the bar, looked fine. */
.nr-playerbar-spacer {
  height: calc(var(--nr-playerbar-h) + var(--nr-playerbar-gap));
}

/* ---------- mobile ---------- */
@media (max-width: 820px) {
  .nr-grid,
  .nr-about-grid { grid-template-columns: 1fr; }
  .nr-week-grid { grid-template-columns: 1fr; }
  .nr-wall-band-head { height: 91px; } /* 130px shrunk 30%, same as desktop */
  .nr-wordmark-img { width: 150px; height: 68px; }
  /* Mobile header (Mark, 2026-11-17): the one-row header jammed
     the wordmark, address and nav links into each other. The
     address is gone from the header entirely; on mobile the nav
     gets its own row under the wordmark with room to wrap. */
  .nr-header { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 16px; }
  .nr-nav { flex-wrap: wrap; gap: 8px 16px; }
  /* Mobile schedule (Mark, 2026-11-17): days collapse to their
     headers - tap a day to expand it (accordion, today starts
     open) instead of an endless scroll of all seven days. */
  .nr-day { min-height: 0; }
  .nr-day-caret {
    display: block;
    flex: none;
    width: 10px;
    height: 10px;
    margin-right: 4px;
    border-right: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: rotate(45deg);
  }
  .nr-day.is-open .nr-day-caret { transform: rotate(225deg); }
  .nr-week-grid .nr-day-list { display: none; }
  .nr-week-grid .nr-day.is-open .nr-day-list { display: block; }
  .nr-tote-stage { flex-basis: 130px; width: 130px; }
  .nr-video { flex: none; }
  .nr-video-frame { flex: none; width: 100%; aspect-ratio: 16 / 9; min-height: 0; }
  .nr-player-volume { width: 64px; } /* keep the player bar compact */
  .nr-about-photo img { flex: none; } /* natural photo height on mobile */
  /* Mobile About order (Mark, 2026-11-17): About copy, then the
     studio photo, then the International Waters card. */
  .nr-about-grid { grid-template-rows: none; }
  .nr-about-text { grid-column: 1; grid-row: 1; }
  .nr-about-photo { grid-column: 1; grid-row: 2; }
  .nr-iw-card { grid-column: 1; grid-row: 3; }
  .nr-shows-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .nr-shows-search,
  .nr-shows-genre,
  .nr-shows-surprise { flex: 1 1 100%; }
  .nr-show-tile-fallback { font-size: 40px; }
  /* Mark has a separate list of mobile edits; apply them here on the
     real build rather than in the mockup. */
}

/* ---------- Friday radio party strip (v0.2.16) ---------- */
.nr-friday { display: flex; gap: 14px; margin-top: 44px; }
.nr-friday-intro {
  flex: 0 0 208px;
  background: var(--pink);
  color: var(--ink);
  border-radius: 18px;
  padding: 16px 18px;
}
.nr-friday-title {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: 27px;
  line-height: 1.05;
  margin: 0 0 10px;
}
.nr-friday-line { margin: 3px 0; font-weight: 700; text-transform: uppercase; font-size: 13px; }
.nr-friday-track {
  flex: 1 1 auto;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}
.nr-friday-card {
  flex: 0 0 188px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 18px;
  padding: 10px;
  text-decoration: none;
}
.nr-friday-media {
  display: block;
  width: 100%;
  aspect-ratio: 660 / 450;
  border-radius: 10px;
  background-color: var(--blue);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.nr-friday-card:nth-child(even) .nr-friday-media { background-color: var(--pink); }
.nr-friday-name { font-family: 'Archivo Black', sans-serif; text-transform: uppercase; font-size: 14px; }
a.nr-friday-card:hover .nr-friday-name { color: var(--pink); }
.nr-friday-date { font-size: 12px; font-weight: 700; text-transform: uppercase; }
@media (max-width: 820px) {
  .nr-friday { flex-direction: column; }
  .nr-friday-intro { flex-basis: auto; }
}

/* ---------- feedback (v0.2.16) ---------- */
.nr-feedback-blurb { max-width: 640px; }
.nr-feedback-form {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px 20px;
  position: relative;
  align-items: stretch;
}
.nr-feedback-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.nr-feedback-name { grid-column: 1; grid-row: 1; }
.nr-feedback-email { grid-column: 1; grid-row: 2; }
.nr-feedback-topic { grid-column: 1; grid-row: 3; }
.nr-feedback-side {
  grid-column: 2;
  grid-row: 1 / 4;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nr-feedback-field-wide { flex: 1; }
.nr-feedback-field-wide textarea { flex: 1; min-height: 118px; }
.nr-feedback-side .nr-feedback-submit { align-self: flex-end; }
@media (max-width: 820px) {
  .nr-feedback-form { grid-template-columns: 1fr; }
  .nr-feedback-name, .nr-feedback-email, .nr-feedback-topic, .nr-feedback-side { grid-column: auto; }
  .nr-feedback-name, .nr-feedback-email, .nr-feedback-topic { grid-row: auto; }
  .nr-feedback-side { grid-row: auto; }
}
.nr-feedback-form .nr-feedback-field input,
.nr-feedback-form .nr-feedback-field input[type="text"],
.nr-feedback-form .nr-feedback-field input[type="email"],
.nr-feedback-form .nr-feedback-field select,
.nr-feedback-form .nr-feedback-field textarea {
  font: inherit;
  font-size: 15px;
  text-transform: none;
  font-weight: 400;
  padding: 10px 12px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  width: 100%;
  box-sizing: border-box;
}
.nr-feedback-form .nr-feedback-field select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%231B1307' stroke-width='2.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 9px;
  padding-right: 42px;
  cursor: pointer;
}
.nr-feedback-submit {
  background: var(--pink);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: 15px;
  padding: 9px 24px;
  cursor: pointer;
}
.nr-feedback-thanks { font-weight: 700; color: var(--blue); }
.nr-feedback-error { font-weight: 700; color: var(--pink); }
.nr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
