/*
Theme Name:  RB Studio
Theme URI:   https://richardbarrett.ca
Author:      Richard Barrett / HyperGraphik Design Inc.
Author URI:  https://hypergraphik.com
Description: A hybrid WordPress theme for richardbarrett.ca. Light grey canvas, white modular cards with rounded corners, #FFAA00 amber accent. Compatible with Pagelayer page builder.
Version:     1.9.1
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rb-studio
Tags:        portfolio, blog, custom-colors, custom-logo, full-site-editing, block-patterns
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Colours */
  --rb-bg:          #F2F2F5;
  --rb-white:       #FFFFFF;
  --rb-card:        #FFFFFF;
  --rb-card-alt:    #F8F8FB;
  --rb-border:      #E6E6EA;
  --rb-grey-light:  #BBBBBB;
  --rb-grey-mid:    #999999;
  --rb-grey-dark:   #666666;
  --rb-dark:        #1A1A1A;
  --rb-amber:       #FFAA00;
  --rb-amber-dark:  #CC8800;
  --rb-amber-light: #FFF4D6;
  --rb-text:        #222222;

  /* Typography */
  --rb-font-display: 'Poppins', sans-serif;
  --rb-font-body:    'Open Sans', sans-serif;
  --rb-font-mono:    'Roboto Condensed', sans-serif;

  /* Spacing */
  --rb-pad:     44px;
  --rb-gutter:  18px;
  --rb-radius:  16px;
  --rb-radius-sm: 10px;
  --rb-radius-lg: 20px;

  /* Shadows */
  --rb-shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --rb-shadow:    0 4px 20px rgba(0,0,0,.08);
  --rb-shadow-lg: 0 8px 40px rgba(0,0,0,.12);

  /* Transitions */
  --rb-ease: 0.22s cubic-bezier(.4,0,.2,1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--rb-bg);
  color: var(--rb-text);
  font-family: var(--rb-font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--rb-amber-dark); text-decoration: none; transition: color var(--rb-ease); }
a:hover { color: var(--rb-amber); }

/* ============================================================
   TYPOGRAPHY SCALE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--rb-font-display);
  line-height: 1.15;
  color: var(--rb-dark);
  font-weight: 700;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }
h6 { font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }

p { margin-bottom: 1.2em; color: var(--rb-grey-dark); }
p:last-child { margin-bottom: 0; }

.rb-label {
  font-family: var(--rb-font-mono);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rb-grey-mid);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.rb-container {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: var(--rb-pad);
}

/* ── Pagelayer row alignment ────────────────────────────────
   Constrains Pagelayer's inner row container to the same
   max-width as the nav card and all case study sections.
   Works for any row with Content Width set to "Fixed".     */
.pl-row-cont {
  max-width: 1400px !important;
  margin-inline: auto !important;
}
/* Full-width Pagelayer sections get the same side padding  */
.rb-pagelayer-page .plp-row {
  padding-inline: var(--rb-pad);
}

.rb-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--rb-gutter); }
.rb-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--rb-gutter); }
.rb-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--rb-gutter); }

/* ============================================================
   CARD — the core modular unit
   ============================================================ */
.rb-card {
  background: var(--rb-card);
  border-radius: var(--rb-radius);
  border: 1px solid var(--rb-border);
  box-shadow: var(--rb-shadow-sm);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--rb-ease), transform var(--rb-ease);
}
.rb-card:hover { box-shadow: var(--rb-shadow); transform: translateY(-2px); }

.rb-card--alt { background: var(--rb-card-alt); }
.rb-card--dark { background: var(--rb-dark); color: var(--rb-white); border-color: var(--rb-dark); }
.rb-card--dark h1, .rb-card--dark h2, .rb-card--dark h3,
.rb-card--dark h4, .rb-card--dark p { color: var(--rb-white); }
.rb-card--amber { background: var(--rb-amber-light); border-color: var(--rb-amber); }

/* Amber left-stripe accent */
.rb-card--accented::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 6px; height: 100%;
  background: var(--rb-amber);
  border-radius: var(--rb-radius) 0 0 var(--rb-radius);
}
.rb-card--accented { padding-left: 32px; }

/* Amber top-bar accent */
.rb-card--top-bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 5px;
  background: var(--rb-amber);
  border-radius: var(--rb-radius) var(--rb-radius) 0 0;
}

/* ============================================================
   PILL / TAG
   ============================================================ */
.rb-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-family: var(--rb-font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--rb-amber-light);
  color: var(--rb-amber-dark);
}
.rb-pill--grey  { background: var(--rb-border); color: var(--rb-grey-dark); }
.rb-pill--dark  { background: var(--rb-dark); color: var(--rb-white); }
.rb-pill--amber { background: var(--rb-amber); color: var(--rb-white); }

/* ============================================================
   BUTTONS
   ============================================================ */
.rb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--rb-radius-sm);
  font-family: var(--rb-font-display);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--rb-ease), color var(--rb-ease),
              box-shadow var(--rb-ease), transform var(--rb-ease);
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1;
}
.rb-btn:hover { transform: translateY(-1px); }

.rb-btn--primary {
  background: var(--rb-amber);
  color: var(--rb-white);
  border-color: var(--rb-amber);
}
.rb-btn--primary:hover {
  background: var(--rb-amber-dark);
  border-color: var(--rb-amber-dark);
  color: var(--rb-white);
  box-shadow: 0 4px 16px rgba(255,170,0,.35);
}

.rb-btn--secondary {
  background: var(--rb-white);
  color: var(--rb-dark);
  border-color: var(--rb-border);
}
.rb-btn--secondary:hover {
  border-color: var(--rb-amber);
  color: var(--rb-amber-dark);
}

.rb-btn--ghost {
  background: transparent;
  color: var(--rb-amber-dark);
  border-color: var(--rb-amber);
  padding: 10px 22px;
}
.rb-btn--ghost:hover { background: var(--rb-amber); color: var(--rb-white); }

.rb-btn--sm { padding: 8px 18px; font-size: .8rem; }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.rb-section-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 28px;
}
.rb-section-header h2 {
  font-size: 1.6rem;
  position: relative;
}
.rb-section-header h2::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 120px; height: 3px;
  background: var(--rb-amber);
  border-radius: 2px;
}
.rb-section-header .rb-section-sub {
  font-size: .95rem;
  color: var(--rb-grey-light);
  font-family: var(--rb-font-display);
}

/* ============================================================
   SECTION SPACING
   ============================================================ */
.rb-section {
  padding-block: 56px;
}
.rb-section--sm  { padding-block: 32px; }
.rb-section--lg  { padding-block: 80px; }
.rb-section--dark {
  background: var(--rb-dark);
}

/* ============================================================
   NAV
   ============================================================ */
#rb-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px var(--rb-pad);
  background: var(--rb-bg);
}

.rb-nav-inner {
  background: var(--rb-white);
  border-radius: var(--rb-radius);
  border: 1px solid var(--rb-border);
  box-shadow: var(--rb-shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  position: relative;
  /* overflow MUST be visible — hidden clips dropdown submenus */
  overflow: visible;
  /* Match .rb-container width so nav aligns with page content */
  max-width: 1400px;
  margin-inline: auto;
}

/* Amber left stripe — separate element so overflow:visible doesn't clip it */
.rb-nav-stripe {
  position: absolute;
  left: 0; top: 0;
  width: 6px; height: 100%;
  background: var(--rb-amber);
  border-radius: var(--rb-radius) 0 0 var(--rb-radius);
  pointer-events: none;
}

.rb-nav-logo {
  padding-left: 8px;
  font-family: var(--rb-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--rb-dark);
  text-decoration: none;
}
.rb-nav-logo:hover { color: var(--rb-amber-dark); }

.rb-nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}
.rb-nav-links a {
  font-family: var(--rb-font-display);
  font-size: .9rem;
  color: var(--rb-grey-mid);
  font-weight: 500;
  transition: color var(--rb-ease);
}
.rb-nav-links a:hover,
.rb-nav-links li.current-menu-item > a { color: var(--rb-dark); }

/* ── Dropdown submenus ──────────────────────────────────────── */
.rb-nav-links > li { position: relative; }

/* Chevron on parent items with children */
.rb-nav-links > li.menu-item-has-children > a::after,
.rb-nav-links > li.has-children > a::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 6px;
  vertical-align: middle;
  opacity: .55;
  transition: transform var(--rb-ease);
}
.rb-nav-links > li.rb-open > a::after {
  transform: rotate(180deg);
  opacity: 1;
}

/* Submenu panel */
.rb-nav-links .sub-menu {
  list-style: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 210px;
  background: var(--rb-white);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-sm);
  box-shadow: var(--rb-shadow);
  padding: 6px 0;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--rb-ease), transform var(--rb-ease), visibility var(--rb-ease);
}
/* Amber top bar on dropdown */
.rb-nav-links .sub-menu::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--rb-amber);
  border-radius: var(--rb-radius-sm) var(--rb-radius-sm) 0 0;
  margin-bottom: 4px;
}
/* Triangle pointer */
.rb-nav-links .sub-menu::after {
  content: '';
  position: absolute;
  bottom: 100%; left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: var(--rb-amber);
}
/* Open state */
.rb-nav-links > li.rb-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
/* Submenu items */
.rb-nav-links .sub-menu a {
  display: block;
  padding: 9px 18px;
  font-size: .85rem;
  color: var(--rb-grey-dark);
  font-weight: 400;
  white-space: nowrap;
  transition: background var(--rb-ease), color var(--rb-ease), padding-left var(--rb-ease);
}
.rb-nav-links .sub-menu a:hover {
  background: var(--rb-amber-light);
  color: var(--rb-amber-dark);
  padding-left: 24px;
}
.rb-nav-links .sub-menu li.current-menu-item > a {
  color: var(--rb-amber-dark);
  font-weight: 600;
  background: var(--rb-amber-light);
}

/* Hamburger */
.rb-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.rb-nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--rb-dark);
  border-radius: 2px;
  transition: transform var(--rb-ease), opacity var(--rb-ease);
}

/* ============================================================
   FOOTER
   ============================================================ */
#rb-footer {
  padding: 16px var(--rb-pad) 24px;
  background: var(--rb-bg);
}

.rb-footer-inner {
  background: var(--rb-dark);
  border-radius: var(--rb-radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
  overflow: hidden;
  /* Match .rb-container so footer aligns with page content */
  max-width: 1400px;
  margin-inline: auto;
}
.rb-footer-inner::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 6px; height: 100%;
  background: var(--rb-amber);
}

.rb-footer-brand {
  padding-left: 12px;
}
.rb-footer-brand .rb-footer-name {
  font-family: var(--rb-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rb-white);
  display: block;
}
.rb-footer-brand .rb-footer-meta {
  font-family: var(--rb-font-mono);
  font-size: .75rem;
  color: var(--rb-grey-dark);
  letter-spacing: .04em;
}

.rb-footer-social {
  display: flex;
  gap: 10px;
}
.rb-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--rb-radius-sm);
  background: #2C2C2C;
  color: var(--rb-grey-mid);
  font-family: var(--rb-font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  transition: background var(--rb-ease), color var(--rb-ease);
  text-decoration: none;
}
.rb-footer-social a:hover { background: var(--rb-amber); color: var(--rb-white); }

/* ============================================================
   HERO
   ============================================================ */
.rb-hero {
  padding: var(--rb-gutter) var(--rb-pad) var(--rb-gutter);
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: var(--rb-gutter);
  min-height: 560px;
  max-width: calc(1400px + var(--rb-pad) * 2);
  margin-inline: auto;
}

.rb-hero-card {
  background: var(--rb-white);
  border-radius: var(--rb-radius-lg);
  border: 1px solid var(--rb-border);
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.rb-hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 7px; height: 100%;
  background: var(--rb-amber);
  border-radius: var(--rb-radius-lg) 0 0 var(--rb-radius-lg);
}

.rb-hero-eyebrow {
  font-family: var(--rb-font-mono);
  font-size: .8rem;
  color: var(--rb-grey-mid);
  letter-spacing: .1em;
  padding-left: 4px;
  margin-bottom: 12px;
}

.rb-hero-headline {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: clamp(5rem, 10vw, 8.5rem);
  line-height: .9;
  letter-spacing: -.02em;
  color: var(--rb-dark);
  margin-bottom: 0;
  padding-left: 4px;
}

.rb-hero-headline-amber {
  display: inline-block;
  background: var(--rb-amber);
  color: var(--rb-white);
  padding: 4px 16px;
  border-radius: 10px;
  line-height: 1.05;
  margin-top: 8px;
}

.rb-hero-sub {
  font-size: 1rem;
  color: var(--rb-grey-dark);
  font-weight: 300;
  padding-left: 4px;
  margin-top: 20px;
}
.rb-hero-tags {
  font-family: var(--rb-font-mono);
  font-size: .75rem;
  color: var(--rb-grey-light);
  letter-spacing: .08em;
  padding-left: 4px;
  margin-top: 6px;
}

.rb-hero-ctas {
  display: flex;
  gap: 14px;
  padding-left: 4px;
  margin-top: 24px;
}

/* Right side portfolio mini-grid */
.rb-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--rb-gutter);
}

.rb-hero-grid-item {
  background: var(--rb-card-alt);
  border-radius: var(--rb-radius);
  border: 1px solid var(--rb-border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 130px;
  transition: box-shadow var(--rb-ease), transform var(--rb-ease);
  text-decoration: none;
}
.rb-hero-grid-item:hover { box-shadow: var(--rb-shadow); transform: translateY(-2px); }
.rb-hero-grid-item--featured { background: #FFFBEE; border-color: var(--rb-amber); }

.rb-hero-grid-item-title {
  font-family: var(--rb-font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--rb-dark);
  margin-top: 8px;
}
.rb-hero-grid-item-sub {
  font-family: var(--rb-font-mono);
  font-size: .7rem;
  color: var(--rb-grey-mid);
  letter-spacing: .06em;
  margin-top: 2px;
}
.rb-hero-grid-arrow {
  align-self: flex-end;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--rb-amber-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: var(--rb-amber-dark);
}

/* ============================================================
   STRENGTHS STRIP
   ============================================================ */
.rb-strengths {
  padding: var(--rb-gutter) var(--rb-pad);
  max-width: calc(1400px + var(--rb-pad) * 2);
  margin-inline: auto;
}
.rb-strength-num {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 2rem;
  color: var(--rb-amber);
  line-height: 1;
}
.rb-strength-title {
  font-family: var(--rb-font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--rb-dark);
}
.rb-strength-desc {
  font-size: .85rem;
  color: var(--rb-grey-mid);
  margin-top: 2px;
}
.rb-strength-divider {
  width: 100%;
  height: 1px;
  background: var(--rb-border);
  margin: 10px 0;
}

/* ============================================================
   PORTFOLIO CARD
   ============================================================ */
.rb-portfolio-card {
  background: var(--rb-white);
  border-radius: var(--rb-radius);
  border: 1px solid var(--rb-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--rb-ease), transform var(--rb-ease);
}
.rb-portfolio-card:hover { box-shadow: var(--rb-shadow); transform: translateY(-3px); }

.rb-portfolio-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--rb-border);
  position: relative;
  overflow: hidden;
}
.rb-portfolio-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.rb-portfolio-card:hover .rb-portfolio-thumb img { transform: scale(1.04); }

.rb-portfolio-body { padding: 20px 20px 16px; flex: 1; display: flex; flex-direction: column; }
.rb-portfolio-title {
  font-family: var(--rb-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--rb-dark);
  margin: 10px 0 6px;
}
.rb-portfolio-sub {
  font-size: .83rem;
  color: var(--rb-grey-mid);
  margin-bottom: auto;
}
.rb-portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--rb-font-display);
  font-size: .85rem;
  font-weight: 700;
  color: var(--rb-amber-dark);
  transition: gap var(--rb-ease), color var(--rb-ease);
}
.rb-portfolio-link:hover { gap: 10px; color: var(--rb-amber); }

/* ============================================================
   CASE STUDY — single page
   ============================================================ */

/* Breadcrumb — matches sample-case-study.html line 93 exactly */
.rb-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px var(--rb-pad) 0;
  font-family: var(--rb-font-mono);
  font-size: .72rem;
  color: var(--rb-grey-mid);
  letter-spacing: .06em;
  max-width: calc(1400px + var(--rb-pad) * 2);
  margin-inline: auto;
}
.rb-breadcrumb a { color: var(--rb-grey-mid); text-decoration: none; }
.rb-breadcrumb a:hover { color: var(--rb-amber-dark); }
.rb-breadcrumb span { color: var(--rb-amber-dark); }

/* Hero outer wrapper — padding pins the edges, max-width constrains the section */
.rb-cs-hero {
  padding: var(--rb-gutter) var(--rb-pad) 0;
  max-width: calc(1400px + var(--rb-pad) * 2);
  margin-inline: auto;
}

.rb-cs-hero-card {
  background: var(--rb-white);
  border-radius: var(--rb-radius-lg);
  border: 1px solid var(--rb-border);
  padding: 48px 52px;
  position: relative;
  overflow: hidden;
}
.rb-cs-hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 6px;
  background: var(--rb-amber);
  border-radius: var(--rb-radius-lg) var(--rb-radius-lg) 0 0;
}

.rb-cs-eyebrow {
  font-family: var(--rb-font-mono);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rb-amber-dark);
  border-left: 3px solid var(--rb-amber);
  padding-left: 10px;
  margin-bottom: 16px;
}

.rb-cs-title {
  font-family: var(--rb-font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--rb-dark);
  line-height: 1.15;
  margin-bottom: 16px;
}
.rb-cs-title em { font-style: italic; color: var(--rb-amber-dark); }

.rb-cs-intro {
  font-size: 1.05rem;
  color: var(--rb-grey-dark);
  max-width: 600px;
  margin-bottom: 24px;
  font-weight: 300;
}

/* Meta strip */
.rb-cs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--rb-border);
  margin-top: 8px;
  list-style: none;
}
.rb-cs-meta-item {}
.rb-cs-meta-label {
  font-family: var(--rb-font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rb-grey-mid);
  display: block;
  margin-bottom: 2px;
}
.rb-cs-meta-value {
  font-family: var(--rb-font-display);
  font-size: .9rem;
  font-weight: 600;
  color: var(--rb-dark);
}

/* Stats row — matches sample line 108 exactly */
.rb-cs-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--rb-gutter);
  padding: var(--rb-gutter) var(--rb-pad);
  max-width: calc(1400px + var(--rb-pad) * 2);
  margin-inline: auto;
}
.rb-cs-stat-card {
  background: var(--rb-white);
  border-radius: var(--rb-radius);
  border: 1px solid var(--rb-border);
  padding: 24px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.rb-cs-stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--rb-amber);
  border-radius: 0 0 var(--rb-radius) var(--rb-radius);
}
.rb-cs-stat-number {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 2.6rem;
  color: var(--rb-amber-dark);
  line-height: 1;
  display: block;
}
.rb-cs-stat-number sup {
  font-size: 1.4rem;
  vertical-align: super;
  color: var(--rb-amber);
}
.rb-cs-stat-desc {
  font-size: .8rem;
  color: var(--rb-grey-mid);
  margin-top: 6px;
}

/* ── Case study page layout ─────────────────────────────────────
   All five sections are direct children of .rb-cs-layout.
   Desktop: explicit grid-column / grid-row places them visually.
   Mobile:  single column, DOM order controls reading order:
            main → course preview → post-course → sidebar → prev/next
──────────────────────────────────────────────────────────────── */
.rb-cs-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  grid-template-rows: auto auto auto auto;
  column-gap: var(--rb-gutter);
  padding: 0 var(--rb-pad);
  max-width: calc(1400px + var(--rb-pad) * 2);
  margin-inline: auto;
  align-items: start;
}
/* col 1 rows 1–4: main → reflections → pullquote → course preview */
.rb-cs-main          { grid-column: 1; grid-row: 1; }
.rb-cs-reflections   { grid-column: 1; grid-row: 2; }
.rb-cs-pullquote     { grid-column: 1; grid-row: 3; }
#rb-course-preview   { grid-column: 1; grid-row: 4; padding-bottom: var(--rb-gutter); }
/* col 2 rows 1–4: sidebar spans all content rows, sticky */
.rb-cs-sidebar       { grid-column: 2; grid-row: 1 / 5; align-self: start; position: sticky; top: 90px; }
/* col 1 row 5: prev/next below sidebar */
.rb-cs-prev-next     { grid-column: 1; grid-row: 5; padding-bottom: var(--rb-gutter); }

.rb-cs-section-card {
  background: var(--rb-white);
  border-radius: var(--rb-radius);
  border: 1px solid var(--rb-border);
  padding: 36px;
  margin-bottom: var(--rb-gutter);
}

.rb-cs-section-num {
  font-family: var(--rb-font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--rb-amber);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.rb-cs-section-title {
  font-family: var(--rb-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--rb-dark);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rb-border);
}

/* Process steps */
.rb-cs-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--rb-gutter);
}
.rb-cs-step {
  background: var(--rb-card-alt);
  border-radius: var(--rb-radius-sm);
  border: 1px solid var(--rb-border);
  padding: 20px;
}
.rb-cs-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--rb-amber);
  color: var(--rb-white);
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: .85rem;
  margin-bottom: 10px;
}
.rb-cs-step-title {
  font-family: var(--rb-font-display);
  font-weight: 700;
  font-size: .95rem;
  color: var(--rb-dark);
  margin-bottom: 6px;
}
.rb-cs-step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

/* Key decisions */
.rb-cs-decision {
  border-left: 3px solid var(--rb-amber);
  padding: 16px 20px;
  background: var(--rb-amber-light);
  border-radius: 0 var(--rb-radius-sm) var(--rb-radius-sm) 0;
  margin-bottom: 14px;
}
.rb-cs-decision:last-child { margin-bottom: 0; }
.rb-cs-decision-icon {
  font-size: 1.2rem;
  margin-bottom: 6px;
  display: block;
}
.rb-cs-decision-title {
  font-family: var(--rb-font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--rb-dark);
  margin-bottom: 6px;
}
.rb-cs-decision-body {
  font-size: .88rem;
  color: var(--rb-grey-dark);
  margin-bottom: 8px;
}
.rb-cs-decision-why {
  font-size: .82rem;
  color: var(--rb-grey-mid);
  font-style: italic;
  border-top: 1px solid rgba(255,170,0,.3);
  padding-top: 8px;
  margin-top: 8px;
}

/* Sidebar sticky */
.rb-cs-sidebar { position: sticky; top: 90px; }
.rb-cs-sidebar-card {
  background: var(--rb-white);
  border-radius: var(--rb-radius);
  border: 1px solid var(--rb-border);
  padding: 24px;
  margin-bottom: var(--rb-gutter);
}
.rb-cs-sidebar-title {
  font-family: var(--rb-font-display);
  font-size: .9rem;
  font-weight: 700;
  color: var(--rb-dark);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--rb-amber);
}

/* ── General sidebar card (sidebar.php — used on blog, search, etc.) ── */
/* ── [rb_services] shortcode grid ──────────────────────────── */
.rb-services-grid {
  display: grid;
  gap: var(--rb-gutter);
}
.rb-services-grid--1 { grid-template-columns: 1fr; }
.rb-services-grid--2 { grid-template-columns: repeat(2, 1fr); }
.rb-services-grid--3 { grid-template-columns: repeat(3, 1fr); }
.rb-services-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Tablet: collapse to 2 columns */
@media (max-width: 1100px) {
  .rb-services-grid--3,
  .rb-services-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
/* Mobile: single column */
@media (max-width: 600px) {
  .rb-services-grid--2,
  .rb-services-grid--3,
  .rb-services-grid--4 { grid-template-columns: 1fr; }
}


.rb-post-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--rb-gutter);
  align-items: start;
}
/* Prev / next navigation below the post */
.rb-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--rb-gutter);
  margin-top: var(--rb-gutter);
}

#rb-sidebar {
  position: sticky;
  top: 90px;
}
.rb-sidebar-card {
  background: var(--rb-white);
  border-radius: var(--rb-radius);
  border: 1px solid var(--rb-border);
  box-shadow: var(--rb-shadow-sm);
  padding: 24px;
}
/* Widget headings — matches before_title in rb_widgets() */
.rb-sidebar-card .rb-widget-title,
.rb-sidebar-card .widget-title,
.rb-sidebar-card .widgettitle {
  font-family: var(--rb-font-display);
  font-size: .9rem;
  font-weight: 700;
  color: var(--rb-dark);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--rb-amber);
}
/* Spacing between stacked widgets — matches before_widget class rb-widget */
.rb-sidebar-card .rb-widget + .rb-widget,
.rb-sidebar-card .widget + .widget {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--rb-border);
}

/* Blockquote / testimonial */
.rb-cs-quote {
  background: var(--rb-dark);
  border-radius: var(--rb-radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.rb-cs-quote::before {
  content: '"';
  position: absolute;
  top: -20px; left: 16px;
  font-size: 10rem;
  font-family: var(--rb-font-display);
  color: var(--rb-amber);
  opacity: .15;
  line-height: 1;
}
.rb-cs-quote-text {
  font-family: var(--rb-font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--rb-white);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}
.rb-cs-quote-cite {
  display: block;
  font-family: var(--rb-font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--rb-amber);
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

/* Reflections */
.rb-cs-reflection {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--rb-gutter);
}
.rb-cs-reflection-item {
  background: var(--rb-card-alt);
  border-radius: var(--rb-radius-sm);
  border: 1px solid var(--rb-border);
  padding: 22px;
}
.rb-cs-reflection-icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
  display: block;
}
.rb-cs-reflection-title {
  font-family: var(--rb-font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--rb-dark);
  margin-bottom: 8px;
}

/* Taxonomy tags */
.rb-cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

/* ============================================================
   BLOG / LAB
   ============================================================ */
.rb-blog-card {
  background: var(--rb-white);
  border-radius: var(--rb-radius);
  border: 1px solid var(--rb-border);
  padding: 24px;
  position: relative;
  transition: box-shadow var(--rb-ease), transform var(--rb-ease);
}
.rb-blog-card:hover { box-shadow: var(--rb-shadow); transform: translateY(-2px); }
.rb-blog-card::before {
  content: '';
  position: absolute;
  top: 14px; right: 16px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--rb-amber);
}

.rb-blog-date {
  font-family: var(--rb-font-mono);
  font-size: .72rem;
  color: var(--rb-grey-mid);
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.rb-blog-title {
  font-family: var(--rb-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rb-dark);
  margin-bottom: 10px;
}
.rb-blog-divider {
  width: 100%;
  height: 1px;
  background: var(--rb-border);
  margin: 10px 0;
}
.rb-blog-excerpt {
  font-size: .88rem;
  color: var(--rb-grey-mid);
  line-height: 1.6;
}
.rb-blog-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  font-family: var(--rb-font-display);
  font-size: .85rem;
  font-weight: 700;
  color: var(--rb-amber-dark);
}
.rb-blog-link:hover { color: var(--rb-amber); }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.rb-about-card {
  background: var(--rb-white);
  border-radius: var(--rb-radius);
  border: 1px solid var(--rb-border);
  padding: 32px 32px 28px 38px;
  position: relative;
  overflow: hidden;
}
.rb-about-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 7px; height: 100%;
  background: var(--rb-amber);
  border-radius: var(--rb-radius) 0 0 var(--rb-radius);
}

/* Credential chips */
.rb-cred-chip {
  background: var(--rb-card-alt);
  border-radius: var(--rb-radius);
  border: 1px solid var(--rb-border);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.rb-cred-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--rb-amber-light);
  border: 2px solid var(--rb-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: .95rem;
  color: var(--rb-amber-dark);
}
.rb-cred-issuer {
  font-family: var(--rb-font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rb-grey-mid);
}
.rb-cred-label {
  font-family: var(--rb-font-display);
  font-size: .88rem;
  font-weight: 700;
  color: var(--rb-dark);
  text-align: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  :root { --rb-pad: 28px; }
  .rb-hero { grid-template-columns: 1fr; }
  .rb-hero-grid { display: grid; grid-template-columns: repeat(4,1fr); }
  /* Case study layout: single column — DOM order controls reading order */
  .rb-cs-layout  { grid-template-columns: 1fr; grid-template-rows: none; }
  .rb-cs-main,
  .rb-cs-reflections,
  .rb-cs-pullquote,
  #rb-course-preview,
  .rb-cs-sidebar,
  .rb-cs-prev-next { grid-column: 1; grid-row: auto; }
  .rb-cs-sidebar { position: static; }
  /* Blog post: stack on tablet too */
  .rb-post-grid { grid-template-columns: 1fr; }
  .rb-post-nav  { grid-template-columns: 1fr; }
  #rb-sidebar   { position: static; }
  .rb-cs-stats { grid-template-columns: repeat(2, 1fr); }
  .rb-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --rb-pad: 16px; --rb-gutter: 12px; }
  .rb-grid-2, .rb-grid-3, .rb-grid-4 { grid-template-columns: 1fr; }
  /* Blog post: stack article above sidebar on mobile */
  .rb-post-grid { grid-template-columns: 1fr; }
  .rb-post-nav  { grid-template-columns: 1fr; }
  .rb-nav-links { display: none; }
  .rb-nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    background: var(--rb-white);
    padding: 12px 0;
    border-radius: 0 0 var(--rb-radius) var(--rb-radius);
    border: 1px solid var(--rb-border);
    border-top: none;
    box-shadow: var(--rb-shadow);
    z-index: 200;
    gap: 0;
  }
  .rb-nav-links.is-open > li > a { display: block; padding: 10px 20px; }
  /* Mobile sub-menus: static, inline, indented */
  .rb-nav-links .sub-menu {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--rb-amber);
    border-radius: 0;
    padding: 4px 0 4px 12px;
    margin: 0 0 4px 20px;
    display: none;
  }
  .rb-nav-links .sub-menu::before,
  .rb-nav-links .sub-menu::after { display: none; }
  .rb-nav-links > li.rb-open > .sub-menu { display: block; }
  .rb-nav-toggle { display: flex; }
  .rb-hero-grid { grid-template-columns: 1fr 1fr; }
  .rb-cs-steps { grid-template-columns: 1fr; }
  .rb-cs-reflection { grid-template-columns: 1fr; }
  .rb-cs-stats { grid-template-columns: 1fr 1fr; }
  .rb-hero-headline { font-size: 4.5rem; }
}

/* ============================================================
   PAGELAYER COMPATIBILITY
   ============================================================ */
/* Let Pagelayer sections inherit the card look via a helper class */
.pl-rb-card {
  background: var(--rb-white);
  border-radius: var(--rb-radius);
  border: 1px solid var(--rb-border);
  box-shadow: var(--rb-shadow-sm);
  overflow: hidden;
}
.pl-rb-amber-top::before {
  content: '';
  display: block;
  height: 5px;
  background: var(--rb-amber);
}

/* ============================================================
   COURSE PREVIEW
   Copied verbatim from sample-case-study.html stylesheet.
   ============================================================ */
.rb-course-shell { border-radius: var(--rb-radius); border: 1px solid var(--rb-border); overflow: hidden; box-shadow: var(--rb-shadow-sm); }
.rb-course-topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 24px; background: var(--rb-dark); flex-wrap: wrap; }
.rb-course-topbar__title { font-family: var(--rb-font-display); font-weight: 700; font-size: .95rem; color: #fff; }
.rb-course-progress-wrap { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 200px; max-width: 360px; }
.rb-course-progress-label { font-family: var(--rb-font-mono); font-size: .7rem; color: var(--rb-grey-mid); letter-spacing: .06em; white-space: nowrap; }
.rb-course-progress-bar { flex: 1; height: 6px; background: #2C2C2C; border-radius: 100px; overflow: hidden; }
.rb-course-progress-fill { height: 100%; background: var(--rb-amber); border-radius: 100px; transition: width .35s ease; }
.rb-course-progress-text { font-family: var(--rb-font-mono); font-size: .72rem; color: var(--rb-grey-mid); white-space: nowrap; }
.rb-course-layout { display: grid; grid-template-columns: 280px 1fr; min-height: 480px; }
.rb-course-nav { background: var(--rb-card-alt); border-right: 1px solid var(--rb-border); padding: 20px 0; overflow-y: auto; max-height: 600px; }
.rb-course-module { margin-bottom: 8px; }
.rb-course-module__heading { display: flex; align-items: center; gap: 10px; padding: 8px 20px; font-family: var(--rb-font-display); font-size: .78rem; font-weight: 700; color: var(--rb-grey-dark); text-transform: uppercase; letter-spacing: .08em; }
.rb-course-module__num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--rb-border); font-family: var(--rb-font-mono); font-size: .72rem; font-weight: 700; color: var(--rb-grey-mid); flex-shrink: 0; }
.rb-lesson-btn { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 8px; width: 100%; padding: 10px 20px; background: none; border: none; border-left: 3px solid transparent; cursor: pointer; text-align: left; transition: background var(--rb-ease), border-color var(--rb-ease); }
.rb-lesson-btn:hover { background: var(--rb-border); }
.rb-lesson-btn.active { background: var(--rb-amber-light); border-left-color: var(--rb-amber); }
.rb-lesson-btn.completed .rb-lesson-status { color: #4CAF50; }
.rb-lesson-status { font-size: .8rem; color: var(--rb-amber-dark); font-weight: 700; width: 18px; text-align: center; }
.rb-lesson-label { font-family: var(--rb-font-display); font-size: .85rem; font-weight: 500; color: var(--rb-dark); line-height: 1.3; }
.rb-lesson-btn.active .rb-lesson-label { font-weight: 700; color: var(--rb-amber-dark); }
.rb-lesson-duration { font-family: var(--rb-font-mono); font-size: .68rem; color: var(--rb-grey-light); white-space: nowrap; }
.rb-course-content { padding: 32px 36px; overflow-y: auto; max-height: 600px; background: var(--rb-white); }
.rb-lesson-panel { display: none; }
.rb-lesson-panel.active { display: block; }
.rb-lesson-type { display: inline-flex; align-items: center; gap: 6px; font-family: var(--rb-font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rb-amber-dark); margin-bottom: 12px; }
.rb-lesson-type__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rb-amber); display: inline-block; }
.rb-lesson-intro { font-size: 1rem; color: var(--rb-grey-dark); line-height: 1.7; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--rb-border); }
.rb-concept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--rb-gutter); margin-bottom: 24px; }
.rb-concept-card { background: var(--rb-card-alt); border: 1px solid var(--rb-border); border-radius: var(--rb-radius-sm); padding: 20px; transition: box-shadow var(--rb-ease), transform var(--rb-ease); }
.rb-concept-card:hover { box-shadow: var(--rb-shadow); transform: translateY(-2px); }
.rb-concept-card__icon { font-size: 1.6rem; margin-bottom: 10px; display: block; }
.rb-concept-card h4 { font-family: var(--rb-font-display); font-size: .95rem; font-weight: 700; color: var(--rb-dark); margin-bottom: 6px; }
.rb-concept-card p { font-size: .85rem; color: var(--rb-grey-dark); margin: 0; }
.rb-kcheck { margin-bottom: 24px; }
.rb-kcheck__label { font-family: var(--rb-font-display); font-weight: 700; font-size: .85rem; color: var(--rb-dark); margin-bottom: 8px; }
.rb-kcheck__q { font-size: 1rem; color: var(--rb-dark); margin-bottom: 14px; font-weight: 500; }
.rb-kcheck__options { display: flex; flex-direction: column; gap: 10px; }
.rb-kcheck__opt { padding: 12px 18px; background: var(--rb-card-alt); border: 2px solid var(--rb-border); border-radius: var(--rb-radius-sm); font-family: var(--rb-font-body); font-size: .9rem; color: var(--rb-dark); text-align: left; cursor: pointer; transition: border-color var(--rb-ease), background var(--rb-ease); }
.rb-kcheck__opt:hover:not(:disabled) { border-color: var(--rb-amber); background: var(--rb-amber-light); }
.rb-kcheck__opt.is-correct { border-color: #4CAF50; background: #F0FFF0; color: #2E7D32; }
.rb-kcheck__opt.is-wrong { border-color: #F44336; background: #FFF0F0; color: #C62828; }
.rb-kcheck__opt:disabled { cursor: default; opacity: .85; }
.rb-kcheck__feedback { margin-top: 12px; padding: 12px 16px; border-radius: var(--rb-radius-sm); font-size: .88rem; display: none; }
.rb-kcheck__feedback.is-visible { display: block; }
.rb-kcheck__feedback.correct { background: #F0FFF0; color: #2E7D32; border-left: 3px solid #4CAF50; }
.rb-kcheck__feedback.wrong { background: #FFF0F0; color: #C62828; border-left: 3px solid #F44336; }
.rb-scenario { background: var(--rb-card-alt); border: 1px solid var(--rb-border); border-radius: var(--rb-radius-sm); padding: 20px; margin-bottom: 20px; }
.rb-scenario__header { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.rb-scenario__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--rb-amber-light); border: 2px solid var(--rb-amber); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.rb-scenario__name { display: block; font-family: var(--rb-font-display); font-weight: 700; font-size: .95rem; color: var(--rb-dark); }
.rb-scenario__role { display: block; font-family: var(--rb-font-mono); font-size: .72rem; color: var(--rb-grey-mid); letter-spacing: .04em; margin-top: 2px; }
.rb-scenario__quote { font-size: .95rem; color: var(--rb-grey-dark); font-style: italic; border-left: 2px solid var(--rb-amber); padding-left: 14px; margin: 0; }
.rb-completion { text-align: center; padding: 40px 20px; }
.rb-completion__icon { font-size: 3.5rem; margin-bottom: 16px; display: block; }
.rb-cert-badge { display: inline-block; background: var(--rb-amber-light); border: 2px solid var(--rb-amber); border-radius: var(--rb-radius); padding: 20px 36px; margin-top: 16px; }
.rb-cert-badge p { font-family: var(--rb-font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--rb-amber-dark); margin-bottom: 4px; }
.rb-cert-badge h4 { font-family: var(--rb-font-display); font-size: 1.1rem; font-weight: 700; color: var(--rb-dark); }
.rb-course-footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; background: var(--rb-card-alt); border-top: 1px solid var(--rb-border); }
.rb-course-nav-info { font-family: var(--rb-font-mono); font-size: .75rem; color: var(--rb-grey-mid); letter-spacing: .06em; }

/* Course responsive */
@media (max-width: 900px) {
  .rb-course-layout { grid-template-columns: 1fr; }
  .rb-course-nav { border-right: none; border-bottom: 1px solid var(--rb-border); max-height: 220px; }
  .rb-course-content { max-height: none; }
  .rb-concept-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .rb-course-content { padding: 20px; }
  .rb-concept-grid { grid-template-columns: 1fr; }
  .rb-course-topbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .rb-course-progress-wrap { max-width: 100%; }
}
