/* ==========================================================================
   theme.britbox.css — the BritBox brand
   --------------------------------------------------------------------------
   The SAME property names and the SAME values as
   demos/home-series-rails/css/theme.britbox.css. Copied rather than shared
   because every demo in this repo is self-contained (see README, "Back goes
   to the concepts page" — the same reasoning applies to stylesheets).

   Values come from the supplied BritBox semantic token set (Semantic.zip →
   Value.tokens.json, collection mode "Value"), which is also what the home
   and paywall prototypes are built from — so the three cannot drift apart.
   The right-hand column names the BritBox token each slot takes its value
   from, exactly as it does in the home prototype.

   PRIMARY-MUTED collapses onto primary here for the same reason it does
   there: BritBox's primary is already the pale value and the set has no
   lighter tint of it, so the avatar is a filled primary disc rather than a
   tinted one.
   ========================================================================== */

:root {
  /* ---- Colour ----------------------------------------------------------

     THE GROUND COMES FROM THE TELEVISION BUILD, not from the web
     collection. The web set's `color/background` is #00182B, a blue navy
     that is the most saturated thing on a page otherwise made of
     photographs — and a lounge-back screen full of artwork wants the
     ground to disappear, not to have an opinion. The native-TV design file
     already answers this: its frame ground is #001015, a near-black teal,
     and it is what the whole TV set sits on.

     Taken deliberately and recorded rather than quietly swapped. Everything
     derived from the ground — the fade-to-nothing, the overlays, the scrim,
     the avatar's glyph colour — moves with it, or a gradient to "the
     background" would stop landing on the background.

     Source: demos/britbox-tv/css/tokens.css,
     --full-screen-content-screen-frame-background-colour. See source.md
     §2b for the rest of what that file could lend this one. */
  --color-background:         #001015;  /* britbox-tv: frame ground         */
  --color-background-0:       rgba(0, 16, 21, 0);    /* ground @ 0%         */
  --color-surface:            #042C39;  /* color/surface-container          */
  /* THE ACCOUNT SCREEN'S CARDS ARE THIS, NOT SURFACE. Re-read off the
     frame: 30268:217137 paints its containers with `color/background-
     container`, which is a different token from `color/surface-container`
     and a different colour — deeper and bluer. They were being drawn in
     surface, which on a #001015 ground came out a pale green-teal panel.
     The value is BritBox's own and the paywall prototype already carries
     it at demos/paywall/css/theme.britbox.css:17. */
  --color-background-container: #002139; /* color/background-container      */
  --color-surface-container:  #001015;  /* the avatar's glyph, on the ground */
  --color-surface-variant:    #4A5455;  /* color/surface-variant            */
  --color-on-surface:         #F8F4EB;  /* color/on-surface                 */
  --color-on-surface-variant: #AAA8A1;  /* color/on-surface-variant         */
  --color-outline:            #AAA8A1;  /* color/outline                    */

  --color-primary:            #A6E2F5;  /* color/primary                    */
  --color-primary-muted:      #A6E2F5;  /* color/primary — see header       */
  --color-primary-20:         rgba(166, 226, 245, 0.2);
  --color-primary-30:         rgba(166, 226, 245, 0.3);
  --accent-ring-hover:        rgba(166, 226, 245, 0.7);
  /* The chosen plan's ground. Not a fourth accent slot — it is the same
     primary at 8%, which is a tint of the ring above rather than a new
     colour. --color-surface-variant was standing in and read as a warm
     grey panel dropped onto the navy. */
  --accent-wash:              rgba(166, 226, 245, 0.08);

  --color-on-primary:         #001015;  /* ink on the accent, on the ground */

  --color-overlay:            rgba(0, 16, 21, 0.7);
  --color-overlay-variant:    rgba(0, 16, 21, 0.3);
  --color-scrim:              rgba(0, 16, 21, 0.5);

  --color-white-80:           rgba(255, 255, 255, 0.8);
  --color-white-20:           rgba(255, 255, 255, 0.2);
  --color-white-5:            rgba(255, 255, 255, 0.05);

  /* ---- The accent budget ------------------------------------------------
     The companion prototype rations the accent to three named slots so a
     component sheet cannot quietly widen it. The same discipline, and the
     same reason, applies here — and this screen set has a particular need
     for it, because a rating control is exactly the kind of component that
     grows a colour per value if nobody is watching.

     THREE SLOTS, and the last one is the whole concept:
       --accent-action      one primary action per view
       --accent-progress    how far into an episode you are
       --accent-recommend   the top rating, "One I'd recommend"

     There was a fourth, --accent-active, for the member you are signed in
     as. The only thing that read it was a ring on the profile picker, and
     that ring is gone — nobody is signed in while the picker is open. A
     token with no reader is a token that goes stale, so it went too.

     "Not for me" and "Good" get NO colour. They are drawn in
     on-surface-variant and told apart by their mark, because a three-colour
     rating scale is a traffic light and a traffic light makes the middle
     value look like a warning. Only the top tier is accented, because only
     the top tier is the gesture the rest of the prototype is built on. */
  --accent-action:    var(--color-primary);
  --accent-progress:  var(--color-primary);
  --accent-recommend: var(--color-primary);

  /* ---- Wordmark --------------------------------------------------------
     BritBox supplies a real SVG, so the type treatment the home prototype
     keeps for Streamit is not needed; these two are carried anyway so the
     .brand-logo rule is identical to the home prototype's. */
  --wordmark-size:     24.41px;
  --wordmark-tracking: 1.703px;
}
