:root {
  color-scheme: light;
  --deep: #061b25;
  --navy: #0a2b38;
  --navy-soft: #123e4c;
  --teal: #08717a;
  --mint: #28d7b0;
  --mint-soft: #d9f8ef;
  --coral: #ff8066;
  --amber: #ffbd68;
  --canvas: #f3f7f6;
  --surface: #ffffff;
  --surface-soft: #eaf1ef;
  --ink: #14282f;
  --muted: #5b6c72;
  --line: #d5e0de;
  --success: #12765e;
  --warning: #9b4d13;
  --danger: #a63e34;
  --container: 1180px;
  --reading: 744px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 30px;
  --shadow-sm: 0 8px 24px rgba(6, 27, 37, 0.07);
  --shadow-lg: 0 24px 70px rgba(6, 27, 37, 0.14);
  --header-height: 76px;
}

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open,
body.dialog-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

a {
  color: var(--teal);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #04545b;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

::selection {
  background: var(--mint);
  color: var(--deep);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--surface);
  color: var(--deep);
  padding: 10px 18px;
  font-weight: 800;
  box-shadow: var(--shadow-lg);
}

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

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

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

.section-heading h2,
.section-heading p {
  margin: 0;
}

.section-heading h2 {
  max-width: 690px;
  font-size: clamp(2rem, 5vw, 3.55rem);
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.section-heading p {
  max-width: 470px;
  color: var(--muted);
}

.top-note {
  background: var(--deep);
  color: #d7eeea;
  font-size: 0.76rem;
  letter-spacing: 0.025em;
  line-height: 1.3;
}

.top-note .container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(213, 224, 222, 0.8);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: var(--header-height);
  gap: 30px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  color: var(--deep);
  font-size: 1.42rem;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
  text-decoration: none;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-inline: auto;
}

.desktop-nav a {
  border-radius: 999px;
  color: #31474f;
  padding: 9px 12px;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  background: var(--mint-soft);
  color: var(--deep);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.menu-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--deep);
}

.icon-button:hover,
.menu-button:hover {
  border-color: #acc4bf;
  background: var(--mint-soft);
}

.icon-button svg,
.menu-button svg {
  width: 21px;
  height: 21px;
}

.menu-button {
  display: none;
}

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  background: rgba(4, 18, 25, 0.64);
}

.nav-drawer[data-open="true"] {
  display: block;
}

.nav-panel {
  width: min(88vw, 390px);
  height: 100%;
  margin-left: auto;
  overflow-y: auto;
  background: var(--surface);
  padding: 22px;
  box-shadow: -18px 0 58px rgba(6, 27, 37, 0.2);
}

.nav-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 30px;
}

.mobile-nav {
  display: grid;
  gap: 8px;
}

.mobile-nav a {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  padding: 13px 15px;
  font-weight: 760;
  text-decoration: none;
}

.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] {
  border-color: var(--mint);
  background: var(--mint-soft);
}

.nav-panel-note {
  margin-top: 28px;
  border-radius: var(--radius-md);
  background: var(--deep);
  color: #d9efeb;
  padding: 20px;
  font-size: 0.9rem;
}

.nav-panel-note strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--deep);
  color: #fff;
}

.hero::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(40, 215, 176, 0.13), transparent 34%),
    linear-gradient(90deg, rgba(6, 27, 37, 0.98) 0%, rgba(6, 27, 37, 0.84) 43%, rgba(6, 27, 37, 0.06) 73%);
  content: "";
  z-index: 1;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: min(710px, calc(100svh - 110px));
  align-items: center;
  padding-block: clamp(80px, 12vw, 136px);
}

.hero-copy {
  max-width: 690px;
}

.hero .eyebrow {
  color: #7cebd2;
}

.hero h1 {
  max-width: 670px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.2rem);
  font-weight: 900;
  letter-spacing: -0.072em;
  line-height: 0.94;
}

.hero h1 span {
  color: var(--mint);
}

.hero-lead {
  max-width: 600px;
  margin: 28px 0 0;
  color: #cfe5e1;
  font-size: clamp(1.04rem, 2vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 19px;
  font-size: 0.9rem;
  font-weight: 820;
  text-decoration: none;
}

.button-primary {
  background: var(--mint);
  color: var(--deep);
}

.button-primary:hover {
  background: #65e8cc;
  color: var(--deep);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.trust-strip {
  position: relative;
  z-index: 3;
  margin-top: -1px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

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

.trust-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 13px;
  min-height: 102px;
  padding: 18px 30px;
}

.trust-item + .trust-item {
  border-left: 1px solid var(--line);
}

.trust-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  background: var(--mint-soft);
  color: var(--teal);
}

.trust-icon svg {
  width: 20px;
  height: 20px;
}

.trust-item strong,
.trust-item small {
  display: block;
}

.trust-item strong {
  color: var(--deep);
  font-size: 0.92rem;
}

.trust-item small {
  color: var(--muted);
  font-size: 0.77rem;
}

.home-section {
  padding-block: clamp(72px, 10vw, 126px);
}

.home-section + .home-section {
  border-top: 1px solid var(--line);
}

.home-section-dark {
  background: var(--deep);
  color: #fff;
}

.home-section-dark .section-heading p {
  color: #adc9c5;
}

.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: #2f454d;
  padding: 9px 14px;
  font-size: 0.84rem;
  font-weight: 760;
  text-decoration: none;
}

.topic-chip::after {
  color: var(--coral);
  content: "↗";
}

.topic-chip:hover {
  border-color: var(--mint);
  background: var(--mint-soft);
  color: var(--deep);
}

.featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(300px, 0.62fr);
  gap: 22px;
}

.feature-card,
.article-card,
.path-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.feature-card {
  min-height: 540px;
}

.feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4, 20, 27, 0.96), rgba(4, 20, 27, 0.04) 72%);
  content: "";
}

.feature-card-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: clamp(24px, 5vw, 46px);
}

.feature-card .card-tag {
  color: #83ecd5;
}

.feature-card h3 {
  max-width: 720px;
  margin: 9px 0 12px;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.3rem);
  letter-spacing: -0.05em;
  line-height: 1.04;
}

.feature-card p {
  max-width: 620px;
  margin: 0;
  color: #cde2df;
}

.card-link {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
}

.card-link:focus-visible {
  outline-offset: -5px;
}

.compact-stack {
  display: grid;
  gap: 16px;
}

.compact-card {
  min-height: 0;
  padding: 24px;
}

.compact-card::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 90px;
  border-radius: 0 0 0 100%;
  background: linear-gradient(135deg, var(--mint-soft), transparent 70%);
  content: "";
}

.card-tag {
  color: var(--teal);
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.compact-card h3,
.article-card h3,
.path-card h3 {
  margin: 10px 0 10px;
  color: var(--deep);
  font-size: 1.18rem;
  letter-spacing: -0.025em;
  line-height: 1.22;
}

.compact-card p,
.article-card p,
.path-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 18px;
  color: #6a7b81;
  font-size: 0.74rem;
}

.path-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.path-card {
  min-height: 270px;
  padding: 28px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.path-card:hover,
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.path-number {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: var(--deep);
  color: var(--mint);
  font-size: 0.85rem;
  font-weight: 900;
}

.path-card h3 {
  margin-top: 34px;
  font-size: 1.38rem;
}

.article-card {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.article-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy);
}

.article-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.article-card:hover .article-card-media img {
  transform: scale(1.035);
}

.article-card-body {
  padding: 24px;
}

.article-card h3 {
  font-size: 1.28rem;
}

.standards-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 8vw, 96px);
  align-items: start;
}

.standards-copy h2 {
  margin: 0 0 22px;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.standards-copy p {
  color: #b8cfcb;
}

.standard-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.standard-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.standard-list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.standard-list span {
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 900;
}

.standard-list strong,
.standard-list small {
  display: block;
}

.standard-list strong {
  margin-bottom: 3px;
  color: #fff;
}

.standard-list small {
  color: #a9c5c0;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 83% 18%, rgba(40, 215, 176, 0.16), transparent 30%),
    var(--surface);
}

.page-hero .container {
  padding-block: clamp(66px, 10vw, 116px);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 30px;
  padding: 0;
  color: #64777d;
  font-size: 0.76rem;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  margin-left: 7px;
  color: #9aabae;
  content: "/";
}

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

.page-hero h1 {
  max-width: 940px;
  margin: 0;
  color: var(--deep);
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  font-weight: 900;
  letter-spacing: -0.068em;
  line-height: 0.98;
}

.page-lead {
  max-width: 760px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 2.2vw, 1.27rem);
}

.author-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin-top: 30px;
  color: #64767c;
  font-size: 0.78rem;
}

.author-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--deep);
  font-weight: 780;
}

.author-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--deep);
  color: var(--mint);
  font-size: 0.66rem;
  font-weight: 900;
}

.article-hero-media {
  width: min(calc(100% - 40px), var(--container));
  aspect-ratio: 16 / 8.7;
  margin: clamp(44px, 7vw, 78px) auto 0;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--navy);
}

.article-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, var(--reading)) 1fr;
  gap: 48px;
  align-items: start;
  padding-block: clamp(60px, 8vw, 104px);
}

.toc {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  max-height: calc(100svh - var(--header-height) - 48px);
  overflow-y: auto;
}

.toc-title {
  margin: 0 0 13px;
  color: var(--deep);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.toc ol {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: block;
  border-left: 2px solid var(--line);
  color: #61737a;
  padding: 7px 0 7px 13px;
  font-size: 0.78rem;
  line-height: 1.38;
  text-decoration: none;
}

.toc a:hover,
.toc a[data-active="true"] {
  border-color: var(--coral);
  color: var(--deep);
}

.mobile-toc {
  display: none;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.mobile-toc summary {
  padding: 14px 16px;
  color: var(--deep);
  font-size: 0.84rem;
  font-weight: 820;
  cursor: pointer;
}

.mobile-toc ol {
  margin: 0;
  padding: 0 18px 16px 34px;
}

.article-prose {
  min-width: 0;
}

.quick-summary {
  margin: 0 0 46px;
  border: 1px solid #addfd3;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--mint-soft), #f7fffc);
  padding: clamp(24px, 5vw, 34px);
}

.quick-summary h2 {
  margin: 0 0 14px;
  color: var(--deep);
  font-size: 1rem;
  letter-spacing: 0;
}

.quick-summary ul {
  margin: 0;
  padding-left: 1.25em;
}

.quick-summary li + li {
  margin-top: 7px;
}

.prose-section + .prose-section {
  margin-top: 52px;
}

.article-prose h2 {
  margin: 0 0 18px;
  color: var(--deep);
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.article-prose h3 {
  margin: 32px 0 12px;
  color: var(--deep);
  font-size: 1.22rem;
  line-height: 1.3;
}

.article-prose p {
  margin: 0 0 1.25em;
}

.article-prose ul,
.article-prose ol {
  margin: 0 0 1.5em;
  padding-left: 1.35em;
}

.article-prose li + li {
  margin-top: 0.45em;
}

.article-prose strong {
  color: var(--deep);
}

.callout {
  position: relative;
  margin: 28px 0;
  border-left: 4px solid var(--coral);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #fff1ed;
  padding: 18px 20px;
  color: #5d352f;
}

.callout strong {
  display: block;
  margin-bottom: 4px;
  color: #7b3127;
}

.table-scroll {
  margin: 28px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

th,
td {
  min-width: 140px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-soft);
  color: var(--deep);
  font-weight: 800;
}

tr:last-child td {
  border-bottom: 0;
}

.article-side-note {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  max-width: 190px;
  border-top: 2px solid var(--coral);
  color: #66787e;
  padding-top: 14px;
  font-size: 0.75rem;
}

.article-side-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--deep);
}

.faq-block {
  margin-top: 62px;
  border-top: 1px solid var(--line);
  padding-top: 48px;
}

.faq-block h2 {
  margin-bottom: 24px;
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  padding: 20px 42px 20px 0;
  color: var(--deep);
  font-weight: 790;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  position: absolute;
  top: 18px;
  right: 4px;
  color: var(--coral);
  content: "+";
  font-size: 1.35rem;
  line-height: 1;
}

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

.faq-answer {
  padding: 0 30px 19px 0;
  color: var(--muted);
}

.article-footer-note {
  margin-top: 52px;
  border-radius: var(--radius-md);
  background: var(--deep);
  color: #bad0cd;
  padding: 26px;
  font-size: 0.84rem;
}

.article-footer-note strong {
  color: #fff;
}

.related-section {
  border-top: 1px solid var(--line);
  padding-block: clamp(68px, 9vw, 110px);
}

.category-intro {
  max-width: 760px;
}

.category-grid {
  padding-block: clamp(64px, 8vw, 100px);
}

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

.empty-note {
  border: 1px dashed #9bb7b2;
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 30px;
  color: var(--muted);
}

.site-footer {
  background: #04151d;
  color: #a9c1bd;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: clamp(34px, 7vw, 88px);
  padding-block: 74px 56px;
}

.footer-brand .brand {
  color: #fff;
}

.footer-brand p {
  max-width: 460px;
  margin: 20px 0 0;
  font-size: 0.88rem;
}

.footer-heading {
  margin: 0 0 16px;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: #b9cfcb;
  font-size: 0.86rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--mint);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.74rem;
}

.footer-bottom p {
  margin: 0;
}

.search-dialog {
  width: min(calc(100% - 30px), 780px);
  max-height: min(760px, calc(100svh - 30px));
  margin: auto;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 0;
  box-shadow: 0 30px 90px rgba(3, 17, 23, 0.35);
}

.search-dialog::backdrop {
  background: rgba(3, 17, 23, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.search-shell {
  display: grid;
  max-height: min(760px, calc(100svh - 30px));
  grid-template-rows: auto auto minmax(0, 1fr);
}

.search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 12px;
}

.search-head h2 {
  margin: 0;
  color: var(--deep);
  font-size: 1.05rem;
}

.search-form {
  padding: 10px 24px 20px;
}

.search-field {
  width: 100%;
  min-height: 54px;
  border: 1px solid #aac2bd;
  border-radius: 14px;
  background: #f8fbfa;
  color: var(--deep);
  padding: 12px 16px;
}

.search-results {
  overflow-y: auto;
  border-top: 1px solid var(--line);
  padding: 12px 24px 24px;
}

.search-hint {
  color: var(--muted);
  font-size: 0.83rem;
}

.search-result {
  display: block;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  padding: 15px 2px;
  text-decoration: none;
}

.search-result strong,
.search-result small {
  display: block;
}

.search-result strong {
  color: var(--deep);
}

.search-result small {
  margin-top: 3px;
  color: var(--muted);
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 700;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mint), var(--coral));
  pointer-events: none;
}

.not-found {
  display: grid;
  min-height: 68svh;
  place-items: center;
  text-align: center;
}

.not-found h1 {
  margin: 0;
  color: var(--deep);
  font-size: clamp(5rem, 16vw, 10rem);
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.not-found h2 {
  margin: 24px 0 10px;
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: -0.04em;
}

.not-found p {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--muted);
}

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

  .header-actions {
    margin-left: auto;
  }

  .menu-button {
    display: inline-grid;
  }

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

  .article-side-note {
    display: none;
  }

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

@media (max-width: 820px) {
  :root {
    --header-height: 66px;
  }

  body {
    font-size: 16px;
  }

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

  .hero::before {
    background:
      linear-gradient(0deg, rgba(6, 27, 37, 0.99), rgba(6, 27, 37, 0.78)),
      radial-gradient(circle at 50% 15%, rgba(40, 215, 176, 0.1), transparent 42%);
  }

  .hero .container {
    min-height: 690px;
    align-items: end;
    padding-bottom: 76px;
  }

  .hero-copy {
    max-width: 620px;
  }

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

  .trust-item {
    min-height: 84px;
    padding-inline: 14px;
  }

  .trust-item + .trust-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section-heading {
    display: grid;
  }

  .featured-layout,
  .standards-grid {
    grid-template-columns: 1fr;
  }

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

  .compact-card {
    padding: 20px;
  }

  .path-grid,
  .article-grid,
  .category-grid .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-hero-media {
    width: min(calc(100% - 28px), var(--container));
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .article-layout {
    display: block;
  }

  .toc {
    display: none;
  }

  .mobile-toc {
    display: block;
  }

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

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

@media (max-width: 620px) {
  .top-note {
    font-size: 0.69rem;
  }

  .brand {
    font-size: 1.25rem;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 16vw, 4.8rem);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .feature-card {
    min-height: 460px;
  }

  .compact-stack,
  .path-grid,
  .article-grid,
  .category-grid .article-grid {
    grid-template-columns: 1fr;
  }

  .path-card {
    min-height: 220px;
  }

  .page-hero h1 {
    font-size: clamp(2.7rem, 14vw, 4.5rem);
  }

  .article-hero-media {
    aspect-ratio: 4 / 3;
  }

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

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    display: grid;
    padding-block: 20px;
  }
}

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

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

@media print {
  .top-note,
  .site-header,
  .toc,
  .mobile-toc,
  .article-side-note,
  .related-section,
  .site-footer,
  .progress-bar {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .page-hero,
  .article-layout {
    border: 0;
    background: #fff;
    padding: 0;
  }

  .article-layout {
    display: block;
  }

  .article-hero-media {
    margin-top: 20px;
  }

  a {
    color: #000;
  }
}
