/* Copper Digital Design System v2.0: the ten colours, plus white, plus a few named see-through tints of them.
   This is the only file allowed to hold colour values (tests/test_design.py checks every stylesheet). */
:root{
  /* the ten */
  --green:#00C377;      /* fresh green: calls to action, success */
  --blue:#0095FF;       /* sky blue: icons, focus rings, active chips, large text */
  --navy:#1A2B4A;       /* deep navy: titles, primary button text */
  --charcoal:#2D3748;   /* section headers */
  --slate:#4A5568;      /* body and small text */
  --gray:#718096;       /* cool gray: placeholders and disabled only */
  --line:#E2E8F0;       /* light gray: borders, dividers */
  --off:#F7FAFC;        /* off white: page background */
  --warn:#F6AD55;       /* warning: fills, dots, borders (never text) */
  --danger:#FC5C65;     /* danger: fills, dots, borders (never text) */
  --white:#FFFFFF;

  /* named tints of the ten (same colours, see-through) */
  --navy-a04:rgba(26,43,74,.04);
  --navy-a06:rgba(26,43,74,.06);
  --navy-a12:rgba(26,43,74,.12);
  --navy-a55:rgba(26,43,74,.55);
  --navy-a80:rgba(26,43,74,.80);
  --green-a12:rgba(0,195,119,.12);
  --green-a40:rgba(0,195,119,.40);
  --blue-a10:rgba(0,149,255,.10);
  --blue-a35:rgba(0,149,255,.35);
  --warn-a20:rgba(246,173,85,.20);
  --danger-a15:rgba(252,92,101,.15);
  --white-a85:rgba(255,255,255,.85);
  --white-a20:rgba(255,255,255,.20);

  /* shape and type */
  --radius:12px;
  --radius-sm:8px;
  --shadow:0 1px 2px var(--navy-a06), 0 4px 12px var(--navy-a06);
  --shadow-lift:0 2px 4px var(--navy-a06), 0 10px 24px var(--navy-a12);
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,Roboto,"Noto Sans","Noto Sans Devanagari",sans-serif;
  --mono:ui-monospace,"SF Mono",Menlo,monospace;
  --stage:var(--navy);   /* the review room's dark video stage */
}

/* YouTube's own palette for the wall and the watch page (SPEC-v3 3.1): light #fff / #0f0f0f / #606060 / #f2f2f2,
   dark #0f0f0f / #f1f1f1 / #aaa / #272727. The device's theme picks one; "Appearance" in the person menu can fix it
   (html.yt-light or html.yt-dark). Only the YouTube-look pages use these. */
:root{
  --yt-bg:#FFFFFF;
  --yt-text:#0F0F0F;
  --yt-text2:#606060;
  --yt-chip:#F2F2F2;
  --yt-chip-hover:#E5E5E5;
  --yt-on:#0F0F0F;          /* the selected chip and the dark filled pill */
  --yt-on-text:#FFFFFF;
  --yt-link:#065FD4;        /* links and hashtags in a description */
  --yt-live:#CC0000;
  --yt-line:rgba(15,15,15,.10);
  --yt-badge:rgba(15,15,15,.80);
  --yt-badge-text:#FFFFFF;
  --yt-hover:rgba(15,15,15,.05);
  --yt-scheme:light;
  --yt-logo:url(/static/logo.png);
  --yt-player:#0F0F0F;      /* the surround of YouTube's player, near-black in light and dark (D78) */
  --font-yt:Roboto,Arial,"Noto Sans Devanagari",sans-serif;
}
@media (prefers-color-scheme:dark){
  :root:not(.yt-light){
    --yt-bg:#0F0F0F;
    --yt-text:#F1F1F1;
    --yt-text2:#AAAAAA;
    --yt-chip:#272727;
    --yt-chip-hover:#3F3F3F;
    --yt-on:#F1F1F1;
    --yt-on-text:#0F0F0F;
    --yt-link:#3EA6FF;
    --yt-line:rgba(241,241,241,.20);
    --yt-hover:rgba(241,241,241,.10);
    --yt-scheme:dark;
    --yt-logo:url(/static/logo-dark.png);
  }
}
:root.yt-dark{
  --yt-bg:#0F0F0F;
  --yt-text:#F1F1F1;
  --yt-text2:#AAAAAA;
  --yt-chip:#272727;
  --yt-chip-hover:#3F3F3F;
  --yt-on:#F1F1F1;
  --yt-on-text:#0F0F0F;
  --yt-link:#3EA6FF;
  --yt-line:rgba(241,241,241,.20);
  --yt-hover:rgba(241,241,241,.10);
  --yt-scheme:dark;
  --yt-logo:url(/static/logo-dark.png);
}

/* The device's dark theme for every other page too: Settings, the review room, the editor, Board, Agent work, Team
   (judge round 1, D28; SPEC-v3 3.1 as amended). The Copper names are pointed at YouTube's dark palette, so each
   stylesheet keeps using the same names. "Appearance" in the person menu fixes light or dark here as on the wall. */
@media (prefers-color-scheme:dark){
  :root:not(.yt-light){
    color-scheme:dark;
    --off:var(--yt-bg);
    --white:var(--yt-chip);
    --navy:var(--yt-text);
    --charcoal:var(--yt-text);
    --slate:var(--yt-text2);
    --gray:var(--yt-text2);
    --line:var(--yt-chip-hover);
    --navy-a04:rgba(241,241,241,.05);
    --navy-a06:rgba(241,241,241,.06);
    --navy-a12:rgba(241,241,241,.12);
    --navy-a55:rgba(170,170,170,.45);
    --navy-a80:rgba(15,15,15,.80);
    --shadow:none;
    --shadow-lift:0 8px 24px var(--yt-shade);
    --stage:var(--yt-bg);
  }
}
:root.yt-dark{
  color-scheme:dark;
  --off:var(--yt-bg);
  --white:var(--yt-chip);
  --navy:var(--yt-text);
  --charcoal:var(--yt-text);
  --slate:var(--yt-text2);
  --gray:var(--yt-text2);
  --line:var(--yt-chip-hover);
  --navy-a04:rgba(241,241,241,.05);
  --navy-a06:rgba(241,241,241,.06);
  --navy-a12:rgba(241,241,241,.12);
  --navy-a55:rgba(170,170,170,.45);
  --navy-a80:rgba(15,15,15,.80);
  --shadow:none;
  --shadow-lift:0 8px 24px var(--yt-shade);
  --stage:var(--yt-bg);
}
:root.yt-light{color-scheme:light}
:root{
  --yt-shade:rgba(15,15,15,.60);
}
/* Places that are dark in both themes (the player and the review stage, thumbnails) and green buttons with navy
   text keep the light theme's names, so their white text and navy ink stay as they are. */
.player,.stage,.pic,.cmpstage,.jobpic,.cwslate,.btn.primary,.hoverbar span.open,.ctrls button.on,.ctrls .play,.askcount{
  --off:#F7FAFC;
  --white:#FFFFFF;
  --navy:#1A2B4A;
  --charcoal:#2D3748;
  --slate:#4A5568;
  --gray:#718096;
  --line:#E2E8F0;
  --navy-a04:rgba(26,43,74,.04);
  --navy-a06:rgba(26,43,74,.06);
  --navy-a12:rgba(26,43,74,.12);
  --navy-a55:rgba(26,43,74,.55);
  --navy-a80:rgba(26,43,74,.80);
}
