/* Gourmet long-list framing — package longlist-fix-gourmet-20261102 (2026-11-02).
 *
 * Loaded ONLY by /restaurants/ and /sources/ (their <head> gets one extra
 * <link>); no other page on the site references this file.
 *
 * Why structural selectors instead of a class on the list:
 * both pages are maintained in place by autoupdate/update.php, which
 * requires the list markup to stay literally "<ul>" — and, on the
 * sources page, the literal marker "<h2>Restaurant sources</h2><ul>".
 * Adding a class to either <ul> would break the collector's next run,
 * so the frame is applied from outside, by document structure:
 *   - /restaurants/: the profile list is the only <ul> inside <main>
 *     (:only-of-type, and also :first-of-type — same element).
 *   - /sources/: the "Restaurant sources" list is the first <ul>
 *     inside <main> (:first-of-type). The second list on that page
 *     ("Ramen menu and ordering references", 9 entries) is short and
 *     intentionally stays unframed.
 * If update.php's own anchors ever change, its run fails before these
 * selectors can silently drift, so the two cannot disagree unnoticed.
 */

.framed-list-hint {
  margin: 14px 0 0;
  font-size: .85rem;
  line-height: 1.5;
  color: #435861;
}

body.standalone main > ul:only-of-type,
body.standalone main > ul:first-of-type {
  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;
  margin: 10px 0 22px;
  padding-top: 6px;
  padding-bottom: 6px;
  padding-right: 12px;
}

@media print {
  body.standalone main > ul:only-of-type,
  body.standalone main > ul:first-of-type {
    max-height: none;
    overflow: visible;
  }
}
