/* Shared layout corrections for the reviewed Hokkaido and Tohoku pages.
   The opt-in attribute keeps retained pages in other regions untouched. */

/* Directory sections do not have a .sr-city ancestor. Give them the same
   reading gutter without adding padding around the existing map or hero. */
#main[data-nlive-regional-review="true"] > .pr-detail > :is(.sr-section,.hp-search),
#main[data-nlive-regional-review="true"] > .pr-detail > .th-directory > .sr-section {
  min-width: 0;
  margin: 0;
  padding: clamp(24px,3vw,40px) var(--pr-gutter,clamp(18px,4.5vw,64px));
}
#main[data-nlive-regional-review="true"] > .pr-detail > :is(.sr-section,.hp-search) {
  border-top: 1px solid var(--pr-line,#c8d9df);
}
#main[data-nlive-regional-review="true"] > .pr-detail > :is(.hc-directory,.hp-search) {
  border-inline: 0;
  border-bottom: 0;
  border-radius: 0;
}
#main[data-nlive-regional-review="true"] > .pr-detail > .th-directory,
#main[data-nlive-regional-review="true"] > .pr-detail > .th-directory > .th-hero {
  margin-bottom: 0;
}

/* The city-wide ul/ol reset otherwise overrides these shared article rules. */
#main[data-nlive-regional-review="true"] .sr-city ol.ha-flow-list {
  list-style: decimal;
  padding-left: 1.4rem;
}
#main[data-nlive-regional-review="true"] .sr-city ul.ha-article-grid {
  margin: 1.2rem 0 0;
}

@media (max-width:700px) {
  #main[data-nlive-regional-review="true"] > .pr-detail > :is(.sr-section,.hp-search),
  #main[data-nlive-regional-review="true"] > .pr-detail > .th-directory > .sr-section {
    padding-block: 22px;
  }
}
