:root {
  --primary: #0b705d;
  --primary-dark: #075246;
  --primary-soft: #e9f5f1;
  --secondary: #6658d3;
  --accent: #e6a12a;
  --ink: #102a43;
  --muted: #526579;
  --border: #dbe5e1;
  --background: #f7faf8;
  --surface: #ffffff;
  --dark: #0b2135;
  --header-height: 76px;
  --container: 1180px;
  --reading-width: 760px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 8px 24px rgba(16, 42, 67, 0.08);
  --shadow-md: 0 22px 60px rgba(16, 42, 67, 0.14);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img,
picture,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid #f3b94f;
  outline-offset: 4px;
}

::selection {
  background: #ccebe3;
  color: var(--dark);
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

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

.sr-only {
  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: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--dark);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 750;
  text-decoration: none;
  transform: translateY(-150%);
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(219, 229, 225, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: block;
  flex: 0 1 290px;
  line-height: 0;
}

.brand img {
  width: min(100%, 290px);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
}

.primary-nav > a:not(.button) {
  position: relative;
  color: #2c4358;
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.primary-nav > a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--primary);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.primary-nav > a:not(.button):hover::after,
.primary-nav > a:not(.button):focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 10px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  background: var(--primary);
  color: white;
  border: 1px solid var(--primary);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(11, 112, 93, 0.2);
  font-weight: 750;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
}

.button-small {
  min-height: 44px;
  padding: 10px 17px;
  font-size: 0.9rem;
}

.button-light {
  background: white;
  color: var(--dark);
  border-color: white;
  box-shadow: 0 10px 30px rgba(3, 16, 28, 0.22);
}

.button-light:hover {
  background: #edf8f4;
  color: var(--dark);
  border-color: #edf8f4;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 1rem;
  color: #a9d9cb;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  margin-right: 20px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 10px 0 0 var(--secondary), 20px 0 0 #48a996;
  content: "";
}

.breadcrumbs {
  padding-block: 18px;
  background: white;
  border-bottom: 1px solid var(--border);
}

.breadcrumbs ol {
  display: flex;
  padding: 0;
  margin: 0 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  list-style: none;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.8rem;
}

.breadcrumbs li:not(:last-child)::after {
  color: #9aabb7;
  content: "/";
}

.breadcrumbs a {
  color: var(--primary-dark);
  font-weight: 650;
  text-underline-offset: 3px;
}

.article-hero,
.archive-hero {
  position: relative;
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 18%, rgba(102, 88, 211, 0.24), transparent 26rem),
    radial-gradient(circle at 6% 90%, rgba(36, 159, 130, 0.2), transparent 23rem),
    var(--dark);
  color: white;
}

.article-hero::after,
.archive-hero::after {
  position: absolute;
  right: 7%;
  bottom: -65px;
  width: 160px;
  height: 160px;
  border: 28px solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
  content: "";
}

.article-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 940px;
}

.article-hero h1,
.archive-hero h1 {
  max-width: 930px;
  margin-bottom: 1.35rem;
  color: white;
  font-size: clamp(2.55rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.article-deck,
.archive-deck {
  max-width: 760px;
  margin-bottom: 1.6rem;
  color: #c8d7e2;
  font-size: clamp(1.05rem, 1.8vw, 1.24rem);
  line-height: 1.58;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px 22px;
  color: #a9bdcb;
  font-size: 0.84rem;
  font-weight: 600;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.article-meta svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #6bd3b5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.article-shell {
  display: grid;
  align-items: start;
  gap: clamp(3rem, 7vw, 6rem);
  padding-block: clamp(4rem, 8vw, 7rem);
  grid-template-columns: minmax(0, var(--reading-width)) minmax(240px, 1fr);
}

.article-body {
  min-width: 0;
  color: #29465b;
  font-size: clamp(1.04rem, 1.5vw, 1.11rem);
  line-height: 1.82;
}

.article-body > *:first-child {
  margin-top: 0;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.article-body h2 {
  padding-top: 1.3rem;
  margin: 3.3rem 0 1.15rem;
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
}

.article-body h3 {
  margin: 2.4rem 0 0.85rem;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.article-body h4 {
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
}

.article-body p {
  margin-bottom: 1.35rem;
}

.article-body a {
  color: var(--primary-dark);
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-body a:hover {
  text-decoration-thickness: 2px;
}

.article-body ul,
.article-body ol {
  padding-left: 1.35rem;
  margin: 1.35rem 0 1.7rem;
}

.article-body li {
  padding-left: 0.35rem;
  margin-bottom: 0.55rem;
}

.article-body li::marker {
  color: var(--primary);
  font-weight: 800;
}

.article-body blockquote {
  padding: 1.5rem 1.7rem;
  margin: 2.2rem 0;
  background: var(--primary-soft);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--ink);
  font-size: 1.12rem;
}

.article-body figure,
.article-body .article-media {
  margin: 2.4rem auto;
  text-align: center;
}

.article-body figure img,
.article-body .article-media img,
.article-body > p > img,
.article-body figure a > img {
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.article-body figure a {
  display: block;
}

.article-body figcaption,
.article-body .media-caption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.article-body table {
  display: block;
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  overflow-x: auto;
}

.article-body th,
.article-body td {
  min-width: 150px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  text-align: left;
}

.article-body th {
  background: var(--background);
  color: var(--ink);
}

.article-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 34px);
  display: grid;
  gap: 18px;
}

.sidebar-card {
  padding: 1.4rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.sidebar-card h2 {
  margin-bottom: 0.7rem;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.sidebar-card p {
  margin-bottom: 1.1rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.sidebar-card .button {
  width: 100%;
  font-size: 0.86rem;
}

.sidebar-links {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-links li + li {
  border-top: 1px solid var(--border);
}

.sidebar-links a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.sidebar-links a::after {
  color: var(--primary);
  content: "→";
}

.article-cta {
  position: relative;
  padding: clamp(2rem, 5vw, 3.5rem);
  margin-top: 4rem;
  overflow: hidden;
  background: linear-gradient(115deg, var(--primary-dark), #0b6e5b 64%, #175e72);
  color: white;
  border-radius: var(--radius-lg);
}

.article-cta::after {
  position: absolute;
  right: -55px;
  bottom: -55px;
  width: 150px;
  height: 150px;
  border: 25px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  content: "";
}

.article-cta h2 {
  max-width: 580px;
  padding: 0;
  margin: 0 0 0.8rem;
  color: white;
  font-size: clamp(1.75rem, 4vw, 2.55rem);
}

.article-cta p {
  position: relative;
  z-index: 1;
  max-width: 590px;
  margin-bottom: 1.4rem;
  color: #d4e9e3;
  font-size: 1rem;
}

.article-navigation {
  display: grid;
  gap: 16px;
  padding-block: 2.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-navigation a {
  display: block;
  min-height: 104px;
  padding: 1.15rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.article-navigation a:hover {
  border-color: #a9cabf;
  box-shadow: var(--shadow-sm);
}

.article-navigation small,
.article-navigation strong {
  display: block;
}

.article-navigation small {
  margin-bottom: 0.4rem;
  color: var(--primary-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-navigation strong {
  font-size: 0.9rem;
  line-height: 1.45;
}

.article-navigation .next-link {
  text-align: right;
}

.related-section {
  padding-block: clamp(4.5rem, 8vw, 7rem);
  background: var(--background);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 2.8rem;
  text-align: center;
}

.section-heading .eyebrow {
  color: var(--primary-dark);
}

.section-heading h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-heading p {
  color: var(--muted);
}

.related-grid,
.archive-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-card {
  display: flex;
  min-width: 0;
  min-height: 260px;
  flex-direction: column;
  padding: 1.6rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.article-card:hover {
  border-color: #a9cabf;
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.article-card time {
  margin-bottom: 0.8rem;
  color: var(--primary-dark);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-card h2,
.article-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  line-height: 1.28;
}

.article-card p {
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.58;
}

.article-card .card-link {
  margin-top: auto;
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 750;
}

.archive-main {
  padding-block: clamp(4.5rem, 8vw, 7rem);
  background: var(--background);
}

.archive-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.archive-toolbar h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.archive-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.archive-grid .article-card {
  min-height: 300px;
}

.pagination {
  display: flex;
  margin-top: 3rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pagination a,
.pagination span {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  padding: 7px 12px;
  background: white;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.pagination .current {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.global-cta {
  padding-block: clamp(4rem, 7vw, 6rem);
  background: linear-gradient(105deg, var(--primary-dark), #0b6e5b 58%, #175e72);
  color: white;
}

.global-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.global-cta h2 {
  max-width: 760px;
  margin-bottom: 0.7rem;
  color: white;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.global-cta p {
  max-width: 720px;
  margin-bottom: 0;
  color: #d2e7e1;
  font-size: 1.05rem;
}

.site-footer {
  padding-top: clamp(4rem, 7vw, 6rem);
  background: #071826;
  color: #aebdca;
}

.footer-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: minmax(270px, 1.8fr) repeat(3, minmax(130px, 0.75fr));
}

.footer-brand img {
  width: min(100%, 270px);
  margin-bottom: 1.4rem;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.footer-brand > p {
  max-width: 330px;
  color: #c6d2db;
  font-size: 0.9rem;
}

.footer-brand address {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  font-style: normal;
  line-height: 1.8;
}

.footer-brand address a {
  color: #dfe8ee;
  text-decoration-color: #425566;
  text-underline-offset: 3px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-column h2 {
  margin-bottom: 0.65rem;
  color: white;
  font-size: 0.76rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.footer-column a {
  color: #aebdca;
  font-size: 0.82rem;
  text-decoration: none;
}

.footer-column a:hover {
  color: white;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 24px;
  margin-top: 4rem;
  border-top: 1px solid #203442;
  font-size: 0.76rem;
}

.footer-bottom p {
  margin: 0;
}

/* FAQ page */
.faq-hero {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 5.75rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 12%, rgba(102, 88, 211, 0.24), transparent 25rem),
    radial-gradient(circle at 8% 92%, rgba(36, 159, 130, 0.2), transparent 22rem),
    var(--dark);
  color: white;
}

.faq-hero::after {
  position: absolute;
  right: 7%;
  bottom: -72px;
  width: 170px;
  height: 170px;
  border: 30px solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
  content: "";
}

.faq-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.faq-hero h1 {
  max-width: 850px;
  margin-bottom: 1.15rem;
  color: white;
  font-size: clamp(2.65rem, 5.7vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.faq-hero-inner > p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 1.7rem;
  color: #c8d7e2;
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
}

.faq-tools {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--background);
  border-bottom: 1px solid var(--border);
}

.faq-search-panel {
  display: grid;
  align-items: end;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  gap: clamp(1.5rem, 4vw, 4rem);
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
}

.faq-search-panel h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.faq-search-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.faq-search-panel .faq-eyebrow {
  margin-bottom: 0.7rem;
  color: var(--primary);
}

.faq-search-control label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 750;
}

.faq-search-input-wrap {
  position: relative;
}

.faq-search-input-wrap svg {
  position: absolute;
  top: 50%;
  left: 17px;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 1.8;
  transform: translateY(-50%);
  pointer-events: none;
}

.faq-search-input-wrap input {
  width: 100%;
  min-height: 54px;
  padding: 13px 46px;
  background: #fbfdfc;
  color: var(--ink);
  border: 1px solid #afc2ba;
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
}

.faq-search-input-wrap input::placeholder {
  color: #718496;
}

.faq-search-input-wrap input:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(11, 112, 93, 0.18);
  outline-offset: 1px;
}

.faq-search-status {
  min-height: 1.4rem;
  margin-top: 0.55rem;
  font-size: 0.82rem;
}

.faq-category-nav {
  padding-top: clamp(2rem, 4vw, 3rem);
}

.faq-category-nav > p {
  margin-bottom: 0.75rem;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faq-category-nav > div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.faq-category-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 8px 14px;
  background: white;
  color: var(--primary-dark);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.faq-category-nav a:hover,
.faq-category-nav a:focus-visible {
  background: var(--primary-soft);
  border-color: #9ccabb;
}

.faq-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.3rem;
  gap: 8px;
}

.faq-actions button {
  min-height: 42px;
  padding: 8px 13px;
  background: transparent;
  color: var(--primary-dark);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
}

.faq-actions button:hover,
.faq-actions button:focus-visible {
  background: white;
  border-color: var(--border);
}

.faq-no-results {
  padding: 1.25rem;
  margin: 1.5rem 0 0;
  background: #fff8e8;
  color: var(--ink);
  border: 1px solid #edd49b;
  border-radius: var(--radius-md);
  text-align: center;
}

.faq-no-results a {
  color: var(--primary-dark);
  font-weight: 700;
}

.faq-topic {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.faq-topic-tint {
  background: var(--background);
}

.faq-topic-grid {
  display: grid;
  align-items: start;
  gap: clamp(2rem, 6vw, 5.5rem);
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.65fr);
}

.faq-topic-grid > header {
  max-width: 350px;
}

.faq-topic-number {
  margin-bottom: 0.8rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.faq-topic h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(2rem, 3.6vw, 3rem);
}

.faq-topic-grid > header > p:last-child {
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(16, 42, 67, 0.035);
  overflow: clip;
}

.faq-item[open] {
  border-color: #a9cfc3;
  box-shadow: 0 10px 28px rgba(16, 42, 67, 0.075);
}

.faq-item summary {
  position: relative;
  min-height: 64px;
  padding: 19px 58px 19px 22px;
  color: var(--ink);
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  font-weight: 760;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 20px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-radius: 50%;
  content: "+";
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--primary-dark);
}

.faq-answer {
  padding: 20px 22px 22px;
  color: #29465b;
  border-top: 1px solid var(--border);
  line-height: 1.72;
}

.faq-answer p {
  margin-bottom: 0.9rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.faq-answer a:hover {
  text-decoration-thickness: 2px;
}

.faq-final-cta {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 110%, rgba(51, 178, 146, 0.22), transparent 23rem),
    var(--dark);
  color: white;
}

.faq-final-cta-inner {
  display: grid;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1fr) auto;
}

.faq-final-cta h2 {
  max-width: 700px;
  margin-bottom: 0.8rem;
  color: white;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.faq-final-cta p:not(.eyebrow) {
  max-width: 740px;
  margin-bottom: 0;
  color: #c8d7e2;
}

.faq-final-cta-inner > div:last-child {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 14px;
}

.faq-secondary-link {
  color: white;
  font-weight: 750;
  text-underline-offset: 4px;
}

@media (max-width: 980px) {
  .faq-search-panel {
    grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1.25fr);
  }

  .faq-topic-grid {
    gap: 3rem;
    grid-template-columns: minmax(200px, 0.58fr) minmax(0, 1.42fr);
  }

  .article-shell {
    grid-template-columns: minmax(0, 1fr) 230px;
  }

  .related-grid,
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.6fr repeat(3, 1fr);
  }
}

@media (max-width: 1100px) {
  .menu-toggle {
    display: block;
  }

  .menu-toggle[aria-expanded="true"] > span:nth-child(2) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] > span:nth-child(3) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] > span:nth-child(4) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .primary-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    max-height: calc(100svh - var(--header-height));
    align-items: stretch;
    padding: 18px 20px 28px;
    background: white;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 0;
    overflow-y: auto;
    transform: translateY(-130%);
    visibility: hidden;
    transition: transform 220ms ease, visibility 220ms ease;
  }

  .primary-nav.is-open {
    transform: translateY(0);
    visibility: visible;
  }

  .primary-nav > a:not(.button) {
    min-height: 52px;
    padding: 13px 4px;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }

  .primary-nav > a:not(.button)::after {
    display: none;
  }

  .primary-nav .button {
    margin-top: 20px;
  }
}

@media (max-width: 880px) {
  :root {
    --header-height: 72px;
  }

  .faq-search-panel,
  .faq-topic-grid,
  .faq-final-cta-inner {
    grid-template-columns: 1fr;
  }

  .faq-topic-grid > header {
    max-width: 700px;
  }

  .faq-final-cta-inner > div:last-child {
    align-items: flex-start;
  }

  .article-shell {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .global-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1.6fr repeat(2, 1fr);
  }

  .footer-brand {
    grid-row: span 2;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .brand {
    flex-basis: 228px;
  }

  .faq-hero {
    padding-block: 3.25rem 3.75rem;
  }

  .faq-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.55rem);
    text-wrap: wrap;
  }

  .faq-search-panel {
    padding: 1.25rem;
    border-radius: var(--radius-md);
  }

  .faq-category-nav > div {
    flex-wrap: nowrap;
    padding: 4px 2px 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .faq-category-nav a {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .faq-actions {
    justify-content: flex-start;
  }

  .faq-topic {
    padding-block: 3.5rem;
  }

  .faq-item summary {
    padding: 17px 52px 17px 17px;
  }

  .faq-item summary::after {
    right: 15px;
  }

  .faq-answer {
    padding: 18px 17px 20px;
  }

  .faq-final-cta-inner > div:last-child {
    width: 100%;
  }

  .faq-final-cta .button {
    width: 100%;
  }

  .article-hero h1,
  .archive-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.6rem);
    text-wrap: wrap;
  }

  .article-shell {
    padding-top: 3.5rem;
  }

  .article-sidebar,
  .related-grid,
  .archive-grid,
  .article-navigation {
    grid-template-columns: 1fr;
  }

  .article-navigation .next-link {
    text-align: left;
  }

  .archive-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .article-card,
  .archive-grid .article-card {
    min-height: 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-brand {
    grid-row: auto;
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 410px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .brand {
    flex-basis: 205px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .faq-hero h1 {
    font-size: clamp(2.2rem, 12.5vw, 3rem);
  }

  .faq-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .faq-actions button {
    border-color: var(--border);
  }

  .article-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .faq-tools,
  .faq-final-cta,
  .article-sidebar,
  .article-cta,
  .related-section,
  .global-cta,
  .site-footer {
    display: none !important;
  }

  .faq-hero {
    padding-block: 2rem;
    background: white;
    color: black;
  }

  .faq-hero h1,
  .faq-hero-inner > p:not(.eyebrow) {
    color: black;
  }

  .faq-topic,
  .faq-topic-tint {
    padding-block: 2rem;
    background: white;
  }

  .faq-topic-grid {
    display: block;
  }

  .faq-topic-grid > header {
    margin-bottom: 1.25rem;
  }

  .faq-item {
    break-inside: avoid;
  }

  .faq-item .faq-answer {
    display: block !important;
  }

  .article-hero {
    padding-block: 2rem;
    background: white;
    color: black;
  }

  .article-hero h1,
  .article-deck,
  .article-meta {
    color: black;
  }

  .article-shell {
    display: block;
    padding-block: 2rem;
  }
}

/* Shared back-to-top control */
.back-to-top {
  position: fixed;
  z-index: 80;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: inline-flex;
  min-height: 46px;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem 0.7rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: var(--primary-dark);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(16, 42, 67, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary);
}

.back-to-top svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 420px) {
  .back-to-top {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    min-height: 44px;
    padding: 0.65rem 0.85rem 0.65rem 0.72rem;
    font-size: 0.76rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}

@media print {
  .back-to-top {
    display: none !important;
  }
}
