body.rb-home-modern-enabled .headline-ticker,
body.rb-home-modern-enabled #heading,
body.rb-home-modern-enabled footer.main:not(.rb-site-footer),
body.rb-home-modern-enabled .copyright,
body.rb-home-modern-enabled .scroll-top-wrapper {
  display: none !important;
}

body.rb-home-modern-enabled {
  margin: 0;
  background: #fafaf8;
  color: #1a1a18;
}

body.rb-home-modern-enabled .rb-home-modern {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

.rb-home-modern,
.rb-home-modern * {
  box-sizing: border-box;
}

.rb-home-modern a {
  color: inherit;
  text-decoration: none;
}

.rb-home-modern h1,
.rb-home-modern h2,
.rb-home-modern h3,
.rb-home-modern h4,
.rb-home-modern h5,
.rb-home-modern h6,
.rb-home-modern p {
  margin: 0;
}

.rb-home-modern img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.rb-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.rb-category-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 500;
}

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

.rb-site-nav.scrolled {
  border-color: var(--border);
}

body.admin-bar .rb-site-nav {
  top: 32px;
}

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

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

.rb-nav-logo span {
  color: var(--navy);
}

.rb-nav-logo-image {
  display: flex;
  align-items: center;
  min-height: 42px;
}

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

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

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

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

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

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

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

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

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

.rb-hero {
  border-bottom: 1px solid var(--border);
  padding: 40px 0 48px;
}

.rb-hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
}

.rb-hero-lead-tag {
  margin-bottom: 16px;
}

.rb-hero-title {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.rb-hero-title a {
  color: inherit;
  transition: color 0.2s ease;
}

.rb-hero-title a:hover {
  color: var(--navy);
}

.rb-hero-dek {
  margin: 0 0 24px;
  max-width: 560px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-soft);
}

.rb-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.rb-hero-meta .dot {
  color: var(--border);
}

.rb-hero-read-link {
  display: inline-block;
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 1px;
  transition: opacity 0.2s ease;
}

.rb-hero-read-link:hover {
  opacity: 0.75;
}

.rb-hero-image-wrap {
  display: block;
  margin-top: 32px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
}

.rb-hero-image-wrap img {
  transition: transform 0.4s ease;
}

.rb-hero-image-wrap:hover img {
  transform: scale(1.03);
}

.rb-hero-sidebar {
  border-left: 1px solid var(--border);
  padding-left: 40px;
}

.rb-hero-sidebar-title {
  margin-bottom: 24px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.rb-sidebar-story {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.rb-sidebar-story:first-of-type {
  padding-top: 0;
}

.rb-sidebar-story-num {
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: #ccccbf;
}

.rb-sidebar-story-title {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  transition: color 0.2s ease;
}

.rb-sidebar-story:hover .rb-sidebar-story-title {
  color: var(--navy);
}

.rb-ad-zone {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.rb-ad-label {
  margin-bottom: 8px;
  text-align: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.rb-ad-placeholder {
  min-height: 90px;
  max-width: 728px;
  margin: 0 auto;
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
}

.rb-ad-placeholder a,
.rb-ad-placeholder img,
.rb-ad-script {
  display: block;
  width: 100%;
  max-width: 100%;
}

.rb-ad-placeholder img {
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

.rb-ad-placeholder-text {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.rb-research-strip {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.rb-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.rb-section-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.rb-section-link {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.rb-section-link:hover {
  color: var(--navy);
  border-color: var(--navy);
}

.rb-research-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.rb-research-card {
  padding: 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease;
}

.rb-research-card:hover {
  border-color: var(--navy);
}

.rb-research-card-tag {
  margin-bottom: 12px;
}

.rb-research-card-title {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.rb-research-card-meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-muted);
}

.rb-main-grid-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.rb-grid-row-1 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.rb-feature-card {
  display: block;
}

.rb-feature-card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-alt);
  margin-bottom: 20px;
}

.rb-feature-card-image img {
  transition: transform 0.35s ease;
}

.rb-feature-card:hover .rb-feature-card-image img {
  transform: scale(1.03);
}

.rb-feature-card-tag {
  margin-bottom: 10px;
}

.rb-feature-card-title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  transition: color 0.2s ease;
}

.rb-feature-card:hover .rb-feature-card-title {
  color: var(--navy);
}

.rb-feature-card-excerpt {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  font-weight: 300;
}

.rb-card-meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rb-ad-in-grid {
  padding: 20px 0;
  margin: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.rb-grid-row-2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.rb-secondary-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  align-items: start;
}

.rb-secondary-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
}

.rb-secondary-card-tag {
  margin-bottom: 6px;
}

.rb-secondary-card-title {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  transition: color 0.2s ease;
}

.rb-secondary-card:hover .rb-secondary-card-title {
  color: var(--navy);
}

.rb-protocols-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.rb-protocols-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--navy);
}

.rb-protocols-section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
}

.rb-protocols-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: var(--border);
}

.rb-protocol-card {
  display: block;
  background: var(--bg);
  padding: 32px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.rb-protocol-card:hover {
  background: var(--bg-alt);
}

.rb-protocol-num {
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--border);
}

.rb-protocol-title {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.rb-protocol-excerpt {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 300;
}

.rb-site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 0;
}

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

.rb-footer-logo {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

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

.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);
}

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

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

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

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

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

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

.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;
}

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

.rb-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 110px;
  background: linear-gradient(135deg, #e8e8e3 0%, #d4d4cc 100%);
  position: relative;
}

.rb-img-placeholder::before {
  content: '';
  width: 44px;
  height: 44px;
  border: 1px solid rgba(26, 26, 24, 0.25);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

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

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

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

  .rb-hero {
    padding-top: 30px;
  }

  .rb-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .rb-hero-sidebar {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 32px;
  }

  .rb-research-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rb-grid-row-1,
  .rb-grid-row-2,
  .rb-protocols-grid,
  .rb-footer-grid {
    grid-template-columns: 1fr;
  }

  .rb-grid-row-1 {
    gap: 32px;
  }

  .rb-grid-row-2 {
    gap: 20px;
    padding-top: 32px;
  }

  .rb-protocol-card {
    padding: 24px;
  }

  .rb-footer-grid {
    gap: 30px;
  }

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

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

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

  .rb-hero-title {
    font-size: 30px;
  }

  .rb-hero-dek {
    font-size: 16px;
  }

  .rb-secondary-card {
    grid-template-columns: 84px 1fr;
    gap: 12px;
  }

  .rb-section-header,
  .rb-protocols-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .rb-section-link,
  .rb-footer-standards {
    white-space: normal;
  }
}
