/*
 * 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;
  }
}

/* Schedule Page Styles */
.schedule-table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
}

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

.schedule-table th {
  background: #BA0C2F;
  color: white;
  padding: 12px;
  text-align: left;
  font-weight: 600;
}

.schedule-table td {
  padding: 12px;
  border-bottom: 1px solid #e0e0e0;
}

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

.home-away-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 8px;
}

.home-away-badge.home {
  background: #BA0C2F;
  color: white;
}

.home-away-badge.away {
  background: #666;
  color: white;
}

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

.link-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-left: 4px solid #BA0C2F;
}

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

.link-card h3 {
  margin: 0 0 10px 0;
  color: #BA0C2F;
  font-size: 1.2rem;
}

.link-card h3 a {
  color: #BA0C2F;
  text-decoration: none;
}

.link-card h3 a:hover {
  text-decoration: underline;
}

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

/* 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 Page Styles */
.commitments-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

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

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

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

.commitment-position {
  background: #000;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.commitment-rating {
  background: #BA0C2F;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.commitment-meta {
  margin-bottom: 10px;
}

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

.commitment-summary {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

.commitment-summary p {
  margin: 0;
  color: #333;
  line-height: 1.6;
}

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

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

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

.social-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.social-card h3 {
  margin: 0 0 15px 0;
  color: #000;
  font-size: 1.2rem;
}

.social-card .btn {
  margin-top: 10px;
}

/* 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) {
  .schedule-table-wrapper {
    margin: 15px -20px;
    padding: 0 20px;
  }

  .links-grid,
  .roster-grid,
  .socials-grid {
    grid-template-columns: 1fr;
  }

  .commitment-header,
  .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 Index Page — Editorial Opinion Layout
   =================================================== */

.contrib-index-wrapper {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 0 24px 80px;
}

/* Page header */
.contrib-index-header {
  margin-bottom: 0;
}

.contrib-index-label {
  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: 16px;
}

.contrib-index-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  color: #111;
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.contrib-index-subtitle {
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  color: #777;
  font-style: italic;
  margin: 0 0 24px 0;
  line-height: 1.6;
}

.contrib-index-rule {
  height: 3px;
  background: #BA0C2F;
  margin-bottom: 0;
  position: relative;
}

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

/* Article list */
.contrib-article-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contrib-article-item {
  border-bottom: 1px solid #e8e8e8;
}

.contrib-article-link {
  display: block;
  padding: 32px 0 32px 16px;
  text-decoration: none;
  color: inherit;
  border-left: 3px solid transparent;
  transition: border-color 0.18s ease, background 0.18s ease, padding-left 0.18s ease;
}

.contrib-article-link:hover {
  border-left-color: #BA0C2F;
  background: #fdf9f9;
  padding-left: 22px;
}

/* Lead (first) article gets bigger treatment */
.contrib-article-item--lead .contrib-article-link {
  padding-top: 36px;
  padding-bottom: 36px;
}

.contrib-article-item--lead .contrib-article-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.contrib-article-item--lead .contrib-article-excerpt {
  font-size: 1rem;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

/* Meta line */
.contrib-article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.contrib-article-author {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #BA0C2F;
}

.contrib-article-sep {
  color: #ccc;
  font-size: 0.75rem;
}

.contrib-article-date,
.contrib-article-time {
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.78rem;
  color: #999;
}

/* Title */
.contrib-article-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: #111;
  margin: 0 0 10px 0;
  line-height: 1.2;
  letter-spacing: -0.005em;
  transition: color 0.18s ease;
}

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

/* Excerpt */
.contrib-article-excerpt {
  font-family: 'Merriweather', serif;
  font-size: 0.92rem;
  color: #555;
  line-height: 1.75;
  margin: 0 0 14px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CTA */
.contrib-article-cta {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #BA0C2F;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.18s ease, color 0.18s ease;
}

.contrib-article-link:hover .contrib-article-cta {
  gap: 8px;
}

.contrib-cta-arrow {
  display: inline-block;
  transition: transform 0.18s ease;
}

.contrib-article-link:hover .contrib-cta-arrow {
  transform: translateX(3px);
}

/* Empty state */
.contrib-empty {
  padding: 60px 0;
  text-align: center;
  font-family: 'Merriweather', serif;
  font-style: italic;
  color: #999;
  font-size: 1rem;
}

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

  .contrib-article-link {
    padding: 24px 0 24px 12px;
  }

  .contrib-article-link:hover {
    padding-left: 18px;
  }

  .contrib-article-item--lead .contrib-article-link {
    padding-top: 28px;
    padding-bottom: 28px;
  }

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