/* ==========================================================================
   StudyKit design layer 2026 — corporate retune
   --------------------------------------------------------------------------
   Why this file exists.

   The layer underneath was an editorial treatment: a cream canvas, an electric
   #0007cb, display headings at 62-84px in a 300 weight with -3.4px letter
   spacing, a serif (SKH Fraunces) used for headings on the home page and a sans
   everywhere else, monospace eyebrow labels, a hard 10px offset shadow on the
   hero sheet, and five different button heights (31, 36, 38, 40, 43px) across
   three radii (0, 3, 4px) with three near-black fills (#111, #1b1713, #1f66e0).
   Every one of those numbers was measured off the live pages before writing
   this, not guessed.

   Individually they are defensible. Together they read as decoration, and the
   effect is that a site holding exam and passport tools looks like a portfolio
   piece rather than something you would trust to give you the right answer.
   Corporate sites earn trust by restraint: one accent, one family, one button,
   one radius, and a type scale that stays inside 32-46px so the page reads as
   content with a heading, not as a poster.

   Loaded last, so it overrides the ~9,000 lines underneath without rewriting
   them. Colours are scoped to the light scheme so the existing dark theme keeps
   its own tokens; only the accent is re-pointed for contrast in dark.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root,
html:not([data-sk-scheme="dark"]) {
  --sk26-canvas: #ffffff;
  --sk26-linen: #f4f6f8;
  --sk26-stone: #d5dae1;
  --sk26-hairline: #e3e7ec;
  --sk26-surface: #ffffff;
  --sk26-ink: #101418;
  --sk26-iron: #2b3138;
  --sk26-graphite: #4a525c;
  --sk26-muted: #667080;
  --sk26-electric: #0f3d91;
  --sk26-electric-soft: #eef2fa;
  --sk26-electric-line: rgba(15, 61, 145, 0.3);
  --sk26-accent: var(--sk-accent, #0f3d91);
  --sk26-accent-hover: var(--sk-accent-hover, #0b2f73);
  --sk26-accent-soft: var(--sk-accent-soft, #eef2fa);
  --sk26-accent-line: var(--sk-accent-line, rgba(15, 61, 145, 0.3));

  --sk26-radius: 4px;
  --sk26-radius-card: 8px;
  --sk26-max: 1160px;

  /* One display size, not a poster. */
  --sk26-display: clamp(2rem, 1.35rem + 1.9vw, 2.9rem);
  --sk26-h2: clamp(1.4rem, 1.15rem + 0.8vw, 1.85rem);
  --sk26-h3: 1.1875rem;
  --sk26-body: 1rem;
  --sk26-lead: 1.0625rem;

  /* Spacing rhythm, 4px base. */
  --sk-space-1: 4px;
  --sk-space-2: 8px;
  --sk-space-3: 12px;
  --sk-space-4: 16px;
  --sk-space-5: 24px;
  --sk-space-6: 32px;
  --sk-space-7: 48px;
  --sk-space-8: 64px;
}

/* Dark keeps its own surfaces; only the accent moves so links stay legible. */
html[data-sk-scheme="dark"] {
  --sk26-electric: #8fb2f5;
  --sk26-accent: var(--sk-accent, #8fb2f5);
  --sk26-accent-hover: var(--sk-accent-hover, #a9c4f8);
}

/* 2. Page canvas and body type -------------------------------------------- */
html:not([data-sk-scheme="dark"]) body {
  background-color: var(--sk26-canvas);
  color: var(--sk26-ink);
}

body {
  font-family: var(--sk26-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 3. Headings --------------------------------------------------------------
   One family, one weight, one tracking value. The serif and the 300 weight are
   both removed: at these sizes a semibold sans reads as a heading, a light
   serif reads as a magazine cover. */
h1, h2, h3, h4, h5, h6,
.hero__title, .sk-tool-title, .sk-page-title, .sk-tool-serif,
.sk-article-title, .sk-content-hub h2, .sk-media-guide h2 {
  font-family: var(--sk26-sans) !important;
  font-style: normal !important;
  color: var(--sk26-ink);
  letter-spacing: -0.015em !important;
  text-wrap: balance;
}

h1, .hero__title, .sk-tool-title, .sk-page-title, .sk-article-title, .sk-tool-serif {
  font-size: var(--sk26-display) !important;
  line-height: 1.15 !important;
  font-weight: 600 !important;
  margin-bottom: 0.5em;
}

h2, .sk-content-hub h2, .sk-media-guide h2 {
  font-size: var(--sk26-h2) !important;
  line-height: 1.25 !important;
  font-weight: 600 !important;
}

h3, .sk-media-guide h3, .sk-content-hub h3 {
  font-size: var(--sk26-h3) !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
}

h4 { font-size: 1.0625rem !important; font-weight: 600 !important; line-height: 1.45 !important; }

p, li, dd, dt, td, th {
  line-height: 1.65;
}

p { margin: 0 0 1em; }

.sk-tool-lede, .hero__lede, .sk-tool-intro-copy p, .sk-page-lede {
  font-size: var(--sk26-lead);
  line-height: 1.6;
  color: var(--sk26-graphite);
}

/* 4. Eyebrows and kickers --------------------------------------------------
   Monospace uppercase labels were the strongest "generated" signal on the page:
   five or six of them per screen, all shouting. Sans caps at 12px says the same
   thing without the costume. */
.eyebrow, .sk-tool-kicker, .sk-eyebrow, .sk-section-kicker {
  font-family: var(--sk26-sans) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  color: var(--sk26-muted) !important;
}

.eyebrow__dot {
  background: var(--sk26-accent) !important;
  box-shadow: none !important;
  width: 6px !important;
  height: 6px !important;
}

/* 5. Buttons ---------------------------------------------------------------
   Three variants and nothing else. Every interactive control gets the same
   height (44px, the minimum comfortable touch target), the same 4px radius and
   the same 500 weight, so a primary action is identified by colour rather than
   by being a different shape. */
.btn-base, .btn, .sk-btn, .chip, .sk-fb-submit, button[type="submit"],
input[type="submit"], .hero__cta, .sk-services-actions a, .sk-services-actions button {
  font-family: var(--sk26-sans) !important;
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--sk26-radius) !important;
  border: 1px solid transparent;
  box-shadow: none !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

/* Primary */
.btn-base, .sk-fb-submit, button[type="submit"], input[type="submit"], .hero__cta {
  background-color: var(--sk26-accent) !important;
  border-color: var(--sk26-accent) !important;
  color: #ffffff !important;
}

.btn-base:hover, .sk-fb-submit:hover, button[type="submit"]:hover,
input[type="submit"]:hover, .hero__cta:hover {
  background-color: var(--sk26-accent-hover) !important;
  border-color: var(--sk26-accent-hover) !important;
  color: #ffffff !important;
}

/* Secondary — white with a hairline, used for filters and utilities */
.chip, .sk-scheme-toggle, .sk-fav-star, .btn--secondary, .btn-secondary {
  background-color: var(--sk26-surface) !important;
  border-color: var(--sk26-stone) !important;
  color: var(--sk26-ink) !important;
  padding: 0 14px;
}

.chip:hover, .sk-scheme-toggle:hover, .sk-fav-star:hover {
  border-color: var(--sk26-graphite) !important;
  background-color: var(--sk26-linen) !important;
}

.chip.is-active, .chip[aria-pressed="true"] {
  background-color: var(--sk26-ink) !important;
  border-color: var(--sk26-ink) !important;
  color: #ffffff !important;
}

/* Icon-only controls stay square so they do not stretch into pills. */
.sk-scheme-toggle, .sk-fav-star, .btn-delete {
  min-width: 44px;
  padding: 0 10px !important;
}

.btn-delete {
  background-color: var(--sk26-surface) !important;
  border-color: var(--sk26-stone) !important;
  color: var(--sk26-graphite) !important;
}

.btn-delete:hover {
  border-color: #b42318 !important;
  color: #b42318 !important;
}

/* Focus: one visible ring everywhere, keyboard users first. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, .chip:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--sk26-accent);
  outline-offset: 2px;
  border-radius: var(--sk26-radius);
}

/* 6. Form controls ---------------------------------------------------------
   One height, one border colour, one radius. The previous set had a 0px border
   on the header search, a #d3cec6 border on the GPA rows, an #e1e8ed border on
   the site search, radii of 0, 3 and 8px, and heights of 38 and 40px. */
input[type="text"], input[type="number"], input[type="email"], input[type="search"],
input[type="url"], input[type="tel"], input[type="password"], select, textarea,
.course-name, .course-grade, .course-units, .gpa-scale-select, .autocomplete {
  font-family: var(--sk26-sans) !important;
  font-size: 0.9375rem !important;
  min-height: 44px;
  border: 1px solid var(--sk26-stone) !important;
  border-radius: var(--sk26-radius) !important;
  background-color: var(--sk26-surface) !important;
  color: var(--sk26-ink) !important;
  padding: 0 12px !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea, .sk-fb-textarea { min-height: 132px; padding: 10px 12px !important; }

input:focus, select:focus, textarea:focus {
  border-color: var(--sk26-accent) !important;
  box-shadow: 0 0 0 3px var(--sk26-accent-soft) !important;
  outline: none;
}

input::placeholder, textarea::placeholder { color: var(--sk26-muted); opacity: 1; }

/* 7. Surfaces --------------------------------------------------------------
   The hero sheet carried a hard 10px offset shadow in a darker cream — a
   deliberate collage effect. Replaced with a hairline and a shadow you should
   not be able to point at. */
.hero__sheet, .sk-card, .sk-tool-card, .sk-media-note, .sk-fb, .sk-tool-section,
.sk-content-hub, .sk-media-guide {
  border-radius: var(--sk26-radius-card) !important;
}

.hero__sheet {
  box-shadow: 0 1px 2px rgba(16, 20, 24, 0.06), 0 12px 28px -16px rgba(16, 20, 24, 0.16) !important;
  border: 1px solid var(--sk26-hairline) !important;
  background-color: var(--sk26-surface) !important;
}

/* Tables: hairline rows, semibold header, no zebra. */
table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid var(--sk26-hairline); padding: 10px 12px; text-align: left; vertical-align: top; }
thead th { font-weight: 600; font-size: 0.875rem; color: var(--sk26-graphite); border-bottom: 1px solid var(--sk26-stone); }
tbody th { font-weight: 600; }

/* 8. Links ----------------------------------------------------------------- */
a {
  color: var(--sk26-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover { color: var(--sk26-accent-hover); }

/* 9. Layout --------------------------------------------------------------- */
.wrap, .sk-wrap, .container { max-width: var(--sk26-max); }

@media (max-width: 640px) {
  :root {
    --sk26-display: clamp(1.75rem, 1.2rem + 2.6vw, 2.15rem);
    --sk26-h2: clamp(1.25rem, 1.05rem + 1vw, 1.5rem);
  }
}
