/* ==========================================================================
   CARCERAL EVIDENCE ROOM & DOCUMENT DESK
   Cheesborough Carceral Collections
   ========================================================================== */

:root {
  --navy: #091e36;
  --navy-dark: #050f1d;
  --navy-light: #102c4c;
  --navy-accent: #17385e;
  --gold: #c29b53;
  --gold-light: #fde047;
  --gold-warm: #dfc287;
  --gold-dim: #7d6537;
  --paper: #f4efe4;
  --paper-card: #ffffff;
  --paper-card-alt: #fbf9f4;
  --paper-border: #dcd4c3;
  --ink: #19222d;
  --ink-muted: #4b5563;
  --ink-faint: #6b7280;
  
  --stamp-red: #c92a2a;
  --stamp-red-bg: #fff5f5;
  --stamp-red-border: #ef4444;
  
  --stamp-gold: #b45309;
  --stamp-gold-bg: #fffbeb;
  --stamp-gold-border: #f59e0b;
  
  --stamp-blue: #1d4ed8;
  --stamp-blue-bg: #eff6ff;
  --stamp-blue-border: #3b82f6;
  
  --stamp-purple: #6b21a8;
  --stamp-purple-bg: #faf5ff;
  --stamp-purple-border: #a855f7;

  --stamp-teal: #0f766e;
  --stamp-teal-bg: #f0fdf4;
  --stamp-teal-border: #14b8a6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 4px; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Accessibility skip */
.pw-skip {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 99999;
  padding: 12px 20px;
  background: var(--navy);
  color: var(--gold-light);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--gold);
  border-radius: 4px;
  transition: top 0.2s ease;
}
.pw-skip:focus { top: 15px; }

/* Top Navigation Bar */
.pw-topbar {
  background: var(--gold);
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  padding: 0.65rem 1rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 2px solid #a8813b;
}
.pw-topbar a {
  color: #1a202c;
  text-decoration: none;
  padding: 0.2rem 0.4rem;
  transition: color 0.15s;
}
.pw-topbar a:hover { color: #fff; }
.pw-topbar a[aria-current="page"] {
  color: #091e36;
  border-bottom: 2px solid #091e36;
}

/* Secondary Archive Header */
.pw-subnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 12px max(20px, calc((100vw - 1240px)/2));
  background: var(--navy-dark);
  color: #e5e7eb;
  font-size: 11px;
  border-bottom: 1px solid rgba(194, 155, 83, 0.25);
}
.pw-brand {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--gold-warm);
  font-family: "Libre Baskerville", Georgia, serif;
}
.pw-subnav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
}
.pw-subnav-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px #10b981;
}

/* Hero Section */
.pw-hero {
  position: relative;
  background-color: var(--navy);
  background-image:
    radial-gradient(ellipse at 50% 20%, rgba(9, 30, 54, 0.85) 0%, rgba(5, 15, 29, 0.98) 100%),
    url("01_Photos/ShareImages/books-manuscripts-sketch.png");
  background-position: center 30%;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff6e8;
  padding: 50px max(22px, calc((100vw - 1240px)/2)) 46px;
  border-bottom: 4px solid var(--gold);
}
.pw-hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-warm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.pw-hero-kicker span.badge-top {
  background: rgba(194, 155, 83, 0.2);
  border: 1px solid var(--gold);
  padding: 2px 8px;
  border-radius: 3px;
}
.pw-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: center;
}
.pw-hero h1 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 16px;
}
.pw-hero h1 em {
  font-style: italic;
  color: var(--gold-warm);
}
.pw-hero-desc {
  color: #e2e8f0;
  font-size: 16px;
  line-height: 1.65;
  max-width: 580px;
}
.pw-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}
.pw-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 44, 76, 0.7);
  border: 1px solid rgba(194, 155, 83, 0.4);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}
.pw-hero-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pw-hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #050f1d;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: background 0.15s, transform 0.15s;
}
.pw-hero-btn-primary:hover {
  background: #fde047;
  transform: translateY(-1px);
}
.pw-hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(9, 30, 54, 0.85);
  border: 1.5px solid var(--gold);
  color: #fde047;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.pw-hero-btn-secondary:hover {
  background: rgba(16, 44, 76, 0.95);
  border-color: #fde047;
  color: #ffffff;
}

/* Executive 48-Hour Vault Notice Box */
.pw-hero-meta-box {
  background: rgba(9, 30, 54, 0.92);
  border: 1.5px solid rgba(194, 155, 83, 0.5);
  border-radius: 6px;
  padding: 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}
.pw-hero-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fde047;
  background: rgba(217, 119, 6, 0.3);
  border: 1px solid #f59e0b;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.pw-hero-meta-title {
  color: #ffffff;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 8px;
}
.pw-hero-meta-text {
  color: #e2e8f0;
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.pw-hero-meta-highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(194, 155, 83, 0.3);
  padding-top: 14px;
}
.pw-meta-highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pw-meta-highlight-item .highlight-icon {
  font-size: 20px;
  line-height: 1;
}
.pw-meta-highlight-item strong {
  color: #ffffff;
  font-size: 13.5px;
  display: block;
}
.pw-meta-highlight-item small {
  color: #cbd5e1;
  font-size: 11.5px;
}

/* 48-HOUR ROTATING ENGINE SECTION */
.pw-rotation-section {
  background: #0d2238;
  border-bottom: 3px solid var(--gold);
  padding: 36px max(22px, calc((100vw - 1240px)/2));
  color: #f8fafc;
}
.pw-rotation-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(194, 155, 83, 0.3);
  padding-bottom: 16px;
}
.pw-rotation-title-area h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pw-rotation-title-area p {
  color: #cbd5e1;
  font-size: 13px;
  margin-top: 4px;
}
.pw-timer-badge {
  background: #1e3a5f;
  border: 1px solid var(--gold);
  border-radius: 4px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.pw-timer-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-warm);
  font-weight: 600;
}
.pw-timer-clock {
  font-family: "JetBrains Mono", monospace;
  font-size: 18px;
  font-weight: 700;
  color: #fef08a;
  letter-spacing: 0.05em;
}

.pw-rotation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.pw-rotation-card {
  background: #142d48;
  border: 1px solid rgba(194, 155, 83, 0.4);
  border-top: 4px solid var(--gold);
  border-radius: 4px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.pw-rotation-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  border-color: var(--gold);
}
.pw-rotation-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.pw-stamp-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 3px;
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
}
.stamp-red { background: rgba(220, 38, 38, 0.25); color: #fca5a5; border: 1.5px solid #ef4444; }
.stamp-gold { background: rgba(217, 119, 6, 0.25); color: #fde047; border: 1.5px solid #f59e0b; }
.stamp-blue { background: rgba(37, 99, 235, 0.25); color: #93c5fd; border: 1.5px solid #3b82f6; }
.stamp-purple { background: rgba(147, 51, 234, 0.25); color: #d8b4fe; border: 1.5px solid #a855f7; }
.stamp-teal { background: rgba(13, 148, 136, 0.25); color: #5eead4; border: 1.5px solid #14b8a6; }

.pw-rotation-docket {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--gold-warm);
  background: rgba(0, 0, 0, 0.35);
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid rgba(194, 155, 83, 0.3);
}
.pw-rotation-card h3 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 18px;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 8px;
  font-weight: 700;
}
.pw-rotation-court {
  color: #94a3b8;
  font-size: 12px;
  margin-bottom: 12px;
}
.pw-rotation-quote {
  font-style: italic;
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid var(--gold);
  padding: 8px 12px;
  margin-bottom: 14px;
  border-radius: 0 3px 3px 0;
}
.pw-rotation-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.pw-tag-pill {
  font-size: 10px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 2px;
}

/* Actions in Rotation Cards */
.pw-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}
.btn-pw-view {
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  transition: background 0.15s, transform 0.15s;
}
.btn-pw-view:hover {
  background: #fde047;
  transform: translateY(-1px);
}
.pw-card-subactions {
  display: flex;
  gap: 8px;
}
.btn-pw-ipad {
  flex: 1;
  background: #1e293b;
  color: #fde047;
  border: 1.5px solid var(--gold);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  transition: all 0.15s;
}
.btn-pw-ipad:hover {
  background: #0f172a;
  color: #fff;
  border-color: #fde047;
}
.btn-pw-download {
  flex: 1;
  background: #fef3c7;
  color: #92400e;
  border: 1.5px solid #d97706;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  transition: all 0.15s;
}
.btn-pw-download:hover {
  background: #fde68a;
  color: #78350f;
}

/* MAIN ARCHIVE SECTION */
.pw-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 22px 70px;
}

/* Controls & Filter Bar */
.pw-controls-card {
  background: #ffffff;
  border: 1px solid var(--paper-border);
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.pw-search-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.pw-search-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.pw-search-wrap input {
  width: 100%;
  height: 48px;
  padding: 10px 42px 10px 16px;
  font-size: 15px;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  background: #f8fafc;
  color: var(--ink);
  transition: border-color 0.15s;
}
.pw-search-wrap input:focus {
  border-color: var(--gold);
  background: #ffffff;
}
.pw-search-clear {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  font-size: 18px;
  color: #94a3b8;
  padding: 6px;
}
.pw-search-clear:hover { color: var(--stamp-red); }

/* Quick Filter Chips */
.pw-filter-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.pw-pill {
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 20px;
  transition: all 0.15s ease;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pw-pill:hover {
  background: #edf2f7;
  border-color: #94a3b8;
}
.pw-pill[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.pw-pill-count {
  background: rgba(0, 0, 0, 0.1);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.pw-pill[aria-pressed="true"] .pw-pill-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Secondary Select Dropdowns */
.pw-dropdowns-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 14px;
  align-items: center;
  border-top: 1px solid #e2e8f0;
  padding-top: 16px;
}
.pw-select-wrap label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 5px;
}
.pw-select-wrap select {
  width: 100%;
  height: 42px;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
}
.pw-reset-btn {
  background: none;
  border: 1px dashed var(--stamp-red);
  color: var(--stamp-red);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 4px;
  height: 42px;
  margin-top: 18px;
}
.pw-reset-btn:hover {
  background: var(--stamp-red-bg);
}

/* Results Heading */
.pw-results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.pw-results-bar h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 24px;
  color: #091e36;
  font-weight: 700;
}
.pw-results-count {
  font-size: 14px;
  color: #1e293b;
  font-weight: 700;
}

/* Master Documents Grid */
.pw-documents-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.pw-document-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-left: 5px solid #091e36 !important;
  border-radius: 6px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 195px minmax(0, 1fr) 230px;
  gap: 24px;
  align-items: center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pw-document-card:hover {
  border-color: #94a3b8 !important;
  border-left-color: #c29b53 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
}

/* Left Column: Authentic Archival Docket Box */
.pw-card-meta-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1px solid #e2e8f0;
  padding-right: 18px;
}
.pw-docket-badge-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 3px solid #091e36;
  border-radius: 4px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pw-docket-seal {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #991b1b;
}
.pw-docket-code {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  color: #091e36;
  word-break: break-all;
}

.pw-meta-item strong.pw-filing-date,
.pw-meta-item strong {
  display: block;
  color: #091e36 !important;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.pw-meta-item span.pw-filing-metrics,
.pw-meta-item span {
  display: block;
  color: #334155 !important;
  font-size: 12px;
  font-weight: 600;
}
.pw-meta-category-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 4px;
  width: fit-content;
}
.cat-murder { background: #fee2e2 !important; color: #7f1d1d !important; border: 1.5px solid #ef4444 !important; }
.cat-drugs { background: #f3e8ff !important; color: #581c87 !important; border: 1.5px solid #a855f7 !important; }
.cat-corruption { background: #fef3c7 !important; color: #78350f !important; border: 1.5px solid #f59e0b !important; }
.cat-sex-trafficking { background: #fce7f3 !important; color: #831843 !important; border: 1.5px solid #ec4899 !important; }
.cat-fraud { background: #ccfbf1 !important; color: #134e4a !important; border: 1.5px solid #14b8a6 !important; }

/* Middle Column: Case Body - High Contrast & Guaranteed Readability */
.pw-card-body-col {
  min-width: 0;
}
.pw-card-body-col h3,
.pw-card-body-col .pw-doc-title {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 21px;
  line-height: 1.35;
  color: #091e36 !important;
  font-weight: 700;
  margin-bottom: 8px;
}
.pw-card-body-col .pw-doc-type-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #92400e !important;
  margin-bottom: 6px;
  display: block;
}
.pw-card-body-col .pw-doc-summary {
  font-size: 15px;
  font-weight: 500;
  color: #0f172a !important; /* Deep obsidian black - never washed out */
  line-height: 1.6;
  margin-bottom: 10px;
}
.pw-card-body-col .pw-doc-court {
  font-size: 13px;
  color: #1e293b !important; /* Solid dark charcoal */
  font-weight: 700;
  line-height: 1.4;
}
.pw-card-body-col .pw-doc-receipt-quote {
  font-style: italic;
  font-size: 13px;
  font-weight: 500;
  color: #091e36 !important;
  background: #f1f5f9;
  border-left: 4px solid #b45309;
  padding: 10px 14px;
  margin-top: 10px;
  border-radius: 0 4px 4px 0;
  line-height: 1.5;
}

/* Document Card Stamp Badges on White Cards - High Contrast & Distinct Colors */
.pw-document-card .pw-stamp-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  margin-bottom: 6px;
}
.pw-document-card .stamp-gold {
  background: #fffbeb !important;
  color: #92400e !important;
  border: 1.5px solid #d97706 !important;
}
.pw-document-card .stamp-blue {
  background: #eff6ff !important;
  color: #1e40af !important;
  border: 1.5px solid #2563eb !important;
}
.pw-document-card .stamp-red {
  background: #fef2f2 !important;
  color: #991b1b !important;
  border: 1.5px solid #dc2626 !important;
}
.pw-document-card .stamp-purple {
  background: #faf5ff !important;
  color: #6b21a8 !important;
  border: 1.5px solid #9333ea !important;
}
.pw-document-card .stamp-teal {
  background: #f0fdfa !important;
  color: #115e59 !important;
  border: 1.5px solid #0d9488 !important;
}

/* Right Column: High-Contrast Action Buttons (NO MORE BLANK BUTTONS!) */
.pw-card-actions-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pw-card-actions-col .btn-pw-view {
  background: #091e36;
  border: 1.5px solid var(--gold);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  min-height: 44px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(9, 30, 54, 0.25);
  transition: all 0.15s;
}
.pw-card-actions-col .btn-pw-view:hover {
  background: #102c4c;
  border-color: #fde047;
  color: #fde047;
}

.pw-card-actions-col .btn-pw-ipad-direct {
  background: #1e293b;
  border: 1.5px solid var(--gold);
  color: #fde047;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 8px 12px;
  border-radius: 4px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.15s;
}
.pw-card-actions-col .btn-pw-ipad-direct:hover {
  background: #0f172a;
  border-color: #fde047;
  color: #ffffff;
}

.pw-card-actions-col .btn-pw-download-action {
  background: #fef3c7;
  border: 1.5px solid #d97706;
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 8px 12px;
  border-radius: 4px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.15s;
}
.pw-card-actions-col .btn-pw-download-action:hover {
  background: #fde68a;
  color: #78350f;
}

.pw-card-actions-col .btn-pw-source {
  font-size: 11px;
  color: var(--navy);
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  padding: 4px 0;
  border-top: 1px dotted #cbd5e1;
}
.pw-card-actions-col .btn-pw-source:hover {
  text-decoration: underline;
  color: #991b1b;
}

/* Empty State */
.pw-empty {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border: 1px solid var(--paper-border);
  border-radius: 6px;
}
.pw-empty h3 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 8px;
}
.pw-empty p {
  color: var(--ink-muted);
  font-size: 14px;
  margin-bottom: 18px;
}

/* Show More Button */
.pw-more-wrap {
  text-align: center;
  margin-top: 30px;
}
.pw-more-btn {
  background: var(--navy);
  color: #fff;
  border: 1.5px solid var(--gold);
  border-radius: 4px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  min-height: 48px;
  transition: all 0.15s;
}
.pw-more-btn:hover {
  background: var(--navy-light);
  border-color: #fde047;
}

/* Footer */
.pw-footer {
  background: var(--navy-dark);
  color: #94a3b8;
  padding: 40px 20px;
  text-align: center;
  font-size: 13px;
  border-top: 4px solid var(--gold);
}
.pw-footer a { color: var(--gold-warm); }

/* Responsive adjustments for iPad & Mobile Phone */
@media (max-width: 900px) {
  .pw-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .pw-document-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }
  .pw-card-meta-col {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid #f1f5f9;
    padding-right: 0;
    padding-bottom: 12px;
    align-items: center;
  }
  .pw-docket-badge-box {
    flex-direction: row;
    padding: 6px 10px;
    gap: 8px;
    align-items: center;
  }
  .pw-dropdowns-row {
    grid-template-columns: 1fr;
  }
}
