/* Red, Black & Green Book (combined Directory + Gallery); its icon is images/rbg-book.svg (.da-icon, style.css) */
.rbg-hero .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Tokens (DESIGN.md 4.2) ---- */
:root {
  --rbg-red: var(--band-red);
  --rbg-black: var(--band-black);
  --rbg-green: var(--band-green);
  --rbg-gold: var(--band-text);
  --rbg-paper: var(--field);
  --rbg-ink: var(--ink-base);
  --rbg-ink-soft: var(--ink-soft-base);
  --rbg-focus: #f5c451;
  --badge-unverified-bg: #fbeccb; --badge-unverified-ink: #7a5a12;
  --badge-active-bg: #e3efe5;     --badge-active-ink: #1f4a2c;
  --badge-closed-bg: #f3dcd9;     --badge-closed-ink: #8f2a23;
  --badge-member-bg: var(--rbg-black); --badge-member-ink: var(--rbg-gold);
  --marker-ring: #ffffff;
}

.rbg-skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--rbg-black); color: var(--rbg-gold); padding: 10px 14px; border-radius: 6px; }
.rbg-skip:focus { top: 8px; outline: 3px solid var(--rbg-focus); outline-offset: 2px; }

/* Focus: gold on the bands, black on paper */
.rbg-browse a:focus-visible, .rbg-browse button:focus-visible, .rbg-about a:focus-visible,
.rbg-card a:focus-visible, .rbg-tile:focus-visible { outline: 3px solid var(--rbg-black); outline-offset: 2px; }
.rbg-search :focus-visible, .rbg-hero .btn:focus-visible { outline: 3px solid var(--rbg-focus); outline-offset: 2px; }

/* Search block in the hero */
.rbg-search { margin: 22px 0 8px; display: grid; gap: 12px; max-width: 720px; }
.rbg-search-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.rbg-search input[type="search"] { flex: 1 1 220px; min-width: 0; min-height: 44px; padding: 8px 12px; border-radius: 6px; border: 2px solid var(--rbg-gold); background: var(--rbg-paper); color: var(--rbg-ink); font: inherit; }
.rbg-search select { min-height: 44px; max-width: 100%; padding: 8px 10px; border-radius: 6px; border: 2px solid var(--rbg-gold); background: var(--rbg-paper); color: var(--rbg-ink); font: inherit; }
.rbg-where label, .rbg-check { color: var(--band-sub); font-weight: 600; }
.rbg-check { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.rbg-check input { width: 20px; height: 20px; }

/* Group tiles */
.rbg-section { margin: 0 0 40px; }
.rbg-tiles { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .rbg-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .rbg-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rbg-tile { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "i c" "l l"; gap: 6px 10px; align-items: center; min-height: 110px; padding: 14px; border-radius: 10px; text-decoration: none; color: var(--rbg-gold); }
.rbg-tile .rbg-icon { grid-area: i; width: 32px; height: 32px; }
.rbg-tile-count { grid-area: c; justify-self: end; font-weight: 700; font-size: 1.25rem; color: #fff; }
.rbg-tile-label { grid-area: l; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.rbg-tile:hover { filter: brightness(1.12); }
.rbg-band-red { background: var(--rbg-red); color: var(--rbg-gold); }
.rbg-band-black { background: var(--rbg-black); color: var(--rbg-gold); }
.rbg-band-green { background: var(--rbg-green); color: var(--rbg-gold); }

/* Group page */
.rbg-grouphead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; margin-bottom: 12px; }
.rbg-grouphead .section-title { margin: 0; flex: 1 1 260px; }
.rbg-back, .rbg-more { color: var(--rbg-ink); font-weight: 600; text-decoration: underline; }
.rbg-jump { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 22px; color: var(--rbg-ink-soft); }
.rbg-jump a { color: var(--rbg-ink); text-decoration: underline; }
.rbg-row { margin: 0 0 34px; padding-top: 16px; border-top: 3px solid var(--rbg-black); content-visibility: auto; contain-intrinsic-size: auto 420px; }
.rbg-row-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.rbg-row-head h2 { margin: 0; font-size: 1.35rem; }
.rbg-showall { min-height: 44px; padding: 8px 16px; border-radius: 6px; border: 2px solid var(--rbg-black); background: transparent; color: var(--rbg-ink); font: inherit; font-weight: 600; cursor: pointer; }
.rbg-showall:hover { background: var(--rbg-black); color: var(--rbg-gold); }

/* Cards: 4 columns >=960, 2 >=480, 1 below. Wrapping grid, never horizontal scroll */
.rbg-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 480px) { .rbg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .rbg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rbg-card { background: var(--rbg-paper); color: var(--rbg-ink); border: 1px solid var(--border-base); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.rbg-card-thumb { height: 64px; display: flex; align-items: center; justify-content: center; background: var(--field-dim); }
.rbg-card-thumb .rbg-icon { width: 30px; height: 30px; }
.rbg-card-body { padding: 12px 14px 14px; display: grid; gap: 4px; }
.rbg-card-body p { margin: 0; }
.rbg-card-name { margin: 0; font-size: 1.05rem; line-height: 1.25; overflow-wrap: anywhere; }
.rbg-card-name a { color: var(--rbg-ink); text-decoration: underline; text-underline-offset: 2px; }
.rbg-card-sub, .rbg-card-where, .rbg-card-contact { color: var(--rbg-ink-soft); font-size: 0.9rem; overflow-wrap: anywhere; }
.rbg-icon { fill: none; stroke: currentColor; }

/* Pictures (rbg-pic.js): a person's photo fills its frame; a logo or place picture is never cropped (contain, on
   a light padded square); no picture is a red, black or green tile with initials or the group's icon. */
.rbg-pic { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rbg-pic img { display: block; width: 100%; height: 100%; }
.rbg-pic-cover img { object-fit: cover; }
.rbg-pic-contain { background: #f7f3ec; padding: 12px; box-sizing: border-box; }
.rbg-pic-contain img { object-fit: contain; }
.rbg-pic-tile .rbg-icon { width: 34%; height: 34%; max-width: 44px; max-height: 44px; }
.rbg-pic-initials { font: 800 clamp(1.4rem, 5vw, 2.2rem)/1 system-ui, sans-serif; letter-spacing: 0.04em; }
.rbg-card-media { display: block; color: inherit; }
.rbg-card-pic { aspect-ratio: 16 / 10; width: 100%; }
.rbg-card-member .rbg-card-pic.rbg-pic-cover img { object-position: 50% 25%; }
.rbg-pic-strip { display: flex; justify-content: center; gap: 6px; margin-top: 6px; }
.rbg-pic-strip img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border-base); }

/* Badges: always text, never colour alone */
.rbg-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.rbg-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.rbg-badge-unverified { background: var(--badge-unverified-bg); color: var(--badge-unverified-ink); }
.rbg-badge-active { background: var(--badge-active-bg); color: var(--badge-active-ink); }
.rbg-badge-closed { background: var(--badge-closed-bg); color: var(--badge-closed-ink); }
.rbg-badge-member { background: var(--badge-member-bg); color: var(--badge-member-ink); }
.rbg-badge-open { background: var(--badge-active-bg); color: var(--badge-active-ink); }
.rbg-badge-hours { background: var(--field-dim, #dcc096); color: #241c14; }

/* States */
.rbg-state { background: var(--rbg-paper); color: var(--rbg-ink); border: 2px dashed var(--rbg-black); border-radius: 10px; padding: 20px; margin: 16px 0; }
.rbg-state-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.rbg-skeleton .rbg-card-skel { min-height: 130px; }
.rbg-skel-line { height: 12px; border-radius: 6px; background: var(--field-dim); margin: 6px 0; }
.rbg-skel-line.short { width: 60%; }
@media (prefers-reduced-motion: no-preference) {
  .rbg-skeleton .rbg-skel-line, .rbg-skeleton .rbg-card-thumb { animation: rbg-pulse 1.4s ease-in-out infinite; }
  @keyframes rbg-pulse { 50% { opacity: 0.45; } }
}

.rbg-about { padding: 8px 0 40px; }
.rbg-about-links a { color: var(--rbg-ink); text-decoration: underline; font-weight: 600; }
.rbg-suggest { margin-top: 24px; }

/* The Book sits on the site's colored bands (green here), so link and button text must use the band colors, not the light-page ink. */
.rbg-browse .rbg-row { background: transparent; }
.rbg-browse .rbg-jump, .rbg-browse .rbg-jump span { color: var(--band-sub, #fff); }
.rbg-browse .rbg-jump a, .rbg-browse .rbg-showall { color: var(--band-link, #f5c451); }
.rbg-browse .rbg-showall { border-color: var(--band-link, #f5c451); }
.rbg-browse .rbg-showall:hover { background: var(--band-link, #f5c451); color: var(--band-black, #161210); }

/* ---- Globe landing ---- */
.rbg-hero .hero-sub { max-width: 46rem; }
.rbg-searchbar { display: flex; gap: 10px; align-items: flex-start; flex-wrap: nowrap; max-width: 720px; margin: 22px auto 8px; }
.rbg-searchbar .rbg-search-main { flex: 1 1 auto; min-width: 0; margin: 0; max-width: none; }
.rbg-near-me { flex: 0 0 auto; min-height: 44px; white-space: nowrap; }
@media (max-width: 520px) {
  .rbg-searchbar .rbg-search-row .btn { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .rbg-searchbar .rbg-search-row .btn:focus-visible { position: static; width: auto; height: auto; margin: 0; padding: revert; overflow: visible; clip: auto; border: revert; }
}
.rbg-search-filters { margin-top: 16px; }
.rbg-globe-skip { margin: 8px 0; }
.rbg-globe-skip a { color: var(--band-link); text-decoration: underline; }
.rbg-globe-wrap { position: relative; width: min(100%, 640px); aspect-ratio: 1 / 1; margin: 8px auto; background: var(--band-black); border-radius: 50%; contain: layout paint; }
.rbg-globe-wrap canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; border-radius: 50%; }
.rbg-globe-wrap canvas:active { cursor: grabbing; }
.rbg-globe-wrap canvas:focus-visible { outline: 3px solid var(--rbg-focus); outline-offset: -3px; }
.rbg-globe-zoom { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 4px auto 8px; }
.rbg-globe-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--rbg-focus); background: var(--band-black); color: var(--band-text); font: 700 1.4rem/1 system-ui, sans-serif; cursor: pointer; }
.rbg-globe-reset { width: auto; min-width: 44px; padding: 0 16px; border-radius: 22px; font-size: 1rem; font-weight: 600; }
.rbg-globe-btn:hover { background: var(--band-green); }
.rbg-globe-btn:focus-visible, .rbg-globe-close:focus-visible, .rbg-globe-skip a:focus-visible { outline: 3px solid var(--rbg-focus); outline-offset: 2px; }
.rbg-globe-hint, .rbg-globe-note { color: var(--band-sub); margin: 6px 0; max-width: 46rem; }
.rbg-globe-note:empty { display: none; }
.rbg-globe-note a { color: var(--band-link); text-decoration: underline; }
.rbg-globe-panel { max-width: 560px; margin: 12px 0; padding: 14px 16px; background: var(--rbg-paper); color: var(--rbg-ink); border-radius: 10px; border: 3px solid var(--rbg-gold); }
.rbg-globe-panel[hidden] { display: none; }
.rbg-globe-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.rbg-globe-panel-title { margin: 0; font-size: 1.1rem; font-weight: 700; }
.rbg-globe-close { min-width: 44px; min-height: 44px; border: 0; background: transparent; font-size: 1.6rem; cursor: pointer; color: var(--rbg-ink); }
.rbg-globe-list { margin: 8px 0; padding-left: 1.1rem; }
.rbg-globe-list a { color: var(--rbg-ink); text-decoration: underline; font-weight: 600; }
/* Upcoming events on the globe (evpts.json): their own section under the listings, or alone */
.rbg-globe-events-wrap { margin-top: 12px; padding-top: 10px; border-top: 2px solid #f5c451; }
.rbg-globe-subhead { margin: 0 0 4px; font-size: 1rem; }
.rbg-globe-events li { margin-bottom: 4px; }
.rbg-globe-meta { color: var(--rbg-ink-soft); }
.rbg-globe-panel .btn-ghost { color: var(--rbg-ink); border-color: var(--rbg-ink); }
.rbg-globe-text { max-width: 560px; margin: 8px 0 12px; color: var(--band-sub); }
.rbg-globe-text summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.rbg-globe-text summary:focus-visible { outline: 3px solid var(--rbg-focus); outline-offset: 2px; }
.rbg-globe-text ul { columns: 2; margin: 6px 0; padding-left: 1.1rem; }
.rbg-globe-wrap[data-failed] { display: none; }
.rbg-globe-wrap[data-failed] ~ .rbg-globe-hint { display: none; }
.rbg-globe-wrap[data-failed] ~ .rbg-globe-zoom { display: none; }
.rbg-back-globe { margin: 0 0 8px; font-size: 0.95rem; }
.rbg-back-globe[hidden] { display: none; }
.rbg-back-globe button { min-width: 32px; min-height: 32px; border: 0; background: none; color: inherit; font-size: 1.2rem; cursor: pointer; }

/* Amenities filter (js/rbg-amenities.js), shared with the map page */
.rbg-amen { border: 2px solid var(--rbg-gold, #c9a227); border-radius: 8px; background: var(--rbg-paper, var(--field)); color: var(--rbg-ink, var(--ink)); }
.rbg-amen > summary { min-height: 44px; display: flex; align-items: center; gap: 6px; padding: 6px 12px; cursor: pointer; font-weight: 600; }
.rbg-amen-count { font-weight: 400; }
.rbg-amen-body { padding: 4px 12px 12px; display: grid; gap: 10px; }
.rbg-amen-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.rbg-amen-group legend { font-weight: 600; font-size: 0.9rem; padding: 0; margin-bottom: 4px; }
.rbg-amen-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rbg-amen-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 10px; font: inherit; font-size: 0.95rem; color: #241c14; background: var(--field); border: 2px solid var(--rbg-black, #161210); border-radius: 22px; cursor: pointer; }
.rbg-amen-chip[aria-pressed="true"] { background: var(--rbg-black, #161210); color: var(--rbg-gold, #f1d27a); }
.rbg-amen-mark { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.03em; opacity: 0.8; }
.rbg-amen-cap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rbg-amen-cap label { font-weight: 600; }
.rbg-amen-cap input { width: 7em; min-height: 44px; padding: 6px 8px; font: inherit; border: 2px solid var(--rbg-black, #161210); border-radius: 6px; background: var(--field); color: #241c14; }
.rbg-amen-hint, .rbg-amen-status { margin: 0; font-size: 0.9rem; }
.rbg-amen-clear { justify-self: start; min-height: 44px; padding: 4px 12px; font: inherit; font-weight: 600; background: none; border: 0; text-decoration: underline; color: inherit; cursor: pointer; }
.rbg-amen-clear[hidden] { display: none; }
.rbg-amen button:focus-visible, .rbg-amen input:focus-visible, .rbg-amen > summary:focus-visible { outline: 3px solid var(--rbg-focus, #f5c451); outline-offset: 2px; box-shadow: 0 0 0 5px #161210; }
.rbg-search .rbg-amen-host { max-width: 720px; }
/* Opening hours filter (rbg-hours.js mount): the amenities panel's look */
.rbg-open-choices { display: grid; gap: 2px; }
.rbg-open-choice { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; cursor: pointer; }
.rbg-open-choice input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border: 2px solid #161210; border-radius: 50%; background: var(--field-dim, #dcc096); cursor: pointer; }
.rbg-open-choice input[type="checkbox"] { border-radius: 5px; }
.rbg-open-choice input:checked { background: #161210; box-shadow: inset 0 0 0 4px var(--field-dim, #dcc096); }
.rbg-open-choice input[type="checkbox"]:checked { box-shadow: inset 0 0 0 3px var(--field-dim, #dcc096); }
.rbg-open-at { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.rbg-open-at[hidden] { display: none; }
.rbg-open-at label { font-weight: 600; }
.rbg-open-at input { min-height: 44px; padding: 6px 8px; font: inherit; border: 2px solid var(--rbg-black, #161210); border-radius: 6px; background: var(--field); color: #241c14; }
.rbg-open input:focus-visible { outline: 3px solid var(--rbg-focus, #f5c451); outline-offset: 2px; box-shadow: 0 0 0 5px #161210; }
.rbg-hero .rbg-amen { color: var(--ink-base, #241c14); }

/* Desktop: the globe landing is one centered column. The tagline, the skip
   link, the globe hint/notes, "Listings by country" and the filters under
   the globe all center on the globe (style.css left-aligns section <p> text
   at this width, so these rules restate center for the hero). */
@media (min-width: 900px) {
  .rbg-hero .hero-sub,
  .rbg-hero .rbg-globe-skip,
  .rbg-hero .rbg-globe-hint,
  .rbg-hero .rbg-globe-note { text-align: center; margin-left: auto; margin-right: auto; }
  .rbg-hero .rbg-globe-panel { margin-left: auto; margin-right: auto; text-align: left; }
  .rbg-hero .rbg-globe-text { margin-left: auto; margin-right: auto; }
  .rbg-hero .rbg-globe-text summary { justify-content: center; }
  .rbg-hero .rbg-globe-text ul { text-align: left; }
  .rbg-hero .rbg-search-filters { margin-left: auto; margin-right: auto; justify-items: center; }
  .rbg-hero .rbg-search-filters .rbg-search-row { justify-content: center; }
  .rbg-hero .rbg-amen-host { width: 100%; text-align: left; }
  .rbg-about .rbg-about-links { text-align: center; }
}

/* Entry page: "Events here" (the venue's events, upcoming then past) and "In the news" (DESIGN-links.md). */
.rbg-entry-sub { font-size: 0.95rem; margin: 10px 0 4px; }
.rbg-entry-past > summary { cursor: pointer; font-weight: 600; }
.rbg-entry-past[open] > summary { margin-bottom: 6px; }
.rbg-entry-timeline li, .rbg-entry-news li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.rbg-entry-when { font-size: 0.85rem; opacity: 0.8; }
.rbg-entry-timeline .rbg-entry-when { min-width: 7.5em; }
.rbg-entry-timeline, .rbg-entry-news { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; }

/* Offerings (js/rbg-offerings.js, DESIGN-links.md): tan cards with dark ink on the bands, on the entry page
   ("Ways to support" / "Offerings") and the landing's "What's poppin'". */
.rbg-offer { --ink: var(--card-ink); --ink-soft: var(--card-ink-soft); display: flex; flex-direction: column; gap: 8px; min-width: 0;
  padding: 14px 16px 16px; border: 1px solid var(--card-rule); border-radius: 12px; background: var(--card-bg); color: var(--card-ink); text-align: left; }
.rbg-offer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; margin: 0; font-size: 0.85rem; }
.rbg-offer-type { font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--card-accent); }
.rbg-offer-when { font-weight: 700; color: var(--card-ink-soft); }
.rbg-offer-when.is-last { color: var(--card-accent); }
.rbg-offer .rbg-offer-title { margin: 0; font-size: 1.1rem; line-height: 1.25; color: var(--card-ink); overflow-wrap: anywhere; }
.rbg-offer .rbg-offer-org, .rbg-offer .rbg-offer-desc { margin: 0; font-size: 0.95rem; color: var(--card-ink-soft); overflow-wrap: anywhere; }
.rbg-offer .rbg-offer-org a { color: var(--card-accent); font-weight: 700; }
.rbg-offer .rbg-offer-go { align-self: flex-start; margin-top: auto; padding: 9px 18px; background: var(--card-ink); color: var(--band-text); text-decoration: none; }
.rbg-offer .rbg-offer-go:hover { background: var(--band-red); color: var(--band-text); }
.rbg-offer a:focus-visible { outline: 3px solid var(--card-ink); outline-offset: 2px; box-shadow: 0 0 0 5px var(--band-text); }
.rbg-offer-list { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .rbg-offer-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.rbg-poppin { padding: 0; }
.rbg-poppin .section-title { margin: 0 0 8px; text-align: center; }
.rbg-poppin .rbg-poppin-intro { max-width: 40rem; margin: 0 auto 22px; text-align: center; color: var(--band-text); }
.rbg-poppin-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .rbg-poppin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .rbg-poppin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rbg-poppin .rbg-poppin-actions { margin: 20px 0 0; text-align: center; }
.rbg-poppin .rbg-showall { color: var(--band-link); border-color: var(--band-link); }
.rbg-poppin .rbg-showall:hover { background: var(--band-link); color: var(--band-black); }
.rbg-poppin .rbg-showall:focus-visible { outline: 3px solid var(--rbg-focus); outline-offset: 2px; }
.rbg-poppin-empty { margin: 0 auto; text-align: center; color: var(--band-sub); }
.rbg-moved { margin: 0 0 40px; text-align: center; color: var(--band-sub); }
.rbg-moved a { color: var(--band-link); text-decoration: underline; }
/* !important: the desktop reading-cap rule (style.css) centres every section p with auto margins !important */
.rbg-offer > * { margin-left: 0 !important; margin-right: 0 !important; text-align: left !important; max-width: none; }
.rbg-offer > .rbg-offer-top { align-self: stretch; }
.rbg-poppin .rbg-poppin-intro { margin-left: auto !important; margin-right: auto !important; text-align: center !important; }

/* Chapters (an organization whose pages are its walks, archive, ...): the entry page's contents panel, beside the
   picture (under it on a phone), on the chapter's page and every page in it; and the Book's chapter label and view. */
.rbg-chapter-toc { margin: 16px 0 0; padding: 14px 16px 16px; max-width: 320px; border: 1px solid var(--card-rule); border-radius: 12px;
  background: var(--card-bg); color: var(--card-ink); text-align: left; box-sizing: border-box; }
.rbg-chapter-toc h2 { margin: 0 0 8px; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--card-accent); text-align: center; }
.rbg-chapter-pages { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rbg-chapter-pages li.rbg-chapter-head { border-bottom: 1px solid var(--card-rule); padding-bottom: 6px; margin-bottom: 2px; font-weight: 700; }
.rbg-chapter-pages li:not(.rbg-chapter-head) { padding-left: 14px; }
.rbg-chapter-link { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 2px 8px 2px 2px; border-radius: 8px; color: var(--card-ink); text-decoration: none; overflow-wrap: anywhere; }
a.rbg-chapter-link:hover { background: var(--surface-dim); }
a.rbg-chapter-link:hover .rbg-chapter-name { text-decoration: underline; }
a.rbg-chapter-link:focus-visible { outline: 3px solid var(--card-ink); outline-offset: 2px; box-shadow: 0 0 0 5px var(--band-text); }
.rbg-chapter-pages li.is-current .rbg-chapter-link { background: var(--card-ink); color: var(--band-text); font-weight: 700; }
.rbg-chapter-pic { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 6px; overflow: hidden; }
.rbg-chapter-pic img { width: 100%; height: 100%; }
.rbg-chapter-pic.rbg-pic-contain { padding: 3px; }
.rbg-chapter-pic.rbg-pic-tile .rbg-icon { width: 20px; height: 20px; }
.rbg-chapter-toc .rbg-chapter-more { margin: 10px 0 0 !important; text-align: center !important; font-size: 0.92rem; }
.rbg-chapter-toc .rbg-chapter-more a { color: var(--card-accent); font-weight: 700; }
.rbg-card-chapter { margin: 2px 0 0; font-size: 0.85rem; font-weight: 600; overflow-wrap: anywhere; }
.rbg-card-chapter a { color: inherit; }
.rbg-chapter-intro { text-align: center; margin: 0 0 16px; }
.rbg-open > summary { flex-wrap: wrap; }
