/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Dawgbone Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Merriweather Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.posts-container {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 768px) {
  .posts-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0;
  }
}

.sidebar-ads {
  position: sticky;
  top: 108px;
  height: fit-content;
  align-self: start;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .content-wrapper.with-sidebar {
    grid-template-columns: 1fr 280px;
    gap: 28px;
  }
}

@media (max-width: 1024px) {
  .content-wrapper.with-sidebar {
    grid-template-columns: 1fr;
    display: grid;
  }
  
  .sidebar-ads {
    position: static !important;
    width: 100%;
    max-width: 300px;
    margin: 24px auto;
    max-height: none;
    overflow-y: visible;
  }

  .posts-main {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .posts-page-container {
    padding: 16px 12px;
    width: 100%;
    max-width: 100%;
  }

  .content-wrapper.with-sidebar {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0;
    width: 100%;
  }

  .posts-main {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 24px;
    padding: 0;
  }

  .posts-main-full {
    max-width: 100% !important;
    width: 100% !important;
  }

  .sidebar-ads {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 24px auto !important;
  }

  .post-item {
    padding: 16px 0 16px 12px;
  }

  .post-item:hover {
    margin-left: -8px;
    margin-right: -8px;
    padding-left: 20px;
    padding-right: 8px;
  }

  .post-item-title {
    font-size: 1.1rem;
    line-height: 1.35;
  }

  .post-item-summary {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .post-item-header {
    margin-bottom: 8px;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .posts-page-container {
    padding: 12px 10px;
  }

  .post-item {
    padding: 14px 0 14px 10px;
  }

  .post-item:hover {
    padding-left: 18px;
  }

  .post-item-title {
    font-size: 1.05rem;
  }

  .post-item-summary {
    font-size: 0.8rem;
  }

  .source-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
  }

  .post-time {
    font-size: 0.7rem;
  }
}

/* ===========================
   SITE HEADER & NAVBAR
   =========================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

/* Top strip */
.header-strip {
  background: #111;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-strip-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-strip-date {
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.header-strip-divider {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.7rem;
  user-select: none;
}

.header-strip-tagline {
  color: rgba(255, 255, 255, 0.38);
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.3px;
}

/* Main navbar */
.navbar {
  background: #BA0C2F;
  border-bottom: 3px solid #000;
  padding: 0;
  position: relative;
}

.navbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 24px;
}

/* Brand */
.navbar-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.navbar-brand:hover {
  opacity: 0.88;
  text-decoration: none;
}

.navbar-brand-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
}

/* Right section */
.navbar-right {
  display: flex;
  align-items: stretch;
  height: 100%;
}

/* Nav list */
.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: stretch;
  height: 100%;
}

.navbar-nav > li {
  display: flex;
  align-items: stretch;
}

/* Nav links – ESPN-style bottom indicator */
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 15px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: none;
  position: relative;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: #fff;
  font-weight: 700;
}

/* Dropdown */
.nav-dropdown-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}

.nav-dropdown-chevron {
  transition: transform 0.25s ease;
  margin-top: 1px;
  flex-shrink: 0;
}

.nav-dropdown-wrap:hover .nav-dropdown-chevron,
.nav-dropdown-wrap.is-open .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-panel {
  display: none;
  position: absolute;
  top: 100%;
  margin-top: 3px;
  right: 0;
  min-width: 188px;
  background: #111;
  border-top: 3px solid #BA0C2F;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  padding: 6px 0;
  z-index: 100;
}

@media (min-width: 769px) {
  .nav-dropdown-wrap:hover .nav-dropdown-panel {
    display: block;
    animation: navDropIn 0.16s ease;
  }
}

.nav-dropdown-wrap.is-open .nav-dropdown-panel {
  display: block;
  animation: navDropIn 0.16s ease;
}

@keyframes navDropIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-dropdown-item {
  display: block;
  padding: 10px 18px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.25px;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s, padding-left 0.15s, border-color 0.15s;
}

.nav-dropdown-item:hover {
  background: rgba(186, 12, 47, 0.22);
  color: #fff;
  border-left-color: #BA0C2F;
  padding-left: 22px;
  text-decoration: none;
}

/* Hamburger button */
.navbar-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 6px;
  flex-shrink: 0;
  margin-left: 6px;
  transition: background 0.2s;
}

.navbar-hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.28s ease, opacity 0.28s ease;
  transform-origin: center;
}

.navbar-hamburger.is-open .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-hamburger.is-open .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar-hamburger.is-open .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===========================
   MOBILE NAVBAR
   =========================== */
@media (max-width: 768px) {
  .header-strip {
    display: none;
  }

  .navbar-inner {
    height: 56px;
    padding: 0 16px;
  }

  .navbar-brand-name {
    font-size: 1.4rem;
  }

  .navbar-hamburger {
    display: flex;
  }

  .navbar-right {
    align-items: center;
  }

  .navbar-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #1a1a1a;
    border-top: 2px solid #BA0C2F;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
    padding: 6px 0 14px;
    height: auto;
    z-index: 999;
  }

  .navbar-nav.is-mobile-open {
    display: flex;
    animation: mobileNavSlide 0.22s ease;
  }

  @keyframes mobileNavSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .navbar-nav > li {
    display: block;
  }

  .nav-link {
    padding: 13px 20px;
    font-size: 0.88rem;
    width: 100%;
    border-bottom: none;
    margin-bottom: 0;
    border-left: 3px solid transparent;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link.active {
    border-left-color: #BA0C2F;
    background: rgba(186, 12, 47, 0.15);
    padding-left: 17px;
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    padding-left: 26px;
  }

  .nav-dropdown-wrap {
    display: block;
    position: static;
  }

  .nav-dropdown-panel {
    position: static;
    border-radius: 0;
    border-top: none;
    background: rgba(0, 0, 0, 0.28);
    box-shadow: none;
    padding: 0;
    margin-top: 0;
  }

  .nav-dropdown-wrap.is-open .nav-dropdown-panel {
    animation: none;
  }

  .nav-dropdown-item {
    padding: 11px 20px 11px 34px;
    font-size: 0.8rem;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .nav-dropdown-item:hover {
    padding-left: 40px;
    border-left: none;
    background: rgba(186, 12, 47, 0.18);
  }
}

/* Posts Page Styles */
.posts-page {
  background: #f1f1f4;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

@media (min-width: 1025px) {
  .posts-page {
    overflow-x: visible;
  }
}

.posts-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px;
  width: 100%;
  box-sizing: border-box;
}

.content-wrapper.with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

/* Ensure sidebar stays sticky on desktop */
@media (min-width: 1025px) {
  .content-wrapper.with-sidebar {
    align-items: start;
  }
  
  .sidebar-ads {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 20px !important;
    height: fit-content !important;
    align-self: start !important;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    z-index: 10;
  }
}

.posts-main {
  min-width: 0; /* Prevents grid overflow */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.posts-main-full {
  max-width: 1160px;
  margin: 0 auto;
}

/* Site Announcement Banner */
.site-announcement {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
  border-left: 4px solid #BA0C2F;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(186, 12, 47, 0.1);
}

.site-announcement p {
  margin: 0;
  color: #333;
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 500;
}

@media (max-width: 768px) {
  .site-announcement {
    padding: 16px 18px;
    margin-bottom: 24px;
    border-radius: 6px;
  }

  .site-announcement p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .site-announcement {
    padding: 14px 16px;
    margin-bottom: 20px;
  }

  .site-announcement p {
    font-size: 0.9rem;
  }
}

/* Posts List - Single Column Layout */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.post-item {
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  position: relative;
  padding-left: 16px;
}

.post-item:first-child {
  padding-top: 0;
}

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

.post-item:hover {
  background-color: #f8f8f8;
  border-left-color: #000;
  margin-left: -12px;
  margin-right: -12px;
  padding-left: 28px;
  padding-right: 12px;
  border-radius: 0 6px 6px 0;
}

.post-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.post-item-title {
  font-family: 'Merriweather', serif;
  margin: 0 0 10px 0;
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 700;
}

.post-item-title a {
  color: #000;
  text-decoration: none;
  transition: all 0.2s ease;
  display: block;
}

.post-item-title a:hover {
  color: #BA0C2F;
  transform: translateX(2px);
}

.post-item-summary {
  font-family: 'Merriweather Sans', sans-serif;
  color: #333;
  line-height: 1.6;
  margin: 0;
  font-size: 0.9rem;
}

/* Page Header */
.posts-page-header {
  text-align: center;
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 3px solid #BA0C2F;
}

.page-title {
  font-family: 'Merriweather', serif;
  font-size: 3rem;
  font-weight: 800;
  color: #000;
  margin: 0 0 10px 0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.page-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin: 0;
  font-weight: 400;
}

/* Source Badge */
.source-badge {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  border: 1px solid #000;
}

.source-badge-small {
  padding: 4px 10px;
  font-size: 0.7rem;
}

/* Post Time */
.post-time {
  color: #666;
  font-size: 0.75rem;
  font-weight: 600;
  background: #f0f0f0;
  padding: 3px 8px;
  border-radius: 8px;
}

.post-time-small {
  font-size: 0.75rem;
}

/* Legacy Post Card Styles (kept for backward compatibility if needed) */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.post-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(186, 12, 47, 0.15);
  border-color: #BA0C2F;
}

.post-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.post-card-title {
  font-family: 'Merriweather', serif;
  margin: 0 0 12px 0;
  font-size: 1.3rem;
  line-height: 1.4;
  font-weight: 700;
  flex-grow: 1;
}

.post-card-title a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
}

.post-card-title a:hover {
  color: #BA0C2F;
}

.post-card-summary {
  font-family: 'Merriweather Sans', sans-serif;
  color: #555;
  line-height: 1.6;
  margin: 0 0 20px 0;
  font-size: 0.95rem;
  flex-grow: 1;
}

.post-card-link {
  color: #BA0C2F;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  margin-top: auto;
  display: inline-block;
}

.post-card-link:hover {
  color: #000;
  transform: translateX(5px);
}

/* No Posts */
.no-posts {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.no-posts-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.no-posts h2 {
  color: #000;
  font-size: 2rem;
  margin: 0 0 10px 0;
  font-weight: 700;
}

.no-posts p {
  color: #666;
  font-size: 1.1rem;
  margin: 0;
}

/* Legacy post styles (for backward compatibility) */
.posts-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
}

.post:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.post-title {
  font-family: 'Merriweather', serif;
  margin: 0 0 12px 0;
  font-size: 1.3rem;
  line-height: 1.4;
}

.post-title a {
  color: #BA0C2F;
  text-decoration: none;
  font-weight: 600;
}

.post-title a:hover {
  color: #8a0923;
  text-decoration: underline;
}

.post-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: #666;
}

.source {
  font-weight: 600;
  color: #BA0C2F;
}

.post-summary {
  font-family: 'Merriweather Sans', sans-serif;
  color: #555;
  line-height: 1.6;
}

/* Admin Panel Styles */
.admin-header {
  background: #343a40;
  color: white;
  padding: 20px 0;
  margin-bottom: 30px;
}

.admin-header h1 {
  margin: 0;
  text-align: center;
}

.admin-nav {
  background: #495057;
  padding: 10px 0;
  margin-bottom: 30px;
}

.admin-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.admin-nav a {
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.admin-nav a:hover {
  background-color: #6c757d;
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #dc3545;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.btn:hover {
  background-color: #a71e2a;
}

.btn-danger {
  background-color: #dc3545;
}

.btn-danger:hover {
  background-color: #c82333;
}

.btn-secondary {
  background-color: #6c757d;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table th,
.table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}

.table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.table tr:hover {
  background-color: #f8f9fa;
}

.alert {
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.alert-notice {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Additional Admin Styles */
.sources-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/* Dashboard Styles */
.dashboard {
  max-width: 1000px;
  margin: 0 auto;
}

.dashboard h2 {
  margin-bottom: 10px;
  color: #343a40;
  font-size: 2rem;
}

.dashboard-intro {
  color: #666;
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.dashboard-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.dashboard-card h3 {
  margin: 0 0 15px 0;
  color: #343a40;
  font-size: 1.5rem;
}

.dashboard-card p {
  margin: 0 0 20px 0;
  color: #666;
  line-height: 1.6;
}

.dashboard-card .btn {
  margin-top: auto;
}

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

.badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-success {
  background-color: #28a745;
  color: white;
}

.badge-info {
  background-color: #17a2b8;
  color: white;
}

.radio-group {
  display: flex;
  gap: 20px;
  margin-top: 5px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: normal;
  margin-bottom: 0;
}

.form-text {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #666;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.post-detail,
.source-detail {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post-actions,
.source-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.source-info p {
  margin-bottom: 10px;
}

.recent-posts {
  margin-top: 20px;
}

.post-item {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

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

.post-item h4 {
  margin: 0 0 5px 0;
  font-size: 1rem;
}

.post-item h4 a {
  color: #BA0C2F;
  text-decoration: none;
}

.post-item h4 a:hover {
  text-decoration: underline;
}

.post-item .post-meta {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

.post-item .post-meta a {
  color: #BA0C2F;
  text-decoration: none;
  margin-left: 10px;
}

.post-item .post-meta a:hover {
  text-decoration: underline;
}

/* Article Content Styles */
.article-content {
  font-family: 'Merriweather Sans', sans-serif;
  color: #333;
  line-height: 1.8;
}

.article-content p {
  margin-bottom: 1.2em;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  font-family: 'Merriweather', serif;
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  color: #BA0C2F;
}

.article-content ul,
.article-content ol {
  margin: 1em 0;
  padding-left: 2em;
}

.article-content li {
  margin-bottom: 0.5em;
}

.article-content a {
  color: #dc3545;
  text-decoration: underline;
}

.article-content a:hover {
  color: #a71e2a;
}

.article-content blockquote {
  border-left: 4px solid #BA0C2F;
  padding-left: 1.5em;
  margin: 1.5em 0;
  font-style: italic;
  color: #666;
}

/* Advertisement Styles */
.ad-block {
  margin: 20px 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Ad Placement Areas */
.header-ads {
  margin-bottom: 0;
  padding: 20px;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
}

.footer-ads {
  margin-top: 60px;
  padding: 20px;
  background: #f8f9fa;
  border-top: 1px solid #e0e0e0;
}

.sidebar-ads .ad-block {
  margin-bottom: 20px;
}

/* Ad Image Styles */
.sponsor-image {
  text-align: center;
  margin: 15px 0;
}

.ad-image {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  transition: transform 0.2s ease;
}

.ad-image:hover {
  transform: scale(1.02);
}

.ad-banner {
  width: 100%;
  max-width: 728px;
  margin: 0 auto;
}

.ad-rectangle {
  width: 300px;
  margin: 0 auto;
}

.ad-square {
  width: 250px;
  margin: 0 auto;
}

.ad-leaderboard {
  width: 100%;
  max-width: 728px;
  margin: 0 auto;
}

/* Sponsor Ad Styles */
.sponsor-ad {
  padding: 20px;
  border: 2px solid #BA0C2F;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
}

.sponsor-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #BA0C2F;
}

.sponsor-label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sponsor-link {
  color: #BA0C2F;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}

.sponsor-link:hover {
  color: #8a0923;
  text-decoration: underline;
}

.sponsor-content {
  color: #333;
  line-height: 1.6;
}

.sponsor-content p {
  margin: 0 0 10px 0;
}

.sponsor-content p:last-child {
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ad-rectangle,
  .ad-square {
    width: 100%;
    max-width: 300px;
  }
  
  .ad-banner,
  .ad-leaderboard {
    max-width: 100%;
  }
  
  .sponsor-ad {
    padding: 15px;
  }
}

/* Page Styles */
.page-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px 0;
}

.page-header h1 {
  font-family: 'Merriweather', serif;
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  color: #BA0C2F;
}

.page-subtitle {
  margin: 10px 0 0 0;
  font-size: 1.1rem;
  color: #666;
}

.content-section {
  margin-bottom: 40px;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.content-section h2 {
  color: #BA0C2F;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.content-section h3 {
  color: #BA0C2F;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.content-section p {
  line-height: 1.6;
  margin-bottom: 15px;
}

.content-section ul {
  margin: 15px 0;
  padding-left: 20px;
}

.content-section li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Contact Page Styles */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.contact-method {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #BA0C2F;
}

.contact-method h3 {
  margin: 0 0 15px 0;
  color: #BA0C2F;
  font-size: 1.2rem;
}

.contact-method p {
  margin: 0 0 10px 0;
  line-height: 1.5;
}

/* Photos Page Styles */
.photo-placeholder {
  background: #f8f9fa;
  border: 2px dashed #BA0C2F;
  border-radius: 8px;
  padding: 60px 20px;
  text-align: center;
  margin: 30px 0;
}

.placeholder-content h3 {
  color: #BA0C2F;
  margin: 0 0 15px 0;
  font-size: 1.5rem;
}

.placeholder-content p {
  color: #666;
  font-size: 1.1rem;
  margin: 0;
}

/* Markdown Editor Styles */
.markdown-editor {
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.markdown-toolbar {
  background: #f8f9fa;
  border-bottom: 1px solid #ddd;
  padding: 8px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.toolbar-btn {
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  color: #333;
}

.toolbar-btn:hover {
  background: #e9ecef;
  border-color: #BA0C2F;
  color: #BA0C2F;
}

.toolbar-btn:active {
  background: #dee2e6;
  transform: scale(0.95);
}

.toolbar-btn strong {
  font-weight: 700;
}

.toolbar-btn em {
  font-style: italic;
}

.markdown-textarea {
  border: none;
  border-radius: 0;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
}

.markdown-textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px #BA0C2F;
}

/* Enhanced Markdown Content Styles */
.article-content code {
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9em;
  color: #d63384;
}

.article-content pre {
  background: #f8f9fa;
  padding: 1em;
  border-radius: 4px;
  overflow-x: auto;
  border-left: 4px solid #BA0C2F;
}

.article-content pre code {
  background: transparent;
  padding: 0;
  color: #333;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

.article-content table th,
.article-content table td {
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: left;
}

.article-content table th {
  background: #f8f9fa;
  font-weight: 600;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1.5em 0;
}

/* Pagy Pagination Styles */
.pag-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
  padding: 20px 0;
}

.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.page-item {
  margin: 0;
  display: flex;
  align-items: center;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  color: #333;
  text-decoration: none;
  background-color: transparent;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-weight: 400;
  font-size: 0.9rem;
}

.page-item.active .page-link {
  color: #000;
  background-color: transparent;
  border-color: #000;
  font-weight: 600;
  cursor: default;
}

.page-item.disabled .page-link {
  color: #999;
  background-color: transparent;
  border-color: #e0e0e0;
  cursor: not-allowed;
  opacity: 0.5;
}

/* Gap styling for ellipsis */
.page-item.gap {
  display: flex;
  align-items: center;
  padding: 0 4px;
}

.page-item.gap .page-link {
  border: none;
  background: transparent;
  cursor: default;
  min-width: auto;
  padding: 0 8px;
  color: #666;
}

/* Responsive pagination */
@media (max-width: 768px) {
  .pag-bar {
    margin: 32px 0;
    padding: 16px 0;
  }

  .pagination {
    gap: 3px;
  }

  .page-link {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .pagination {
    gap: 2px;
  }

  .page-link {
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    font-size: 0.8rem;
  }
}

/* Roster Page Styles */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.roster-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-top: 4px solid #BA0C2F;
}

.roster-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.roster-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.roster-number {
  background: #BA0C2F;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.roster-header h3 {
  margin: 0;
  color: #000;
  font-size: 1.3rem;
}

.roster-details p {
  margin: 8px 0;
  color: #666;
  font-size: 0.95rem;
}

/* Commitments List — admin index wrapper */
.commitments-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

/* Next Loser Page Styles */
.next-loser-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.next-loser-card {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(186, 12, 47, 0.2);
  border: 2px solid #BA0C2F;
  text-align: center;
}

.next-loser-header h3 {
  margin: 0 0 10px 0;
  color: #BA0C2F;
  font-size: 2rem;
  font-weight: 700;
}

.next-loser-date {
  color: #666;
  font-size: 1.1rem;
  margin: 0 0 15px 0;
}

.next-loser-description {
  color: #333;
  line-height: 1.6;
  margin: 0 0 20px 0;
  font-size: 1rem;
}

.next-loser-btn {
  font-size: 1.1rem;
  padding: 12px 30px;
}

/* Responsive Styles for New Pages */
@media (max-width: 768px) {
  .roster-grid {
    grid-template-columns: 1fr;
  }

  .roster-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .next-loser-header h3 {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   HOMEPAGE — "Saturday Broadsheet"
   Hard-edged sports-desk editorial. Black is a surface, red is structure.
   Hero (admin-configurable) → The Desk (contributors) → The Wire (posts).
   ========================================================================== */

:root {
  --db-red: #BA0C2F;
  --db-red-lift: #E11235;
  --db-ink: #0B0B0C;
  --db-ink-2: #17171A;
  --db-paper: #F4F2EF;
  --db-line: #DEDAD4;
  --db-muted: #6C6A67;
  --db-display: 'Anton', 'Oswald', Impact, sans-serif;
  --db-head: 'Newsreader', 'Merriweather', Georgia, serif;
  --db-label: 'Oswald', sans-serif;
  --db-body: 'Merriweather Sans', system-ui, sans-serif;
}

.posts-page {
  background: var(--db-paper);
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

/* Newsprint tint over the whole page */
.posts-page::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 420px at 50% 0%, rgba(186, 12, 47, 0.06), transparent 70%);
  z-index: 0;
}

.posts-page-container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 28px 72px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--db-ink);
  color: #fff;
  border-bottom: 5px solid var(--db-red);
}

.hero--crimson {
  background: var(--db-red);
}

/* Photo layer ------------------------------------------------------------ */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: grayscale(1) contrast(1.12) brightness(0.62);
  transform: scale(1.04);
  animation: hero-drift 18s ease-out forwards;
}

.hero--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(100deg, rgba(11, 11, 12, 0.96) 0%, rgba(11, 11, 12, 0.84) 45%, rgba(11, 11, 12, 0.4) 80%),
    linear-gradient(180deg, rgba(11, 11, 12, 0.35) 0%, rgba(11, 11, 12, 0.72) 100%),
    linear-gradient(0deg, rgba(186, 12, 47, 0.34), rgba(186, 12, 47, 0.34));
  mix-blend-mode: multiply;
}

.hero--crimson.hero--photo::after {
  background:
    linear-gradient(100deg, rgba(186, 12, 47, 0.95) 0%, rgba(140, 8, 34, 0.8) 45%, rgba(11, 11, 12, 0.45) 100%);
}

/* Graphic plate (no photo, or behind it) ---------------------------------- */
.hero-plate {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

.hero--photo .hero-plate {
  z-index: -1;
}

.hero-blade {
  position: absolute;
  top: -30%;
  height: 160%;
  transform: skewX(-14deg);
  transform-origin: top center;
}

.hero-blade--1 {
  right: 16%;
  width: 240px;
  background: linear-gradient(180deg, rgba(186, 12, 47, 0.55), rgba(186, 12, 47, 0));
}

.hero-blade--2 {
  right: 6%;
  width: 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
}

.hero--crimson .hero-blade--1 {
  background: linear-gradient(180deg, rgba(11, 11, 12, 0.55), rgba(11, 11, 12, 0));
}

.hero--photo .hero-blade--1 {
  opacity: 0.4;
}

.hero-watermark {
  position: absolute;
  right: -0.04em;
  bottom: 7%;
  font-family: var(--db-display);
  font-size: clamp(6rem, 17vw, 15rem);
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.07);
  user-select: none;
  white-space: nowrap;
}

/* Grain ------------------------------------------------------------------- */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

/* Content ----------------------------------------------------------------- */
.hero-inner {
  position: relative;
  max-width: 1340px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 112px) 28px clamp(44px, 6vw, 84px);
  box-sizing: border-box;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-eyebrow-rule {
  width: 54px;
  height: 3px;
  background: var(--db-red-lift);
  flex-shrink: 0;
}

.hero--crimson .hero-eyebrow-rule {
  background: #fff;
}

.hero-eyebrow-text {
  font-family: var(--db-label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.hero-headline {
  font-family: var(--db-display);
  font-weight: 400;
  font-size: clamp(2.9rem, 8.2vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin: 0 0 26px;
  max-width: 15ch;
  text-wrap: balance;
}

.hero-word {
  display: inline-block;
  animation: hero-word 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--d, 0s);
}

.hero-subhead {
  font-family: var(--db-head);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  font-weight: 400;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.78);
  max-width: 54ch;
  margin: 0 0 34px;
  border-left: 2px solid rgba(255, 255, 255, 0.18);
  padding-left: 20px;
  animation: hero-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: hero-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.42s both;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--db-label);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 28px;
  border: 2px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hero-btn--primary {
  background: var(--db-red);
  color: #fff;
  border-color: var(--db-red);
}

.hero--crimson .hero-btn--primary {
  background: #fff;
  color: var(--db-ink);
  border-color: #fff;
}

.hero-btn--primary:hover {
  background: #fff;
  color: var(--db-ink);
  border-color: #fff;
  text-decoration: none;
}

.hero--crimson .hero-btn--primary:hover {
  background: var(--db-ink);
  color: #fff;
  border-color: var(--db-ink);
}

.hero-btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.hero-btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
}

.hero-btn-arrow {
  transition: transform 0.2s ease;
}

.hero-btn:hover .hero-btn-arrow {
  transform: translateX(4px);
}

@keyframes hero-word {
  from { opacity: 0; transform: translateY(0.4em) rotate(1.2deg); }
  to   { opacity: 1; transform: none; }
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@keyframes hero-drift {
  from { transform: scale(1.12); }
  to   { transform: scale(1.04); }
}

/* Carousel ------------------------------------------------------------------ */
.hero-carousel {
  position: relative;
  overflow: hidden;
}

.hero-carousel-track {
  display: flex;
  width: 100%;
  align-items: stretch;
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

.hero-carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.hero-carousel-slide .hero {
  height: 100%;
}

.hero-carousel-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: 56px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.hero-carousel-arrow:hover {
  color: #fff;
  background: rgba(0, 0, 0, 0.18);
}

.hero-carousel-arrow--prev {
  left: 0;
}

.hero-carousel-arrow--next {
  right: 0;
}

.hero-carousel-nav {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  background: #000;
}

.hero-carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-carousel-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.hero-carousel-dot.is-active {
  background: var(--db-red-lift);
  transform: scale(1.25);
}

/* ==========================================================================
   THREE-ZONE LAYOUT
   ========================================================================== */

.zone {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
  width: 100%;
  padding-top: 56px;
  box-sizing: border-box;
}

.zone.has-rail {
  grid-template-columns: 1fr 300px;
}

.zone.has-desk {
  grid-template-columns: 264px 1fr;
}

.zone.has-desk.has-rail {
  grid-template-columns: 264px 1fr 300px;
}

.posts-main {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   THE DESK — contributors rail, black column
   ========================================================================== */

.desk {
  position: sticky;
  top: 112px;
  height: fit-content;
  align-self: start;
  background: var(--db-ink);
  color: #fff;
  padding: 22px 20px 24px;
}

.desk-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--db-red);
  margin-bottom: 4px;
}

.desk-title {
  font-family: var(--db-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0;
  color: #fff;
}

.desk-all {
  font-family: var(--db-label);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.18s ease;
}

.desk-all:hover {
  color: var(--db-red-lift);
  text-decoration: none;
}

.desk-list {
  display: flex;
  flex-direction: column;
}

.desk-card {
  position: relative;
  padding: 20px 0 20px 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.desk-card:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.desk-card-index {
  position: absolute;
  left: 0;
  top: 21px;
  font-family: var(--db-display);
  font-size: 0.9rem;
  color: var(--db-red-lift);
  letter-spacing: 0.02em;
}

.desk-card-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 7px;
}

.desk-byline {
  font-family: var(--db-label);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.desk-time {
  font-family: var(--db-body);
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
}

.desk-card-title {
  font-family: var(--db-head);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.32;
  margin: 0 0 8px;
}

.desk-card-title a {
  color: #fff;
  text-decoration: none;
  background-image: linear-gradient(var(--db-red-lift), var(--db-red-lift));
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.desk-card-title a:hover {
  color: #fff;
  text-decoration: none;
  background-size: 100% 2px;
}

.desk-card-excerpt {
  font-family: var(--db-body);
  font-size: 0.78rem;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* ==========================================================================
   THE WIRE — aggregated posts
   ========================================================================== */

.wire-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}

.wire-title {
  font-family: var(--db-display);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--db-ink);
  margin: 0;
  flex-shrink: 0;
}

.wire-rule {
  flex: 1;
  height: 3px;
  background: var(--db-ink);
  position: relative;
}

.wire-rule::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 64px;
  height: 3px;
  background: var(--db-red);
}

.wire-date {
  font-family: var(--db-label);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--db-muted);
  flex-shrink: 0;
}

.wire-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(296px, 1fr));
  gap: 1px;
  background: var(--db-line);
  border: 1px solid var(--db-line);
}

/* Cards sit on a hairline grid — the gap IS the rule. */
.wire-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: background 0.2s ease;
  animation: wire-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(min(var(--i, 0), 11) * 45ms);
}

.wire-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--db-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.wire-card:hover {
  background: #fff;
}

.wire-card:hover::before {
  transform: scaleX(1);
}

.wire-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--db-ink);
}

.wire-card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.85) contrast(1.04);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.wire-card:hover .wire-card-photo {
  transform: scale(1.05);
  filter: saturate(1) contrast(1.06);
}

.wire-card-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 11, 12, 0) 55%, rgba(11, 11, 12, 0.38) 100%);
}

.wire-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 18px 20px 20px;
}

.wire-card-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 11px;
}

.wire-source {
  font-family: var(--db-label);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--db-red);
  padding-right: 9px;
  border-right: 1px solid var(--db-line);
}

.wire-new {
  font-family: var(--db-label);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--db-ink);
  padding: 2px 7px;
}

.wire-time {
  font-family: var(--db-body);
  font-size: 0.68rem;
  color: var(--db-muted);
  letter-spacing: 0.03em;
}

.wire-card-title {
  font-family: var(--db-head);
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.005em;
  margin: 0 0 10px;
  color: var(--db-ink);
  text-wrap: pretty;
}

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

/* Whole card is the target */
.wire-card-title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.wire-card:hover .wire-card-title {
  color: var(--db-red);
}

.wire-card-summary {
  font-family: var(--db-body);
  font-size: 0.83rem;
  line-height: 1.68;
  color: var(--db-muted);
  margin: 0 0 16px;
  flex-grow: 1;
}

.wire-card-cue {
  font-family: var(--db-label);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--db-ink);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  opacity: 0.42;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.wire-card:hover .wire-card-cue {
  opacity: 1;
  color: var(--db-red);
}

.wire-cue-arrow {
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.wire-card:hover .wire-cue-arrow {
  transform: translateX(5px);
}

/* Text-only card: no fake gradient placeholder, just louder type. */
.wire-card--text .wire-card-body {
  padding-top: 24px;
  padding-bottom: 24px;
}

.wire-card--text .wire-card-title {
  font-size: 1.36rem;
  line-height: 1.24;
}

/* Permanent red tick so type-led cards still carry the accent at rest */
.wire-card--text::before {
  transform: scaleX(0.16);
}

.wire-card--text:hover::before {
  transform: scaleX(1);
}

/* Ink accent — every sixth type-led card, for grid rhythm */
.wire-card--ink {
  background: var(--db-ink);
}

.wire-card--ink .wire-card-title {
  color: #fff;
}

.wire-card--ink:hover .wire-card-title {
  color: var(--db-red-lift);
}

.wire-card--ink .wire-source {
  color: var(--db-red-lift);
  border-right-color: rgba(255, 255, 255, 0.18);
}

.wire-card--ink .wire-new {
  background: var(--db-red);
}

.wire-card--ink .wire-time {
  color: rgba(255, 255, 255, 0.42);
}

.wire-card--ink .wire-card-summary {
  color: rgba(255, 255, 255, 0.55);
}

.wire-card--ink .wire-card-cue {
  color: #fff;
}

.wire-card--ink:hover .wire-card-cue {
  color: var(--db-red-lift);
}

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

/* Empty state ------------------------------------------------------------- */
.wire-empty {
  border: 1px solid var(--db-line);
  background: #fff;
  padding: 72px 28px;
  text-align: center;
}

.wire-empty-mark {
  font-family: var(--db-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--db-line);
  margin: 0 0 12px;
}

.wire-empty h3 {
  font-family: var(--db-display);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--db-ink);
  margin: 0 0 8px;
}

.wire-empty p {
  font-family: var(--db-body);
  font-size: 0.9rem;
  color: var(--db-muted);
  margin: 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1180px) {
  .zone.has-desk.has-rail {
    grid-template-columns: 240px 1fr;
  }

  .zone.has-desk.has-rail .sidebar-ads {
    grid-column: 1 / -1;
    justify-self: center;
  }
}

@media (max-width: 960px) {
  .zone,
  .zone.has-desk,
  .zone.has-rail,
  .zone.has-desk.has-rail {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 40px;
  }

  .desk {
    position: static;
    order: 2;
  }

  .posts-main {
    order: 1;
  }

  .sidebar-ads {
    order: 3;
    position: static !important;
    justify-self: center;
  }

  .desk-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0 26px;
  }

  .desk-card:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 768px) {
  .posts-page-container {
    padding: 0 16px 48px;
  }

  .hero-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-headline {
    max-width: 100%;
  }

  .hero-subhead {
    padding-left: 16px;
  }

  .hero-btn {
    padding: 13px 22px;
    font-size: 0.76rem;
  }

  .wire-grid {
    grid-template-columns: 1fr;
  }

  .wire-head {
    gap: 12px;
  }

  .wire-date {
    display: none;
  }

  .desk-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-eyebrow-text {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-btn {
    justify-content: center;
  }

  .hero-carousel-arrow {
    width: 40px;
    font-size: 1.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-word,
  .hero-eyebrow,
  .hero-subhead,
  .hero-actions,
  .hero-photo,
  .wire-card {
    animation: none !important;
  }

  .wire-card-photo,
  .wire-cue-arrow,
  .hero-btn-arrow,
  .hero-carousel-track {
    transition: none;
  }
}

/* ===================================================
   Article Show Page — Editorial Layout
   =================================================== */

.article-show-wrapper {
  max-width: 740px;
  margin: 40px auto 0;
  padding: 0 24px 80px;
}

/* Back nav */
.article-show-nav {
  margin-bottom: 36px;
}

.article-show-nav a {
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
  text-decoration: none;
  transition: color 0.2s;
}

.article-show-nav a:hover {
  color: #BA0C2F;
}

.article-nav-arrow {
  display: inline-block;
  transition: transform 0.2s;
}

.article-show-nav a:hover .article-nav-arrow {
  transform: translateX(-3px);
}

/* Header */
.article-show-header {
  margin-bottom: 0;
}

.article-category-tag {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: #BA0C2F;
  color: #fff;
  padding: 4px 10px 3px;
  margin-bottom: 18px;
}

.article-show-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.1;
  color: #111;
  margin: 0 0 24px 0;
  letter-spacing: -0.01em;
}

/* Byline */
.article-show-byline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.82rem;
  color: #777;
  flex-wrap: wrap;
}

.article-byline-author {
  font-weight: 700;
  color: #BA0C2F;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
}

.article-byline-sep {
  color: #ddd;
  font-weight: 300;
}

.article-byline-date,
.article-byline-time {
  font-size: 0.82rem;
  color: #888;
}

/* Red rule divider */
.article-show-rule {
  height: 3px;
  background: #BA0C2F;
  margin: 24px 0 42px;
  position: relative;
}

.article-show-rule::after {
  content: '';
  display: block;
  height: 1px;
  background: #eee;
  margin-top: 4px;
}

/* Body text */
.article-show-body {
  font-family: 'Merriweather', serif;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #222;
}

/* Drop cap on first paragraph */
.article-show-body > p:first-of-type::first-letter {
  float: left;
  font-family: 'Oswald', sans-serif;
  font-size: 4.6rem;
  font-weight: 700;
  line-height: 0.78;
  color: #BA0C2F;
  padding-right: 10px;
  padding-top: 8px;
}

.article-show-body p {
  margin-bottom: 1.6em;
}

.article-show-body h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #111;
  margin-top: 2.2em;
  margin-bottom: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 8px;
  border-bottom: 2px solid #BA0C2F;
}

.article-show-body h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #333;
  margin-top: 2em;
  margin-bottom: 0.6em;
  letter-spacing: 0.03em;
}

.article-show-body h4 {
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #BA0C2F;
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}

/* Pull quote / blockquote */
.article-show-body blockquote {
  position: relative;
  border-left: none;
  padding: 22px 24px 22px 28px;
  margin: 2.4em -4px;
  background: #fafafa;
  border-top: 3px solid #BA0C2F;
  border-bottom: 1px solid #ececec;
  font-style: italic;
}

.article-show-body blockquote::before {
  content: '\201C';
  font-family: 'Merriweather', serif;
  font-size: 5rem;
  line-height: 1;
  color: #BA0C2F;
  position: absolute;
  top: -14px;
  left: 14px;
  opacity: 0.25;
  pointer-events: none;
}

.article-show-body blockquote p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: #444;
  margin: 0;
}

.article-show-body ul,
.article-show-body ol {
  margin: 1.2em 0;
  padding-left: 2em;
}

.article-show-body li {
  margin-bottom: 0.65em;
}

.article-show-body a {
  color: #BA0C2F;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.article-show-body a:hover {
  color: #8a0923;
}

.article-show-body strong {
  font-weight: 700;
  color: #111;
}

.article-show-body em {
  font-style: italic;
}

.article-show-body hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2.5em 0;
}

/* Code */
.article-show-body code {
  font-size: 0.88em;
  background: #f3f3f3;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
}

.article-show-body pre {
  background: #f8f8f8;
  border-left: 4px solid #BA0C2F;
  padding: 1.2em 1.4em;
  border-radius: 0 4px 4px 0;
  overflow-x: auto;
  margin: 1.8em 0;
}

.article-show-body pre code {
  background: transparent;
  padding: 0;
  font-size: 0.9rem;
}

/* Tables */
.article-show-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.9rem;
}

.article-show-body table th {
  background: #BA0C2F;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 10px 14px;
  text-align: left;
}

.article-show-body table td {
  border-bottom: 1px solid #eee;
  padding: 10px 14px;
  color: #333;
}

.article-show-body table tr:nth-child(even) td {
  background: #fafafa;
}

/* Images */
.article-show-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.8em auto;
  border-radius: 3px;
}

/* Footer */
.article-show-footer {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.article-footer-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.article-footer-label {
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #aaa;
}

.article-footer-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  letter-spacing: 0.03em;
}

.article-back-link {
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
  text-decoration: none;
  transition: color 0.2s;
}

.article-back-link:hover {
  color: #BA0C2F;
}

@media (max-width: 768px) {
  .article-show-wrapper {
    padding: 0 16px 60px;
    margin-top: 24px;
  }

  .article-show-body {
    font-size: 0.98rem;
    line-height: 1.85;
  }

  .article-show-body > p:first-of-type::first-letter {
    font-size: 3.6rem;
  }

  .article-show-body blockquote {
    margin: 2em 0;
  }

  .article-show-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   CONTRIBUTORS — "The Opinion Page"
   The paper's own writing, as opposed to the wire. Same masthead and hairline
   panel as the rest of the site; the lead piece takes the top of the column at
   a larger size, the way an opinion page leads with one voice.
   ========================================================================== */

.contrib-page {
  --contrib-measure: 1040px;
  background: var(--db-paper);
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

/* Masthead ---------------------------------------------------------------- */
.contrib-masthead {
  background: var(--db-ink);
  color: #fff;
  border-bottom: 5px solid var(--db-red);
}

.contrib-masthead-inner {
  max-width: var(--contrib-measure);
  margin: 0 auto;
  padding: clamp(36px, 5.5vw, 60px) 28px clamp(32px, 5vw, 52px);
}

.contrib-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  font-family: var(--db-label);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.contrib-eyebrow-rule {
  width: 48px;
  height: 3px;
  background: var(--db-red-lift);
  flex-shrink: 0;
}

.contrib-title {
  font-family: var(--db-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.contrib-standfirst {
  font-family: var(--db-head);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  max-width: 42ch;
  margin: 0;
}

/* Column ------------------------------------------------------------------ */
.contrib-container {
  max-width: var(--contrib-measure);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 52px) 28px 80px;
}

.contrib-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--db-line);
}

.contrib-row:not(:last-child) {
  border-bottom: 1px solid var(--db-line);
}

.contrib-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    'meta cta'
    'head cta'
    'exc  cta';
  gap: 0 24px;
  padding: 26px 22px;
  text-decoration: none;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.contrib-link:hover,
.contrib-link:focus-visible {
  background: var(--db-paper);
  box-shadow: inset 3px 0 0 var(--db-red);
}

.contrib-link:focus-visible {
  outline: 2px solid var(--db-red);
  outline-offset: -2px;
}

/* Byline line — the separators are punctuation, so they belong to the type. */
.contrib-meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 10px;
  font-family: var(--db-body);
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--db-muted);
  margin: 0 0 9px;
}

.contrib-meta > *:not(:last-child)::after {
  content: '\00B7';
  margin-left: 10px;
  color: var(--db-line);
}

.contrib-author {
  font-family: var(--db-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--db-red);
}

.contrib-headline {
  grid-area: head;
  font-family: var(--db-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.8vw, 2.5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--db-ink);
  margin: 0 0 12px;
  max-width: 24ch;
  text-wrap: pretty;
  transition: color 0.16s ease;
}

.contrib-link:hover .contrib-headline,
.contrib-link:focus-visible .contrib-headline {
  color: var(--db-red);
}

.contrib-excerpt {
  grid-area: exc;
  font-family: var(--db-body);
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--db-muted);
  margin: 0;
  max-width: 68ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.contrib-cta {
  grid-area: cta;
  align-self: center;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--db-label);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--db-muted);
  transition: color 0.16s ease, gap 0.16s ease;
}

.contrib-link:hover .contrib-cta,
.contrib-link:focus-visible .contrib-cta {
  color: var(--db-red);
  gap: 12px;
}

.contrib-arrow {
  transition: transform 0.16s ease;
}

.contrib-link:hover .contrib-arrow,
.contrib-link:focus-visible .contrib-arrow {
  transform: translateX(3px);
}

/* Empty state ------------------------------------------------------------- */
.contrib-empty {
  border: 1px solid var(--db-line);
  background: #fff;
  padding: 72px 28px;
  text-align: center;
}

.contrib-empty p {
  font-family: var(--db-body);
  font-size: 0.9rem;
  color: var(--db-muted);
  margin: 0;
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 768px) {
  .contrib-masthead-inner,
  .contrib-container {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 620px) {
  .contrib-link {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'meta'
      'head'
      'exc'
      'cta';
    gap: 12px 0;
    padding: 22px 16px;
  }

  .contrib-cta {
    justify-self: start;
  }

  .contrib-excerpt {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contrib-link,
  .contrib-headline,
  .contrib-cta,
  .contrib-arrow {
    transition: none;
  }

  .contrib-link:hover .contrib-arrow,
  .contrib-link:focus-visible .contrib-arrow {
    transform: none;
  }
}

/* ==========================================================================
   SCHEDULES — "The Agate Slate"
   The back-page fixture list of the Saturday Broadsheet. Same ink, paper and
   hairlines as the homepage; the date plate carries game state — ink for
   upcoming, hollow for played, red for the next one on the board.
   ========================================================================== */

.sked-page {
  --sked-header: 95px;   /* sticky site header: strip + navbar + rule */
  --sked-measure: 1040px;
  background: var(--db-paper);
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

/* Masthead ---------------------------------------------------------------- */
.sked-masthead {
  background: var(--db-ink);
  color: #fff;
  border-bottom: 5px solid var(--db-red);
}

.sked-masthead-inner {
  max-width: var(--sked-measure);
  margin: 0 auto;
  padding: clamp(36px, 5.5vw, 60px) 28px clamp(32px, 5vw, 52px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(28px, 5vw, 56px);
  flex-wrap: wrap;
}

.sked-lede {
  min-width: 0;
}

.sked-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  font-family: var(--db-label);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.sked-eyebrow-rule {
  width: 48px;
  height: 3px;
  background: var(--db-red-lift);
  flex-shrink: 0;
}

.sked-title {
  font-family: var(--db-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.sked-standfirst {
  font-family: var(--db-head);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  max-width: 38ch;
  margin: 0;
}

/* Next-up plate ----------------------------------------------------------- */
.sked-next {
  border-left: 3px solid var(--db-red);
  padding-left: 20px;
  flex: 0 1 auto;
  min-width: 0;
}

.sked-next-label {
  font-family: var(--db-label);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 10px;
}

.sked-next-sport {
  color: #fff;
}

.sked-next-match {
  font-family: var(--db-head);
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 7px;
  text-wrap: balance;
}

.sked-next .sked-prep {
  color: rgba(255, 255, 255, 0.5);
}

.sked-next-when {
  font-family: var(--db-body);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 14px;
}

.sked-next-count {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
}

.sked-next-num {
  font-family: var(--db-display);
  font-size: clamp(2.2rem, 5vw, 3rem);
  line-height: 0.85;
  color: #fff;
}

.sked-next-unit,
.sked-next-word {
  font-family: var(--db-label);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sked-next-unit {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

.sked-next-word {
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
  color: var(--db-red-lift);
}

/* Sport rail -------------------------------------------------------------- */
.sked-rail {
  position: sticky;
  top: var(--sked-header);
  z-index: 500;
  background: #fff;
  border-bottom: 1px solid var(--db-line);
}

/* The rail scrolls sideways once the sports outrun the viewport — fade the
   right edge so the cut-off reads as "more", not as a clipped label. */
.sked-rail-scroll {
  position: relative;
  max-width: var(--sked-measure);
  margin: 0 auto;
}

.sked-rail-scroll::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 75%);
}

.sked-rail-list {
  margin: 0;
  padding: 0 28px;
  list-style: none;
  scroll-padding-left: 28px;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.sked-rail-list::-webkit-scrollbar {
  display: none;
}

.sked-rail-link {
  display: block;
  padding: 15px 18px;
  font-family: var(--db-label);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--db-muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.sked-rail-list li:first-child .sked-rail-link {
  padding-left: 0;
}

.sked-rail-link:hover {
  color: var(--db-ink);
  border-bottom-color: var(--db-red);
}

.sked-rail-link:focus-visible {
  outline: 2px solid var(--db-red);
  outline-offset: -2px;
}

/* Sections ---------------------------------------------------------------- */
.sked-container {
  max-width: var(--sked-measure);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 52px) 28px 80px;
}

.sked-section {
  scroll-margin-top: calc(var(--sked-header) + 60px);
}

.sked-section + .sked-section {
  margin-top: clamp(42px, 6vw, 64px);
}

.sked-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.sked-head-title {
  font-family: var(--db-display);
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  color: var(--db-ink);
  margin: 0;
  flex-shrink: 0;
}

.sked-head-rule {
  flex: 1;
  height: 3px;
  background: var(--db-ink);
  position: relative;
}

.sked-head-rule::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 64px;
  height: 3px;
  background: var(--db-red);
}

.sked-head-stat {
  font-family: var(--db-label);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--db-muted);
  flex-shrink: 0;
}

/* Fixture rows ------------------------------------------------------------ */
.sked-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--db-line);
}

.sked-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 22px;
  padding: 15px 22px;
}

.sked-row:not(:last-child) {
  border-bottom: 1px solid var(--db-line);
}

.sked-row.is-played {
  background: var(--db-paper);
}

.sked-row.is-next {
  box-shadow: inset 3px 0 0 var(--db-red);
}

/* Date plate — the state marker: ink ahead, hollow behind, red for next. */
.sked-plate {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 6px 7px;
  background: var(--db-ink);
  color: #fff;
  line-height: 1;
}

.sked-plate-month {
  font-family: var(--db-label);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.sked-plate-day {
  font-family: var(--db-display);
  font-size: 1.9rem;
  margin: 4px 0 3px;
}

.sked-plate-dow {
  font-family: var(--db-label);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.sked-row.is-played .sked-plate {
  background: transparent;
  color: var(--db-muted);
  box-shadow: inset 0 0 0 1px var(--db-line);
}

.sked-row.is-played .sked-plate-month,
.sked-row.is-played .sked-plate-dow {
  color: var(--db-muted);
}

.sked-row.is-next .sked-plate {
  background: var(--db-red);
  color: #fff;
  box-shadow: none;
}

.sked-row.is-next .sked-plate-month {
  color: #fff;
}

.sked-row.is-next .sked-plate-dow {
  color: rgba(255, 255, 255, 0.65);
}

/* Matchup */
.sked-match {
  min-width: 0;
}

.sked-match-title {
  font-family: var(--db-head);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--db-ink);
  margin: 0 0 4px;
  text-wrap: pretty;
}

.sked-prep {
  font-family: var(--db-label);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--db-muted);
  margin-right: 3px;
}

.sked-venue {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  font-family: var(--db-body);
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--db-muted);
  margin: 0;
}

.sked-tick {
  font-family: var(--db-label);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--db-red);
  color: #fff;
  padding: 2px 7px;
}

/* Time / result */
.sked-status {
  text-align: right;
}

.sked-time {
  font-family: var(--db-label);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--db-ink);
  white-space: nowrap;
}

.sked-time--tba {
  font-weight: 400;
  color: var(--db-muted);
}

.sked-result {
  display: inline-block;
  font-family: var(--db-label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  white-space: nowrap;
}

.sked-result--win {
  background: var(--db-red);
  color: #fff;
}

.sked-result--draw {
  background: var(--db-ink);
  color: #fff;
}

.sked-result--loss {
  color: var(--db-muted);
  box-shadow: inset 0 0 0 1px var(--db-line);
}

/* Empty state ------------------------------------------------------------- */
.sked-empty {
  border: 1px solid var(--db-line);
  background: #fff;
  padding: 72px 28px;
  text-align: center;
}

.sked-empty-mark {
  font-family: var(--db-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--db-line);
  margin: 0 0 12px;
}

.sked-empty h2 {
  font-family: var(--db-display);
  font-size: 1.5rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--db-ink);
  margin: 0 0 8px;
}

.sked-empty p {
  font-family: var(--db-body);
  font-size: 0.9rem;
  color: var(--db-muted);
  margin: 0;
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 768px) {
  .sked-page {
    --sked-header: 59px;
  }

  .sked-masthead-inner,
  .sked-rail-list,
  .sked-container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .sked-rail-list {
    scroll-padding-left: 18px;
  }

  .sked-next {
    padding-left: 16px;
  }
}

@media (max-width: 620px) {
  .sked-masthead-inner {
    display: block;
  }

  .sked-next {
    margin-top: 30px;
  }

  .sked-row {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 6px 16px;
    padding: 14px 16px;
  }

  .sked-plate {
    grid-row: 1 / span 2;
    align-self: start;
  }

  .sked-plate-day {
    font-size: 1.6rem;
  }

  .sked-status {
    grid-column: 2;
    text-align: left;
  }

  .sked-head {
    gap: 12px;
  }
}

/* ==========================================================================
   LINKS — "The Directory"
   The broadsheet's back-page listings. Same ink, paper and hairlines as the
   schedules slate; here the agate column carries the destination host, and red
   marks the row you're pointing at the way it marks the next game on the board.
   ========================================================================== */

.dir-page {
  --dir-measure: 1040px;
  background: var(--db-paper);
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

/* Masthead ---------------------------------------------------------------- */
.dir-masthead {
  background: var(--db-ink);
  color: #fff;
  border-bottom: 5px solid var(--db-red);
}

.dir-masthead-inner {
  max-width: var(--dir-measure);
  margin: 0 auto;
  padding: clamp(36px, 5.5vw, 60px) 28px clamp(32px, 5vw, 52px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(28px, 5vw, 56px);
  flex-wrap: wrap;
}

.dir-lede {
  min-width: 0;
}

.dir-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  font-family: var(--db-label);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.dir-eyebrow-rule {
  width: 48px;
  height: 3px;
  background: var(--db-red-lift);
  flex-shrink: 0;
}

.dir-title {
  font-family: var(--db-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.dir-standfirst {
  font-family: var(--db-head);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  max-width: 38ch;
  margin: 0;
}

/* Index box — the paper's own table of contents, with dotted leaders. Doubles
   as the section navigation, which is why the page carries no sticky rail. */
.dir-index {
  border-left: 3px solid var(--db-red);
  padding-left: 20px;
  flex: 0 1 auto;
  min-width: 240px;
}

.dir-index-label {
  font-family: var(--db-label);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 10px;
}

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

.dir-index-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  font-family: var(--db-label);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.18s ease;
}

.dir-index-name {
  min-width: 0;
}

.dir-index-leader {
  flex: 1;
  min-width: 24px;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
  transition: border-color 0.18s ease;
}

.dir-index-count {
  font-family: var(--db-display);
  font-size: 1.05rem;
  line-height: 1;
  color: var(--db-red-lift);
  transition: color 0.18s ease;
}

.dir-index-link:hover {
  color: #fff;
}

.dir-index-link:hover .dir-index-leader {
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

.dir-index-link:hover .dir-index-count {
  color: #fff;
}

.dir-index-link:focus-visible {
  outline: 2px solid var(--db-red-lift);
  outline-offset: 3px;
}

/* Sections ---------------------------------------------------------------- */
.dir-container {
  max-width: var(--dir-measure);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 52px) 28px 80px;
}

.dir-section {
  scroll-margin-top: 120px;
}

.dir-section + .dir-section {
  margin-top: clamp(42px, 6vw, 64px);
}

.dir-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.dir-head-title {
  font-family: var(--db-display);
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  color: var(--db-ink);
  margin: 0;
  flex-shrink: 0;
}

.dir-head-rule {
  flex: 1;
  height: 3px;
  background: var(--db-ink);
  position: relative;
}

.dir-head-rule::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 64px;
  height: 3px;
  background: var(--db-red);
}

.dir-head-stat {
  font-family: var(--db-label);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--db-muted);
  flex-shrink: 0;
}

/* Listing rows ------------------------------------------------------------ */
.dir-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--db-line);
}

.dir-list li:not(:last-child) {
  border-bottom: 1px solid var(--db-line);
}

.dir-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    'title host'
    'note  note';
  align-items: baseline;
  gap: 0 22px;
  padding: 16px 22px;
  text-decoration: none;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.dir-row:hover,
.dir-row:focus-visible {
  background: var(--db-paper);
  box-shadow: inset 3px 0 0 var(--db-red);
}

.dir-row:focus-visible {
  outline: 2px solid var(--db-red);
  outline-offset: -2px;
}

.dir-row-title {
  grid-area: title;
  font-family: var(--db-head);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--db-ink);
  margin: 0;
  text-wrap: pretty;
  transition: color 0.16s ease;
}

.dir-row:hover .dir-row-title {
  color: var(--db-red);
}

/* Agate column: where this row actually goes. */
.dir-row-host {
  grid-area: host;
  justify-self: end;
  font-family: var(--db-label);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--db-muted);
  white-space: nowrap;
}

/* The outbound mark belongs to the row you're pointing at, not to all of them —
   the host already says every row leaves the site. Opacity keeps the space
   reserved so the right edge doesn't jump on hover. */
.dir-row-mark {
  display: inline-block;
  margin-left: 8px;
  color: var(--db-red);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.dir-row:hover .dir-row-mark,
.dir-row:focus-visible .dir-row-mark {
  opacity: 1;
  transform: translate(0, 0);
}

.dir-row-note {
  grid-area: note;
  font-family: var(--db-body);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--db-muted);
  margin: 5px 0 0;
  max-width: 64ch;
}

/* Empty state ------------------------------------------------------------- */
.dir-empty {
  border: 1px solid var(--db-line);
  background: #fff;
  padding: 72px 28px;
  text-align: center;
}

.dir-empty-mark {
  font-family: var(--db-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--db-line);
  margin: 0 0 12px;
}

.dir-empty h2 {
  font-family: var(--db-display);
  font-size: 1.5rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--db-ink);
  margin: 0 0 8px;
}

.dir-empty p {
  font-family: var(--db-body);
  font-size: 0.9rem;
  color: var(--db-muted);
  margin: 0;
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 768px) {
  .dir-masthead-inner,
  .dir-container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .dir-index {
    padding-left: 16px;
  }
}

@media (max-width: 620px) {
  .dir-masthead-inner {
    display: block;
  }

  .dir-index {
    margin-top: 30px;
  }

  .dir-row {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'title'
      'note'
      'host';
    padding: 15px 16px;
  }

  .dir-row-host {
    justify-self: start;
    margin-top: 8px;
  }

  .dir-head {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dir-row,
  .dir-row-title,
  .dir-row-mark,
  .dir-index-link,
  .dir-index-leader,
  .dir-index-count {
    transition: none;
  }

  .dir-row-mark,
  .dir-row:hover .dir-row-mark,
  .dir-row:focus-visible .dir-row-mark {
    transform: none;
  }
}

/* ==========================================================================
   COMMITMENTS — "The Class Board"
   The recruiting page of the Saturday Broadsheet. Same ink, paper and hairlines
   as the agate slate; here the plate carries the date a pledge landed, the
   badge carries the star count, and red marks the newest name on the board.
   ========================================================================== */

.com-page {
  --com-header: 95px;   /* sticky site header: strip + navbar + rule */
  --com-measure: 1040px;
  background: var(--db-paper);
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

/* Masthead ---------------------------------------------------------------- */
.com-masthead {
  background: var(--db-ink);
  color: #fff;
  border-bottom: 5px solid var(--db-red);
}

.com-masthead-inner {
  max-width: var(--com-measure);
  margin: 0 auto;
  padding: clamp(36px, 5.5vw, 60px) 28px clamp(32px, 5vw, 52px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(28px, 5vw, 56px);
  flex-wrap: wrap;
}

.com-lede {
  min-width: 0;
}

.com-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  font-family: var(--db-label);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.com-eyebrow-rule {
  width: 48px;
  height: 3px;
  background: var(--db-red-lift);
  flex-shrink: 0;
}

.com-title {
  font-family: var(--db-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.com-standfirst {
  font-family: var(--db-head);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  max-width: 38ch;
  margin: 0;
}

/* Class tally ------------------------------------------------------------ */
.com-tally {
  border-left: 3px solid var(--db-red);
  padding-left: 20px;
  margin: 0;
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.com-tally-num {
  font-family: var(--db-display);
  font-size: clamp(2.4rem, 5.5vw, 3.4rem);
  line-height: 0.85;
  color: #fff;
}

.com-tally-unit {
  font-family: var(--db-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

/* Position rail ----------------------------------------------------------- */
.com-rail {
  position: sticky;
  top: var(--com-header);
  z-index: 500;
  background: #fff;
  border-bottom: 1px solid var(--db-line);
}

/* The rail scrolls sideways once the positions outrun the viewport — fade the
   right edge so the cut-off reads as "more", not as a clipped label. */
.com-rail-scroll {
  position: relative;
  max-width: var(--com-measure);
  margin: 0 auto;
}

.com-rail-scroll::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 75%);
}

.com-rail-list {
  margin: 0;
  padding: 0 28px;
  list-style: none;
  scroll-padding-left: 28px;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.com-rail-list::-webkit-scrollbar {
  display: none;
}

.com-rail-link {
  display: block;
  padding: 15px 18px;
  font-family: var(--db-label);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--db-muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.com-rail-list li:first-child .com-rail-link {
  padding-left: 0;
}

.com-rail-link:hover {
  color: var(--db-ink);
  border-bottom-color: var(--db-red);
}

.com-rail-link:focus-visible {
  outline: 2px solid var(--db-red);
  outline-offset: -2px;
}

/* Sections ---------------------------------------------------------------- */
.com-container {
  max-width: var(--com-measure);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 52px) 28px 80px;
}

.com-section {
  scroll-margin-top: calc(var(--com-header) + 60px);
}

.com-section + .com-section {
  margin-top: clamp(42px, 6vw, 64px);
}

.com-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.com-head-title {
  font-family: var(--db-display);
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  color: var(--db-ink);
  margin: 0;
  flex-shrink: 0;
}

.com-head-rule {
  flex: 1;
  height: 3px;
  background: var(--db-ink);
  position: relative;
}

.com-head-rule::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 64px;
  height: 3px;
  background: var(--db-red);
}

.com-head-stat {
  font-family: var(--db-label);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--db-muted);
  flex-shrink: 0;
}

/* Pledge rows ------------------------------------------------------------- */
.com-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--db-line);
}

.com-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    'name rating'
    'meta meta'
    'note note';
  align-items: baseline;
  gap: 0 22px;
  padding: 17px 22px;
}

.com-row:not(:last-child) {
  border-bottom: 1px solid var(--db-line);
}

.com-row.is-latest {
  box-shadow: inset 3px 0 0 var(--db-red);
}

/* Recruit */
.com-name {
  grid-area: name;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-family: var(--db-head);
  font-size: clamp(1.15rem, 1.9vw, 1.35rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--db-ink);
  margin: 0;
  text-wrap: pretty;
}

.com-tick {
  font-family: var(--db-label);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--db-red);
  color: #fff;
  padding: 2px 7px;
}

/* Agate line — the pasted profile block reflowed to one row of facts, with the
   commitment date riding along at the end as subtext. */
.com-meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 10px;
  font-family: var(--db-body);
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--db-muted);
  margin: 5px 0 0;
}

/* The separator rides on the item before it so a wrapped line never opens with
   a floating dot. */
.com-meta span:not(:last-child)::after {
  content: '\00B7';
  margin-left: 10px;
  color: var(--db-line);
}

.com-note {
  grid-area: note;
  font-family: var(--db-body);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--db-muted);
  margin-top: 8px;
  max-width: 64ch;
}

.com-note p {
  margin: 0;
}

.com-note p + p {
  margin-top: 8px;
}

/* Star badge — loud for the top of the board, plain for everything else. */
.com-rating {
  grid-area: rating;
  justify-self: end;
  display: inline-block;
  font-family: var(--db-label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  white-space: nowrap;
}

.com-rating--five {
  background: var(--db-red);
  color: #fff;
}

.com-rating--four {
  background: var(--db-ink);
  color: #fff;
}

.com-rating--other {
  color: var(--db-muted);
  box-shadow: inset 0 0 0 1px var(--db-line);
}

/* Empty state ------------------------------------------------------------- */
.com-empty {
  border: 1px solid var(--db-line);
  background: #fff;
  padding: 72px 28px;
  text-align: center;
}

.com-empty-mark {
  font-family: var(--db-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--db-line);
  margin: 0 0 12px;
}

.com-empty h2 {
  font-family: var(--db-display);
  font-size: 1.5rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--db-ink);
  margin: 0 0 8px;
}

.com-empty p {
  font-family: var(--db-body);
  font-size: 0.9rem;
  color: var(--db-muted);
  margin: 0;
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 768px) {
  .com-page {
    --com-header: 59px;
  }

  .com-masthead-inner,
  .com-rail-list,
  .com-container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .com-rail-list {
    scroll-padding-left: 18px;
  }

  .com-tally {
    padding-left: 16px;
  }
}

@media (max-width: 620px) {
  .com-masthead-inner {
    display: block;
  }

  .com-tally {
    margin-top: 30px;
  }

  .com-row {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'name'
      'rating'
      'meta'
      'note';
    gap: 8px 0;
    padding: 16px;
  }

  .com-rating {
    justify-self: start;
  }

  .com-meta,
  .com-note {
    margin-top: 0;
  }

  .com-head {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .com-rail-link {
    transition: none;
  }
}

/* ==========================================================================
   SOCIALS — "The Colophon"
   Where to find the paper. Four entries can't carry a dense listing, so each
   account gets a full-width nameplate instead: sequence numeral, platform set
   in display type, handle in agate. No brand colours — the band inverts to ink
   on hover and the red mark leads you off the page, same as the directory.
   ========================================================================== */

.soc-page {
  --soc-measure: 1040px;
  background: var(--db-paper);
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

/* Masthead ---------------------------------------------------------------- */
.soc-masthead {
  background: var(--db-ink);
  color: #fff;
  border-bottom: 5px solid var(--db-red);
}

.soc-masthead-inner {
  max-width: var(--soc-measure);
  margin: 0 auto;
  padding: clamp(36px, 5.5vw, 60px) 28px clamp(32px, 5vw, 52px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(28px, 5vw, 56px);
  flex-wrap: wrap;
}

.soc-lede {
  min-width: 0;
}

.soc-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  font-family: var(--db-label);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.soc-eyebrow-rule {
  width: 48px;
  height: 3px;
  background: var(--db-red-lift);
  flex-shrink: 0;
}

.soc-title {
  font-family: var(--db-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.soc-standfirst {
  font-family: var(--db-head);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  max-width: 42ch;
  margin: 0;
}

/* Standing handle — one name across every feed, so the masthead says it once. */
.soc-standing {
  border-left: 3px solid var(--db-red);
  padding-left: 20px;
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
  font-family: var(--db-display);
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  line-height: 0.9;
  text-transform: uppercase;
  color: #fff;
}

/* Bands ------------------------------------------------------------------- */
.soc-container {
  max-width: var(--soc-measure);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 52px) 28px 80px;
}

.soc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--db-line);
}

.soc-list li:not(:last-child) {
  border-bottom: 1px solid var(--db-line);
}

.soc-band {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  grid-template-areas: 'mark id go';
  align-items: center;
  gap: 0 24px;
  padding: 26px 28px;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.soc-band:hover,
.soc-band:focus-visible {
  background: var(--db-ink);
  box-shadow: inset 4px 0 0 var(--db-red);
}

.soc-band:focus-visible {
  outline: 2px solid var(--db-red-lift);
  outline-offset: -2px;
}

/* Sequence numeral, or whatever glyph the admin set as the icon. */
.soc-mark {
  grid-area: mark;
  font-family: var(--db-display);
  font-size: 2.3rem;
  line-height: 1;
  color: var(--db-line);
  transition: color 0.2s ease;
}

.soc-band:hover .soc-mark,
.soc-band:focus-visible .soc-mark {
  color: var(--db-red-lift);
}

.soc-id {
  grid-area: id;
  min-width: 0;
}

.soc-platform {
  display: block;
  font-family: var(--db-display);
  font-size: clamp(1.8rem, 4.4vw, 2.9rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--db-ink);
  transition: color 0.2s ease;
}

.soc-band:hover .soc-platform,
.soc-band:focus-visible .soc-platform {
  color: #fff;
}

.soc-handle {
  display: block;
  margin-top: 9px;
  font-family: var(--db-label);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--db-muted);
  transition: color 0.2s ease;
}

.soc-band:hover .soc-handle,
.soc-band:focus-visible .soc-handle {
  color: rgba(255, 255, 255, 0.6);
}

.soc-go {
  grid-area: go;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--db-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--db-muted);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.soc-band:hover .soc-go,
.soc-band:focus-visible .soc-go {
  color: #fff;
}

/* The outbound arrow belongs to the band you're pointing at. Opacity keeps the
   space reserved so the right edge doesn't jump. */
.soc-arrow {
  color: var(--db-red-lift);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.soc-band:hover .soc-arrow,
.soc-band:focus-visible .soc-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* Empty state ------------------------------------------------------------- */
.soc-empty {
  border: 1px solid var(--db-line);
  background: #fff;
  padding: 72px 28px;
  text-align: center;
}

.soc-empty-mark {
  font-family: var(--db-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--db-line);
  margin: 0 0 12px;
}

.soc-empty h2 {
  font-family: var(--db-display);
  font-size: 1.5rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--db-ink);
  margin: 0 0 8px;
}

.soc-empty p {
  font-family: var(--db-body);
  font-size: 0.9rem;
  color: var(--db-muted);
  margin: 0;
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 768px) {
  .soc-masthead-inner,
  .soc-container {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 620px) {
  .soc-masthead-inner {
    display: block;
  }

  .soc-standing {
    margin-top: 30px;
    padding-left: 16px;
  }

  .soc-band {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      'mark go'
      'id   id';
    align-items: center;
    gap: 14px 16px;
    padding: 22px 18px;
  }

  .soc-mark {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .soc-band,
  .soc-mark,
  .soc-platform,
  .soc-handle,
  .soc-go,
  .soc-arrow {
    transition: none;
  }

  .soc-arrow,
  .soc-band:hover .soc-arrow,
  .soc-band:focus-visible .soc-arrow {
    transform: none;
  }
}

/* ==========================================================================
   ABOUT & CONTACT — "The Standing Matter"
   The pages that don't turn over with the news. One block serves both: they are
   the same shape — masthead, then a single column set to the same measure the
   article pages use, so the paper's prose reads the same width everywhere.
   ========================================================================== */

.doc-page {
  --doc-measure: 1040px;
  --doc-column: 740px;
  background: var(--db-paper);
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

/* Masthead ---------------------------------------------------------------- */
.doc-masthead {
  background: var(--db-ink);
  color: #fff;
  border-bottom: 5px solid var(--db-red);
}

.doc-masthead-inner {
  max-width: var(--doc-measure);
  margin: 0 auto;
  padding: clamp(36px, 5.5vw, 60px) 28px clamp(32px, 5vw, 52px);
}

/* These two pages carry no eyebrow copy, so the rule stands on its own. */
.doc-rule {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--db-red-lift);
  margin-bottom: 22px;
}

.doc-title {
  font-family: var(--db-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin: 0;
  max-width: 24ch;
  text-wrap: balance;
}

/* Column ------------------------------------------------------------------ */
.doc-container {
  max-width: var(--doc-column);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 52px) 28px 80px;
}

.doc-body {
  background: #fff;
  border: 1px solid var(--db-line);
  padding: clamp(30px, 5vw, 48px);
  font-family: var(--db-head);
  font-size: 1.05rem;
  line-height: 1.85;
  color: #232323;
}

.doc-body p {
  margin: 0 0 1.5em;
}

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

/* A drop cap needs a column to sit in. On a page that is one paragraph long it
   would be most of the page, so it only opens a body that runs on. */
.doc-body > p:first-of-type:not(:last-of-type)::first-letter {
  float: left;
  font-family: var(--db-label);
  font-size: 4.4rem;
  font-weight: 700;
  line-height: 0.78;
  color: var(--db-red);
  padding-right: 12px;
  padding-top: 6px;
}

/* And a page that is one paragraph long is a note, not an article — set it as
   one so it doesn't read as a stray line under the masthead. */
.doc-body > p:only-of-type {
  font-size: 1.3rem;
  line-height: 1.7;
}

.doc-body a {
  color: var(--db-red);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(186, 12, 47, 0.32);
  transition: text-decoration-color 0.18s ease;
}

.doc-body a:hover {
  text-decoration-color: var(--db-red);
}

.doc-body a:focus-visible {
  outline: 2px solid var(--db-red);
  outline-offset: 3px;
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 768px) {
  .doc-masthead-inner,
  .doc-container {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 620px) {
  .doc-body > p:first-of-type:not(:last-of-type)::first-letter {
    font-size: 3.4rem;
  }

  .doc-body > p:only-of-type {
    font-size: 1.12rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .doc-body a {
    transition: none;
  }
}
