/* ==========================================================================
   FACTS Learning Centre — Zendesk Guide theme
   Design tokens ported from the FACTS AUNZ Design System.
   Manifest settings are interpolated by Zendesk at compile time.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=IBM+Plex+Mono:wght@400;500;600&display=swap");

/* --------------------------------------------------------------- tokens */
:root {
  /* Brand core */
  --facts-blue: #19659B;
  --facts-blue-700: #12507C;
  --facts-blue-800: #0e3f62;
  --facts-blue-600: #1c74b2;
  --facts-blue-500: #2c87c8;
  --facts-blue-300: #7db6dd;
  --facts-blue-100: #d6e8f5;
  --facts-blue-50: #eff6fb;
  --facts-grey: #6e6e73;

  /* Intelligence layer colours */
  --intel-core-from: #1f557b;
  --intel-core-to: #2b6f9c;
  --intel-academic-from: #a29dcc;
  --intel-academic-to: #3e86c5;
  --intel-engagement-from: #b282b8;
  --intel-engagement-to: #bb69a9;
  --intel-financial-from: #5cc2bf;
  --intel-financial-to: #b0d6a1;
  --intel-success-from: #f1a143;
  --intel-success-to: #fcdb92;

  --grad-core: linear-gradient(90deg, var(--intel-core-from), var(--intel-core-to));
  --grad-academic: linear-gradient(90deg, var(--intel-academic-from), var(--intel-academic-to));
  --grad-engagement: linear-gradient(90deg, var(--intel-engagement-from), var(--intel-engagement-to));
  --grad-financial: linear-gradient(90deg, var(--intel-financial-from), var(--intel-financial-to));
  --grad-success: linear-gradient(90deg, var(--intel-success-from), var(--intel-success-to));

  /* Neutrals */
  --n-0: #ffffff;
  --n-25: #fbfcfd;
  --n-50: #F5F7F9;
  --n-100: #eceff3;
  --n-200: #DEE3E9;
  --n-300: #c5ccd6;
  --n-400: #9aa3af;
  --n-500: #6e6e73;
  --n-600: #565a61;
  --n-700: #3F444B;
  --n-800: #2a2e34;
  --n-900: #171A1E;

  /* Status */
  --success: #1f7148;
  --success-soft: #e6f3ec;
  --warning: #f49828;
  --warning-soft: #fdf0e0;
  --danger: #c44436;
  --danger-soft: #fbeae8;
  --info: #2c87c8;
  --info-soft: #e4f1fa;

  /* Type */
  --font-sans: "Figtree", "Gotham", "Gilroy", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --fs-eyebrow: 12px;
  --ls-eyebrow: 0.09em;

  /* Space */
  --container-max: 1240px;
  --page-pad: 32px;
  --measure: 68ch;
  --control-h-sm: 32px;
  --control-h-md: 40px;
  --control-h-lg: 48px;

  /* Radius */
  --r-pill: 999px;
  --r-control: 8px;
  --r-card: 14px;
  --r-surface: 20px;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(23, 26, 30, 0.06);
  --shadow-sm: 0 1px 3px rgba(23, 26, 30, 0.08), 0 1px 2px rgba(23, 26, 30, 0.04);
  --shadow-md: 0 4px 12px rgba(23, 26, 30, 0.08), 0 1px 3px rgba(23, 26, 30, 0.05);
  --shadow-lg: 0 12px 28px rgba(23, 26, 30, 0.1), 0 2px 6px rgba(23, 26, 30, 0.05);
  --shadow-focus: 0 0 0 3px rgba(25, 101, 155, 0.28);

  /* Semantic */
  --surface-page: var(--n-50);
  --surface-card: var(--n-0);
  --text-heading: var(--n-900);
  --text-body: var(--n-700);
  --text-muted: var(--n-500);
  --text-subtle: var(--n-400);
  --border-default: var(--n-200);
  --border-muted: var(--n-100);
  --text-link: var(--facts-blue);
  --text-link-hover: var(--facts-blue-700);
  --focus-ring: var(--facts-blue);

  /* Motion */
  --ease-standard: cubic-bezier(0.2, 0.6, 0.25, 1);
  --dur-fast: 140ms;
  --dur-base: 220ms;

  /* The layer rail for this help centre. Overridden per-layer below. */
  --layer-gradient: var(--grad-core);
}

[data-layer="core"] { --layer-gradient: var(--grad-core); }
[data-layer="academic"] { --layer-gradient: var(--grad-academic); }
[data-layer="engagement"] { --layer-gradient: var(--grad-engagement); }
[data-layer="financial"] { --layer-gradient: var(--grad-financial); }
[data-layer="success"] { --layer-gradient: var(--grad-success); }

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0ms; --dur-base: 0ms; }
}

/* ----------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--surface-card);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--text-heading); font-weight: 800; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
img { max-width: 100%; }
a { color: var(--text-link); text-decoration: none; }
a:hover { color: var(--text-link-hover); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
code, kbd, samp { font-family: var(--font-mono); font-size: 0.92em; }

.visibility-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-navigation {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  padding: 12px 20px; background: var(--n-0); color: var(--facts-blue);
  font-weight: 700; border-radius: 0 0 var(--r-control) 0;
}
.skip-navigation:focus { left: 0; }

/* ------------------------------------------------------------ primitives */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

.eyebrow {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 800;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-heading { margin: 12px 0 0; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -0.025em; }
.section-description { margin: 12px 0 0; max-width: 60ch; font-size: 17px; line-height: 1.6; color: var(--text-body); }

.link-arrow { font-size: 15px; font-weight: 700; color: var(--facts-blue); white-space: nowrap; }

/* Buttons */
.button,
.button-primary,
.button-secondary,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--control-h-md);
  padding: 0 18px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: var(--r-control);
  border: 1px solid var(--facts-blue);
  background: var(--n-0);
  color: var(--facts-blue);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard);
}
.button:hover, .button-secondary:hover { background: var(--facts-blue-50); text-decoration: none; }
.button:active, .button-secondary:active { background: var(--facts-blue-100); transform: translateY(1px); }

.button-primary,
input[type="submit"] {
  background: var(--facts-blue);
  color: var(--n-0);
  border-color: var(--facts-blue);
}
.button-primary:hover,
input[type="submit"]:hover { background: var(--facts-blue-700); border-color: var(--facts-blue-700); color: var(--n-0); text-decoration: none; }
.button-primary:active,
input[type="submit"]:active { background: var(--facts-blue-800); border-color: var(--facts-blue-800); transform: translateY(1px); }

.button-large { height: var(--control-h-lg); padding: 0 24px; font-size: 16px; }
.button[disabled], input[type="submit"][disabled] { opacity: 0.45; cursor: not-allowed; }

/* Fields */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="date"],
select,
textarea {
  width: 100%;
  min-height: var(--control-h-md);
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-heading);
  background: var(--n-0);
  border: 1px solid var(--n-300);
  border-radius: var(--r-control);
  transition: border-color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard);
}
textarea { min-height: 140px; line-height: 1.6; }
input:hover, select:hover, textarea:hover { border-color: var(--n-400); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--facts-blue);
  box-shadow: var(--shadow-focus);
}
::placeholder { color: var(--n-400); }

label { display: block; font-size: 14px; font-weight: 600; color: var(--text-heading); margin-bottom: 6px; }

/* Cards */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  overflow: hidden;
  transition: box-shadow var(--dur-fast) var(--ease-standard);
}
.card-interactive:hover { box-shadow: var(--shadow-md); }
.card-title { font-size: 18px; line-height: 1.3; letter-spacing: -0.005em; font-weight: 700; color: var(--text-heading); }

/* The one accent-edge pattern the brand licenses: a 4px pill-capped
   gradient rail across the top of a layer-coded card. */
.card-layer { padding-top: 26px; }
.card-layer::before {
  content: "";
  position: absolute;
  left: 24px; right: 24px; top: 0;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--layer-gradient);
}

/* Category cards cycle the five layer gradients so a grid reads as a system. */

/* Layer dot and badge */
.layer-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 16px; height: 16px;
  border-radius: var(--r-pill);
  background: var(--layer-gradient);
}

.layer-badge { display: inline-flex; align-items: center; gap: 10px; }
.layer-badge-label {
  font-size: 12px; font-weight: 700; letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase; color: var(--text-heading); white-space: nowrap;
}

/* Status labels */
.status-label {
  display: inline-block; padding: 2px 10px;
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
  background: var(--n-100); color: var(--n-700);
}
.status-label-open, .status-label-new { background: var(--info-soft); color: var(--info); }
.status-label-pending, .status-label-hold { background: var(--warning-soft); color: #a3620f; }
.status-label-solved, .status-label-closed { background: var(--success-soft); color: var(--success); }

/* ---------------------------------------------------------------- header */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-default);
}
.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 12px var(--page-pad);
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px;
}
.header-brand { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; }
.header-brand:hover { text-decoration: none; }
.header-logo { display: block; height: 34px; width: auto; flex: 0 0 auto; }
.header-rule { display: block; width: 1px; height: 26px; background: var(--border-default); }
.header-name { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: var(--text-heading); white-space: nowrap; }
.header-layer { flex: 0 0 auto; order: 2; }

/* The <nav> wrapper is the flex item, not the list inside it. */
.header-inner > nav { flex: 1 1 auto; order: 4; min-width: 0; }
.header-nav {
  display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap;
  gap: 12px 26px;
  list-style: none; margin: 0; padding: 0;
}
.header-nav a { font-size: 14px; font-weight: 600; color: var(--text-body); white-space: nowrap; }
.header-nav a:hover { color: var(--facts-blue); }
.header-nav .button { color: var(--facts-blue); }

.header-menu-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border-default); border-radius: var(--r-control);
  background: var(--n-0); color: var(--text-body); cursor: pointer;
}

.user-menu { position: relative; }
.user-menu-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  height: var(--control-h-md); padding: 0 10px;
  background: transparent; border: 1px solid transparent; border-radius: var(--r-control);
  font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--text-body);
  cursor: pointer;
}
.user-menu-toggle:hover { background: var(--facts-blue-50); }
.user-avatar { width: 26px; height: 26px; border-radius: var(--r-pill); object-fit: cover; }
.user-menu-list {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 70;
  min-width: 220px; padding: 8px;
  background: var(--n-0); border: 1px solid var(--border-default);
  border-radius: var(--r-card); box-shadow: var(--shadow-lg);
}
.user-menu-list.is-open { display: block; }
.user-menu-list a {
  display: block; padding: 9px 12px; border-radius: var(--r-control);
  font-size: 14px; font-weight: 500; color: var(--text-body);
}
.user-menu-list a:hover { background: var(--facts-blue-50); color: var(--facts-blue); text-decoration: none; }
.user-menu-separator { height: 1px; margin: 6px 4px; background: var(--border-muted); }

/* ------------------------------------------------------------------ hero
   "Header style" setting: rings (2a), blue (2b), orbits (2c) or plain.
   Title and search stay centred in every style. */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--surface-page);
  border-bottom: 1px solid var(--border-default);
  text-align: center;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 780px; margin: 0 auto;
  padding: 84px var(--page-pad) 76px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--facts-blue);
}
.hero-eyebrow img { height: 22px; width: auto; }
.hero-title {
  margin-top: 18px;
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.04; letter-spacing: -0.03em;
}
.hero-inner > .hero-title:first-child { margin-top: 0; }
.hero-description { margin: 16px auto 0; max-width: 56ch; font-size: 19px; line-height: 1.55; color: var(--text-body); }
.hero-search { margin: 34px auto 0; max-width: 640px; text-align: left; }
.hero-search input[type="search"] {
  height: 60px; padding-left: 54px; font-size: 17px;
  border-radius: 14px; background: var(--n-0); box-shadow: var(--shadow-md);
}
.hero-search .search-icon { left: 20px; }

/* 2a  rings: light wash + framework artwork bleeding in from both sides.
   intelligence-ring.png holds the left half of the rings with their centre
   at the middle of the image, so each copy hangs half off the page. The left
   copy is mirrored only (not rotated) so the empty half never swings in. */
.hero-rings { background: var(--facts-blue-50); }
.hero-ring {
  --ring-w: clamp(260px, 38vw, 540px);
  position: absolute; z-index: 1; top: 50%;
  width: var(--ring-w); height: auto; pointer-events: none;
}
.hero-ring-right { right: calc(var(--ring-w) * -0.5); transform: translateY(-50%); }
.hero-ring-left  { left:  calc(var(--ring-w) * -0.5); transform: translateY(-50%) scaleX(-1); opacity: 0.55; }

/* 2b  blue: deep gradient + rounded layer bars in opposite corners */
.hero-blue {
  background: linear-gradient(160deg, var(--facts-blue-800) 0%, var(--facts-blue) 100%);
  border-bottom: 0;
}
.hero-blue .hero-eyebrow { color: #fff; opacity: 0.9; }
.hero-blue .hero-title { color: #fff; }
.hero-blue .hero-description { color: rgba(255, 255, 255, 0.9); }
.hero-blue .hero-search input[type="search"] { border-color: transparent; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.hero-bars { position: absolute; z-index: 1; display: flex; flex-direction: column; gap: 14px; pointer-events: none; }
.hero-bars i { position: relative; display: block; height: 22px; border-radius: 999px; }
.hero-bars i::before { content: ""; position: absolute; top: 0; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); }
.hero-bars-left  { left: -12px;  top: 56px;    align-items: flex-start; }
.hero-bars-left i::before  { right: 0; }
/* Anchored low so the bars stay below the search bar at every width. */
.hero-bars-right { right: -12px; bottom: 16px; align-items: flex-end; }
.hero-bars-right i::before { left: 0; }
.bar-academic   { width: 260px; background: var(--grad-academic); }
.bar-engagement { width: 200px; background: var(--grad-engagement); }
.bar-financial  { width: 300px; background: var(--grad-financial); }
.bar-success    { width: 220px; background: var(--grad-success); }

/* 2c  orbits: white + concentric layer rings + spectrum rail */
.hero-orbits { background: var(--n-0); }
.hero-orbit-field { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.orbit {
  position: absolute; left: 50%; top: 50%;
  border-radius: 50%; padding: 3px; opacity: 0.28;
  transform: translate(-50%, -50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.orbit-1 { width: 520px;  height: 520px;  background: var(--grad-core); }
.orbit-2 { width: 720px;  height: 720px;  background: var(--grad-engagement); }
.orbit-3 { width: 920px;  height: 920px;  background: var(--grad-academic); }
.orbit-4 { width: 1120px; height: 1120px; background: var(--grad-financial); }
.orbit-5 { width: 1320px; height: 1320px; background: var(--grad-success); }
.hero-dot { position: absolute; z-index: 1; width: 26px; height: 26px; border-radius: 50%; }
.hero-dot-1 { left: calc(50% - 330px); top: 70px;    background: var(--grad-engagement); }
.hero-dot-2 { left: calc(50% + 420px); top: 62%;     background: var(--grad-financial); }
.hero-dot-3 { left: calc(50% - 560px); bottom: 40px; background: var(--grad-success); }
.hero-rail {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--intel-core-from), var(--intel-academic-to) 25%, var(--intel-engagement-to) 50%, var(--intel-financial-from) 75%, var(--intel-success-from));
}

/* stop rings from colliding with the heading on medium widths */
@media (max-width: 1100px) {
  .hero-ring { opacity: 0.4; }
  .hero-ring-left { opacity: 0.25; }
  .hero-ring-right { right: calc(var(--ring-w) * -0.62); }
  .hero-ring-left  { left:  calc(var(--ring-w) * -0.62); }
}

/* ---------------------------------------------------------------- search */
.search-form { position: relative; }
.search-form > form, .search-compact > form { position: relative; margin: 0; }
.search-icon { z-index: 1; }
.search-form input[type="search"] { height: var(--control-h-lg); padding-left: 42px; }
.search-form .search-icon, .search-compact .search-icon {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  color: var(--text-subtle); pointer-events: none;
}
.search-form .button-primary { flex: 0 0 auto; height: var(--control-h-lg); }

/* Compact search used in the sub navigation */
.sub-nav {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px 32px;
  padding: 0 0 36px;
}
.sub-nav .search-compact { position: relative; flex: 0 1 340px; min-width: 220px; }
.sub-nav .search-compact input[type="search"] { height: var(--control-h-md); padding-left: 38px; font-size: 14px; }
.sub-nav .search-compact .search-icon { left: 13px; }

/* Zendesk renders its own markup inside {{search}} */
.search input[type="search"] { width: 100%; }

/* Instant search dropdown */
.instant-search-results {
  position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 6px);
  list-style: none; margin: 0; padding: 6px;
  background: var(--n-0); border: 1px solid var(--border-default);
  border-radius: var(--r-card); box-shadow: var(--shadow-lg);
}
.instant-search-results a { display: block; padding: 10px 12px; border-radius: var(--r-control); color: var(--text-body); font-size: 15px; }
.instant-search-results a:hover { background: var(--facts-blue-50); color: var(--facts-blue); text-decoration: none; }

/* ----------------------------------------------------------- breadcrumbs */
.breadcrumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--text-muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--text-subtle); }
.breadcrumbs a { color: var(--text-muted); font-weight: 500; }
.breadcrumbs a:hover { color: var(--facts-blue); }

/* ------------------------------------------------------------- home page */
.home-section { max-width: var(--container-max); margin: 0 auto; padding: 56px var(--page-pad) 0; }
/* Nothing to show (no titled Category box, or no category the viewer can see):
   hide the band and its heading, but never while page links are present. */
.home-section:not(:has(.tile-item, .pagination)) { display: none; }

/* "Who can see this box": restricted boxes stay hidden unless script.js has
   confirmed the viewer is signed in, or is an agent or admin. */
.tile-item[data-audience="signed_in"], .tile-item[data-audience="agents"] { display: none; }
.viewer-signed-in .tile-item[data-audience="signed_in"],
.viewer-agent .tile-item[data-audience="agents"] { display: flex; }
.tiles-header { margin-bottom: 28px; text-align: center; }
.tiles-header .section-description { margin-left: auto; margin-right: auto; }
.tiles-header .section-heading { margin: 0; }

/* ----------------------------------------------------------------- tiles
   One tile pattern for categories (home), sections (category page) and
   sub-sections (section page). The whole tile is the link. */
.tile-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.tile-grid-large { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.tile-grid-compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); margin-bottom: 40px; }
.tile-item { display: flex; }

/* Home: flex rows so a short last row stretches to fill the width. */
.tile-grid-large { display: flex; flex-wrap: wrap; }
.tile-grid-large > .tile-item { flex: 1 1 340px; min-width: min(100%, 300px); }
.tile-grid-large .tile { align-items: center; text-align: center; }
.tile-grid-large .tile-description { max-width: 42ch; }

.tile {
  position: relative;
  display: flex; flex-direction: column; width: 100%;
  min-height: 180px; padding: 28px;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  color: var(--text-body);
  overflow: hidden;
  transition: box-shadow var(--dur-base) var(--ease-standard), border-color var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard);
}
.tile-grid-large .tile { min-height: 230px; padding: 32px; }
.tile-grid-compact .tile { min-height: 0; padding: 20px 22px; }
.tile:hover { text-decoration: none; color: var(--text-body); border-color: var(--facts-blue-300); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tile:focus-visible { outline: none; border-color: var(--facts-blue); box-shadow: var(--shadow-focus); }

.tile-title { font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; color: var(--text-heading); transition: color var(--dur-fast) var(--ease-standard); }
.tile-grid-large .tile-title { font-size: 24px; }
.tile-grid-compact .tile-title { font-size: 17px; }
.tile:hover .tile-title { color: var(--facts-blue); }
.tile-description { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--text-body); }
.tile-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: auto; padding-top: 24px;
  font-size: 14px; font-weight: 700; color: var(--facts-blue);
}
.tile-grid-compact .tile-cta { padding-top: 10px; font-weight: 600; color: var(--text-muted); }
.tile-arrow { flex: 0 0 auto; transition: transform var(--dur-fast) var(--ease-standard); }
.tile:hover .tile-arrow { transform: translateX(3px); }

/* Home tiles carry the layer rail, cycling the five gradients.
   A colour picked in "Category box" settings wins over the cycle. */
.tile.card-layer { padding-top: 34px; }
.tile.card-layer::before { left: 28px; right: 28px; }
.tile-grid > li:nth-child(5n + 1) .card-layer::before { background: var(--grad-core); }
.tile-grid > li:nth-child(5n + 2) .card-layer::before { background: var(--grad-academic); }
.tile-grid > li:nth-child(5n + 3) .card-layer::before { background: var(--grad-engagement); }
.tile-grid > li:nth-child(5n + 4) .card-layer::before { background: var(--grad-financial); }
.tile-grid > li:nth-child(5n + 5) .card-layer::before { background: var(--grad-success); }
.tile-grid > .tile-item[data-layer="core"] .card-layer::before,
.tile-grid > .tile-item[data-layer="academic"] .card-layer::before,
.tile-grid > .tile-item[data-layer="engagement"] .card-layer::before,
.tile-grid > .tile-item[data-layer="financial"] .card-layer::before,
.tile-grid > .tile-item[data-layer="success"] .card-layer::before { background: var(--layer-gradient); }

/* ------------------------------------------------ homepage extra blocks
   1B action band and 1C spotlight (the support bar lives in footer.hbs).
   All content comes from theme settings; a block with nothing in it is
   hidden. */
.home-block { max-width: var(--container-max); margin: 0 auto; padding: 40px var(--page-pad) 0; }
.home-block:not(:has(.action-band > li, .spotlight)) { display: none; }

/* 1B action band: flex so a wrapped last panel stretches (no gaps) */
.action-band {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid var(--facts-blue-800);
  border-radius: 16px; overflow: hidden;
}
.action-band > li { flex: 1 1 260px; display: flex; }
.action-band-item {
  position: relative; flex: 1;
  display: flex; align-items: center; gap: 16px;
  padding: 28px; background: var(--facts-blue-800); color: #fff;
  transition: background-color var(--dur-fast) var(--ease-standard);
}
.action-band-item:hover { background: var(--facts-blue-700); color: #fff; text-decoration: none; }
.action-band-item:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.action-band-item .theme-icon { flex: 0 0 auto; margin: 0; width: 44px; height: 44px; color: #fff; background-color: rgba(255, 255, 255, 0.12); }
.action-band-item .theme-icon::before { background: #fff; }
.action-band-text strong { display: block; font-size: 17px; line-height: 1.3; }
.action-band-text small { display: block; margin-top: 2px; font-size: 14px; opacity: 0.85; }
.action-band-live {
  position: absolute; top: 18px; right: 18px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #5fd08a; box-shadow: 0 0 0 4px rgba(95, 208, 138, 0.25);
}

/* 1C spotlight */
.spotlight {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  background: var(--surface-card); border: 1px solid var(--border-default);
  border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm);
}
.spotlight::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--grad-core); z-index: 1; }
.spotlight-no-image { grid-template-columns: 1fr; text-align: center; }
.spotlight-no-image .spotlight-body { align-items: center; padding: 48px 36px; }
.spotlight-media { min-height: 260px; background: var(--facts-blue-50); }
.spotlight-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.spotlight-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; }
.spotlight-tag {
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--facts-blue); background: var(--facts-blue-50);
  padding: 5px 10px; border-radius: 999px;
}
.spotlight-title { font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; }
.spotlight-description { margin: 0; max-width: 52ch; font-size: 16px; line-height: 1.55; color: var(--text-body); }
.spotlight .pill-button { margin-top: 8px; }

/* shared pill button */
.pill-button {
  display: inline-flex; align-items: center; height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--border-default);
  background: var(--surface-card); color: var(--text-heading);
  font-size: 14px; font-weight: 700; white-space: nowrap;
  transition: border-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard), background-color var(--dur-fast) var(--ease-standard);
}
.pill-button:hover { border-color: var(--facts-blue); color: var(--facts-blue); text-decoration: none; }
.pill-button-primary { background: var(--facts-blue); border-color: var(--facts-blue); color: #fff; }
.pill-button-primary:hover { background: var(--facts-blue-700); border-color: var(--facts-blue-700); color: #fff; }

/* Icons are CSS masks, so they take the text colour. */
.theme-icon { display: none; }
.theme-icon-book, .theme-icon-card, .theme-icon-message, .theme-icon-calendar, .theme-icon-people, .theme-icon-chart, .theme-icon-gear, .theme-icon-school, .theme-icon-shield, .theme-icon-star, .theme-icon-news, .theme-icon-form, .theme-icon-ticket, .theme-icon-payment {
  display: inline-flex; flex: 0 0 auto;
  width: 48px; height: 48px; margin-bottom: 20px;
  border-radius: var(--r-control);
  background: var(--facts-blue-50); color: var(--facts-blue);
}
.theme-icon::before {
  content: ""; display: block; width: 24px; height: 24px; margin: auto;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.theme-icon-book { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4.5A1.5 1.5 0 0 1 5.5 3H11v15H5.5A1.5 1.5 0 0 0 4 19.5z'/%3E%3Cpath d='M20 4.5A1.5 1.5 0 0 0 18.5 3H13v15h5.5a1.5 1.5 0 0 1 1.5 1.5z'/%3E%3C/svg%3E"); }
.theme-icon-card { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='2'/%3E%3Cpath d='M2.5 10h19M6 15h4'/%3E%3C/svg%3E"); }
.theme-icon-message { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3C/svg%3E"); }
.theme-icon-calendar { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.theme-icon-people { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20c.6-3.6 3.2-5.5 6.5-5.5s5.9 1.9 6.5 5.5'/%3E%3Ccircle cx='17' cy='9' r='2.5'/%3E%3Cpath d='M17 14.5c2.4 0 4 1.5 4.5 4'/%3E%3C/svg%3E"); }
.theme-icon-chart { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V4M4 20h16'/%3E%3Cpath d='M8 16v-5M12 16V8M16 16v-3'/%3E%3C/svg%3E"); }
.theme-icon-gear { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2.5v3M12 18.5v3M2.5 12h3M18.5 12h3M5.3 5.3l2.1 2.1M16.6 16.6l2.1 2.1M5.3 18.7l2.1-2.1M16.6 7.4l2.1-2.1'/%3E%3C/svg%3E"); }
.theme-icon-school { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9l10-5 10 5-10 5z'/%3E%3Cpath d='M6 11v5c0 1.5 2.7 3 6 3s6-1.5 6-3v-5'/%3E%3C/svg%3E"); }
.theme-icon-shield { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 4.5-3.4 8-8 9-4.6-1-8-4.5-8-9V6z'/%3E%3C/svg%3E"); }
.theme-icon-star { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5l2.6 5.3 5.9.9-4.3 4.1 1 5.8L12 16.9l-5.2 2.7 1-5.8-4.3-4.1 5.9-.9z'/%3E%3C/svg%3E"); }

.theme-icon-news { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10v4a1 1 0 0 0 1 1h2l5 4V5L6 9H4a1 1 0 0 0-1 1z'/%3E%3Cpath d='M15 9a4 4 0 0 1 0 6M18 6a8 8 0 0 1 0 12'/%3E%3C/svg%3E"); }
.theme-icon-form { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6.5A1.5 1.5 0 0 0 5 4.5v15A1.5 1.5 0 0 0 6.5 21h11a1.5 1.5 0 0 0 1.5-1.5V8z'/%3E%3Cpath d='M14 3v5h5M8.5 12.5h7M8.5 16h5'/%3E%3C/svg%3E"); }
.theme-icon-ticket { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8a2 2 0 0 0 0 4v0a2 2 0 0 1 0 4v2a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1v-2a2 2 0 0 1 0-4 2 2 0 0 1 0-4V6a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1z'/%3E%3Cpath d='M14 5v2M14 11v2M14 17v2'/%3E%3C/svg%3E"); }
.theme-icon-payment { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M14.8 9.2c-.5-.9-1.6-1.4-2.8-1.4-1.6 0-2.8.8-2.8 2.1 0 3 5.6 1.5 5.6 4.3 0 1.3-1.3 2.1-2.8 2.1-1.3 0-2.4-.6-2.9-1.5M12 6v1.8M12 16.2V18'/%3E%3C/svg%3E"); }

/* Used by the search results empty state. */
.split-heading { margin: 0; font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; }

/* --------------------------------------------------- category / section */
/* ---------------------------------------------------------- category page
   Overview band (shared with the section page) + section tiles (4c). */
.category-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--facts-blue-50);
  border-bottom: 1px solid var(--facts-blue-100);
}
/* The ring sits in a layer that starts below the breadcrumbs/search row and
   fades in over 56px, so it can never sit behind the search whatever the
   band's height. intelligence-ring.png is the left half of the rings with
   their centre mid-image (as in the header): the centre sits on the page
   edge and the bottom anchor shows the artwork's complete middle band. */
.category-band-art {
  position: absolute; z-index: 0; left: 0; right: 0; top: 72px; bottom: 0;
  overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 56px);
          mask-image: linear-gradient(to bottom, transparent, #000 56px);
}
.category-band-ring {
  --ring-w: clamp(260px, 34vw, 460px);
  position: absolute; bottom: calc(var(--ring-w) * -0.21);
  right: calc(var(--ring-w) * -0.5);
  width: var(--ring-w); height: auto;
  opacity: 0.75;
}
.category-band-inner {
  position: relative; z-index: 1;
  max-width: var(--container-max); margin: 0 auto;
  padding: 28px var(--page-pad) 48px;
}
.category-band .sub-nav { padding-bottom: 0; }
.category-band .search-compact input[type="search"] { background: var(--n-0); }
.category-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 40px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--facts-blue);
}
.category-eyebrow i { width: 22px; height: 4px; border-radius: 2px; background: var(--layer-gradient); }
.category-title { margin-top: 10px; max-width: 18ch; font-size: clamp(32px, 4.4vw, 50px); line-height: 1.05; letter-spacing: -0.03em; }
.category-band .sub-nav + .category-title { margin-top: 40px; }
.category-band .category-description { margin: 14px 0 0; max-width: 58ch; font-size: 18px; line-height: 1.55; color: var(--text-body); }
.category-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.category-stats[hidden] { display: none; }
.category-stat {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  border-radius: 999px; background: var(--n-0); border: 1px solid var(--facts-blue-100);
  font-size: 14px; font-weight: 600; color: var(--text-heading);
}
.category-stat b { color: var(--facts-blue); }

.category-body { padding-top: 40px; padding-bottom: 24px; }

/* tile list: flex so the last row stretches */
.section-tiles {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 20px;
  counter-reset: section;
}
.section-tile, .section-feature { display: flex; }
.section-tile { flex: 1 1 300px; min-width: min(100%, 280px); }
.section-feature { flex: 1 1 100%; order: -1; }   /* always first, full width */

/* gradient per tile, cycling the five layers (older browsers: all core) */
.section-tile { --g: var(--grad-core); }
.section-tile:nth-child(5n + 2 of .section-tile) { --g: var(--grad-academic); }
.section-tile:nth-child(5n + 3 of .section-tile) { --g: var(--grad-engagement); }
.section-tile:nth-child(5n + 4 of .section-tile) { --g: var(--grad-financial); }
.section-tile:nth-child(5n + 5 of .section-tile) { --g: var(--grad-success); }

/* standard tile */
.section-tile-link {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; width: 100%; min-height: 220px;
  padding: 26px;
  background: var(--surface-card); color: var(--text-body);
  border: 1px solid var(--border-default); border-radius: 18px;
  box-shadow: var(--shadow-sm);
  counter-increment: section;
  transition: transform var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard), border-color var(--dur-base) var(--ease-standard);
}
.section-tile-link::after {
  content: ""; position: absolute; right: -60px; bottom: -60px;
  width: 180px; height: 180px; border-radius: 50%; padding: 14px;
  background: var(--g); opacity: 0.16; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition: opacity var(--dur-base) var(--ease-standard), transform 320ms var(--ease-standard);
}
.section-tile-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--text-body); text-decoration: none; }
.section-tile-link:hover::after { opacity: 0.4; transform: scale(1.08); }
.section-tile-link:focus-visible { outline: none; border-color: var(--facts-blue); box-shadow: var(--shadow-focus); }

.section-tile-number::before {
  content: counter(section, decimal-leading-zero);
  font-size: 13px; font-weight: 800; letter-spacing: 0.06em;
  background: var(--g); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-tile-title { margin-top: auto; padding-top: 28px; max-width: 18ch; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; color: var(--text-heading); }
.section-tile-link:hover .section-tile-title { color: var(--facts-blue); }
.section-tile-description { position: relative; z-index: 1; margin: 8px 0 0; max-width: 36ch; font-size: 14px; line-height: 1.5; }
.section-tile-cta {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-size: 14px; font-weight: 700; color: var(--facts-blue);
}
.section-tile-link:hover .tile-arrow, .section-feature-link:hover .tile-arrow { transform: translateX(3px); }

/* featured "Start here" banner */
.section-feature-link {
  position: relative; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; width: 100%;
  padding: 30px 32px;
  background: linear-gradient(120deg, var(--facts-blue-800), var(--facts-blue));
  color: #fff; border-radius: 18px; box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard);
}
.section-feature-link::after {
  content: ""; position: absolute; right: -80px; bottom: -120px;
  width: 260px; height: 260px; border-radius: 50%; padding: 16px;
  background: var(--grad-success); opacity: 0.35; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.section-feature-link:hover { color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.section-feature-link:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.section-feature-text { position: relative; z-index: 1; flex: 1 1 380px; min-width: 0; }
.section-feature-tag { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; opacity: 0.9; }
.section-feature-title { margin-top: 6px; font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; color: #fff; }
.section-feature-description { margin: 8px 0 0; max-width: 56ch; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, 0.88); }
.section-feature-button {
  position: relative; z-index: 1; margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 999px; background: #fff; color: var(--facts-blue-800);
  font-size: 14px; font-weight: 700; white-space: nowrap;
}

/* ----------------------------------------------------------- section page
   Same band as the category page + article cards (5a). */
.section-back {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 36px;
  font-size: 13px; font-weight: 700; color: var(--facts-blue);
}
.section-back:hover { text-decoration: none; color: var(--facts-blue-700); }
.section-back[hidden] { display: none; }
.section-back + .category-title { margin-top: 10px; }
.section-band-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.section-band-row:not(:has(> :not([hidden]))) { display: none; }
[data-section-count][hidden] { display: none; }

/* Follow: style whatever element the {{subscribe}} helper renders */
.section-follow { display: inline-flex; }
.section-follow button,
.section-follow a,
.section-follow [role="button"] {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 16px; margin: 0;
  border-radius: 999px; border: 1px solid var(--facts-blue);
  background: var(--n-0); color: var(--facts-blue);
  font-family: var(--font-sans); font-size: 14px; font-weight: 700; line-height: 1;
  cursor: pointer; box-shadow: none; text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.section-follow button:hover,
.section-follow a:hover,
.section-follow [role="button"]:hover,
.section-follow [aria-pressed="true"],
.section-follow [data-selected="true"] { background: var(--facts-blue); color: #fff; }
.section-follow button:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

/* article cards: flex so the last row stretches */
.article-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.article-card-item { display: flex; flex: 1 1 320px; min-width: min(100%, 280px); }
.article-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px; width: 100%;
  padding: 24px;
  background: var(--surface-card); color: var(--text-body);
  border: 1px solid var(--border-default); border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard), border-color var(--dur-base) var(--ease-standard);
}
.article-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: var(--layer-gradient);
  transform: scaleX(0); transform-origin: left;
  transition: transform 320ms var(--ease-standard);
}
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--facts-blue-100); color: var(--text-body); text-decoration: none; }
.article-card:hover::before { transform: scaleX(1); }
.article-card:focus-visible { outline: none; border-color: var(--facts-blue); box-shadow: var(--shadow-focus); }

.article-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.article-card-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--facts-blue-50); color: var(--facts-blue); }
.article-card-badges { display: inline-flex; align-items: center; gap: 8px; }
.article-card-star { color: var(--intel-success-from); }
.article-card-internal {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px;
  border-radius: 999px; background: var(--surface-page); border: 1px solid var(--border-default);
  font-size: 12px; font-weight: 700; color: var(--text-muted); white-space: nowrap;
}
.article-card-title { font-size: 19px; line-height: 1.25; font-weight: 700; color: var(--text-heading); transition: color var(--dur-fast) var(--ease-standard); }
.article-card:hover .article-card-title { color: var(--facts-blue); }
.article-card-summary {
  margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-body);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card-summary[hidden] { display: none; }
.article-card-footer { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-muted); }
.article-card-cta { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-weight: 700; color: var(--facts-blue); }
.article-card:hover .tile-arrow { transform: translateX(3px); }
.category-body .tile-grid-compact + .article-cards,
.category-body .pagination + .article-cards { margin-top: 32px; }

.empty-state { padding: 40px 0; font-size: 16px; color: var(--text-muted); }

.page-header { padding: 8px 0 32px; border-bottom: 1px solid var(--border-default); margin-bottom: 32px; }
.page-header h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.03em; }
.page-header-description { margin: 14px 0 0; max-width: var(--measure); font-size: 17px; color: var(--text-body); }
.page-header-actions { margin-top: 20px; }

.section-tree { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; padding-bottom: 76px; }
.section-tree > li { display: flex; list-style: none; }
.section-tree .card { width: 100%; }
.section-tree-title { font-size: 18px; line-height: 1.3; font-weight: 700; }
.section-tree-title a { color: var(--text-heading); }
.section-tree-title a:hover { color: var(--facts-blue); }

.article-list { list-style: none; margin: 14px 0 0; padding: 0; }
.article-list-item { display: flex; align-items: baseline; gap: 8px; border-bottom: 1px solid var(--border-default); }
.article-list-item:last-child { border-bottom: 0; }
.article-list-link { display: block; flex: 1 1 auto; padding: 11px 0; font-size: 15px; font-weight: 500; color: var(--text-body); line-height: 1.45; }
.article-list-link:hover { color: var(--facts-blue); text-decoration: none; }
.see-all-articles { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--facts-blue); }

.icon-star { color: var(--warning); flex: 0 0 auto; }
.icon-lock { color: var(--text-subtle); flex: 0 0 auto; }

/* --------------------------------------------------------- article page */
.article-layout { display: flex; gap: 56px; align-items: flex-start; padding-bottom: 76px; }
.article-sidebar { flex: 0 0 280px; position: sticky; top: 96px; }
.article-sidebar ul { list-style: none; margin: 12px 0 0; padding: 0; }
.sidenav-title { display: block; font-size: var(--fs-eyebrow); font-weight: 800; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--text-muted); }
.sidenav-item {
  display: block; padding: 9px 12px; margin-left: -12px;
  border-radius: var(--r-control);
  font-size: 14px; line-height: 1.45; color: var(--text-body);
}
.sidenav-item:hover { background: var(--facts-blue-50); color: var(--facts-blue); text-decoration: none; }
.sidenav-item.current-article { background: var(--facts-blue-50); color: var(--facts-blue); font-weight: 600; }

.article { flex: 1 1 auto; min-width: 0; max-width: 76ch; }
.article-header { padding-bottom: 24px; border-bottom: 1px solid var(--border-default); }
.article-title { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.03em; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 16px; font-size: 14px; color: var(--text-muted); }
.article-meta .avatar { display: flex; align-items: center; gap: 8px; }
.article-subscribe { margin-top: 18px; }

.article-body { padding: 32px 0; font-size: 17px; line-height: 1.7; color: var(--text-body); }
.article-body > * + * { margin-top: 1.15em; }
.article-body h2 { margin-top: 2em; font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; }
.article-body h3 { margin-top: 1.6em; font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
.article-body h4 { margin-top: 1.4em; font-size: 17px; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li + li { margin-top: 0.4em; }
.article-body img { border-radius: var(--r-card); border: 1px solid var(--border-default); }
.article-body blockquote {
  margin: 0; padding: 4px 0 4px 20px;
  border-left: 4px solid var(--facts-blue-300);
  color: var(--text-body);
}
.article-body pre {
  padding: 16px; overflow-x: auto;
  background: var(--n-50); border: 1px solid var(--border-default); border-radius: var(--r-control);
  font-family: var(--font-mono); font-size: 14px;
}
.article-body table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.article-body th, .article-body td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border-default); }
.article-body th { font-weight: 700; color: var(--text-heading); background: var(--n-50); }
.article-body hr { border: 0; border-top: 1px solid var(--border-default); }

.attachments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.attachment-item { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.attachment-meta { color: var(--text-muted); }

.article-footer { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; padding: 24px 0; border-top: 1px solid var(--border-default); }
.article-share ul { list-style: none; display: flex; gap: 12px; margin: 0; padding: 0; }

.article-votes { padding: 28px 24px; margin: 8px 0 32px; text-align: center; background: var(--surface-page); border: 1px solid var(--border-default); border-radius: var(--r-surface); }
.article-votes-question { font-size: 17px; }
.article-votes-controls { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.article-vote { min-width: 96px; }
.article-votes-count { display: block; margin-top: 12px; font-size: 13px; color: var(--text-muted); }

.article-relatives { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; padding: 32px 0; border-top: 1px solid var(--border-default); }
.article-relatives h3 { font-size: var(--fs-eyebrow); font-weight: 800; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--text-muted); }
.article-relatives ul { list-style: none; margin: 12px 0 0; padding: 0; }
.article-relatives li + li { margin-top: 8px; }
.article-relatives a { font-size: 15px; font-weight: 500; color: var(--text-body); }
.article-relatives a:hover { color: var(--facts-blue); }

.article-more-questions { padding: 24px 0; font-size: 15px; color: var(--text-muted); }
.article-return-to-top { padding-bottom: 24px; }

/* ------------------------------------------------------------- comments */
.comments { padding-top: 32px; border-top: 1px solid var(--border-default); }
.comment-heading { font-size: 22px; letter-spacing: -0.01em; }
.comment-callout { font-size: 14px; color: var(--text-muted); margin-top: 6px; }
.comment-list { list-style: none; margin: 24px 0 0; padding: 0; }
.comment { padding: 20px 0; border-bottom: 1px solid var(--border-default); }
.comment-author { display: flex; align-items: center; gap: 12px; }
.comment-meta { font-size: 14px; }
.comment-meta .meta-data { color: var(--text-muted); }
.comment-body { margin-top: 12px; font-size: 15px; line-height: 1.65; }
.comment-form { margin-top: 28px; display: flex; gap: 16px; align-items: flex-start; }
.comment-container { flex: 1 1 auto; min-width: 0; }
.comment-form-controls { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.vote { display: inline-flex; align-items: center; gap: 6px; }
.vote-sum { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--text-muted); }

/* -------------------------------------------------------- search results */
.search-results-layout { display: flex; gap: 48px; align-items: flex-start; padding-bottom: 76px; }
.search-results-sidebar { flex: 0 0 240px; }
.search-results-sidebar + .search-results-main { min-width: 0; }
.search-results-main { flex: 1 1 auto; min-width: 0; }
.search-results-count { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.search-result-list { list-style: none; margin: 0; padding: 0; }
.search-result {
  padding: 22px 0;
  border-bottom: 1px solid var(--border-default);
}
.search-result-title { font-size: 18px; line-height: 1.35; font-weight: 700; }
.search-result-title a { color: var(--text-heading); }
.search-result-title a:hover { color: var(--facts-blue); }
.search-result-description { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--text-body); }
.search-result-meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--text-muted); }
.search-result-votes { font-variant-numeric: tabular-nums; }
.search-no-results { padding: 48px 0; }

.filter-group + .filter-group { margin-top: 28px; }
.filter-list { list-style: none; margin: 12px 0 0; padding: 0; }
.filter-list .sidenav-item { display: flex; justify-content: space-between; gap: 12px; }
.filter-list .sidenav-item.current { background: var(--facts-blue-50); color: var(--facts-blue); font-weight: 600; }
.doc-count { color: var(--text-subtle); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------- requests / profile */
.page-narrow { max-width: 880px; }
.my-activities-header { padding: 40px 0 24px; }
.my-activities-nav { border-bottom: 1px solid var(--border-default); background: var(--surface-page); }
.collapsible-nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.collapsible-nav-list a { display: block; padding: 16px 0; font-size: 15px; font-weight: 600; color: var(--text-body); border-bottom: 2px solid transparent; }
.collapsible-nav-list a:hover { color: var(--facts-blue); text-decoration: none; }
.collapsible-nav-list .current a { color: var(--facts-blue); border-bottom-color: var(--facts-blue); }

.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th {
  padding: 10px 12px; text-align: left;
  font-size: var(--fs-eyebrow); font-weight: 800; letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--text-muted); border-bottom: 1px solid var(--border-default);
}
.table td { padding: 14px 12px; border-bottom: 1px solid var(--border-default); vertical-align: top; }
.table tbody tr:hover { background: var(--n-50); }
.striped-list-title { font-weight: 600; color: var(--text-heading); }
.striped-list-title:hover { color: var(--facts-blue); }
.no-activities { padding: 48px 0; color: var(--text-muted); }

.requests-table-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin-bottom: 24px; }
.requests-table-toolbar .search { position: relative; flex: 1 1 260px; }
.request-table-filter { flex: 0 1 200px; }
.requests-table-meta { display: none; }

.request-layout { display: flex; gap: 48px; align-items: flex-start; padding-bottom: 76px; }
.request-main { flex: 1 1 auto; min-width: 0; }
.request-sidebar { flex: 0 0 300px; }
.request-details { margin: 0; padding: 20px; background: var(--surface-page); border: 1px solid var(--border-default); border-radius: var(--r-surface); }
.request-details + .request-details { margin-top: 16px; }
.request-details dt { font-size: var(--fs-eyebrow); font-weight: 800; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--text-muted); }
.request-details dd { margin: 4px 0 16px; font-size: 15px; color: var(--text-heading); }
.request-details dd:last-child { margin-bottom: 0; }
.request-collaborators { list-style: none; margin: 0; padding: 0; }

.form { max-width: 720px; padding-bottom: 76px; }
.form .form-field { margin-bottom: 22px; }
.form .form-field .nesty-input { border-radius: var(--r-control); }

.user-profile-header { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding: 40px 0 32px; }
.user-profile-avatar { width: 72px; height: 72px; border-radius: var(--r-pill); object-fit: cover; }
.user-profile-stats { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 32px; }
.user-profile-stat-value { display: block; font-size: 24px; font-weight: 800; color: var(--text-heading); font-variant-numeric: tabular-nums; }
.user-profile-stat-label { display: block; font-size: var(--fs-eyebrow); font-weight: 800; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--text-muted); }

/* ------------------------------------------------------------ pagination */
.pagination { display: flex; justify-content: center; gap: 6px; list-style: none; margin: 32px 0; padding: 0; }
.pagination li a, .pagination li span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border-radius: var(--r-control);
  font-size: 14px; font-weight: 600; color: var(--text-body);
}
.pagination li a:hover { background: var(--facts-blue-50); color: var(--facts-blue); text-decoration: none; }
.pagination .pagination-current { background: var(--facts-blue); color: var(--n-0); }

/* ------------------------------------------------------------ error page */
.error-page { max-width: var(--container-max); margin: 0 auto; padding: 96px var(--page-pad); text-align: center; }
.error-page h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.03em; }
.error-page h2 { margin-top: 16px; font-size: 20px; font-weight: 600; color: var(--text-body); }
.error-page p { margin-top: 12px; color: var(--text-muted); }
.error-page .button { margin-top: 28px; }

/* ---------------------------------------------------------------- footer
   "Footer style" setting: auto (match the header), rings (3a), blue (3b),
   orbits (3c) or plain. The support bar is the Help settings at the top.
   Decoration is always in the markup; each style switches its own on. */
.footer {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: 96px;
  background: var(--surface-page);
  border-top: 1px solid var(--border-default);
  color: var(--text-body);
}
.footer-inner {
  position: relative; z-index: 2;
  max-width: var(--container-max); margin: 0 auto;
  padding: 48px var(--page-pad) 32px;
}

/* support bar */
.footer-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-help-title { font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; color: var(--text-heading); }
.footer-help-description { margin: 6px 0 0; font-size: 15px; color: var(--text-body); }
.footer-help-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-divider { border: 0; height: 1px; margin: 36px 0 28px; background: var(--border-default); }

/* base row */
.footer-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.footer-brand { display: inline-flex; align-items: center; gap: 14px; color: var(--text-heading); }
.footer-brand:hover { text-decoration: none; color: var(--text-heading); }
.footer-logo { display: block; height: 36px; width: auto; }
.footer-logo-white { display: none; }
.footer-brand-rule { width: 1px; height: 24px; background: currentColor; opacity: 0.25; }
.footer-brand-name { font-size: 15px; font-weight: 700; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 26px; list-style: none; margin: 0; padding: 0; }
.footer-nav a { font-size: 14px; font-weight: 500; color: var(--text-body); }
.footer-nav a:hover { color: var(--facts-blue); }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.footer-meta:not(:has(*)) { display: none; }
.footer-note { font-size: 13px; color: var(--text-muted); }
.footer-locale select { width: auto; min-width: 160px; height: var(--control-h-sm); padding: 0 10px; font-size: 14px; }

/* decoration: hidden unless the style turns it on */
.footer-ring-wrap, .footer-bars, .footer-rail, .footer-arcs { display: none; position: absolute; pointer-events: none; }

/* plain */
.footer-plain .footer-help { padding: 28px 32px; background: var(--surface-card); border: 1px solid var(--border-default); border-radius: 16px; }
.footer-plain .footer-divider { background: transparent; margin: 20px 0 8px; }

/* 3a  rings: floating card overlapping a light wash */
.footer-rings { background: var(--facts-blue-50); border-top: 0; }
/* overflow-y must be visible for the card to overhang; clip x so the ring
   can't widen the page. */
.footer-rings.has-help { margin-top: 140px; overflow: visible; overflow-x: clip; }
.footer-rings .footer-inner { padding-top: 0; }
.footer-rings:not(.has-help) .footer-inner { padding-top: 48px; }
.footer-rings .footer-help {
  position: relative;
  /* Fixed lift (≈ half the desktop card) rather than -50%: a card that wraps
     tall on phones would otherwise climb into the page content above. */
  transform: translateY(-64px); margin-bottom: -40px;
  padding: 32px 36px;
  background: var(--surface-card); border: 1px solid var(--border-default);
  border-radius: 18px; box-shadow: var(--shadow-lg);
}
.footer-rings .footer-help::before {
  content: ""; position: absolute; left: 36px; right: 36px; top: 0; height: 5px;
  border-radius: 0 0 4px 4px; background: var(--grad-core);
}
.footer-rings .footer-divider { display: none; }
/* Text that can sit over the ring is one step darker than usual so it keeps
   4.5:1 over the inner (dark blue) ring. */
.footer-rings .footer-note { color: var(--n-600); }
.footer-rings .footer-nav a { color: var(--text-heading); }
.footer-rings .footer-nav a:hover { color: var(--facts-blue); }
.footer-rings .footer-meta { padding-top: 24px; border-top: 1px solid var(--facts-blue-100); margin-top: 28px; }
/* The ring art is the left half of the rings with their centre mid-image
   (same file as the header). Centre it on the page edge so the arcs run off
   the side, and anchor it so the footer shows the complete middle band of the
   artwork, not the faded top. The wrapper clips it to the footer box. */
.footer-ring-wrap { inset: 0; z-index: 1; overflow: hidden; }
.footer-rings .footer-ring-wrap { display: block; }
.footer-ring {
  --fr-w: 520px;
  position: absolute; display: block; width: var(--fr-w); height: auto;
  right: calc(var(--fr-w) * -0.5); bottom: calc(var(--fr-w) * -0.21);
  opacity: 0.55;
}

/* 3b  blue: one deep band */
.footer-blue {
  background: linear-gradient(160deg, var(--facts-blue) 0%, var(--facts-blue-800) 100%);
  border-top: 0; color: #fff;
}
.footer-blue .footer-inner { padding-top: 56px; }
.footer-blue :focus-visible { outline-color: #fff; }
.footer-blue .footer-help-title { color: #fff; }
.footer-blue .footer-help-description { color: rgba(255, 255, 255, 0.88); }
.footer-blue .pill-button { background: transparent; border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.footer-blue .pill-button:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; color: #fff; }
.footer-blue .pill-button-primary { background: #fff; border-color: #fff; color: var(--facts-blue-800); }
.footer-blue .pill-button-primary:hover { background: var(--facts-blue-50); color: var(--facts-blue-800); }
.footer-blue .footer-divider { background: rgba(255, 255, 255, 0.16); margin: 40px 0 28px; }
.footer-blue .footer-brand, .footer-blue .footer-brand:hover { color: #fff; }
.footer-blue .footer-logo-colour { display: none; }
.footer-blue .footer-logo-white { display: block; }
.footer-blue .footer-nav a { color: rgba(255, 255, 255, 0.9); }
.footer-blue .footer-nav a:hover { color: #fff; }
.footer-blue .footer-note { color: rgba(255, 255, 255, 0.85); }
.footer-blue .footer-locale select { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.footer-blue .footer-bars { display: flex; z-index: 1; right: -12px; top: 6px; flex-direction: column; align-items: flex-end; gap: 12px; }
.footer-bars i { position: relative; display: block; height: 18px; border-radius: 999px; }
.footer-bars i::before { content: ""; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); }
.footer-bars .bar-financial { width: 200px; background: var(--grad-financial); }
.footer-bars .bar-success   { width: 140px; background: var(--grad-success); }

/* 3c  orbits: white, centred, arcs rising from the bottom */
.footer-orbits { background: var(--n-0); border-top: 0; text-align: center; }
.footer-orbits .footer-inner { padding-top: 64px; }
.footer-orbits .footer-help { flex-direction: column; justify-content: center; }
.footer-orbits .footer-help-description { margin-left: auto; margin-right: auto; }
.footer-orbits .footer-help-actions { justify-content: center; }
.footer-orbits .footer-divider { background: transparent; margin: 28px 0; }
.footer-orbits .footer-base, .footer-orbits .footer-meta { flex-direction: column; justify-content: center; gap: 16px; }
.footer-orbits .footer-nav { justify-content: center; }
.footer-orbits .footer-rail {
  display: block; z-index: 3; left: 0; right: 0; top: 0; height: 6px;
  background: linear-gradient(90deg, var(--intel-core-from), var(--intel-academic-to) 25%, var(--intel-engagement-to) 50%, var(--intel-financial-from) 75%, var(--intel-success-from));
}
.footer-orbits .footer-arcs { display: block; inset: 0; z-index: 1; }
.arc {
  position: absolute; left: 50%; top: 100%;
  border-radius: 50%; padding: 3px; opacity: 0.24;
  transform: translate(-50%, -50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.arc-1 { width: 520px;  height: 520px;  background: var(--grad-core); }
.arc-2 { width: 760px;  height: 760px;  background: var(--grad-engagement); }
.arc-3 { width: 1000px; height: 1000px; background: var(--grad-academic); }
.arc-4 { width: 1240px; height: 1240px; background: var(--grad-financial); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .article-layout, .search-results-layout, .request-layout { gap: 32px; }
  .article-sidebar { flex-basis: 240px; }
  .request-sidebar { flex-basis: 260px; }
}

@media (max-width: 900px) {
  :root { --page-pad: 20px; }

  .header-menu-toggle { display: inline-flex; order: 3; margin-left: auto; }
  .header-inner > nav { order: 5; flex-basis: 100%; }
  .header-nav {
    display: none; flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 2px; padding: 8px 0 12px;
  }
  .header-nav.is-open { display: flex; }
  .header-nav > li > a { padding: 10px 0; }
  .header-nav .button { width: 100%; margin-top: 8px; }
  .user-menu-list { position: static; display: block; box-shadow: none; border: 0; padding: 0; }

  .hero-inner { padding: 52px var(--page-pad) 48px; }
  .hero-ring { opacity: 0.3; }
  .hero-bars { transform: scale(0.6); transform-origin: right bottom; }
  .hero-bars-left { top: 10px; transform-origin: left top; }
  .hero-bars-right { bottom: 8px; }
  .hero-dot { display: none; }
  .home-section { padding-top: 36px; }
  .tile-grid-large .tile { min-height: 0; padding: 26px; }
  .tile-grid-large .tile-title { font-size: 21px; }
  .category-band-inner { padding-bottom: 36px; }
  .category-band-ring { opacity: 0.3; }
  .category-eyebrow { margin-top: 28px; }
  .category-body { padding-top: 28px; }
  .section-tile-link { min-height: 0; padding: 22px; }
  .section-tile-title { padding-top: 18px; font-size: 20px; }
  .section-feature-link { padding: 24px; }
  .section-feature-button { margin-left: 0; }
  .section-back { margin-top: 24px; }
  .article-card { padding: 20px; }
  .article-card-title { font-size: 18px; }

  .article-layout, .search-results-layout, .request-layout { flex-direction: column; }
  .article-sidebar, .search-results-sidebar, .request-sidebar { position: static; flex-basis: auto; width: 100%; }

  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 16px 0; border-bottom: 1px solid var(--border-default); }
  .table td { border: 0; padding: 2px 0; }
  .requests-table-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 8px; }
  .requests-table-info + td, .requests-table-status { display: none; }

  .home-block { padding-top: 28px; }
  .spotlight { grid-template-columns: 1fr; }
  .spotlight-media { min-height: 180px; }
  .spotlight-body { padding: 28px; }
  .action-band-item { padding: 22px; }
}

@media (max-width: 560px) {
  .hero-title { font-size: 34px; }
  .search-form .button-primary { width: 100%; }
  .footer-inner { padding-left: 20px; padding-right: 20px; }
  .footer-help { flex-direction: column; align-items: flex-start; }
  .footer-orbits .footer-help { align-items: center; }
  .footer-rings .footer-help { padding: 26px; }
  .footer-ring { --fr-w: 320px; opacity: 0.3; }
  .footer-blue .footer-bars { transform: scale(0.7); transform-origin: right top; }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .footer-orbits .footer-base { align-items: center; }
}

@media print {
  .header, .footer, .article-sidebar, .article-votes, .comments, .sub-nav { display: none !important; }
  .article { max-width: none; }
}
