/* Standalone culture reader only. No restaurant/mobile-shell overrides. */
:root { color-scheme: light; font-family: system-ui, sans-serif; color: #142a3b; background: #faf9f6; }
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.7; }
a { color: #225c73; text-underline-offset: .18em; overflow-wrap: anywhere; }
a:focus-visible { outline: 3px solid #9a5e11; outline-offset: 4px; }
.reader-header, main, .reader-footer { width: min(100% - 2rem, 52rem); margin-inline: auto; }
.reader-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1.3rem; border-bottom: 1px solid #cbd4d6; }
.reader-brand { color: #142a3b; font-weight: 800; text-decoration: none; }
.reader-brand small { display: block; font-size: .75rem; letter-spacing: .1em; font-weight: 500; }
.reader-nav, .reader-return { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
main { padding-block: 1.5rem 2.5rem; }
h1 { font-size: clamp(1.8rem, 5vw, 2.65rem); line-height: 1.22; overflow-wrap: anywhere; }
h2 { line-height: 1.35; margin-top: 2.2rem; }
p { margin-block: .9rem; }
.candidate-note { padding: .8rem 1rem; border-left: 4px solid #8a661d; background: #f3eddc; font-size: .9rem; }
.reader-lead { font-size: 1.15rem; }
.guide-list { padding-left: 1.4rem; }
.guide-list li { padding-block: .6rem 1rem; border-bottom: 1px solid #cbd4d6; }
.guide-list h2 { margin-block: .3rem; font-size: 1.4rem; }
.source-citations { font-size: .88rem; }
.reader-sources li { margin-block: 1rem; }
.source-publisher, .source-checked { display: block; font-size: .88rem; }
.reader-return { margin-top: 2rem; }
.reader-footer { border-top: 1px solid #cbd4d6; padding-block: 1.5rem; font-size: .88rem; }
.skip { display: block; width: fit-content; margin: .4rem 1rem; }
@media (max-width: 480px) { .reader-header { align-items: flex-start; } .reader-nav { flex-basis: 100%; } }

/* Expose the existing Gourmet home/list links as persistent site navigation. No generated link labels or JavaScript. */
html { scroll-padding-top: 10rem; scroll-padding-bottom: 6rem; }
body.gourmet-culture-reader { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
.reader-header { position: sticky; top: 0; z-index: 20; width: 100%; margin: 0; padding: .625rem max(1rem, calc((100% - 52rem) / 2)); background: #fff; border-bottom: 3px solid #ce553e; gap: .5rem 1.5rem; }
.reader-brand { display: block; min-height: 44px; padding: .2rem 0 .2rem 124px; background: url('/assets/gizumo-logo.svg') left center / 116px 40px no-repeat; color: #142a3b; font-size: 1.1rem; line-height: 1.35; letter-spacing: -.02em; }
.reader-brand small { margin-top: .25rem; font-size: .625rem; letter-spacing: .12em; color: #596b77; }
.reader-header .reader-nav { align-items: center; gap: .25rem .5rem; }
.reader-header .reader-nav a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: .4rem .6rem; color: #34546a; font-size: .875rem; font-weight: 650; text-decoration: none; border-radius: 4px; }
.reader-header .reader-nav a:hover, .reader-return a:hover { background: #f1f5f8; text-decoration: underline; }
.reader-return { position: fixed; z-index: 20; inset: auto 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; margin: 0; padding: .15rem max(.6rem, calc((100% - 52rem) / 2)) max(.15rem, env(safe-area-inset-bottom, 0px)); gap: 4px; background: #fff; border-top: 1px solid #d7e0e6; box-shadow: 0 -2px 8px #142a3b08; }
.reader-return a { display: flex; align-items: center; justify-content: center; min-height: 52px; min-width: 0; padding: 6px .5rem; color: #34546a; font-size: .875rem; line-height: 1.4; text-align: center; text-decoration: none; border-radius: 4px; }
.reader-return a[href="/"] { font-weight: 750; color: #8b422f; background: #f8eee9; }
.skip { position: fixed; z-index: 30; top: -100px; left: .5rem; margin: 0; padding: .5rem; background: #fff; }
.skip:focus { top: .25rem; }
@media (max-width: 720px) { .reader-brand { background-size: 90px 32px; padding-left: 98px; font-size: 1rem; } .reader-brand small { font-size: .6rem; } }
@media (max-width: 480px) { .reader-header { gap: .3rem; padding-block: .5rem .25rem; } .reader-header .reader-nav { width: 100%; justify-content: space-between; } .reader-header .reader-nav a { padding-inline: .4rem; } }
@media (max-height: 420px) { .reader-header { position: static; } }
@media print { html { scroll-padding: 0; } body.gourmet-culture-reader { padding-bottom: 0; } .reader-header { position: static; } .reader-return { position: static; display: flex; padding: 0; margin-top: 2rem; box-shadow: none; border: 0; } }

.reader-return.reader-list-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Same-page article modal. The list stays in place underneath. */
html.gzm-article-modal-open, html.gzm-article-modal-open body { overflow: hidden; }
.gzm-article-modal { position: fixed; inset: 1rem; margin: auto; width: min(64rem, calc(100% - 2rem)); height: calc(100dvh - 2rem); max-width: none; max-height: none; padding: 0; border: 1px solid #728da0; border-radius: 12px; color: #142a3b; background: #faf9f6; box-shadow: 0 12px 45px #142a3b40; overflow: hidden; }
.gzm-article-modal[open] { display: flex; flex-direction: column; }
.gzm-article-modal::backdrop { background: #10251f99; }
.gzm-article-modal-bar { display: flex; align-items: center; flex: 0 0 auto; gap: .75rem; padding: .5rem .75rem; background: #e5edf2; border-bottom: 1px solid #c9d6df; }
.gzm-article-modal-bar h2 { flex: 1; min-width: 0; margin: 0; font: 700 .9rem/1.4 system-ui, sans-serif; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gzm-article-modal-direct { font: 400 .8rem/1.4 system-ui, sans-serif; max-width: 6rem; }
.gzm-article-modal-close { flex: 0 0 auto; min-height: 44px; min-width: 64px; padding: .5rem .75rem; border: 1px solid #728da0; border-radius: 6px; background: #fff; color: #142a3b; font: 700 1rem/1.4 system-ui, sans-serif; cursor: pointer; }
.gzm-article-modal-content { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 1.5rem; scroll-padding-block: 1rem; overflow-wrap: anywhere; }
.gzm-article-modal-content article { max-width: 52rem; margin-inline: auto; }
.gzm-article-modal-content h1 { margin-top: 0; }
.gzm-article-modal-content img { max-width: 100%; height: auto; }
.gzm-article-modal :is(a, button, [tabindex]):focus-visible { outline: 3px solid #9a5e11; outline-offset: 3px; }
@media (max-width: 480px) { .gzm-article-modal { inset: .5rem; width: calc(100% - 1rem); height: calc(100dvh - 1rem); } .gzm-article-modal-bar { gap: .5rem; padding: .5rem; } .gzm-article-modal-content { padding: 1rem; } }

.gzm-article-modal-content article > header { position: static; display: block; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; }

/* longlist-fix-gourmet-20261102 (2026-11-02): frame the culture guide index.
 * Appended to /guides/assets/gourmet-culture-reader.css by the package tool.
 * The guide list (160+ entries) used to run the full height of the page;
 * it now scrolls inside a frame capped at min(72vh, 660px), with a sticky
 * hint bar at the top of the frame. The filter script and the article
 * modal operate on the <li> elements, which do not change. */
.guide-list {
  max-height: min(72vh, 660px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #cbd4d6;
  border-radius: 10px;
  background: #fff;
  padding-right: 1rem;
  padding-bottom: .5rem;
}
.guide-list::before {
  content: "Scroll inside this frame to browse all the guides";
  display: block;
  position: sticky;
  top: 0;
  z-index: 1;
  padding: .45rem .2rem;
  background: #eef3f5;
  border-bottom: 1px solid #cbd4d6;
  font-size: .85rem;
  line-height: 1.4;
  color: #435861;
}
@media print {
  .guide-list { max-height: none; overflow: visible; }
  .guide-list::before { display: none; }
}
