/* 0577 public design contract
 * Loaded last. This file is the canonical layout contract for the homepage,
 * shared public shell and mobile rhythm. It deliberately resolves legacy
 * rules from styles.css and visual-system.css instead of adding page-specific
 * visual experiments.
 */

:root {
  --contract-paper: #f4f6f3;
  --contract-surface: #ffffff;
  --contract-surface-soft: #edf2f0;
  --contract-surface-food: #f8f2ee;
  --contract-ink: #1e2b2d;
  --contract-text-secondary: #4c5b5e;
  --contract-muted: #5f6d6f;
  --contract-line: #d9e1df;
  --contract-jade: #17635d;
  --contract-jade-dark: #0f4743;
  --contract-travel: #2b6878;
  --contract-brick: #a44c35;
  --contract-gold: #a97832;
  --contract-leaf: #3e6c55;
  --contract-radius: 8px;
  --contract-gutter: clamp(18px, 4vw, 30px);
  --contract-shadow: 0 5px 16px rgba(24, 43, 45, 0.055);
}

html {
  background: var(--contract-paper);
  scroll-padding-top: 74px;
}

body {
  background: var(--contract-paper);
  color: var(--contract-ink);
}

.container {
  width: min(calc(100% - var(--contract-gutter) * 2), 1180px);
}

/* One shared public header. */
.site-header,
.site-header.admin-header,
.template-body .site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  min-height: 64px;
  padding: 8px max(var(--contract-gutter), calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(213, 223, 220, 0.78);
  background: rgba(255, 255, 255, 0.96);
  color: var(--contract-ink);
  box-shadow: 0 4px 16px rgba(27, 50, 52, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  gap: 10px;
  color: var(--contract-ink);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-color: currentColor;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
}

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

.brand small {
  color: var(--contract-muted);
  font-size: 10px;
}

.icon-button,
.header-search-button {
  border-color: var(--contract-line);
  background: #fff;
  color: var(--contract-ink);
}

.template-main,
.primary-channel-page .template-main,
body:not(.home-page) .template-main {
  padding-top: 0;
}

/* Homepage: selected 390px reference composition. */
.home-page .hero {
  position: relative;
  min-height: 470px;
  overflow: visible;
  background: #203735;
}

.home-page .hero-image,
.home-page .hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-page .hero-image {
  object-fit: cover;
  object-position: center 48%;
}

.home-page .hero-overlay {
  background: linear-gradient(180deg, rgba(13, 30, 29, 0.16), rgba(8, 29, 28, 0.68));
}

.home-page .hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(calc(100% - var(--contract-gutter) * 2), 1180px);
  height: 100%;
  margin-inline: auto;
  padding: 100px 0 58px;
}

.home-page .hero-content .eyebrow {
  margin-bottom: 8px;
  color: #f1c576;
  font-size: 13px;
}

.home-page .hero h1 {
  max-width: 11em;
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1.08;
}

.home-page .hero-subtitle {
  margin: 10px 0 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
}

.home-page .hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 720px);
  margin: 0;
}

.home-page .hero-actions a {
  min-height: 52px;
  border-radius: var(--contract-radius);
  font-size: 15px;
}

.home-page .hero-search-panel {
  width: min(100%, 860px);
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(213, 223, 220, 0.9);
  border-radius: var(--contract-radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--contract-shadow);
}

.home-page .hero-search {
  min-height: 60px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-page .hero-search > svg {
  color: var(--contract-jade);
}

.home-page .hero-search input {
  min-width: 0;
  color: var(--contract-ink);
}

.home-page .hero-search button {
  align-self: stretch;
  min-width: 86px;
  margin: 7px;
  border-radius: 6px;
  background: var(--contract-jade);
}

.home-page .hero-utility-links {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 40px;
  margin: 0;
  padding: 8px 24px;
  border-top: 1px solid #e7ecea;
  color: var(--contract-muted);
  font-size: 12px;
}

.home-page .hero-utility-links > span,
.home-page .hero-utility-links a {
  color: inherit;
}

.quick-entry-band {
  padding-block: 24px;
  border: 0;
  background: var(--contract-paper);
}

.quick-module-panel {
  padding: 16px;
  border: 1px solid var(--contract-line);
  border-radius: var(--contract-radius);
  background: var(--contract-surface);
  box-shadow: 0 4px 14px rgba(27, 50, 52, 0.04);
}

.quick-module-heading {
  margin-bottom: 12px;
}

.compact-module-grid.primary-route-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.module-card.primary-route-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  min-height: 94px;
  padding: 12px 16px;
  border: 0;
  border-left: 1px solid #e5ebe9;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.module-card.primary-route-card:first-child {
  border-left: 0;
}

.module-card.primary-route-card .module-card-head {
  display: block;
}

.module-card.primary-route-card .module-card-head > span:last-child,
.module-card.primary-route-card .module-card-action {
  display: none;
}

.module-card.primary-route-card .primary-route-icon {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
}

.module-card.primary-route-card.tone-travel {
  --module-color: #2d786d;
  --module-tint: #eaf3ef;
}

.module-card.primary-route-card.tone-food {
  --module-color: #c75c31;
  --module-tint: #faeee8;
}

.module-card.primary-route-card.tone-quality {
  --module-color: #cda42d;
  --module-tint: #fbf5df;
}

.module-card.primary-route-card.tone-guide {
  --module-color: #2f6f63;
  --module-tint: #edf4f0;
}

.module-card.primary-route-card .module-copy {
  gap: 3px;
}

.module-card.primary-route-card h3 {
  margin: 0;
  font-size: 16px;
}

.module-card.primary-route-card p {
  display: -webkit-box !important;
  margin: 0;
  overflow: hidden;
  color: var(--contract-muted);
  font-size: 11px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.primary-route-description-short {
  display: none;
}

.home-destination-band,
.home-food-band,
.home-secondary-band {
  padding-block: 30px;
  border-top: 1px solid rgba(213, 223, 220, 0.72);
}

.home-destination-band {
  background: var(--contract-surface);
}

.home-food-band {
  background: #fcf8f3;
}

.home-shelf-heading,
.home-destination-heading,
.home-food-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.home-shelf-title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.home-shelf-title-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eaf3f0;
  color: var(--contract-jade);
}

.home-food-heading .home-shelf-title-icon {
  background: #fbebe4;
  color: var(--contract-brick);
}

.home-shelf-title-icon svg {
  width: 17px;
  height: 17px;
}

.home-shelf-heading h2,
.home-destination-heading h2,
.home-food-heading h2 {
  margin: 0;
  font-size: 24px;
}

.home-shelf-heading > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--contract-ink);
  font-size: 13px;
  text-decoration: none;
}

.home-shelf-heading > a svg {
  width: 15px;
  height: 15px;
}

.home-destination-grid,
.home-food-grid {
  display: grid;
  grid-template-columns: none !important;
  grid-auto-flow: column;
  grid-auto-columns: 220px;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0 0 7px;
  overflow-x: auto;
  scroll-snap-type: inline proximity;
}

.home-destination-card,
.home-food-card {
  min-width: 0;
  border: 1px solid var(--contract-line);
  border-radius: var(--contract-radius);
  background: #fff;
  box-shadow: none;
}

.home-destination-photo,
.home-food-photo {
  aspect-ratio: 4 / 3;
}

.home-destination-main,
.home-food-copy {
  gap: 4px;
  padding: 11px 12px 13px;
}

.home-destination-main strong,
.home-food-copy strong {
  font-size: 16px;
  line-height: 1.25;
}

.home-destination-main em,
.home-food-copy em {
  display: -webkit-box;
  min-height: 2.8em;
  overflow: hidden;
  white-space: normal;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-destination-main small {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
  color: var(--contract-jade);
}

.home-destination-main small svg {
  width: 12px;
  height: 12px;
}

.home-card-arrow {
  display: none;
}

.home-shelf-more {
  margin-top: 10px;
}

/* Homepage continuation: one compact four-entry family, using the same
 * semantic palette as the primary entry row. */
.home-secondary-band {
  background: #eef5f2;
}

.home-secondary-band .section-heading {
  max-width: 720px;
  margin-bottom: 16px;
}

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

.home-secondary-link {
  --secondary-accent: var(--contract-jade);
  --secondary-tint: #eaf3ef;
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 7px 12px;
  min-height: 124px;
  padding: 15px;
  overflow: hidden;
  border: 1px solid var(--contract-line);
  border-radius: var(--contract-radius);
  background: var(--contract-surface);
  color: var(--contract-ink);
  box-shadow: 0 5px 16px rgba(27, 50, 52, 0.045);
  text-decoration: none;
}

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

.home-secondary-link:nth-child(1) {
  --secondary-accent: var(--contract-leaf);
  --secondary-tint: #edf5eb;
}

.home-secondary-link:nth-child(2) {
  --secondary-accent: #2f7794;
  --secondary-tint: #eaf3f8;
}

.home-secondary-link:nth-child(3) {
  --secondary-accent: var(--contract-brick);
  --secondary-tint: #faeee8;
}

.home-secondary-link:nth-child(4) {
  --secondary-accent: #b8831f;
  --secondary-tint: #fbf4e3;
}

.home-secondary-icon {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--secondary-accent) 24%, var(--contract-line));
  border-radius: 50%;
  background: var(--secondary-tint);
  color: var(--secondary-accent);
}

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

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

.home-secondary-copy > span {
  color: var(--secondary-accent);
  font-size: 12px;
  font-weight: 800;
}

.home-secondary-copy strong {
  font-size: 17px;
  line-height: 1.3;
}

.home-secondary-copy p {
  margin: 0;
  color: var(--contract-muted);
  font-size: 12px;
  line-height: 1.45;
}

.home-secondary-link > em {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: end;
  width: fit-content;
  color: var(--secondary-accent);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

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

/* Shared section and card rhythm for all public secondary/detail pages. */
.template-body {
  background: var(--contract-paper);
}

body:not(.home-page) .template-content {
  padding-top: 14px;
}

body:not(.home-page) .template-section,
body:not(.home-page) .travel-detail-section {
  min-height: 0;
  padding-block: 22px;
}

body:not(.home-page) .section-heading {
  gap: 5px;
  margin-bottom: 15px;
}

body:not(.home-page) .section-heading h2 {
  font-size: clamp(24px, 4vw, 32px);
}

body:not(.home-page) article,
body:not(.home-page) .more-link-card,
body:not(.home-page) .food-browse-mode-card,
body:not(.home-page) .discover-route-teaser,
body:not(.home-page) .local-weekend-point-card {
  border-radius: var(--contract-radius);
}

/* Footer is compact public information, not a separate dark module. */
.site-footer {
  min-height: 0;
  padding: 0 !important;
  border-top: 1px solid var(--contract-line);
  background: #edf4f1;
  color: var(--contract-ink);
}

.footer-compact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 24px;
  min-height: 0;
  padding-block: 18px;
}

/* Primary channels share one visual grammar without becoming copies of the
 * homepage. Their hero is a short photographic band followed by compact,
 * content-led cards. */
.primary-channel-page .template-main {
  width: 100%;
  padding: 0 !important;
}

.primary-channel-page .template-hero {
  width: 100%;
  max-width: none;
  min-height: 264px;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

.primary-channel-page .template-hero::after {
  background: linear-gradient(180deg, rgba(11, 31, 31, 0.18), rgba(8, 29, 28, 0.68));
}

.primary-channel-food .template-hero::after {
  background: linear-gradient(180deg, rgba(11, 31, 31, 0.08), rgba(8, 29, 28, 0.56));
}

.primary-channel-page .template-hero-copy {
  padding: 38px max(var(--contract-gutter), calc((100vw - 1180px) / 2)) 30px;
}

.primary-channel-page .template-hero-copy h1 {
  margin-block: 6px 8px;
  font-size: clamp(32px, 5vw, 46px);
}

.primary-channel-page .template-hero-copy .eyebrow,
.primary-channel-page .template-hero-copy h1,
.primary-channel-page .template-hero-copy > p:not(.eyebrow) {
  color: #fff !important;
  text-shadow: 0 1px 12px rgba(8, 29, 28, 0.3);
}

.primary-channel-page .template-hero-copy .eyebrow {
  color: #f4c879 !important;
}

.primary-channel-page .template-content {
  width: min(calc(100% - var(--contract-gutter) * 2), 1180px);
  margin-inline: auto;
  padding: 0;
}

.primary-channel-page .template-section {
  padding-block: 24px;
}

.primary-channel-page .section-heading .eyebrow {
  color: var(--contract-brick);
}

.primary-channel-discover .discover-hub-step,
.primary-channel-discover .discover-route-teaser,
.primary-channel-food .food-browse-mode-card,
.primary-channel-food .food-destination-shortcut-card,
.primary-channel-food .food-guide-card {
  border-color: var(--contract-line);
  background: var(--contract-surface);
  box-shadow: 0 5px 16px rgba(27, 50, 52, 0.045);
}

.primary-channel-discover .discover-hub-step > span {
  border: 1px solid #cfe0dc;
  border-radius: 50%;
  background: #eaf3ef;
  color: var(--contract-jade);
}

.primary-channel-discover .discover-hub-step:nth-child(2) > span {
  border-color: #f0d4c8;
  background: #faeee8;
  color: var(--contract-brick);
}

.primary-channel-discover .discover-hub-step:nth-child(3) > span {
  border-color: #eadcb6;
  background: #fbf4e3;
  color: #b8831f;
}

.primary-channel-discover .discover-route-media {
  background: #e5efec;
}

.primary-channel-discover .discover-route-food-preview {
  border-color: #d8e4e1;
  background: #f4f8f6;
}

.primary-channel-food .food-browse-mode-card {
  border-top: 3px solid var(--contract-jade);
}

.primary-channel-food .food-browse-mode-card:nth-child(2) {
  border-top-color: var(--contract-brick);
}

.primary-channel-food .food-browse-mode-card:nth-child(3) {
  border-top-color: var(--contract-gold);
}

.primary-channel-food .food-browse-mode-step {
  border-radius: 50%;
  background: #eaf3ef;
  color: var(--contract-jade);
}

.primary-channel-food .food-browse-mode-card:nth-child(2) .food-browse-mode-step {
  background: #faeee8;
  color: var(--contract-brick);
}

.primary-channel-food .food-browse-mode-card:nth-child(3) .food-browse-mode-step {
  background: #fbf4e3;
  color: #a9771b;
}

.footer-identity,
.footer-legal,
.footer-essential-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 12px;
  min-width: 0;
  color: var(--contract-muted);
  line-height: 1.45;
}

.footer-identity strong {
  color: var(--contract-ink);
  font-size: 17px;
}

.footer-identity span,
.footer-legal,
.footer-essential-links {
  font-size: 12px;
}

.site-footer .footer-identity span {
  color: var(--contract-muted) !important;
}

.site-footer a,
.site-footer .footer-legal a {
  color: var(--contract-ink);
  text-decoration: none;
}

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

.mobile-tab-bar {
  border-top-color: rgba(185, 202, 198, 0.9);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -7px 22px rgba(27, 50, 52, 0.08);
}

/* Food directory rows stay compact until the user opens their content. */
.primary-channel-food .travel-inline-fold:not([open]) {
  padding-block: 0;
}

@media (max-width: 700px) {
  :root {
    --contract-gutter: 18px;
  }

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

  .site-header,
  .site-header.admin-header,
  .template-body .site-header {
    min-height: 52px;
    padding: 5px var(--contract-gutter);
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 13px;
  }

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

  .brand small,
  .desktop-nav {
    display: none;
  }

  .header-actions {
    gap: 7px;
  }

  .icon-button,
  .header-search-button {
    width: 40px;
    height: 40px;
    border-radius: 7px;
  }

  .home-page .menu-button {
    display: none;
  }

  .home-page .hero {
    height: 236px;
    min-height: 236px;
  }

  .home-page .hero-image {
    object-position: center center;
  }

  .home-page .hero-content {
    justify-content: flex-end;
    width: calc(100% - var(--contract-gutter) * 2);
    height: 100%;
    padding: 44px 0 50px;
  }

  .home-page .hero-content .eyebrow {
    display: none;
  }

  .home-page .hero h1 {
    max-width: none;
    font-size: 27px;
    line-height: 1.12;
  }

  .home-page .hero-subtitle {
    margin: 7px 0 12px;
    font-size: 13px;
  }

  .home-page .hero-actions {
    gap: 8px;
    width: 100%;
  }

  .home-page .hero-actions a {
    min-height: 42px;
    border-radius: 7px;
    font-size: 13px;
  }

  .home-page .hero-search-panel {
    position: absolute;
    right: 0;
    bottom: -40px;
    left: 0;
    width: 100%;
    margin: 0;
    border-radius: 7px;
  }

  .home-page .hero-search {
    min-height: 46px;
  }

  .home-page .hero-search > svg {
    width: 20px;
    height: 20px;
    margin-left: 13px;
  }

  .home-page .hero-search input {
    padding-inline: 10px;
    font-size: 13px;
  }

  .home-page .hero-search button {
    min-width: 64px;
    margin: 5px;
    padding-inline: 10px;
    font-size: 13px;
  }

  .home-page .hero-utility-links {
    gap: 13px;
    min-height: 28px;
    padding: 4px 13px;
    overflow: hidden;
    font-size: 10px;
    white-space: nowrap;
  }

  .quick-entry-band {
    padding: 48px 0 6px;
  }

  .quick-module-panel {
    padding: 8px 4px;
  }

  .quick-module-heading {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .compact-module-grid.primary-route-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .module-card.primary-route-card {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    min-width: 0;
    min-height: 72px;
    padding: 8px 5px;
    text-align: center;
  }

  .module-card.primary-route-card .primary-route-icon {
    width: 34px;
    height: 34px;
    margin-inline: auto;
  }

  .module-card.primary-route-card .primary-route-icon svg {
    width: 19px;
    height: 19px;
  }

  .module-card.primary-route-card h3 {
    margin-top: 4px;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .module-card.primary-route-card p {
    min-height: 2.4em;
    font-size: 9px;
    line-height: 1.2;
    -webkit-line-clamp: 2;
  }

  .primary-route-description-full {
    display: none !important;
  }

  .primary-route-description-short {
    display: inline !important;
  }

  .home-destination-band,
  .home-food-band,
  .home-secondary-band {
    padding-block: 12px 14px;
  }

  .home-shelf-heading,
  .home-destination-heading,
  .home-food-heading {
    display: flex;
    margin-bottom: 8px;
  }

  .home-shelf-heading h2,
  .home-destination-heading h2,
  .home-food-heading h2 {
    font-size: 18px;
  }

  .home-shelf-title-icon {
    width: 25px;
    height: 25px;
  }

  .home-shelf-title-icon svg {
    width: 14px;
    height: 14px;
  }

  .home-shelf-heading > a {
    max-width: 52%;
    justify-content: flex-end;
    font-size: 10px;
    text-align: right;
  }

  .home-destination-grid,
  .home-food-grid {
    grid-template-columns: none !important;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 24px) / 4);
    gap: 8px;
    width: 100%;
    padding: 0 0 4px;
  }

  .home-destination-card,
  .home-food-card {
    width: auto;
    min-width: 0;
    scroll-snap-align: start;
  }

  .home-destination-photo,
  .home-food-photo {
    aspect-ratio: 1 / 0.92;
  }

  .home-destination-main,
  .home-food-copy {
    gap: 3px;
    padding: 6px 7px 7px;
  }

  .home-destination-main strong,
  .home-food-copy strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-destination-main em,
  .home-food-copy em {
    min-height: 1.3em;
    font-size: 9px;
    line-height: 1.3;
    -webkit-line-clamp: 1;
  }

  .home-destination-main small {
    font-size: 9px;
  }

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

  body:not(.home-page) .template-content {
    padding-top: 8px;
  }

  body:not(.home-page) .template-section,
  body:not(.home-page) .travel-detail-section,
  .primary-channel-page .template-section,
  .primary-channel-page .travel-inline-fold {
    padding-block: 18px;
  }

  .primary-channel-page .template-main {
    padding-top: 0;
  }

  .primary-channel-page .template-hero {
    min-height: 220px;
  }

  .primary-channel-page .template-hero-copy {
    padding: 28px var(--contract-gutter) 22px;
  }

  .primary-channel-page .template-hero-copy h1 {
    font-size: 29px;
  }

  .footer-compact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding-block: 16px 18px;
  }

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

  .footer-identity strong {
    font-size: 15px;
  }

  .footer-identity span,
  .footer-legal,
  .footer-essential-links {
    font-size: 10px;
  }

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

  .home-secondary-band .section-heading > p:last-child {
    display: -webkit-box;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

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

  .home-secondary-link {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 5px 9px;
    min-height: 98px;
    padding: 11px;
  }

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

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

  .home-secondary-copy > span {
    font-size: 10px;
  }

  .home-secondary-copy strong {
    font-size: 14px;
    line-height: 1.28;
  }

  .home-secondary-copy p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

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

  .primary-channel-page .template-main {
    padding: 0 0 44px !important;
  }

  .primary-channel-page .template-hero {
    width: 100%;
    height: 204px;
    min-height: 204px;
    padding: 0 !important;
  }

  .primary-channel-page .template-hero-copy {
    padding: 24px var(--contract-gutter) 18px;
  }

  .primary-channel-page .template-hero-copy h1 {
    max-width: 9em;
    margin-block: 4px 6px;
    font-size: 28px;
  }

  .primary-channel-page .template-hero-copy > p:not(.eyebrow) {
    font-size: 12px;
    line-height: 1.48;
  }

  .primary-channel-page .template-content {
    width: calc(100% - var(--contract-gutter) * 2);
  }

  .primary-channel-page .template-section,
  .primary-channel-page .travel-inline-fold {
    padding-block: 16px;
  }

  /* Closed food directories are navigation rows, not empty content cards. */
  .primary-channel-food .travel-inline-fold:not([open]) {
    padding-block: 0;
  }

  .primary-channel-food .travel-inline-fold:not([open]) > summary {
    min-height: 54px;
    padding-block: 8px;
  }

  .primary-channel-discover .discover-hub-section:first-child,
  .primary-channel-food .food-guide-section:first-child,
  .primary-channel-more .more-page-section:first-child {
    padding-top: 16px;
  }

  .primary-channel-page .section-heading {
    margin-bottom: 10px;
  }

  .primary-channel-page .section-heading h2 {
    font-size: 21px;
  }

  .primary-channel-discover .discover-hub-step-grid {
    gap: 8px;
  }

  .primary-channel-discover .discover-hub-step {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 9px;
    min-height: 0;
    padding: 11px;
  }

  .primary-channel-discover .discover-hub-step > span {
    width: 34px;
    height: 34px;
  }

  .primary-channel-discover .discover-hub-step strong {
    font-size: 15px;
  }

  .primary-channel-discover .discover-route-teaser {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 0 10px;
    padding: 0 10px 10px 0;
  }

  .primary-channel-discover .discover-route-media {
    width: 84px;
    height: 112px;
    min-height: 112px;
  }

  .primary-channel-discover .discover-route-stops,
  .primary-channel-discover .discover-route-food-preview,
  .primary-channel-discover .discover-route-actions {
    margin-left: 10px;
  }

  .primary-channel-food .food-browse-mode-grid {
    gap: 7px;
  }

  .primary-channel-food .food-browse-mode-card {
    min-height: 78px;
    padding: 8px 7px;
  }

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

  .footer-compact {
    gap: 4px;
    padding-block: 12px 13px;
  }

}

/* 2026.08.13 editorial refinement: Dong'ou mountain-and-sea, collector edition.
 * Warm paper, deep mineral green and a small clay/copper accent replace the
 * previous cool grey cast. This block is intentionally last so the shared
 * public shell, homepage and food journey page resolve to one visual system. */
:root {
  --contract-paper: #f3efe7;
  --contract-surface: #fcfaf5;
  --contract-surface-soft: #eee8de;
  --contract-surface-food: #f2e6e0;
  --contract-ink: #1e2a2b;
  --contract-text-secondary: #4f5d5b;
  --contract-muted: #68706e;
  --contract-line: #d9d0c3;
  --contract-jade: #244e49;
  --contract-jade-dark: #193e3b;
  --contract-travel: #4e6f76;
  --contract-brick: #a45a42;
  --contract-gold: #b68b53;
  --contract-leaf: #55705d;
  --contract-radius: 6px;
  --contract-shadow: 0 10px 24px rgba(48, 44, 35, 0.065);
  --contract-display: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
}

html,
body,
.template-body,
.quick-entry-band,
.food-guide-page,
.food-item-detail-page,
.travel-route-detail-page {
  background: var(--contract-paper);
}

body {
  color: var(--contract-ink);
  text-rendering: optimizeLegibility;
}

:is(h1, h2, .home-editorial-route-copy > strong, .food-journey-heading h2) {
  font-family: var(--contract-display);
  font-weight: 600;
  letter-spacing: 0.015em;
}

.site-header,
.site-header.admin-header,
.template-body .site-header {
  border-bottom-color: rgba(217, 208, 195, 0.92);
  background: rgba(252, 250, 245, 0.96);
  box-shadow: 0 4px 18px rgba(48, 44, 35, 0.035);
}

.brand-mark {
  border-color: var(--contract-jade);
  border-radius: 6px;
  background: var(--contract-surface);
  color: var(--contract-jade-dark);
}

.icon-button,
.header-search-button {
  border-color: var(--contract-line);
  border-radius: 7px;
  background: var(--contract-surface);
  color: var(--contract-ink);
  box-shadow: none;
}

.home-page .hero,
.primary-channel-page .template-hero {
  background: #243b38;
}

.home-page .hero-image,
.primary-channel-page .template-hero-visual img,
.home-editorial-route-card > img,
.food-journey-card img {
  filter: saturate(0.86) contrast(1.03) brightness(0.99) sepia(0.035);
}

.home-page .hero-overlay,
.primary-channel-page .template-hero::after,
.primary-channel-food .template-hero::after {
  background: linear-gradient(180deg, rgba(24, 36, 34, 0.04), rgba(20, 35, 33, 0.7));
}

.home-page .hero-content .eyebrow,
.primary-channel-page .template-hero-copy .eyebrow {
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(36, 78, 73, 0.78);
  color: #fff !important;
  font-family: inherit;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-shadow: none;
}

.home-page .hero h1,
.primary-channel-page .template-hero-copy h1 {
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 18px rgba(10, 23, 22, 0.24);
}

.home-page .hero-search-panel {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.home-page .hero-search {
  border: 1px solid rgba(217, 208, 195, 0.88);
  border-radius: 6px;
  background: var(--contract-surface);
  box-shadow: 0 12px 30px rgba(48, 44, 35, 0.1);
}

.home-page .hero-search button,
.food-journey-search button {
  border: 0;
  border-radius: 7px;
  background: var(--contract-jade);
  color: #fff;
}

.home-page .hero-utility-links {
  border: 0;
  background: transparent;
}

.home-page .hero-utility-links a,
.food-journey-scenarios a {
  border: 1px solid var(--contract-line);
  border-radius: 999px;
  background: rgba(252, 250, 245, 0.88);
  color: var(--contract-text-secondary);
  font-weight: 680;
  text-decoration: none;
}

.home-page .hero-utility-links a.is-active,
.food-journey-scenarios a.is-active {
  border-color: var(--contract-jade);
  background: var(--contract-jade);
  color: #fff;
}

.quick-module-panel,
.module-card.primary-route-card,
.home-editorial-route-card,
.food-journey-card,
.food-journey-route,
.food-journey-search {
  border-color: var(--contract-line);
  border-radius: 6px;
  background: var(--contract-surface);
  box-shadow: none;
}

.quick-module-heading {
  align-items: end;
}

.quick-module-heading .eyebrow,
.food-journey-heading .eyebrow,
.home-editorial-route-copy > small {
  color: var(--contract-brick);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.1em;
}

.quick-module-heading h2,
.food-journey-heading h2 {
  margin: 2px 0 0;
  color: var(--contract-ink);
}

.quick-module-intro,
.food-journey-heading > a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--contract-jade);
  font-size: 11px;
  font-weight: 760;
  text-decoration: none;
}

.quick-module-intro svg,
.food-journey-heading > a svg {
  width: 14px;
  height: 14px;
}

.home-editorial-route-band {
  padding: 0 0 18px;
  background: var(--contract-paper);
}

.home-editorial-route-card {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 14px;
  padding: 9px;
  border: 1px solid var(--contract-line);
  color: var(--contract-ink);
  text-decoration: none;
}

.home-editorial-route-card > img {
  width: 136px;
  height: 98px;
  border-radius: 6px;
  object-fit: cover;
}

.home-editorial-route-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.home-editorial-route-copy > strong {
  font-size: 17px;
  line-height: 1.35;
}

.home-editorial-route-copy > span {
  color: var(--contract-muted);
  font-size: 12px;
  line-height: 1.55;
}

.home-editorial-route-card > svg {
  width: 18px;
  color: var(--contract-jade);
}

.food-journey-lead {
  position: relative;
  padding-top: 0 !important;
}

.food-journey-search {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
  width: min(100%, 720px);
  min-height: 54px;
  margin: -27px auto 0;
  padding: 7px;
  border: 1px solid var(--contract-line);
  box-shadow: 0 12px 30px rgba(48, 44, 35, 0.1);
}

.food-journey-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--contract-ink);
  font: inherit;
}

.food-journey-search input::placeholder {
  color: #777a76;
}

.food-journey-search button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
}

.food-journey-search button svg {
  width: 18px;
  height: 18px;
}

.food-journey-scenarios {
  display: flex;
  gap: 7px;
  margin: 10px 0 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.food-journey-scenarios::-webkit-scrollbar {
  display: none;
}

.food-journey-scenarios a {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 7px 11px;
  font-size: 11px;
  line-height: 1.4;
}

.food-journey-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.food-journey-heading h2 {
  font-size: 22px;
  line-height: 1.25;
}

.food-journey-heading p {
  margin: 0;
}

.food-journey-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.food-journey-card {
  display: grid;
  grid-template-rows: 112px auto auto;
  gap: 4px;
  overflow: hidden;
  padding: 0 0 9px;
  border: 1px solid var(--contract-line);
  color: var(--contract-ink);
  text-decoration: none;
}

.food-journey-card img {
  width: 100%;
  height: 112px;
  object-fit: cover;
}

.food-journey-card span,
.food-journey-card strong {
  padding-inline: 9px;
}

.food-journey-card span {
  margin-top: 4px;
  color: var(--contract-brick);
  font-size: 10px;
  font-weight: 720;
}

.food-journey-card strong {
  font-family: var(--contract-display);
  font-size: 16px;
  font-weight: 600;
}

.food-journey-route {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(164, 90, 66, 0.24);
  background: #f2e6e0;
  color: var(--contract-ink);
  text-decoration: none;
}

.food-journey-route > span:first-child {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: var(--contract-brick);
  color: #fff;
}

.food-journey-route > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.food-journey-route strong {
  font-family: var(--contract-display);
  font-size: 16px;
  font-weight: 600;
}

.food-journey-route small {
  color: var(--contract-muted);
  font-size: 11px;
}

.food-journey-route > svg {
  width: 17px;
  color: var(--contract-brick);
}

.primary-channel-food .status-badge,
.primary-channel-food .template-hero-visual > div {
  display: none;
}

.primary-channel-food .travel-food-guide-entry {
  border-top: 1px solid var(--contract-line);
}

.mobile-tab-bar {
  border-top-color: rgba(217, 208, 195, 0.92);
  background: rgba(252, 250, 245, 0.97);
  box-shadow: 0 -7px 22px rgba(48, 44, 35, 0.07);
}

@media (max-width: 700px) {
  :root {
    --contract-gutter: 18px;
  }

  .site-header,
  .site-header.admin-header,
  .template-body .site-header {
    min-height: 64px;
    padding: 8px var(--contract-gutter);
  }

  .brand {
    gap: 9px;
  }

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

  .brand strong {
    font-size: 17px;
    line-height: 1.1;
  }

  .brand small {
    display: block;
    margin-top: 2px;
    font-size: 9px;
    line-height: 1.2;
  }

  .header-actions {
    gap: 8px;
  }

  .icon-button,
  .header-search-button {
    width: 34px;
    height: 34px;
  }

  .home-page .menu-button {
    display: inline-grid;
  }

  .home-page .hero {
    height: 300px;
    min-height: 300px;
  }

  .home-page .hero-image {
    object-position: center 50%;
  }

  .home-page .hero-content {
    justify-content: flex-end;
    width: calc(100% - var(--contract-gutter) * 2);
    height: 100%;
    padding: 0 0 22px;
  }

  .home-page .hero-content .eyebrow {
    display: block;
    margin-bottom: 7px;
  }

  .home-page .hero h1,
  .primary-channel-page .template-hero-copy h1 {
    max-width: none;
    font-size: 29px;
    line-height: 1.08;
  }

  .home-page .hero-subtitle {
    max-width: 330px;
    margin: 7px 0 0;
    font-size: 12px;
    line-height: 1.55;
  }

  .home-page .hero-actions {
    display: none;
  }

  .home-page .hero-search-panel {
    right: 0;
    bottom: -80px;
    left: 0;
    width: 100%;
  }

  .home-page .hero-search {
    min-height: 52px;
    padding-left: 8px;
  }

  .home-page .hero-search > svg {
    display: none;
  }

  .home-page .hero-search input {
    padding-inline: 7px;
    font-size: 12px;
  }

  .home-page .hero-search button {
    display: grid;
    place-items: center;
    min-width: 38px;
    width: 38px;
    height: 38px;
    min-height: 38px;
    margin: 6px;
    padding: 0;
  }

  .home-page .hero-search button svg {
    width: 18px;
    height: 18px;
  }

  .home-page .hero-search button span {
    display: none;
  }

  .home-page .hero-utility-links {
    display: flex;
    gap: 7px;
    min-height: 40px;
    padding: 8px 0 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .home-page .hero-utility-links::-webkit-scrollbar {
    display: none;
  }

  .home-page .hero-utility-links > span {
    display: none;
  }

  .home-page .hero-utility-links a {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 6px 11px;
    font-size: 10px;
  }

  .quick-entry-band {
    padding: 98px 0 10px;
  }

  .quick-module-panel {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .quick-module-heading {
    position: static;
    display: flex;
    width: auto;
    height: auto;
    margin: 0 0 10px;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  .quick-module-heading h2 {
    font-size: 19px;
    line-height: 1.25;
  }

  .compact-module-grid.primary-route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .module-card.primary-route-card {
    display: block;
    min-height: 76px;
    padding: 12px;
    border: 1px solid var(--contract-line);
    text-align: left;
  }

  .module-card.primary-route-card .module-card-head,
  .module-card.primary-route-card .module-card-action {
    display: none;
  }

  .module-card.primary-route-card h3 {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
  }

  .module-card.primary-route-card p {
    display: block;
    min-height: 0;
    margin-top: 4px;
    color: var(--contract-muted);
    font-size: 10px;
    line-height: 1.45;
  }

  .primary-route-description-short {
    display: inline !important;
  }

  .home-editorial-route-band {
    padding-bottom: 20px;
  }

  .home-editorial-route-card {
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 11px;
    padding: 9px;
  }

  .home-editorial-route-card > img {
    width: 116px;
    height: 94px;
  }

  .home-editorial-route-copy > strong {
    font-size: 14px;
    line-height: 1.3;
  }

  .home-editorial-route-copy > span {
    font-size: 10px;
    line-height: 1.45;
  }

  .home-editorial-route-card > svg {
    display: none;
  }

  .primary-channel-food .template-main {
    padding-bottom: 34px !important;
  }

  .primary-channel-food .template-hero {
    height: 300px;
    min-height: 300px;
  }

  .primary-channel-food .template-hero-copy {
    justify-content: flex-end;
    padding: 0 var(--contract-gutter) 20px;
  }

  .primary-channel-food .template-hero-copy h1 {
    max-width: 330px;
    margin: 8px 0 6px;
  }

  .primary-channel-food .template-hero-copy > p:not(.eyebrow) {
    max-width: 330px;
    font-size: 12px;
    line-height: 1.55;
  }

  .primary-channel-food .template-content {
    width: calc(100% - var(--contract-gutter) * 2);
  }

  .food-journey-search {
    min-height: 52px;
    margin-top: -18px;
  }

  .food-journey-scenarios {
    margin-bottom: 15px;
  }

  .food-journey-heading {
    margin-bottom: 9px;
  }

  .food-journey-heading h2 {
    font-size: 19px;
  }

  .food-journey-heading > a {
    font-size: 10px;
  }

  .food-journey-card {
    grid-template-rows: 78px auto auto;
    min-width: 0;
    padding-bottom: 8px;
  }

  .food-journey-card img {
    height: 78px;
  }

  .food-journey-card span,
  .food-journey-card strong {
    padding-inline: 8px;
  }

  .food-journey-card span {
    font-size: 9px;
  }

  .food-journey-card strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .food-journey-route {
    grid-template-columns: 38px minmax(0, 1fr) 16px;
    min-height: 64px;
    padding: 8px 10px;
  }

  .food-journey-route > span:first-child {
    width: 38px;
    height: 38px;
  }

  .food-journey-route strong {
    font-size: 14px;
  }

  .food-journey-route small {
    font-size: 9px;
  }

  .primary-channel-food .travel-food-guide-entry {
    margin-top: 4px;
  }

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

  .mobile-tab-bar {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: calc(70px + env(safe-area-inset-bottom));
    padding: 8px 9px calc(10px + env(safe-area-inset-bottom));
  }

  .mobile-tab-bar a {
    grid-template-rows: 22px 13px;
    min-height: 50px;
    color: #7a7d78;
    font-size: 9px;
    font-weight: 560;
  }

  .mobile-tab-bar a svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.8;
  }

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

  .primary-channel-food .mobile-tab-bar a.is-active {
    color: var(--contract-brick);
  }

  .mobile-tab-bar a::before {
    display: none;
  }
}

/* Final cascade resolution for the editorial refinement. Keep this block last. */
:is(h1, h2, .home-editorial-route-copy > strong, .food-journey-heading h2) {
  font-family: var(--contract-display);
  font-weight: 600;
  letter-spacing: 0.015em;
}

.site-header,
.site-header.admin-header,
.template-body .site-header {
  border-bottom-color: rgba(217, 208, 195, 0.92);
  background: rgba(252, 250, 245, 0.96);
  box-shadow: 0 4px 18px rgba(48, 44, 35, 0.035);
}

.brand-mark {
  border-color: var(--contract-jade);
  border-radius: 6px;
  background: var(--contract-surface);
  color: var(--contract-jade-dark);
}

.home-page .hero-overlay,
.primary-channel-page .template-hero::after,
.primary-channel-food .template-hero::after {
  background: linear-gradient(180deg, rgba(24, 36, 34, 0.04), rgba(20, 35, 33, 0.7));
}

.home-page .hero-content .eyebrow,
.primary-channel-page .template-hero-copy .eyebrow {
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(36, 78, 73, 0.78);
  color: #fff !important;
  font-family: inherit;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-shadow: none;
}

.home-page .hero h1,
.primary-channel-page .template-hero-copy h1 {
  font-family: var(--contract-display);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.home-page .hero-search-panel {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.home-page .hero-utility-links {
  border: 0;
  background: transparent;
}

.mobile-tab-bar {
  border-top-color: rgba(217, 208, 195, 0.92);
  background: rgba(252, 250, 245, 0.97);
  box-shadow: 0 -7px 22px rgba(48, 44, 35, 0.07);
}

@media (max-width: 700px) {
  .site-header,
  .site-header.admin-header,
  .template-body .site-header {
    min-height: 64px;
    padding: 8px var(--contract-gutter);
  }

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

  .brand strong {
    font-size: 17px;
    line-height: 1.1;
  }

  .brand small {
    display: block;
    margin-top: 2px;
    font-size: 9px;
    line-height: 1.2;
  }

  .icon-button,
  .header-search-button {
    width: 34px;
    height: 34px;
  }

  .home-page .menu-button {
    display: inline-grid;
  }

  .home-page .hero {
    height: 300px;
    min-height: 300px;
  }

  .home-page .hero-content {
    justify-content: flex-end;
    width: calc(100% - var(--contract-gutter) * 2);
    height: 100%;
    padding: 0 0 22px;
  }

  .home-page .hero-content .eyebrow {
    display: block;
    margin-bottom: 7px;
  }

  .home-page .hero h1,
  .primary-channel-page .template-hero-copy h1 {
    max-width: none;
    font-size: 29px;
    font-weight: 500;
    line-height: 1.08;
  }

  .home-page .hero-subtitle {
    margin: 7px 0 0;
    font-size: 12px;
    line-height: 1.55;
  }

  .home-page .hero-actions {
    display: none;
  }

  .home-page .hero-search-panel {
    right: 0;
    bottom: -80px;
    left: 0;
    width: 100%;
  }

  .home-page .hero-search > svg {
    display: none;
  }

  .home-page .hero-search button {
    display: grid;
    place-items: center;
    min-width: 38px;
    width: 38px;
    height: 38px;
    min-height: 38px;
    margin: 6px;
    padding: 0;
  }

  .home-page .hero-search button span,
  .home-page .hero-utility-links > span {
    display: none;
  }

  .home-page .hero-utility-links {
    display: flex;
    gap: 7px;
    min-height: 40px;
    padding: 8px 0 0;
    overflow-x: auto;
  }

  .home-page .hero-utility-links a {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 6px 11px;
    font-size: 10px;
  }

  .quick-entry-band {
    padding: 98px 0 10px;
  }

  .quick-module-heading {
    position: static;
    display: flex;
    width: auto;
    height: auto;
    margin: 0 0 10px;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  .compact-module-grid.primary-route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .module-card.primary-route-card {
    display: block;
    min-height: 76px;
    padding: 12px;
    border: 1px solid var(--contract-line);
    text-align: left;
  }

  .module-card.primary-route-card .module-card-head,
  .module-card.primary-route-card .module-card-action {
    display: none;
  }

  .module-card.primary-route-card h3 {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
  }

  .module-card.primary-route-card p {
    display: block;
    min-height: 0;
    margin-top: 4px;
    color: var(--contract-muted);
    font-size: 10px;
    line-height: 1.45;
  }

  .home-editorial-route-card {
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 11px;
    padding: 9px;
  }

  .home-editorial-route-card > img {
    width: 116px;
    height: 94px;
  }

  .home-editorial-route-card > svg {
    display: none;
  }

  .primary-channel-food .template-hero {
    height: 300px;
    min-height: 300px;
  }

  .primary-channel-food .template-hero-copy {
    justify-content: flex-end;
    padding: 0 var(--contract-gutter) 20px;
  }

  .primary-channel-food .template-hero-copy h1 {
    max-width: 330px;
    margin: 8px 0 6px;
  }

  .primary-channel-food .template-hero-copy > p:not(.eyebrow) {
    max-width: 330px;
    font-size: 12px;
    line-height: 1.55;
  }

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

  .mobile-tab-bar {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: calc(70px + env(safe-area-inset-bottom));
    padding: 8px 9px calc(10px + env(safe-area-inset-bottom));
  }

  .mobile-tab-bar a {
    grid-template-rows: 22px 13px;
    min-height: 50px;
    color: #7a7d78;
    font-size: 9px;
    font-weight: 560;
  }

  .mobile-tab-bar a svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.8;
  }

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

  .primary-channel-food .mobile-tab-bar a.is-active {
    color: var(--contract-brick);
  }

  .mobile-tab-bar a::before {
    display: none;
  }
}

/* Mobile interaction contract: keep dense food chips visually compact while
 * giving every repeated action a reliable touch target. */
@media (pointer: coarse), (max-width: 700px) {
  body main :is(
    .food-card-detail-link,
    .food-destination-route-link,
    .food-route-backlink-action,
    .discover-route-actions a,
    .travel-detail-jump-row a
  ) {
    display: inline-flex;
    align-items: center;
    min-height: 36px !important;
    padding-block: 6px !important;
  }

  body main :is(
    .travel-food-name-link,
    .food-guide-subnav a,
    .food-name-chips a,
    .travel-route-stops a,
    .hero-search-suggestions a,
    .food-card-title-link
  ),
  body main .food-place-shortcut-lines .travel-food-name-link,
  body main .food-destination-shortcut-lines .travel-food-name-link,
  body main .food-place-shortcut-body h3 a {
    display: inline-flex;
    align-items: center;
    min-width: 30px;
    min-height: 30px !important;
    padding-block: 4px !important;
  }

  .site-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
  }

  .site-search-form :is(input, select, button),
  .hero-search :is(input, button) {
    min-height: 44px;
  }

  .travel-guide-page :is(
    .travel-filter-row button,
    .travel-finder-shortcuts a,
    .travel-arrival-benefit-copy a,
    .travel-route-chooser-actions a,
    .travel-route-card-primary,
    .travel-route-card-secondary,
    .travel-route-duration-food,
    .travel-route-theme-food,
    .travel-route-scenario-food,
    .travel-hub-food-more,
    .travel-destination-quick-food-link,
    .travel-route-chooser-main,
    .travel-route-chooser-food,
    .travel-route-chooser-more,
    .travel-food-card-action,
    .travel-weekend-bridge-all,
    .travel-route-all-link
  ) {
    min-height: 32px !important;
  }

  .travel-guide-page :is(
    .travel-finder-shortcuts a,
    .travel-arrival-benefit-copy a,
    .travel-route-chooser-actions a,
    .travel-route-card-primary,
    .travel-route-card-secondary,
    .travel-route-duration-food,
    .travel-route-theme-food,
    .travel-route-scenario-food,
    .travel-hub-food-more,
    .travel-destination-quick-food-link,
    .travel-food-card-action,
    .travel-weekend-bridge-all,
    .travel-route-all-link
  ) {
    display: inline-flex;
    align-items: center;
    padding-block: 5px !important;
  }

  .travel-guide-page :is(
    .travel-chip-row a,
    .travel-chip-row button,
    .travel-attraction-name-link
  ) {
    min-width: 28px;
    min-height: 28px !important;
    padding-block: 4px !important;
  }

  .travel-guide-page :is(
    .travel-route-card-actions,
    .travel-route-theme-item,
    .travel-route-duration-item,
    .travel-chain-food,
    .travel-navigation-line,
    .travel-navigation-line-head,
    .travel-route-scenario-item,
    .travel-navigation-note,
    .travel-weekend-bridge-actions,
    .travel-hub-food-head,
    .travel-hub-card,
    .travel-route-start-actions,
    .travel-destination-quick-route,
    .travel-destination-quick-card,
    .travel-food-bridge-body,
    .travel-section-fold-body
  ) :is(a, button) {
    display: inline-flex;
    align-items: center;
    min-width: 28px;
    min-height: 28px !important;
    padding-block: 4px !important;
  }

  .travel-line-detail-page :is(
    .travel-detail-topbar a,
    .travel-attraction-name-link,
    .travel-spot-source a,
    .detail-correction a
  ),
  .food-detail-page :is(
    .travel-detail-topbar a,
    .detail-correction a
  ) {
    display: inline-flex;
    align-items: center;
    min-height: 36px !important;
    padding-block: 6px !important;
  }

  .hero-utility-links a,
  .home-shelf-heading > a,
  .travel-detail-topbar a,
  .detail-correction a {
    display: inline-flex;
    align-items: center;
    min-width: 28px;
    min-height: 32px !important;
    padding-block: 5px !important;
  }
}

@media (min-width: 701px) and (max-width: 1024px) {
  .home-destination-grid,
  .home-food-grid {
    grid-auto-columns: calc((100% - 36px) / 4);
  }

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

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

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

/* One mobile navigation contract for every public page. */
.mobile-tab-bar {
  display: none;
}

@media (max-width: 700px) {
  body.has-mobile-shell {
    padding-bottom: calc(59px + env(safe-area-inset-bottom)) !important;
  }

  body.has-mobile-shell .site-footer {
    padding-bottom: 0 !important;
  }

  .mobile-tab-bar {
    position: fixed;
    z-index: 1200;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    min-height: calc(59px + env(safe-area-inset-bottom));
    padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(185, 202, 198, 0.92);
    background: rgba(255, 254, 250, 0.975);
    box-shadow: 0 -7px 22px rgba(27, 50, 52, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .mobile-tab-bar a {
    position: relative;
    display: grid;
    grid-template-rows: 23px 14px;
    place-items: center;
    align-content: center;
    gap: 1px;
    min-width: 0;
    min-height: 48px;
    padding: 4px 2px;
    color: #667573;
    font-size: 11px;
    font-weight: 720;
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none;
  }

  .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;
    stroke-width: 2;
  }

  .mobile-tab-bar a span {
    white-space: nowrap;
  }

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

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

/* Route-to-food cards use one stable cover slot instead of a variable mosaic. */
#food-by-route .food-place-shortcut-grid {
  align-items: stretch;
}

#food-by-route .food-place-shortcut-card.has-image {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  height: 100%;
}

#food-by-route .food-place-shortcut-image-link {
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-right: 0;
  border-bottom: 1px solid var(--line);
}

#food-by-route .food-place-shortcut-image-link img {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}

#food-by-route .food-place-shortcut-body {
  grid-template-rows: auto auto minmax(2.9em, auto) auto auto;
  align-content: start;
  height: 100%;
}

#food-by-route .food-place-shortcut-body > p {
  min-height: 2.9em;
}

/* Closed directories are compact navigation rows. Their content is created
   only after expansion, so the parent must not reserve section spacing. */
[data-lazy-fold-target]:empty {
  display: none;
}

@media (max-width: 700px) {
  .primary-channel-travel .travel-section-fold:not([open]),
  .travel-guide-page .travel-section-fold:not([open]) {
    padding-block: 0;
  }

  .primary-channel-travel .travel-section-fold:not([open]) > summary,
  .travel-guide-page .travel-section-fold:not([open]) > summary {
    min-height: 58px;
    padding-block: 8px;
  }

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

  .primary-channel-travel .travel-section-fold:not([open]) > summary .section-heading .eyebrow,
  .travel-guide-page .travel-section-fold:not([open]) > summary .section-heading .eyebrow {
    margin: 0 0 1px;
    font-size: 10.5px;
  }

  .primary-channel-travel .travel-section-fold:not([open]) > summary .section-heading h2,
  .travel-guide-page .travel-section-fold:not([open]) > summary .section-heading h2 {
    font-size: 16.5px;
    line-height: 1.24;
  }

  #food-by-route .food-place-shortcut-grid {
    align-items: stretch;
  }

  #food-by-route .food-place-shortcut-card {
    flex-basis: 78%;
    align-self: stretch;
  }

  #food-by-route .food-place-shortcut-image-link {
    aspect-ratio: 16 / 8.8;
  }
}

/* 2026-08-13 visual harmony pass
 * One neutral reading environment, with restrained semantic accents for
 * travel and food. This block intentionally sits last so legacy page styles
 * inherit the same tokens without changing their content architecture.
 */
:root {
  --paper: var(--contract-paper);
  --paper-strong: #e8eeeb;
  --surface: var(--contract-surface);
  --surface-soft: var(--contract-surface-soft);
  --surface-warm: var(--contract-surface-food);
  --ink: var(--contract-ink);
  --muted: var(--contract-muted);
  --muted-strong: var(--contract-text-secondary);
  --line: var(--contract-line);
  --line-strong: #bdcbc8;
  --jade: var(--contract-jade);
  --jade-dark: var(--contract-jade-dark);
  --jade-soft: #e6efed;
  --teal: var(--contract-jade);
  --teal-dark: var(--contract-jade-dark);
  --teal-soft: #e6efed;
  --brick: var(--contract-brick);
  --brick-soft: #f6eae5;
  --gold: var(--contract-gold);
  --gold-soft: #f4eee2;
  --sea: var(--contract-travel);
  --sea-soft: #e8f0f2;
  --blue: var(--contract-travel);
  --blue-soft: #e8f0f2;
  --leaf: var(--contract-leaf);
  --leaf-soft: #ebf0ea;
  --mist: var(--contract-surface-soft);
  --shadow-sm: 0 3px 12px rgba(24, 43, 45, 0.045);
  --shadow-md: var(--contract-shadow);
}

html,
body {
  background: var(--contract-paper);
}

body {
  color: var(--contract-ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

:is(h1, h2, h3, h4, strong) {
  color: var(--contract-ink);
}

:is(h1, h2, h3) {
  font-family: inherit;
  letter-spacing: -0.018em;
}

:is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(23, 99, 93, 0.2);
  outline-offset: 2px;
}

::selection {
  background: rgba(23, 99, 93, 0.16);
  color: var(--contract-ink);
}

.site-header,
.site-header.admin-header,
.template-body .site-header {
  border-bottom-color: rgba(189, 203, 200, 0.72);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 3px 14px rgba(24, 43, 45, 0.04);
}

.brand-mark {
  border-color: var(--contract-line);
  background: var(--contract-jade);
  color: var(--contract-surface);
}

.brand small,
.section-heading > p:not(.eyebrow),
.template-hero-copy > p:not(.eyebrow),
.travel-detail-section p,
.food-guide-section p {
  color: var(--contract-muted);
}

.eyebrow,
.section-heading .eyebrow {
  color: var(--contract-jade);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.section-heading h2,
body:not(.home-page) .section-heading h2,
.primary-channel-page .section-heading h2 {
  color: var(--contract-ink);
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 650;
  line-height: 1.35;
}

.home-page .hero {
  background: #173836;
}

.home-page .hero-image,
.primary-channel-page .template-hero-visual img {
  filter: saturate(0.84) contrast(1.02) brightness(0.98);
}

.home-page .hero-overlay,
.primary-channel-page .template-hero::after,
.primary-channel-food .template-hero::after {
  background: linear-gradient(180deg, rgba(24, 42, 43, 0.12), rgba(18, 39, 39, 0.72));
}

.home-page .hero h1,
.primary-channel-page .template-hero-copy h1 {
  color: #f7faf8;
  font-weight: 700;
}

.home-page .hero-subtitle,
.primary-channel-page .template-hero-copy > p:not(.eyebrow) {
  color: rgba(247, 250, 248, 0.88) !important;
}

.home-page .hero-content .eyebrow,
.primary-channel-page .template-hero-copy .eyebrow {
  color: #d8e9e5 !important;
}

.primary-channel-food .template-hero-copy .eyebrow {
  color: #efc4b3 !important;
}

.home-page .hero-search-panel {
  border-color: rgba(217, 225, 223, 0.96);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 22px rgba(24, 43, 45, 0.1);
}

.primary-button,
.button-primary,
.home-page .hero-search button,
.travel-route-card-primary {
  border-color: var(--contract-jade);
  background: var(--contract-jade);
  color: #f7faf8;
  box-shadow: none;
}

.primary-button:hover,
.primary-button:focus-visible,
.button-primary:hover,
.button-primary:focus-visible,
.home-page .hero-search button:hover,
.home-page .hero-search button:focus-visible,
.travel-route-card-primary:hover,
.travel-route-card-primary:focus-visible {
  border-color: var(--contract-jade-dark);
  background: var(--contract-jade-dark);
}

.secondary-button,
.button-secondary,
.travel-route-card-secondary {
  border-color: var(--contract-line);
  background: var(--contract-surface);
  color: var(--contract-jade-dark);
  box-shadow: none;
}

.quick-entry-band,
.template-body,
.food-guide-page,
.food-item-detail-page,
.travel-route-detail-page {
  background: var(--contract-paper);
}

.quick-module-panel,
.home-destination-card,
.home-food-card,
.home-secondary-link,
.primary-channel-discover .discover-hub-step,
.primary-channel-discover .discover-route-teaser,
.primary-channel-food .food-browse-mode-card,
.primary-channel-food .food-destination-shortcut-card,
.primary-channel-food .food-guide-card,
.food-guide-card,
.food-place-shortcut-card,
.food-destination-shortcut-card,
.food-item-hero-card,
.travel-route-start-item,
.travel-route-overview > div,
.travel-route-overview > a,
.travel-route-detail-stops li,
.v2-food-route-list a {
  border-color: var(--contract-line);
  background: var(--contract-surface);
  box-shadow: none;
}

.quick-module-panel {
  box-shadow: var(--shadow-sm);
}

.module-card.primary-route-card {
  border-left-color: var(--contract-line);
}

.module-card.primary-route-card.tone-travel,
.module-card.primary-route-card.tone-guide {
  --module-color: var(--contract-travel);
  --module-tint: #e8f0f2;
}

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

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

.home-destination-band,
.home-food-band {
  border-top-color: var(--contract-line);
  background: var(--contract-surface);
}

.home-secondary-band {
  border-top-color: var(--contract-line);
  background: var(--contract-surface-soft);
}

.home-shelf-title-icon {
  background: #e8f0f2;
  color: var(--contract-travel);
}

.home-food-heading .home-shelf-title-icon {
  background: #f6eae5;
  color: var(--contract-brick);
}

.home-destination-card {
  border-top: 2px solid rgba(43, 104, 120, 0.58);
}

.home-food-card {
  border-top: 2px solid rgba(164, 76, 53, 0.58);
}

.home-secondary-link {
  --secondary-tint: var(--contract-surface-soft);
  box-shadow: none;
}

.home-secondary-link:nth-child(1) {
  --secondary-accent: var(--contract-leaf);
  --secondary-tint: #ebf0ea;
}

.home-secondary-link:nth-child(2) {
  --secondary-accent: var(--contract-travel);
  --secondary-tint: #e8f0f2;
}

.home-secondary-link:nth-child(3) {
  --secondary-accent: var(--contract-brick);
  --secondary-tint: #f6eae5;
}

.home-secondary-link:nth-child(4) {
  --secondary-accent: var(--contract-gold);
  --secondary-tint: #f4eee2;
}

.site-footer {
  border-top-color: var(--contract-line);
  background: var(--contract-surface-soft);
}

.primary-channel-food .section-heading .eyebrow,
.food-guide-page .section-heading .eyebrow,
.food-item-detail-page .section-heading .eyebrow,
.food-browse-mode-label,
.food-destination-shortcut-main span,
.v2-food-route-list span {
  color: var(--contract-brick);
}

.primary-channel-travel .section-heading .eyebrow,
.travel-guide-page .section-heading .eyebrow,
.travel-route-detail-page .section-heading .eyebrow,
.travel-route-overview span,
.travel-route-start-item > span {
  color: var(--contract-travel);
}

.primary-channel-food .food-browse-mode-card {
  border-top-color: var(--contract-brick);
}

.primary-channel-food .food-browse-mode-card:nth-child(2) {
  border-top-color: var(--contract-brick);
}

.primary-channel-food .food-browse-mode-card:nth-child(3) {
  border-top-color: var(--contract-gold);
}

.food-browse-mode-card .food-browse-mode-step,
.primary-channel-food .food-browse-mode-step,
.primary-channel-food .food-browse-mode-card:nth-child(2) .food-browse-mode-step {
  border-color: rgba(164, 76, 53, 0.18);
  background: #f6eae5;
  color: var(--contract-brick);
}

.food-destination-shortcut-actions .food-card-detail-link,
.food-destination-route-link,
.v2-food-route-list a,
.v2-food-source-links a {
  border-color: var(--contract-line);
  background: var(--contract-surface-soft);
}

.food-destination-route-link,
.v2-food-route-list a.is-locality span,
.v2-food-route-list a.is-regional span {
  color: var(--contract-travel);
}

.travel-route-decision > div {
  border-left-color: rgba(43, 104, 120, 0.55);
  background: #edf3f4;
}

.travel-route-detail-stops > li > .travel-route-stop-index {
  border-color: rgba(43, 104, 120, 0.28);
  color: var(--contract-travel);
}

.travel-weekend-bridge-section,
.travel-weekend-bridge-item {
  border-color: var(--contract-line);
  background: var(--contract-surface);
}

.mobile-tab-bar {
  border-top-color: rgba(189, 203, 200, 0.9);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -5px 18px rgba(24, 43, 45, 0.07);
}

@media (max-width: 700px) {
  body {
    font-size: 15px;
    line-height: 1.68;
  }

  .home-page .hero h1,
  .primary-channel-page .template-hero-copy h1 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.22;
  }

  .section-heading h2,
  body:not(.home-page) .section-heading h2,
  .primary-channel-page .section-heading h2 {
    font-size: 22px;
    font-weight: 650;
    line-height: 1.35;
  }

  .home-shelf-heading h2,
  .home-destination-heading h2,
  .home-food-heading h2 {
    font-size: 20px;
    font-weight: 650;
    line-height: 1.35;
  }

  .food-item-hero-card h2 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
  }

  .food-item-hero-card p,
  .section-heading > p:not(.eyebrow) {
    font-size: 14px;
    line-height: 1.68;
  }

  .quick-module-panel {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }

  .module-card.primary-route-card {
    border-left-color: var(--contract-line);
  }

  .home-destination-band,
  .home-food-band,
  .home-secondary-band {
    padding-block: 16px 18px;
  }

  .home-destination-card,
  .home-food-card,
  .home-secondary-link {
    border-radius: 7px;
  }

  .primary-channel-page .template-hero-copy > p:not(.eyebrow) {
    font-size: 13px;
    line-height: 1.58;
  }

  .travel-route-overview > div,
  .travel-route-overview > a,
  .travel-route-start-item,
  .travel-route-detail-stops li,
  .food-item-hero-card,
  .v2-food-route-list a {
    background: var(--contract-surface);
  }
}

/* Editorial cascade lock — intentionally the final declaration in this file. */
:is(h1, h2, .home-editorial-route-copy > strong, .food-journey-heading h2) {
  font-family: var(--contract-display);
  font-weight: 600;
  letter-spacing: 0.015em;
}

.site-header,
.site-header.admin-header,
.template-body .site-header {
  border-bottom-color: rgba(217, 208, 195, 0.92);
  background: rgba(252, 250, 245, 0.96);
  box-shadow: 0 4px 18px rgba(48, 44, 35, 0.035);
}

.brand-mark {
  border-color: var(--contract-jade);
  border-radius: 6px;
  background: var(--contract-surface);
  color: var(--contract-jade-dark);
}

.home-page .hero-overlay,
.primary-channel-page .template-hero::after,
.primary-channel-food .template-hero::after {
  background: linear-gradient(180deg, rgba(24, 36, 34, 0.04), rgba(20, 35, 33, 0.7));
}

.home-page .hero-content .eyebrow,
.primary-channel-page .template-hero-copy .eyebrow {
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(36, 78, 73, 0.78);
  color: #fff !important;
  font-family: inherit;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-shadow: none;
}

.home-page .hero h1,
.primary-channel-page .template-hero-copy h1 {
  font-family: var(--contract-display);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.home-page .hero-search-panel,
.home-page .hero-utility-links {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.mobile-tab-bar {
  border-top-color: rgba(217, 208, 195, 0.92);
  background: rgba(252, 250, 245, 0.97);
  box-shadow: 0 -7px 22px rgba(48, 44, 35, 0.07);
}

@media (max-width: 700px) {
  .site-header,
  .site-header.admin-header,
  .template-body .site-header {
    min-height: 64px;
    padding: 8px var(--contract-gutter);
  }

  .brand-mark { width: 38px; height: 38px; font-size: 11px; }
  .brand strong { font-size: 17px; line-height: 1.1; }
  .brand small { display: block; margin-top: 2px; font-size: 9px; line-height: 1.2; }
  .icon-button, .header-search-button { width: 34px; height: 34px; }
  .home-page .menu-button { display: inline-grid; }

  .home-page .hero { height: 300px; min-height: 300px; }
  .home-page .hero-content {
    justify-content: flex-end;
    width: calc(100% - var(--contract-gutter) * 2);
    height: 100%;
    padding: 0 0 22px;
  }
  .home-page .hero-content .eyebrow { display: block; margin-bottom: 7px; }
  .home-page .hero h1,
  .primary-channel-page .template-hero-copy h1 {
    max-width: none;
    font-size: 29px;
    font-weight: 500;
    line-height: 1.08;
  }
  .home-page .hero-subtitle { margin: 7px 0 0; font-size: 12px; line-height: 1.55; }
  .home-page .hero-actions { display: none; }
  .home-page .hero-search-panel { right: 0; bottom: -80px; left: 0; width: 100%; }
  .home-page .hero-search > svg { display: none; }
  .home-page .hero-search button {
    display: grid;
    place-items: center;
    min-width: 38px;
    width: 38px;
    height: 38px;
    min-height: 38px;
    margin: 6px;
    padding: 0;
  }
  .home-page .hero-search button span,
  .home-page .hero-utility-links > span { display: none; }
  .home-page .hero-utility-links {
    display: flex;
    gap: 7px;
    min-height: 40px;
    padding: 8px 0 0;
    overflow-x: auto;
  }
  .home-page .hero-utility-links a { flex: 0 0 auto; min-height: 30px; padding: 6px 11px; font-size: 10px; }

  .quick-entry-band { padding: 98px 0 10px; }
  .quick-module-heading {
    position: static;
    display: flex;
    width: auto;
    height: auto;
    margin: 0 0 10px;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }
  .compact-module-grid.primary-route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .module-card.primary-route-card {
    display: block;
    min-height: 76px;
    padding: 12px;
    border: 1px solid var(--contract-line);
    text-align: left;
  }
  .module-card.primary-route-card .module-card-head,
  .module-card.primary-route-card .module-card-action { display: none; }
  .module-card.primary-route-card h3 { margin: 0; font-size: 13px; line-height: 1.35; }
  .module-card.primary-route-card p {
    display: block;
    min-height: 0;
    margin-top: 4px;
    color: var(--contract-muted);
    font-size: 10px;
    line-height: 1.45;
  }

  .home-editorial-route-card { grid-template-columns: 116px minmax(0, 1fr); gap: 11px; padding: 9px; }
  .home-editorial-route-card > img { width: 116px; height: 94px; }
  .home-editorial-route-card > svg { display: none; }

  .primary-channel-food .template-hero { height: 300px; min-height: 300px; }
  .primary-channel-food .template-hero-copy {
    justify-content: flex-end;
    padding: 0 var(--contract-gutter) 20px;
  }
  .primary-channel-food .template-hero-copy h1 { max-width: 330px; margin: 8px 0 6px; }
  .primary-channel-food .template-hero-copy > p:not(.eyebrow) {
    max-width: 330px;
    font-size: 12px;
    line-height: 1.55;
  }

  body.has-mobile-shell { padding-bottom: calc(70px + env(safe-area-inset-bottom)) !important; }
  .mobile-tab-bar {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: calc(70px + env(safe-area-inset-bottom));
    padding: 8px 9px calc(10px + env(safe-area-inset-bottom));
  }
  .mobile-tab-bar a {
    grid-template-rows: 22px 13px;
    min-height: 50px;
    color: #7a7d78;
    font-size: 9px;
    font-weight: 560;
  }
  .mobile-tab-bar a svg { width: 18px; height: 18px; stroke-width: 1.8; }
  .mobile-tab-bar a.is-active { color: var(--contract-jade); font-weight: 760; }
  .primary-channel-food .mobile-tab-bar a.is-active { color: var(--contract-brick); }
  .mobile-tab-bar a::before { display: none; }

  body.home-page.has-mobile-shell .menu-button { display: inline-grid; }
  .home-page .hero-search {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 0;
    min-height: 52px;
  }
  .home-page .hero-search input {
    width: 100%;
    padding-inline: 8px;
  }
  .home-page .hero-search button svg {
    color: #fff;
    stroke: currentColor;
  }

  .template-body .brand {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
  }
  .template-body .header-actions { margin-left: auto; }
  body.template-body.has-mobile-shell .menu-button { display: inline-grid; }
}
