/* ============================================================
   VARIABLES & TOKENS
   ============================================================ */
:root {
  --brand:          #222f37;
  --brand-dark:     #222f37;
  --brand-light:    #e4e0c7;
  --accent-gold:    #d1af4a;
  --accent-gold-soft:#d9be65;
  --bg-page:        #ffffff;
  --bg-card:        #fbf8ee;
  --text-primary:   #212121;
  --text-secondary: #3f4a52;
  --text-muted:     #6c757d;
  --border-color:   #cccccc;
  --shadow-card:    0 1px 2px rgba(0,0,0,0.07);
  --radius-card:    4px;
  --font-body:      'Century Schoolbook', Georgia, serif;
  --font-heading:   'Risque', 'Century Schoolbook', Georgia, serif;
  --navbar-height:  68px;

  /* Category colors */
  --cat-filing:        #222f37;
  --cat-communication: #0891b2;
  --cat-action:        #6d6875;
  --cat-ruling:        #b45309;
  --cat-payment:       #059669;
  --cat-breach:        #92400e;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

.container { max-width: 80rem; }
.container.home-container,
.container.home-container.container,
.main-content > .home-container {
  max-width: 60rem !important;
  container-type: inline-size;
}

.home-container h1,
.home-container .case-hero h1 {
  font-size: clamp(2.5rem, 10cqi, 14rem);
  line-height: 1;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-size: 21px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.15;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--brand-dark); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-color: #ffffff;
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--accent-gold);
  --bs-btn-hover-color: var(--accent-gold);
  --bs-btn-active-bg: var(--brand);
  --bs-btn-active-border-color: var(--accent-gold);
  --bs-btn-active-color: var(--accent-gold);
  --bs-btn-focus-shadow-rgb: 34, 47, 55;
  --bs-btn-disabled-bg: var(--brand);
  --bs-btn-disabled-border-color: var(--brand);
  --bs-btn-disabled-color: #ffffff;
}

/* ============================================================
   NAVBAR — light, matching luckyhare.com
   ============================================================ */
.site-navbar {
  background: var(--brand-dark);
  border-bottom: 3px solid var(--accent-gold);
  height: var(--navbar-height);
}

.site-navbar a,
.site-navbar a:hover,
.site-navbar strong {
  color: #ffffff;
  font-family: var(--font-heading);
}

.navbar-logo-lh {
  height: 36px;
  width: auto;
}

.navbar-logo-ntp {
  height: 40px;
  width: auto;
}

.navbar-logo-divider {
  color: var(--border-color);
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  padding: 0 4px;
}

.site-navbar .nav-link {
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  padding: 6px 14px !important;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: var(--accent-gold) !important;
  text-decoration: none;
}

.site-navbar .navbar-toggler {
  border-color: var(--border-color);
}

.site-navbar .navbar-toggler-icon {
  filter: invert(0.4);
}

/* ============================================================
   MAIN CONTENT OFFSET
   ============================================================ */
.main-content {
  padding-top: calc(var(--navbar-height) + 40px);
  padding-bottom: 80px;
  min-height: calc(100vh - var(--navbar-height));
}

/* ============================================================
   CARD COMPONENT
   ============================================================ */
.site-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 36px 40px;
  margin-bottom: 24px;
}

.site-card-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--text-primary);
}

/* ============================================================
   HERO / CASE HEADER
   ============================================================ */
.case-hero {
  padding: 0 0 40px 0;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
}

.case-hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
  margin-bottom: 16px;
}

.case-hero h1 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-size: clamp(3.5rem, 5vw, 5rem);
  margin-bottom: 16px;
  line-height: 1.1;
}

.case-hero-sub {
  color: var(--text-secondary);
  font-size: 24px;
  margin-bottom: 28px;
}

.case-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.case-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 2px;
  padding: 5px 14px;
  font-size: 13px;
}

/* ============================================================
   STATUS BADGE
   ============================================================ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 0;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--text-secondary);
}

.status-badge .status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

.status-active .status-dot { background: #bc1717; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ============================================================
   KEY FACTS CARDS
   ============================================================ */
.fact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 20px;
  height: 100%;
}

.fact-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.fact-card h5 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.fact-card p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.6;
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-heading {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border-color);
  line-height: 1.2;
}

.section-heading-icon {
  color: var(--brand);
  font-size: 20px;
  margin-right: 4px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 16px;
}

.sidebar-card-header {
  background: var(--brand-dark);
  color: white;
  padding: 10px 16px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-card-body { padding: 14px 16px; }

.sidebar-stat {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-stat:last-child { border-bottom: none; }

.sidebar-stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.sidebar-stat-value {
  font-size: 21px;
  font-weight: 600;
  color: var(--text-primary);
}

.sidebar-link-list { list-style: none; padding: 0; margin: 0; }

.sidebar-link-list li {
  border-bottom: 1px solid var(--border-color);
}

.sidebar-link-list li:last-child { border-bottom: none; }

.sidebar-link-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  font-size: 21px;
  color: var(--brand);
  font-weight: 500;
}

.sidebar-link-list a:hover {
  color: var(--brand-dark);
  text-decoration: none;
}

/* ============================================================
   LEGAL BASIS SECTION
   ============================================================ */
.claim-card {
  border-left: 3px solid var(--brand);
  background: var(--bg-card);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  padding: 18px 20px;
  margin-bottom: 12px;
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.claim-card h5 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.claim-card p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ============================================================
   TIMELINE PAGE
   ============================================================ */
.timeline-filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.timeline-filter-bar .filter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-right: 4px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border-color);
  background: var(--bg-page);
  color: var(--text-secondary);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

.filter-btn[data-cat="filing"].active      { background: var(--cat-filing); border-color: var(--cat-filing); }
.filter-btn[data-cat="communication"].active { background: var(--cat-communication); border-color: var(--cat-communication); }
.filter-btn[data-cat="action"].active      { background: var(--cat-action); border-color: var(--cat-action); }
.filter-btn[data-cat="ruling"].active      { background: var(--cat-ruling); border-color: var(--cat-ruling); }
.filter-btn[data-cat="payment"].active     { background: var(--cat-payment); border-color: var(--cat-payment); }
.filter-btn[data-cat="breach"].active      { background: var(--cat-breach); border-color: var(--cat-breach); }

/* Vertical timeline */
.timeline-track {
  position: relative;
  padding-left: 0;
}

.timeline-track::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-entry {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  position: relative;
}

.timeline-node {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--bg-page);
  color: white;
  font-size: 18px;
  background: var(--brand);
}

/* Category dot colors */
.timeline-entry[data-cat="filing"]        .timeline-dot { background: var(--cat-filing); }
.timeline-entry[data-cat="communication"] .timeline-dot { background: var(--cat-communication); }
.timeline-entry[data-cat="action"]        .timeline-dot { background: var(--cat-action); }
.timeline-entry[data-cat="ruling"]        .timeline-dot { background: var(--cat-ruling); }
.timeline-entry[data-cat="payment"]       .timeline-dot { background: var(--cat-payment); }
.timeline-entry[data-cat="breach"]        .timeline-dot { background: var(--cat-breach); }

.timeline-body {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.timeline-body-header {
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.timeline-date {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
  margin-top: 2px;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-primary);
  flex: 1;
}

.timeline-category-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.pill-filing        { background: #fce8e8; color: var(--cat-filing); }
.pill-communication { background: #cffafe; color: var(--cat-communication); }
.pill-action        { background: #ede9fe; color: var(--cat-action); }
.pill-ruling        { background: #fef3c7; color: var(--cat-ruling); }
.pill-payment       { background: #d1fae5; color: var(--cat-payment); }
.pill-breach        { background: #fee2e2; color: var(--cat-breach); }

.timeline-body-content { padding: 14px 18px; }

.timeline-description {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.6;
}

.timeline-docs {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 2px;
  border: 1px solid var(--border-color);
  background: var(--bg-page);
  color: var(--brand);
  font-size: 13px;
  font-weight: 500;
}

.doc-link:hover {
  background: var(--brand-light);
  border-color: var(--brand);
  color: var(--brand-dark);
  text-decoration: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--brand-dark);
  color: white;
  margin-top: 64px;
}

.footer-divider { border-color: rgba(255,255,255,0.12); margin: 0; }

.text-footer-muted { color: rgba(255,255,255,0.55) !important; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-blue      { color: var(--brand) !important; }
.bg-blue-light  { background: var(--brand-light) !important; }

.page-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
}

.page-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 6px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 17px;
  margin-bottom: 0;
}

.specimen {
  display: block;
  width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid #ddd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
  .specimen {
    width: 80%;
  }
}

/* ============================================================
   DOCUMENT LIST (Evidence Packet page)
   ============================================================ */
.doc-list { }

.doc-list-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.doc-list-item:last-child { border-bottom: none; }

.doc-list-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.doc-list-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
}

.doc-list-date {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.doc-list-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.5;
}

/* ============================================================
   POST CONTENT
   ============================================================ */
.post-content {
  font-size: 18px;
  line-height: 1.75;
}

.post-content h5 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.post-content p { margin-bottom: 1.1rem; }

.post-content ul, .post-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.post-content li { margin-bottom: 0.4rem; }

.post-content hr {
  margin: 1.5rem 0;
  border-color: var(--border-color);
}

.post-content strong { color: var(--text-primary); }

/* ============================================================
   NAVBAR DROPDOWN
   ============================================================ */
.site-navbar .dropdown-menu {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 6px 0;
  min-width: 180px;
  background: var(--bg-card);
}

.site-navbar .dropdown-item {
  font-size: 21px;
  padding: 8px 16px;
  color: var(--text-primary);
  font-weight: 500;
}

.site-navbar .dropdown-item:hover {
  background: var(--brand-light);
  color: var(--brand-dark);
}

/* ============================================================
   CHAPTER LAYOUT — sidebar + content
   ============================================================ */
.chapter-sidebar {
  position: sticky;
  top: calc(var(--navbar-height) + 24px);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.chapter-sidebar-header {
  background: var(--brand-dark);
  color: white;
  padding: 10px 16px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.chapter-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.chapter-sidebar-list li {
  border-bottom: 1px solid var(--border-color);
}

.chapter-sidebar-list li:last-child { border-bottom: none; }

.chapter-sidebar-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.15s;
}

.chapter-sidebar-link:hover {
  background: var(--brand-light);
  text-decoration: none;
  color: var(--text-primary);
}

.chapter-sidebar-link.active {
  border-left: 3px solid var(--brand);
  background: var(--brand-light);
  padding-left: 13px;
}

.chapter-sidebar-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--bg-page);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 900;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 2px;
}

.chapter-sidebar-link.active .chapter-sidebar-num {
  background: var(--brand);
  color: white;
}

.chapter-sidebar-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.chapter-sidebar-text strong {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 900;
}

.chapter-sidebar-text small {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.chapter-sidebar-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border-color);
}

.chapter-sidebar-docs-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}

.chapter-sidebar-docs-link:hover {
  color: var(--brand-dark);
  text-decoration: none;
}

/* Mobile chapter nav */
.chapter-mobile-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.chapter-mobile-nav::-webkit-scrollbar { display: none; }

.chapter-mobile-link {
  display: inline-block;
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 2px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.chapter-mobile-link:hover { background: var(--brand-light); text-decoration: none; color: var(--text-primary); }
.chapter-mobile-link.active { background: var(--brand); color: white; border-color: var(--brand); }

/* Chapter content area */
.chapter-hero {
  padding: 0 0 28px 0;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--border-color);
}

.chapter-eyebrow {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
  margin-bottom: 12px;
}

.chapter-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.1;
}

.chapter-dek {
  font-size: 20px;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.chapter-body {
  line-height: 1.75;
}

.chapter-body h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.chapter-body h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 900;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.chapter-body p { margin-bottom: 1.1rem; }

.chapter-body ul, .chapter-body ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.chapter-body li { margin-bottom: 0.4rem; }

.chapter-body blockquote {
  border-left: 4px solid var(--brand);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  color: var(--text-secondary);
  font-style: italic;
}

.chapter-body blockquote p:last-child { margin-bottom: 0; }

.chapter-body figure {
  margin: 2rem 0;
}

.chapter-body figure img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
}

.chapter-body figcaption {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}

/* Prev / Next footer */
.chapter-nav-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 2px solid var(--border-color);
}

.chapter-nav-prev,
.chapter-nav-next {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  background: var(--bg-card);
  color: var(--text-primary);
  text-decoration: none;
  max-width: 48%;
}

.chapter-nav-prev:hover,
.chapter-nav-next:hover {
  background: var(--brand-light);
  text-decoration: none;
  color: var(--text-primary);
}

.chapter-nav-prev small,
.chapter-nav-next small {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
}

.chapter-nav-prev span,
.chapter-nav-next span {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 900;
}

.chapter-nav-next { margin-left: auto; text-align: right; }

/* Counsel review banner */
.counsel-banner {
  background: var(--brand-dark);
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  z-index: 1020;
}

/* Adjust main content for counsel banner */
body.has-counsel-banner .main-content {
  padding-top: calc(var(--navbar-height) + 36px + 40px);
}

body.has-counsel-banner .chapter-sidebar {
  top: calc(var(--navbar-height) + 36px + 24px);
}

/* Court Filed badge */
.badge-filed {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 2px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #e8f4f0;
  color: #065f46;
  border: 1px solid #a7f3d0;
  white-space: nowrap;
}

/* Events table */
.events-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 18px;
}

.events-table thead th {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 10px 12px;
  border-bottom: 2px solid var(--border-color);
  vertical-align: top;
}

.events-table td:first-child,
.events-table th:first-child {
  white-space: nowrap;
}

.events-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

.events-table tbody tr:last-child td { border-bottom: none; }

@media (max-width: 599px) {
  .events-table thead { display: none; }
  .events-table tbody tr {
    display: block;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 12px;
    background: var(--bg-card);
  }
  .events-table tbody td {
    display: block;
    padding: 2px 0;
    border-bottom: none;
  }
  .events-table tbody td::before {
    content: attr(data-label);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    display: block;
  }
}

/* Chapter documents list */
.chapter-doc-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.chapter-doc-list li {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  margin-bottom: 8px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.chapter-doc-list li a {
  font-weight: 600;
  font-size: 16px;
}

.chapter-doc-list li .badge-filed {
  margin-left: auto;
}

/* Side-by-side photo pair */
.photo-pair {
  display: flex;
  gap: 2rem;
  margin: 1.5rem 0;
}

.photo-pair figure {
  flex: 1;
  margin: 0;
}

.photo-pair img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
}

@media (max-width: 599px) {
  .photo-pair {
    flex-direction: column;
  }
}

/* Chapter closing line */
.chapter-closing {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 15px;
  color: var(--text-muted);
  font-style: italic;
}

/* Homepage chapter cards */
.chapter-card {
  display: block;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  margin-bottom: 16px;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.chapter-card:hover {
  background: var(--brand-light);
  border-color: var(--brand);
  text-decoration: none;
  color: var(--text-primary);
}

.chapter-card-eyebrow {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 4px;
}

.chapter-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.chapter-card-dek {
  font-size: 15px;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.chapter-card p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}

.chapter-card-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}

/* ============================================================
   STORY CARDS — alternating image + caption layout
   ============================================================ */
.story-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.story-card-link {
  display: block;
  cursor: zoom-in;
  height: 100%;
}

.story-card-link:hover .story-card-img {
  filter: brightness(1.05);
}

.story-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.15s ease;
}

.story-modal-img {
  max-height: 92vh;
  width: auto;
  max-width: 100%;
  border-radius: var(--radius-card);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.story-modal-close {
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  padding: 10px;
}

.story-card-body {
  padding: 32px 36px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-card-body .card-text {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0;
}

@media (max-width: 767px) {
  .story-card-link {
    height: auto;
  }
  .story-card-img {
    height: auto;
  }
  .story-card-body {
    padding: 20px 22px;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
  .case-hero { padding: 0 0 28px 0; }
  .case-hero h1 { font-size: 2rem; }
  .case-meta-chips { gap: 6px; }
  .case-meta-chip { font-size: 12px; padding: 4px 10px; }
  .timeline-track::before { left: 20px; }
  .timeline-dot { width: 40px; height: 40px; font-size: 14px; }
  .timeline-body-header { flex-direction: column; gap: 6px; }
  .main-content { padding-top: calc(var(--navbar-height) + 24px); }
  .site-card { padding: 22px 20px; }
  .section-heading { font-size: 1.5rem; }
}
