/* About, Credits, Terms and Privacy in the homepage's coral (2026-10-27).
   These four pages share one layout and still carry the old green-and-gold
   palette in their own <style> blocks. This file loads after site-ui.css on
   those four pages only and moves colours, nothing else. The coral is
   theme.css's --auth-* set, the same values as hanzi-home.css
   (--auth-accent #C23F46 = --hc-coral-deep, #FA6A6D = --hc-coral). */

/* The pages' own role names, declared on :root in each page. The names lie:
   --gold and --green are both the coral accent here. */
body.site-ui {
  --bg-1:     var(--auth-wash);
  --ink:      var(--auth-ink);
  --ink-soft: var(--auth-body);
  --muted:    var(--auth-muted);   /* 5.1:1 on white */
  --faint:    var(--auth-muted);
  --line:     var(--auth-line);
  --line-hi:  #C9B8B6;
  --gold:     var(--auth-accent);  /* eyebrows, small labels; 5.4:1 on white */
  --green:    var(--auth-accent);
  --green-hi: var(--auth-hover);
  /* site-ui.css colours a page by its learning area (green for "characters"):
     card headings, hovers, eyebrows. */
  --ui-accent: var(--auth-accent);
  --ui-rgb:    var(--auth-rgb);
  --ui-tint:   var(--auth-tint);
  --ui-tint2:  var(--auth-tint-2);
}

/* Theme tokens the page styles name directly. Scoped to the page content so
   shared widgets (the feedback form, toasts) keep their own meanings. */
body.site-ui main {
  --t-green:         var(--auth-accent);
  --t-green-deep:    var(--auth-accent);
  --t-green-rgb:     var(--auth-rgb);
  --t-green-deep-rgb: var(--auth-rgb);
  --t-green-tint:    var(--auth-tint);
  --t-gold:          #FA6A6D;      /* the vivid rule down the side of a credit card */
  --t-gold-ink:      var(--auth-accent);
}

/* The page surface: a soft coral glow instead of site-ui.css's green one. */
html body.site-ui:not(.home-page) {
  background-color: var(--auth-wash);
  background-image:
    radial-gradient(ellipse 65% 470px at 0 100px, rgba(var(--auth-rgb), .09), transparent 75%),
    radial-gradient(ellipse 55% 430px at 100% 300px, rgba(var(--auth-rgb), .05), transparent 75%),
    linear-gradient(180deg, #fff 0, rgba(255, 255, 255, .8) 420px, var(--auth-wash) 100%);
  background-repeat: no-repeat;
}

/* The shared chrome, as on the homepage. */
body.site-ui .site-header .mw-nav-link.is-current { color: var(--auth-accent); }
body.site-ui .nav-auth .btn-nav-primary { box-shadow: 0 8px 18px -4px rgba(var(--auth-rgb), .34); }
body.site-ui .mw-fb-fab {
  background: linear-gradient(135deg, #FA6A6D 0%, var(--auth-accent) 100%);
  border-color: rgba(var(--auth-rgb), .3);
  box-shadow: 0 14px 32px -8px rgba(var(--auth-rgb), .4), 0 2px 6px rgba(var(--auth-rgb), .2);
}
body.site-ui .mw-fb-fab:hover {
  background: linear-gradient(135deg, var(--auth-accent) 0%, var(--auth-hover) 100%);
}
