/* ================================================================
   OH HEARING CONSERVATION GUIDE — Pillar Page Styles
   File: plugins/shoebox-oh-resource-hub/assets/oh-guide-page.css
   Enqueue: oh_hub_enqueue_guide_page_assets() — see snippet
   Loads AFTER oh-hub.css (depends on shoebox-oh-hub handle)
   ================================================================ */

/* ── GeneratePress overflow fix — required for position:sticky ── */
body.page-template-page-oh-ebook-guide-php {
  overflow: visible !important;
}
html:has(body.page-template-page-oh-ebook-guide-php) {
  overflow-x: hidden;
}

/* ── Variables ─────────────────────────────────────────────────── */
:root {
  --ohg-navy:      #1B2A4A;
  --ohg-navy-mid:  #243a55;
  --ohg-blue:      #2B97DF;
  --ohg-blue-link: #1B7ABD;
  --ohg-blue-lt:   #E5F3FC;
  --ohg-teal:      #00a0b0;
  --ohg-gold:      #f0a500;
  --ohg-text:      #2d2d2d;
  --ohg-muted:     #6b7280;
  --ohg-border:    #e2e8f0;
  --ohg-bg:        #f8fafc;
  --ohg-white:     #ffffff;
  --ohg-radius:    10px;
  --ohg-max-w:     1240px;
  --ohg-sidebar:   320px;
  --ohg-gap:       40px;
}

/* ── Page wrapper ───────────────────────────────────────────────── */
.ohg-page {
  background: var(--ohg-bg);
}

/* ================================================================
   HERO
   ================================================================ */
.ohg-hero {
  background: linear-gradient(145deg, #1B7ABD 0%, #2B97DF 55%, #3AA8E8 100%);
  color: var(--ohg-white);
  padding: 80px 24px 72px;
  position: relative;
  overflow: hidden;
}

/* Subtle geometric background texture */
.ohg-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(0,160,176,0.12) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(240,165,0,0.08) 0%, transparent 40%);
  pointer-events: none;
}

.ohg-hero__inner {
  max-width: var(--ohg-max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 56px;
  position: relative;
}

.ohg-hero__text { flex: 1; min-width: 0; }

.ohg-hero__eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #7ee8f2;
  margin-bottom: 14px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.ohg-hero__title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--ohg-white);
  margin: 0 0 20px;
}

.ohg-hero__intro {
  font-size: 20px;
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
  margin: 0 0 40px;
  max-width: 600px;
}

/* Stats */
.ohg-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.ohg-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ohg-stat__number {
  font-size: 38px;
  font-weight: 900;
  color: var(--ohg-gold);
  line-height: 1;
}

.ohg-stat__label {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  max-width: 130px;
  line-height: 1.4;
}

/* Hero actions */
.ohg-hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* Hero cover */
.ohg-hero__cover {
  flex: 0 0 240px;
  text-align: center;
}

.ohg-hero__cover img {
  max-width: 200px;
  border-radius: 6px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
  transform: rotate(1.5deg);
  transition: transform 0.3s ease;
}

.ohg-hero__cover:hover img { transform: rotate(0deg) scale(1.02); }

/* ================================================================
   BODY LAYOUT — 3 columns: nav sidebar + content + right CTAs
   ================================================================ */
.ohg-body {
  padding: 64px 24px 100px;
}

.ohg-body__inner {
  max-width: var(--ohg-max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--ohg-sidebar) 1fr;
  gap: var(--ohg-gap);
  align-items: start;
}

/* ================================================================
   STICKY CHAPTER NAV
   ================================================================ */
.ohg-nav {
  position: relative;
  align-self: stretch; /* stretch to full grid row height so sticky child has room to scroll */
}

/* 2026-05-20: Sidebar grows to natural height. No internal scroll on the
   chapter list — all 12 chapters always visible, with the Demo CTA and
   Event banner below. Sticky behavior is retained; on shorter viewports
   the sidebar extends below the fold and the user scrolls the page to see
   the bottom (standard long-sticky-sidebar pattern, same as Stripe/Notion docs). */
.ohg-nav__sticky-wrap {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 0;
  /* No max-height — wrapper takes natural height of its children */
}

.ohg-nav__sticky {
  background: var(--ohg-white);
  border: 1px solid var(--ohg-border);
  border-radius: var(--ohg-radius);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  position: relative;
  /* No max-height — chapter list always shows in full */
}
/* Native scrollbar styling kept (harmless if no overflow occurs) */
.ohg-nav__list::-webkit-scrollbar { width: 6px; }
.ohg-nav__list::-webkit-scrollbar-track { background: #F1F5F9; }
.ohg-nav__list::-webkit-scrollbar-thumb { background: #94A3B8; border-radius: 3px; }

.ohg-nav__list {
  /* 2026-05-20: No internal scroll — full list always renders. */
  overflow-y: visible;
}
.ohg-nav__list::-webkit-scrollbar { width: 4px; }
.ohg-nav__list::-webkit-scrollbar-thumb { background: var(--ohg-border); border-radius: 2px; }

/* scrollbar styling moved to .ohg-nav__sticky-wrap */

.ohg-nav__heading {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ohg-white);
  background: var(--ohg-navy);
  margin: 0 0 0;
  padding: 16px 20px;
  display: block;
}

.ohg-nav__list {
  list-style: none;
  margin: 0 0 0;
  padding: 10px 12px 12px;
}

.ohg-nav__item { margin-bottom: 2px; }

.ohg-nav__link {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ohg-muted);
  text-decoration: none;
  /* 2026-05-20: Tight vertical rhythm + 2-line ellipsis to keep all 12
     chapters visible on standard laptop viewports. Long titles get
     truncated with "..." — full text still in the heading anchor target. */
  padding: 5px 8px;
  border-radius: 6px;
  line-height: 1.35;
  transition: background 0.15s, color 0.15s;
}
.ohg-nav__label {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ohg-nav__link:hover { background: var(--ohg-blue-lt); color: var(--ohg-blue-link); }

.ohg-nav__link.is-active {
  background: var(--ohg-blue-lt);
  color: var(--ohg-blue-link);
  font-weight: 600;
}

.ohg-nav__num {
  font-size: 10px;
  font-weight: 800;
  color: var(--ohg-blue-link);
  flex-shrink: 0;
  min-width: 22px;
  padding-top: 1px;
  letter-spacing: 0.03em;
}

.ohg-nav__item--cta {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--ohg-border);
}

.ohg-nav__link--cta {
  background: var(--ohg-gold);
  color: var(--ohg-white) !important;
  font-weight: 800;
  justify-content: center;
  font-size: 14px;
  letter-spacing: 0.02em;
  border-radius: 6px;
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(240, 165, 0, 0.3);
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}

.ohg-nav__link--cta:hover {
  background: #d4910a !important;
  color: var(--ohg-white) !important;
  box-shadow: 0 4px 12px rgba(240, 165, 0, 0.4);
  transform: translateY(-1px);
}

/* Progress bar */
.ohg-nav__progress-wrap {
  height: 3px;
  background: var(--ohg-border);
  border-radius: 3px;
  margin-top: 14px;
  overflow: hidden;
}

.ohg-nav__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--ohg-blue), var(--ohg-teal));
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s linear;
}

/* ================================================================
   MAIN CONTENT
   ================================================================ */
.ohg-content { min-width: 0; }

/* ================================================================
   CHAPTER ToC (top of content) — 2026-05-20
   Same visual design as the original sidebar box: navy header bar with
   white uppercase "IN THIS GUIDE" text, white body with chapter list.
   Difference: sits at the top of the content area in a 2-column grid
   so all 12 chapters fit horizontally without needing scroll.
   ================================================================ */
.ohg-toc {
  background: var(--ohg-white);
  border: 1px solid var(--ohg-border);
  border-radius: var(--ohg-radius);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}
/* Navy header bar — matches original .ohg-nav__heading */
.ohg-toc__header {
  background: var(--ohg-navy);
  padding: 14px 20px;
}
.ohg-toc__eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ohg-white);
}
.ohg-toc__title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  margin: 4px 0 0;
  letter-spacing: 0.02em;
}
.ohg-toc__list {
  list-style: none;
  margin: 0;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 16px;
}
@media (max-width: 720px) {
  .ohg-toc__list { grid-template-columns: 1fr; }
}
.ohg-toc__item {
  margin: 0;
}
.ohg-toc__link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ohg-muted);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.ohg-toc__link:hover {
  background: var(--ohg-blue-lt);
  color: var(--ohg-blue-link);
}
.ohg-toc__num {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  color: var(--ohg-blue-link);
  min-width: 22px;
  padding-top: 2px;
  letter-spacing: 0.03em;
}
.ohg-toc__label {
  flex: 1;
}
/* Download PDF CTA — sits inside a footer band of the ToC card */
.ohg-toc__download-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 6px 16px 18px;
  padding: 12px 22px;
  background: var(--ohg-blue-link);
  color: #fff !important;
  border: 2px solid var(--ohg-blue-link);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(43,151,223,0.25);
  transition: all 0.2s ease;
}
.ohg-toc__download-cta:hover {
  background: #fff;
  color: var(--ohg-blue-link) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(43,151,223,0.30);
}

/* ================================================================
   FREE GUIDES CAROUSEL FEATURE (mid-content, after chapter 6) — 2026-05-21
   SB Blue gradient panel with white text, mirroring the gate panel + other
   SB Blue boxes used site-wide. Inner carousel keeps the white card design
   so slides contrast against the blue surround.
   ================================================================ */
.ohg-guides-feature {
  position: relative;
  margin: 48px -16px;
  padding: 40px 36px 36px;
  background: linear-gradient(135deg, var(--ohg-blue-link) 0%, #1B7ABD 100%);
  border-radius: 18px;
  border: none;
  box-shadow:
      0 20px 40px -10px rgba(43,151,223,0.30),
      0 8px 16px -4px rgba(0,0,0,0.08);
  overflow: hidden;
}
/* Subtle radial glow accents on the corners for visual depth */
.ohg-guides-feature::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}
.ohg-guides-feature::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}
.ohg-guides-feature__header {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 28px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
/* Eyebrow — frosted-glass pill on the blue bg */
.ohg-guides-feature__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #fff;
  background: rgba(255,255,255,0.18);
  padding: 7px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}
.ohg-guides-feature__eyebrow::before {
  content: '●';
  color: #FFCB47;
  font-size: 9px;
  line-height: 1;
}
/* Title — matches .ohg-chapter__title scale (32px / 800 / -0.3px) but white */
.ohg-guides-feature__title {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.2;
  letter-spacing: -0.3px;
}
/* Subtitle — matches .ohg-chapter__intro scale (19px / italic / 1.75) but white */
.ohg-guides-feature__sub {
  font-size: 19px;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
  margin: 0;
  font-style: italic;
}
.ohg-guides-feature .ohg-guides-carousel {
  position: relative;
  z-index: 1;
  margin: 0;
}
/* White cards inside the blue panel — gives carousel slides depth */
.ohg-guides-feature .oh-carousel__slide {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
/* Brighter dot for visibility on blue bg */
.ohg-guides-feature .oh-carousel__dot circle {
  stroke: rgba(255,255,255,0.55);
}
.ohg-guides-feature .oh-carousel__dot.is-active circle,
.ohg-guides-feature .oh-carousel__dot:hover circle {
  stroke: #fff;
  fill: #fff;
}
/* Arrow buttons stay readable on blue */
.ohg-guides-feature .oh-carousel__arrow {
  background: rgba(255,255,255,0.95);
  color: var(--ohg-blue-link);
}
.ohg-guides-feature .oh-carousel__arrow:hover {
  background: #fff;
}

@media (max-width: 720px) {
  .ohg-guides-feature {
    margin: 32px 0;
    padding: 28px 20px 24px;
  }
  .ohg-guides-feature__title { font-size: 24px; letter-spacing: 0; }
  .ohg-guides-feature__sub { font-size: 17px; }
}

/* ================================================================
   CHAPTER SECTIONS
   ================================================================ */
.ohg-chapter {
  background: var(--ohg-white);
  border: 1px solid var(--ohg-border);
  border-radius: var(--ohg-radius);
  padding: 44px 52px;
  margin-bottom: 28px;
  scroll-margin-top: 108px;
  transition: box-shadow 0.2s ease;
}

.ohg-chapter:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.ohg-chapter__header {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--ohg-blue-lt);
}

.ohg-chapter__num {
  font-size: 52px;
  font-weight: 900;
  color: #ddeeff;
  line-height: 1;
  flex-shrink: 0;
  font-family: Georgia, 'Times New Roman', serif;
  user-select: none;
}

.ohg-chapter__title {
  font-size: 32px;
  font-weight: 800;
  color: var(--ohg-navy);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.ohg-chapter__intro {
  font-size: 19px;
  line-height: 1.75;
  color: var(--ohg-muted);
  margin: 0 0 24px;
  font-style: italic;
}

/* Chapter body — matches site-wide .entry-content body (17px / 1.7).
   2026-05-20: Was 18.5px / 1.9 which felt heavier than blog/case-study
   pages. Aligned to the site standard for consistent reading rhythm. */
.ohg-chapter__body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ohg-text);
}

.ohg-chapter__body p { margin: 0 0 16px; }
.ohg-chapter__body p:last-child { margin-bottom: 0; }

.ohg-chapter__body h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ohg-navy);
  margin: 36px 0 14px;
  line-height: 1.3;
  letter-spacing: -0.2px;
}

.ohg-chapter__body h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--ohg-navy);
  margin: 28px 0 12px;
  line-height: 1.35;
}

.ohg-chapter__body h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ohg-navy);
  margin: 20px 0 8px;
  line-height: 1.4;
}

.ohg-chapter__body ul,
.ohg-chapter__body ol {
  padding-left: 28px;
  margin: 0 0 16px;
}

.ohg-chapter__body li { margin-bottom: 10px; }

.ohg-chapter__body strong { color: var(--ohg-navy); }

.ohg-chapter__body a {
  color: var(--ohg-blue-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Generic chapter body tables ───────────────────────────────── */
.ohg-chapter__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 15px;
  border: 1px solid #c8d8e8;
  border-radius: 6px;
  overflow: hidden;
}

.ohg-chapter__body th,
.ohg-chapter__body td {
  padding: 12px 16px;
  border: 1px solid #d4e3f0;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.ohg-chapter__body th {
  background: var(--ohg-navy);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ohg-white);
  border: none;
}

.ohg-chapter__body tbody tr:hover {
  background: #f4f9fd;
}

/* ── OSHA compliance table specific classes ─────────────────────── */
/* Usage: add class="osha-table" to the <table> element            */

.osha-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 15px;
  border: 1px solid #c8d8e8;
  overflow: hidden;
}

/* Column widths */
.osha-table .col-num     { width: 18%; }
.osha-table .col-req     { width: 43%; }
.osha-table .col-check   { width: 6%; }
.osha-table .col-shoebox { width: 33%; }

/* Header row — navy */
.osha-table thead tr { background: var(--ohg-navy); }

.osha-table thead th {
  color: var(--ohg-white);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 13px 16px;
  border: none;
  text-align: left;
}

.osha-table thead th.osha-th-check { text-align: center; }

/* Body cells */
.osha-table td {
  padding: 13px 16px;
  border: 1px solid #d4e3f0;
  vertical-align: top;
  line-height: 1.6;
  color: var(--ohg-text);
  background: var(--ohg-white);
}

/* Section header rows — light blue */
.osha-table .osha-section-header td {
  background: #ddeef8;
  font-weight: 700;
  font-size: 15px;
  color: var(--ohg-navy);
  text-align: center;
  border-top: 2px solid #b0cfe8;
  border-bottom: 2px solid #b0cfe8;
}

/* Hover on data rows */
.osha-table tbody tr:not(.osha-section-header):hover td {
  background: #f4f9fd;
}

/* Number cell */
.osha-table .osha-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--ohg-navy);
  white-space: nowrap;
}

/* Checkmark cell */
.osha-table .osha-check-cell {
  text-align: center;
  vertical-align: middle;
  font-size: 18px;
  color: var(--ohg-blue-link);
  font-weight: 700;
}

/* Remove old SVG icon rule */

/* Lists inside cells */
.osha-table td ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.osha-table td ul li {
  margin-bottom: 6px;
  line-height: 1.55;
}

/* ── Biological Verification table ──────────────────────────────── */
.bio-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 8px;
  font-size: 15px;
  border: 1px solid #c8d8e8;
  overflow: hidden;
  text-align: center;
}

.bio-table .bio-th-title {
  background: var(--ohg-navy);
  color: var(--ohg-white);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 16px;
  border: none;
  letter-spacing: 0.01em;
}

.bio-table .bio-subheader td {
  background: #d6e8f5;
  color: var(--ohg-navy);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid #b8d4e8;
  text-align: center;
}

.bio-table tbody td {
  padding: 11px 14px;
  border: 1px solid #d4e3f0;
  vertical-align: middle;
  line-height: 1.4;
  color: var(--ohg-text);
}

.bio-table .bio-date {
  font-weight: 500;
  color: var(--ohg-navy);
  text-align: left;
  padding-left: 16px;
  background: #f7fbff;
}

.bio-table .bio-ear {
  font-weight: 700;
  font-size: 14px;
  width: 40px;
}

.bio-table .bio-ear-l {
  background: #fff8e8;
  color: #8a6800;
}

.bio-table .bio-ear-r {
  background: #fff0f0;
  color: #a03030;
}

.bio-table tbody tr:has(.bio-ear-l) td:not(.bio-date):not(.bio-ear) {
  background: #fffcf2;
}

.bio-table tbody tr:has(.bio-ear-r) td:not(.bio-date):not(.bio-ear) {
  background: #fff5f5;
}

.bio-table .bio-flag {
  background: #ffd8d0 !important;
  color: #8b2500;
  font-weight: 700;
}

/* "Read full article" footer link */
.ohg-chapter__footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--ohg-border);
}

.ohg-chapter__readmore {
  font-size: 13px;
  font-weight: 600;
  color: var(--ohg-blue-link);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}

.ohg-chapter__readmore:hover { color: var(--ohg-navy); }

/* ================================================================
   PULL QUOTES
   ================================================================ */
.ohg-pullquote {
  background: var(--ohg-navy);
  color: var(--ohg-white);
  border-left: 5px solid var(--ohg-gold);
  border-radius: 0 var(--ohg-radius) var(--ohg-radius) 0;
  margin: 28px 0 24px;
  padding: 22px 30px;
}

.ohg-pullquote p {
  font-size: 18px;
  font-weight: 600;
  font-style: italic;
  line-height: 1.55;
  margin: 0;
}

/* ================================================================
   INLINE CTA BANNERS
   ================================================================ */
.ohg-inline-cta {
  background: linear-gradient(135deg, var(--ohg-blue-lt), #f0f8ff);
  border: 1px solid #c0ddf5;
  border-radius: var(--ohg-radius);
  padding: 24px 32px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.ohg-inline-cta__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ohg-inline-cta__text strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--ohg-navy);
}

.ohg-inline-cta__text span {
  font-size: 14px;
  color: var(--ohg-muted);
}

/* ================================================================
   LEFT SIDEBAR — CTA cards below nav (sticky together)
   ================================================================ */
.ohg-nav__cta-card {
  margin-top: 16px;
}

.ohg-nav__cta-card:first-of-type {
  margin-top: 20px;
}

/* Reuse .oh-sidebar-card classes from oh-hub.css for the actual cards */

/* ================================================================
   PDF GATE — SB Blue background with white form card
   ================================================================ */
.ohg-gate {
  background: linear-gradient(135deg, #1B7ABD 0%, #2B97DF 100%);
  border: none;
  border-radius: var(--ohg-radius);
  padding: 52px 60px;
  scroll-margin-top: 80px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

/* Single column — everything stacks */
.ohg-gate__inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Cover + text side by side */
.ohg-gate__intro {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 32px;
}

.ohg-gate__intro-text {
  flex: 1;
  min-width: 0;
}

.ohg-gate__title {
  font-size: 32px;
  font-weight: 900;
  color: var(--ohg-white);
  margin: 0 0 12px;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.ohg-gate__desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin: 0;
}

/* Cover image — left, aligned with top of text */
.ohg-gate__cover {
  width: 130px;
  flex-shrink: 0;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  border: 3px solid rgba(255, 255, 255, 0.3);
  display: block;
}

/* Form sits in a white card inset */
.ohg-gate__form {
  background: var(--ohg-white);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  border-top: none;
}

.ohg-gate__iframe {
  width: 100%;
  min-height: 640px;
  border: none;
  display: block;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.ohg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.ohg-btn:hover { transform: translateY(-2px); }

.ohg-btn--primary {
  background: var(--ohg-white);
  color: #006396;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ohg-btn--primary:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(255, 255, 255, 0.15);
  color: #004F7A;
}

.ohg-btn--ghost {
  background: transparent;
  color: var(--ohg-white);
  border: 2px solid #FFFFFF;
}

.ohg-btn--ghost:hover {
  background: rgba(255,255,255, 0.12);
}

.ohg-btn--sm {
  padding: 10px 20px;
  font-size: 13px;
}

/* ================================================================
   NOTICE (fallback / error messages)
   ================================================================ */
.ohg-notice {
  background: #fff8e1;
  border: 1px solid #f0c060;
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 14px;
  color: #7a5c00;
}

/* ================================================================
   BREADCRUMB NAV
   ================================================================ */
.ohg-breadcrumb {
  background: #ffffff !important;
  border-bottom: 1px solid var(--ohg-border);
  padding: 12px 24px !important;
}

.ohg-breadcrumb .ohg-breadcrumb__inner,
.ohg-breadcrumb__inner {
  max-width: var(--ohg-max-w);
  margin: 0 auto;
  display: flex !important;
  align-items: center;
  gap: 4px;
  font-size: 14px !important;
  flex-wrap: wrap;
  font-weight: 400 !important;
  line-height: 1.4;
  list-style: none !important;
  padding: 0 !important;
}

/* Links — blue, no underline at rest */
body .ohg-breadcrumb a,
.ohg-breadcrumb .ohg-breadcrumb__inner a,
.ohg-breadcrumb__inner a {
  color: #1B7ABD !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  background: none !important;
}

body .ohg-breadcrumb a:hover,
.ohg-breadcrumb .ohg-breadcrumb__inner a:hover,
.ohg-breadcrumb__inner a:hover {
  text-decoration: underline !important;
  color: #1B7ABD !important;
}

/* Separator */
body .ohg-breadcrumb .ohg-breadcrumb__sep,
.ohg-breadcrumb__sep {
  color: #aaa !important;
  font-size: 13px !important;
  opacity: 1 !important;
  margin: 0 4px !important;
}

/* Current page — bold dark */
body .ohg-breadcrumb .ohg-breadcrumb__current,
.ohg-breadcrumb__current {
  color: #1a1a1a !important;
  font-weight: 700 !important;
  font-size: 14px !important;
}

/* ================================================================
   CHAPTER FEATURED IMAGE
   ================================================================ */

/* Option A: Full-width banner (flush to card edges, above intro) */
.ohg-chapter__img {
  margin: 0 -52px 32px;  /* bleed to card edges */
  overflow: hidden;
}

.ohg-chapter__img-el {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

/* Option B: Inline 2-col (image beside intro text) */
.ohg-chapter__intro-row {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
  margin-bottom: 24px;
}

.ohg-chapter__intro-img img,
.ohg-chapter__intro-img .ohg-chapter__img-el {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

@media (max-width: 680px) {
  .ohg-chapter__img { margin: 0 -22px 24px; }
  .ohg-chapter__img-el { height: 180px; }
  .ohg-chapter__intro-row { grid-template-columns: 1fr; }
  .ohg-chapter__intro-img { display: none; } /* hide on mobile, full-width only */
}

/* ================================================================
   TABLE / IMAGE FIX — posts with screenshot tables
   ================================================================ */
.ohg-chapter__body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--ohg-border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  display: block;
  margin: 24px auto;
}

/* Override for inline images that should flow with text */
.ohg-chapter__body p img {
  margin: 16px auto;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 960px) {
  .ohg-body__inner {
    grid-template-columns: 1fr;
  }

  .ohg-nav {
    order: -1;  /* TOC above content on mobile */
  }

  .ohg-nav__sticky-wrap {
    position: static;
    max-height: none;
    overflow: visible;
  }

  /* Collapse to horizontal scrolling pill nav on mobile */
  .ohg-nav__list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .ohg-nav__list::-webkit-scrollbar { display: none; }

  .ohg-nav__item { flex-shrink: 0; }

  .ohg-nav__link {
    white-space: nowrap;
    border: 1px solid var(--ohg-border);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
  }

  .ohg-nav__item--cta { margin-top: 0; padding-top: 0; border-top: none; }

  .ohg-nav__progress-wrap { display: none; }

  .ohg-gate__inner { grid-template-columns: 1fr; }

  /* CTA cards below nav hide on mobile (visible via inline CTAs instead) */
  .ohg-nav__cta-card {
    display: none;
  }
}

@media (max-width: 680px) {
  .ohg-hero__inner { flex-direction: column; }
  .ohg-hero__cover { display: none; }
  .ohg-hero__title { font-size: 28px; }
  .ohg-chapter { padding: 28px 22px; }
  .ohg-chapter__num { font-size: 36px; }
  .ohg-chapter__title { font-size: 22px; letter-spacing: 0; }
  .ohg-chapter__intro { font-size: 17px; }
  .ohg-gate { padding: 28px 22px; }
  .ohg-stats { gap: 24px; }
  .ohg-stat__number { font-size: 28px; }
  .ohg-inline-cta { flex-direction: column; align-items: flex-start; }
}

/* ================================================================
   #5 — STICKY PDF BAR
   Hidden until JS adds .is-visible after 30% scroll
   ================================================================ */
.ohg-sticky-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--ohg-navy);
  color: var(--ohg-white);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.ohg-sticky-bar.is-visible {
  transform: translateY(0);
}

.ohg-sticky-bar.is-dismissed {
  display: none;
}

.ohg-sticky-bar__text { color: rgba(255,255,255,0.9); }
.ohg-sticky-bar__text strong { color: #fff; }

.ohg-sticky-bar__btn {
  background: var(--ohg-gold);
  color: var(--ohg-navy);
  font-weight: 700;
  font-size: 13px;
  padding: 7px 18px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.ohg-sticky-bar__btn:hover { opacity: 0.88; }

.ohg-sticky-bar__close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  position: absolute;
  right: 20px;
}

.ohg-sticky-bar__close:hover { color: #fff; }

/* ================================================================
   #3 — MID-PAGE GATE (after chapter 3)
   ================================================================ */
.ohg-midgate {
  background: linear-gradient(135deg, #1B7ABD 0%, #2B97DF 100%);
  border-radius: var(--ohg-radius);
  padding: 40px 48px;
  margin-bottom: 28px;
  color: var(--ohg-white);
}

.ohg-midgate__inner {
  display: flex;
  align-items: center;
  gap: 36px;
}

.ohg-midgate__cover {
  width: 100px;
  flex-shrink: 0;
  border-radius: 5px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.ohg-midgate__text { flex: 1; }

.ohg-midgate__eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7ee8f2;
  margin: 0 0 10px;
}

.ohg-midgate__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ohg-white);
  margin: 0 0 10px;
  line-height: 1.3;
}

.ohg-midgate__desc {
  font-size: 15px;
  color: rgba(255,255,255,0.78);
  margin: 0 0 20px;
  line-height: 1.6;
}

@media (max-width: 680px) {
  .ohg-midgate { padding: 28px 24px; }
  .ohg-midgate__inner { flex-direction: column; gap: 20px; }
  .ohg-midgate__cover { width: 80px; }
  .ohg-midgate__title { font-size: 18px; }
}

/* ================================================================
   #2 — SOCIAL PROOF STRIP (inside gate, above form)
   ================================================================ */
.ohg-gate__social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  margin-bottom: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ohg-gate__proof-stat {
  font-size: 22px;
  font-weight: 900;
  color: var(--ohg-white);
  white-space: nowrap;
}

.ohg-gate__proof-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

/* Move form divider down to sit below social proof */
.ohg-gate__social-proof + .ohg-gate__form {
  margin-top: 24px;
}

/* ================================================================
   #7 — POST-DOWNLOAD DEMO CTA
   Hidden by default, shown by JS when form iframe fires postMessage
   ================================================================ */
.ohg-post-download {
  background: linear-gradient(135deg, #f0f9f0 0%, #e8f4ff 100%);
  border: 2px solid #a8d8a8;
  border-radius: var(--ohg-radius);
  padding: 40px 48px;
  margin-top: 24px;
  display: none; /* shown by JS after form submit */
}

.ohg-post-download.is-visible {
  display: block;
  animation: ohg-fade-in 0.5s ease;
}

.ohg-post-download__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.ohg-post-download__eyebrow {
  font-size: 14px;
  color: #2d7a2d;
  font-weight: 700;
  margin: 0 0 6px;
}

.ohg-post-download__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ohg-navy);
  margin: 0 0 8px;
  line-height: 1.3;
}

.ohg-post-download__desc {
  font-size: 15px;
  color: var(--ohg-muted);
  margin: 0;
  line-height: 1.6;
  max-width: 480px;
}

.ohg-btn--demo {
  background: var(--ohg-navy);
  color: var(--ohg-white);
  padding: 14px 28px;
  font-size: 15px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ohg-btn--demo:hover {
  background: var(--ohg-blue);
  opacity: 1;
}

@keyframes ohg-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 680px) {
  .ohg-post-download { padding: 28px 22px; }
  .ohg-post-download__inner { flex-direction: column; }
  .ohg-post-download__title { font-size: 18px; }
}
