:root {
  --surface: #eef1f4;
  --surface-card: #ffffff;
  --surface-alt: #e3e8ee;
  --slate: #334155;
  --slate-soft: #51607a;
  --ink: #1f2933;
  --teal: #0d9488;
  --teal-dark: #0b7c72;
  --teal-soft: #d6efec;
  --line: #cdd6df;
  --line-soft: #dde3ea;
  --shadow: 0 1px 2px rgba(31, 41, 51, .06), 0 8px 24px rgba(31, 41, 51, .07);
  --shadow-soft: 0 1px 2px rgba(31, 41, 51, .05);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --space: clamp(1rem, 2.5vw, 1.5rem);
  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--slate);
  background: var(--surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.45rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--space);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: .75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.section { padding-block: clamp(2.75rem, 6vw, 4.75rem); }
.section-alt { background: var(--surface-alt); }
.section-head { max-width: 46rem; margin-bottom: 2.25rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: .85rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--teal);
  display: inline-block;
}
.lead { font-size: 1.12rem; color: var(--slate); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  min-height: 48px;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; text-decoration: none; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal-dark); text-decoration: none; }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-ghost:hover { background: rgba(255, 255, 255, .22); color: #fff; text-decoration: none; }

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.node-card:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(238, 241, 244, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.1;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 11px;
  background: var(--ink);
  display: grid;
  place-items: center;
}
.brand-mark svg { width: 24px; height: 24px; stroke: var(--teal-soft); }
.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--slate-soft);
  text-transform: none;
}

.nav-index {
  display: flex;
  align-items: center;
  gap: .35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-index li { position: relative; }
.nav-index a {
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  padding: .55rem .7rem;
  border-radius: 8px;
  color: var(--slate);
  font-weight: 500;
  font-size: .96rem;
}
.nav-index a:hover { background: var(--surface-alt); color: var(--ink); text-decoration: none; }
.nav-index .idx {
  font-family: var(--font-display);
  font-size: .74rem;
  color: var(--teal-dark);
  font-weight: 600;
}
.nav-cta { display: inline-flex; align-items: center; gap: .75rem; }

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-card);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--ink); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-collapse {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-index,
  .nav-cta {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--space);
    box-shadow: var(--shadow);
  }
  .nav-cta { top: auto; box-shadow: none; border-bottom: 1px solid var(--line); padding-top: 0; }
  .nav-index { box-shadow: none; }
  .nav-index a { padding: .85rem .6rem; font-size: 1rem; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .nav-collapse { display: none; }
  .nav-collapse.open { display: flex; flex-direction: column; }
  .nav-cta { position: static; }
}

@media (max-width: 900px) {
  .nav-collapse {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--space) 1.25rem;
    box-shadow: var(--shadow);
  }
  .nav-collapse .nav-index,
  .nav-collapse .nav-cta {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0;
    background: transparent;
  }
  .nav-collapse .nav-cta { margin-top: .75rem; gap: .6rem; }
}

.hero {
  position: relative;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(15, 23, 32, .9) 0%, rgba(20, 38, 46, .78) 45%, rgba(13, 148, 136, .42) 100%);
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(3.5rem, 9vw, 6rem) clamp(2rem, 5vw, 3rem);
  max-width: 44rem;
}
.hero .eyebrow { color: #8fe3da; }
.hero .eyebrow::before { background: #5ccfc3; }
.hero h1 { color: #fff; margin-bottom: .6rem; }
.hero-sub {
  font-size: 1.18rem;
  color: rgba(255, 255, 255, .92);
  max-width: 36rem;
  margin-bottom: 1.75rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.milestone-strip {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(2rem, 5vw, 3rem);
}
.milestone-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, .25);
  padding-top: 1.5rem;
}
.milestone {
  position: relative;
  padding: 0 1.25rem;
  border-left: 1px solid rgba(255, 255, 255, .18);
}
.milestone:first-child { border-left: 0; padding-left: 0; }
.milestone-dot {
  position: absolute;
  top: -1.5rem;
  left: 1.25rem;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid #fff;
  transform: translateY(-50%);
}
.milestone:first-child .milestone-dot { left: 0; }
.milestone-step {
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8fe3da;
  font-weight: 600;
}
.milestone-label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #fff;
  margin: .2rem 0 .25rem;
  font-weight: 600;
}
.milestone-note { font-size: .9rem; color: rgba(255, 255, 255, .82); margin: 0; }

@media (max-width: 760px) {
  .milestone-track { grid-template-columns: 1fr 1fr; gap: 1.5rem 0; }
  .milestone { padding: 0 1rem; }
  .milestone:nth-child(odd) { border-left: 0; padding-left: 0; }
  .milestone:nth-child(odd) .milestone-dot { left: 0; }
}
@media (max-width: 440px) {
  .milestone-track { grid-template-columns: 1fr; }
  .milestone { border-left: 0; padding-left: 0; }
  .milestone-dot { left: 0; }
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.about-panel {
  background: var(--surface-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-soft);
}
.about-panel h3 { font-size: 1.15rem; }
.about-meta { list-style: none; margin: 0; padding: 0; }
.about-meta li {
  display: flex;
  gap: .8rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: flex-start;
}
.about-meta li:last-child { border-bottom: 0; }
.about-meta svg { width: 20px; height: 20px; stroke: var(--teal-dark); flex: none; margin-top: 3px; }
.about-meta strong { color: var(--ink); display: block; font-weight: 600; }
.about-meta span { font-size: .95rem; color: var(--slate-soft); }

.timeline {
  position: relative;
  display: grid;
  gap: 1.4rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--line);
  z-index: 0;
}
.node-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  margin-left: 46px;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.node-card::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 1.9rem;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--line);
  z-index: 2;
  transition: border-color .3s ease, background .3s ease, transform .3s ease;
}
.node-card::after {
  content: "";
  position: absolute;
  left: -28px;
  top: 2.45rem;
  width: 28px;
  height: 2px;
  background: var(--line-soft);
  z-index: 1;
}
.node-card.is-active::before { border-color: var(--teal); background: var(--teal-soft); transform: scale(1.06); }
.node-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line); }

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem 2.5rem;
  position: relative;
}
.timeline-grid .node-card { margin-left: 46px; }

.node-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-alt); }
.node-media img { width: 100%; height: 100%; object-fit: cover; }
.node-step {
  position: absolute;
  top: .85rem;
  left: .85rem;
  background: rgba(31, 41, 51, .85);
  color: #fff;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  padding: .3rem .65rem;
  border-radius: 999px;
}
.node-body { padding: 1.3rem 1.4rem 1.5rem; }
.node-date {
  font-size: .82rem;
  color: var(--teal-dark);
  font-weight: 600;
  letter-spacing: .03em;
  margin-bottom: .5rem;
  display: block;
}
.node-body h3 { margin-bottom: .55rem; }
.node-body h3 a { color: var(--ink); }
.node-body h3 a:hover { color: var(--teal-dark); }
.node-body p { font-size: .98rem; margin-bottom: 1rem; color: var(--slate); }
.read-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  font-size: .95rem;
}
.read-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.read-link:hover svg { transform: translateX(3px); }

@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .timeline-grid { grid-template-columns: 1fr; }
}

.principle-grid,
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.principle-card,
.advantage-card {
  background: var(--surface-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.principle-card { border-top: 3px solid var(--teal); }
.principle-num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--teal-dark);
  display: block;
  margin-bottom: .4rem;
}
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--teal-soft);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.card-icon svg { width: 24px; height: 24px; stroke: var(--teal-dark); }
.advantage-card h3,
.principle-card h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.advantage-card p,
.principle-card p { font-size: .97rem; margin: 0; color: var(--slate); }

@media (max-width: 820px) {
  .principle-grid,
  .advantage-grid { grid-template-columns: 1fr; }
}

.faq-list { display: grid; gap: .9rem; max-width: 56rem; }
.faq-item {
  background: var(--surface-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 1.15rem 1.3rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
}
.faq-q svg { width: 20px; height: 20px; stroke: var(--teal-dark); flex: none; transition: transform .25s ease; }
.faq-q[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-a-inner { padding: 0 1.3rem 1.25rem; color: var(--slate); }
.faq-a p { margin: 0; }

.mission {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.2rem);
  position: relative;
  overflow: hidden;
}
.mission::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--teal);
}
.mission .eyebrow { color: #8fe3da; }
.mission .eyebrow::before { background: #5ccfc3; }
.mission h2 { color: #fff; max-width: 40rem; }
.mission p { color: rgba(255, 255, 255, .9); max-width: 44rem; }

.cta-band {
  background: linear-gradient(120deg, var(--teal-dark), var(--teal));
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .92); max-width: 38rem; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; margin-top: 1.5rem; }
.cta-band .btn-secondary { color: #fff; border-color: rgba(255, 255, 255, .6); }
.cta-band .btn-secondary:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .12); }
.cta-band .btn-primary { background: #fff; color: var(--teal-dark); }
.cta-band .btn-primary:hover { background: #eef1f4; color: var(--teal-dark); }

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .82);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.75rem;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.footer-brand .brand { color: #fff; margin-bottom: .9rem; }
.footer-brand .brand-mark { background: rgba(255, 255, 255, .1); }
.footer-brand p { font-size: .95rem; color: rgba(255, 255, 255, .72); max-width: 24rem; }
.footer-col h4 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-col a { color: rgba(255, 255, 255, .8); }
.footer-col a:hover { color: #fff; }
.footer-contact li {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  margin-bottom: .7rem;
  color: rgba(255, 255, 255, .8);
}
.footer-contact svg { width: 18px; height: 18px; stroke: #5ccfc3; flex: none; margin-top: 3px; }
.footer-contact a { color: rgba(255, 255, 255, .8); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
}
.footer-bottom p { margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .65); }
.footer-bottom .cookie-reopen {
  background: none;
  border: 1px solid rgba(255, 255, 255, .3);
  color: rgba(255, 255, 255, .85);
  font-family: var(--font-body);
  font-size: .9rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  min-height: 40px;
}
.footer-bottom .cookie-reopen:hover { border-color: #5ccfc3; color: #fff; }

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.page-hero {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.page-hero .crumbs {
  font-size: .9rem;
  color: var(--slate-soft);
  margin-bottom: 1rem;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
}
.page-hero .crumbs a { color: var(--slate-soft); }
.page-hero .crumbs span { color: var(--ink); }
.page-hero h1 { max-width: 44rem; }
.page-hero p { max-width: 44rem; font-size: 1.1rem; margin-bottom: 0; }

.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose p, .prose li { color: var(--slate); }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose strong { color: var(--ink); }
.callout {
  background: var(--teal-soft);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.1rem 1.3rem;
  margin: 1.6rem 0;
}
.callout p { margin: 0; color: var(--ink); font-size: .98rem; }

.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3rem);
}
.article-hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.75rem;
  border: 1px solid var(--line-soft);
}
.article-hero-media img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.byline {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--slate-soft);
  font-size: .92rem;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}
.byline .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
.byline strong { color: var(--ink); font-weight: 600; }

.flow-steps {
  list-style: none;
  margin: 1.75rem 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}
.flow-steps li {
  position: relative;
  padding: 1rem 1.2rem 1rem 3.4rem;
  background: var(--surface-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  counter-increment: step;
}
.flow-steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  display: grid;
  place-items: center;
}
.flow-steps strong { display: block; color: var(--ink); margin-bottom: .15rem; }

.prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
}
.prevnext a {
  display: block;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  box-shadow: var(--shadow-soft);
}
.prevnext a:hover { border-color: var(--teal); text-decoration: none; }
.prevnext .pn-label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--slate-soft);
  display: block;
  margin-bottom: .3rem;
}
.prevnext .pn-title { font-family: var(--font-display); color: var(--ink); font-weight: 600; }
.prevnext .next { text-align: right; }

@media (max-width: 560px) {
  .prevnext { grid-template-columns: 1fr; }
  .prevnext .next { text-align: left; }
}

.toc {
  background: var(--surface-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.75rem;
}
.toc h2 { font-size: 1rem; margin: 0 0 .7rem; letter-spacing: .04em; text-transform: uppercase; font-family: var(--font-body); color: var(--slate-soft); }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin-bottom: .35rem; }

.list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem 2.5rem;
}
@media (max-width: 760px) { .list-grid { grid-template-columns: 1fr; } }

.directory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.directory-card {
  background: var(--surface-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.directory-card .card-icon { margin-bottom: 0; }
.directory-card h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.directory-card p { margin: 0; font-size: .96rem; }
.directory-card a { font-weight: 600; }
@media (max-width: 640px) { .directory-grid { grid-template-columns: 1fr; } }

.form-card {
  background: var(--surface-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.2rem);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: .4rem; font-size: .96rem; }
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  padding: .8rem .95rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  resize: vertical;
}
.field input:focus,
.field textarea:focus { border-color: var(--teal); background: #fff; outline: none; }
.field .hint { font-size: .85rem; color: var(--slate-soft); margin-top: .3rem; }

.map-wrap {
  margin-top: 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.map-wrap iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}
.map-actions { padding: 1rem 1.3rem; background: var(--surface-card); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.map-actions p { margin: 0; font-size: .92rem; color: var(--slate-soft); }

.review-note {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  margin: 2rem 0;
  font-size: .95rem;
  color: #7c2d12;
}
.review-note strong { color: #7c2d12; }

.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  background: var(--ink);
  color: rgba(255, 255, 255, .9);
  border-top: 2px solid var(--teal);
  padding: .9rem var(--space);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .18);
  transform: translateY(110%);
  transition: transform .35s ease;
}
.cookie-bar.show { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .cookie-bar { transition: none; }
}
.cookie-bar-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
.cookie-bar p { margin: 0; font-size: .92rem; max-width: 46rem; }
.cookie-bar a { color: #8fe3da; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie-actions button {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .9rem;
  padding: .6rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  min-height: 44px;
  border: 1.5px solid transparent;
}
.btn-cookie-accept { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-cookie-accept:hover { background: var(--teal-dark); }
.btn-cookie-reject { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-cookie-reject:hover { border-color: #fff; }
.btn-cookie-manage { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-cookie-manage:hover { background: rgba(255, 255, 255, .2); }

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 32, .55);
}
.cookie-modal.show { display: flex; }
.cookie-panel {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 36rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  padding: clamp(1.5rem, 4vw, 2.2rem);
}
.cookie-panel h2 { font-size: 1.4rem; }
.cookie-panel > p { font-size: .96rem; }
.cookie-group {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  background: var(--surface-card);
}
.cookie-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .35rem;
}
.cookie-group-head h3 { margin: 0; font-size: 1.05rem; }
.cookie-group p { margin: 0; font-size: .9rem; color: var(--slate-soft); }
.cookie-group .locked { font-size: .82rem; color: var(--teal-dark); font-weight: 600; }

.switch { position: relative; display: inline-block; width: 50px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--line);
  border-radius: 999px;
  transition: background .2s ease;
}
.switch .slider::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s ease;
}
.switch input:checked + .slider { background: var(--teal); }
.switch input:checked + .slider::before { transform: translateX(22px); }
.switch input:disabled + .slider { background: var(--teal); opacity: .5; cursor: not-allowed; }
.switch input:focus-visible + .slider { outline: 3px solid var(--teal); outline-offset: 2px; }
.cookie-panel-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.cookie-panel-actions button {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  padding: .75rem 1.3rem;
  border-radius: 999px;
  cursor: pointer;
  min-height: 46px;
  border: 1.5px solid transparent;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 170;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 32, .55);
}
.modal.show { display: flex; }
.modal-card {
  background: var(--surface-card);
  border-radius: var(--radius);
  max-width: 26rem;
  width: 100%;
  padding: clamp(1.6rem, 4vw, 2.2rem);
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.modal-card .modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal-soft);
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
}
.modal-card .modal-icon svg { width: 28px; height: 28px; stroke: var(--teal-dark); }
.modal-card h2 { font-size: 1.4rem; }
.modal-card p { color: var(--slate); }
.modal-card button {
  margin-top: 1rem;
  background: var(--teal);
  color: #fff;
  border: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  cursor: pointer;
  min-height: 46px;
}
.modal-card button:hover { background: var(--teal-dark); }

.index-intro { margin-bottom: 2.5rem; max-width: 48rem; }
.topic-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.topic-chip {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .45rem 1rem;
  font-size: .88rem;
  color: var(--slate);
  font-weight: 500;
}
