:root {
  --brand: #4B2C2B;
  --brand-deep: #2c1917;
  --paper: #f5f5f2;
  --ink: #2a1c18;
  --ink-soft: #6b5a52;
  --accent: #800020;
  --accent-soft: #D3B5B0;
  --line: #e6dcd6;
  --card: #ffffff;
  --radius: 10px;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  padding: 56px 0 48px;
  border-bottom: 4px solid var(--accent);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin: 0 0 12px;
}

.site-header h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 48px);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: #e8d9d3;
  max-width: 640px;
  margin: 0;
}

/* Compact header (interior pages) */
.site-header-compact {
  padding: 16px 0;
  border-bottom: 4px solid var(--accent);
}

.compact-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  color: #fff;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
}

.compact-brand:hover { color: var(--accent-soft); }

.compact-brand .compact-tag {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-soft);
}

/* Legal banner */
.legal-banner {
  background: var(--accent-soft);
  border-bottom: 1px solid var(--accent);
}

.legal-banner p {
  margin: 0;
  padding: 10px 0;
  font-size: 13px;
  color: #4a1f26;
  text-align: center;
}

.legal-banner a {
  color: #4a1f26;
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}

.legal-banner a:hover { color: var(--brand); }

/* Case switcher (hub-level, sits above the per-case sub-nav) */
.case-switcher {
  background: #241413;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.case-switcher .wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
}

.case-switcher a {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}

.case-switcher .hub-home {
  color: var(--accent-soft);
  border-right: 1px solid rgba(255,255,255,0.15);
  margin-right: 4px;
}

.case-switcher .hub-home:hover { color: #fff; }

.case-switcher .case-chip {
  color: #9c8880;
  border-radius: 999px;
}

.case-switcher .case-chip:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.case-switcher .case-chip.active {
  color: #fff;
  background: var(--accent);
}

/* Nav */
.site-nav {
  background: var(--brand-deep);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  gap: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
}

.site-nav a {
  display: inline-block;
  flex: 0 0 auto;
  padding: 12px 10px;
  color: #cbb6ad;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover {
  color: #fff;
}

.site-nav a.active {
  color: #fff;
  border-bottom-color: var(--accent-soft);
}

/* Content pages (background articles) */
.content-page {
  max-width: 760px;
  padding-top: 40px;
  padding-bottom: 64px;
}

.content-page h2 {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--brand);
  margin: 40px 0 14px;
}

.content-page h2:first-child { margin-top: 0; }

.content-page p {
  font-size: 16px;
  color: #3a2c27;
  margin: 0 0 16px;
}

.content-page ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.content-page li {
  margin-bottom: 8px;
  font-size: 16px;
  color: #3a2c27;
}

.content-page a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent-soft);
  text-underline-offset: 2px;
}

.content-page a:hover { color: var(--accent); }

.lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--ink-soft);
  border-left: 3px solid var(--accent);
  padding-left: 18px;
  margin-bottom: 32px;
}

.sources-box {
  margin-top: 40px;
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sources-box h3 {
  font-family: var(--serif);
  font-size: 17px;
  margin: 0 0 12px;
  color: var(--brand);
}

.sources-box ol {
  margin: 0;
  padding-left: 20px;
}

.sources-box li {
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--ink-soft);
}

/* Hub case index */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

a.case-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none !important;
  color: inherit;
  box-shadow: 0 1px 3px rgba(75, 44, 43, 0.06);
  transition: box-shadow 0.15s, border-color 0.15s;
}

.case-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(75, 44, 43, 0.14);
}

.case-card-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--accent-soft);
  color: #5a1e1a;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.case-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0 0 10px;
  color: var(--brand);
}

.case-card p {
  font-size: 14.5px;
  color: #3a2c27;
  margin: 0 0 14px;
}

.case-card-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
}

/* Layout */
.layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 64px;
  align-items: start;
}

@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; }
}

/* Facts card */
.facts-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: sticky;
  top: 64px;
  box-shadow: 0 1px 3px rgba(75, 44, 43, 0.08);
}

.facts-card h2 {
  font-family: var(--serif);
  font-size: 20px;
  margin: 0 0 18px;
  color: var(--brand);
}

.facts-card dl { margin: 0; }

.facts-card dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 16px;
}

.facts-card dt:first-child { margin-top: 0; }

.facts-card dd {
  margin: 4px 0 0;
  font-size: 14.5px;
  color: var(--ink);
}

#status-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: #5a1e1a;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
}

.facts-note {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.docket-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.docket-link:hover { color: var(--accent); }

/* Timeline */
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--brand);
  padding-bottom: 12px;
}

.timeline-header h2 {
  font-family: var(--serif);
  font-size: 26px;
  margin: 0;
  color: var(--brand);
}

.last-updated {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line);
}

.entry {
  position: relative;
  padding: 4px 0 32px 28px;
  scroll-margin-top: 56px;
}

.entry:target .entry-card {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.entry::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 2px var(--accent);
}

.entry:first-child::before {
  background: var(--brand);
  box-shadow: 0 0 0 2px var(--brand);
  width: 14px;
  height: 14px;
  left: -8px;
}

.entry-date {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.entry-date:hover {
  text-decoration: underline;
  color: var(--brand);
}

.entry-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 8px;
  box-shadow: 0 1px 3px rgba(75, 44, 43, 0.06);
}

.entry-card h3 {
  font-family: var(--serif);
  font-size: 19px;
  margin: 0 0 8px;
  color: var(--ink);
}

.entry-card p {
  margin: 0 0 12px;
  font-size: 15px;
  color: #3a2c27;
}

.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--brand);
  color: #fff;
  padding: 3px 9px;
  border-radius: 999px;
}

.entry-source {
  font-size: 13px;
  color: var(--ink-soft);
}

.entry-source a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.entry-source a:hover { color: var(--accent); }

/* Media citations ("In the Media" page) */
.media-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.media-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: 0 1px 3px rgba(75, 44, 43, 0.06);
}

.media-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.media-outlet {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--brand);
  padding: 3px 10px;
  border-radius: 999px;
}

.media-date {
  font-size: 12.5px;
  color: var(--ink-soft);
}

.media-card h3 {
  font-family: var(--serif);
  font-size: 19px;
  margin: 12px 0 8px;
  color: var(--ink);
}

.media-card blockquote {
  margin: 0 0 10px;
  padding-left: 16px;
  border-left: 3px solid var(--accent-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
}

.media-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.media-source {
  font-size: 13px;
  color: var(--ink-soft);
}

.media-source a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.media-source a:hover { color: var(--accent); }

/* Contact form */
.contact-form {
  margin-top: 28px;
  max-width: 560px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 6px;
}

.form-field .optional {
  font-weight: 400;
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: normal;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent-soft);
  outline-offset: 1px;
  border-color: var(--accent);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-privacy-note {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.contact-form button[type="submit"] {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  cursor: pointer;
}

.contact-form button[type="submit"]:hover {
  background: #5c0018;
}

/* Footer */
.site-footer {
  background: var(--brand-deep);
  color: #cbb6ad;
  padding: 28px 0 36px;
  font-size: 13px;
}

.site-footer p { margin: 0 0 8px; max-width: 760px; }
.site-footer strong { color: #fff; }
.site-footer code {
  background: rgba(255,255,255,0.1);
  padding: 1px 5px;
  border-radius: 4px;
}

.footer-links {
  margin-top: 12px !important;
  font-size: 12.5px;
}

.footer-links a {
  color: var(--accent-soft);
  font-weight: 600;
  text-decoration: underline;
}

.footer-links a:hover { color: #fff; }

.footer-links .sep { margin: 0 8px; opacity: 0.5; }

/* Cookie consent banner */
#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--brand-deep);
  border-top: 3px solid var(--accent);
  z-index: 200;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
}

.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
}

.cookie-banner-inner p {
  margin: 0;
  color: #e8d9d3;
  font-size: 13.5px;
  max-width: 620px;
}

.cookie-banner-inner a {
  color: var(--accent-soft);
  font-weight: 700;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner-actions button {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  border: none;
}

#cookie-accept { background: var(--accent); color: #fff; }
#cookie-accept:hover { background: #5c0018; }

#cookie-decline {
  background: transparent;
  color: #e8d9d3;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}
#cookie-decline:hover { border-color: #fff !important; color: #fff; }
