/* 0577 visual system
 * This file is intentionally loaded after styles.css. It centralizes the
 * public-facing visual language without changing content or relationship data.
 */

:root {
  --paper: #f5f3ed;
  --paper-strong: #eeece4;
  --surface: #fffefa;
  --surface-soft: #f0f5f2;
  --surface-warm: #f7f1eb;
  --ink: #172326;
  --muted: #637176;
  --muted-strong: #46575b;
  --line: #d4dedb;
  --line-strong: #b9cac6;
  --jade: #0b7168;
  --jade-dark: #07584f;
  --jade-soft: #e5f0ed;
  --brick: #c34932;
  --brick-soft: #faece7;
  --gold: #b77a24;
  --gold-soft: #f8efdf;
  --sea: #28769a;
  --sea-soft: #e8f1f5;
  --leaf: #588649;
  --leaf-soft: #edf3e9;
  --shadow-sm: 0 4px 16px rgba(27, 50, 52, 0.07);
  --shadow-md: 0 12px 30px rgba(27, 50, 52, 0.1);
  --content-max: 1180px;
  --page-gutter: clamp(18px, 4vw, 32px);
  --section-space: clamp(40px, 5vw, 64px);
  --type-display: 64px;
  --type-page-title: 36px;
  --type-section-title: 26px;
  --type-card-title: 18px;
  --type-body: 15px;
  --type-secondary: 13px;
  --type-label: 12px;
  --type-action: 14px;
  --title-xl: var(--type-display);
  --title-lg: var(--type-page-title);
  --title-md: var(--type-section-title);
  --text-body: var(--type-body);
}

html {
  background: var(--paper);
  color-scheme: light;
  scroll-padding-top: 82px;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: var(--text-body);
  line-height: 1.65;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
  font-family: inherit;
  letter-spacing: 0;
}

img {
  background: var(--paper-strong);
}

a,
button,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: rgba(11, 113, 104, 0.12);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(40, 118, 154, 0.28);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4,
p {
  letter-spacing: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.2;
}

p {
  color: var(--muted);
}

.container {
  width: min(calc(100% - var(--page-gutter) * 2), var(--content-max));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brick);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.section-band {
  position: relative;
  padding: var(--section-space) 0;
}

.section-band + .section-band {
  border-top: 1px solid rgba(185, 202, 198, 0.66);
}

.section-heading {
  display: grid;
  gap: 7px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  max-width: 18em;
  font-size: var(--title-lg);
}

.section-heading p:not(.eyebrow) {
  max-width: 52em;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* Header */
.site-header {
  min-height: 72px;
  padding: 10px max(var(--page-gutter), calc((100vw - var(--content-max)) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(18, 31, 33, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header.admin-header,
.template-body .site-header,
body:not(:has(.hero)) .site-header {
  border-bottom-color: rgba(185, 202, 198, 0.72);
  background: rgba(255, 254, 250, 0.94);
  color: var(--ink);
  box-shadow: 0 3px 12px rgba(27, 50, 52, 0.04);
}

.brand {
  gap: 12px;
  color: inherit;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 850;
}

.brand strong {
  font-size: 20px;
  font-weight: 850;
}

.brand small {
  color: inherit;
  font-size: var(--type-label);
  opacity: 0.72;
}

.desktop-nav {
  gap: 7px;
}

.desktop-nav a {
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 720;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.desktop-nav a[aria-current="page"] {
  background: rgba(11, 113, 104, 0.09);
  color: var(--jade);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}

.admin-header .icon-button,
.template-body .icon-button,
body:not(:has(.hero)) .icon-button {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.icon-button svg {
  width: 21px;
  height: 21px;
}

.mobile-nav {
  top: 72px;
  padding: 12px var(--page-gutter) 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.98);
  box-shadow: var(--shadow-md);
}

.mobile-nav a {
  min-height: 44px;
  border-bottom-color: var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

/* Buttons and common controls */
.primary-button,
.secondary-button,
.home-more-action,
.travel-detail-actions a,
.discover-route-actions a,
.local-weekend-route-actions a {
  min-height: 44px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 800;
}

.primary-button {
  border-color: var(--jade);
  background: var(--jade);
  color: #fff;
  box-shadow: 0 8px 18px rgba(11, 113, 104, 0.22);
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--jade-dark);
}

.secondary-button {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(23, 35, 38, 0.32);
  color: #fff;
}

/* Homepage hero */
.hero {
  min-height: min(660px, 83vh);
  background: #183234;
}

.hero-image {
  filter: saturate(0.86) contrast(1.03);
}

.hero-overlay {
  background: rgba(16, 31, 33, 0.58);
}

.hero-content {
  width: min(calc(100% - var(--page-gutter) * 2), 760px);
  padding-top: clamp(118px, 17vh, 164px);
  padding-bottom: 62px;
}

.hero-content .eyebrow {
  color: #f0c078;
}

.hero h1 {
  margin: 0 0 10px;
  color: #fff;
  font-size: var(--title-xl);
  font-weight: 820;
}

.hero-subtitle {
  max-width: 22em;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 22px;
}

.hero-search {
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: min(100%, 590px);
  min-height: 52px;
  padding: 5px 6px 5px 17px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 7px;
  background: rgba(255, 254, 250, 0.96);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}

.hero-search input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
}

.hero-search button {
  min-height: 40px;
  padding: 0 17px;
  border: 0;
  border-radius: 5px;
  background: var(--jade);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.hero-utility-links {
  margin-top: 11px;
}

.hero-utility-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  text-decoration-color: rgba(255, 255, 255, 0.36);
}

.hero-actions {
  gap: 10px;
  margin-top: 22px;
}

/* Homepage entry and modules */
.quick-entry-band {
  background: var(--surface);
}

.quick-entry-layout {
  gap: clamp(24px, 4vw, 54px);
  align-items: stretch;
}

.home-start-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.home-start-thumb {
  min-height: 238px;
  object-fit: cover;
  filter: saturate(0.92);
}

.home-start-card > span,
.home-start-card > h2,
.home-start-card > p,
.home-start-card > .home-start-steps,
.home-start-card > a {
  margin-inline: 22px;
}

.home-start-card > span {
  margin-top: 20px;
  color: var(--brick);
  font-size: 12px;
  font-weight: 850;
}

.home-start-card h2 {
  margin-top: 7px;
  font-size: var(--title-md);
}

.home-start-card p {
  color: var(--muted);
}

.home-start-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 14px;
}

.home-start-steps span {
  padding: 8px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  font-size: var(--type-label);
  text-align: center;
}

.home-start-card > a {
  margin-top: 18px;
  margin-bottom: 22px;
  color: var(--jade);
  font-size: 13px;
  font-weight: 800;
}

.quick-module-panel {
  align-content: start;
}

.quick-module-intro {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}

.compact-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  overflow: visible;
}

.compact-module-grid .module-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.module-card.primary-route-card {
  --module-color: var(--jade);
  --module-tint: var(--jade-soft);
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 6px 14px;
  min-height: 122px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: inherit;
  box-shadow: 0 2px 10px rgba(27, 50, 52, 0.04);
}

.module-card.primary-route-card.tone-food {
  --module-color: var(--brick);
  --module-tint: var(--brick-soft);
}

.module-card.primary-route-card.tone-route {
  --module-color: var(--sea);
  --module-tint: var(--sea-soft);
}

.module-card.primary-route-card.tone-guide {
  --module-color: var(--leaf);
  --module-tint: var(--leaf-soft);
}

.module-card.primary-route-card.tone-quality {
  --module-color: var(--gold);
  --module-tint: var(--gold-soft);
}

.module-card.primary-route-card::before {
  display: none;
}

.module-card.primary-route-card:hover,
.module-card.primary-route-card:focus-visible {
  border-color: color-mix(in srgb, var(--module-color) 42%, var(--line));
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.module-card.primary-route-card .module-card-head {
  grid-row: 1 / 3;
  display: grid;
  gap: 7px;
  align-content: start;
  color: var(--module-color);
  font-size: var(--type-label);
  font-weight: 850;
}

.primary-route-thumb {
  display: block;
  width: 74px;
  height: 74px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--module-tint);
}

.primary-route-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.module-card .module-copy {
  min-width: 0;
}

.module-card .module-copy h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.module-card .module-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.module-card.primary-route-card .module-card-action {
  align-self: end;
  color: var(--module-color);
  font-size: 12px;
}

/* Destination carousel */
.home-destination-band {
  background: var(--paper);
}

.home-destination-grid {
  display: flex;
  gap: 14px;
  max-width: 100%;
  padding: 2px 0 12px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: var(--page-gutter);
  scrollbar-width: none;
}

.home-destination-grid::-webkit-scrollbar {
  display: none;
}

.home-destination-card {
  flex: 0 0 min(340px, calc(100vw - 52px));
  min-width: min(310px, calc(100vw - 58px));
  overflow: hidden;
  gap: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.home-destination-photo {
  display: block;
  aspect-ratio: 16 / 7.5;
  overflow: hidden;
}

.home-destination-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.home-destination-card:hover .home-destination-photo img {
  transform: scale(1.025);
}

.home-destination-main {
  display: block;
  padding: 16px 16px 9px;
  color: inherit;
}

.home-destination-main > span {
  color: var(--brick);
  font-size: var(--type-label);
  font-weight: 850;
}

.home-destination-main h3 {
  margin: 5px 0 7px;
  font-size: 21px;
}

.home-destination-main p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-destination-food {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.home-destination-food span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px;
  align-items: center;
  min-width: 0;
  font-size: 12px;
}

.home-destination-food b {
  color: var(--jade);
  font-size: var(--type-label);
  font-weight: 850;
}

.home-destination-actions {
  display: flex;
  gap: 15px;
  padding: 11px 16px 15px;
}

.home-destination-actions a {
  color: var(--jade);
  font-size: 12px;
  font-weight: 800;
}

.home-destination-more {
  align-self: stretch;
  min-width: 200px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

/* Continue section */
.home-secondary-band {
  background: var(--surface-soft);
}

.home-secondary-link-grid {
  gap: 12px;
}

.home-secondary-link {
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  gap: 4px 12px;
  min-height: 158px;
  padding: 16px;
  border-color: var(--line);
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(27, 50, 52, 0.04);
}

.home-secondary-link > svg {
  width: 42px;
  height: 42px;
  padding: 10px;
}

.home-secondary-link span {
  font-size: var(--type-label);
}

.home-secondary-link strong {
  font-size: 17px;
}

.home-secondary-link p {
  font-size: 12px;
  line-height: 1.55;
}

.home-secondary-link:hover,
.home-secondary-link:focus-visible {
  border-color: color-mix(in srgb, var(--module-accent) 40%, var(--line));
  box-shadow: var(--shadow-sm);
}

.home-topic-shelf {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.topic-card,
a.topic-card,
.topic-card-entry {
  border-color: var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(27, 50, 52, 0.04);
}

.site-index-band {
  background: var(--paper);
}

.home-more-panel {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.home-more-icon {
  width: 48px;
  height: 48px;
  border-radius: 7px;
  background: var(--jade-soft);
  color: var(--jade);
}

.home-more-copy h2 {
  font-size: 22px;
}

.home-more-tags span {
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--muted-strong);
}

.home-more-action {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--jade);
}

/* Channel and detail shells */
.template-main {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  padding: 72px var(--page-gutter) 72px;
}

.template-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  min-height: 380px;
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
}

.template-hero-copy {
  padding: 0;
}

.template-hero-copy h1 {
  margin: 10px 0 14px;
  font-size: var(--type-page-title);
}

.template-hero-copy > p:not(.eyebrow) {
  max-width: 34em;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--jade-dark);
  font-size: var(--type-label);
  font-weight: 800;
}

.template-hero-visual {
  min-height: 290px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: var(--shadow-md);
}

.template-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.template-content {
  padding-top: 34px;
}

.template-section,
.travel-detail-section {
  margin: 0;
  padding: 32px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.template-section:last-child,
.travel-detail-section:last-child {
  border-bottom: 0;
}

.template-section > h2,
.travel-detail-section > h2,
.template-section .section-heading h2,
.travel-detail-section .section-heading h2 {
  font-size: var(--title-md);
}

.article-shell,
.article-shell.travel-spot-detail-page,
.article-shell.travel-line-detail-page,
.article-shell.local-weekend-detail-page,
.article-shell.food-item-detail-page,
.article-shell.official-scenic-detail-page,
.article-shell.travel-route-detail-page {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.travel-detail-topbar {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 46px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.travel-detail-jump-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 18px;
  padding: 0;
}

.travel-detail-jump-row a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--jade-dark);
  font-size: 12px;
  font-weight: 780;
}

.travel-detail-facts,
.local-weekend-detail-card,
.travel-place-detail-row,
.food-item-info-grid > *,
.quality-evidence-grid > * {
  border-color: var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(27, 50, 52, 0.04);
}

/* Discover and route cards */
.discover-route-teaser-grid {
  gap: 14px;
}

.discover-route-teaser {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 0 18px;
  overflow: hidden;
  padding: 0 18px 16px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.discover-route-media {
  grid-row: 1 / 6;
  width: 168px;
  height: 100%;
  min-height: 248px;
  object-fit: cover;
}

.discover-route-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding-top: 17px;
}

.discover-route-head h3 {
  font-size: 20px;
}

.discover-route-copy {
  display: -webkit-box;
  overflow: hidden;
  margin: 4px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.56;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.discover-route-stops {
  gap: 6px;
}

.discover-route-stops a,
.discover-route-stops span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  font-size: var(--type-label);
}

.discover-route-food-preview,
.local-weekend-food-preview,
.local-weekend-scenario-food {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  font-size: var(--type-label);
}

.discover-route-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 34px;
}

.discover-route-actions a {
  min-height: 0;
  color: var(--jade);
  font-size: 12px;
}

/* Weekend, food and travel card systems */
.local-weekend-scenario-card,
.local-weekend-point-card,
.food-destination-shortcut-card,
.travel-guide-card,
.travel-directory-card,
.travel-route-card,
.food-guide-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.local-weekend-point-grid,
.local-weekend-scenario-grid,
.food-destination-shortcut-grid {
  gap: 14px;
}

.local-weekend-point-image,
.food-destination-shortcut-image {
  object-fit: cover;
  filter: saturate(0.93);
}

.food-destination-shortcut-card {
  min-width: min(320px, calc(100vw - 58px));
}

.food-destination-shortcut-main {
  padding: 14px;
}

.food-destination-shortcut-main h3 {
  margin: 5px 0 6px;
  font-size: 19px;
}

.food-destination-shortcut-main p {
  font-size: 12px;
  line-height: 1.52;
}

.food-place-shortcut-lines {
  border-color: var(--line);
}

.travel-food-name-link,
.food-destination-route-link {
  border-radius: 4px;
  font-size: var(--type-label);
}

/* Search */
.site-search-section {
  max-width: 920px;
  margin-inline: auto;
}

.site-search-form {
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.site-search-form input,
.site-search-form select {
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
}

.site-search-results {
  gap: 10px;
}

.site-search-result {
  --result-color: var(--jade);
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 20px;
  gap: 14px;
  align-items: center;
  min-height: 112px;
  padding: 15px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: inherit;
  box-shadow: 0 2px 10px rgba(27, 50, 52, 0.04);
}

.site-search-result::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--result-color);
}

.site-search-result.is-food,
.site-search-result.type-food {
  --result-color: var(--brick);
}

.site-search-result.is-route,
.site-search-result.type-route {
  --result-color: var(--sea);
}

.site-search-result-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid color-mix(in srgb, var(--result-color) 22%, var(--line));
  border-radius: 7px;
  background: color-mix(in srgb, var(--result-color) 9%, white);
  color: var(--result-color);
}

.site-search-result-icon svg {
  width: 22px;
  height: 22px;
}

.site-search-result-copy strong {
  font-size: 18px;
}

.site-search-result-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.site-search-result-meta {
  color: var(--result-color);
  font-size: var(--type-label);
  font-weight: 800;
}

/* More page and link collections */
.template-hero.is-more-hero {
  grid-template-columns: minmax(0, 1fr) 154px;
  gap: 24px;
  min-height: 0;
  margin-top: 18px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--jade);
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(229, 240, 237, 0.94), rgba(255, 254, 250, 0.88)),
    var(--surface);
}

.template-hero.is-more-hero .status-badge {
  display: none;
}

.template-hero.is-more-hero h1 {
  margin: 5px 0 7px;
  font-size: 34px;
}

.template-hero.is-more-hero p:not(.eyebrow) {
  max-width: 30em;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.55;
}

.template-hero.is-more-hero .more-hero-visual {
  display: grid;
  place-items: center;
  min-height: 118px;
  aspect-ratio: 1.28 / 1;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.more-hero-visual::after {
  display: none;
}

.template-hero-visual .more-hero-icon-grid {
  position: static;
  display: grid;
  grid-template-columns: repeat(2, 48px);
  gap: 8px;
  color: inherit;
}

.template-hero-visual .more-hero-icon-grid > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  min-height: 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--more-accent) 24%, var(--line));
  border-radius: 8px;
  color: var(--more-accent);
  background: color-mix(in srgb, var(--more-soft) 80%, white);
}

.more-hero-icon-grid svg {
  width: 22px;
  height: 22px;
}

.more-page-content {
  padding-top: 18px;
}

.more-page-section {
  gap: 14px;
  padding-block: 24px;
}

.more-link-grid,
.more-topic-grid {
  gap: 12px;
}

.more-link-card {
  min-height: 128px;
  padding: 16px;
  border-color: color-mix(in srgb, var(--more-accent) 22%, var(--line));
  background: color-mix(in srgb, var(--more-soft) 48%, var(--surface));
  box-shadow: var(--shadow-sm);
}

.more-link-icon,
.more-info-icon {
  border-radius: 7px;
}

.more-link-copy strong {
  font-size: 18px;
}

.more-link-copy > span {
  color: var(--muted);
  font-size: 12px;
}

.more-info-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

/* Footer and mobile app shell */
.site-footer {
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #17272a;
  color: rgba(255, 255, 255, 0.86);
}

.footer-compact {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px 28px;
  align-items: center;
}

.footer-identity strong {
  color: #fff;
  font-size: 18px;
}

.footer-identity span,
.footer-legal,
.footer-legal a,
.footer-essential-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--type-label);
}

.footer-essential-links {
  justify-content: end;
}

.footer-essential-links a:hover,
.footer-essential-links a:focus-visible {
  color: #fff;
}

.mobile-tab-bar {
  position: fixed;
  z-index: 80;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 5px 8px max(5px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.96);
  box-shadow: 0 -8px 24px rgba(27, 50, 52, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.mobile-tab-bar a {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
  min-height: 48px;
  padding: 5px 2px;
  color: #667573;
  font-size: var(--type-label);
  font-weight: 720;
}

.mobile-tab-bar a::before {
  content: "";
  position: absolute;
  top: -5px;
  width: 28px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: transparent;
}

.mobile-tab-bar a svg {
  width: 21px;
  height: 21px;
}

.mobile-tab-bar a.is-active {
  color: var(--jade);
}

.mobile-tab-bar a.is-active::before {
  background: var(--jade);
}

/* Tablet */
@media (max-width: 900px) {
  .site-header {
    min-height: 66px;
  }

  .template-main {
    padding-top: 66px;
    padding-bottom: 62px;
  }

  .template-hero {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: 0;
    padding: 34px 0;
  }

  .template-hero-visual {
    min-height: 230px;
    aspect-ratio: 16 / 7;
  }

  .quick-entry-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .compact-module-grid {
    grid-template-columns: 1fr;
  }

  .home-secondary-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-compact {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .footer-essential-links {
    justify-content: start;
  }
}

/* Mobile-first public experience */
@media (max-width: 700px) {
  :root {
    --page-gutter: 14px;
    --section-space: 32px;
    --type-display: 38px;
    --type-page-title: 32px;
    --type-section-title: 22px;
    --type-card-title: 17px;
    --type-body: 15px;
    --type-secondary: 13px;
    --type-label: 12px;
    --type-action: 14px;
  }

  html {
    scroll-padding-top: 68px;
  }

  body.has-mobile-shell {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
  }

  .site-header {
    min-height: 64px;
    padding: 8px var(--page-gutter);
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 12px;
  }

  .brand strong {
    font-size: 18px;
  }

  .brand small {
    display: none;
  }

  .icon-button {
    width: 40px;
    height: 40px;
  }

  .mobile-nav {
    top: 64px;
  }

  .section-heading {
    gap: 5px;
    margin-bottom: 16px;
  }

  .section-heading p:not(.eyebrow) {
    font-size: 13px;
    line-height: 1.58;
  }

  .hero {
    min-height: 500px;
  }

  .hero-content {
    width: calc(100% - var(--page-gutter) * 2);
    padding-top: 116px;
    padding-bottom: 38px;
  }

  .hero h1 {
    margin-bottom: 8px;
  }

  .hero-subtitle {
    margin-bottom: 20px;
    font-size: 18px;
  }

  .hero-search {
    min-height: 50px;
    padding-left: 13px;
  }

  .hero-search button {
    padding-inline: 13px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-actions a {
    justify-content: center;
    padding-inline: 8px;
  }

  .quick-entry-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .home-start-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    column-gap: 15px;
    padding: 12px;
  }

  .home-start-thumb {
    grid-row: 1 / 5;
    width: 112px;
    height: 136px;
    min-height: 0;
    border-radius: 6px;
  }

  .home-start-card > span,
  .home-start-card > h2,
  .home-start-card > p,
  .home-start-card > .home-start-steps,
  .home-start-card > a {
    margin-inline: 0;
  }

  .home-start-card > span {
    margin-top: 2px;
  }

  .home-start-card h2 {
    margin: 4px 0;
    font-size: 20px;
  }

  .home-start-card > p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    font-size: 12px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .home-start-steps {
    display: none;
  }

  .home-start-card > a {
    align-self: end;
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 12px;
  }

  .compact-module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    overflow: visible;
  }

  .module-card.primary-route-card {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 92px;
    padding: 11px;
  }

  .compact-module-grid .module-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .module-card.primary-route-card .module-card-head {
    gap: 5px;
  }

  .primary-route-thumb {
    width: 44px;
    height: 44px;
  }

  .module-card .module-copy h3 {
    font-size: var(--type-card-title);
  }

  .module-card .module-copy p {
    font-size: var(--type-secondary);
    line-height: 1.5;
    -webkit-line-clamp: 1;
  }

  .module-card.primary-route-card .module-card-action {
    font-size: var(--type-label);
  }

  .home-destination-grid,
  .food-destination-shortcut-grid,
  .local-weekend-point-grid {
    margin-inline: calc(var(--page-gutter) * -1);
    padding-inline: var(--page-gutter);
  }

  .home-destination-card {
    min-width: calc(100vw - 52px);
    gap: 0;
    padding: 0;
  }

  .home-destination-photo {
    aspect-ratio: 16 / 7.6;
  }

  .home-destination-main {
    padding: 13px 14px 8px;
  }

  .home-destination-main h3 {
    font-size: 19px;
  }

  .home-destination-main p {
    display: none;
  }

  .home-destination-food {
    margin-inline: 14px;
  }

  .home-destination-actions {
    padding: 9px 14px 13px;
  }

  .home-secondary-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .home-secondary-link {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 132px;
    padding: 12px;
  }

  .home-secondary-link > svg {
    width: 34px;
    height: 34px;
    padding: 8px;
  }

  .home-secondary-link strong {
    font-size: var(--type-card-title);
  }

  .home-secondary-link p {
    display: -webkit-box;
    overflow: hidden;
    font-size: var(--type-secondary);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .home-secondary-link em {
    font-size: var(--type-label);
  }

  .home-more-panel {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 15px;
  }

  .home-more-icon {
    width: 40px;
    height: 40px;
  }

  .home-more-copy h2 {
    font-size: 18px;
  }

  .home-more-copy > p:not(.eyebrow) {
    font-size: var(--type-secondary);
    line-height: 1.5;
  }

  .home-more-tags {
    display: none;
  }

  .home-more-action {
    grid-column: 2;
    justify-self: start;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: var(--type-action);
  }

  .template-main {
    padding: 64px var(--page-gutter) 46px;
  }

  .template-hero {
    gap: 18px;
    padding: 28px 0 24px;
  }

  .template-hero-copy h1 {
    margin: 7px 0 10px;
  }

  .template-hero-copy > p:not(.eyebrow) {
    font-size: 14px;
    line-height: 1.62;
  }

  .template-hero-visual {
    min-height: 0;
    aspect-ratio: 16 / 7;
    box-shadow: var(--shadow-sm);
  }

  .template-content {
    padding-top: 22px;
  }

  .template-section,
  .travel-detail-section {
    padding: 24px 0;
  }

  .travel-detail-jump-row {
    gap: 6px;
    margin-bottom: 12px;
  }

  .travel-detail-jump-row a {
    min-height: 36px;
    padding-inline: 10px;
    font-size: var(--type-secondary);
  }

  .discover-route-teaser-grid {
    gap: 12px;
  }

  .discover-route-teaser {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 0 12px;
    padding: 0 12px 12px 0;
  }

  .discover-route-media {
    grid-row: 1 / 4;
    width: 96px;
    height: 128px;
    min-height: 128px;
  }

  .discover-route-head {
    padding-top: 11px;
  }

  .discover-route-head h3 {
    font-size: 17px;
  }

  .discover-route-copy {
    font-size: var(--type-secondary);
    -webkit-line-clamp: 2;
  }

  .discover-route-stops,
  .discover-route-food-preview,
  .discover-route-actions {
    grid-column: 1 / -1;
    margin-left: 12px;
  }

  .discover-route-stops {
    margin-top: 10px;
  }

  .discover-route-food-preview,
  .local-weekend-food-preview,
  .local-weekend-scenario-food {
    min-height: 38px;
    font-size: var(--type-label);
  }

  .discover-route-actions {
    min-height: 30px;
  }

  .food-destination-shortcut-card {
    min-width: calc(100vw - 52px);
  }

  .site-search-form {
    padding: 10px;
  }

  .site-search-result {
    grid-template-columns: 42px minmax(0, 1fr) 16px;
    gap: 11px;
    min-height: 104px;
    padding: 13px 14px;
  }

  .site-search-result-icon {
    width: 42px;
    height: 42px;
  }

  .site-search-result-copy strong {
    font-size: 16px;
  }

  .site-search-result-copy p {
    font-size: var(--type-secondary);
  }

  .more-link-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .more-link-card {
    grid-template-columns: 46px minmax(0, 1fr) 18px;
    align-items: center;
    min-height: 0;
    padding: 13px;
    gap: 5px 11px;
  }

  .more-link-icon {
    width: 46px;
    height: 46px;
  }

  .more-link-icon svg {
    width: 20px;
    height: 20px;
  }

  .more-link-copy strong {
    font-size: 15px;
  }

  .more-link-copy > span {
    display: -webkit-box;
    overflow: hidden;
    font-size: var(--type-secondary);
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .more-link-action {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    width: 18px;
    overflow: hidden;
    margin-top: 0;
  }

  .more-link-action > span {
    display: none;
  }

  .more-link-action svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
  }

  .more-page-content {
    padding-top: 12px;
  }

  .more-page-section {
    padding-block: 20px;
  }

  .more-page-section .compact-section-heading > p:last-child:not(.eyebrow) {
    display: none;
  }

  .more-info-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .more-info-link {
    grid-template-columns: 1fr;
    gap: 7px;
    justify-items: center;
    min-height: 94px;
    padding: 12px 6px;
    text-align: center;
  }

  .more-info-link + .more-info-link {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .more-info-copy > span,
  .more-info-link > svg {
    display: none;
  }

  .more-info-copy strong {
    font-size: 13px;
  }

  .template-hero.is-more-hero {
    grid-template-columns: minmax(0, 1fr) 82px;
    gap: 12px;
    margin-top: 7px;
    padding: 15px 14px;
    border-top-width: 2px;
  }

  .template-hero.is-more-hero h1 {
    margin: 3px 0 5px;
    font-size: 25px;
  }

  .template-hero.is-more-hero p:not(.eyebrow) {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .template-hero.is-more-hero .more-hero-visual {
    min-height: 76px;
    aspect-ratio: 1 / 1;
  }

  .template-hero-visual .more-hero-icon-grid {
    grid-template-columns: repeat(2, 33px);
    gap: 5px;
  }

  .template-hero-visual .more-hero-icon-grid > span {
    width: 33px;
    height: 33px;
    border-radius: 7px;
  }

  .more-hero-icon-grid svg {
    width: 16px;
    height: 16px;
  }

  .site-footer {
    padding: 22px 0 18px;
  }

  .footer-identity,
  .footer-legal,
  .footer-essential-links {
    gap: 4px 10px;
  }

  .footer-essential-links {
    display: flex;
    flex-wrap: wrap;
  }

  .mobile-tab-bar {
    display: grid;
  }
}

@media (max-width: 390px) {
  :root {
    --page-gutter: 13px;
  }

  .hero {
    min-height: 490px;
  }

  .compact-module-grid,
  .home-secondary-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-card.primary-route-card {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 5px 9px;
    padding: 10px;
  }

  .primary-route-thumb {
    width: 40px;
    height: 40px;
  }
}

/* Public typography normalization
 * Keep the hierarchy consistent across generated home, channel and detail
 * pages. Dense metadata remains compact, but never drops below 12px on
 * mobile. Admin and review pages do not load this stylesheet.
 */
.eyebrow,
.status-badge,
.site-search-result-meta,
.home-destination-main > span,
.module-card.primary-route-card .module-card-head,
.home-secondary-link span {
  font-size: var(--type-label);
  line-height: 1.45;
}

.module-card .module-copy h3,
.home-secondary-link strong,
.more-link-copy strong,
.site-search-result-copy strong {
  font-size: var(--type-card-title);
  line-height: 1.3;
}

.module-card .module-copy p,
.home-secondary-link p,
.home-more-copy > p:not(.eyebrow),
.discover-route-copy,
.site-search-result-copy p,
.more-link-copy > span {
  font-size: var(--type-secondary);
  line-height: 1.55;
}

.home-more-action,
.travel-detail-jump-row a,
.discover-route-actions a,
.module-card.primary-route-card .module-card-action {
  font-size: var(--type-action);
  line-height: 1.4;
}

/* Keep public labels readable at every breakpoint. */
body main :is(
  .section-heading .eyebrow,
  .module-card-head > span,
  .home-destination-more span,
  .home-destination-more a,
  .discover-hub-step b,
  .discover-route-media > span,
  .discover-route-duration,
  .food-browse-mode-card .food-browse-mode-step,
  .food-browse-mode-card .food-browse-mode-label,
  .food-browse-mode-card > em,
  .food-destination-shortcut-actions .food-card-detail-link,
  .food-place-shortcut-body > span,
  .food-region-featured > strong,
  .travel-detail-topbar > span,
  .travel-spot-facts span,
  .v2-route-verification,
  .v2-route-verification > span,
  .travel-route-detail-stops span,
  .travel-spot-road-attractions span,
  .travel-spot-road-attractions b,
  .travel-spot-road-attractions a,
  .travel-local-attraction-copy > span,
  .travel-attraction-name-link,
  .local-weekend-scenario-card > div > span,
  .local-weekend-scenario-food .travel-food-mini-row > b,
  .local-weekend-point-meta > span,
  .local-weekend-point-meta > strong,
  .travel-food-decision-group > span,
  .local-weekend-decision-main > span,
  .local-weekend-decision-main > strong,
  .local-weekend-decision-food > span,
  .local-weekend-route-item span,
  .travel-food-action-row > a,
  .local-weekend-cycle a > span,
  .more-link-action,
  .more-review-note,
  .more-info-copy > span,
  .food-group-switch-list a > span,
  .v2-food-route-list a > span,
  .travel-detail-sibling-links > a,
  .travel-spot-access > span,
  .travel-spot-route-lines article span,
  .travel-detail-sibling-nav > span,
  .food-route-backlink-card .travel-food-mini-row > b,
  .food-route-backlink-action,
  figcaption
) {
  font-size: var(--type-label) !important;
  line-height: 1.45;
}

body main small,
body main .travel-food-name-link,
body main .food-destination-route-link {
  font-size: var(--type-label) !important;
  line-height: 1.45;
}

body main :is(
  [class*="food-preview"],
  .home-destination-food,
  .food-place-shortcut-line,
  .travel-navigation-food,
  .travel-food-timing-hints
) :is(a, b, strong, span, small, .travel-food-name-link),
body main :is(
  .home-start-steps,
  .discover-route-stops,
  .local-weekend-scenario-points,
  .local-weekend-route-stops,
  .food-guide-subnav,
  .food-name-chips,
  .travel-route-stops,
  .travel-route-chooser-actions,
  .travel-route-start-actions
) :is(a, b, span, small, button),
body main :is(
  .food-place-shortcut-line,
  .food-region-featured,
  .food-region-more,
  .travel-sub-attraction-card,
  .travel-scenic-catalog-head,
  .travel-scenic-area-list,
  .quality-ingredient-ladder,
  .quality-comparison-table,
  .quality-grade-row,
  .quality-subject-grid
) :is(a, b, dt, em, small, span, summary, td) {
  font-size: var(--type-label) !important;
  line-height: 1.45;
}

body main .food-browse-mode-note {
  font-size: var(--type-secondary) !important;
  line-height: 1.55;
}

.site-footer .footer-legal span {
  font-size: var(--type-label);
  line-height: 1.45;
}

@media (min-width: 701px) and (max-width: 900px) {
  .food-destination-shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .food-destination-shortcut-card {
    min-width: 0;
  }
}

@media (max-width: 700px) {
  body main :is(
    .section-heading .eyebrow,
    .module-card-head > span,
    .home-destination-more span,
    .home-destination-more a,
    .discover-hub-step b,
    .discover-route-media > span,
    .food-browse-mode-card .food-browse-mode-step,
    .food-browse-mode-card .food-browse-mode-label,
    .food-browse-mode-card > em,
    .food-destination-shortcut-actions .food-card-detail-link,
    .food-place-shortcut-body > span,
    .food-region-featured > strong,
    .travel-detail-topbar > span,
    .travel-spot-facts span,
    .v2-route-verification,
    .v2-route-verification > span,
    .travel-route-detail-stops span,
    .travel-spot-road-attractions span,
    .travel-spot-road-attractions b,
    .travel-spot-road-attractions a,
    .travel-local-attraction-copy > span,
    .travel-attraction-name-link,
    .local-weekend-scenario-card > div > span,
    .local-weekend-scenario-food .travel-food-mini-row > b,
    .local-weekend-point-meta > span,
    .local-weekend-point-meta > strong,
    .travel-food-decision-group > span,
    .local-weekend-decision-main > span,
    .local-weekend-decision-main > strong,
    .local-weekend-decision-food > span,
    .local-weekend-route-item span,
    .travel-food-action-row > a,
    .local-weekend-cycle a > span,
    figcaption
  ) {
    font-size: var(--type-label) !important;
    line-height: 1.45;
  }

  body main .food-browse-mode-note {
    font-size: var(--type-secondary) !important;
    line-height: 1.55;
  }

  body main small {
    font-size: var(--type-label) !important;
    line-height: 1.45;
  }

  body main .travel-food-name-link,
  body main .food-destination-route-link {
    font-size: var(--type-label) !important;
    line-height: 1.45;
  }

  body main :is(
    [class*="food-preview"],
    .home-destination-food,
    .food-place-shortcut-line,
    .travel-navigation-food,
    .travel-food-timing-hints
  ) :is(a, b, strong, span, small, .travel-food-name-link) {
    font-size: var(--type-label) !important;
    line-height: 1.45;
  }

  body main :is(
    .home-start-steps,
    .discover-route-stops,
    .local-weekend-scenario-points,
    .local-weekend-route-stops,
    .food-guide-subnav,
    .food-name-chips,
    .travel-route-stops,
    .travel-route-chooser-actions,
    .travel-route-start-actions
  ) :is(a, b, span, small, button) {
    font-size: var(--type-label) !important;
    line-height: 1.45;
  }

  body main :is(
    .food-place-shortcut-line,
    .food-region-featured,
    .food-region-more,
    .travel-sub-attraction-card,
    .travel-scenic-catalog-head,
    .travel-scenic-area-list,
    .quality-ingredient-ladder,
    .quality-comparison-table,
    .quality-grade-row,
    .quality-subject-grid
  ) :is(a, b, dt, em, small, span, summary, td) {
    font-size: var(--type-label) !important;
    line-height: 1.45;
  }

  .template-hero-copy h1 {
    font-size: var(--type-page-title);
  }

  .section-heading h2,
  .template-section > h2,
  .travel-detail-section > h2,
  .template-section .section-heading h2,
  .travel-detail-section .section-heading h2 {
    font-size: var(--type-section-title);
  }
}

/* Homepage composition cohesion
 * The hero is the only immersive surface. Everything below it shares one
 * card, spacing and action language while preserving each module's job.
 */
.quick-entry-band,
.home-destination-band {
  background: var(--paper);
}

.home-secondary-band,
.site-index-band {
  background: var(--surface-soft);
}

.quick-entry-band,
.home-destination-band,
.home-secondary-band,
.site-index-band {
  --home-card-shadow: 0 3px 12px rgba(27, 50, 52, 0.045);
}

.home-destination-band {
  padding-top: 0;
}

.home-destination-band > .container {
  padding-top: var(--section-space);
  border-top: 1px solid var(--line);
}

.site-index-band {
  padding-top: 0;
}

.site-index-band > .container {
  padding-top: calc(var(--section-space) * 0.58);
  padding-bottom: calc(var(--section-space) * 0.82);
  border-top: 1px solid var(--line);
}

.quick-entry-band + .home-destination-band,
.home-secondary-band + .site-index-band {
  border-top: 0;
}

.quick-module-panel > .eyebrow {
  margin-bottom: 5px;
}

.quick-module-intro {
  max-width: 560px;
  margin-bottom: 15px;
  line-height: 1.55;
}

.home-destination-heading,
.home-secondary-band .section-heading {
  max-width: 760px;
  margin-bottom: 18px;
}

:is(
  .home-start-card,
  .module-card.primary-route-card,
  .home-destination-card,
  .home-secondary-link,
  .home-more-panel
) {
  border-color: var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--home-card-shadow);
}

:is(
  .home-start-card,
  .module-card.primary-route-card,
  .home-destination-card,
  .home-secondary-link,
  .home-more-panel
):hover,
:is(
  .home-start-card,
  .module-card.primary-route-card,
  .home-destination-card,
  .home-secondary-link,
  .home-more-panel
):focus-within {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.home-start-thumb,
.primary-route-thumb img,
.home-destination-photo img {
  filter: none;
}

.module-card.primary-route-card {
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.module-card.primary-route-card:hover,
.module-card.primary-route-card:focus-visible {
  transform: translateY(-1px);
}

.home-destination-grid {
  gap: 12px;
}

.home-destination-card {
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.home-secondary-link {
  overflow: hidden;
  border-color: var(--line);
  background: var(--surface);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.home-secondary-link::before {
  display: none;
}

.home-secondary-link:hover,
.home-secondary-link:focus-visible {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.home-secondary-link > svg {
  border-color: color-mix(in srgb, var(--module-accent) 18%, var(--line));
  border-radius: 7px;
}

.home-more-panel {
  border-color: var(--line);
  background: var(--surface);
}

.home-more-icon {
  border: 1px solid color-mix(in srgb, var(--jade) 20%, var(--line));
  background: var(--jade-soft);
  color: var(--jade);
}

.home-more-action {
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
  color: var(--jade);
}

.home-more-action:hover,
.home-more-action:focus-visible {
  border-color: var(--jade);
  background: var(--jade-soft);
}

/* Homepage closing sequence: content, utility entry, legal footer and the
 * mobile tab bar are one deliberate descent, not four unrelated modules. */
.home-secondary-band {
  padding-bottom: calc(var(--section-space) * 0.72);
}

.home-secondary-band + .site-index-band {
  box-shadow: inset 0 1px 0 rgba(27, 50, 52, 0.035);
}

.site-footer {
  border-top-color: color-mix(in srgb, var(--jade) 28%, transparent);
  background: #19292c;
}

.footer-compact {
  row-gap: 10px;
}

.footer-identity,
.footer-legal,
.footer-essential-links {
  min-width: 0;
  align-items: baseline;
}

.mobile-tab-bar {
  border-top-color: color-mix(in srgb, var(--jade) 16%, var(--line));
  background: rgba(250, 249, 245, 0.97);
  box-shadow: 0 -5px 18px rgba(27, 50, 52, 0.075);
}

@media (max-width: 700px) {
  .quick-entry-band,
  .home-secondary-band {
    padding-block: 30px;
  }

  .home-destination-band > .container {
    padding-top: 30px;
  }

  .site-index-band > .container {
    padding-top: 18px;
    padding-bottom: 26px;
  }

  .quick-entry-layout {
    gap: 24px;
  }

  .home-start-card {
    min-height: 160px;
  }

  .home-start-thumb {
    height: 144px;
  }

  .module-card.primary-route-card {
    min-height: 98px;
  }

  .home-destination-card {
    min-width: calc(100vw - 48px);
  }

  .home-secondary-link {
    min-height: 142px;
  }

  .home-more-panel {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
  }

  .home-more-icon {
    width: 40px;
    height: 40px;
  }

  .home-more-copy h2 {
    font-size: 19px;
  }

  .home-more-tags {
    display: none;
  }

  .home-more-action {
    grid-column: 2;
    justify-self: start;
    min-height: auto;
    margin-top: 5px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .home-secondary-band {
    padding-bottom: 24px;
  }

  .site-footer {
    padding: 18px 0 calc(70px + env(safe-area-inset-bottom));
  }

  .footer-compact {
    gap: 7px;
  }

  .footer-identity,
  .footer-legal,
  .footer-essential-links {
    line-height: 1.45;
  }
}

/* Homepage closing navigation
 * A continuous route list replaces the former four isolated cards. The
 * utility band and legal footer then complete the page as one sequence.
 */
.home-secondary-band {
  padding-block: 38px;
  background: #f7f8f4;
}

.home-secondary-band .section-heading {
  margin-bottom: 15px;
}

.home-secondary-link-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  gap: 0;
  border-block: 1px solid var(--line);
}

.home-secondary-link {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  grid-template-rows: auto;
  gap: 14px;
  align-items: center;
  min-height: 112px;
  padding: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-secondary-link:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.home-secondary-link:nth-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}

.home-secondary-link::before {
  display: block;
  inset: 18px auto 18px 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--module-accent);
}

.home-secondary-link:hover,
.home-secondary-link:focus-visible {
  border-color: var(--line);
  background: color-mix(in srgb, var(--module-soft) 54%, transparent);
  box-shadow: none;
  transform: none;
}

.home-secondary-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid color-mix(in srgb, var(--module-accent) 22%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--module-soft) 82%, white);
  color: var(--module-accent);
}

.home-secondary-icon svg {
  width: 21px;
  height: 21px;
}

.home-secondary-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.home-secondary-copy > span {
  color: var(--module-accent);
  font-size: var(--type-label);
  font-weight: 850;
}

.home-secondary-copy > strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
}

.home-secondary-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.5;
}

.home-secondary-link > em {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  justify-self: end;
  white-space: nowrap;
  color: var(--module-accent);
  font-size: var(--type-label);
  font-style: normal;
  font-weight: 850;
}

.home-secondary-link > em::after {
  content: none;
}

.home-secondary-link > em svg {
  width: 15px;
  height: 15px;
}

.site-index-band {
  padding-block: 0;
  border-top: 0;
  background: #e7f0ee;
}

.site-index-band > .container {
  padding-block: 25px;
  border-top: 0;
}

.home-secondary-band + .site-index-band {
  box-shadow: inset 0 1px 0 rgba(27, 50, 52, 0.06);
}

.site-index-band .home-more-panel {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.site-index-band .home-more-panel:hover,
.site-index-band .home-more-panel:focus-within {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.home-more-tags span {
  padding: 4px 7px;
  border: 1px solid rgba(20, 99, 92, 0.1);
  background: rgba(255, 255, 255, 0.52);
}

.home-more-action {
  min-height: 42px;
  padding-inline: 15px;
  border-color: var(--jade);
  background: var(--jade);
  color: #fff;
}

.home-more-action:hover,
.home-more-action:focus-visible {
  background: #0d655f;
  color: #fff;
}

.site-footer {
  border-top: 3px solid #b88a46;
  background: #19292c;
}

@media (max-width: 700px) {
  .home-secondary-band {
    padding-block: 28px 24px;
  }

  .home-secondary-band .section-heading {
    margin-bottom: 12px;
  }

  .home-secondary-link-grid {
    grid-template-columns: 1fr;
  }

  .home-secondary-link {
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    gap: 11px;
    min-height: 80px;
    padding: 10px 12px;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line);
  }

  .home-secondary-link:last-child {
    border-bottom: 0;
  }

  .home-secondary-link::before {
    inset-block: 14px;
  }

  .home-secondary-icon {
    width: 42px;
    height: 42px;
  }

  .home-secondary-icon svg {
    width: 20px;
    height: 20px;
  }

  .home-secondary-copy > strong {
    font-size: var(--type-card-title);
  }

  .home-secondary-copy > p {
    display: none;
  }

  .home-secondary-link > em {
    width: 18px;
    overflow: hidden;
    gap: 0;
    color: var(--module-accent);
    font-size: 0;
  }

  .home-secondary-link > em svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
  }

  .site-index-band > .container {
    padding-block: 22px 24px;
  }

  .home-more-panel {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px 12px;
  }

  .home-more-copy h2 {
    font-size: 20px;
  }

  .home-more-tags {
    display: flex;
    grid-column: 1 / -1;
    gap: 6px;
    margin-top: 4px;
  }

  .home-more-tags span {
    font-size: var(--type-label);
  }

  .home-more-action {
    grid-column: 1 / -1;
    justify-self: stretch;
    min-height: 40px;
    margin-top: 2px;
    border: 1px solid var(--jade);
    background: var(--jade);
    color: #fff;
  }

  .site-footer {
    padding: 16px 0;
  }

  .footer-compact {
    gap: 6px;
  }

  .footer-identity,
  .footer-legal,
  .footer-essential-links {
    align-items: baseline;
    gap: 3px 10px;
    line-height: 1.4;
  }

  .footer-identity strong {
    line-height: 1.3;
  }

  .footer-identity span,
  .footer-legal,
  .footer-legal a,
  .footer-essential-links a {
    line-height: 1.4;
  }

  .footer-legal a {
    white-space: nowrap;
  }
}

/* Public page rhythm
 * Generated pages used to keep full section padding even when a details
 * section was closed. Consecutive folds therefore read as empty cards. Keep
 * closed sections as compact directory rows and reserve full spacing for
 * content that is actually open.
 */
.template-section,
.travel-detail-section {
  padding-block: 28px;
}

.template-section > .section-heading,
.travel-detail-section > .section-heading {
  margin-bottom: 18px;
}

.travel-guide-page {
  gap: 0;
}

.template-section.travel-section-fold {
  padding-block: 0;
  border-top: 0;
}

.travel-section-fold:not([open]) {
  gap: 0;
}

.travel-section-fold > summary {
  min-height: 80px;
  margin-inline: -6px;
  padding: 14px 6px;
  border-radius: 7px;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.travel-section-fold > summary:hover,
.travel-section-fold > summary:focus-visible {
  background: color-mix(in srgb, var(--jade-soft) 58%, transparent);
}

.travel-section-fold > summary::after {
  width: 28px;
  height: 28px;
  border-color: color-mix(in srgb, var(--jade) 24%, var(--line));
  background: color-mix(in srgb, var(--jade-soft) 70%, var(--surface));
  color: var(--jade);
  font-size: 16px;
}

.travel-section-fold:not([open]) > summary .section-heading {
  margin: 0;
}

.travel-section-fold:not([open]) > summary .section-heading > div {
  gap: 4px;
}

.travel-section-fold:not([open]) > summary .section-heading .eyebrow {
  margin: 0;
  font-size: var(--type-label);
}

.travel-section-fold:not([open]) > summary .section-heading h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
}

.travel-section-fold:not([open]) > summary .section-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-secondary);
  line-height: 1.45;
}

.template-section.travel-section-fold[open] {
  padding-block: 28px;
}

.travel-section-fold[open] > summary {
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

.travel-section-fold[open] > summary:hover,
.travel-section-fold[open] > summary:focus-visible {
  background: transparent;
}

.travel-section-fold[open] > summary .section-heading {
  margin-bottom: 0;
}

.travel-section-fold-body {
  margin-top: 18px;
}

:is(.travel-inline-fold, .local-weekend-more-fold, .travel-destination-more-fold) > summary {
  min-height: 48px;
}

:is(.food-region-more, .food-sibling-more) > summary {
  display: flex;
  align-items: center;
  min-height: 36px;
}

@media (max-width: 700px) {
  .template-section,
  .travel-detail-section {
    padding-block: 20px;
  }

  .template-section > .section-heading,
  .travel-detail-section > .section-heading {
    margin-bottom: 14px;
  }

  .travel-guide-page {
    gap: 0;
  }

  .template-section.travel-section-fold {
    padding-block: 0;
  }

  .travel-section-fold > summary {
    grid-template-columns: minmax(0, 1fr) 28px;
    gap: 10px;
    min-height: 66px;
    margin: 0;
    padding: 10px 0;
  }

  .travel-section-fold > summary::after {
    width: 28px;
    height: 28px;
    font-size: 15px;
  }

  .travel-section-fold:not([open]) > summary .section-heading .eyebrow {
    margin: 0 0 2px;
    font-size: 11px;
    line-height: 1.35;
  }

  .travel-section-fold:not([open]) > summary .section-heading h2 {
    font-size: 17px;
    line-height: 1.28;
  }

  .travel-section-fold:not([open]) > summary .section-heading p:not(.eyebrow) {
    display: none;
  }

  .template-section.travel-section-fold[open] {
    padding-block: 20px 24px;
  }

  .travel-section-fold[open] > summary {
    min-height: 0;
    padding: 0;
  }

  .travel-section-fold-body {
    margin-top: 15px;
  }

  .food-guide-page {
    gap: 12px;
  }

  :is(.travel-inline-fold, .local-weekend-more-fold, .travel-destination-more-fold) > summary {
    min-height: 46px;
  }
}

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