/*
 * File: dispatches.css
 * Version: 1.0.0
 * Last Modified: 2026-02-04
 * Last Deploy: 2026-02-26 17:42:43
 */

/* =========================================================
   Dispatches v4.2 — FULL DROP-IN (v4 + v4.1 + v4.2)
   This file includes the complete base plus all fixes.
   ========================================================= */


/* =====================================================================
   DISPATCHES FROM THE RANCH — CSS
   Template: dispatches.php
   Design parent: timeline_origin.css (Origin)

   Intent:
   - Reduce vertical bloat (see more per screen)
   - Replace board/grid feel with a left-spine log
   - Keep handmade tone via typography and tiny details (not props)
   - No faux status UI
   ===================================================================== */

/* ===== Page canvas (lighter than corkboard) ===== */
.dispatches-wrapper {
  /* Warm paper field instead of heavy cork */
  background: #f4efe6;
  min-height: 100vh;
  margin: 20px auto;
  max-width: 1300px;

  /* Reduce the "poster mat" effect */
  border: 24px solid #fff;
  padding: 36px !important;
  position: relative;
}

/* Subtle paper grain (quieter than previous crosshatch) */
.dispatches-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgb(0 0 0 / 2%), rgb(0 0 0 / 2%) 1px, transparent 1px, transparent 6px),
    repeating-linear-gradient(0deg, rgb(0 0 0 / 2%), rgb(0 0 0 / 2%) 1px, transparent 1px, transparent 6px);
  opacity: 0.18;
  pointer-events: none;
}

/* ===== Layout: main wrapper (vertical stack) ===== */
.dispatches-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;
}

/* ===== Content wrapper: sidebar on right, articles on left ===== */
.dispatches-content-wrapper {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: flex-start;
}

.incident-board-grid {
  flex: 1;
  min-width: 0;
}

.dispatches-sidebar {
  flex: 0 0 280px;
  width: 280px;
  position: sticky;
  top: 20px;
}

.dispatches-sidebar-widget {
  background: #fff;
  border: 1px solid rgb(0 0 0 / 8%);
  box-shadow:
    0 1px 3px rgb(0 0 0 / 8%),
    0 10px 22px rgb(0 0 0 / 6%);
  padding: 18px;
  margin-block: 0 12px;
  position: relative;
  margin-top: 10px;
}

/* Remove pushpin theatrics in v3 */
.dispatches-sidebar-widget::before {
  content: none;
}

.dispatches-sidebar-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: #2c2c2c;
  margin: 0 0 10px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgb(0 0 0 / 18%);
}

.dispatches-sidebar-widget p,
.dispatches-sidebar-widget a,
.dispatches-sidebar-widget li {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.dispatches-sidebar-widget p {
  font-size: 14px;
  line-height: 1.55;
  color: rgb(0 0 0 / 70%);
  margin: 0 0 10px 0;
}

.dispatches-sidebar-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dispatches-sidebar-widget li {
  border-bottom: 1px solid rgb(0 0 0 / 7%);
  padding-block: 8px;
}

.dispatches-sidebar-widget li:last-child {
  border-bottom: 0;
}

.dispatches-sidebar-widget a {
  font-size: 14px;
  color: rgb(0 0 0 / 72%);
  text-decoration: none;
}

.dispatches-sidebar-widget a:hover {
  color: rgb(0 0 0 / 90%);
}

/* ===== Header Section: hero + CTA side by side ===== */
.dispatches-header-section {
  display: flex;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 40px;
  align-items: flex-start;
}

/* Hero card (title, subtitle, description) */
.dispatches-hero {
  flex: 1;
  padding: 60px 40px;
  background: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  position: relative;
  text-align: center;
  margin-top: 58px;
}

/* Diamond icon above hero */
.dispatches-hero::before {
  content: '✦';
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 40px;
  color: #999;
}

.board-title {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  color: #333;
  margin: 0 0 20px;
}

.board-subtitle {
  font-family: Caveat, cursive;
  font-size: 28px;
  color: #666;
  margin: 0 0 20px;
}

.board-description {
  font-family: Inter, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  max-width: 600px;
  margin: 0 auto;
}

/* CTA card - to the right of hero */
.dispatches-cta {
  flex: 0 0 300px;
  background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
  border: 3px solid #f0e6d2;
  box-shadow: 0 6px 30px rgba(0,0,0,0.12);
  padding: 50px 30px 30px;
  text-align: center;
  position: relative;
  margin-top: 55px;
}

.dispatches-cta-icon {
  position: absolute;
  top: -55px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
  font-size: 50px;
}

.dispatches-cta-label {
  font-family: 'Caveat', cursive;
  font-size: 24px;
  color: #999;
  margin-bottom: 20px;
}

.dispatches-cta-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: #333;
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.dispatches-cta-button {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #fff !important;
  background: #333 !important;
  padding: 12px 24px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.dispatches-cta-button:hover {
  background: #555 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Responsive: stack header on narrow screens */
@media (max-width: 800px) {
  .dispatches-header-section {
    flex-direction: column;
    align-items: center;
  }

  .dispatches-cta {
    flex: none;
    width: 100%;
    max-width: 350px;
  }
}

/* ===== Sort Controls ===== */
.dispatches-sort-controls {
  max-width: 980px;
  margin: 0 auto 20px;
  padding: 0 20px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #666;
}

.sort-label {
  margin-right: 8px;
}

.sort-option {
  color: #888;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.sort-option:hover {
  color: #333;
  background: rgba(0, 0, 0, 0.05);
}

.sort-option.active {
  color: #333;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.08);
}

.sort-divider {
  color: #ccc;
  margin: 0 4px;
}

/* ===== Timeline list: left spine + single column ===== */
.incident-board-grid {
  /* Override previous grid */
  display: block;
  max-width: 980px;
  margin-inline: auto;
  padding-block: 10px 26px;
  position: relative;
}

/* Left spine (v4: felt more than seen) */
.incident-board-grid::before {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-start: 20px;
  border-inline-start: 1px solid rgb(0 0 0 / 18%);
  opacity: 0.35;
  pointer-events: none;
}

/* ===== Card: filed-note, compact ===== */
.incident-card {
  background: #fff;
  border: 1px solid rgb(0 0 0 / 8%);
  box-shadow:
    0 1px 3px rgb(0 0 0 / 7%),
    0 10px 22px rgb(0 0 0 / 6%);

  /* Make room for spine + dot */
  margin-inline-start: 54px;
  margin-block: 0 18px;
  padding-block: 16px;
  padding-inline: 18px;

  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;

  transform: none;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

/* Timeline dot for each entry (v4: subtle, not checkbox-y) */
.incident-card::before {
  content: '';
  position: absolute;
  inset-block-start: 24px;
  inset-inline-start: -44px;
  inline-size: 6px;
  block-size: 6px;
  border-radius: 999px;
  background-color: rgb(0 0 0 / 35%);
  border: none;
  box-shadow: none;
}

/* Connector line from spine dot to card (v4: hairline) */
.incident-card::after {
  content: '';
  position: absolute;
  inset-block-start: 27px;
  inset-inline-start: -30px;
  inline-size: 24px;
  block-size: 1px;
  background: rgb(0 0 0 / 16%);
}

.incident-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 2px 6px rgb(0 0 0 / 10%),
    0 16px 30px rgb(0 0 0 / 8%);
  z-index: 2;
}

.incident-card:focus {
  outline: 3px solid rgb(90 141 184 / 70%);
  outline-offset: 3px;
}

/* Remove old pin image rule (article.incident-card::before) by overriding background */
article.incident-card::before {
  background-image: none !important;
  filter: none !important;
}

/* ===== Header row inside card ===== */
.incident-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgb(0 0 0 / 8%);
}

.case-number {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(0 0 0 / 55%);
}

.incident-date {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 12px;
  color: rgb(0 0 0 / 45%);
}

/* ===== Image: moved to .incident-card-media in v4.1 ===== */

/* ===== Title + summary (more dense) ===== */
.incident-title {
  margin: 0 0 6px 0;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  line-height: 1.18;
  color: rgb(0 0 0 / 84%);
}

.incident-title a {
  color: inherit;
  text-decoration: none;
}

.incident-title a:hover {
  text-decoration: none;
}

.incident-summary {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: rgb(0 0 0 / 68%);
  margin: 0;

  /* tighter excerpts */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Tags: smaller + quieter ===== */
.evidence-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 0;
}

.evidence-tag {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 11px;
  color: rgb(0 0 0 / 60%);
  border: 1px solid rgb(0 0 0 / 14%);
  border-radius: 999px;
  padding: 4px 8px;
  background: transparent;
}

/* ===== Character seals row: keep, but anchor it at bottom ===== */
.incident-seals {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 2px;
}

.incident-seal {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px;
  min-height: 28px;
  font-size: 10px !important;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgb(0 0 0 / 10%);
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: #fff !important;
  font-weight: 800;
  text-shadow:
    0 1px 2px rgb(0 0 0 / 70%),
    0 0 6px rgb(0 0 0 / 50%);
}

/* Wax seal images — use root-relative paths so they work on any environment */
.incident-seal--han {
  background-image: url("/wp-content/uploads/2026/01/wax-seal-han.png");
}
.incident-seal--leia {
  background-image: url("/wp-content/uploads/2026/01/wax-seal-leia.png");
}
.incident-seal--morpheus {
  background-image: url("/wp-content/uploads/2026/01/wax-seal-morpheus.png");
}
.incident-seal--neo {
  background-image: url("/wp-content/uploads/2026/01/wax-seal-neo.png");
}
.incident-seal--bill {
  background-image: url("/wp-content/uploads/2026/01/wax-seal-neo.png");
}
.incident-seal--ted {
  background-image: url("/wp-content/uploads/2026/01/wax-seal-neo.png");
}
.incident-seal--default {
  background-image: url("/wp-content/uploads/2026/01/wax-seal-neo.png");
  opacity: 0.9;
}

/* ===== Sticky notes: off in v3 (reads like status) ===== */
.sticky-note {
  display: none;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .dispatches-wrapper {
    padding: 22px !important;
    border-width: 16px;
  }

  .incident-board-grid::before {
    inset-inline-start: 14px;
  }

  .incident-card {
    margin-inline-start: 40px;
    padding: 16px;
  }

  .incident-card::before {
    inset-inline-start: -34px;
  }

  .incident-card::after {
    inset-inline-start: -22px;
    inline-size: 16px;
    block-size: 1px;
  }

  /* Stack sidebar below content */
  .dispatches-content-wrapper {
    flex-direction: column;
  }

  .dispatches-sidebar {
    flex: none;
    width: 100%;
    position: static;
  }
}

@media (max-width: 768px) {
  .dispatches-wrapper {
    padding: 12px !important;
    border-width: 12px;
  }

  .dispatches-wrapper {
    margin: 10px;
  }

  /* Hero section */
  .dispatches-hero {
    padding: 40px 20px;
    margin-top: 30px;
  }

  .board-subtitle {
    font-size: 22px;
  }

  /* CTA card */
  .dispatches-cta {
    margin-top: 30px;
    padding: 40px 20px 25px;
  }

  .dispatches-header-section {
    gap: 20px;
    margin-bottom: 20px;
  }
}

@media (max-width: 600px) {
  .board-title {
    font-size: 32px;
  }

  .dispatches-cta-title {
    font-size: 20px;
  }

  .dispatches-cta-label {
    font-size: 20px;
  }
}



/* ===================== v4.1 overrides ===================== */


/* =========================================================
   Dispatches v4.1 — Layout Corrections (Drop-in)
   Addresses:
   - Start Here side-by-side layout
   - Featured image at bottom of card
   - Restore animal seals row
   - Move tags to left and limit to first four
   ========================================================= */

/* ---------- START HERE BANNER (Two-Column) ---------- */
.start-here-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.start-here-left {
  text-align: center;
  padding: 10px;
}

.start-here-label {
  font-family: 'Caveat', cursive;
  font-size: 18px;
  color: #888;
  margin-bottom: 8px;
}

.start-here-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin: 0 0 8px 0;
  color: #333;
}

.start-here-title a {
  color: #333;
  text-decoration: none;
}

.start-here-title a:hover {
  color: #555;
}

.start-here-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #666;
  margin: 0 0 14px 0;
  line-height: 1.4;
}

.start-here-button {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #fff !important;
  background: #333;
  padding: 10px 18px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.start-here-button:hover {
  background: #555;
  transform: translateY(-1px);
}

.start-here-right {
  border-left: 1px solid rgb(0 0 0 / 10%);
  padding-left: 30px;
}

.series-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: #333;
  margin: 0 0 4px 0;
}

.series-subtitle {
  font-family: 'Caveat', cursive;
  font-size: 15px;
  color: #888;
  margin: 0 0 10px 0;
}

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

.series-list li {
  padding: 6px 0;
  border-bottom: 1px solid rgb(0 0 0 / 6%);
}

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

.series-list a {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgb(0 0 0 / 65%);
  text-decoration: none;
}

.series-list a:hover {
  color: #333;
}

/* Responsive: stack on narrow screens */
@media (max-width: 700px) {
  .start-here-banner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .start-here-right {
    border-left: none;
    border-top: 1px solid rgb(0 0 0 / 10%);
    padding-left: 0;
    padding-top: 20px;
  }
}

/* ---------- INCIDENT CARD STRUCTURE (Two-Column) ---------- */
.incident-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
}

.incident-card-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.incident-card-media {
  width: 140px;
  flex-shrink: 0;
}

.incident-card .incident-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  background: #f3f3f3;
}

.incident-card .incident-no-image {
  width: 100%;
  height: 140px;
  display: grid;
  place-items: center;
  font-size: 32px;
  background: #f3f3f3;
  border-radius: 6px;
  color: rgb(0 0 0 / 55%);
}

/* Responsive: stack on narrow cards */
@media (max-width: 600px) {
  .incident-card {
    grid-template-columns: 1fr;
  }

  .incident-card-media {
    width: 140px;
    order: -1;
    justify-self: center;
  }

  .incident-card .incident-image,
  .incident-card .incident-no-image {
    width: 140px;
    height: 140px;
  }
}

/* ---------- ANIMAL SEALS (RESTORE) ---------- */
/* Re-enable seals row */
.incident-seals {
  display: flex !important;
  gap: 6px;
  margin-top: 10px;
}

/* Ensure seals are visible */
.incident-seal {
  opacity: 1;
  filter: none;
}

/* ---------- TAGS: FIRST FOUR ONLY ---------- */
/* Show only first four tags */
.evidence-tags .evidence-tag:nth-child(n+5) {
  display: none;
}



/* ===================== v4.2 overrides ===================== */


/* =========================================================
   Dispatches v4.2 — Metadata Alignment Refinement (Drop-in)
   - Seals remain left
   - Categories move to right
   - Tags stack under categories on right
   ========================================================= */

/* Wrap metadata row into two sides */
.incident-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

/* LEFT: animal seals */
.incident-meta .incident-seals {
  display: flex !important;
  gap: 6px;
  align-items: center;
  margin-top: 0;
}

/* RIGHT: categories + tags stack */
.incident-taxonomy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin-top: 0;
}

/* Categories row */
.incident-categories {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

/* Tags row under categories */
.incident-taxonomy .evidence-tags {
  justify-content: flex-end;
}

/* Limit tags to first four */
.incident-taxonomy .evidence-tags .evidence-tag:nth-child(n+5) {
  display: none;
}


