:root {
  --ink: #161916;
  --muted: #66706b;
  --line: #e4e0d7;
  --paper: #f8f5ee;
  --surface: #fffdf8;
  --white: #ffffff;
  --forest: #083f35;
  --moss: #48695d;
  --coral: #bd5e48;
  --amber: #d8a841;
  --blue: #183f59;
  --soft: #edf2ee;
  --shadow: 0 22px 70px rgba(21, 29, 25, 0.13);
  --soft-shadow: 0 12px 34px rgba(21, 29, 25, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  min-height: 68px;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px;
  padding: 10px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid rgba(228, 224, 215, 0.86);
  background: rgba(248, 245, 238, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--forest);
  font-weight: 950;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.brand-mark img {
  width: 27px;
  height: 27px;
}

.top-nav {
  display: flex;
  align-items: center;
  flex: 1 1 520px;
  flex-wrap: wrap;
  gap: 20px;
  color: #4f5852;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.25;
  white-space: normal;
}

.top-nav a {
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a[aria-current="page"] {
  color: var(--forest);
}

.top-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.language-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: #4f5852;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.language-picker select {
  width: auto;
  min-width: 148px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 34px 0 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-transform: none;
}

.page-shell,
.section,
.site-footer {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(58px, 8vw, 112px) 0 clamp(56px, 8vw, 104px);
  background: linear-gradient(135deg, #fffdf8 0%, #f5f7f1 100%);
}

.hero-feature {
  position: relative;
  min-height: clamp(500px, 62vh, 640px);
  overflow: hidden;
  background: var(--forest);
  color: var(--white);
}

.hero-feature::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(6, 27, 24, 0.86) 0%, rgba(6, 27, 24, 0.62) 36%, rgba(6, 27, 24, 0.08) 72%),
    linear-gradient(0deg, rgba(6, 27, 24, 0.62) 0%, rgba(6, 27, 24, 0) 42%);
}

.hero-feature > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.hero-feature-content {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100% - 44px, 1200px);
  min-height: inherit;
  align-content: end;
  gap: 22px;
  margin: 0 auto;
  padding: clamp(62px, 8vw, 104px) 0 clamp(42px, 6vw, 72px);
}

.hero-feature h1 {
  max-width: 720px;
  margin: 0;
  color: var(--white);
  font-size: clamp(2.9rem, 4.9vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-feature p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  line-height: 1.72;
}

.hero-feature .eyebrow {
  color: #f2c777;
}

.hero-feature .primary-action {
  border-color: var(--white);
  background: var(--white);
  color: var(--forest);
}

.hero-feature .secondary-action {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.hero-footnote {
  padding-top: 8px;
  font-weight: 850;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(420px, 0.9fr);
  gap: clamp(40px, 7vw, 104px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  overflow-wrap: anywhere;
  hyphens: auto;
}

.hero h1,
.page-hero h1,
.route-intro h1 {
  margin-bottom: 22px;
  color: var(--forest);
  font-size: clamp(2.45rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

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

.page-hero {
  padding: clamp(46px, 6vw, 78px) 0 clamp(28px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 880px;
}

.page-hero p {
  max-width: 760px;
}

.hero-copy p,
.page-hero p,
.route-intro p,
.article-body p {
  color: #2c332f;
  font-size: clamp(1.04rem, 1.4vw, 1.2rem);
  line-height: 1.72;
}

.hero-actions,
.action-row,
.brief-actions,
.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.primary-action,
.secondary-action,
.source-link,
.mini-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0 17px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--forest);
  font-weight: 950;
  text-decoration: none;
}

.primary-action,
.button.primary,
.mini-button {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--white);
}

.hero-media,
.image-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef1ed;
  box-shadow: var(--shadow);
}

.hero-media {
  height: clamp(380px, 38vw, 560px);
}

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

.editorial-card {
  position: absolute;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  width: min(420px, calc(100% - 32px));
  border: 1px solid rgba(228, 224, 215, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.92);
  padding: 20px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.editorial-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--forest);
  font-size: 1.1rem;
}

.editorial-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: clamp(64px, 8vw, 112px) 0;
  border-top: 1px solid var(--line);
}

.compact-section {
  padding: clamp(42px, 6vw, 76px) 0;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(240px, 0.58fr) minmax(0, 0.72fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: 34px;
}

.calm-header {
  align-items: start;
}

.section-header h2,
.article-header h1 {
  margin: 0;
  color: var(--forest);
  font-size: clamp(1.85rem, 2.7vw, 2.8rem);
  line-height: 1.08;
}

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

.section-header > p {
  max-width: 680px;
  font-size: 1.02rem;
  line-height: 1.72;
}

.card-grid,
.guide-grid,
.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 22px;
}

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

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

.rule-card,
.guide-card,
.feature-card,
.affiliate-card {
  display: flex;
  min-height: 100%;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.86);
  padding: clamp(22px, 2.6vw, 30px);
  box-shadow: var(--soft-shadow);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.path-card {
  background: var(--surface);
}

.rule-card h3,
.guide-card h3,
.feature-card h3,
.affiliate-card h3 {
  margin: 8px 0 10px;
  color: var(--forest);
  font-size: 1.32rem;
  line-height: 1.16;
}

.rule-card p,
.guide-card p,
.feature-card p,
.affiliate-card p {
  color: var(--muted);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
}

.pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  background: #e7f1eb;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 950;
}

.pill.warn {
  background: #fff0df;
  color: #8a4b10;
}

.code-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 26px;
  align-items: center;
  border: 1px solid #ded4c2;
  border-radius: 999px;
  padding: 4px 10px;
  background: #fbf2e3;
  color: #755016;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.28fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: start;
}

.article-header {
  padding: clamp(50px, 7vw, 92px) 0 34px;
}

.article-body {
  display: grid;
  gap: 28px;
}

.article-body section,
.side-panel,
.notice,
.brief-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.88);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--soft-shadow);
}

.article-body h2 {
  color: var(--forest);
  font-size: clamp(1.45rem, 2.3vw, 2rem);
}

.facts {
  display: grid;
  gap: 12px;
  margin: 0;
}

.facts div {
  display: grid;
  gap: 3px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf0eb;
}

.facts dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.facts dd {
  margin: 0;
  color: var(--ink);
}

.side-panel {
  position: sticky;
  top: 96px;
}

.side-panel h2,
.side-panel h3 {
  color: var(--forest);
}

.route-workspace {
  padding: clamp(46px, 7vw, 94px) 0;
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(239, 245, 239, 0.9));
}

.route-grid-page {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(560px, 0.86fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: start;
}

.route-intro {
  position: sticky;
  top: 96px;
}

.route-checklist {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.route-checklist p {
  display: grid;
  gap: 4px;
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.route-checklist strong {
  color: var(--forest);
}

.route-checklist span {
  color: var(--muted);
  line-height: 1.58;
}

.route-console {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(239, 245, 239, 0.92)),
    url("/assets/route-map.svg") top right / 42% no-repeat;
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow);
}

.console-heading,
.brief-title {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.console-heading h2 {
  margin: 0;
  color: var(--forest);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: #56625b;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font: inherit;
  padding: 0 13px;
}

textarea {
  min-height: 128px;
  padding-top: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(8, 63, 53, 0.16);
  border-color: var(--forest);
}

.route-result {
  margin-top: 20px;
}

.brief-card {
  display: grid;
  gap: 16px;
}

.brief-title h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.35rem;
}

.brief-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.brief-item {
  border: 1px solid #e9ece5;
  border-radius: var(--radius);
  background: #fbfcf8;
  padding: 16px;
}

.brief-item strong {
  display: block;
  margin-bottom: 7px;
  color: var(--forest);
}

.brief-item p {
  margin: 0;
  color: var(--muted);
}

.affiliate-strip {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.affiliate-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.affiliate-strip a {
  color: var(--forest);
  font-weight: 950;
}

.feedback-form {
  display: grid;
  gap: 14px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--moss);
  font-weight: 850;
}

.contact-band {
  display: grid;
  width: min(1200px, calc(100% - 40px));
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(22px, 4vw, 54px);
  align-items: center;
  margin: 0 auto 72px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: var(--forest);
  color: var(--white);
  padding: clamp(26px, 4vw, 44px);
  box-shadow: var(--soft-shadow);
}

.contact-band h2 {
  max-width: 620px;
  margin-bottom: 12px;
  color: var(--white);
  font-size: clamp(1.7rem, 2.6vw, 2.45rem);
  line-height: 1.08;
}

.contact-band p {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

.contact-band .eyebrow {
  color: #f2c777;
}

.contact-actions {
  display: grid;
  min-width: min(330px, 100%);
  gap: 12px;
  justify-items: start;
}

.contact-email,
.footer-contact a,
.contact-address a {
  color: var(--forest);
  font-weight: 950;
  text-decoration-color: var(--amber);
  text-underline-offset: 4px;
}

.contact-band .contact-email {
  color: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(34px, 6vw, 72px);
  align-items: start;
}

.contact-address {
  margin-top: 18px;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.contact-sidebar {
  display: grid;
  gap: 22px;
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.contact-sidebar > div {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.contact-sidebar > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1080px) {
  .hero-grid,
  .route-grid-page,
  .article-layout,
  .section-header,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .side-panel,
  .route-intro {
    position: static;
  }

  .card-grid,
  .guide-grid,
  .index-grid,
  .index-grid.two,
  .index-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-sidebar {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 28px;
    padding-left: 0;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .top-nav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    white-space: normal;
  }

  .language-picker {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .language-picker select {
    width: min(210px, 58vw);
    min-width: 0;
  }

  .page-shell,
  .section,
  .site-footer {
    width: min(100% - 28px, 1200px);
  }

  .hero {
    padding: 38px 0 46px;
  }

  .hero-feature {
    min-height: clamp(420px, 52svh, 500px);
  }

  .hero-feature::after {
    background:
      linear-gradient(180deg, rgba(6, 27, 24, 0.08) 0%, rgba(6, 27, 24, 0.74) 48%, rgba(6, 27, 24, 0.9) 100%);
  }

  .hero-feature > img {
    object-position: 72% center;
  }

  .hero-feature-content {
    width: min(100% - 28px, 1200px);
    gap: 16px;
    padding-bottom: 34px;
  }

  .hero-feature h1 {
    font-size: clamp(2.25rem, 11vw, 3.4rem);
  }

  .hero-footnote {
    display: none;
  }

  .route-intro .image-panel {
    display: none;
  }

  .route-checklist {
    display: none;
  }

  .hero h1,
  .page-hero h1,
  .route-intro h1 {
    font-size: clamp(2.1rem, 9.5vw, 3rem);
    line-height: 1.02;
  }

  .hero-media {
    height: clamp(250px, 66vw, 340px);
  }

  .editorial-card {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  .section {
    padding: 52px 0;
  }

  .card-grid,
  .guide-grid,
  .index-grid,
  .index-grid.two,
  .index-grid.three,
  .route-grid,
  .brief-grid {
    grid-template-columns: 1fr;
  }

  .route-workspace {
    padding: 34px 0 48px;
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(244, 239, 230, 0.94));
  }

  .route-console {
    padding: 18px;
    overflow: hidden;
    background-size: 70%;
  }

  .affiliate-strip {
    grid-template-columns: 1fr;
  }

  .contact-band {
    width: min(100% - 28px, 1200px);
    grid-template-columns: 1fr;
    margin-bottom: 52px;
    padding: 24px;
  }

  .contact-actions {
    min-width: 0;
  }

  .site-footer {
    flex-direction: column;
  }
}
