:root {
  --paper: #fbf8f2;
  --surface: #fffdfa;
  --ink: #2d2223;
  --muted: #62534f;
  --accent: #801e36;
  --accent-deep: #611426;
  --accent-soft: #f6e9e8;
  --line: #e3d7ce;
  --soft: #f3ebe0;
  --green: #485b50;
  --heading-font: Georgia, 'Times New Roman', serif;
  --radius: 16px;
  --gap: clamp(14px, 2.2vw, 26px);
}

body { font-size: 16px; line-height: 1.6; }
.shell { width: min(1180px, calc(100% - 64px)); }
main { min-width: 0; }
h1, h2, h3 { font-family: var(--heading-font); color: var(--ink); overflow-wrap: break-word; }
h1 { font-size: clamp(2.15rem, 3.8vw, 3.85rem); margin: 0 0 14px; letter-spacing: -.043em; line-height: 1.03; }
h2 { font-size: clamp(1.65rem, 2.55vw, 2.65rem); margin: 0 0 14px; line-height: 1.12; letter-spacing: -.035em; }
h3 { font-size: clamp(1.25rem, 2.1vw, 1.65rem); margin: 0 0 8px; line-height: 1.17; letter-spacing: -.027em; }
.lead { color: var(--muted); margin: 0; max-width: 53ch; font-size: clamp(.98rem, 1.55vw, 1.19rem); line-height: 1.54; }
.site-icon { display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -.15em; flex: none; }
.icon-back { transform: rotate(180deg); }
a:hover { color: var(--accent); }
[hidden] { display: none !important; }

.header {
  justify-content: space-between;
  min-height: 80px;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.brand { flex: 0 0 auto; gap: 10px; }
.brand img { width: 41px; height: 41px; }
.brand strong { display: block; color: var(--accent-deep); font: bold 25px/.99 var(--heading-font); letter-spacing: -.045em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.3; letter-spacing: 0; text-transform: none; }
.header nav { width: auto; display: flex; flex-wrap: nowrap; gap: clamp(7px, 1.4vw, 20px); align-items: center; }
.header nav a, .header .nav-plan {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  min-height: 42px;
  padding: 5px 3px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}
.header nav .site-icon { color: var(--accent); }
.header nav a:hover { color: var(--accent); text-decoration: underline; }
.header .nav-plan { border: 1px solid var(--line); border-radius: 10px; padding-inline: 10px; color: var(--accent); background: var(--surface); }
.header .nav-plan:hover { background: var(--accent-soft); text-decoration: none; }

.hero { padding-top: 24px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .99fr) minmax(0, 1.01fr);
  gap: 0;
  min-width: 0;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: #f4ebdf;
}
.hero-copy { padding: clamp(24px, 4.6vw, 62px); align-self: center; }
.hero h1 { margin: 0 0 14px; color: var(--accent-deep); font-size: clamp(2.5rem, 6.2vw, 6.05rem); line-height: .97; }
.hero-copy .lead { max-width: 36ch; }
.hero-links { display: flex; flex-wrap: wrap; gap: 6px 15px; margin-top: 15px; }
.hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  color: var(--accent-deep);
  font-size: .88rem;
  text-decoration: none;
  font-weight: 700;
}
.hero-links a:hover { text-decoration: underline; }
.hero-art { position: relative; width: auto; min-width: 0; min-height: clamp(275px, 34vw, 438px); margin: 0; padding: 0; border: 0; border-radius: 0; background: #f4ebdf; transform: none; box-shadow: none; }
.hero-art img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.planner {
  margin-top: 14px;
  padding: 15px clamp(14px, 2.3vw, 25px) 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}
.planner-heading { display: flex; gap: 7px; align-items: center; margin: 0 0 8px; color: var(--accent-deep); font: 700 15px/1.3 Arial, sans-serif; letter-spacing: 0; }
.planner-form { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; }
.planner label, .exc-filter label { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0; }
.planner label { margin-bottom: 4px; }
.planner select, .exc-filter select, .exc-filter input {
  margin-top: 0;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 7px 10px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid #cdbeb1;
  border-radius: 9px;
  font-size: 16px;
}
.exc-filter select, .exc-filter input { margin-top: 5px; }
.button, .planner button, .exc-filter .button {
  min-height: 44px;
  padding: 9px 16px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 9px;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}
.button:hover, .planner button:hover, .exc-filter .button:hover {
  background: var(--accent-deep);
  color: #fff;
  border-color: var(--accent-deep);
}
.text-button { border-radius: 8px; color: var(--accent-deep); }
.text-button:hover { background: var(--accent-soft); }
.section { padding: clamp(30px, 4.8vw, 60px) 0; border-color: var(--line); scroll-margin-top: 12px; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 9px 24px;
  margin-bottom: 19px;
}
.section-heading p { margin: 0; font-size: .94rem; line-height: 1.5; max-width: 47ch; }
.design-heading { display: flex; align-items: center; gap: 10px; }
.design-heading .site-icon { width: .8em; height: .8em; color: var(--accent); }
.result-meta, .exc-result-meta { gap: 12px; margin-block: 0 12px; align-items: center; }
.result-meta p, .exc-result-meta p { margin: 0; color: var(--muted); font-size: .875rem; }
.result-meta button { flex: none; padding: 8px 10px; }
.empty, .exc-empty { border-color: var(--line); border-radius: var(--radius); background: var(--surface); }

.route-grid, .districts, .exc-grid { gap: var(--gap); }
.districts { border: 0; }
.route-card, .district, .exc-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.district:first-child { padding: 0; }
.district:last-child { border: 1px solid var(--line); }
.card-picture, .district .editorial-art, .exc-photo {
  display: block;
  width: 100%;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  background: var(--soft);
}
.card-picture img, .district .editorial-art, .exc-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  transition: none;
}
.card-picture:hover img, .exc-photo:hover img { transform: none; }
.design-card-body, .exc-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  padding: clamp(13px, 2vw, 20px);
}
.route-card h3, .district h3, .exc-card h3 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2.15vw, 1.68rem);
  line-height: 1.14;
}
.route-card p, .district p, .exc-card .exc-note { margin: 0 0 12px; color: var(--muted); font-size: .875rem; line-height: 1.52; }
.card-meta, .exc-meta {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 2px 12px;
  color: var(--green);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 9px;
}
.card-meta span, .exc-meta span { display: inline-flex; align-items: center; gap: 4px; }
.card-meta span:nth-child(2), .exc-meta .site-icon { color: var(--accent); }
.route-card .card-link, .district .design-card-body > a, .exc-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  padding: 4px 0;
  margin-top: auto;
  color: var(--accent-deep);
  font-size: .83rem;
  line-height: 1.3;
  font-weight: 700;
  text-decoration: none;
}
.route-card .card-link:hover, .district .design-card-body > a:hover, .exc-more:hover { text-decoration: underline; }
@media (min-width: 1080px) {
  .route-grid:not(:has(> [hidden])) { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .route-grid:not(:has(> [hidden])) .route-card { grid-column: span 3; }
  .route-grid:not(:has(> [hidden])) .route-card:nth-child(-n + 3) { grid-column: span 4; }
}
.guide-list { gap: 12px; }
.guide-list a {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 61px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--accent-deep);
}
.guide-list strong { font: 600 .94rem/1.35 Arial, sans-serif; }

.topic-nav { gap: 7px; margin: 16px 0; }
.topic-nav a {
  min-height: 36px;
  gap: 6px;
  padding: 6px 11px;
  border-color: var(--line);
  border-radius: 100px;
  background: var(--surface);
  color: var(--accent-deep);
  font-size: .83rem;
  line-height: 1.35;
  overflow-wrap: break-word;
}
.topic-nav a:hover, .topic-nav a:focus-visible { background: var(--accent-soft); }
.topic-nav.shell { margin-inline: auto; }

.footer {
  margin-top: clamp(20px, 3.4vw, 42px);
  padding: 21px 0 16px;
  border-top: 2px solid var(--accent);
  color: var(--muted);
}
.footer .brand img { width: 37px; height: 37px; }
.footer .brand strong { font-size: 23px; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 13px 26px; }
.footer-top > div { max-width: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 3px 18px; margin: 0; }
.footer-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; font-size: .8rem; text-decoration: none; color: var(--accent-deep); }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 10px; padding-top: 10px; gap: 12px; font-size: 11px; }
.footer-bottom span { margin: 0; }
#provider-ad-disclosures, .provider-ad-disclosures { margin-top: 7px; color: var(--muted); font-size: 11px; }
#provider-ad-disclosures p, .provider-ad-disclosures p { margin: 3px 0; }

.article-title, .district-head, .exc-intro, .exc-detail-head {
  padding: clamp(20px, 3vw, 38px) 0 clamp(18px, 2.7vw, 32px);
  max-width: 1180px;
}
.article-title h1, .district-head h1, .exc-intro h1, .exc-detail-head h1, .legal h1 {
  font-size: clamp(2rem, 4.3vw, 3.65rem);
  line-height: 1.04;
  color: var(--accent-deep);
  max-width: 25ch;
}
.exc-detail-head h1 { max-width: 29ch; }
.exc-intro .lead { font-size: clamp(.98rem, 1.55vw, 1.19rem); }
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  margin: 0 0 11px;
  color: var(--accent-deep);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
}
.back:hover { text-decoration: underline; }
.design-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  align-items: center;
  gap: clamp(16px, 4.2vw, 55px);
}
.design-intro-copy { min-width: 0; }
.design-art {
  width: 100%;
  aspect-ratio: 8 / 5;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
}
.topic-action { margin-top: 13px; }
.topic-article { padding-bottom: 8px; }
.topic-copy { max-width: 72ch; margin: 0; }
.topic-copy h2 { margin-top: 21px; }
.topic-copy p, .district-prose p, .district-index p { font-size: 1rem; line-height: 1.67; }
.topic-nav + .topic-sources { margin-top: 13px; }
.topic-block, .district-guides { padding-block: 21px; }
.topic-block h2, .district-index h2, .district-next h2, .district-guides h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); }
.district-facts { display: flex; align-items: baseline; gap: 6px; font-size: .88rem; margin: 12px 0 0; color: var(--accent-deep); }
.district-facts .site-icon { align-self: center; }
.district-layout, .article-layout, .exc-detail-layout {
  grid-template-columns: minmax(0, 1.72fr) minmax(0, .9fr);
  align-items: start;
  gap: clamp(20px, 5.2vw, 66px);
}
.article-layout { padding-bottom: 25px; }
.article-layout article, .district-prose, .exc-description { min-width: 0; max-width: 75ch; }
.article-layout article h2, .district-prose h2, .topic-copy h2, .exc-description h2 {
  font-size: clamp(1.45rem, 2.8vw, 2.16rem);
  margin: 23px 0 9px;
}
.article-layout article p, .exc-description p, .exc-description li { line-height: 1.67; }
.article-layout article p, .district-prose p, .exc-description p { margin-block: 9px 15px; }
.article-layout article img, .district-prose img { border-radius: 10px; }
.article-layout article a, .district-prose a, .exc-description a { overflow-wrap: anywhere; }
.route-facts {
  margin: 0 0 18px;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.route-facts dt { display: flex; gap: 5px; align-items: center; color: var(--green); text-transform: none; font-size: .81rem; letter-spacing: 0; }
.route-facts dd { color: var(--ink); font-size: .89rem; }
.stops { margin-top: 17px; }
.stops li { padding-bottom: 16px; padding-left: 21px; }
.stops li:before { width: 9px; height: 9px; left: -5px; }
.stops h3 { font-size: clamp(1.22rem, 2vw, 1.48rem); }
.side-card, .district-aside, .exc-booking {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--soft);
}
.side-card h3, .district-aside h2, .booking-title { font-size: 1.33rem; line-height: 1.2; }
.map-card-title, .district-aside h2, .booking-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-deep);
}
.district-aside a { margin: 8px 0; font-size: .9rem; }
.district-links { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 9px; margin: 13px 0 21px; }
.district-links a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  padding: 9px 13px;
  border-color: var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: .89rem;
  color: var(--accent-deep);
}
.district-toc {
  gap: 4px;
  margin: 0 0 18px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--soft);
  color: var(--accent-deep);
  font-size: .89rem;
}
.district-toc strong { display: flex; align-items: center; gap: 7px; }
.district-prose section { margin: 19px 0; }
.sources, .exc-source-note { margin-top: 21px; padding-top: 12px; border-color: var(--line); }
.legal { padding-bottom: 32px; max-width: 1180px; }
.legal :where(p, ul, ol) { max-width: 73ch; }
.legal h2 { font-size: clamp(1.45rem, 2.4vw, 2.1rem); }
.legal a { overflow-wrap: anywhere; }
.analytics-option { width: fit-content; border-radius: 12px; }
.exc-filter { padding: 13px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); gap: 11px; }
.exc-result-meta { margin-top: 11px; }
.exc-catalog { padding-bottom: 27px; }
.exc-card .exc-rating { color: var(--green); }
.exc-card-body .exc-price { margin-top: auto; }
.exc-card-body .exc-price + .exc-more { margin-top: 0; }
.exc-grid>.exc-card:only-child { gap: 0; }
.exc-grid>.exc-card:only-child .exc-photo { aspect-ratio: 8 / 5; }
.exc-grid>.exc-card:only-child .exc-card-body { padding: clamp(13px, 2vw, 20px); }
.exc-freshness { font-size: .77rem; color: var(--muted); margin-top: 15px; }
.exc-disclosure, .district-ad { font-size: .74rem; color: var(--muted); }
.exc-gallery { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); max-height: none; align-items: stretch; gap: 9px; }
.exc-gallery:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.exc-gallery:has(> :nth-child(2):last-child) { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (min-width: 701px) and (max-width: 1000px) {
  .exc-gallery { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}
.exc-gallery img { min-width: 0; min-height: 0; height: clamp(240px, 27vw, 360px); border-radius: 12px; background: var(--soft); }
.exc-gallery img:first-child { min-height: 260px; }
.exc-detail-layout { padding-block: 25px; }
.exc-facts { border: 1px solid var(--line); padding: 10px 13px; border-radius: 10px; background: var(--surface); font-size: .8rem; }
.exc-facts span { display: inline-flex; align-items: center; gap: 4px; }
.exc-facts .site-icon { color: var(--accent-deep); }
.exc-booking { top: 15px; }
.exc-route-links { margin-top: 16px; padding-top: 11px; border-color: var(--line); }
.exc-route-links a { padding: 5px 0; }
.detail-related { padding-bottom: 15px; }
.review-next { padding-block: 15px; }
.review-next h2 { font-size: clamp(1.42rem, 2.4vw, 2rem); }
.sut-card { border-radius: var(--radius); }

@media (max-width: 900px) {
  .header .nav-plan { display: none; }
  .planner-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .planner-form button, .exc-filter .button { width: 100%; }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 32px); }
  .header { min-height: 0; flex-wrap: wrap; gap: 3px 10px; padding-block: 10px 5px; }
  .header nav { width: 100%; justify-content: space-between; gap: 3px; }
  .header nav a { min-height: 42px; padding-inline: 0; font-size: clamp(10px, 3vw, 13px); gap: 3px; }
  .header nav a .site-icon { width: 1.07em; height: 1.07em; }
  .brand img { width: 36px; height: 36px; }
  .brand strong { font-size: 23px; }
  .brand small { font-size: 10.5px; }
  .hero { padding-top: 13px; }
  .hero-grid { grid-template-columns: 1fr; border-radius: 15px; }
  .hero-copy { padding: 20px 16px 1px; }
  .hero h1 { font-size: clamp(2rem, 9vw, 3.8rem); margin-bottom: 9px; }
  .hero-break { display: none; }
  .hero-links { display: none; }
  .hero-art { min-height: 0; padding: 4px 12px 10px; }
  .hero-art img { position: static; width: auto; height: clamp(147px, 46vw, 245px); margin-inline: auto; border-radius: 8px; }
  .planner { margin-top: 9px; }
  .planner-form { gap: 8px; }
  .planner label, .exc-filter label { font-size: 11px; }
  .planner select, .exc-filter select, .exc-filter input { min-height: 42px; padding: 6px; font-size: 16px; }
  .planner button { min-height: 42px; padding-inline: 5px; font-size: .78rem; }
  .section { padding-block: 28px; }
  .section-heading { margin-bottom: 13px; }
  .section-heading h2 { font-size: clamp(1.55rem, 6.3vw, 2rem); }
  .section-heading .button { min-height: 38px; }
  .route-grid, .districts, .exc-grid { grid-template-columns: 1fr; }
  .guide-list a { min-height: 48px; }
  .footer-top { flex-direction: column; gap: 7px; }
  .footer-links { gap: 0 12px; }
  .footer-bottom, #provider-ad-disclosures, #provider-ad-disclosures p { text-align: left; }
  .footer-bottom span + span { margin-top: 4px; }
  .design-intro { grid-template-columns: 1fr; gap: 12px; }
  .design-art { max-height: 270px; }
  .district-layout, .article-layout, .exc-detail-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .article-layout aside { order: 0; }
  .side-card:not(.route-map-card) { display: block; }
  .side-card { margin-bottom: 9px; }
  .district-aside { display: block; }
  .topic-nav a { min-height: 34px; }
  .exc-gallery { max-height: none; }
  .exc-gallery img, .exc-gallery img:first-child, .exc-gallery img:nth-child(3) { min-height: 0; height: clamp(150px, 56vw, 300px); }
  .exc-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .exc-filter .button { grid-column: 1 / -1; margin-top: 1px; }
}
@media (min-width: 550px) and (max-width: 700px) {
  .route-grid, .districts, .exc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 350px) {
  .shell { width: calc(100% - 24px); }
  .planner { padding-inline: 10px; }
  .planner select, .exc-filter select { text-overflow: ellipsis; }
}
@media print {
  .header, .footer, .planner { display: none; }
  .shell { width: 100%; }
  .article-layout, .district-layout, .exc-detail-layout { display: block; }
  .design-art { width: min(100%, 400px); }
}
