/* Two navigation levels: destination chapters and attraction groups. */
.guide-shell { --guide-sticky-gap:14px; }
.destination-tabs .destination-section { scroll-margin-top: 110px; }
.destination-tabs .guide-anchor-alias { display: block; scroll-margin-top: 110px; }
.destination-tabs .guide-source-details .destination-section { margin-top: 18px; }
.destination-tabs .guide-source-list li { scroll-margin-top: 110px; }
.guide-navigation {
  padding: 8px;
  border: 1px solid #36505e;
  border-radius: 20px;
  background: linear-gradient(110deg, #071b29, #12354a);
  box-shadow: 0 10px 28px #0a243618;
  margin-bottom: 26px;
}
.guide-tab-links {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  width: 100%;
}
.guide-tab-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 60px;
  padding: 10px 12px;
  border: 1px solid #bfa57470;
  border-radius: 13px;
  background: #ffffff0a;
  color: #e4edf1;
  font-size: 16px;
  transition: background .18s, color .18s, border-color .18s;
}
.guide-tab-icon {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  color: #e8c58c;
}
.guide-tab-icon svg { width: 26px; height: 26px; }
.guide-tab-links a:hover { background: #ffffff0d; border-color: #bfa57470; }
.guide-tab-links a[aria-selected=true] {
  color: #102737;
  background: linear-gradient(120deg, #f8e4bf, #e4b970);
  border-color: #f3d5a2;
  box-shadow: 0 3px 12px #00000024;
}
.guide-tab-links a[aria-selected=true] .guide-tab-icon { color: #6d4b1b; }
.guide-tab-links a:focus-visible,
.experience-tabs a:focus-visible { outline: 3px solid #d7922e; outline-offset: 3px; }
.experience-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: static;
  top: var(--guide-experience-top, 92px);
  z-index: 9;
  padding: 12px 0 18px;
  margin-bottom: 6px;
  background: #f7f1ebf7;
}
.guide-enhanced:not(.guide-secondary-static) .experience-tabs { position: sticky; }
.destination-tabs [data-experience-panel] .destination-section,
.destination-tabs [data-experience-panel] .guide-subchapter,
.destination-tabs [data-experience-panel] .guide-place { scroll-margin-top:var(--guide-experience-offset, 215px); }
.experience-tabs a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 0 1 auto;
  min-width: 150px;
  max-width: 240px;
  min-height: 60px;
  padding: 9px 16px;
  border: 1px solid #c8b69a;
  border-radius: 14px;
  background: #fffaf3;
  color: #183747;
  text-align: center;
  text-decoration: none;
  box-shadow: inset 0 -3px 0 #e6d9c6;
}
.experience-tab-title { font-size: 18px; font-weight: bold; line-height: 1.35; overflow-wrap: anywhere; }
.experience-tabs small { font-size: 12px; color: #655e53; }
.experience-tabs a:hover { border-color: #9e7438; background: #f4ead9; }
.experience-tabs a[aria-selected=true] {
  background: #12354a;
  color: #fff7e8;
  border-color: #12354a;
  box-shadow: inset 0 -4px 0 #dbb36e;
}
.experience-tabs a[aria-selected=true] small { color: #e4cc9f; }
[data-experience-panel] { scroll-margin-top: var(--guide-experience-offset, 215px); }
[data-experience-panel] .flagship-section { scroll-margin-top: var(--guide-experience-offset, 215px); }
.guide-shell .anchor-alias { scroll-margin-top: var(--guide-experience-offset, 215px); }
@media(max-width:1100px) {
  .guide-tab-links a { gap: 5px; font-size: 14px; padding: 9px 5px; }
  .guide-tab-icon { flex-basis: 26px; width: 26px; }
  .guide-tab-icon svg { width: 22px; height: 22px; }
}
@media(max-width:700px) {
  .guide-shell { --guide-sticky-gap:8px; }
  .destination-tabs .destination-section, .destination-tabs .guide-anchor-alias,
  .destination-tabs .guide-source-list li { scroll-margin-top: 130px; }
  .guide-navigation { padding: 6px; border-radius: 16px; }
  .guide-enhanced .guide-tab-links { display: grid; }
  .guide-tab-links { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .guide-tab-links a { min-height: 42px; padding: 8px 4px; border-radius: 10px; font-size: 13px; }
  .guide-tab-icon { display: none; }
  .experience-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; top: var(--guide-experience-top, 111px); padding: 8px 0 12px; }
  .experience-tabs-five { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .experience-tabs-five .experience-tab-title { font-size:15px; }
  .experience-tabs-five small { font-size:10px; }
  .destination-tabs [data-experience-panel] .destination-section,
  .destination-tabs [data-experience-panel] .guide-subchapter,
  .destination-tabs [data-experience-panel] .guide-place { scroll-margin-top:var(--guide-experience-offset, 290px); }
  .experience-tabs a { min-width: 0; max-width: none; min-height: 56px; padding: 8px 4px; border-radius: 11px; }
  .experience-tab-title { font-size: 16px; }
  .experience-tabs small { font-size: 10px; }
  [data-experience-panel], [data-experience-panel] .flagship-section { scroll-margin-top: var(--guide-experience-offset, 280px); }
}
@media print { .experience-tabs { display: none; } [data-experience-panel][hidden] { display: block !important; } }

/* Keep chapter navigation below the persistent mobile masthead - 2026-11-09. */
@media(max-width:700px),(max-width:1024px) and (hover:none) and (pointer:coarse){
  .guide-navigation{top:var(--mobile-header-height)}
  /* The guide's own margins already reserve its bars; html reserves the masthead. */
  html:has(.guide-shell){scroll-padding-top:20px}
  .guide-shell .guide-panel,
  .guide-shell .guide-panel>.flagship-section,
  .guide-shell .destination-section,
  .guide-shell .guide-anchor-alias,
  .guide-shell .guide-source-list li,
  .guide-shell .guide-subchapter,
  .guide-shell .guide-place,
  .guide-shell .source-register li{scroll-margin-top:calc(var(--mobile-header-height) + 130px)}
  .guide-shell [data-experience-panel],
  .guide-shell [data-experience-panel] .flagship-section,
  .destination-tabs [data-experience-panel] .destination-section,
  .destination-tabs [data-experience-panel] .guide-subchapter,
  .destination-tabs [data-experience-panel] .guide-place,
  .guide-shell .anchor-alias{scroll-margin-top:var(--guide-experience-offset,calc(var(--mobile-header-height) + 290px))}
}

/* Compact chapter dock at the bottom of every destination guide - 2026-11-12. */
@media screen {
  html:has(.guide-shell) {
    --guide-bottom-nav-height:58px;
    --guide-bottom-nav-gap:12px;
    --guide-bottom-reserve:calc(var(--guide-bottom-nav-height) + var(--guide-bottom-nav-gap) + env(safe-area-inset-bottom,0px) + 12px);
    scroll-padding-top:0;
    scroll-padding-bottom:var(--guide-bottom-reserve);
  }
  body:has(.guide-shell) { padding-bottom:var(--guide-bottom-reserve); }
  body .guide-shell .guide-navigation {
    position:fixed;
    top:auto;
    bottom:calc(var(--guide-bottom-nav-gap) + env(safe-area-inset-bottom,0px));
    left:max(12px,env(safe-area-inset-left,0px));
    right:max(12px,env(safe-area-inset-right,0px));
    z-index:1090;
    width:auto;
    max-width:1100px;
    height:var(--guide-bottom-nav-height);
    margin:0 auto;
    padding:6px;
    border-radius:16px;
    box-shadow:0 -6px 24px #071b2924;
  }
  body .guide-shell .guide-tab-links { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:4px; }
  body .guide-shell .guide-tab-links a { min-width:0; min-height:44px; padding:5px 8px; gap:6px; border-radius:10px; font-size:14px; line-height:1.2; white-space:normal; text-align:center; }
  body .guide-shell .guide-tab-icon { flex:0 0 22px; width:22px; height:22px; }
  body .guide-shell .guide-tab-icon svg { width:20px; height:20px; }
  body .guide-shell .guide-tab-links a:focus-visible { outline-offset:-3px; }

  /* Chapter anchors reserve only the top bars; the chapter dock is below them. */
  body .guide-shell .guide-panel,
  body .guide-shell .guide-panel>.flagship-section,
  body .guide-shell div[id^="experience-"],
  body .guide-shell div[id^="experience-"]>.flagship-section,
  body .guide-shell .destination-section,
  body .guide-shell .guide-anchor-alias,
  body .guide-shell .guide-source-list li,
  body .guide-shell .guide-subchapter,
  body .guide-shell .guide-place,
  body .guide-shell .source-register li { scroll-margin-top:var(--guide-experience-top,calc(var(--site-header-height,72px) + 12px)); }
  body .guide-shell [data-experience-panel],
  body .guide-shell [data-experience-panel] .flagship-section,
  body .destination-tabs [data-experience-panel] .destination-section,
  body .destination-tabs [data-experience-panel] .guide-subchapter,
  body .destination-tabs [data-experience-panel] .guide-place,
  body .guide-shell .anchor-alias { scroll-margin-top:var(--guide-experience-offset,calc(var(--site-header-height,72px) + 190px)); }
}
@media screen and (min-width:701px) and (max-width:1100px) and (hover:hover) {
  body .guide-shell .guide-tab-links a { padding-inline:4px; gap:4px; font-size:12px; }
  body .guide-shell .guide-tab-icon { flex-basis:18px; width:18px; height:18px; }
  body .guide-shell .guide-tab-icon svg { width:18px; height:18px; }
}
@media screen and (max-width:700px), screen and (max-width:1024px) and (hover:none) and (pointer:coarse) {
  html:has(.guide-shell) { --guide-bottom-nav-height:56px; --guide-bottom-nav-gap:6px; }
  body .guide-shell .guide-navigation { left:max(6px,env(safe-area-inset-left,0px)); right:max(6px,env(safe-area-inset-right,0px)); padding:5px; border-radius:14px; }
  body .guide-shell .guide-tab-links { gap:2px; }
  body .guide-shell .guide-tab-links a { padding:4px 2px; gap:0; border-radius:8px; font-size:11px; text-wrap:balance; }
  body .guide-shell .guide-tab-icon { display:none; }
}

/* Reference edition: desktop chapters sit directly under the panoramic opening. */
@media screen and (min-width:761px){
 html:has(.reference-guide-shell){--guide-bottom-reserve:0px;scroll-padding-bottom:0}
 body:has(.reference-guide-shell){padding-bottom:0}
 body .guide-shell.reference-guide-shell .guide-navigation{position:sticky;top:var(--site-header-height,98px);bottom:auto;left:auto;right:auto;width:100%;max-width:none;height:auto;min-height:68px;margin:0;padding:10px 0;border:0;border-bottom:1px solid #cdb792;border-radius:0;background:#faf8f4f5;box-shadow:none;backdrop-filter:blur(10px);z-index:100}
 body .guide-shell.reference-guide-shell .guide-tab-links{display:flex;flex:0 1 auto;flex-wrap:wrap;justify-content:center;width:fit-content;max-width:calc(100% - 48px);height:auto;margin:auto;gap:8px}
 body .guide-shell.reference-guide-shell .guide-tab-links a{position:relative;flex:0 1 auto;min-width:104px;max-width:220px;min-height:44px;height:auto;padding:10px 18px;border:1px solid #d4c3aa;border-radius:10px;background:#fffdf9;box-shadow:0 2px 4px #142c3e08;color:#102432;font-size:15px;font-weight:600;white-space:normal;overflow-wrap:anywhere}
 body .guide-shell.reference-guide-shell .guide-tab-icon{display:none}
 body .guide-shell.reference-guide-shell .guide-tab-links a[aria-selected=true]{background:#12354a;border-color:#12354a;color:#fff7e8;font-weight:700;box-shadow:0 2px 5px #142c3e18}
 body .guide-shell.reference-guide-shell .guide-tab-links a:hover{background:#f2e7d5;border-color:#aa8650}
 body .guide-shell.reference-guide-shell .guide-tab-links a[aria-selected=true]:hover{background:#1e455c;border-color:#1e455c}
 body .guide-shell.reference-guide-shell .experience-tabs{background:#faf8f4f7}
}
@media screen and (min-width:761px) and (max-width:1100px){
 body .guide-shell.reference-guide-shell .guide-tab-links{max-width:calc(100% - 32px);gap:6px}
 body .guide-shell.reference-guide-shell .guide-tab-links a{min-width:90px;font-size:14px;padding-inline:12px}
}
@media screen and (max-width:760px){
 html:has(.reference-guide-shell){--guide-bottom-nav-height:108px}
 body .guide-shell.reference-guide-shell .guide-navigation{background:#faf8f4f7;border:1px solid #d4c3aa;box-shadow:0 -3px 16px #142c3e14}
 body .guide-shell.reference-guide-shell .guide-tab-links{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
 body .guide-shell.reference-guide-shell .guide-tab-links a{color:#163242;background:#fffdf9;border:1px solid #d4c3aa;box-shadow:0 1px 3px #142c3e08;font-size:13px}
 body .guide-shell.reference-guide-shell .guide-tab-links a[aria-selected=true]{color:#fff7e8;background:#12354a;border-color:#12354a;box-shadow:none}
}

/* Reader chapters use direct links to the edited text, without a disclosure. */
.guide-reader-jumps {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
  margin:0 0 32px;
}
.guide-reader-jumps a {
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  min-height:92px;
  padding:12px 10px;
  border:1px solid #c8b69a;
  border-radius:14px;
  background:#fffaf3;
  color:#183747;
  text-align:center;
  text-decoration:none;
  box-shadow:inset 0 -3px 0 #e6d9c6;
  overflow-wrap:anywhere;
}
.guide-reader-jumps span { font-size:18px;font-weight:bold;line-height:1.35; }
.guide-reader-jumps small { font-size:12px;color:#655e53; }
.guide-reader-jumps a:hover { border-color:#9e7438;background:#f4ead9; }
.guide-reader-jumps a:focus-visible { outline:3px solid #d7922e;outline-offset:3px; }
.guide-reader-edition[data-reader-edition="experiences"] h3[id],
.guide-reader-edition[data-reader-edition="experiences"] h4[id],
.guide-reader-edition[data-reader-edition="useful"] h3[id],
.guide-reader-edition[data-reader-edition="useful"] h4[id],
.guide-reader-edition[data-reader-edition="shopping"] h3[id],
.guide-reader-edition[data-reader-edition="shopping"] h4[id],
.guide-reader-edition[data-reader-edition="kosher-shabbat"] h3[id],
.guide-reader-edition[data-reader-edition="kosher-shabbat"] h4[id] {
  scroll-margin-top:var(--guide-experience-top,calc(var(--site-header-height,98px) + 100px));
}
.guide-reader-topic-links { margin-block:0 28px; }
.guide-reader-topic-links a { font-size:14px; }
@media(min-width:701px) {
  .guide-reader-jumps:has(>a:nth-child(4)):not(:has(>a:nth-child(5))) { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media(max-width:700px) {
  .guide-reader-jumps { grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:24px; }
  .guide-reader-jumps a { min-height:76px;padding:10px 8px; }
  .guide-reader-jumps a:last-child:nth-child(odd) { grid-column:1 / -1; }
  .guide-reader-jumps span { font-size:16px; }
  .guide-reader-jumps small { font-size:11px; }
}
@media print { .guide-reader-jumps { display:none; } }
