:root {
  --cream: #fff8ef;
  --paper: #fffdf8;
  --ink: #20251f;
  --green: #245b43;
  --green-deep: #1b4834;
  --lime: #d8f078;
  --orange: #f28a54;
  --muted: #687267;
  --line: #e7e4d9;
  --soft: #eef4e2;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(32, 37, 31, 0.04), 0 10px 30px -18px rgba(32, 37, 31, 0.22);
  --wrap: 1180px;
  --gutter: 24px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0 0 1rem; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green-deep); }

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

ul, ol { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.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: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 248, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-name { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 1.18rem; letter-spacing: -0.02em; }
.main-nav { display: none; gap: 26px; align-items: center; }
.main-nav a { color: var(--muted); text-decoration: none; font-size: 0.94rem; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current='page'] { color: var(--ink); border-bottom-color: var(--green); }
.nav-toggle {
  display: inline-flex; align-items: center; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); border-radius: 999px;
  padding: 8px 16px; font: inherit; font-size: 0.9rem; cursor: pointer;
}
.main-nav.is-open {
  display: flex; position: absolute; left: 0; right: 0; top: 68px;
  background: var(--paper); border-bottom: 1px solid var(--line);
  flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px var(--gutter) 20px;
}
.main-nav.is-open a { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--line); }

/* Typography helpers */
.eyebrow {
  font-family: 'Inter', sans-serif; font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--green);
  margin: 0 0 12px;
}
.lede { font-family: Georgia, 'Times New Roman', serif; font-size: 1.16rem; line-height: 1.62; color: #3a423a; max-width: 62ch; }
.fine { font-size: 0.86rem; color: var(--muted); line-height: 1.55; }
.text-link { font-weight: 500; text-decoration: none; color: var(--green); border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.text-link:hover { color: var(--green-deep); }
.count { font-family: 'Inter', sans-serif; font-size: 0.8rem; color: var(--muted); font-weight: 500; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green); color: #fff; text-decoration: none;
  border: 1px solid var(--green); border-radius: 10px;
  padding: 11px 20px; font-weight: 600; font-size: 0.95rem; font-family: 'Inter', sans-serif;
  cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease;
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--soft); border-color: var(--green); color: var(--ink); }
.btn--block { width: 100%; }

/* Pills */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--paper); border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 5px 12px; font-size: 0.8rem; font-weight: 500;
}
.pill--lime { background: var(--lime); border-color: #c8e360; color: #2c3a15; }
.chip {
  display: inline-block; background: var(--soft); color: var(--green-deep);
  border-radius: 6px; padding: 3px 9px; font-size: 0.73rem; font-weight: 600;
  letter-spacing: 0.02em;
}

/* Hero */
.hero { padding: 48px 0 40px; }
.hero-grid { display: grid; gap: 36px; }
.hero-copy h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); max-width: 16ch; margin-bottom: 18px; }
.hero-copy .lede { margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 16px; }
.hero-visual { margin: 0; }
.hero-visual img {
  width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: var(--paper); box-shadow: var(--shadow);
}
.hero-visual figcaption { margin-top: 12px; font-size: 0.82rem; color: var(--muted); }

/* Search */
.search { position: relative; display: flex; gap: 8px; max-width: 560px; }
.search input {
  flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--paper);
  border-radius: 10px; padding: 12px 16px; font: inherit; font-size: 0.95rem; color: var(--ink);
}
.search input::placeholder { color: #98a096; }
.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); list-style: none; overflow: hidden; margin: 0; padding: 6px;
}
.search-results li { margin: 0; }
.search-results a { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.search-results a:hover, .search-results a:focus { background: var(--soft); }
.search-results .hint { font-size: 0.76rem; color: var(--muted); white-space: nowrap; }

/* Stats */
.stats-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
.stats-grid--inline { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 20px 0; }
.stat { background: var(--paper); padding: 22px 18px; }
.stat-num { display: block; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 1.9rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-label { display: block; margin-top: 4px; color: var(--muted); font-size: 0.86rem; }

/* Sections */
.section { padding: 44px 0; }
.section--tight { padding: 30px 0; border-top: 1px solid var(--line); }
.section--tight:first-of-type { border-top: 0; padding-top: 8px; }
.section-head { margin-bottom: 26px; }
.section-head h2 { font-size: clamp(1.5rem, 3.2vw, 2.05rem); max-width: 22ch; }
.section-head--spaced { margin-top: 44px; }
.section-more { margin-top: 22px; }

/* Grid & cards */
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }

.card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow); transition: border-color 150ms ease, transform 150ms ease;
}
.card:hover { border-color: #cdd7c8; transform: translateY(-2px); color: var(--ink); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card-price { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 0.92rem; font-variant-numeric: tabular-nums; text-align: right; }
.card-price span { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 400; }
.card-title { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 1.1rem; line-height: 1.3; }
.card-meta { font-size: 0.84rem; color: var(--muted); }
.card-foot { margin-top: auto; padding-top: 8px; font-size: 0.86rem; font-weight: 500; color: var(--green); }
.country-flag {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--soft); color: var(--green-deep); border-radius: 10px;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em;
}

/* Group blocks */
.group-grid { display: grid; gap: 18px; }
.group-block { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.group-block h3 { font-size: 1.05rem; margin-bottom: 12px; }
.link-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 14px; }
.link-list a { font-size: 0.9rem; color: var(--muted); text-decoration: none; }
.link-list a:hover { color: var(--green); text-decoration: underline; }

/* Steps */
.steps { list-style: none; display: grid; gap: 16px; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.step-no { display: inline-block; font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 0.8rem; color: var(--green); letter-spacing: 0.08em; margin-bottom: 8px; }
.steps h3 { font-size: 1.08rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.steps--compact { counter-reset: step; }

/* Note band */
.note-band { background: var(--green); color: var(--cream); padding: 44px 0; }
.note-band .eyebrow { color: var(--lime); }
.note-band h2 { color: var(--cream); font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 12px; }
.note-band p { color: #d6e2d8; max-width: 60ch; margin: 0 0 10px; }
.note-inner { display: grid; gap: 22px; align-items: center; }
.note-band .btn { background: var(--lime); border-color: var(--lime); color: #25330f; }
.note-band .btn:hover { background: #cbe95f; border-color: #cbe95f; color: #25330f; }

/* Breadcrumb */
.crumbs { padding: 18px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.82rem; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: '/'; margin-left: 6px; color: #b9bfb4; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green); }
.crumbs [aria-current='page'] { color: var(--ink); }

/* Page head */
.page-head { padding: 26px 0 8px; }
.page-head-grid { display: grid; gap: 28px; }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: 16px; max-width: 18ch; }

/* Side card */
.side-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.side-card h2 { font-size: 1.02rem; margin-bottom: 16px; }
.fact-list { margin: 0; display: grid; gap: 0; }
.fact-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.fact-list > div:last-child { border-bottom: 0; }
.fact-list dt { color: var(--muted); }
.fact-list dd { margin: 0; text-align: right; font-weight: 500; }
.side-note { margin: 16px 0 0; font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.side-actions { display: grid; gap: 8px; margin-top: 18px; }
.side-links { list-style: none; display: grid; gap: 10px; }
.side-links a { font-size: 0.9rem; text-decoration: none; color: var(--ink); }
.side-links a:hover { color: var(--green); text-decoration: underline; }

/* Hub */
.hub-group { margin-bottom: 34px; }
.hub-group h3, .hub-title { font-size: 1.2rem; margin: 0 0 14px; display: flex; gap: 8px; align-items: baseline; }
.compare-row { display: grid; gap: 16px; }
.compare-card { display: flex; flex-direction: column; gap: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.compare-card strong { font-family: 'Manrope', sans-serif; font-size: 1.4rem; }
.compare-card span { color: var(--muted); font-size: 0.9rem; }

/* Detail layout */
.detail-layout { display: grid; gap: 36px; padding-top: 26px; }
.detail-main { min-width: 0; }
.detail-main h1 { font-size: clamp(2rem, 4.8vw, 3.1rem); margin: 6px 0 16px; max-width: 20ch; }
.detail-main .lede { margin-bottom: 8px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 22px 0 8px; }
.detail-side { display: grid; gap: 16px; align-content: start; }

.institution-list { list-style: none; display: grid; gap: 10px; }
.institution-list li { display: flex; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.inst-index { font-family: 'Manrope', sans-serif; font-weight: 700; color: #b6c2ae; font-size: 0.9rem; }
.institution-list strong { display: block; font-family: 'Manrope', sans-serif; font-size: 1rem; }
.institution-list span { font-size: 0.84rem; color: var(--muted); }

/* Price table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.price-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.price-table caption { text-align: left; padding: 14px 16px; color: var(--muted); font-size: 0.82rem; border-bottom: 1px solid var(--line); }
.price-table th, .price-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table thead th { background: var(--soft); font-weight: 600; font-size: 0.8rem; color: var(--green-deep); }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover { background: #fbf9f2; }
.price-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Living */
.living-grid { display: grid; gap: 12px; }
.living-card { display: flex; flex-direction: column; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.living-card strong { font-family: 'Manrope', sans-serif; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.living-card span:last-child { font-size: 0.82rem; color: var(--muted); }
.living-card--accent { background: var(--soft); border-color: #cfdcbb; }

/* Career */
.career-grid { display: grid; gap: 12px; }
.career-card { display: flex; flex-direction: column; gap: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.career-card strong { font-family: 'Manrope', sans-serif; font-size: 1rem; }
.career-card span:last-child { font-size: 0.84rem; color: var(--muted); }

/* FAQ */
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; padding: 16px 20px; font-family: 'Manrope', sans-serif; font-weight: 600;
  font-size: 1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--green); font-weight: 500; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq-body { padding: 0 20px 18px; color: #3f473f; }
.faq-body p { margin: 0; }

/* Prose */
.prose p { max-width: 68ch; }
.prose strong { font-weight: 600; }
.check-list { list-style: none; display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 24px; color: #3f473f; }
.check-list li::before { content: ''; position: absolute; left: 4px; top: 0.6em; width: 9px; height: 9px; border-radius: 2px; background: var(--lime); }

/* Article layout */
.article-layout { display: grid; gap: 36px; padding-top: 26px; }
.article-narrow { max-width: 780px; padding-top: 26px; }
.article-narrow h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); margin: 6px 0 16px; }

/* Blog cards */
.post-card .card-title { font-size: 1rem; }

/* Sitemap */
.sitemap-nav { display: flex; flex-wrap: wrap; gap: 14px; margin: 18px 0; font-size: 0.9rem; }
.sitemap-nav a { text-decoration: none; font-weight: 500; }
.sitemap-list { list-style: none; columns: 2; column-gap: 24px; font-size: 0.86rem; }
.sitemap-list li { break-inside: avoid; margin-bottom: 6px; }
.sitemap-list a { color: var(--muted); text-decoration: none; }
.sitemap-list a:hover { color: var(--green); text-decoration: underline; }
.sitemap-list--cols { columns: 2; }
.sitemap-group { margin-bottom: 28px; }
.sitemap-group h2 { font-size: 1.05rem; margin-bottom: 10px; }
.sitemap-group h2 a { color: var(--ink); text-decoration: none; }

/* Footer */
.site-foot { margin-top: 60px; border-top: 1px solid var(--line); background: var(--paper); }
.foot-grid { display: grid; gap: 32px; padding: 48px 0 32px; }
.foot-brand p { color: var(--muted); font-size: 0.9rem; max-width: 36ch; }
.foot-note { font-family: Georgia, serif; color: var(--green); }
.foot-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 14px; }
.foot-list { list-style: none; display: grid; gap: 9px; }
.foot-list a { color: #3f473f; text-decoration: none; font-size: 0.9rem; }
.foot-list a:hover { color: var(--green); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 20px 0 28px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }
.foot-base p { margin: 0; }

/* 404 */
.notfound { padding: 100px 0; max-width: 640px; }
.notfound h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 8px 0 16px; }

/* Tablet */
@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .group-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .compare-row { grid-template-columns: repeat(2, 1fr); }
  .living-grid { grid-template-columns: repeat(3, 1fr); }
  .career-grid { grid-template-columns: repeat(2, 1fr); }
  .sitemap-list { columns: 3; }
}

/* Desktop */
@media (min-width: 900px) {
  :root { --gutter: 32px; }
  .main-nav { display: flex; }
  .nav-toggle { display: none; }
  .hero { padding: 72px 0 56px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 56px; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .group-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .career-grid { grid-template-columns: repeat(4, 1fr); }
  .page-head-grid { grid-template-columns: 1.6fr 0.8fr; gap: 48px; align-items: start; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
  .detail-side { position: relative; }
  .side-card--sticky { position: sticky; top: 92px; }
  .note-inner { grid-template-columns: 1fr auto; gap: 40px; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr; gap: 56px; }
  .section { padding: 60px 0; }
  .hero-copy h1 { font-size: clamp(2.6rem, 4.2vw, 3.7rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
