:root {
  --ink: #1a1a18;
  --ink-soft: #4a4a45;
  --ink-muted: #9ca3af;
  --soft: #4a4a45;
  --muted: #9ca3af;
  --bg: #fafaf8;
  --bg-alt: #f0f0eb;
  --border: #e5e5e0;
  --navy: #1d3557;
  --green: #2e7d52;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --mono: 'DM Mono', 'Courier New', monospace;
}

/* Legacy layout reset: remove old header-era top gaps site-wide */
body #heading,
body #scroll_container,
body #horizontal_scroll,
body .headline-ticker,
body .headline-ticker-1,
body .headline-ticker-2 {
  display: none !important;
}

body #content,
body .content-area,
body .inside-page,
body .home-archive.inside-page {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body section.main-content {
  padding-top: 0 !important;
}

body .inside-page.full-width-1::before {
  content: none !important;
  display: none !important;
  height: 0 !important;
}

body .breadcrumbs {
  margin: 16px 0 12px !important;
}

body.rb-home-modern-enabled,
body.rb-article-modern-enabled,
body.rb-archive-modern-enabled,
body.rb-page-modern-enabled {
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

body.rb-home-modern-enabled #content,
body.rb-article-modern-enabled #content,
body.rb-archive-modern-enabled #content,
body.rb-page-modern-enabled #content,
body.rb-home-modern-enabled .rb-home-modern,
body.rb-article-modern-enabled .rb-article-modern,
body.rb-archive-modern-enabled .rb-archive-modern,
body.rb-page-modern-enabled .rb-page-modern {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.rb-home-modern-enabled .spacer,
body.rb-article-modern-enabled .spacer,
body.rb-archive-modern-enabled .spacer,
body.rb-page-modern-enabled .spacer {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Prevent injected ad wrappers from forcing wide/empty layout blocks on modern pages. */
body.rb-home-modern-enabled .code-block[class*='code-block-'].rb-ad-empty,
body.rb-article-modern-enabled .code-block[class*='code-block-'].rb-ad-empty,
body.rb-archive-modern-enabled .code-block[class*='code-block-'].rb-ad-empty,
body.rb-page-modern-enabled .code-block[class*='code-block-'].rb-ad-empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.rb-home-modern-enabled .code-block > [id^='div-gpt-ad-'],
body.rb-article-modern-enabled .code-block > [id^='div-gpt-ad-'],
body.rb-archive-modern-enabled .code-block > [id^='div-gpt-ad-'],
body.rb-page-modern-enabled .code-block > [id^='div-gpt-ad-'] {
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100%;
}

body.rb-home-modern-enabled article,
body.rb-article-modern-enabled article,
body.rb-archive-modern-enabled article,
body.rb-page-modern-enabled article,
body.rb-home-modern-enabled p,
body.rb-article-modern-enabled p,
body.rb-archive-modern-enabled p,
body.rb-page-modern-enabled p,
body.rb-home-modern-enabled li,
body.rb-article-modern-enabled li,
body.rb-archive-modern-enabled li,
body.rb-page-modern-enabled li,
body.rb-home-modern-enabled input,
body.rb-article-modern-enabled input,
body.rb-archive-modern-enabled input,
body.rb-page-modern-enabled input,
body.rb-home-modern-enabled textarea,
body.rb-article-modern-enabled textarea,
body.rb-archive-modern-enabled textarea,
body.rb-page-modern-enabled textarea,
body.rb-home-modern-enabled select,
body.rb-article-modern-enabled select,
body.rb-archive-modern-enabled select,
body.rb-page-modern-enabled select,
body.rb-home-modern-enabled button,
body.rb-article-modern-enabled button,
body.rb-archive-modern-enabled button,
body.rb-page-modern-enabled button {
  font-family: var(--sans);
}

.rb-global-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.rb-global-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.rb-global-header.scrolled {
  border-color: var(--border);
}

body.admin-bar .rb-global-header {
  top: 32px;
}

.rb-global-nav-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.rb-global-logo {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}

.rb-global-logo span,
.rb-global-footer-logo span {
  color: var(--navy);
}

.rb-global-logo-image,
.rb-global-footer-logo-image {
  display: flex;
  align-items: center;
}

.rb-global-logo-image .custom-logo-link,
.rb-global-footer-logo-image .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.rb-global-logo-image .custom-logo {
  width: auto;
  height: 36px;
  max-width: 220px;
  object-fit: contain;
}

.rb-global-footer-logo-image .custom-logo {
  width: auto;
  height: 32px;
  max-width: 200px;
  object-fit: contain;
}

.rb-global-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rb-global-links li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rb-global-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.rb-global-links a:hover,
.rb-global-links .current-menu-item > a,
.rb-global-links .current_page_item > a {
  color: var(--ink);
}

.rb-global-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.rb-global-search:hover {
  color: var(--ink);
}

.rb-global-search svg {
  width: 18px;
  height: 18px;
}

.rb-global-breadcrumbs {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.rb-global-breadcrumbs .trail-items {
  margin: 0;
  padding: 12px 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.rb-global-breadcrumbs .trail-item,
.rb-global-breadcrumbs .trail-end,
.rb-global-breadcrumbs .trail-item a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  text-decoration: none;
}

.rb-global-breadcrumbs .trail-item a:hover {
  color: #1d3557;
}

/* Shared modern footer used across the site (matches homepage style). */
footer.main.rb-site-footer {
  margin-top: 0 !important;
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 48px 0 32px !important;
}

footer.main.rb-site-footer .rb-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

footer.main.rb-site-footer .rb-footer-logo {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}

footer.main.rb-site-footer .rb-footer-logo span {
  color: var(--navy);
}

footer.main.rb-site-footer .rb-footer-logo-image .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

footer.main.rb-site-footer .rb-footer-logo-image .custom-logo {
  width: auto;
  height: 32px;
  max-width: 220px;
  object-fit: contain;
}

footer.main.rb-site-footer .rb-footer-tagline {
  margin: 0;
  max-width: 260px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  font-weight: 300;
  color: var(--ink-soft);
}

footer.main.rb-site-footer .rb-footer-col-title {
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

footer.main.rb-site-footer .rb-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer.main.rb-site-footer .rb-footer-links li {
  margin-bottom: 10px;
}

footer.main.rb-site-footer .rb-footer-links a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer.main.rb-site-footer .rb-footer-links a:hover {
  color: var(--ink);
}

footer.main.rb-site-footer .rb-footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

footer.main.rb-site-footer .rb-footer-bottom-text,
footer.main.rb-site-footer .rb-footer-standards {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
}

footer.main.rb-site-footer .rb-footer-standards {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

footer.main.rb-site-footer .rb-footer-standards:hover {
  color: var(--navy);
  border-color: var(--navy);
}

@media (max-width: 1200px) {
  .rb-global-container {
    padding: 0 24px;
  }
}

@media (max-width: 960px) {
  body.admin-bar .rb-global-header {
    top: 46px;
  }

  .rb-global-links {
    display: none;
  }

  footer.main.rb-site-footer .rb-footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  footer.main.rb-site-footer .rb-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .rb-global-container {
    padding: 0 16px;
  }

  .rb-global-nav-inner {
    min-height: 56px;
  }

  footer.main.rb-site-footer .rb-footer-standards {
    white-space: normal;
  }
}
