/* ==========================================================================
   Sovereign Terminal - main.css (light edition)
   Design: bright, airy editorial. Soft blue-white surfaces, rounded white
   cards with gentle shadows, one confident blue for brand and interaction,
   and green/red reserved strictly for price direction. Lexend (headlines
   and figures) + DM Sans (body) + Caveat (handwritten hero notes).
   ========================================================================== */

/* -- 1. Design tokens ------------------------------------------------------ */
:root {
  /* Surfaces */
  --bg: #f6f9ff;
  --bg-soft: #eef4ff;
  --surface: #ffffff;
  --surface-2: #f3f7ff;
  --surface-3: #e8f0ff;

  /* Lines */
  --border: #e3eaf6;
  --border-strong: #d2ddf0;

  /* Type */
  --text: #0b1a3a;
  --text-body: #26344f;
  --text-muted: #56637e;
  --text-faint: #8592ab;

  /* Brand blue */
  --primary: #1d6bff;
  --primary-hi: #3f83ff;
  --primary-deep: #0d52df;
  --primary-soft: #e8f0ff;
  --primary-line: rgba(29, 107, 255, 0.24);
  --violet: #7d63ff;
  --grad: linear-gradient(135deg, #1d6bff 0%, #4a8cff 100%);
  --grad-cta: linear-gradient(112deg, #125dff 0%, #357bff 46%, #8469ff 100%);

  /* Price direction - never used for decoration */
  --up: #0f9f5c;
  --up-soft: #e2f7ec;
  --down: #e0454b;
  --down-soft: #fdeced;

  /* Footer */
  --navy: #0a1633;
  --navy-2: #12224a;

  /* Fonts */
  --font-head: "Lexend", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-hand: "Caveat", "Segoe Print", cursive;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Radii - generous, everything is a soft card */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-full: 9999px;

  /* Shadows - blue-tinted so white cards float on the blue-white page */
  --shadow-sm: 0 2px 10px rgba(22, 56, 130, 0.05);
  --shadow: 0 12px 32px rgba(22, 56, 130, 0.08);
  --shadow-lg: 0 26px 60px rgba(22, 56, 130, 0.14);
  --shadow-primary: 0 10px 24px rgba(29, 107, 255, 0.3);

  /* Layout */
  --container-max: 1240px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 76px;
  --sec-pad: clamp(3.25rem, 6vw, 5.5rem);
}

/* -- 2. Reset & base ------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  background: var(--bg);
  color-scheme: light;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  background-color: var(--bg);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.16s ease;
}

button {
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
}

::selection {
  background: var(--primary);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  font-size: 1.25em;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
  user-select: none;
}

@keyframes st-pulse {
  0% { box-shadow: 0 0 0 0 rgba(15, 159, 92, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(15, 159, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 159, 92, 0); }
}

@keyframes st-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* -- 3. Layout utilities --------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 860px;
}

.site-main {
  background: var(--bg);
}

.section-pad {
  padding-top: var(--space-12);
  padding-bottom: var(--space-20);
}

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

.skip-link:focus {
  position: fixed !important;
  top: 12px;
  left: 12px;
  z-index: 999;
  width: auto;
  height: auto;
  clip: auto;
  padding: 0.7rem 1.2rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.no-posts,
.no-results {
  color: var(--text-muted);
  font-size: 0.9375rem;
  padding-block: var(--space-12);
  text-align: center;
}

.no-results .btn {
  margin-top: var(--space-5);
}

/* Missing featured image - a soft blue wash rather than a blank gap. */
.is-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background:
    radial-gradient(60% 60% at 30% 30%, rgba(29, 107, 255, 0.14), transparent 70%),
    linear-gradient(135deg, #e3edff, #f4f8ff);
}

/* Section headline furniture, shared by every homepage block */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-block: var(--space-4) var(--space-3);
  text-wrap: balance;
}

.section-title__accent {
  color: var(--primary);
}

.section-intro {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 60ch;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  transition: gap 0.18s ease, color 0.16s ease;
}

.text-link .material-symbols-outlined {
  font-size: 1.15rem;
}

.text-link:hover {
  gap: 0.6rem;
  color: var(--primary-deep);
}

/* -- 4. Buttons, pills, chips, figures ------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.9rem 1.55rem;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s, border-color 0.18s, color 0.18s;
}

.btn .material-symbols-outlined {
  font-size: 1.15rem;
}

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(29, 107, 255, 0.38);
}

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
  padding-left: 0.6rem;
}

.btn--ghost:not(:has(.btn__disc)) {
  padding-left: 1.55rem;
}

.btn--ghost:hover {
  border-color: var(--primary-line);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn__disc {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 10px rgba(29, 107, 255, 0.3);
}

.btn__disc .material-symbols-outlined {
  font-size: 1rem;
}

.btn--sm {
  font-size: 0.8125rem;
  padding: 0.65rem 1.15rem;
}

/* Pill badge with a small icon disc - section kickers across the site. */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.35rem 0.85rem 0.35rem 0.35rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pill__icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.875rem;
}

.pill__sep {
  opacity: 0.5;
}

.pill--soft {
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.pill--soft .pill__icon {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(29, 107, 255, 0.14);
}

.pill--link {
  font-size: 0.8125rem;
  transition: background-color 0.16s, color 0.16s;
}

.pill--link:hover {
  background: var(--primary);
  color: #fff;
}

.pill--solid {
  background: var(--grad);
  color: #fff;
}

.pill--solid .pill__icon {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.pill--glass {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  padding: 0.45rem 0.9rem;
}

/* Category label on cards */
.chip {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  color: var(--primary-deep);
  background: var(--primary-soft);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.7rem;
  transition: background-color 0.16s, color 0.16s;
}

a.chip:hover {
  background: var(--primary);
  color: #fff;
}

/* Every date on the site */
.cat-meta {
  font-size: 0.8125rem;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

/* Percentage change - main.js sets the direction classes. */
.intel-row__pct,
.ticker-item__pct {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.intel-row__pct--up,
.ticker-item__pct.is-up {
  background: var(--up-soft);
  color: var(--up);
}

.intel-row__pct--down,
.ticker-item__pct.is-down {
  background: var(--down-soft);
  color: var(--down);
}

/* -- 5. Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.site-header--scrolled {
  box-shadow: 0 10px 30px rgba(22, 56, 130, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: var(--header-h);
}

/* Flex, not a block: an inline-block logo would sit on the line box's
   baseline and ride a few pixels above the true centre of the bar. */
.site-header__brand {
  display: flex;
  align-items: center;
  min-width: 0;
  flex-shrink: 1;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.site-logo__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.site-logo:hover {
  color: var(--primary);
}

.custom-logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
}

.custom-logo {
  height: 42px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

/* Desktop menu */
.primary-nav {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.primary-nav .nav-list {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 2rem);
}

.primary-nav .nav-list > li {
  position: relative;
}

.primary-nav .nav-list a {
  display: inline-block;
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #344262;
  padding-block: 0.5rem;
  white-space: nowrap;
}

.primary-nav .nav-list a:hover,
.primary-nav .nav-list .current-menu-item > a,
.primary-nav .nav-list .current-menu-parent > a,
.primary-nav .nav-list .current-menu-ancestor > a {
  color: var(--primary);
}

/* Out of flow, so the underline adds no height below the label. */
.primary-nav .nav-list > li > a::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: -2px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.primary-nav .nav-list > li:hover > a::after,
.primary-nav .nav-list > .current-menu-item > a::after,
.primary-nav .nav-list > .current-menu-parent > a::after {
  transform: scaleX(1);
}

/* Dropdowns */
.primary-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: -0.75rem;
  min-width: 210px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.45rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.16s, transform 0.16s, visibility 0.16s;
  z-index: 20;
}

.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-nav .sub-menu a {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  white-space: normal;
}

.primary-nav .sub-menu a:hover {
  background: var(--primary-soft);
}

/* Right-hand actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
  flex-shrink: 0;
}

.nav-ghost,
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: transform 0.16s, box-shadow 0.16s, background-color 0.16s, color 0.16s, border-color 0.16s;
}

.nav-ghost {
  color: var(--primary);
  border: 1.5px solid var(--primary-line);
  background: var(--surface);
}

.nav-ghost:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.nav-cta {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.nav-cta .material-symbols-outlined {
  font-size: 1.05rem;
}

.nav-cta:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(29, 107, 255, 0.36);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  background: var(--surface);
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile panel */
.nav-menu--overlay {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  z-index: 99;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding-block: var(--space-4) var(--space-8);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.nav-menu--overlay.is-open {
  display: block;
}

.nav-menu--overlay .nav-list {
  display: flex;
  flex-direction: column;
}

.nav-menu--overlay .nav-list li {
  border-bottom: 1px solid var(--border);
}

.nav-menu--overlay .nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  padding-block: 0.95rem;
}

.nav-menu--overlay .nav-list > li > a::after {
  content: "\2192";
  color: var(--primary);
}

.nav-menu--overlay .nav-list a:hover {
  color: var(--primary);
}

.nav-menu--overlay .sub-menu {
  padding-left: var(--space-4);
}

.nav-menu--overlay .sub-menu a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nav-menu__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

@media (max-width: 1180px) {
  .nav-ghost {
    display: none;
  }
}

@media (max-width: 1023px) {
  .primary-nav {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 68px;
  }
  .site-header__inner {
    gap: var(--space-3);
  }
  .custom-logo {
    height: 34px;
  }
}

/* Phones: the bar keeps the brand and the menu button - the call to action
   is one tap away inside the open menu. */
@media (max-width: 600px) {
  .nav-cta {
    display: none;
  }
}

/* -- 6. Home: price strip -------------------------------------------------- */
.tape {
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  z-index: 3;
}

.tape__label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  padding-inline: var(--gutter) 1.1rem;
  border-right: 1px solid var(--border);
}

.tape__pulse {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--up);
  animation: st-pulse 1.8s ease-out infinite;
}

.tape__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  position: relative;
  padding-block: 0.6rem;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}

/* Duration is tuned to the repeated track so the speed stays calm. */
.ticker-track {
  display: flex;
  width: max-content;
  animation: st-tape 135s linear infinite;
}

.tape:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes st-tape {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-list {
  display: flex;
  align-items: center;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding-inline: clamp(1rem, 2.2vw, 1.6rem);
  border-right: 1px solid var(--border);
  font-size: 0.8125rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ticker-item__sym {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text);
}

.ticker-item__val {
  color: var(--text-muted);
  font-weight: 500;
}

.tape__more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  padding-inline: 1.1rem var(--gutter);
  border-left: 1px solid var(--border);
}

.tape__more:hover {
  color: var(--primary-deep);
}

@media (max-width: 720px) {
  .tape__more {
    display: none;
  }
}

@media (max-width: 560px) {
  .tape__label-text {
    display: none;
  }
}

/* -- 7. Home: hero --------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(5.5rem, 9vw, 7.5rem);
  overflow: hidden;
  background: linear-gradient(180deg, #f3f7ff 0%, #eaf2ff 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 55% at 80% 30%, rgba(120, 170, 255, 0.35), transparent 70%),
    radial-gradient(30% 40% at 5% 90%, rgba(140, 120, 255, 0.12), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(29, 107, 255, 0.12) 1px, transparent 0) 0 0 / 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
  mask-image: linear-gradient(180deg, #000 60%, transparent);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-lead__title {
  font-size: clamp(2rem, 4.1vw, 3.3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-block: var(--space-5) var(--space-5);
  text-wrap: balance;
}

.hero-lead__title a {
  background-image: linear-gradient(var(--primary), var(--primary));
  background-size: 0 3px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.35s ease, color 0.2s;
}

.hero-lead__title a:hover {
  color: var(--primary-deep);
  background-size: 100% 3px;
}

.hero-lead__excerpt {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 54ch;
  margin-bottom: var(--space-8);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-lead__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.hero-lead__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--space-6);
  font-size: 0.875rem;
  color: var(--text-faint);
}

.hero-lead__meta .material-symbols-outlined {
  font-size: 1.05rem;
  color: var(--primary);
}

/* Visual: blob photo with floating cards */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 580px;
  aspect-ratio: 1 / 0.92;
  margin-left: auto;
}

.hero-visual__halo {
  position: absolute;
  inset: 4% 2% 2% 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #dce9ff 55%, rgba(220, 233, 255, 0) 72%);
}

.hero-visual__photo {
  position: absolute;
  inset: 9% 11% 7% 15%;
  overflow: hidden;
  border-radius: 46% 54% 42% 58% / 56% 44% 56% 44%;
  border: 7px solid #fff;
  box-shadow: var(--shadow-lg);
  background: var(--surface-3);
}

.hero-visual__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.hero-visual:hover .hero-visual__img {
  transform: scale(1.04);
}

.hero-visual__spark {
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--primary);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: 0.55;
}

.hero-visual__spark--a {
  top: 2%;
  left: 38%;
}

.hero-visual__spark--b {
  bottom: 30%;
  right: 1%;
  width: 12px;
  height: 12px;
  background: var(--violet);
}

.float-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  padding: 0.45rem 0.95rem 0.45rem 0.45rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow);
  white-space: nowrap;
}

.float-pill--check {
  top: 11%;
  left: 0;
  animation: st-float 6s ease-in-out infinite;
}

.float-pill__tick {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 0.9rem;
}

.float-card {
  position: absolute;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.float-card--stat {
  top: 3%;
  right: 0;
  width: 190px;
  padding: 0.9rem 1rem 1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  row-gap: 0.25rem;
  animation: st-float 7s ease-in-out infinite 0.8s;
}

.float-card__label {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.float-card__val {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.float-card--stat .float-card__pct {
  justify-self: end;
}

.mini-bars {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 44px;
  margin-top: 0.4rem;
}

.mini-bars span {
  flex: 1;
  height: var(--h);
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #5a96ff, #1d6bff);
}

.mini-bars span:nth-child(odd) {
  opacity: 0.75;
}

.float-card--chip {
  bottom: 14%;
  left: 2%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1rem 0.7rem 0.7rem;
  animation: st-float 6.5s ease-in-out infinite 1.6s;
}

.float-card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff4dc, #ffe2a8);
  color: #c47d00;
  font-size: 1.3rem;
}

.float-card__stack {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.float-card__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.float-card--chip .float-card__val {
  font-size: 1rem;
}

.hero-visual__script {
  position: absolute;
  right: -1%;
  bottom: -2%;
  font-family: var(--font-hand);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--primary-deep);
  transform: rotate(-6deg);
}

.hero-visual__arrow {
  position: absolute;
  width: 64px;
  height: 32px;
  left: -70px;
  top: 4px;
  color: var(--primary);
}

@media (max-width: 1023px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    max-width: 540px;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .hero-visual__script {
    display: none;
  }
  .float-card--stat {
    width: 150px;
    padding: 0.7rem 0.8rem 0.8rem;
  }
  .float-card__val {
    font-size: 1.05rem;
  }
  .mini-bars {
    height: 30px;
  }
  .float-pill {
    font-size: 0.72rem;
  }
  .float-card--chip {
    bottom: 6%;
    left: 0;
  }
  .hero-lead__actions .btn {
    flex: 1 1 auto;
  }
}

/* -- 8. Home: on the wire strip -------------------------------------------- */
.onwire {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * clamp(3.5rem, 6vw, 4.5rem));
}

.onwire__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.25rem, 2.6vw, 1.75rem) clamp(1.25rem, 3vw, 2.25rem);
}

.onwire__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.onwire__title {
  font-size: 1rem;
  font-weight: 600;
}

.onwire__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.onwire__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
}

.wire-item {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
}

.wire-item + .wire-item {
  border-left: 1px solid var(--border);
  padding-left: var(--space-5);
}

.wire-item__thumb {
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-3);
}

.wire-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.wire-item:hover .wire-item__img {
  transform: scale(1.08);
}

.wire-item__desk {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.wire-item__title {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.38;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wire-item__title:hover {
  color: var(--primary);
}

@media (max-width: 1023px) {
  .onwire__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wire-item:nth-child(odd) {
    border-left: none;
    padding-left: 0;
  }
}

@media (max-width: 560px) {
  .onwire__list {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .wire-item + .wire-item {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: var(--space-4);
  }
}

/* -- 9. Home: how we report ------------------------------------------------ */
.standards {
  padding-block: var(--sec-pad) calc(var(--sec-pad) * 0.5);
}

.standards__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2.2fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.standards__head .text-link {
  margin-top: var(--space-5);
}

.standards__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.standard {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.standard:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.standard__index {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(29, 107, 255, 0.3);
}

.standard__icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0.5rem auto 1.1rem;
  border-radius: 20px;
  background: linear-gradient(145deg, #eef4ff, #d5e5ff);
  color: var(--primary);
  box-shadow: inset 0 -3px 0 rgba(29, 107, 255, 0.12);
}

.standard__icon .material-symbols-outlined {
  font-size: 2rem;
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 40;
}

.standard__title {
  font-size: 1.0625rem;
  margin-bottom: var(--space-2);
}

.standard__desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
}

@media (max-width: 1180px) {
  .standards__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .standards__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .standards__list {
    grid-template-columns: 1fr;
  }
}

/* -- 10. Home: category desks - shared furniture --------------------------- */
.desk {
  padding-block: var(--sec-pad);
}

.desk + .desk {
  padding-top: calc(var(--sec-pad) * 0.4);
}

.desk__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6) var(--space-8);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.desk__head-text {
  min-width: 0;
}

.desk__head-actions {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-shrink: 0;
  padding-bottom: 0.35rem;
}

.carousel-nav {
  display: flex;
  gap: var(--space-2);
}

.carousel-nav__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.16s, color 0.16s, opacity 0.16s, transform 0.16s;
}

.carousel-nav__btn:hover:not(:disabled) {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.carousel-nav__btn:disabled {
  opacity: 0.4;
  cursor: default;
}

@media (max-width: 760px) {
  .desk__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .desk__head-actions {
    width: 100%;
    justify-content: space-between;
    flex-direction: row-reverse;
  }
}

/* Shared white card with an inset image */
.spot-card,
.wire-lead,
.mosaic-lead,
.mosaic-card,
.trio-card,
.rail-card,
.post-tile,
.feed-feature-post,
.archive-list-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s;
}

.spot-card:hover,
.mosaic-lead:hover,
.mosaic-card:hover,
.trio-card:hover,
.rail-card:hover,
.post-tile:hover,
.feed-feature-post:hover,
.archive-list-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary-line);
}

/* -- 11. Desk A: spotlight ------------------------------------------------- */
.spotlight {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
}

.spot-card {
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.spot-card__media {
  display: block;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-3);
}

.spot-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.spot-card:hover .spot-card__img {
  transform: scale(1.06);
}

.spot-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
  padding: 1rem 0.55rem 0.45rem;
}

.spot-card__title {
  font-size: 1.0625rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spot-card__title a:hover {
  color: var(--primary);
}

.spot-card__excerpt {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spot-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.4rem;
}

.spot-card__go {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.05rem;
  transition: background-color 0.2s, color 0.2s;
}

.spot-card:hover .spot-card__go {
  background: var(--primary);
  color: #fff;
}

@media (max-width: 1100px) {
  .spotlight {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .spotlight {
    grid-template-columns: 1fr;
  }
}

/* -- 12. Desk B: wire band ------------------------------------------------- */
.wire {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.95fr);
  gap: var(--space-5);
  align-items: stretch;
  padding: clamp(1rem, 2.6vw, 2rem);
  border-radius: var(--radius-xl);
  border: 1px solid #dde7fb;
  background:
    radial-gradient(55% 80% at 0% 0%, rgba(160, 196, 255, 0.45), transparent 65%),
    radial-gradient(45% 70% at 100% 100%, rgba(170, 150, 255, 0.22), transparent 70%),
    linear-gradient(135deg, #edf3ff 0%, #f7f9ff 55%, #eef1ff 100%);
  overflow: hidden;
}

.wire::before {
  content: "";
  position: absolute;
  top: -40px;
  right: 22%;
  width: 180px;
  height: 180px;
  pointer-events: none;
  background: radial-gradient(circle at 1px 1px, rgba(29, 107, 255, 0.22) 1.2px, transparent 0) 0 0 / 16px 16px;
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%);
  mask-image: radial-gradient(circle, #000 30%, transparent 70%);
}

.wire-lead {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px;
  box-shadow: var(--shadow);
}

.wire-lead__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-3);
}

.wire-lead__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.wire-lead:hover .wire-lead__img {
  transform: scale(1.05);
}

.float-pill--corner {
  top: 12px;
  left: 12px;
  font-size: 0.75rem;
  padding: 0.35rem 0.8rem 0.35rem 0.4rem;
}

.float-pill--corner .material-symbols-outlined {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff3d6;
  color: #d98a00;
  font-size: 0.85rem;
  font-variation-settings: "FILL" 1;
}

.wire-lead__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
  padding: 1.1rem 0.7rem 0.7rem;
}

.wire-lead__title {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.3;
}

.wire-lead__title a:hover {
  color: var(--primary);
}

.wire-lead__excerpt {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.wire-lead__body .btn {
  margin-top: auto;
}

.wire-list {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
}

.wire-line {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  backdrop-filter: blur(6px);
  transition: background-color 0.2s, transform 0.2s;
}

.wire-line:hover {
  background: #fff;
  transform: translateX(4px);
}

.wire-line__index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--font-head);
  font-weight: 600;
}

.wire-line__title {
  display: block;
  font-family: var(--font-head);
  font-size: 0.975rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.wire-line__title:hover {
  color: var(--primary);
}

.wire-minis {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.mini-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.mini-card + .mini-card {
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.mini-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-3);
}

.mini-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mini-card:hover .mini-card__img {
  transform: scale(1.06);
}

.mini-card__title {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini-card__title a:hover {
  color: var(--primary);
}

@media (max-width: 1100px) {
  .wire {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wire-minis {
    grid-column: 1 / -1;
    flex-direction: row;
  }
  .mini-card + .mini-card {
    padding-top: 0;
    border-top: none;
    padding-left: var(--space-4);
    border-left: 1px solid var(--border);
  }
}

@media (max-width: 760px) {
  .wire {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .wire-minis {
    flex-direction: column;
  }
  .mini-card + .mini-card {
    padding-left: 0;
    border-left: none;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
  }
}

/* -- 13. Home: markets ----------------------------------------------------- */
.markets {
  padding-block: var(--sec-pad);
  background:
    radial-gradient(40% 60% at 85% 50%, rgba(120, 170, 255, 0.2), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  border-block: 1px solid var(--border);
}

.markets__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.board__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.market-tile {
  --tone: var(--primary);
  --tone-soft: var(--primary-soft);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.1rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.market-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.market-tile--teal { --tone: #0e9f9a; --tone-soft: #e0f6f5; }
.market-tile--amber { --tone: #d28a00; --tone-soft: #fff3da; }
.market-tile--rose { --tone: #e2476b; --tone-soft: #ffe8ee; }
.market-tile--violet { --tone: #7b5cff; --tone-soft: #efeaff; }
.market-tile--indigo { --tone: #4658e8; --tone-soft: #e8ebff; }

.market-tile__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--tone-soft);
  color: var(--tone);
  margin-bottom: 0.4rem;
}

.market-tile__icon .material-symbols-outlined {
  font-size: 1.4rem;
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

.market-tile__name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.market-tile__val {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.market-tile__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: 0.25rem;
}

.market-tile__class {
  font-size: 0.75rem;
  color: var(--text-faint);
}

/* Pulse card with risk gauges */
.pulse {
  position: relative;
  padding: var(--space-4);
}

.pulse::before {
  content: "";
  position: absolute;
  inset: 8% -4% 18% 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 107, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.pulse__card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  row-gap: 0.3rem;
  padding: 1.6rem 1.7rem 1.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
}

.pulse__top {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.pulse__label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.pulse__dot {
  color: var(--primary);
  font-size: 1.15rem;
}

.pulse__badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--up);
  background: var(--up-soft);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
}

.pulse__asset {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.pulse__val {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.pulse__pct {
  margin-bottom: 0.45rem;
  font-size: 0.8125rem;
}

.pulse__bars {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  height: 120px;
  margin-top: 1.1rem;
}

.pulse__bars span {
  flex: 1;
  height: var(--h);
  border-radius: 9px 9px 4px 4px;
  background: linear-gradient(180deg, #6aa1ff 0%, #1d6bff 100%);
  opacity: 0.55;
}

.pulse__bars span:nth-child(n + 4) {
  opacity: 0.75;
}

.pulse__bars span:nth-child(n + 7) {
  opacity: 1;
}

.pulse__gauges {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin: -1.25rem var(--space-3) 0;
}

.gauge {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  column-gap: 0.7rem;
  align-items: center;
  padding: 0.8rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gauge__icon {
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.2rem;
}

.gauge__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.3;
}

.gauge__val {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.gauge__note {
  font-size: 0.6875rem;
  color: var(--text-faint);
  line-height: 1.3;
}

.pulse__note {
  position: relative;
  margin-top: var(--space-5);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-faint);
  text-align: center;
}

@media (max-width: 1023px) {
  .markets__grid {
    grid-template-columns: 1fr;
  }
  .pulse {
    max-width: 520px;
    width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .board__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .market-tile__val {
    font-size: 1.1rem;
  }
  .pulse {
    padding-inline: 0;
  }
  .pulse__card {
    transform: none;
    padding: 1.3rem;
  }
  .pulse__gauges {
    margin-inline: 0;
    margin-top: var(--space-3);
  }
}

@media (max-width: 400px) {
  .pulse__gauges {
    grid-template-columns: 1fr;
  }
}

/* -- 14. Desk D: rail carousel --------------------------------------------- */
.desk--rail {
  background: linear-gradient(180deg, var(--bg) 0%, #edf3ff 50%, var(--bg) 100%);
}

.rail {
  margin-inline: -6px;
}

.rail__list {
  --cols: 3;
  --gap: 1.25rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 6px;
  padding: 6px 6px 1.25rem;
  scrollbar-width: none;
}

.rail__list::-webkit-scrollbar {
  display: none;
}

.rail-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.4rem 1.4rem 1.3rem;
}

.rail-card__top {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
}

.rail-card__thumb {
  display: block;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--primary-soft), var(--shadow-sm);
  background: var(--surface-3);
}

.rail-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rail-card__who {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rail-card__desk {
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.rail-card__quote {
  font-size: 2.4rem;
  color: var(--primary);
  opacity: 0.2;
  font-variation-settings: "FILL" 1;
}

.rail-card__title {
  font-size: 1.0625rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rail-card__title a:hover {
  color: var(--primary);
}

.rail-card__excerpt {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rail-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.rail-card__more .material-symbols-outlined {
  font-size: 1.05rem;
  transition: transform 0.2s;
}

.rail-card:hover .rail-card__more .material-symbols-outlined {
  transform: translateX(4px);
}

@media (max-width: 1023px) {
  .rail__list {
    --cols: 2;
  }
}

@media (max-width: 640px) {
  .rail__list {
    grid-auto-columns: 86%;
    --gap: 1rem;
  }
}

/* -- 15. Desk C: mosaic ---------------------------------------------------- */
.mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--space-5);
  align-items: stretch;
}

.mosaic-lead {
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.mosaic-lead__media {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-3);
}

.mosaic-lead__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.mosaic-lead:hover .mosaic-lead__img {
  transform: scale(1.05);
}

.mosaic-lead__body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
  padding: 1.25rem 0.9rem 0.8rem;
}

.mosaic-lead__title {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.25;
}

.mosaic-lead__title a:hover {
  color: var(--primary);
}

.mosaic-lead__excerpt {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.mosaic-lead__body .cat-meta {
  margin-top: auto;
}

.mosaic-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.mosaic-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 10px;
}

.mosaic-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-3);
}

.mosaic-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mosaic-card:hover .mosaic-card__img {
  transform: scale(1.06);
}

.mosaic-card__body {
  padding-right: 0.5rem;
}

.mosaic-card__title {
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mosaic-card__title a:hover {
  color: var(--primary);
}

.mosaic-more {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.1rem 0.9rem 0.6rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #eaf1ff, #f3f6ff);
  border: 1px solid #dde7fb;
}

.mosaic-more__title {
  font-size: 0.9375rem;
  padding-inline: 0.5rem;
  margin-bottom: 0.25rem;
}

.mosaic-rows {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.mosaic-row__body {
  min-width: 0;
}

.mosaic-row__body .cat-meta {
  display: block;
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

.mosaic-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 20px;
  gap: 0.8rem;
  align-items: center;
  padding: 0.75rem 0.5rem;
}

.mosaic-row + .mosaic-row {
  border-top: 1px solid rgba(29, 107, 255, 0.1);
}

.mosaic-row__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--surface);
  color: var(--primary);
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}

.mosaic-row__title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mosaic-row__title:hover {
  color: var(--primary);
}

.mosaic-row__go {
  color: var(--primary);
  transition: transform 0.2s;
}

.mosaic-row:hover .mosaic-row__go {
  transform: translateX(3px);
}

@media (max-width: 900px) {
  .mosaic {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .mosaic-card {
    grid-template-columns: 110px minmax(0, 1fr);
  }
  .mosaic-card__title {
    font-size: 0.9375rem;
  }
}

/* -- 16. Desk E: banner ---------------------------------------------------- */
.banner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.banner__media {
  display: block;
  min-height: 380px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface-3);
}

.banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.banner:hover .banner__img {
  transform: scale(1.04);
}

.banner__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
  padding: clamp(0.75rem, 3vw, 2rem) clamp(0.75rem, 2.5vw, 1.5rem) clamp(0.75rem, 3vw, 2rem) 0;
}

.banner__flags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.banner__flags .chip {
  align-self: center;
}

.banner__title {
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.banner__title a:hover {
  color: var(--primary);
}

.banner__excerpt {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.banner__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);
  margin-top: var(--space-2);
}

.banner-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-5);
}

.trio-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 0.95rem;
  align-items: center;
  padding: 10px;
}

.trio-card__media {
  display: block;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-3);
}

.trio-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.trio-card:hover .trio-card__img {
  transform: scale(1.07);
}

.trio-card__body {
  padding-right: 0.4rem;
}

.trio-card__desk {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.trio-card__title {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trio-card__title a:hover {
  color: var(--primary);
}

@media (max-width: 1023px) {
  .banner {
    grid-template-columns: 1fr;
  }
  .banner__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .banner__body {
    padding: 0.5rem 0.9rem 1rem;
  }
  .banner-trio {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .banner-trio {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* -- 17. Home: newsletter call to action ----------------------------------- */
.brief-section {
  padding-block: calc(var(--sec-pad) * 0.6) var(--sec-pad);
}

.brief-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(1.5rem, 4.5vw, 3.5rem);
  border-radius: 32px;
  background:
    radial-gradient(50% 80% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
    var(--grad-cta);
  color: #fff;
  box-shadow: 0 30px 60px rgba(29, 90, 255, 0.28);
  overflow: hidden;
  isolation: isolate;
}

.brief-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.22) 1px, transparent 0) 0 0 / 20px 20px;
  -webkit-mask-image: radial-gradient(70% 90% at 0% 100%, #000, transparent 70%);
  mask-image: radial-gradient(70% 90% at 0% 100%, #000, transparent 70%);
}

.brief-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  right: -140px;
  bottom: -200px;
  border-radius: 50%;
  border: 60px solid rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.brief-panel__deco {
  position: absolute;
  z-index: -1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.5rem;
  backdrop-filter: blur(4px);
  animation: st-float 7s ease-in-out infinite;
}

.brief-panel__deco--a {
  top: 12%;
  left: 51%;
  transform: rotate(-10deg);
}

.brief-panel__deco--b {
  bottom: 12%;
  left: 49%;
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
  animation-delay: 1.2s;
}

.brief-panel__deco--c {
  bottom: 7%;
  left: 3%;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  animation-delay: 2.4s;
}

.brief-panel__title {
  color: #fff;
  font-size: clamp(1.7rem, 3.3vw, 2.55rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-block: var(--space-4);
  text-wrap: balance;
}

.brief-panel__sub {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
  max-width: 54ch;
  margin-bottom: var(--space-6);
}

.brief-panel__points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3) var(--space-5);
}

.brief-panel__points li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}

.brief-panel__points .material-symbols-outlined {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1.05rem;
}

.brief-panel__form {
  position: relative;
  background: var(--surface);
  color: var(--text-body);
  border-radius: 24px;
  padding: clamp(1.25rem, 2.8vw, 2rem);
  box-shadow: 0 24px 50px rgba(8, 30, 110, 0.25);
}

.brief-panel__form-title {
  font-size: 1.375rem;
  margin-bottom: var(--space-2);
}

.brief-panel__form-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}

.brief-panel__contact,
.sidebar-panel__contact {
  display: block;
  font-style: normal;
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--text-faint);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.brief-panel__contact-name,
.sidebar-panel__contact-name {
  display: block;
  font-weight: 700;
  color: var(--text-muted);
}

.brief-panel__contact a,
.sidebar-panel__contact a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}

.brief-panel__contact a:hover,
.sidebar-panel__contact a:hover {
  color: var(--primary-deep);
}

@media (max-width: 1023px) {
  .brief-panel {
    grid-template-columns: 1fr;
  }
  .brief-panel__deco--a,
  .brief-panel__deco--b {
    display: none;
  }
}

@media (max-width: 520px) {
  .brief-panel {
    border-radius: 24px;
  }
  .brief-panel__points {
    grid-template-columns: 1fr;
  }
  .brief-panel__deco {
    display: none;
  }
}

/* -- 18. Contact Form 7 - subscribe forms ---------------------------------- */
.newsletter-form-shell .wpcf7-form p {
  margin: 0;
}

.newsletter-form-shell .hidden-fields-container {
  display: none;
}

.newsletter-form-shell .form-fields p {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
}

.newsletter-form-shell .form-fields p br {
  display: none;
}

.newsletter-form-shell .wpcf7-form-control-wrap {
  display: block;
}

.newsletter-form-shell .wpcf7-email {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  background: var(--surface-2);
  border: 1.5px solid var(--border-strong);
  color: var(--text);
  border-radius: var(--radius-full);
  padding: 0.9rem 1.35rem;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.newsletter-form-shell .wpcf7-email::placeholder {
  color: var(--text-faint);
}

.newsletter-form-shell .wpcf7-email:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.newsletter-form-shell .wpcf7-email.wpcf7-not-valid {
  border-color: var(--down);
}

.newsletter-form-shell .wpcf7-submit {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  background: var(--grad);
  color: #fff;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  padding: 0.95rem 1.5rem;
  width: 100%;
  box-shadow: var(--shadow-primary);
  transition: transform 0.16s, box-shadow 0.16s;
  position: relative;
  -webkit-appearance: none;
}

.newsletter-form-shell .wpcf7-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(29, 107, 255, 0.38);
}

.newsletter-form-shell .wpcf7-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.newsletter-form-shell .wpcf7-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

.newsletter-form-shell .wpcf7-not-valid-tip {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--down);
  display: block;
  margin-top: 0.4rem;
  padding-left: 1rem;
}

.form-privacy {
  margin-top: 15px;
}

.newsletter-form-shell .form-privacy .wpcf7-list-item-label {
  color: var(--text-muted);
}

.newsletter-form-shell .wpcf7-list-item {
  display: block;
  margin: 0;
}

.newsletter-form-shell .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.newsletter-form-shell .wpcf7-list-item input[type="checkbox"] {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 0.15em;
  accent-color: var(--primary);
  cursor: pointer;
}

.newsletter-form-shell .wpcf7-list-item-label a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.newsletter-form-shell .wpcf7-response-output {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid transparent !important;
  margin: var(--space-4) 0 0 !important;
  width: 100%;
  text-align: left;
}

/* CF7 6.x keeps aria-hidden="true" on this element at all times - go by
   content rather than by the attribute. */
.newsletter-form-shell .wpcf7-response-output:empty {
  display: none;
}

.newsletter-form-shell .wpcf7-form.sent .wpcf7-response-output {
  background: var(--up-soft);
  border-color: rgba(15, 159, 92, 0.3) !important;
  color: var(--up);
}

.newsletter-form-shell .wpcf7-form.invalid .wpcf7-response-output,
.newsletter-form-shell .wpcf7-form.unaccepted .wpcf7-response-output,
.newsletter-form-shell .wpcf7-form.spam .wpcf7-response-output,
.newsletter-form-shell .wpcf7-form.failed .wpcf7-response-output {
  background: var(--down-soft);
  border-color: rgba(224, 69, 75, 0.3) !important;
  color: var(--down);
}

/* -- 19. Shared: post grid / post tile ------------------------------------- */
.post-grid {
  display: grid;
  gap: var(--space-5);
}

.post-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-tile {
  display: flex;
  flex-direction: column;
  padding: 10px;
  min-width: 0;
}

.post-tile__thumb-link {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-3);
}

.post-tile__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-tile:hover .post-tile__thumb {
  transform: scale(1.06);
}

.post-tile__body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
  padding: 0.95rem 0.5rem 0.5rem;
}

.post-tile__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.post-tile__title {
  font-size: 1rem;
  line-height: 1.4;
}

.post-tile__title a:hover {
  color: var(--primary);
}

.post-tile__excerpt {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-tile__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  font-size: 0.8125rem;
  color: var(--text-faint);
}

@media (max-width: 1023px) {
  .post-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .post-grid--3 {
    grid-template-columns: 1fr;
  }
}

/* -- 20. Archive ----------------------------------------------------------- */
.archive-main {
  padding-top: var(--space-8);
  padding-bottom: var(--space-20);
  min-height: 70vh;
}

.archive-header {
  position: relative;
  padding: clamp(1.5rem, 4.5vw, 3rem);
  margin-bottom: var(--space-10);
  border-radius: var(--radius-xl);
  border: 1px solid #dde7fb;
  background:
    radial-gradient(45% 90% at 100% 0%, rgba(120, 170, 255, 0.35), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(29, 107, 255, 0.1) 1px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(135deg, #eef4ff, #f8faff);
  overflow: hidden;
}

.archive-header__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.archive-header__count {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.8rem;
}

.archive-header__title {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-3);
}

.archive-header__desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 70ch;
}

.archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.archive-main-col {
  min-width: 0;
}

.feed-feature-post {
  padding: 10px;
  margin-bottom: var(--space-5);
}

.feed-feature-post__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 8;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-3);
}

.feed-feature-post__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.feed-feature-post:hover .feed-feature-post__img {
  transform: scale(1.03);
}

.feed-feature-post__cat {
  position: absolute;
  left: 14px;
  top: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-deep);
  background: var(--surface);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.8rem;
  box-shadow: var(--shadow);
}

.feed-feature-post__body {
  padding: 1.2rem 0.9rem 0.8rem;
}

.feed-feature-post__title {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.22;
  margin-bottom: var(--space-3);
}

.feed-feature-post__title a:hover {
  color: var(--primary);
}

.feed-feature-post__excerpt {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.feed-feature-post__meta {
  font-size: 0.8125rem;
  color: var(--text-faint);
}

.archive-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.archive-list-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: var(--space-5);
  align-items: center;
  padding: 10px;
}

.archive-list-item__thumb {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-3);
}

.archive-list-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.archive-list-item:hover .archive-list-item__img {
  transform: scale(1.05);
}

.archive-list-item__body {
  padding-right: var(--space-3);
}

.archive-list-item__title {
  font-size: 1.15rem;
  line-height: 1.35;
  margin-bottom: var(--space-2);
}

.archive-list-item__title a:hover {
  color: var(--primary);
}

.archive-list-item__excerpt {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.archive-list-item__meta {
  font-size: 0.8125rem;
  color: var(--text-faint);
}

.content-feed-sidebar,
.single-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-width: 0;
}

@media (max-width: 1023px) {
  .archive-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .archive-list-item {
    grid-template-columns: 1fr;
  }
  .archive-list-item__body {
    padding: 0.2rem 0.5rem 0.5rem;
  }
}

/* -- 21. Pagination -------------------------------------------------------- */
.pagination {
  margin-top: var(--space-10);
}

.pagination .nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding-inline: 0.9rem;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s, color 0.16s, background-color 0.16s;
}

.pagination a.page-numbers:hover {
  color: var(--primary);
  border-color: var(--primary-line);
}

.pagination .page-numbers.current {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.pagination .page-numbers.dots {
  background: none;
  border-color: transparent;
  box-shadow: none;
}

.pagination .screen-reader-text {
  display: none;
}

/* -- 22. Single post ------------------------------------------------------- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--grad-cta);
  z-index: 300;
  transition: width 0.08s linear;
}

.single-main {
  padding-top: var(--space-10);
  padding-bottom: var(--space-20);
  min-height: 70vh;
  background: linear-gradient(180deg, #edf3ff 0, var(--bg) 420px);
}

.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.single-main-col {
  min-width: 0;
}

.article-header {
  margin-bottom: var(--space-8);
}

.article-header__chips {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.article-header__title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.028em;
  margin-bottom: var(--space-5);
  text-wrap: balance;
}

.article-header__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.article-header__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem 0.35rem 0.6rem;
}

.article-header__meta-item .material-symbols-outlined {
  font-size: 1.05rem;
  color: var(--primary);
}

.article-hero {
  margin-bottom: var(--space-10);
  border-radius: 26px;
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: var(--shadow-lg);
  background: #fff;
}

.article-hero__img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 20px;
}

.article-hero__caption {
  font-size: 0.8125rem;
  color: var(--text-faint);
  padding: var(--space-3) var(--space-4) var(--space-2);
}

.article-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-body);
}

.article-content p {
  margin-bottom: var(--space-6);
}

.article-content h2 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
}

.article-content h3 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  font-size: 1.25rem;
}

.article-content h4 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
  font-size: 1.05rem;
}

.article-content a,
.page-content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--primary-line);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.16s, color 0.16s;
}

.article-content a:hover,
.page-content a:hover {
  color: var(--primary-deep);
  text-decoration-color: currentColor;
}

.article-content blockquote,
.page-content blockquote {
  position: relative;
  border-left: 4px solid var(--primary);
  background: var(--primary-soft);
  padding: var(--space-5) var(--space-6);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-block: var(--space-8);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
}

.article-content ul,
.article-content ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-6);
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  margin-bottom: var(--space-2);
}

.article-content li::marker,
.page-content li::marker {
  color: var(--primary);
}

.article-content img {
  border-radius: var(--radius);
}

.article-content figure {
  margin-block: var(--space-8);
}

.article-content figcaption {
  font-size: 0.8125rem;
  color: var(--text-faint);
  padding-top: var(--space-2);
}

.article-content hr {
  margin-block: var(--space-10);
}

.article-content table,
.page-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9375rem;
  margin-bottom: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.article-content th,
.article-content td,
.page-content th,
.page-content td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
}

.article-content tr:last-child td,
.page-content tr:last-child td {
  border-bottom: none;
}

.article-content th,
.page-content th {
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
}

.article-content code,
.page-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
  background: var(--surface-3);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}

.article-content pre,
.page-content pre {
  background: var(--navy);
  color: #dbe5ff;
  border-radius: var(--radius);
  padding: var(--space-5);
  overflow-x: auto;
  margin-bottom: var(--space-6);
  font-size: 0.875rem;
  line-height: 1.6;
}

.article-content pre code,
.page-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-12);
}

.article-nav__prev:has(a),
.article-nav__next:has(a) {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.article-nav__prev:has(a):hover,
.article-nav__next:has(a):hover {
  border-color: var(--primary-line);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.article-nav__label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.article-nav__label .material-symbols-outlined {
  font-size: 1rem;
}

.article-nav__link {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
}

.article-nav__link:hover {
  color: var(--primary);
}

.article-nav__next {
  text-align: right;
}

.article-nav__next .article-nav__label {
  justify-content: flex-end;
}

.related-posts {
  margin-top: var(--space-12);
}

.related-posts__heading {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 600;
  margin-bottom: var(--space-5);
}

.related-posts .post-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1023px) {
  .single-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .related-posts .post-grid--3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .article-nav {
    grid-template-columns: 1fr;
  }
  .article-nav__next {
    text-align: left;
  }
  .article-nav__next .article-nav__label {
    justify-content: flex-start;
  }
}

/* -- 23. Sidebar panels ---------------------------------------------------- */
.sidebar-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.sidebar-panel--subscribe {
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(120, 170, 255, 0.25), transparent 70%),
    linear-gradient(170deg, #eef4ff, #ffffff 60%);
  border-color: #dbe6fb;
}

.sidebar-panel__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-primary);
  margin: 0 auto var(--space-4);
}

/* Subscribe card: icon, heading and pitch centred above the form. */
.sidebar-panel--subscribe .sidebar-panel__heading {
  justify-content: center;
  text-align: center;
  font-size: 1.1875rem;
}

.sidebar-panel--subscribe .sidebar-panel__desc {
  text-align: center;
  max-width: 30ch;
  margin-inline: auto;
  margin-bottom: var(--space-5);
}

.sidebar-panel__heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.sidebar-panel__heading .material-symbols-outlined {
  color: var(--primary);
  font-size: 1.25rem;
}

.sidebar-panel__desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.side-article {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.side-article:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.side-article__rank {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 600;
}

.side-article__title {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.side-article__title a:hover {
  color: var(--primary);
}

.side-article__time {
  font-size: 0.75rem;
  color: var(--text-faint);
}

.side-markets {
  display: flex;
  flex-direction: column;
}

.side-market-row {
  display: grid;
  grid-template-columns: 34px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  padding-block: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.side-market-row:last-child {
  border-bottom: none;
}

.side-market-row__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.95rem;
}

.side-market-row__sym {
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.side-market-row__val {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* -- 24. Static page template ---------------------------------------------- */
.page-main {
  padding-top: var(--space-10);
  padding-bottom: var(--space-20);
  min-height: 70vh;
  background: linear-gradient(180deg, #edf3ff 0, var(--bg) 380px);
}

.static-page {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 5vw, 3.25rem);
  box-shadow: var(--shadow);
}

.page-header {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}

.page-header__title {
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.028em;
}

.page-hero {
  margin: 0 0 var(--space-8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 7;
}

.page-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-body);
}

.page-content > * + * {
  margin-top: 1.4em;
}

.page-content h2,
.page-content h3,
.page-content h4 {
  line-height: 1.25;
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.page-content h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
}

.page-content h3 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.page-content h4 {
  font-size: 1rem;
  color: var(--primary-deep);
}

.page-content ul,
.page-content ol {
  padding-left: 1.4em;
}

.page-content ul {
  list-style: disc;
}

.page-content ol {
  list-style: decimal;
}

.page-content li + li {
  margin-top: 0.4em;
}

.page-content img {
  max-width: 100%;
  border-radius: var(--radius);
}

.page-content hr {
  margin-block: var(--space-10);
}

/* -- 25. 404 --------------------------------------------------------------- */
.error-main {
  padding-block: var(--space-16) var(--space-20);
  background:
    radial-gradient(50% 50% at 50% 10%, rgba(120, 170, 255, 0.3), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(29, 107, 255, 0.1) 1px, transparent 0) 0 0 / 24px 24px,
    var(--bg);
  min-height: 70vh;
}

.error-page {
  text-align: center;
}

.error-page__code {
  font-family: var(--font-head);
  font-size: clamp(5.5rem, 16vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  margin-block: var(--space-5) var(--space-3);
  background: var(--grad-cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page__title {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.error-page__desc {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

.error-page__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.error-recent {
  margin-top: var(--space-12);
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow);
}

.error-recent__heading {
  font-size: 1.125rem;
  margin-bottom: var(--space-3);
}

.error-recent__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.error-recent__list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.error-recent__list a {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--text);
}

.error-recent__list a:hover {
  color: var(--primary);
}

.error-recent__list time {
  flex-shrink: 0;
  font-size: 0.8125rem;
  color: var(--text-faint);
}

@media (max-width: 560px) {
  .error-recent__list li {
    flex-direction: column;
    gap: 0.2rem;
  }
}

/* -- 26. Footer ------------------------------------------------------------ */
.site-footer {
  position: relative;
  background:
    radial-gradient(40% 70% at 0% 0%, rgba(29, 107, 255, 0.22), transparent 70%),
    radial-gradient(35% 60% at 100% 100%, rgba(125, 99, 255, 0.16), transparent 70%),
    var(--navy);
  color: #a8b6d4;
  padding-block: var(--space-16) var(--space-6);
}

.footer-inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 0.8fr 0.9fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.footer-col {
  min-width: 0;
}

.footer-brand {
  display: inline-flex;
  margin-bottom: var(--space-5);
}

.footer-logo-link,
.footer-col--brand .custom-logo-link,
.footer-brand-logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.footer-brand-logo:hover,
.footer-logo-link:hover {
  color: #fff;
  opacity: 0.85;
}

.footer-logo-img,
.footer-col--brand .custom-logo {
  height: 40px;
  width: auto;
  max-width: 100%;
}

.footer-col__desc {
  font-size: 0.9rem;
  line-height: 1.75;
  color: #a8b6d4;
  max-width: 44ch;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-5);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  padding: 0.6rem 1.15rem 0.6rem 0.9rem;
  transition: background-color 0.18s, border-color 0.18s;
}

.footer-cta .material-symbols-outlined {
  font-size: 1.1rem;
}

.footer-cta:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.footer-col__heading {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--space-5);
}

.footer-posts {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-post {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: var(--space-3);
  align-items: center;
}

.footer-post__thumb {
  display: block;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--navy-2);
}

.footer-post__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-post__img--placeholder {
  display: block;
  background: linear-gradient(135deg, #1a2d5c, #12224a);
}

.footer-post__title {
  display: block;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
  margin-bottom: 0.2rem;
}

.footer-post__title:hover {
  color: #8db4ff;
}

.footer-post__meta {
  font-size: 0.75rem;
  color: #7f90b3;
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col__list a {
  font-size: 0.9rem;
  color: #a8b6d4;
}

.footer-col__list a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
  margin-top: var(--space-12);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copy,
.footer-disclaimer {
  font-size: 0.8125rem;
  color: #7f90b3;
}

.footer-copy a {
  color: #a8b6d4;
}

.footer-copy a:hover {
  color: #fff;
}

@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Phones: brand and posts need the full width, the two link lists fit side
   by side. */
@media (max-width: 560px) {
  .footer-grid {
    gap: var(--space-8) var(--space-5);
  }
  .footer-col--brand,
  .footer-col--posts {
    grid-column: 1 / -1;
  }
}

/* -- 27. WordPress core classes -------------------------------------------- */
.alignleft {
  float: left;
  margin: 0 var(--space-6) var(--space-4) 0;
}

.alignright {
  float: right;
  margin: 0 0 var(--space-4) var(--space-6);
}

.aligncenter {
  margin-inline: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
  font-size: 0.8125rem;
  color: var(--text-faint);
  padding-top: var(--space-2);
}

.sticky .post-tile__title::after {
  content: " \2605";
  color: var(--primary);
}

.widget {
  margin-bottom: var(--space-5);
}

.widget-title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
}

/* -- 28. Motion preferences ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .ticker-track {
    animation: none;
  }
  .tape__viewport {
    overflow-x: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
