/* Editie 25 is opt-in per page. Existing layout and behaviour stay in the page styles. */
@font-face {
  font-family: "Radio33 Anton";
  src: url("Anton-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Radio33 Inter";
  src: url("InterVariable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

body[data-radio33-huisstijl="25"] {
  --r33-heading: "Radio33 Anton", Impact, "Arial Narrow", sans-serif;
  --r33-body: "Radio33 Inter", system-ui, sans-serif;
  --r33-background: #f2efdf;
  --r33-surface: #fbf9f1;
  --r33-surface-raised: #e8e3d4;
  --r33-text: #191711;
  --r33-muted: #655e50;
  --r33-border: #cfc7b4;
  --r33-control-border: #8a806c;
  --r33-field: #fbf9f1;
  --r33-focus: #7b5500;
  --r33-primary: #ffc843;
  --r33-primary-hover: #ffd66a;
  --r33-primary-pressed: #e8b638;
  --r33-on-primary: #191711;
  --r33-danger: #a52f25;
  --r33-on-danger: #fbf9f1;
  --r33-info-background: #e7eef7;
  --r33-info-text: #28577d;
  --r33-success-background: #e0f0e4;
  --r33-success-text: #245d39;
  --r33-warning-background: #fff0c7;
  --r33-warning-text: #705100;
  --r33-error-background: #fce4de;
  --r33-error-text: #8f2920;
}

html.theme-dark-boot > body[data-radio33-huisstijl="25"],
body[data-radio33-huisstijl="25"]:is(.dark-mode, [data-radio33-uitvoer]) {
  --r33-background: #100f0c;
  --r33-surface: #191711;
  --r33-surface-raised: #242117;
  --r33-text: #f2efdf;
  --r33-muted: #bdb5a2;
  --r33-border: #464032;
  --r33-control-border: #807563;
  --r33-field: #100f0c;
  --r33-focus: #ffc843;
  --r33-info-background: #182839;
  --r33-info-text: #aac9e6;
  --r33-success-background: #173023;
  --r33-success-text: #b6e5c6;
  --r33-warning-background: #342713;
  --r33-warning-text: #f1cc75;
  --r33-error-background: #242117;
  --r33-error-text: #ffb4a7;
}

body[data-radio33-huisstijl="25"]:not([data-radio33-uitvoer]) {
  --bg: var(--r33-background);
  --page: var(--r33-background);
  --panel: var(--r33-surface);
  --panel-2: var(--r33-surface-raised);
  --panel-soft: var(--r33-surface-raised);
  --text: var(--r33-text);
  --text-soft: var(--r33-muted);
  --muted: var(--r33-muted);
  --line: var(--r33-border);
  --border: var(--r33-border);
  --accent: var(--r33-primary);
  --accent-dark: var(--r33-primary-pressed);
  --accent-ink: var(--r33-on-primary);
  --soft: var(--r33-warning-background);
  --brand: var(--r33-focus);
  --accent-text: var(--r33-focus);
  --focus-ring: var(--r33-focus);
  --font-heading: var(--r33-heading);
  min-height: 100vh;
  background: var(--r33-background);
  color: var(--r33-text);
  font-family: var(--r33-body);
  font-variant-numeric: tabular-nums;
}

body[data-radio33-huisstijl="25"]:not([data-radio33-uitvoer])
  :is(h1, h2, h3, h4, h5, h6, [role="heading"], .dashboard-shortcut-label, .dashboard-widget-title, .dashboard-track-title) {
  font-family: var(--r33-heading) !important;
  font-weight: 400 !important;
  font-synthesis: none;
}

body[data-radio33-huisstijl="25"]:not([data-radio33-uitvoer]) .eyebrow {
  color: var(--r33-muted);
  font-family: var(--r33-body) !important;
  font-size: .72rem;
  font-weight: 700 !important;
  letter-spacing: .09em !important;
}

body[data-radio33-huisstijl="25"] :is(.topbar, .hitlist-subnav) {
  background: var(--r33-surface);
  border-color: var(--r33-border);
  backdrop-filter: none;
}

body[data-radio33-huisstijl="25"] .topbar .brand strong {
  color: var(--r33-text);
}

body[data-radio33-huisstijl="25"] .topbar .brand span {
  color: var(--r33-muted);
}

body[data-radio33-huisstijl="25"] .topbar :is(.navigation-playing, .navigation-sensors) {
  border-color: var(--r33-border);
}

body[data-radio33-huisstijl="25"] .topbar :is(.navigation-playing-row, .navigation-sensor) span {
  color: var(--r33-muted);
}

body[data-radio33-huisstijl="25"] .topbar :is(.navigation-playing-row, .navigation-sensor) strong {
  color: var(--r33-text);
}

body[data-radio33-huisstijl="25"] :is(.topbar .brand, .login-card, .stumo-stream-brand)
  img[src="/radio-33-logo.png"] {
  content: url("radio33-logo.png");
}

body[data-radio33-huisstijl="25"] .topbar .brand img[src="/radio-33-logo.png"] {
  width: clamp(62px, 8vw, 108px);
  height: auto;
  max-height: 48px;
}

body[data-radio33-huisstijl="25"] :is(.nav-links, .hitlist-subnav) {
  gap: 8px;
}

body[data-radio33-huisstijl="25"] :is(.nav-links a, .nav-button, .hitlist-subnav :is(a, button)) {
  border: 1px solid var(--r33-control-border);
  border-radius: 999px;
  background: var(--r33-surface);
  color: var(--r33-text);
  box-shadow: none;
}

body[data-radio33-huisstijl="25"] :is(.nav-links a, .hitlist-subnav :is(a, button)) {
  font-family: var(--r33-heading) !important;
  font-weight: 400 !important;
  text-transform: none;
}

body[data-radio33-huisstijl="25"] .nav-button {
  font-family: var(--r33-body) !important;
  font-weight: 600 !important;
  text-transform: none;
}

body[data-radio33-huisstijl="25"] :is(.nav-links a, .nav-button, .hitlist-subnav :is(a, button)):hover {
  background: var(--r33-surface-raised);
  border-color: var(--r33-focus);
  transform: none;
}

body[data-radio33-huisstijl="25"] :is(.nav-links, .hitlist-subnav)
  :is(a, button):is(.active, [aria-current="page"]) {
  border-color: var(--r33-primary);
  background: var(--r33-primary);
  color: var(--r33-on-primary);
  box-shadow: none;
}

body[data-radio33-huisstijl="25"]:not([data-radio33-uitvoer]) :is(.panel, .login-card, .portal-card) {
  border-color: var(--r33-border);
  border-radius: 12px;
  background: var(--r33-surface);
  box-shadow: none;
}

body[data-radio33-huisstijl="25"] .login-page {
  background: var(--r33-background);
}

body[data-radio33-huisstijl="25"] .login-card {
  text-transform: none;
}

body[data-radio33-huisstijl="25"] .login-card > img {
  width: clamp(100px, 20vw, 148px);
  height: auto;
  background: transparent;
  object-fit: contain;
}

body[data-radio33-huisstijl="25"] .login-card :is(h1, p:not(.eyebrow), label, summary, .login-back) {
  text-transform: none;
}

body[data-radio33-huisstijl="25"][data-page="licht-settings"] .licht-settings-action-row .button {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

body[data-radio33-huisstijl="25"]:not([data-radio33-uitvoer])
  :is(input:not([type="range"], [type="checkbox"], [type="radio"], [type="color"], [type="button"], [type="submit"]), textarea, select) {
  background: var(--r33-field);
  color: var(--r33-text);
  border-color: var(--r33-control-border);
}

body[data-radio33-huisstijl="25"] :is(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--r33-focus);
  outline-offset: 3px;
}

body[data-radio33-huisstijl="25"]:not([data-radio33-uitvoer])
  :is(button, .button, .button-link):is(.primary, [type="submit"]:not(.secondary, .ghost, .danger)),
body[data-radio33-huisstijl="25"] .dashboard-button.primary {
  background: var(--r33-primary);
  border-color: var(--r33-primary);
  color: var(--r33-on-primary);
}

body[data-radio33-huisstijl="25"]:not([data-radio33-uitvoer])
  :is(button, .button, .button-link):is(.primary, [type="submit"]:not(.secondary, .ghost, .danger)):hover,
body[data-radio33-huisstijl="25"] .dashboard-button.primary:hover {
  background: var(--r33-primary-hover);
}

body[data-radio33-huisstijl="25"]:not([data-radio33-uitvoer]) button.danger {
  background: var(--r33-danger);
  border-color: var(--r33-danger);
  color: var(--r33-on-danger);
}

body[data-radio33-huisstijl="25"] :is(.form-error, [role="alert"].error) {
  color: var(--r33-error-text);
}

body[data-radio33-huisstijl="25"] .portal-dashboard-layout {
  --focus-ring: var(--r33-focus);
}

body[data-radio33-huisstijl="25"] .portal-dashboard-layout .dashboard-hero {
  border-color: var(--r33-border);
}

body[data-radio33-huisstijl="25"] .portal-dashboard-layout .dashboard-widget,
body[data-radio33-huisstijl="25"] .portal-dashboard-layout .dashboard-widget[data-type] {
  --card-text: var(--r33-text);
  --card-muted: var(--r33-muted);
  --card-border: var(--r33-border);
  background: var(--r33-surface);
  border-radius: 12px;
  box-shadow: none;
}

body[data-radio33-huisstijl="25"] .portal-dashboard-layout .dashboard-widget::before {
  content: none;
}

body[data-radio33-huisstijl="25"] .portal-dashboard-layout .dashboard-widget[data-type="clock"] {
  --card-color: var(--r33-info-text);
  --card-ink: var(--r33-info-text);
  --card-wash: var(--r33-info-background);
}

body[data-radio33-huisstijl="25"] .portal-dashboard-layout .dashboard-widget[data-type="now-playing"] {
  --card-color: var(--r33-success-text);
  --card-ink: var(--r33-success-text);
  --card-wash: var(--r33-success-background);
}

body[data-radio33-huisstijl="25"][data-radio33-uitvoer="kijken"] {
  color-scheme: dark;
  background: var(--r33-background);
  color: var(--r33-text);
  font-family: var(--r33-body);
}

body[data-radio33-uitvoer="kijken"] header {
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--r33-border);
}

body[data-radio33-uitvoer="kijken"] header img {
  content: url("radio33-logo.png");
  width: clamp(4.25rem, 12vw, 6rem);
}

body[data-radio33-uitvoer="kijken"] h1 {
  font-family: var(--r33-heading);
  font-weight: 400;
}

body[data-radio33-uitvoer="kijken"] video {
  border: 1px solid var(--r33-border);
}

body[data-radio33-uitvoer="kijken"] button {
  background: var(--r33-primary);
  color: var(--r33-on-primary);
}

body[data-radio33-uitvoer="kijken"] #watchStatus {
  color: var(--r33-muted);
}
