/* ==========================================================================
   Google Cloud MVSP Assessment Portal — Design Tokens
   Harmonized with anything2shell.com editorial card geometry + Google Cloud palette
   ========================================================================== */

:root {
  /* Surfaces (Google Cloud clean neutral slate, harmonized with anything2shell depth) */
  --gc-bg-canvas: #f6f8fb;
  --gc-bg-surface: #ffffff;
  --gc-bg-rail: #f8fafd;
  --gc-bg-subtle: #f1f4f9;
  --gc-bg-hover: #edf2f9;
  --gc-bg-selected: #e8f0fe;
  --gc-bg-code: #161b22;

  /* Ink / Typography (All >= 4.5:1 on white/subtle surfaces) */
  --gc-ink-primary: #1a202c;
  --gc-ink-secondary: #475569;
  --gc-ink-muted: #5f6b7c;
  --gc-ink-code: #e8eaed;

  /* Borders & Hairlines */
  --gc-border: #dde3ec;
  --gc-border-strong: #c2ccd9;
  --gc-border-focus: #1a73e8;

  /* Official Google Wordmark Letter Colors */
  --gc-google-blue: #4285f4;
  --gc-google-red: #ea4335;
  --gc-google-yellow: #fbbc05;
  --gc-google-green: #34a853;

  /* Google Cloud Brand & Semantic Accents */
  --gc-blue: #1a73e8;
  --gc-blue-hover: #1557b0;
  --gc-blue-ink: #174ea6;
  --gc-blue-surface: #e8f0fe;
  --gc-blue-border: #aecbfa;

  /* Tier 1: Basic (Official GCMVSP Green) */
  --gc-basic-accent: #1e8e3e;
  --gc-basic-ink: #137333;
  --gc-basic-surface: #e6f4ea;
  --gc-basic-border: #a8dab5;

  /* Tier 2: Intermediate (Official GCMVSP Amber) */
  --gc-inter-accent: #f29900;
  --gc-inter-ink: #8a4b00;
  --gc-inter-surface: #fef7e0;
  --gc-inter-border: #fdd663;

  /* Tier 3: Advanced (Official GCMVSP Blue) */
  --gc-adv-accent: #1a73e8;
  --gc-adv-ink: #174ea6;
  --gc-adv-surface: #e8f0fe;
  --gc-adv-border: #aecbfa;

  /* Alert / Gap Semantic */
  --gc-danger-ink: #b3261e;
  --gc-danger-surface: #fce8e6;
  --gc-danger-border: #f6aea9;

  /* CIA Triad Impact Semantic Colors (Red / Yellow / Green / Grey) */
  --cia-red-dot: #dc2626;
  --cia-red-ink: #991b1b;
  --cia-red-bg: #fef2f2;
  --cia-red-border: #fecaca;

  --cia-yellow-dot: #d97706;
  --cia-yellow-ink: #92400e;
  --cia-yellow-bg: #fffbeb;
  --cia-yellow-border: #fde68a;

  --cia-green-dot: #16a34a;
  --cia-green-ink: #166534;
  --cia-green-bg: #f0fdf4;
  --cia-green-border: #bbf7d0;

  --cia-grey-dot: #94a3b8;
  --cia-grey-ink: #475569;
  --cia-grey-bg: #f1f5f9;
  --cia-grey-border: #cbd5e1;

  /* Typography — Fixed Operate Scale */
  --gc-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gc-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --gc-text-xs: 0.75rem;     /* 12px — badges, metadata, control IDs */
  --gc-text-sm: 0.8125rem;   /* 13px — dense console controls, rail items */
  --gc-text-base: 0.9375rem; /* 15px — guidance prose & body */
  --gc-text-md: 1rem;        /* 16px — control titles */
  --gc-text-lg: 1.1875rem;   /* 19px — section / subcategory headings */
  --gc-text-xl: 1.45rem;     /* 23px — pillar titles */
  --gc-text-2xl: 1.875rem;   /* 30px — primary score readout */

  /* 4px-based Spacing Rhythm */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-7: 1.75rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;

  /* Radii & Elevation (Harmonized with anything2shell.com soft cards & pills) */
  --gc-radius-sm: 8px;
  --gc-radius-md: 14px;
  --gc-radius-lg: 18px;
  --gc-radius-xl: 22px;
  --gc-radius-pill: 999px;

  --gc-shadow-card: 0 2px 7px rgba(15, 23, 42, 0.03), 0 10px 28px rgba(15, 23, 42, 0.04);
  --gc-shadow-1: 0 1px 3px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.05);
  --gc-shadow-2: 0 8px 24px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.08);

  --gc-topbar-h: 54px;
  --gc-sticky-offset: var(--gc-topbar-h);
  --gc-ease: cubic-bezier(0.2, 0, 0, 1);
}

/* Themed Browser Surfaces */
*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  font-size: 16px;
  color-scheme: light;
  accent-color: var(--gc-blue);
  scrollbar-color: var(--gc-border-strong) transparent;
  scrollbar-width: thin;
}

::selection {
  background-color: #d2e3fc;
  color: var(--gc-blue-ink);
}

body {
  margin: 0;
  font-family: var(--gc-font-sans);
  font-size: var(--gc-text-base);
  line-height: 1.55;
  color: var(--gc-ink-primary);
  background-color: var(--gc-bg-canvas);
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--gc-border-focus);
  outline-offset: 2px;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

code,
pre,
.tabular {
  font-variant-numeric: tabular-nums;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--sp-2);
  z-index: 999;
  padding: var(--sp-2) var(--sp-4);
  background: var(--gc-blue);
  color: #ffffff;
  border-radius: var(--gc-radius-sm);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  left: var(--sp-3);
}
