body.RB {
  --rb-paper: #f7f4eb;
  --rb-panel: #fcfaf4;
  --rb-ink: #29332b;
  --rb-green: #283e34;
  --rb-button: #334e40;
  --rb-brown: #804729;
  --rb-rule: #c8c5b5;
  background: var(--rb-paper);
  color: var(--rb-ink);
}

.RB #header.without-bgi { background: var(--rb-paper); border-color: var(--rb-rule); }
/* Use the shared Bootstrap header container on every page, including the homepage. */
.RB #header #logo svg { max-width: 100%; }
.RB #content .bg-light { background-color: var(--rb-paper) !important; }
.RB #primary :is(h1,h2,h3,h4,h5,h6) { color: inherit; }
.RB #primary a:where(:not(.btn,.card,.nav-link,.leaflet-control *)),
.RB .breadcrumbs a { color: var(--rb-brown); }
.RB #primary .card, .RB #primary .list-group-item,
.RB #primary :is(.sub-menu,.sub-sub-menu) { background-color: var(--rb-panel); border-color: var(--rb-rule); }
.RB #primary .sub-menu li { border-color: var(--rb-rule); }
.RB #primary .sub-menu .menu_title, .RB #nav,
.RB #footer, .RB #footer .footer-top, .RB #more .more { background: var(--rb-green); color: var(--rb-paper); }
.RB #footer a, .RB #more .more a { color: var(--rb-paper); }
.RB #primary .sub-menu .current_page_item, .RB #more { background-color: #ede9dd; }
body.RB .btn-primary { background: var(--rb-button); border-color: var(--rb-button); color: white; }
body.RB .btn-primary:is(:hover,:focus) { background: var(--rb-green); border-color: var(--rb-green); }
.RB .search-box input[type="search"] { background:#fffcf5;color:#29332b;border:1px solid #687565 }
.RB .search-box input::placeholder { color:#495648;opacity:1 }
.RB .search-box #search-button { background:none;color:#495648;opacity:1;width:40px;height:40px;right:5px;top:5px;display:grid;place-items:center }
.RB .search-box :focus-visible,.rb-timeline :focus-visible,.rb-next :focus-visible { outline:3px solid #334e40;outline-offset:2px }
.rb-next { background:#ede9dd;padding:28px 0 }
.rb-next h2,.rb-timeline :is(h1,h2,h3,h4),.rb-footer h2 { font-family:"Crimson Text",Georgia,serif;color:inherit }
.rb-next-links,.rb-footer-nav { display:grid;grid-template-columns:repeat(3,1fr);gap:20px }
.rb-next-links a { display:flex;gap:12px;align-items:center;color:#234d3d;text-decoration:underline }
.rb-next-links img { width:84px;height:56px;object-fit:cover }
#footer.rb-footer { padding:30px 0 20px }
.rb-footer-nav nav a { display:block;margin:6px 0;text-decoration:underline }
.rb-footer .rb-brand { font:small-caps 32px Georgia,serif }
.rb-footer h2 { font-size:22px;color:#f7f4eb }
.rb-top { display:inline-block;margin-bottom:18px;text-decoration:underline }
.rb-legal,.rb-legal ul { display:flex;align-items:center;gap:15px;flex-wrap:wrap }
.rb-legal { border-top:1px solid #718077;padding-top:16px;margin-top:22px }
.rb-legal ul { padding:0;margin:0;list-style:none }
#footer a:focus-visible { outline:3px solid #f7f4eb;outline-offset:2px }
.rb-timeline { padding-block:35px }
html:has(.rb-timeline),body.RB:has(.rb-timeline) { display:block;height:auto;min-height:100vh;background:#f7f4eb }
.rb-timeline-intro { display:grid;grid-template-columns:3fr 2fr;gap:5%;align-items:center;margin-bottom:32px }
.rb-timeline-intro img { width:100%;height:auto;max-height:240px;object-fit:cover }
.rb-timeline figcaption { color:#495648;font-size:.85rem }
.rb-timeline a { color:#234d3d;text-decoration:underline;text-underline-offset:.16em }
.rb-timeline h2 { margin:32px 0 16px }
.rb-timeline h3 { margin:28px 0 14px }
.rb-timeline .rb-event { display:grid;grid-template-columns:minmax(120px,18%) 1fr;gap:4%;padding:20px 0;border-top:1px solid #c8c5b5 }
.rb-timeline .rb-event > .wp-block-group__inner-container { display:contents }
.rb-timeline .rb-event > .wp-block-group__inner-container > .wp-block-group { min-width:0;margin-block-start:0 }
.rb-event .rb-date { color:#804729;font-weight:700 }
.rb-event p { max-width:75ch;margin:0 0 10px }
.rb-event figure img { max-width:100%;width:auto;max-height:185px }
.rb-timeline table { width:100%;border-collapse:collapse;background:#fcfaf4 }
.rb-timeline :is(td,th) { border:0;border-bottom:1px solid #c8c5b5;padding:10px;text-align:left;vertical-align:top }
.rb-timeline tbody th { width:18%;color:#804729 }
.rb-timeline thead { background:#283e34;color:#fff }
@media(max-width:700px){.rb-next-links,.rb-footer-nav,.rb-timeline-intro,.rb-timeline .rb-event {grid-template-columns:1fr;gap:10px}.rb-timeline h1{font-size:2.5rem}}


/* Illustrated [subpages] layouts (opt-in). */
.rb-subpage-grid{display:grid;gap:16px;margin:16px 0 28px;grid-template-columns:repeat(2,minmax(0,1fr))}
.rb-subpage-cols-1{grid-template-columns:minmax(0,1fr)}
.rb-subpage-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.rb-subpage-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.rb-subpage-grid a.rb-subpage-card{display:flex;flex-direction:column;min-width:0;background:var(--rb-panel, #fcfaf4);border:1px solid var(--rb-rule, #c8c5b5);border-radius:4px;overflow:hidden;color:var(--rb-brown, #804729);text-decoration:none!important;position:relative;font-weight:400}
.rb-subpage-grid a.rb-subpage-card::after,.rb-subpage-grid a.rb-subpage-card::before{display:none!important;content:none!important}
.rb-subpage-grid a.rb-subpage-card:hover{border-color:var(--rb-green, #283e34);background:#fff;color:var(--rb-green, #283e34)}
.rb-subpage-grid a.rb-subpage-card:focus-visible{outline:2px solid var(--rb-green, #283e34)!important;outline-offset:3px}
.rb-subpage-media{display:block;aspect-ratio:16/9;overflow:hidden;position:relative;margin:0;padding:0;background:#eae5d8}
.rb-subpage-ratio-4-3 .rb-subpage-media{aspect-ratio:4/3}
.rb-subpage-ratio-1-1 .rb-subpage-media{aspect-ratio:1/1}
.rb-subpage-grid .rb-subpage-media img{display:block!important;position:static!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:none!important;min-height:0!important;object-fit:cover!important;margin:0!important;padding:0!important;transform:none!important}
.rb-subpage-body{display:block;padding:12px 14px;min-width:0}
.rb-subpage-title{display:block;font-weight:600;line-height:1.4}
.rb-subpage-description{display:block;color:var(--rb-ink, #29332b);font-size:.9em;line-height:1.5;margin-top:7px}
.rb-subpage-horizontal{grid-template-columns:minmax(0,1fr)}
.rb-subpage-horizontal a.rb-subpage-card{display:grid;grid-template-columns:minmax(0,30%) minmax(0,1fr);align-items:start}
.rb-subpage-horizontal a.rb-subpage-no-image{grid-template-columns:minmax(0,1fr)}
@media(max-width:767px){.rb-subpage-cols-3,.rb-subpage-cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.rb-subpage-grid{grid-template-columns:minmax(0,1fr)}.rb-subpage-horizontal a.rb-subpage-card{grid-template-columns:minmax(0,35%) minmax(0,1fr)}.rb-subpage-horizontal a.rb-subpage-no-image{grid-template-columns:minmax(0,1fr)}}

/* Header and menu logos: browser-loaded SVGs, no PHP HTTP loopback. */
.RB #header #logo a { display: inline-block; max-width: 100%; }
.RB #header #logo .rb-brand-logo { display: block; width: 460px; max-width: 100%; height: auto; max-height: 50px; object-fit: contain; object-position: left center; }
.RB #nav-logo .rb-brand-logo { display: block; width: 300px; max-width: 80vw; height: auto; max-height: 50px; object-fit: contain; margin: 0 auto 50px; }
.RB .rb-logo-fallback { display: none; font: small-caps 28px Georgia, serif; color: var(--rb-ink); }
.RB #nav-logo .rb-logo-fallback { color: var(--rb-paper); margin-bottom: 50px; }
@media (max-width: 767px) { .RB #header #logo .rb-brand-logo { width: 280px; max-height: 40px; } .RB #header #logo .rb-logo-fallback { font-size: 20px; } }


/* Location sidebar: preserve contrast for the scrollspy active item. */
.RB #primary #location_menu .list-group-item.active {
  background-color: var(--rb-green, #283e34) !important;
  border-color: var(--rb-green, #283e34) !important;
  color: #fff !important;
  font-weight: 500;
}
.RB #primary #location_menu .list-group-item:not(.active):hover,
.RB #primary #location_menu .list-group-item:not(.active):focus-visible {
  background-color: #eae6da;
  color: var(--rb-green, #283e34);
}
.RB #location_menu .rb-map-unmapped { color: #804729; font-weight: 600; }
.RB #location_menu .active .rb-map-unmapped { color: #fff; }

/* Compact attribution beneath theme-generated figures. */
.RB figure.figure > figcaption.rb-image-credit {
  position: relative;
  font-size: .75rem;
  line-height: 1.4;
  color: #62675d;
  margin: 3px 0 0;
  padding: 0;
  border: 0;
  text-align: left;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.RB #primary figure.figure > figcaption.rb-image-credit a.figure-caption-link,
.RB figure.figure > figcaption.rb-image-credit a.figure-caption-link {
  color: inherit;
  font-size: inherit;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: .12em;
}
.RB figure.figure > figcaption.rb-image-credit a::after { content: none; }
.RB figure.figure:has(> figcaption.rb-image-credit)::before { pointer-events: none; }
.RB figure.figure:has(> figcaption.rb-image-credit) > .figure-img { margin-bottom: 0; }

/* Full document canvas: allow long directories and articles to grow. */
html:has(> body.RB) {
  height: auto;
  min-height: 100%;
  background-color: #f7f4eb;
}
body.RB {
  height: auto;
  min-height: 100vh;
}

/* Roman Olive quotation palette (including Gutenberg quotes). */
.RB blockquote {
  background-color: #E5E7DB;
  border-left-color: #777E59;
  color: #454B3D;
}
.RB blockquote::before { color: #777E59; }
.RB blockquote cite, .RB blockquote span { color: #454B3D; }

/* Individual tribe pages: article and automatic section jump menu. */
.rb-tribe-image:empty { display: none; }
.rb-tribe-content, .rb-tribe-image { min-width: 0; }
.rb-tribe-content :is(h2,h3)[id] { scroll-margin-top: 100px; }
.rb-tribe-jump { margin-bottom: 24px; }
.rb-tribe-jump-title { font-weight: 600; font-size: 1.05rem; margin-bottom: 12px; }
.rb-tribe-jump .list-group { margin: 0; padding: 0; }
.rb-tribe-jump .list-group-item { padding: 0; }
.rb-tribe-jump .list-group-item a { display: block; padding: 10px 14px; text-decoration: none; overflow-wrap: anywhere; }
.rb-tribe-jump .rb-tribe-subheading a { padding-left: 28px; font-size: .9em; }
.rb-tribe-jump .list-group-item a:hover, .rb-tribe-jump .list-group-item a:focus-visible { background: #eae6da; text-decoration: underline; }
@media (min-width: 992px) {
  .rb-tribe-has-menu { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 30px; }
  .rb-tribe-has-menu .rb-tribe-image { grid-column: 1; grid-row: 1; }
  .rb-tribe-has-menu .rb-tribe-content { grid-column: 1; grid-row: 2; }
  .rb-tribe-sidebar { grid-column: 2; grid-row: 1 / 3; min-width: 0; }
  .rb-tribe-jump { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; }
}

/* Travel repeater: align photo credits with the card body, not the image edge. */
.RB .rb-travel-card > figure.figure > figcaption.rb-image-credit {
  padding: 0 1.25rem;
  margin: .375rem 0 .25rem;
}

/* Shared editorial heading typography; keep homepage display sizing and UI labels. */
.RB :is(h1,h2,h3,h4):not(.rbh *) {
  font-family: "Crimson Text", Georgia, serif;
  font-weight: 400;
}
.RB #content h1:not(.rbh *) { font-size: clamp(32px, 3.5vw, 42px); line-height: 1.15; }
.RB #content h2:not(.rbh *) { font-size: clamp(26px, 2.8vw, 32px); line-height: 1.2; }
.RB #content h3:not(.rbh *) { font-size: clamp(22px, 2.3vw, 25px); line-height: 1.25; }
.RB #content h4:not(.rbh *, .RIB) { font-size: 21px; line-height: 1.3; }
/* Preserve specialist inscription and footer sizing. */

/* Align the first breadcrumb with the shared header logo/content grid. */
.RB .breadcrumb { padding-left: 0 !important; margin-left: 0; }
body.RB nav[aria-label="breadcrumb"] ol.breadcrumb > li.breadcrumb-item:first-child,
body.RB nav[aria-label="breadcrumb"] ol.breadcrumb > li.breadcrumb-item:first-child > a { padding-left: 0 !important; margin-left: 0 !important; }
