/* AMA&CO Holding Group — tokens lifted from the AMA&CO Figma variable
   collections (Primary/*, Greys, Accents, Risk). No invented values.

   Primary/Primary Color .. 700  #072D4C   Primary/Primary 900  #041B2E
   Primary/Primary 300     #B5C0C9   Primary/Primary 200  #CDD5DB
   Primary/Primary 100     #F5FBFF   Secondary Color      #18222E
   Other/LIGHT BLUE        #88A7C3   Other/BLACK          #0F0E0E
   Grey/Background #EAE9E6 · Grey 100 #F8F8F8 · Stoke Grey #DFDFDF
   Grey/Stock #E4E4E4 · Grey/Subtitles #959595 · Greyscale/500 #666D80  */
:root {
  /* brand ramp — replaces the retired Polionys gold ramp */
  --pol-gold-300: rgb(245, 251, 255);   /* Primary/Primary 100 — tint       */
  --pol-gold-500: rgb(78, 131, 157);    /* steel accent (charts, progress)  */
  --pol-gold-600: rgb(19, 70, 97);      /* deep accent                      */
  --pol-gold-700: rgb(7, 45, 76);       /* Primary — links, active nav      */
  --pol-gold-gradient: linear-gradient(90deg, rgb(7,45,76) 0%, rgb(136,167,195) 100%);

  --ama-primary: rgb(7, 45, 76);
  --ama-primary-900: rgb(4, 27, 46);
  --ama-primary-300: rgb(181, 192, 201);
  --ama-primary-200: rgb(205, 213, 219);
  --ama-primary-100: rgb(245, 251, 255);
  --ama-secondary: rgb(24, 34, 46);
  --ama-light-blue: rgb(136, 167, 195);
  --ama-steel: rgb(78, 131, 157);
  --ama-deep: rgb(19, 70, 97);

  /* navy / ink */
  --pol-navy-900: rgb(4, 27, 46);
  --pol-navy-800: rgb(7, 45, 76);
  --pol-navy-700: rgb(7, 45, 76);
  --pol-ink: rgb(15, 14, 14);

  /* neutrals — Figma greys */
  --pol-cream: rgb(240, 240, 240);
  --pol-paper: rgb(255, 254, 254);
  --pol-grey-25: rgb(248, 250, 251);
  --pol-grey-50: rgb(248, 248, 248);
  --pol-grey-300: rgb(228, 228, 228);
  --pol-grey-400: rgb(223, 223, 223);
  --pol-grey-600: rgb(149, 149, 149);
  --pol-grey-muted: rgb(102, 109, 128);

  /* semantics — Accents/* + Risk/* */
  --pol-info: rgb(0, 136, 255);
  --pol-info-strong: rgb(0, 102, 255);
  --pol-info-bg: rgb(236, 246, 255);
  --pol-success: rgb(1, 175, 97);
  --pol-success-bg: rgb(230, 255, 239);
  --pol-error: rgb(255, 56, 60);
  --pol-error-bg: rgb(255, 242, 242);
  --pol-warning: rgb(255, 141, 40);
  --pol-warning-bg: rgb(255, 249, 242);
  --pol-violet: rgb(162, 92, 223);
  --pol-violet-bg: rgb(248, 235, 255);
  --pol-indigo: rgb(97, 85, 245);
  --pol-indigo-bg: rgb(238, 236, 255);
  --pol-cyan: rgb(0, 192, 232);
  --pol-cyan-bg: rgb(242, 255, 254);
  --pol-risk-critical: rgb(212, 0, 0);
  --pol-risk-high: rgb(255, 140, 0);

  /* brand aliases */
  --text-link: var(--ama-primary);
  --brand: var(--ama-primary);
  --brand-strong: var(--ama-primary);
  --brand-active: var(--ama-primary);
  --brand-tint: var(--ama-primary-100);

  --surface-inverse: var(--ama-primary);
  --surface-inverse-deep: var(--ama-primary-900);

  --action-primary-bg: var(--ama-primary);
  --action-hover-tint: rgba(7, 45, 76, 0.06);
  --focus-ring: var(--ama-primary);

  /* Geometry — AMA&CO uses soft rounded rectangles, not full pills:
     primary action 139x40 r12 (#072D4C), toolbar control 129x57 r24,
     card r20, status badge r50. Radii histogram peaks at 6/20/12/24. */
  --radius-pill: 14px;
  --radius-chip: 50px;
  --radius-card: 20px;
  --radius-card-lg: 24px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;

  /* Elevation — DROP_SHADOW b4/y3/0.03 on cards, b12/y4/0.35 on navy,
     plus the 1px INNER_SHADOW hairline used 961× in the file. */
  --shadow-card: 0 3px 4px rgba(7, 45, 76, 0.035), 0 1px 2px rgba(7, 45, 76, 0.03);
  --shadow-raised: 0 4px 12px rgba(7, 45, 76, 0.10), 0 2px 4px rgba(7, 45, 76, 0.04);
  --shadow-pop: 0 12px 32px rgba(4, 27, 46, 0.14), 0 4px 10px rgba(7, 45, 76, 0.06);
  --shadow-inverse: 0 12px 28px rgba(4, 27, 46, 0.35);
  --border-input: rgb(223, 223, 223);
  --border-hairline: rgb(244, 244, 244);
  --border-subtle: rgb(228, 228, 228);
  --border-default: rgb(223, 223, 223);
}

/* Full-pill literals in the prototype predate the AMA geometry — retune the
   common ones to the file's r12/r14 language without touching status pills. */
button[style*="border-radius: 100px"],
a[style*="border-radius: 100px"],
input[style*="border-radius: 100px"] {
  border-radius: 14px !important;
}
