/* trip-index.css (filters1 + mobile1, Oct 9 2026) - the site-wide trip browser (section#trips.eat-tb). GENERATED source:
   gen/shared/trip-index.css.tmpl (tools/trip_index_build.py --out). Do not hand-edit the output.
   mobile1: rules are scoped to section#trips.eat-tb (id specificity), so legacy guide CSS (.filter-panel 6-column grids,
   uppercase .field labels, squeezed .reset) can no longer collapse the panel on phones. The browser carries its own palette
   (site forest + sun), so every text colour meets WCAG AA on every page, light and dark. */
section#trips.eat-tb {
  --tb-bg: #f3efe5; --tb-panel: #fffdf8; --tb-ink: #1d2722; --tb-muted: #4a5750; --tb-line: #d6cdbb; --tb-field: #ffffff;
  --tb-forest: #1c4938; --tb-forest-ink: #fffaf0; --tb-accent: #9a4a1c; --tb-sun: #efbd4c; --tb-shadow: rgba(24, 38, 31, .10);
  --tb-display: "Newsreader", Georgia, "Times New Roman", serif; --tb-sans: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;
  display: block; margin: 0; padding: clamp(44px, 7vw, 76px) 0 clamp(52px, 8vw, 84px); background: var(--tb-bg); color: var(--tb-ink);
  font-family: var(--tb-sans); line-height: 1.5; text-align: left; border: 0; scroll-margin-top: 84px;
}
@media (prefers-color-scheme: dark) {
  section#trips.eat-tb { --tb-bg: #121a16; --tb-panel: #19231e; --tb-ink: #f2eee5; --tb-muted: #c4cdc7; --tb-line: #3b4842; --tb-field: #101713;
    --tb-forest: #8fc0a3; --tb-forest-ink: #0d1f18; --tb-accent: #f0a77e; --tb-sun: #f3ca67; --tb-shadow: rgba(0, 0, 0, .35); }
}
section#trips.eat-tb *, section#trips.eat-tb *::before, section#trips.eat-tb *::after { box-sizing: border-box; }
section#trips.eat-tb [hidden] { display: none !important; }
section#trips.eat-tb .browser-inner { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 28px); }
section#trips.eat-tb .browser-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 10px 48px; align-items: end; margin: 0 0 24px; padding: 0; border: 0; }
section#trips.eat-tb .browser-label { margin: 0 0 10px; color: var(--tb-accent); font: 800 .76rem/1.2 var(--tb-sans); letter-spacing: .14em; text-transform: uppercase; }
section#trips.eat-tb .browser-head h2 { margin: 0; color: var(--tb-ink); font: 650 clamp(1.85rem, 4.2vw, 2.9rem)/1.04 var(--tb-display); letter-spacing: -.02em; text-transform: none; }
section#trips.eat-tb .browser-note { margin: 0; max-width: 46ch; color: var(--tb-muted); font: 400 1rem/1.55 var(--tb-sans); letter-spacing: normal; text-transform: none; }

/* panel: search row, select grid (1 col < 520, 2 cols 520+, 3 cols 860+), actions row */
section#trips.eat-tb .filter-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; padding: clamp(16px, 3vw, 26px); width: 100%; max-width: none;
  border: 1px solid var(--tb-line); border-radius: 18px; background: var(--tb-panel); box-shadow: 0 1px 0 var(--tb-line), 0 18px 40px var(--tb-shadow); }
section#trips.eat-tb .tb-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 16px; margin: 0; padding: 0; border: 0; min-width: 0; }
section#trips.eat-tb .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; grid-column: auto; }
section#trips.eat-tb .field label { display: block; margin: 0; padding: 0; color: var(--tb-ink); font: 700 .84rem/1.3 var(--tb-sans); letter-spacing: .01em; text-transform: none; white-space: normal; }
section#trips.eat-tb select, section#trips.eat-tb input[type="search"] { display: block; width: 100%; max-width: none; min-width: 0; min-height: 48px; margin: 0; padding: 10px 14px;
  border: 1px solid var(--tb-line); border-radius: 12px; background-color: var(--tb-field); color: var(--tb-ink); font: 500 16px/1.3 var(--tb-sans); letter-spacing: normal; text-transform: none; box-shadow: none; }
section#trips.eat-tb select { -webkit-appearance: none; appearance: none; padding-right: 40px; text-overflow: ellipsis; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
section#trips.eat-tb input[type="search"]::placeholder { color: var(--tb-muted); opacity: 1; }
section#trips.eat-tb select:focus-visible, section#trips.eat-tb input[type="search"]:focus-visible, section#trips.eat-tb button:focus-visible, section#trips.eat-tb a:focus-visible {
  outline: 3px solid var(--tb-sun); outline-offset: 2px; }
section#trips.eat-tb .tb-search { grid-column: 1 / -1; }
section#trips.eat-tb .tb-search input { min-height: 52px; padding-left: 44px; font-size: 17px;
  background: var(--tb-field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%234a5750' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 15px 50%; }
section#trips.eat-tb .tb-actions { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--tb-line); }
section#trips.eat-tb .result-line { display: block; flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; grid-column: auto; color: var(--tb-ink); font: 500 .95rem/1.45 var(--tb-sans); letter-spacing: normal; text-transform: none; }
section#trips.eat-tb .result-line strong { color: var(--tb-ink); font-weight: 800; font-size: 1.05rem; }
section#trips.eat-tb #tb-note { color: var(--tb-muted); }
section#trips.eat-tb .reset { flex: 0 0 auto; width: auto; min-width: 0; min-height: 44px; margin: 0; padding: 10px 20px; border: 1.5px solid var(--tb-forest); border-radius: 999px; background: transparent;
  color: var(--tb-forest); font: 700 .92rem/1 var(--tb-sans); letter-spacing: .01em; text-transform: none; cursor: pointer; align-self: center; }
section#trips.eat-tb .reset:hover { background: var(--tb-forest); color: var(--tb-forest-ink); }
@media (min-width: 520px) { section#trips.eat-tb .tb-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 860px) { section#trips.eat-tb .tb-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* cards: 2 cols on phones, 3 at 760+, 4 at 1024+ */
section#trips.eat-tb .browser-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 26px 0 0; padding: 0; }
@media (min-width: 760px) { section#trips.eat-tb .browser-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1024px) { section#trips.eat-tb .browser-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }
section#trips.eat-tb .browser-card { position: relative; display: block; min-width: 0; margin: 0; padding: 0; border: 1px solid var(--tb-line); border-radius: 16px; overflow: hidden; background: var(--tb-panel);
  box-shadow: 0 10px 26px var(--tb-shadow); transition: transform .18s ease, box-shadow .18s ease; }
section#trips.eat-tb .browser-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px var(--tb-shadow); }
section#trips.eat-tb .browser-card a { display: flex; flex-direction: column; height: 100%; color: var(--tb-ink); text-decoration: none; }
section#trips.eat-tb .browser-card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; margin: 0; background: var(--tb-line); }
section#trips.eat-tb .browser-card-media img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .4s ease; }
section#trips.eat-tb .browser-card:hover .browser-card-media img { transform: scale(1.03); }
section#trips.eat-tb .browser-card-copy { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 14px 14px 16px; background: none; }
section#trips.eat-tb .card-route { margin: 0; color: var(--tb-accent); font: 800 .7rem/1.3 var(--tb-sans); letter-spacing: .08em; text-transform: uppercase; }
section#trips.eat-tb .browser-card h3 { margin: 0; color: var(--tb-ink); font: 650 1.12rem/1.18 var(--tb-display); letter-spacing: -.005em; text-transform: none; }
section#trips.eat-tb .card-dek { margin: 0; color: var(--tb-muted); font: 400 .88rem/1.45 var(--tb-sans); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
section#trips.eat-tb .card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; color: var(--tb-ink); font: 700 .8rem/1.2 var(--tb-sans); letter-spacing: normal; text-transform: none; }
section#trips.eat-tb .card-meta b { color: var(--tb-forest); font-weight: 800; }
section#trips.eat-tb .tb-here { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 5px 10px; border-radius: 999px; background: var(--tb-sun); color: #1d2722; font: 800 .72rem/1.1 var(--tb-sans); letter-spacing: .04em; }
@media (max-width: 519px) {
  section#trips.eat-tb .browser-head { grid-template-columns: minmax(0, 1fr); }
  section#trips.eat-tb .browser-card-copy { padding: 11px 11px 13px; gap: 4px; }
  section#trips.eat-tb .browser-card h3 { font-size: 1rem; }
  section#trips.eat-tb .card-dek { font-size: .8rem; -webkit-line-clamp: 2; }
  section#trips.eat-tb .card-route { font-size: .64rem; }
  section#trips.eat-tb .result-line { font-size: .88rem; }
  section#trips.eat-tb .reset { padding: 10px 14px; font-size: .86rem; }
}
@media (min-width: 520px) and (max-width: 859px) { section#trips.eat-tb .browser-head { grid-template-columns: minmax(0, 1fr); } }

/* load more (24 per batch on desktop, 12 on phones) */
section#trips.eat-tb .tb-more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 30px 0 0; padding: 0; text-align: center; }
section#trips.eat-tb .tb-more-info { margin: 0; color: var(--tb-ink); font: 500 .92rem/1.4 var(--tb-sans); }
section#trips.eat-tb .tb-more-btn { min-height: 48px; margin: 0; padding: 12px 28px; border: 0; border-radius: 999px; background: var(--tb-forest); color: var(--tb-forest-ink); font: 700 1rem/1 var(--tb-sans);
  letter-spacing: .01em; text-transform: none; cursor: pointer; box-shadow: 0 8px 20px var(--tb-shadow); }
section#trips.eat-tb .tb-more-btn:hover { filter: brightness(1.08); }
section#trips.eat-tb .empty { margin: 26px 0 0; padding: 28px 22px; border: 1px dashed var(--tb-line); border-radius: 16px; background: var(--tb-panel); text-align: center; color: var(--tb-ink); }
section#trips.eat-tb .empty h3 { margin: 0 0 6px; font: 650 1.3rem/1.2 var(--tb-display); color: var(--tb-ink); }
section#trips.eat-tb .empty p { margin: 0; color: var(--tb-muted); }

/* no-JS / JS-failed fallback: controls appear only once trip-index.js has filled them (.tb-ready) */
section#trips.eat-tb:not(.tb-ready) #tb-filters, section#trips.eat-tb:not(.tb-ready) .tb-more, section#trips.eat-tb:not(.tb-ready) #tb-grid, section#trips.eat-tb:not(.tb-ready) #tb-empty { display: none !important; }
section#trips.eat-tb.tb-ready .tb-fallback { display: none; }
section#trips.eat-tb .tb-fallback { padding: 20px 22px; border: 1px solid var(--tb-line); border-radius: 16px; background: var(--tb-panel); color: var(--tb-ink); line-height: 1.6; }
section#trips.eat-tb .tb-fallback p { margin: 0 0 8px; }
section#trips.eat-tb .tb-fallback a { color: var(--tb-forest); text-decoration: underline; text-underline-offset: 3px; }

/* hubtool1 (Oct 9 2026): the /trips/ directory ('The full directory: Every guide, listed by filter') on every hub and
   collection page, scoped to that hub's guides (tools/trip_filters.hub_directory). Same markup as /trips/ (#directory, .trips-dir
   #by-<dim>, .trips-style #<dim>-<value>), its own palette (WCAG AA light + dark), id-scoped so hub CSS cannot collapse it. */
section#directory.eat-hub-dir {
  --hd-bg: #f3efe5; --hd-panel: #fffdf8; --hd-ink: #1d2722; --hd-muted: #4a5750; --hd-line: #d6cdbb; --hd-mist: #e9e4d6;
  --hd-forest: #1c4938; --hd-forest-ink: #fffdf8; --hd-accent: #8a4618; --hd-sun: #efbd4c;
  --hd-display: "Newsreader", Georgia, "Times New Roman", serif; --hd-sans: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;
  display: block; margin: 0; padding: clamp(40px, 6vw, 72px) 0 clamp(52px, 8vw, 88px); background: var(--hd-bg); color: var(--hd-ink);
  font-family: var(--hd-sans); line-height: 1.5; text-align: left; border-top: 1px solid var(--hd-line); scroll-margin-top: 84px;
}
@media (prefers-color-scheme: dark) {
  section#directory.eat-hub-dir { --hd-bg: #121a16; --hd-panel: #19231e; --hd-ink: #f2eee5; --hd-muted: #c4cdc7; --hd-line: #3b4842; --hd-mist: #26322c;
    --hd-forest: #8fc0a3; --hd-forest-ink: #0d1f18; --hd-accent: #f0b98e; --hd-sun: #f3ca67; }
}
section#directory.eat-hub-dir *, section#directory.eat-hub-dir *::before, section#directory.eat-hub-dir *::after { box-sizing: border-box; }
section#directory.eat-hub-dir .hub-dir-inner { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 28px); }
section#directory.eat-hub-dir .tp-dir-head { max-width: 46em; margin: 0 0 8px; }
section#directory.eat-hub-dir .tp-kicker { margin: 0 0 10px; color: var(--hd-accent); font: 800 .76rem/1.2 var(--hd-sans); letter-spacing: .14em; text-transform: uppercase; }
section#directory.eat-hub-dir .tp-dir-head h2 { margin: 0 0 10px; color: var(--hd-ink); font: 650 clamp(1.9rem, 4vw, 2.8rem)/1.05 var(--hd-display); letter-spacing: -.02em; text-transform: none; }
section#directory.eat-hub-dir .tp-dir-head p { margin: 0 0 10px; color: var(--hd-muted); font-size: 1.04rem; }
section#directory.eat-hub-dir .hub-dir-all { display: inline-flex; align-items: center; min-height: 44px; margin: 6px 0 0; padding: 0 18px; border-radius: 999px;
  background: var(--hd-forest); color: var(--hd-forest-ink); font: 800 .92rem/1.2 var(--hd-sans); text-decoration: none; }
section#directory.eat-hub-dir .hub-dir-all:hover, section#directory.eat-hub-dir .hub-dir-all:focus-visible { outline: 3px solid var(--hd-sun); outline-offset: 2px; }
section#directory.eat-hub-dir .tp-jump { margin: 18px 0 0; border-top: 1px solid var(--hd-line); border-bottom: 1px solid var(--hd-line); }
section#directory.eat-hub-dir .tp-jump-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
section#directory.eat-hub-dir .tp-jump a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; color: var(--hd-ink); font-size: .84rem; font-weight: 800; text-decoration: none; white-space: nowrap; border: 0; border-bottom: 3px solid transparent; letter-spacing: normal; text-transform: none; }
section#directory.eat-hub-dir .tp-jump a:hover { border-bottom-color: var(--hd-sun); }
section#directory.eat-hub-dir .trips-dir { margin: clamp(32px, 5vw, 52px) 0 0; scroll-margin-top: 64px; }
section#directory.eat-hub-dir .trips-dir .section-head { display: flex; align-items: baseline; gap: 14px; margin: 0 0 16px; padding: 0 0 12px; border-bottom: 2px solid var(--hd-ink); }
section#directory.eat-hub-dir .trips-dir .section-kicker { margin: 0; color: var(--hd-accent); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
section#directory.eat-hub-dir .trips-dir h2 { margin: 0; color: var(--hd-ink); font: 650 clamp(1.4rem, 2.6vw, 1.8rem)/1.1 var(--hd-display); text-transform: none; }
section#directory.eat-hub-dir .trips-dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
section#directory.eat-hub-dir .trips-style { margin: 0; padding: 18px 20px; border: 1px solid var(--hd-line); border-radius: 14px; background: var(--hd-panel); scroll-margin-top: 64px; }
section#directory.eat-hub-dir .trips-style h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; color: var(--hd-ink); font: 650 1.15rem/1.2 var(--hd-display); text-transform: none; }
section#directory.eat-hub-dir .trip-count-pill { flex: 0 0 auto; min-width: 2em; padding: 3px 9px; border-radius: 999px; background: var(--hd-forest); color: var(--hd-forest-ink); font: 800 .76rem/1.2 var(--hd-sans); text-align: center; }
section#directory.eat-hub-dir .trips-list { margin: 0; padding: 0; list-style: none; max-height: 15.5em; overflow-y: auto; }
section#directory.eat-hub-dir .trips-list li { margin: 0; padding: 0; border-top: 1px solid var(--hd-mist); }
section#directory.eat-hub-dir .trips-list li::before { content: none; }
section#directory.eat-hub-dir .trips-list li:first-child { border-top: 0; }
section#directory.eat-hub-dir .trips-list a { display: block; padding: 7px 0; border: 0; color: var(--hd-ink); font-size: .92rem; text-decoration: none; }
section#directory.eat-hub-dir .trips-list a:hover { color: var(--hd-accent); text-decoration: underline; }
