:root {
  --ivory: #f7f2e8;
  --ivory-deep: #eee5d5;
  --green: #123d32;
  --green-2: #1e5b49;
  --green-soft: #dbe8df;
  --terracotta: #bd5b3f;
  --terracotta-dark: #8f3e2a;
  --ink: #17231f;
  --muted: #5f6e68;
  --border: #d7d0c3;
  --white: #fffdf8;
  --focus: #0b70c9;
  --shadow: 0 18px 50px rgba(18, 61, 50, .10);
  --radius: 22px;
  --shell: 1180px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Noto Sans CJK SC", "Microsoft YaHei", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; background: var(--ivory); color: var(--ink); line-height: 1.65; }
img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--terracotta-dark); }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 5px; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 14px; background: var(--white); color: var(--green); transform: translateY(-160%); box-shadow: var(--shadow); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgba(215, 208, 195, .8); background: rgba(247, 242, 232, .94); backdrop-filter: blur(16px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-brand-group { display: flex; align-items: center; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--green); text-decoration: none; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50% 50% 44% 56%; background: var(--green); color: var(--ivory); font-family: Georgia, serif; font-weight: 700; letter-spacing: -.05em; }
.brand strong, .brand small { display: block; line-height: 1.15; }
.network-brand { color: var(--muted); text-decoration: none; }
.network-brand-header { display: flex; align-items: center; gap: 8px; padding-left: 14px; border-left: 1px solid var(--border); }
.network-brand-header span { font-size: .68rem; font-weight: 700; white-space: nowrap; }
.network-brand img { display: block; width: 98px; height: auto; border-radius: 8px; background: #fff; }
.network-brand-mobile_brand_bar { display: none; }
.brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; letter-spacing: -.02em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: .72rem; letter-spacing: .06em; }
.primary-nav { display: flex; align-items: center; gap: 6px; }
.primary-nav a { padding: 9px 12px; border-radius: 999px; color: var(--ink); font-size: .94rem; font-weight: 650; text-decoration: none; }
.primary-nav a:hover { background: var(--green-soft); color: var(--green); }
.primary-nav .language-link { margin-left: 8px; border: 1px solid var(--border); background: var(--white); }

.hero { position: relative; overflow: clip; padding: clamp(64px, 9vw, 126px) 0 clamp(58px, 8vw, 105px); }
.hero::before { content: ""; position: absolute; width: 440px; height: 440px; right: -180px; top: -210px; border: 90px solid rgba(189, 91, 63, .13); border-radius: 50%; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); align-items: center; gap: clamp(38px, 7vw, 92px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--terracotta-dark); font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--terracotta); }
h1, h2, h3 { margin: 0; color: var(--green); font-family: Georgia, "Times New Roman", "Noto Serif CJK SC", serif; line-height: 1.08; letter-spacing: -.035em; }
h1 { max-width: 820px; font-size: clamp(2.7rem, 7vw, 5.7rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.lede { max-width: 700px; margin: 26px 0 0; color: #3e5049; font-size: clamp(1.08rem, 2vw, 1.28rem); }
.search-card { position: relative; padding: clamp(24px, 4vw, 42px); border: 1px solid rgba(18, 61, 50, .12); border-radius: 34px; background: var(--white); box-shadow: var(--shadow); }
.search-card::after { content: ""; position: absolute; z-index: -1; inset: 12px -12px -12px 12px; border-radius: inherit; background: var(--green); }
.search-card p { margin: 0; color: var(--green); font-weight: 750; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 34px 0 0; padding: 0; list-style: none; }
.hero-stats li { display: grid; }
.hero-stats strong { color: var(--green); font-family: Georgia, serif; font-size: 1.55rem; line-height: 1; }
.hero-stats span { margin-top: 5px; color: var(--muted); font-size: .82rem; }
.search-shell label { display: block; margin-bottom: 10px; color: var(--green); font-weight: 800; }
.search-input-wrap { position: relative; }
.search-input-wrap::before { content: "⌕"; position: absolute; left: 18px; top: 50%; color: var(--terracotta); font-size: 1.5rem; transform: translateY(-54%); pointer-events: none; }
.search-shell input { width: 100%; min-height: 58px; padding: 14px 16px 14px 48px; border: 1px solid var(--border); border-radius: 15px; background: var(--ivory); color: var(--ink); }
.search-shell input::placeholder { color: #79837e; }
.search-hint { margin: 12px 0 0 !important; color: var(--muted) !important; font-size: .86rem; font-weight: 500 !important; }
.search-results { position: absolute; z-index: 10; left: 24px; right: 24px; top: calc(100% - 18px); overflow: auto; max-height: min(430px, 60vh); margin: 0; padding: 8px; border: 1px solid var(--border); border-radius: 16px; background: var(--white); box-shadow: var(--shadow); list-style: none; }
.search-results:empty { display: none; }
.search-results li { display: grid; gap: 2px; padding: 11px 13px; border-radius: 10px; cursor: pointer; }
.search-results li[aria-selected="true"], .search-results li:hover { background: var(--green-soft); }
.search-results strong { color: var(--green); }
.search-results span { color: var(--muted); font-size: .82rem; }
.search-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.search-facts { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.search-facts h3 { margin-bottom: 12px; }
.facts-list.compact div { padding: 8px 0; }

.language-gateway { min-height: calc(100vh - 77px); display: grid; align-items: center; padding: 70px 0; }
.gateway-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); align-items: center; gap: clamp(44px, 8vw, 110px); }
.gateway-copy h1 { font-size: clamp(3.2rem, 8vw, 7rem); }
.language-choices { display: grid; gap: 16px; }
.language-choices a { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 24px 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); color: var(--ink); text-decoration: none; box-shadow: 0 9px 26px rgba(18, 61, 50, .06); }
.language-choices a:hover { border-color: var(--terracotta); transform: translateY(-2px); }
.language-choices span { color: var(--green); font-family: Georgia, serif; font-size: 1.55rem; font-weight: 700; }
.language-choices small { grid-column: 1; margin-top: 3px; color: var(--muted); }
.language-choices b { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--terracotta); font-size: 1.5rem; }

.section { padding: clamp(58px, 8vw, 104px) 0; }
.section.tint { background: var(--ivory-deep); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-head p { max-width: 620px; margin: 12px 0 0; color: var(--muted); }
.city-grid, .region-grid, .guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.region-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; min-width: 0; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); color: var(--ink); text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(18, 61, 50, .38); box-shadow: 0 16px 34px rgba(18, 61, 50, .09); }
.card p { margin: 10px 0 0; color: var(--muted); }
.card-meta { color: var(--terracotta-dark); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.text-link { font-weight: 750; }
.source-note { margin: 32px 0 0; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }

.page-hero { padding: clamp(48px, 8vw, 92px) 0 44px; border-bottom: 1px solid var(--border); }
.breadcrumbs { margin-bottom: 26px; color: var(--muted); font-size: .9rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: #9b958a; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 360px); gap: clamp(34px, 7vw, 86px); align-items: start; }
.prose { max-width: 760px; }
.prose p { margin: 0 0 1.25em; }
.prose h2 { margin: 1.7em 0 .65em; }
.prose h3 { margin: 1.5em 0 .55em; }
.facts-list { margin: 0; padding: 0; border-top: 1px solid var(--border); }
.facts-list div { display: grid; grid-template-columns: minmax(90px, .8fr) minmax(0, 1.2fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.facts-list dt { color: var(--muted); }
.facts-list dd { margin: 0; color: var(--green); font-weight: 700; overflow-wrap: anywhere; }
.service-list { display: grid; gap: 10px; margin: 24px 0; padding: 0; list-style: none; }
.service-list a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--white); font-weight: 700; text-decoration: none; }
.service-list a::after { content: "↗"; color: var(--terracotta); }
.callout { margin: 28px 0; padding: 22px 24px; border-left: 4px solid var(--terracotta); border-radius: 0 16px 16px 0; background: var(--ivory-deep); }
.region-layout { grid-template-columns: minmax(0, 1fr) minmax(260px, 330px); }
.directory-tools { position: sticky; z-index: 8; top: 77px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px 20px; margin-bottom: 22px; padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: rgba(255, 253, 248, .97); box-shadow: 0 8px 24px rgba(18, 61, 50, .06); }
.directory-tools label { grid-column: 1 / -1; color: var(--green); font-weight: 800; }
.directory-tools input { min-width: 0; min-height: 46px; padding: 10px 13px; border: 1px solid var(--border); border-radius: 11px; background: var(--ivory); }
.directory-tools p { align-self: center; margin: 0; color: var(--muted); font-size: .86rem; }
.directory-tools strong { color: var(--green); }
.municipality-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.municipality-row { display: grid; grid-template-columns: minmax(160px, 1fr) auto auto; align-items: center; gap: 10px 18px; min-width: 0; padding: 13px 15px; border-bottom: 1px solid var(--border); }
.municipality-row[hidden] { display: none; }
.municipality-row > a, .municipality-row > span:first-child { min-width: 0; color: var(--green); font-weight: 720; overflow-wrap: anywhere; }
.municipality-row small { color: var(--muted); white-space: nowrap; }
.curated-badge { padding: 3px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green) !important; font-size: .7rem; font-weight: 800; }
.region-summary { position: sticky; top: 104px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.region-summary h2 { font-size: 1.6rem; }
.city-official-name { margin: 12px 0 0; color: var(--terracotta-dark); font-family: Georgia, serif; font-size: 1.15rem; font-style: italic; }
.city-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, 350px); }
.city-summary { position: sticky; top: 104px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.city-summary h2 { font-size: 1.6rem; }
.primary-action { display: block; margin-top: 22px; padding: 13px 16px; border-radius: 12px; background: var(--green); color: var(--white); font-weight: 800; text-align: center; text-decoration: none; }
.primary-action:hover { background: var(--green-2); color: var(--white); }
.highlight-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.highlight-list li { padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--white); color: var(--green); font-weight: 750; }
.service-notes { display: grid; gap: 12px; padding-left: 1.4em; }
.service-notes li { padding-left: .4em; }
.nearby-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.nearby-grid a { padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--white); font-weight: 750; text-decoration: none; }
.nearby-grid small { display: block; margin-top: 3px; color: var(--muted); font-weight: 500; }
.guide-directory { display: grid; gap: 18px; }
.guide-section { display: grid; grid-template-columns: minmax(190px, .35fr) minmax(0, .65fr); gap: 30px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.guide-section p { margin: 10px 0 0; color: var(--muted); }
.guide-section ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.guide-section a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 11px; background: var(--ivory); font-weight: 720; text-decoration: none; }
.guide-section a::after { content: "↗"; color: var(--terracotta); }
.policy-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(240px, 300px); gap: clamp(36px, 8vw, 100px); align-items: start; }
.policy-prose h2:first-child { margin-top: 0; }
.policy-nav { position: sticky; top: 104px; display: grid; gap: 10px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.policy-nav a { font-weight: 700; }
.not-found { min-height: 70vh; padding: clamp(60px, 9vw, 120px) 0; }
.not-found-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(34px, 7vw, 90px); }
.not-found-grid > div { padding: 30px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.not-found-grid h1, .not-found-grid h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); }
.error-code { display: block; margin-bottom: 18px; color: var(--terracotta-dark); font-weight: 900; letter-spacing: .12em; }
.inline-action { display: inline-block; }
.not-found-search { max-width: 760px; margin-top: 38px; }

.site-footer { padding: 50px 0; border-top: 1px solid var(--border); background: var(--green); color: rgba(255, 253, 248, .8); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, .6fr); gap: 40px; }
.site-footer strong { color: var(--white); font-family: Georgia, serif; font-size: 1.15rem; }
.site-footer p { max-width: 600px; margin: 10px 0 0; }
.site-footer nav { display: flex; flex-wrap: wrap; align-content: start; justify-content: flex-end; gap: 8px 18px; }
.site-footer a { color: var(--white); }
.footer-network { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.footer-network .network-brand img { width: 122px; }
.site-footer .network-brand { color: var(--white); }

@media (max-width: 900px) {
  .hero-grid, .content-grid, .gateway-inner, .region-layout, .city-layout, .policy-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 48px; }
  .city-grid, .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .region-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .header-inner { min-height: 68px; }
  .brand small, .primary-nav > a:not(.language-link) { display: none; }
  .primary-nav .language-link { margin-left: 0; }
  .hero { padding-top: 56px; }
  .hero-grid { gap: 34px; }
  h1 { font-size: clamp(2.45rem, 14vw, 4rem); }
  .search-card { border-radius: 24px; }
  .city-grid, .region-grid, .guide-grid { grid-template-columns: 1fr; }
  .section-head, .footer-grid { display: block; }
  .section-head .text-link { display: inline-block; margin-top: 16px; }
  .site-footer nav { justify-content: flex-start; margin-top: 26px; }
  .region-summary, .city-summary, .policy-nav { position: static; grid-row: 1; }
}

@media (max-width: 768px) {
  .network-brand-header { display: none; }
  .network-brand-mobile_brand_bar { display: flex; min-height: 36px; align-items: center; justify-content: center; gap: 8px; border-top: 1px solid var(--border); background: var(--white); }
  .network-brand-mobile_brand_bar img { width: 78px; }
  .network-brand-mobile_brand_bar span { font-size: .68rem; font-weight: 700; }
}

@media (max-width: 360px) {
  .shell { width: min(calc(100% - 22px), var(--shell)); }
  .brand-mark { width: 38px; height: 38px; }
  .brand strong { font-size: 1rem; }
  .primary-nav a { padding: 8px 9px; }
  .card, .search-card { padding: 20px; }
  .directory-tools { grid-template-columns: 1fr; top: 69px; }
  .municipality-row { grid-template-columns: minmax(0, 1fr) auto; }
  .municipality-row small:last-child { grid-column: 1 / -1; }
  .highlight-list, .nearby-grid { grid-template-columns: 1fr; }
  .guide-section, .not-found-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
