:root {
  --bg: #f4f8fc;
  --bg-elevated: rgba(255, 255, 255, 0.84);
  --surface: #ffffff;
  --surface-2: #ebf2fb;
  --surface-3: #d9e5f5;
  --text: #10233f;
  --muted: #50627d;
  --muted-2: #7386a2;
  --line: rgba(16, 35, 63, 0.1);
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --accent: #60a5fa;
  --accent-strong: #3b82f6;
  --shadow: 0 20px 46px rgba(15, 23, 42, 0.09);
  --logo-accent: #2563eb;
  --logo-structure: #10233f;
  --logo-frame-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 243, 253, 0.9));
  --logo-frame-border: rgba(37, 99, 235, 0.14);
  --brand-glow:
    0 0 0 1px rgba(37, 99, 235, 0.05),
    0 0 18px rgba(37, 99, 235, 0.12),
    0 0 34px rgba(96, 165, 250, 0.1);
  --logo-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 18px 34px rgba(15, 23, 42, 0.14),
    0 4px 12px rgba(37, 99, 235, 0.08);
  --radius: 28px;
  --radius-sm: 18px;
  --container: 1180px;
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Newsreader", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-mono: "JetBrains Mono-f953c794b93d5540", "JetBrains Mono-f953c794b93d5540 fallback: Arial", sans-serif;
}

html[data-theme="dark"] {
  --bg: #07111f;
  --bg-elevated: rgba(13, 24, 40, 0.8);
  --surface: #0d1828;
  --surface-2: #14233a;
  --surface-3: #1d304a;
  --text: #e5eefb;
  --muted: #b3c3db;
  --muted-2: #8ca1bf;
  --line: rgba(203, 217, 237, 0.12);
  --primary: #6ea8fe;
  --primary-strong: #93c5fd;
  --accent: #7db8ff;
  --accent-strong: #a8d2ff;
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
  --logo-accent: #93c5fd;
  --logo-structure: #e5eefb;
  --logo-frame-bg: linear-gradient(135deg, rgba(33, 50, 70, 0.96), rgba(23, 35, 48, 0.92));
  --logo-frame-border: rgba(147, 197, 253, 0.12);
  --brand-glow:
    0 0 0 1px rgba(147, 197, 253, 0.08),
    0 0 24px rgba(110, 168, 254, 0.22),
    0 0 42px rgba(125, 184, 255, 0.14);
  --logo-shadow:
    inset 0 1px 0 rgba(229, 238, 251, 0.08),
    0 14px 30px rgba(2, 6, 23, 0.55),
    0 0 0 1px rgba(147, 197, 253, 0.08),
    0 0 18px rgba(110, 168, 254, 0.18);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 72%, var(--surface-2) 28%) 55%, var(--bg) 100%);
  line-height: 1.68;
  font-optical-sizing: auto;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--surface);
  transform: translateY(-200%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.narrow {
  width: min(calc(100% - 2rem), 820px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(244, 248, 252, 0.74);
  border-bottom: 1px solid var(--line);
}

html[data-theme="dark"] .site-header {
  background: rgba(16, 25, 35, 0.82);
}

.header-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 0.7rem 0;
}

.header-mobile-controls {
  display: none;
}

.header-toggle {
  min-height: 2.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.header-toggle:hover,
.header-toggle:focus-visible,
.header-toggle[aria-expanded="true"] {
  border-color: color-mix(in srgb, var(--primary) 36%, var(--line));
  box-shadow:
    0 10px 22px color-mix(in srgb, var(--primary) 18%, transparent),
    0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent);
}

.header-toggle:focus-visible {
  outline: none;
}

.header-toggle-icon {
  width: 1.1rem;
  height: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-toggle-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.header-toggle-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-search-toggle {
  display: none;
  width: 2.7rem;
  padding-inline: 0;
  flex: none;
}

.header-search-toggle-inline {
  display: none;
  width: 2.7rem;
  padding-inline: 0;
  flex: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  transition: transform 180ms ease;
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: var(--shadow);
  font-weight: 700;
}

.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  padding: 0.35rem 1.15rem 0.35rem 0.42rem;
  border-radius: 999px;
  background: var(--logo-frame-bg);
  border: 1px solid var(--logo-frame-border);
  box-shadow: var(--brand-glow), var(--logo-shadow);
  backdrop-filter: blur(10px);
  transition:
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.brand-logo {
  width: 2.55rem;
  height: 2.55rem;
  display: block;
  flex: none;
  transform: translate(0.35rem, 0.12rem);
  overflow: visible;
}

.brand-logo .logo-accent,
.brand-logo .logo-structure {
  stroke: none;
}

.brand-logo .logo-accent {
  fill: var(--logo-accent);
}

.brand-logo .logo-structure {
  fill: var(--logo-structure);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  line-height: 1.1;
  min-width: 0;
}

.brand-text strong {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 86%, var(--primary) 14%);
}

.brand-text span {
  color: color-mix(in srgb, var(--muted) 90%, var(--primary) 10%);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

html[data-theme="dark"] .brand-text strong {
  color: color-mix(in srgb, var(--text) 90%, var(--primary) 10%);
}

html[data-theme="dark"] .brand-text span {
  color: color-mix(in srgb, var(--muted) 88%, var(--accent) 12%);
}

.brand:hover .brand-logo-wrap,
.brand:focus-visible .brand-logo-wrap {
  border-color: color-mix(in srgb, var(--primary) 34%, var(--logo-frame-border));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--primary) 16%, transparent),
    0 0 26px color-mix(in srgb, var(--primary) 14%, transparent),
    0 0 44px color-mix(in srgb, var(--accent) 12%, transparent),
    var(--logo-shadow);
}

.main-nav {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  justify-self: center;
}

.main-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
}

.main-nav a.is-active {
  color: var(--text);
  font-weight: 700;
  border-bottom-color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: end;
  min-width: 0;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
}

.language-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  min-height: 2rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: color 180ms ease, background-color 180ms ease;
}

.language-switcher a:hover,
.language-switcher a:focus-visible {
  color: var(--text);
}

.language-switcher a.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

html[data-language-switcher="hidden"] .language-switcher {
  display: none;
}

.search-shell {
  position: relative;
  width: min(320px, 30vw);
  min-width: 200px;
  flex: 0 1 min(320px, 30vw);
}

.search-label {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  display: inline-flex;
}

.search-input {
  width: 100%;
  padding: 0.66rem 1rem 0.66rem 2.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.search-input::placeholder {
  color: var(--muted-2);
}

.search-input:focus {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent);
}

.search-results {
  position: absolute;
  top: calc(100% + 0.6rem);
  inset-inline: 0;
  display: none;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.search-results[hidden] {
  display: none;
}

.search-results.is-visible {
  display: block;
}

.search-hit,
.search-empty {
  display: block;
  padding: 0.9rem 1rem;
  border-top: 1px solid var(--line);
}

.search-hit:first-child,
.search-empty:first-child {
  border-top: 0;
}

.search-hit strong {
  display: block;
  margin-bottom: 0.18rem;
}

.search-hit span {
  display: block;
  color: var(--muted-2);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.search-hit p,
.search-empty {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.search-hit:hover {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface) 90%);
}

.theme-toggle {
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: color-mix(in srgb, var(--primary) 36%, var(--line));
  box-shadow:
    0 10px 22px color-mix(in srgb, var(--primary) 18%, transparent),
    0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent);
}

.theme-toggle:focus-visible {
  outline: none;
}

.theme-icon {
  width: 1.2rem;
  height: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.theme-icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-icon-moon {
  display: inline-flex;
}

.hero,
.page-header,
.section {
  padding: 1rem 0 1rem 0;
}

.page-header {
  padding-top: 2rem;
}

.hero {
  padding-top: 3.25rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 2.5rem;
  align-items: center;
}

.eyebrow,
.section-kicker {
  display: inline-block;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  margin-bottom: 1rem;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 0.98;
  margin: 0 0 1rem;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.85rem, 5.8vw, 4rem);
  max-width: 20ch;
}

h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
}

h3 {
  font-size: clamp(1.18rem, 1.9vw, 1.45rem);
  line-height: 1.1;
}

.lead {
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  color: var(--muted);
  max-width: 62ch;
  font-weight: 500;
  margin-top: 0rem;
  margin-bottom: 1rem;
}

.hero-copy,
.page-copy {
  color: var(--muted);
  max-width: 65ch;
}

.hero-content {
  align-self: start;
}

.hero-copy> :last-child {
  margin-bottom: 0;
}

.hero-trust {
  max-width: 54ch;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.hero-panel {
  display: grid;
  gap: 1rem;
}

.hero-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.metric-card,
.card,
.single-card,
.taxonomy-card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, #fff 8%), color-mix(in srgb, var(--surface) 82%, var(--surface-2) 18%));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .single-card,
html[data-theme="dark"] .taxonomy-card {
  background: linear-gradient(180deg, rgba(27, 40, 56, 0.96), rgba(20, 31, 43, 0.92));
}

.metric-card {
  overflow: hidden;
}

.metric-card-link {
  display: block;
}

.metric-card-feature {
  min-height: 100%;
}

.metric-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.metric-card strong {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.metric-card-media {
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, color-mix(in srgb, var(--surface-2) 86%, #dbe7fb 14%), color-mix(in srgb, var(--surface) 88%, #eef4ff 12%));
}

.metric-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.metric-card-feature .metric-card-media {
  aspect-ratio: 16 / 11;
}

.metric-card-feature .metric-card-copy {
  padding: 1.35rem 1.4rem 1.45rem;
}

.metric-card-feature strong {
  display: block;
  max-width: 24ch;
  font-size: clamp(1.5rem, 2.1vw, 1.95rem);
  line-height: 1.02;
}

.metric-card-feature p {
  margin: 0.7rem 0 0;
  max-width: 44ch;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.58;
}

.metric-card-compact .metric-card-media {
  aspect-ratio: 16 / 10;
}

.metric-card-compact strong {
  font-size: 1.12rem;
  line-height: 1.12;
}

.metric-card-copy {
  padding: 1.15rem 1.25rem 1.2rem;
}

.cta-row,
.tag-row,
.share-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 2.4rem;
}

.share-row {
  margin-top: 0;
}

.tag-row {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.84rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2);
}

.button-secondary {
  background: color-mix(in srgb, var(--surface) 50%, transparent);
  border-color: var(--line);
}

.button:hover,
.button:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--primary) 12%, transparent),
    0 0 0 4px color-mix(in srgb, var(--primary) 10%, transparent);
}

.button:focus-visible,
.text-link:focus-visible {
  outline: none;
}

.section-muted {
  background: color-mix(in srgb, var(--surface-2) 42%, transparent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 1.4rem;
}

.section-heading>p {
  max-width: 40ch;
  color: var(--muted);
  margin: 0;
}

.card-grid,
.taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.card,
.taxonomy-card {
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.card:hover,
.taxonomy-card:hover {
  border-color: color-mix(in srgb, var(--primary) 24%, var(--line));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--primary) 10%, transparent),
    var(--shadow);
}

.card-body,
.single-card {
  padding: 1.35rem;
}

.article-card .card-body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.article-card h3 {
  margin-top: 0.35rem;
  margin-bottom: 0;
  font-size: clamp(1.26rem, 2.05vw, 1.58rem);
}

.article-card h3 a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.14em;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.article-card:hover h3 a,
.article-card h3 a:hover,
.article-card h3 a:focus-visible {
  color: color-mix(in srgb, var(--text) 76%, var(--primary) 24%);
  text-decoration-color: color-mix(in srgb, var(--primary) 60%, transparent);
}

.article-card p {
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.article-card .text-link {
  margin-top: auto;
  align-self: flex-end;
  justify-content: flex-end;
  font-size: 1rem;
  padding: 0.32rem 0.58rem;
  margin-right: -0.58rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.article-card:hover .text-link,
.article-card .text-link:hover,
.article-card .text-link:focus-visible {
  color: color-mix(in srgb, var(--primary-strong) 72%, var(--primary));
  background: color-mix(in srgb, var(--accent) 10%, var(--surface) 90%);
  border-color: color-mix(in srgb, var(--primary) 18%, var(--line));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--primary) 8%, transparent),
    0 0 0 4px color-mix(in srgb, var(--primary) 6%, transparent);
}

.meta-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.meta-pill {
  display: inline-flex;
  gap: 0.42rem;
  align-items: center;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface) 86%);
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.tag:hover,
.tag:focus-visible {
  color: var(--text);
  border-color: color-mix(in srgb, var(--primary) 22%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, var(--surface) 90%);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--primary) 8%, transparent),
    0 0 0 4px color-mix(in srgb, var(--primary) 6%, transparent);
}

.tag:focus-visible {
  outline: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.inline-icon {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
}

.single-card.prose h2,
.single-card.prose h3 {
  margin-top: 1.8rem;
}

.single-card.prose p,
.single-card.prose li {
  color: var(--muted);
}

.single-card.prose ul,
.single-card.prose ol {
  padding-left: 1.2rem;
}

.single-card.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
}

.single-card.prose strong {
  color: var(--text);
}

.single-card.prose blockquote {
  margin: 1.2rem 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--primary);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.taxonomy-block {
  margin-top: 1.2rem;
}

.taxonomy-block strong {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.taxonomy-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
  align-items: center;
}

.taxonomy-card span {
  color: var(--muted);
}

.pagination {
  margin-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  color: var(--muted);
}

.site-footer {
  padding-top: 4rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 1.5rem;
  padding-bottom: 2rem;
}

.footer-brand {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.footer-brand strong {
  font-family: var(--font-heading);
  font-size: 2rem;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
}

.footer-list li+li {
  margin-top: 0.55rem;
}

.footer-list a:hover,
.social-row a:hover {
  color: var(--text);
}

.social-row {
  display: flex;
  gap: 0.7rem;
  margin-top: 1rem;
}

.social-row a {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 62%, transparent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted-2);
  border-top: 1px solid var(--line);
  padding: 1rem 0 2rem;
  font-size: 0.92rem;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.4rem;
}

.form-field {
  display: grid;
  align-content: start;
  gap: 0.3rem;
}

.form-field label {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.form-field.is-required label::after {
  content: " *";
  color: #dc2626;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--text);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--primary) 40%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent);
}

.contact-form.was-validated .form-field input:invalid,
.contact-form.was-validated .form-field textarea:invalid,
.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.field-error {
  color: #b91c1c;
  font-size: 0.84rem;
  line-height: 1.35;
}

.field-error:empty {
  display: none;
}

.form-status {
  display: none;
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  line-height: 1.45;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  color: #166534;
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.2);
}

.form-status.is-error {
  color: #991b1b;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
}

.contact-form button[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.form-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 1100px) {
  .header-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.85rem 1rem;
  }

  .main-nav {
    grid-column: auto;
    width: 100%;
    min-width: 0;
    justify-self: stretch;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.8rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.15rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.84rem;
    letter-spacing: 0.04em;
  }

  .brand-logo-wrap {
    padding-inline: 0.32rem 0.9rem;
  }

  .brand-text strong {
    font-size: 1.08rem;
  }

  .brand-text span {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .search-shell {
    width: min(260px, 34vw);
    min-width: 180px;
    flex: 0 1 min(260px, 34vw);
  }
}

@media (max-width: 1040px) {

  .hero-grid,
  .footer-grid,
  .card-grid,
  .taxonomy-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 760px;
  }

  .section-heading,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 1160px) and (min-width: 801px) {
  .header-actions {
    position: relative;
    gap: 0.55rem;
  }

  .header-search-toggle-inline {
    display: inline-flex;
  }

  .header-actions .search-shell {
    display: none;
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    width: min(320px, 42vw);
    min-width: 240px;
    flex: none;
  }

  .site-header.is-search-open .header-actions .search-shell {
    display: block;
  }
}

@media (max-width: 800px) {
  .header-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem 1rem;
  }

  .brand {
    grid-column: 2;
    justify-self: center;
    min-width: 0;
  }

  .brand-logo-wrap {
    padding: 0.28rem 0.92rem 0.28rem 0.32rem;
  }

  .brand-text strong {
    font-size: 1.02rem;
  }

  .brand-text span {
    font-size: 0.66rem;
    letter-spacing: 0.12em;
  }

  .header-mobile-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    grid-column: 1;
    justify-self: start;
  }

  .header-search-toggle {
    display: inline-flex;
    grid-column: 3;
    justify-self: end;
  }

  .main-nav,
  .header-actions {
    width: 100%;
    grid-column: 1 / -1;
  }

  .main-nav {
    display: none;
    justify-self: stretch;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--bg-elevated) 94%, transparent);
    box-shadow: var(--shadow);
  }

  .site-header.is-menu-open .main-nav {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border-bottom-width: 0;
    border-radius: 14px;
  }

  .main-nav a.is-active {
    background: color-mix(in srgb, var(--primary) 10%, transparent);
  }

  .header-actions {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--bg-elevated) 94%, transparent);
    box-shadow: var(--shadow);
  }

  .site-header.is-menu-open .header-actions,
  .site-header.is-search-open .header-actions {
    display: flex;
  }

  .header-actions .search-shell {
    display: none;
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
  }

  .site-header.is-search-open .header-actions {
    justify-content: stretch;
  }

  .site-header.is-search-open .header-actions .search-shell {
    display: block;
  }

  .site-header.is-search-open .header-actions .theme-toggle {
    display: none;
  }

  .header-actions {
    grid-column: 1 / -1;
  }

  .site-header.is-menu-open .header-actions .theme-toggle {
    display: grid;
  }

  .theme-toggle {
    flex: none;
  }

  .site-header.is-search-open .search-input {
    padding-inline: 2.45rem 0.8rem;
  }

  .search-results {
    inset-inline: 0;
  }
}

@media (max-width: 720px) {

  .hero,
  .page-header,
  .section {
    padding: 2rem 0 1rem 0;
  }

  h1 {
    max-width: 100%;
  }

  .hero-support-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }
}

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

  .header-toggle-label {
    display: none;
  }

  .header-menu-toggle {
    width: 2.7rem;
    padding-inline: 0;
  }
}
