/* FILE: site/sowetan/www/assets/site.css */
/*
 * Shared foundation retained from the supplied page.
 * Component redesigns live in system.css and are scoped below the billboard.
 * No replacement rules for the locked app bar or billboard are introduced.
 */
:root { color-scheme: dark; }
html { scroll-padding-top: 84px; scroll-padding-bottom: 140px; }
body { margin: 0; background: #070707; }

.site-page {
  --sd-red: #ff2d2d;
  --sd-deep: #b50010;
  --sd-button: #b50010;
  --sd-red-text: #ff7777;
  --sd-black: #0c0c0e;
  --sd-panel: #1a1a1a;
  --sd-panel-raised: #141414;
  --sd-white: #fff;
  --sd-muted: #b3b3b3;
  --sd-line: #303032;
  --sd-gap: 12px;
  --sd-radius: 14px;
  --sd-body: "Satoshi", Arial, sans-serif;
  --sd-display: "Righteous", "Satoshi", Arial, sans-serif;
  --sd-editorial: "Satoshi", Arial, sans-serif;
  --sd-mono: "Source Code Pro", monospace;
  --mk-font: var(--sd-body);
  --mk-red: var(--sd-button);
  --mk-red-hover: #c51925;
  --mk-ease: cubic-bezier(.4, 0, .2, 1);
  --mk-shadow-btn: rgba(10,13,18,.05) 0 1px 2px 0,
    rgba(10,13,18,.05) 0 -2px 0 0 inset,
    rgba(10,13,18,.18) 0 0 0 1px inset,
    rgba(255,255,255,.12) 0 0 0 2px inset;
  --mk-shadow-btn2: rgba(10,13,18,.05) 0 1px 2px 0,
    rgba(10,13,18,.05) 0 -2px 0 0 inset;
  --panel-shadow: inset 0 1px 0 #ffffff08, 0 8px 24px #00000026;
  --edge: 12px;
  --ef-black: #040202;
  --ef-canvas: #101010;
  --ef-frame: #141414;
  --ef-card: #1c1c1c;
  --ef-dark: #1a1a1a;
  --ef-grey: #333;
  --ef-track: #444;
  --ef-edge: #2a2a2a;
  --ef-red: #ff2d2d;
  --ef-red-live: #f40706;
  --ef-red-deep: #b50010;
  --ef-maroon: #5e2727;
  --ef-white: #fff;
  --ef-ink-2: #c9c9cb;
  --ef-ink-3: #a09f9f;
  --ef-radius: 18px;
  --ef-gap: 14px;
  --ef-highlight: inset 0 1px 0 rgba(255,255,255,.045);
  --ef-font: Poppins, Inter, system-ui, sans-serif;
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  color: var(--sd-white);
  background:
    radial-gradient(ellipse at 50% 0, #ffffff04, transparent 55%),
    radial-gradient(ellipse at center, transparent 45%, #00000050),
    repeating-linear-gradient(180deg, #ffffff04 0 1px, transparent 1px 3px),
    var(--sd-black);
  font: 400 14px/1.5 var(--sd-body);
  -webkit-font-smoothing: antialiased;
}

@scope (.site-page) to (.live, .toast) {
  *, *::before, *::after { box-sizing: border-box; }
  :where(h1, h2, h3, p, figure, dl, dd) { margin: 0; }
  :where(ul, ol) { margin: 0; padding: 0; }
  a { color: inherit; text-decoration: none; }
  button, input { font: inherit; }
  button { color: inherit; cursor: pointer; }
  button:disabled { cursor: default; opacity: .45; }
  a, button, input { -webkit-tap-highlight-color: transparent; }
  img { display: block; max-width: 100%; }
  [hidden] { display: none !important; }
  :focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
  ::selection { color: #fff; background: #b50010; }
  :where(section, article, aside, nav, form, figure, main) { min-width: 0; }

  .icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .icon-library {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
  }
  .sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  .skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10.496px 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #111;
    transform: translateY(-160%);
  }
  .skip-link:focus { transform: none; }

  /* Existing shared controls retained for the locked composition. */
  .icon-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 32px;
    width: 32px;
    flex: 0 0 32px;
    padding: 0;
    border: 1px solid var(--sd-line);
    border-radius: 6px;
    background: #242424;
    color: #fff;
    font: 500 14px/1 var(--sd-body);
    white-space: nowrap;
    transition: transform .3s var(--mk-ease);
  }
  .icon-button:hover { background: #333; border-color: #777; }
  .icon-button:active { transform: scale(.94); }
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    border-bottom: 1px solid var(--sd-line);
    margin-inline: auto;
  }
  .desktop-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: none;
    margin-bottom: -1px;
    padding: 8px 12px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: none;
    color: #bbb;
    font: 400 14px/1.5 var(--sd-body);
    white-space: nowrap;
  }
  .desktop-nav a:hover { color: #fff; }
  .desktop-nav a.active, .desktop-nav a[aria-current="page"] {
    border-bottom-color: var(--sd-red);
    color: #fff;
    font-weight: 700;
  }
  .header-talk { white-space: nowrap; }
  .menu-toggle { display: none; }
  .motion-toggle[aria-pressed="true"] .pause-symbol { display: none; }
  .motion-toggle[aria-pressed="false"] .resume-symbol { display: none; }

  /* These are the existing monitor primitives, not a billboard redesign. */
  .hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-bottom: 1px solid #ffffff14;
    background: #101010;
  }
  .monitor {
    position: relative;
    overflow: hidden;
    border: 1px solid #666;
    border-radius: 16px;
    background: #141414;
    box-shadow: 0 12px 32px #0008, 0 0 30px #b500101a;
  }
  .screen { position: relative; background: #111; }
  .screen .idle {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    background: #111;
  }
  .screen .talk-cta {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 24px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .screen .talk-cta:focus-visible { outline-offset: -6px; }
  .player-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 8px 12px;
    border-top: 1px solid var(--sd-line);
    background: #141414;
  }
  .player-progress {
    position: relative;
    flex: 1;
    height: 6px;
    min-width: 20px;
    overflow: hidden;
    border-radius: 1000px;
    background: #454545;
  }
  .player-progress span {
    position: absolute;
    inset: 0;
    background: var(--sd-red);
    transform: scaleX(.24);
    transform-origin: left;
  }
}

/* Existing system-layer overrides on shared primitives, retained unchanged. */
body .site-page .icon-button {
  font-family: var(--ef-font);
  font-weight: 600;
  background: transparent;
  color: var(--ef-white);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: none;
}
body .site-page .icon-button:hover {
  background: transparent;
  border-color: var(--ef-red);
  color: var(--ef-red);
}
body .site-page .monitor {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: var(--ef-radius);
  border: 1px solid var(--ef-edge);
  box-shadow: var(--ef-highlight), 0 24px 60px -20px #000,
    0 0 50px -20px rgba(255,45,45,.35);
}
body .site-page .screen { flex: 1; min-height: 0; }
body .site-page .screen .idle {
  height: 100%;
  aspect-ratio: auto;
  min-height: 340px;
  max-height: min(64vh, 600px);
  object-fit: cover;
  object-position: 50% 18%;
}
@media (max-width: 1100px) {
  body .site-page .screen .idle {
    min-height: 0;
    max-height: none;
    aspect-ratio: 4 / 3;
  }
}
