/* Harman Radio shared tokens and base styles (site + studio).
   Station red from the live podcast feed.cfg; phulkari marigold as the second thread colour. */
:root {
  --ink: #FBF6F1; --panel: #FFFFFF; --text: #24161A; --muted: #6E5A5E; --line: #E9DCD6;
  --red: #C0392B; --red-ink: #FFFFFF; --marigold: #B86E00; --live: #C0392B;
  --wash: rgba(192, 57, 43, .08); --ok: #2F7D4F; --warn: #A15C00; --err: #B3261E;
  --font-display: "Baloo Paaji 2", "Noto Sans Gurmukhi", system-ui, sans-serif;
  --font-body: "Noto Sans", "Noto Sans Gurmukhi", system-ui, sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --step-0: 1rem; --step-1: 1.2rem; --step-2: 1.5rem; --step-3: 2.1rem; --step-4: clamp(2rem, 6vw, 3.4rem);
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #160E12; --panel: #22161B; --text: #F6ECE6; --muted: #B49EA2; --line: #3A2930;
    --red: #E2574A; --red-ink: #1A0C0F; --marigold: #F2B14C; --live: #FF6B5C; --wash: rgba(226, 87, 74, .12);
    --ok: #6CC58F; --warn: #F2B14C; --err: #FF8A80;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #160E12; --panel: #22161B; --text: #F6ECE6; --muted: #B49EA2; --line: #3A2930;
  --red: #E2574A; --red-ink: #1A0C0F; --marigold: #F2B14C; --live: #FF6B5C; --wash: rgba(226, 87, 74, .12);
  --ok: #6CC58F; --warn: #F2B14C; --err: #FF8A80;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
/* Focus never hides under the sticky header or the mini player (WCAG 2.4.11). */
html { scroll-padding-top: 84px; scroll-padding-bottom: 96px; }
/* Skip to the page's content (WCAG 2.4.1): the first thing a keyboard reaches. */
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 14px; border-radius: 10px; background: var(--text); color: var(--ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 10px; }
/* Listener site (body.site): every control at least 44 × 44 px to tap (BBC, Apple; WCAG 2.5.5).
   The studio is a desktop app and keeps its denser controls. */
body.site .brand, body.site nav.main a, body.site .theme-btn, body.site .install-btn, body.site .btn,
body.site .block-head > a, body.site footer.site a { min-height: 44px; display: inline-flex; align-items: center; }
body.site .btn { justify-content: center; }
body.site button:not(.skip) { min-height: 44px; min-width: 44px; }
/* Read by screen readers, not shown. */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Gurmukhi reads better with a little more line height. */
:lang(pa) { line-height: 1.7; }
/* Less movement for people who ask for it (WCAG 2.3.3, 2.2.2). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
body { background: var(--ink); color: var(--text); font: 400 var(--step-0)/1.55 var(--font-body); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 16px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; text-wrap: balance; }
.label { font: 500 .72rem/1 var(--font-data); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.time { font-family: var(--font-data); font-variant-numeric: tabular-nums; }
.phulkari {
  height: 10px; opacity: .9;
  background:
    linear-gradient(135deg, var(--marigold) 25%, transparent 25%) -6px 0 / 12px 10px,
    linear-gradient(225deg, var(--marigold) 25%, transparent 25%) -6px 0 / 12px 10px,
    linear-gradient(315deg, var(--red) 25%, transparent 25%) 0 0 / 12px 10px,
    linear-gradient(45deg, var(--red) 25%, transparent 25%) 0 0 / 12px 10px;
}
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--ink) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; padding-block: 10px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand b { font: 800 1.35rem/1 var(--font-display); color: var(--red); }
.brand span { font: 600 .95rem/1 var(--font-display); color: var(--muted); }
nav.main { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
nav.main a { text-decoration: none; padding: 6px 10px; border-radius: 999px; font-weight: 500; font-size: .92rem; color: var(--muted); }
nav.main a[aria-current="page"], nav.main a:hover { color: var(--text); background: var(--wash); }
.theme-btn { border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 999px; padding: 6px 10px; cursor: pointer; font: inherit; font-size: .85rem; }
/* Install app: shown only when the browser can install the site (or on iPhone, with a tip) */
.install-btn { border: 1px solid var(--red); background: var(--red); color: var(--red-ink); border-radius: 999px; padding: 6px 12px; cursor: pointer; font: 600 .85rem/1 var(--font-body); white-space: nowrap; }
.install-btn[hidden] { display: none; }
.install-tip { position: absolute; z-index: 50; max-width: 260px; padding: 10px 12px; border-radius: 12px; background: var(--text); color: var(--ink); font-size: .88rem; box-shadow: 0 12px 30px -12px rgba(0,0,0,.5); }
.avatar { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--panel); display: grid; place-items: center; font: 700 .95rem/1 var(--font-display); color: #fff; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 600 .92rem/1.1 var(--font-body); cursor: pointer; }
.btn.primary { background: var(--red); color: var(--red-ink); border-color: var(--red); }
.btn.ghost { background: transparent; }
.btn.small { padding: 6px 12px; font-size: .85rem; }
.btn:disabled { opacity: .55; cursor: default; }
footer.site { border-top: 1px solid var(--line); padding-block: 22px 32px; color: var(--muted); font-size: .88rem; }
footer.site .wrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
/* Phones: the menu goes on its own row under the brand, scrolling sideways if it must. */
@media (max-width: 640px) {
  .top .wrap { flex-wrap: wrap; row-gap: 6px; padding-block: 8px; }
  .theme-btn { margin-left: auto; }
  .install-btn:not([hidden]) { margin-left: auto; }
  .install-btn:not([hidden]) + .theme-btn { margin-left: 0; }
  nav.main { order: 3; flex-basis: 100%; margin: 0 -6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  nav.main a { white-space: nowrap; padding: 6px 10px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---- The listener site's two versions (12 Oct 2026): this file is the common core; the phone
   version (site-phone.css, site-phone.js) and the computer version (site-desktop.css,
   site-desktop.js) each add their own. <html data-platform="phone|desktop"> and its f-<feature>
   classes are set before the page draws (engine site/features.ts, from Settings → Website). */
.hr-tabs { display: none; }
body.site { -webkit-tap-highlight-color: transparent; }
/* A part for a feature that is off for this version is never drawn (no flash, no jumping). Without
   the platform script (a page served some other way) everything shows, as before. */
html[data-platform]:not(.f-watch) [data-feature~="watch"], html[data-platform]:not(.f-messages) [data-feature~="messages"],
html[data-platform]:not(.f-requests) [data-feature~="requests"], html[data-platform]:not(.f-calls) [data-feature~="calls"],
html[data-platform]:not(.f-alerts) [data-feature~="alerts"], html[data-platform]:not(.f-install) [data-feature~="install"],
html[data-platform]:not(.f-car) [data-feature~="car"], html[data-platform]:not(.f-popout) [data-feature~="popout"],
html[data-platform]:not(.f-keys) [data-feature~="keys"] { display: none !important; }
/* Parts that belong to one version only. */
html[data-platform="desktop"] .only-phone, html[data-platform="phone"] .only-desktop { display: none !important; }
/* The footer (the engine writes it: site/seo.ts): what to listen to, how to take part, where to follow. */
footer.site .foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 24px 32px; justify-content: stretch; }
@media (max-width: 860px) { footer.site .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
footer.site .foot-brand b { font: 800 1.25rem/1 var(--font-display); color: var(--red); margin-right: 8px; }
footer.site .foot-brand span { font: 600 .95rem/1 var(--font-display); }
footer.site .foot-brand p { margin: 10px 0 0; max-width: 34ch; line-height: 1.5; }
footer.site nav { display: grid; align-content: start; gap: 0; }
footer.site nav h2 { font: 600 .72rem/1 var(--font-data); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
footer.site nav a { color: var(--text); text-decoration: none; }
footer.site nav a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
footer.site .foot-base { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
footer.site .foot-base a { color: var(--muted); }
/* Every press answers at once, on phones and computers: a short squeeze while held; a play button
   then shows a spinner until the sound comes (player.starting). */
body.site .btn, body.site button { transition: transform .08s ease, background-color .15s, opacity .15s; }
body.site .btn:active:not(:disabled), body.site button:active:not(:disabled) { transform: scale(.96); }
.hr-spinner { display: inline-block; width: 1em; height: 1em; border: .16em solid currentColor; border-right-color: transparent; border-radius: 50%; animation: hr-spin .7s linear infinite; vertical-align: -.15em; flex: none; }
@keyframes hr-spin { to { transform: rotate(360deg); } }
/* Less movement asked for: the ring pulses gently instead of turning (still shows it is working). */
@media (prefers-reduced-motion: reduce) { .hr-spinner { animation: hr-spin-calm 1.2s ease-in-out infinite !important; animation-duration: 1.2s !important; animation-iteration-count: infinite !important; } }
@keyframes hr-spin-calm { 50% { opacity: .35; } }
[aria-busy="true"] { cursor: progress; }
/* Page changes inside the site: a quick cross-fade (shell.js; browsers with view transitions). */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
