@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../assets/fonts/space-grotesk-latin.woff2") format("woff2");
}

:root {
  --bg: #d8e7f0;
  --text: #172b3a;
  --muted: #5f7483;
  --line: rgba(27, 74, 107, 0.16);
  --line-dark: rgba(27, 74, 107, 0.34);
  --header: #dfeaf1;
  --panel: #edf4f8;
  --panel-2: #cbdfea;
  --active: #0e4a75;
  --link: #185f8c;
  --cut: 9px;
  --max-width: 1180px;
}

/* Optional visual studies: styling only; structure and behavior stay intact. */
html[data-preview="ink"] { --bg:#f5f3ed;--text:#25231f;--muted:#69645b;--line:#c9c4b9;--line-dark:#514d46;--header:#ebe8e0;--active:#25231f }
html[data-preview="ink"] body{font-family:Georgia,'Times New Roman',serif}html[data-preview="ink"] .site-title,html[data-preview="ink"] h1{font-weight:500;letter-spacing:-.02em}html[data-preview="ink"] .app-tab,html[data-preview="ink"] .share-button,html[data-preview="ink"] .search-label,html[data-preview="ink"] .general-group-title{font-family:Arial,sans-serif}html[data-preview="ink"] .app-tab{background:transparent;border-top-color:transparent}html[data-preview="ink"] .app-tab.is-active{background:var(--text);color:var(--bg)}html[data-preview="ink"] .general-group-title{padding:9px 12px;border-left:4px solid var(--text);background:#e9e5db}
html[data-preview="blue"] { --bg:#f8fafb;--text:#17242c;--muted:#60717b;--line:#cbd6dc;--line-dark:#78909c;--header:#edf3f6;--active:#185f79 }
html[data-preview="blue"] body{font-family:'Segoe UI',Arial,sans-serif}html[data-preview="blue"] .site-title{font-weight:600;letter-spacing:-.025em}html[data-preview="blue"] .app-tab{border-top:3px solid transparent;background:transparent}html[data-preview="blue"] .app-tab.is-active{color:var(--active);background:#dfeef3;border-top-color:var(--active)}html[data-preview="blue"] .general-group-title{padding:9px 12px;background:#e6f0f4;border:1px solid #b8ccd5;border-bottom:2px solid #78909c}html[data-preview="blue"] .share-button,html[data-preview="blue"] .search-label input{border-radius:4px}
html[data-preview="signal"] { --bg:#f1f1ec;--text:#1f2422;--muted:#5d6661;--line:#bec4c0;--line-dark:#3b4741;--header:#e4e7e4;--active:#c84527 }
html[data-preview="signal"] .site-title{font-weight:800;letter-spacing:-.035em}html[data-preview="signal"] .app-tab{font-family:'Courier New',monospace;font-size:12px;border-top:4px solid transparent;background:transparent}html[data-preview="signal"] .app-tab.is-active{color:var(--text);background:#e3ded0;border-color:var(--line);border-top-color:var(--active)}html[data-preview="signal"] .general-group-title{padding:8px 11px;background:var(--text);color:var(--bg);border-left:7px solid var(--active);font-family:'Courier New',monospace;font-size:14px;text-transform:uppercase;letter-spacing:.02em}
html[data-preview="moss"] { --bg:#f0eee7;--text:#202624;--muted:#666b66;--line:#c8c5bb;--line-dark:#626861;--header:#e5e4dc;--active:#344b43 }
html[data-preview="moss"] .site-title{font-family:Georgia,'Times New Roman',serif;font-weight:500;font-size:22px}html[data-preview="moss"] .app-tab{background:transparent;border-top:0;border-left:0;border-right:0}html[data-preview="moss"] .app-tab:last-child{border-right:0}html[data-preview="moss"] .app-tab.is-active{background:transparent;color:var(--active);box-shadow:inset 0 -4px var(--active)}html[data-preview="moss"] .general-group-title{padding:10px 13px;background:#dedfd7;border:1px solid #afb5ad;font-family:Georgia,'Times New Roman',serif;font-weight:500}html[data-preview="moss"] .share-button{background:transparent}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
a { color: var(--link); }
button, input { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #1d6fd1; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--active);
  color: #fff;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #123852;
  border-bottom: 3px solid #2d6b95;
}
.header-row {
  width: min(100%, var(--max-width));
  min-height: 58px;
  margin: 0 auto;
  padding: 9px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.global-search { position: relative; width: min(330px, 45vw); }
.global-search > label { display: block; margin-bottom: 4px; color: #dcebf3; font-size: 11px; font-weight: 600; }
.global-search input {
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(220, 237, 247, .38);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 14px;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.global-search input::placeholder { color: rgba(220, 235, 243, .72); }
.global-search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  width: min(440px, calc(100vw - 28px));
  max-height: min(520px, calc(100vh - 130px));
  overflow-y: auto;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line-dark);
  box-shadow: 0 14px 36px rgba(18, 56, 82, .24);
}
.global-search-empty { margin: 0; padding: 18px; color: var(--muted); }
.global-search-result {
  width: 100%;
  padding: 12px 14px;
  display: grid;
  gap: 3px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.global-search-result:last-child { border-bottom: 0; }
.global-search-result:hover,
.global-search-result:focus-visible { background: var(--panel-2); }
.global-search-result strong { font-family: "Space Grotesk", Arial, sans-serif; font-size: 14px; }
.global-search-result span { color: var(--active); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.global-search-result small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.search-target { scroll-margin-top: 120px; }
.search-target.is-search-target { animation: search-target 1.6s ease; }
@keyframes search-target { 0%, 35% { background: rgba(14, 74, 117, .16); } 100% { background: transparent; } }
.site-title {
  color: #f2f7fa;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  font-family: "Space Grotesk", Arial, sans-serif;
  letter-spacing: -0.02em;
}
.share-button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(220, 237, 247, 0.42);
  background: transparent;
  color: #f2f7fa;
  cursor: pointer;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.share-button:hover { background: rgba(255, 255, 255, 0.08); }

.tab-bar {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  overflow-x: auto;
  scrollbar-width: thin;
}
.app-tab {
  min-height: 45px;
  padding: 0 14px;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  border: 1px solid rgba(220, 237, 247, 0.18);
  border-bottom: 0;
  border-right: 0;
  color: #dcebf3;
  background: transparent;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.app-tab:last-child { border-right: 1px solid rgba(220, 237, 247, 0.18); }
.app-tab:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.app-tab.is-active { background: var(--active); color: #fff; border-color: #1d6798; }

.main-content {
  width: min(100%, var(--max-width));
  min-height: calc(100vh - 180px);
  margin: 0 auto;
  padding: 34px 20px 70px;
}
.page:focus { outline: none; }
h1 {
  margin: 0 0 24px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
h1, h2, h3 { font-family: "Space Grotesk", Arial, sans-serif; }
h2 { margin: 0; font-size: 18px; line-height: 1.3; }
p { margin: 0 0 10px; }

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 12px;
}
.page-heading h1 { margin-bottom: 0; }
.search-label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.search-label input {
  width: min(360px, 70vw);
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  background: var(--panel);
  color: var(--text);
  font-size: 15px;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.result-count { min-height: 22px; margin: 0 0 7px; color: var(--muted); font-size: 12px; }
.table-note { margin: -2px 0 10px; color: var(--muted); font-size: 12px; }

.general-groups { border-top: 1px solid var(--line-dark); }
.general-group { border-bottom: 1px solid var(--line-dark); }
.general-group-title {
  padding: 8px 12px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line-dark);
  border-left: 5px solid var(--active);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  color: var(--text);
  font-size: 13px;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.reference-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 8px 22px;
  padding: 12px 12px;
  border-bottom: 1px solid var(--line);
}
.reference-item:last-child { border-bottom: 0; }
.reference-item h3 { grid-row: 1 / span 4; margin: 0; font-size: 15px; line-height: 1.35; }
.reference-item > p { grid-column: 2; }
.reference-item > p:last-child { margin-bottom: 0; }
.label-list { grid-column: 2; margin: 0; }
.label-list > div { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.label-list > div:last-child { border-bottom: 0; }
.label-list dt { font-weight: 700; }
.label-list dd { margin: 0; }

.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line-dark); }
table { width: 100%; min-width: 680px; border-collapse: collapse; }
th, td { padding: 12px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th:last-child, td:last-child { border-right: 0; }
tbody tr:last-child td { border-bottom: 0; }
th { background: var(--header); color: var(--text); font-family: "Space Grotesk", Arial, sans-serif; font-size: 12px; }
tbody tr:hover td { background: rgba(63, 139, 190, 0.08); }
.table-group th {
  padding: 9px 14px;
  border-top: 2px solid var(--line-dark);
  border-right: 0;
  background: var(--panel-2);
  color: var(--text);
  font-size: 13px;
}
td:first-child { font-weight: 700; }
#restaurants-table { min-width: 1050px; }
#restaurants-table th:nth-child(1) { width: 18%; }
#restaurants-table th:nth-child(2) { width: 13%; }
#restaurants-table th:nth-child(3) { width: 18%; }
#restaurants-table th:nth-child(4) { width: 13%; }
#restaurants-table th:nth-child(5) { width: 30%; }
#restaurants-table th:nth-child(6) { width: 8%; }
td a { font-weight: 600; }

.food-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}
.food-columns section { padding: 18px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.food-columns h2 { min-height: 54px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.food-columns h2::after,
.plain-section h2::after,
.trip-list h2::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 9px;
  background: var(--active);
}
.food-columns ul { margin: 12px 0 0; padding-left: 0; }
.food-columns li { margin: 8px 0; }
.note { color: var(--muted); }

.plain-section { margin-top: 34px; }
.plain-section h2 { padding-bottom: 10px; border-bottom: 1px solid var(--line-dark); }
.plain-section ul { margin: 12px 0 0; padding-left: 0; }
.plain-section li { margin: 9px 0; }

.trip-list { border-top: 1px solid var(--line-dark); }
.trip-list > section {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.trip-list ul { margin: 0; padding-left: 0; }
.trip-list li { margin: 0 0 8px; }
.trip-list li:last-child { margin-bottom: 0; }

.food-columns li,
.plain-section li,
.trip-list li {
  position: relative;
  list-style: none;
  padding-left: 24px;
}
.food-columns li::before,
.plain-section li::before,
.trip-list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: .72em;
  width: 7px;
  height: 1.5px;
  background: var(--active);
  opacity: .68;
  transform: skewX(-28deg);
}

.site-footer {
  padding: 22px 20px;
  border-top: 1px solid var(--line-dark);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--active);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 5px);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (hover: hover) and (pointer: fine) {
  html.custom-cursor-ready,
  html.custom-cursor-ready a,
  html.custom-cursor-ready button,
  html.custom-cursor-ready input { cursor: none; }
  .custom-cursor {
    --cursor-x: -40px;
    --cursor-y: -40px;
    --cursor-scale: 1;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 21.6px;
    height: 21.6px;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(var(--cursor-x), var(--cursor-y), 0) translate(-18%, -18%) rotate(8deg) scale(var(--cursor-scale));
    transform-origin: 18% 18%;
    transition: opacity 80ms ease;
    will-change: transform;
    contain: layout style paint;
  }
  .custom-cursor svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(2px 2px 2px rgba(46, 131, 189, .48));
  }
  .custom-cursor.is-visible { opacity: 1; }
  .custom-cursor.is-interactive { --cursor-scale: 1.08; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 104px; }
  body { font-size: 16px; line-height: 1.55; }
  .header-row {
    min-height: 52px;
    display: grid;
    grid-template-columns: auto minmax(130px, 1fr);
    align-items: center;
    gap: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .site-title { font-size: 17px; white-space: nowrap; }
  .global-search { width: 100%; }
  .global-search > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .global-search input { min-height: 46px; padding: 10px 13px; font-size: 16px; }
  .global-search-results { position: fixed; top: 116px; left: 14px; right: 14px; width: auto; max-height: calc(100dvh - 130px); }
  .share-button { padding: 0 9px; font-size: 12px; }
  .tab-bar {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
  .app-tab {
    min-height: 48px;
    padding: 0 14px;
    scroll-snap-align: start;
    font-size: 13px;
  }
  .main-content {
    padding: 22px max(14px, env(safe-area-inset-right)) calc(55px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  }
  h1 { font-size: 26px; }
  .page-heading { display: grid; align-items: start; gap: 14px; }
  .search-label { width: 100%; }
  .search-label input { width: 100%; min-height: 46px; padding: 9px 12px; font-size: 16px; }
  .reference-item, .trip-list > section { grid-template-columns: 1fr; gap: 10px; }
  .reference-item { padding: 14px 10px; }
  .reference-item h3 { grid-row: auto; }
  .reference-item > p, .label-list { grid-column: 1; }
  .label-list > div { grid-template-columns: 76px minmax(0, 1fr); }
  .food-columns { grid-template-columns: 1fr; }
  .food-columns section { padding: 16px; }
  .food-columns h2 { min-height: 0; }
  .trip-list > section { padding: 18px 0; }
  .table-wrap { width: 100%; overflow: visible; border: 0; }
  table, #restaurants-table { display: block; width: 100%; min-width: 0; font-size: 14px; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  tbody { display: grid; gap: 12px; }
  tbody tr:not(.table-group) {
    display: block;
    background: var(--panel);
    border: 1px solid var(--line-dark);
    clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  }
  tbody tr:not(.table-group) td {
    display: grid;
    grid-template-columns: minmax(104px, 36%) minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  tbody tr:not(.table-group) td:last-child { border-bottom: 0; }
  tbody tr:not(.table-group) td::before {
    content: attr(data-label);
    color: var(--muted);
    font-family: "Space Grotesk", Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: .025em;
  }
  .table-group { display: block; margin: 8px 0 -4px; }
  .table-group th { display: block; width: 100%; padding: 9px 11px; border: 0; border-left: 4px solid var(--active); }
}

@media (max-width: 760px) {
  .site-header::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 22;
    width: 24px;
    height: 48px;
    background: linear-gradient(90deg, rgba(18, 56, 82, 0), #123852 82%);
    pointer-events: none;
  }
}

@media print {
  .site-header, .share-button, .search-label, .result-count, .toast { display: none !important; }
  .page[hidden] { display: block !important; page-break-before: always; }
  .main-content { width: 100%; }
  .table-wrap { overflow: visible; }
}
