/* MTWM Open Page 2.2 — canonical venue detail component.
   Styles the ACTUAL mtwm_merged/templates/single.php markup, including
   <details><summary><span> labels (which are not h2/h3).
   Deliberately scoped: no global heading or button selectors. */
body.mtwm-editorial-view main.mtwm-single {
  width:min(calc(100% - 48px),1180px); max-width:1180px; margin:0 auto;
  padding:clamp(32px,5vw,70px) 0 clamp(64px,7vw,100px);
  color:var(--mtwm-ink); font-family:var(--mtwm-sans); font-size:1rem; line-height:1.65;
  --mtwm-venue-line:var(--mtwm-line,#D6DAD4);
}
body.mtwm-editorial-view .mtwm-single :is(.mtwm-single-hero,.mtwm-sidebar,.mtwm-scorecard,.mtwm-module) {
  box-shadow:none; background:transparent; border-radius:0;
}
body.mtwm-editorial-view .mtwm-single .mtwm-single-hero {
  border:0; padding:0; margin:0 0 clamp(24px,3vw,40px);
}
body.mtwm-editorial-view .mtwm-single h1.mtwm-single-title {
  font-family:var(--mtwm-serif); font-weight:400;
  font-size:clamp(2.2rem,3.6vw,3.45rem) !important;
  letter-spacing:-.035em; line-height:1.1; margin:0 0 clamp(16px,2.4vw,28px);
  max-width:26ch; overflow-wrap:normal; word-break:normal;
}
body.mtwm-editorial-view .mtwm-single .mtwm-breadcrumbs {
  display:flex; flex-wrap:wrap; gap:.45rem; margin:0 0 1.75rem;
  font:400 .83rem/1.5 var(--mtwm-sans); color:var(--mtwm-muted);
}
body.mtwm-editorial-view .mtwm-single .mtwm-breadcrumbs a {color:inherit;text-decoration:none;}
body.mtwm-editorial-view .mtwm-single .mtwm-single-meta {
  display:flex; flex-wrap:wrap; gap:.3rem .9rem; align-items:center; margin:0 0 1.1rem;
}
body.mtwm-editorial-view .mtwm-single .mtwm-single-meta .mtwm-tag {
  display:inline-flex; width:auto; min-height:0; padding:.12rem 0; margin:0;
  border:0; border-radius:0; box-shadow:none; background:transparent;
  font:500 .79rem/1.55 var(--mtwm-sans); color:var(--mtwm-muted);
  white-space:normal; overflow-wrap:normal;
}
body.mtwm-editorial-view .mtwm-single .mtwm-single-meta .mtwm-tag + .mtwm-tag::before {
  content:'·'; color:var(--mtwm-clay); margin-right:.9rem; font-weight:400;
}
body.mtwm-editorial-view .mtwm-single .mtwm-single-excerpt {
  max-width:72ch; margin:0 0 .5rem; font:400 clamp(1.03rem,1.35vw,1.16rem)/1.65 var(--mtwm-sans);
  color:var(--mtwm-ink);
}
body.mtwm-editorial-view .mtwm-single .mtwm-hero-subnote {
  max-width:72ch; margin:.55rem 0 0; font:400 .92rem/1.65 var(--mtwm-sans); color:var(--mtwm-muted);
}
/* Navigation is a single light editorial rule, never a row of outlined buttons. */
body.mtwm-editorial-view .mtwm-single nav.mtwm-jump {
  display:flex; flex-wrap:wrap; align-items:center; gap:.2rem clamp(14px,2vw,29px);
  overflow:visible; width:100%; padding:15px 0; margin:0 0 clamp(30px,3vw,46px);
  border:0; border-top:1px solid var(--mtwm-venue-line);
  border-bottom:1px solid var(--mtwm-venue-line); border-radius:0;
  box-shadow:none; background:transparent;
}
body.mtwm-editorial-view .mtwm-single nav.mtwm-jump a {
  display:inline-block; margin:0; padding:8px 0 !important; min-height:40px;
  border:0 !important; border-radius:0; background:transparent !important; box-shadow:none;
  font:500 .84rem/1.35 var(--mtwm-sans); color:var(--mtwm-ink) !important;
  text-decoration:none !important; transform:none; white-space:normal;
}
body.mtwm-editorial-view .mtwm-single nav.mtwm-jump a:hover,
body.mtwm-editorial-view .mtwm-single nav.mtwm-jump a:focus-visible {color:var(--mtwm-clay) !important;text-decoration:underline !important;text-underline-offset:5px;}
/* Main / supporting information: explicit minimum tracks to prevent clipping. */
body.mtwm-editorial-view .mtwm-single .mtwm-mag {
  display:grid; grid-template-columns:minmax(0,1.58fr) minmax(270px,1fr);
  align-items:start; gap:clamp(24px,3.2vw,52px); width:100%; min-width:0;
}
body.mtwm-editorial-view .mtwm-single :is(.mtwm-main,.mtwm-sidebar) {display:block; width:100%;min-width:0;max-width:100%;}
body.mtwm-editorial-view .mtwm-single details.mtwm-module {
  display:block; min-width:0; overflow:visible; margin:0 0 clamp(22px,3vw,38px);
  padding:0 0 clamp(20px,3vw,35px); border:0;
  border-bottom:1px solid var(--mtwm-venue-line); border-radius:0; box-shadow:none; background:transparent;
}
body.mtwm-editorial-view .mtwm-single details.mtwm-module > summary {
  display:flex; flex-wrap:wrap; align-items:baseline; justify-content:flex-start;
  column-gap:clamp(10px,2vw,26px); row-gap:5px;
  min-height:44px; width:100%; padding:0; margin:0;
  border:0; border-radius:0; background:transparent; box-shadow:none; list-style:none;
  cursor:pointer; color:var(--mtwm-ink); user-select:auto;
  font:400 clamp(1.42rem,2.25vw,1.88rem)/1.24 var(--mtwm-serif) !important;
  letter-spacing:-.018em;
}
body.mtwm-editorial-view .mtwm-single details.mtwm-module > summary::-webkit-details-marker {display:none;}
body.mtwm-editorial-view .mtwm-single details.mtwm-module > summary > span {
  display:inline; font:inherit !important; color:inherit; letter-spacing:inherit; min-width:0;
}
body.mtwm-editorial-view .mtwm-single details.mtwm-module > summary > small {
  flex:0 1 auto; min-width:0; white-space:normal; letter-spacing:normal;
  color:var(--mtwm-muted); font:400 .78rem/1.4 var(--mtwm-sans) !important;
}
body.mtwm-editorial-view .mtwm-single details.mtwm-module > summary::after {
  content:'⌄'; margin-left:auto; align-self:center; color:var(--mtwm-muted);
  font:400 1rem/1 var(--mtwm-sans); transform:none;
}
body.mtwm-editorial-view .mtwm-single details.mtwm-module[open] > summary::after {transform:rotate(180deg);}
body.mtwm-editorial-view .mtwm-single details.mtwm-module[open] > summary {border:0;}
body.mtwm-editorial-view .mtwm-single .mtwm-module-body {padding:clamp(14px,2vw,24px) 0 0; margin:0; background:transparent;border:0;}
/* Text hierarchy within expandable sections. Only the PAGE title uses display-size type. */
body.mtwm-editorial-view .mtwm-single .mtwm-module-body :is(h2,h3,h4,.mtwm-minihead) {
  font-family:var(--mtwm-sans); letter-spacing:-.01em; font-weight:600; color:var(--mtwm-ink);
  margin:1.35rem 0 .6rem; overflow-wrap:normal; word-break:normal;
}
body.mtwm-editorial-view .mtwm-single .mtwm-module-body h2 {font-size:1.32rem;line-height:1.35;}
body.mtwm-editorial-view .mtwm-single .mtwm-module-body :is(h3,.mtwm-minihead) {font-size:1.08rem;line-height:1.4;}
body.mtwm-editorial-view .mtwm-single .mtwm-module-body :is(h4) {font-size:.98rem;line-height:1.4;}
body.mtwm-editorial-view .mtwm-single .mtwm-module-body :is(p,li) {font:400 1rem/1.7 var(--mtwm-sans); color:var(--mtwm-ink);}
body.mtwm-editorial-view .mtwm-single :is(.mtwm-prep-grid,.mtwm-tips-grid,.mtwm-trust-grid) {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 28px;
}
body.mtwm-editorial-view .mtwm-single :is(.mtwm-prep-card,.mtwm-tip-card,.mtwm-mini,.mtwm-glance-pill) {
  min-width:0; margin:0; padding:12px 0; border:0; border-top:1px solid var(--mtwm-venue-line);
  border-radius:0; box-shadow:none; background:transparent;
}
body.mtwm-editorial-view .mtwm-single .mtwm-glance-row {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px 22px; align-items:stretch;
}
body.mtwm-editorial-view .mtwm-single .mtwm-glance-pill {
  display:flex; flex-direction:column; gap:6px; align-items:flex-start; justify-content:flex-start;
  min-width:0; width:auto;
}
body.mtwm-editorial-view .mtwm-single .mtwm-glance-pill-wide {grid-column:auto;}
body.mtwm-editorial-view .mtwm-single :is(.mtwm-glance-k,.mtwm-score-top strong) {
  color:var(--mtwm-muted); font:500 .8rem/1.45 var(--mtwm-sans);
}
body.mtwm-editorial-view .mtwm-single .mtwm-glance-v {font:600 .97rem/1.45 var(--mtwm-sans);color:var(--mtwm-ink);}
body.mtwm-editorial-view .mtwm-single .mtwm-scorecard {padding:0;margin:0;}
body.mtwm-editorial-view .mtwm-single .mtwm-score-top {display:flex;justify-content:space-between;align-items:baseline;gap:1rem;margin:1rem 0;}
body.mtwm-editorial-view .mtwm-single .mtwm-score-top > span {font:500 1.65rem/1.15 var(--mtwm-serif);color:var(--mtwm-ink);}
body.mtwm-editorial-view .mtwm-single .mtwm-score-row {
  display:grid; grid-template-columns:58px minmax(0,1fr) 56px; gap:12px; align-items:center;
  margin:.75rem 0; font:400 .84rem/1.4 var(--mtwm-sans);
}
body.mtwm-editorial-view .mtwm-single .mtwm-score-row > span:last-child {text-align:right;}
body.mtwm-editorial-view .mtwm-single .mtwm-bar {height:8px;background:var(--mtwm-wash);border-radius:0;overflow:hidden;max-width:100%;}
body.mtwm-editorial-view .mtwm-single .mtwm-bar i {display:block;height:100%;background:#81988B;}
body.mtwm-editorial-view .mtwm-single .mtwm-disclaimer {font-size:.82rem;line-height:1.6;color:var(--mtwm-muted);}
body.mtwm-editorial-view .mtwm-single :is(.mtwm-flag,.mtwm-tag-flag) {
  display:inline-block; width:auto; border:0; border-radius:0; background:transparent;
  color:var(--mtwm-ink); font:600 .8rem/1.4 var(--mtwm-sans);padding:0;
}
body.mtwm-editorial-view .mtwm-single .mtwm-carousel-track:has(img) {display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;}
body.mtwm-editorial-view .mtwm-single .mtwm-carousel-track img {display:block;flex:0 0 auto;width:min(260px,80vw);aspect-ratio:4/3;object-fit:cover;scroll-snap-align:start;}
/* Original template provides a Photos module even when there are no photographs. */
body.mtwm-editorial-view .mtwm-single details#mtwm-photos:not(:has(.mtwm-carousel-track img)) {display:none;}
body.mtwm-editorial-view:has(.mtwm-single details#mtwm-photos:not(:has(.mtwm-carousel-track img))):not(:has(.mtwm-curated-gallery img)) .mtwm-single .mtwm-jump a[href="#mtwm-photos"] {display:none;}
body.mtwm-editorial-view .mtwm-single :is(a,button,summary):focus-visible {outline:3px solid var(--mtwm-clay);outline-offset:3px;}
@media(max-width:900px){
 body.mtwm-editorial-view .mtwm-single .mtwm-mag {grid-template-columns:minmax(0,1fr);}
 body.mtwm-editorial-view .mtwm-single .mtwm-glance-row {grid-template-columns:repeat(2,minmax(0,1fr));}
 body.mtwm-editorial-view .mtwm-single .mtwm-jump {gap:0 15px;}
}
@media(max-width:560px){
 body.mtwm-editorial-view main.mtwm-single {width:calc(100% - 32px);padding-top:30px;}
 body.mtwm-editorial-view .mtwm-single h1.mtwm-single-title {font-size:clamp(2rem,8.5vw,2.65rem) !important;}
 body.mtwm-editorial-view .mtwm-single details.mtwm-module > summary {font-size:1.42rem !important;}
 body.mtwm-editorial-view .mtwm-single .mtwm-glance-row {grid-template-columns:minmax(0,1fr);}
 body.mtwm-editorial-view .mtwm-single :is(.mtwm-prep-grid,.mtwm-tips-grid,.mtwm-trust-grid) {grid-template-columns:minmax(0,1fr);}
 body.mtwm-editorial-view .mtwm-single .mtwm-score-row {grid-template-columns:50px minmax(0,1fr) 44px;gap:8px;}
}
@media(prefers-reduced-motion:reduce){body.mtwm-editorial-view .mtwm-single *{scroll-behavior:auto;transition-duration:0.01ms;}}
/* Final nested-panel cleanup and empty-gallery navigation guard. */
body.mtwm-editorial-view .mtwm-single .mtwm-scorecard,
body.mtwm-editorial-view .mtwm-single .mtwm-scorecard-inline,
body.mtwm-editorial-view .mtwm-single .mtwm-scorecard-sticky,
body.mtwm-editorial-view .mtwm-single :is(.mtwm-disclaimer,.mtwm-flag-desc) {
  border:0; border-radius:0; box-shadow:none; background:transparent; padding:0;
}
body.mtwm-editorial-view .mtwm-single .mtwm-disclaimer {color:var(--mtwm-muted);padding:.8rem 0 0;}
body.mtwm-editorial-view main.mtwm-single {font-size:16px !important;}
body.mtwm-editorial-view .mtwm-single details.mtwm-module > summary {
  font-size:clamp(1.4rem,1.75vw,1.75rem) !important;
}
body.mtwm-editorial-view .mtwm-single:not(:has(#mtwm-photos .mtwm-carousel-track img)):not(:has(.mtwm-curated-gallery img)) .mtwm-jump a[href="#mtwm-photos"] {
  display:none !important;
}
@media(max-width:560px) {
  body.mtwm-editorial-view .mtwm-single details.mtwm-module > summary {font-size:1.42rem !important;}
}
