/* TCG Headlines bands layout */
.band-dark { background-color: #131830; }
.star-divider {
  height: 50px;
  background-color: #131830;
  background-image: url("/images/tcgheadlines/image_7.png");
  background-repeat: repeat-x;
  background-position: center center;
  background-size: auto 200%;
  position: relative;
  z-index: 10;
  margin-top: -25px;
  margin-bottom: -25px;
  pointer-events: none;
}
.hero-image-lg {
  background-size: cover;
  background-position: center;
  min-height: 260px;
}

/* Dark mode for bands layout light sections (tcgheadlines) */
.dark .bands-layout .bg-gray-50 { background-color: #131830 !important; }
.dark .bands-layout .bg-white { background-color: #1c2240 !important; }
.dark .bands-layout .bg-amber-50 { background-color: rgba(217,119,6,0.1) !important; }

/* Text colors */
.dark .bands-layout .text-gray-900 { color: #f3f4f6 !important; }
.dark .bands-layout .text-gray-800 { color: #e5e7eb !important; }
.dark .bands-layout .text-gray-700 { color: #d1d5db !important; }
.dark .bands-layout .text-gray-600 { color: #9ca3af !important; }
.dark .bands-layout .text-gray-500 { color: #9ca3af !important; }
.dark .bands-layout .text-amber-800 { color: #fbbf24 !important; }
.dark .bands-layout .text-amber-700 { color: #fbbf24 !important; }

/* Borders */
.dark .bands-layout .border-gray-200 { border-color: rgba(255,255,255,0.1) !important; }
.dark .bands-layout .border-gray-100 { border-color: rgba(255,255,255,0.08) !important; }
.dark .bands-layout .border-gray-300 { border-color: rgba(255,255,255,0.15) !important; }
.dark .bands-layout .border-amber-200 { border-color: rgba(217,119,6,0.3) !important; }

/* Cards and interactive elements */
.dark .bands-layout .shadow-sm { box-shadow: none !important; }
.dark .bands-layout .hover\:shadow-md:hover { box-shadow: 0 0 15px rgba(234,179,8,0.1) !important; }

/* Form inputs */
.dark .bands-layout input.border-gray-300 {
  background-color: #1c2240 !important;
  color: #f3f4f6 !important;
}

/* Hero card gradient */
.dark .bands-layout article.border-amber-200 {
  background: linear-gradient(135deg, rgba(217,119,6,0.12) 0%, rgba(19,24,48,0.9) 100%) !important;
}

/* Sort pills on search page */
.dark .bands-layout .bg-white.text-amber-700 {
  background-color: #1c2240 !important;
  border-color: rgba(217,119,6,0.3) !important;
  color: #fbbf24 !important;
}
.dark .bands-layout .hover\:bg-amber-50:hover { background-color: rgba(217,119,6,0.15) !important; }

/* Reset global font-size overrides inside bands layout */
.bands-layout {
  font-size: 1rem; /* 16px — Tailwind default */
}

/* MouseDetails newspaper layout */
.newspaper-three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}
.newspaper-three-col > .newspaper-col {
  padding: 0 28px;
  border-right: 1px solid #d4d2cb;
}
.newspaper-three-col > .newspaper-col:first-child { padding-left: 0; }
.newspaper-three-col > .newspaper-col:last-child { padding-right: 0; border-right: none; }

.newspaper-two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0;
}
.newspaper-two-col-even {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.newspaper-two-col-even > .newspaper-col {
  padding: 0 28px;
  border-right: 1px solid #d4d2cb;
}
.newspaper-two-col-even > .newspaper-col:first-child { padding-left: 0; }
.newspaper-two-col-even > .newspaper-col:last-child { padding-right: 0; border-right: none; }
.newspaper-two-col > .newspaper-col-wide {
  padding-right: 28px;
  border-right: 1px solid #d4d2cb;
}
.newspaper-two-col > .newspaper-col-narrow {
  padding-left: 28px;
}

.newspaper-event-group {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #d4d2cb;
}
.newspaper-event-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.text-gold { color: #b8860b; }
.hover\:text-gold:hover { color: #b8860b !important; }
.dark .text-gold { color: #d4a632; }
.dark .hover\:text-gold:hover { color: #d4a632 !important; }

.dark .newspaper-masthead {
  background: #111827 !important;
  border-color: #374151 !important;
}
.dark .newspaper-title {
  color: #f3f4f6 !important;
}

.dark .newspaper-three-col > .newspaper-col,
.dark .newspaper-two-col > .newspaper-col-wide,
.dark .newspaper-two-col-even > .newspaper-col {
  border-right-color: #374151;
}
.dark .newspaper-event-group {
  border-bottom-color: #374151;
}

@media (max-width: 900px) {
  .newspaper-three-col { grid-template-columns: 1fr 1fr; }
  .newspaper-three-col > .newspaper-col:nth-child(2) { border-right: none; }
  .newspaper-three-col > .newspaper-col:last-child {
    grid-column: 1 / -1;
    border-right: none;
    padding: 16px 0 0;
    border-top: 1px solid #d4d2cb;
  }
}
@media (max-width: 600px) {
  .newspaper-three-col,
  .newspaper-two-col,
  .newspaper-two-col-even { grid-template-columns: 1fr; }
  .newspaper-three-col > .newspaper-col,
  .newspaper-two-col > .newspaper-col-wide,
  .newspaper-two-col > .newspaper-col-narrow,
  .newspaper-two-col-even > .newspaper-col {
    padding: 0;
    border-right: none;
    border-bottom: 1px solid #d4d2cb;
    padding-bottom: 16px;
    margin-bottom: 16px;
  }
  .newspaper-two-col > .newspaper-col-narrow {
    padding-left: 0;
  }
}

/* Broadsheet: left | double center | right */
.newspaper-broadsheet {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 0;
}
.newspaper-broadsheet > .newspaper-side-col {
  padding: 0 24px;
  border-right: 1px solid #d4d2cb;
}
.newspaper-broadsheet > .newspaper-side-col:first-child { padding-left: 0; }
.newspaper-broadsheet > .newspaper-side-col:last-child { padding-right: 0; border-right: none; }
.newspaper-broadsheet > .newspaper-center-col {
  padding: 0 24px;
  border-right: 1px solid #d4d2cb;
}

/* Center pair: 2 cols inside the center double column */
.newspaper-center-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.newspaper-center-pair > .newspaper-center-pair-col {
  padding: 0 16px;
  border-right: 1px solid #d4d2cb;
}
.newspaper-center-pair > .newspaper-center-pair-col:first-child { padding-left: 0; }
.newspaper-center-pair > .newspaper-center-pair-col:last-child { padding-right: 0; border-right: none; }

.dark .newspaper-center-pair > .newspaper-center-pair-col {
  border-right-color: #374151;
}

/* 4-column even grid */
.newspaper-four-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 0;
}
.newspaper-four-col > .newspaper-col {
  padding: 0 20px;
  border-right: 1px solid #d4d2cb;
}
.newspaper-four-col > .newspaper-col:first-child { padding-left: 0; }
.newspaper-four-col > .newspaper-col:last-child { padding-right: 0; border-right: none; }

.dark .newspaper-broadsheet > .newspaper-side-col,
.dark .newspaper-broadsheet > .newspaper-center-col,
.dark .newspaper-four-col > .newspaper-col {
  border-right-color: #374151;
}

@media (max-width: 1100px) {
  .newspaper-broadsheet {
    grid-template-columns: 1fr 1fr;
  }
  .newspaper-broadsheet > .newspaper-side-col:last-child {
    grid-column: 1 / -1;
    padding: 16px 0 0;
    border-top: 1px solid #d4d2cb;
    border-right: none;
  }
  .newspaper-four-col {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 700px) {
  .newspaper-broadsheet,
  .newspaper-four-col {
    grid-template-columns: 1fr;
  }
  .newspaper-center-pair { grid-template-columns: 1fr; }
  .newspaper-center-pair > .newspaper-center-pair-col {
    padding: 0; border-right: none;
    border-bottom: 1px solid #d4d2cb; padding-bottom: 12px; margin-bottom: 12px;
  }
  .newspaper-broadsheet > .newspaper-center-col { order: 1; }
  .newspaper-broadsheet > .newspaper-side-col:first-child { order: 2; }
  .newspaper-broadsheet > .newspaper-side-col:last-child { order: 3; }
  .newspaper-broadsheet > .newspaper-side-col,
  .newspaper-broadsheet > .newspaper-center-col,
  .newspaper-four-col > .newspaper-col {
    padding: 0;
    border-right: none;
    border-bottom: 1px solid #d4d2cb;
    padding-bottom: 16px;
    margin-bottom: 16px;
  }
}

/* Paywall hide/show */
[data-paywalled="true"] {
  transition: opacity 0.2s ease, max-height 0.3s ease;
  max-height: 200px;
  overflow: hidden;
}

.paywall-hidden [data-paywalled="true"] {
  opacity: 0;
  max-height: 0;
  margin: 0;
  padding: 0;
}

.paywall-hidden [data-paywall-group].all-paywalled {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-paywalled="true"] {
    transition: none;
  }
}

/* Custom styles for Feed Monitor */

/* Type scale. Admin keeps the dense 14px. The public layout uses a
   readable scale: 16px on phones (iOS's own body default — reader
   feedback 2026-09-13 called 14px Georgia "painful to read on mobile"),
   15px from the sm breakpoint up. Tailwind utilities are rem-based and
   unaffected; only inherited text moves. */
body.admin-layout {
  font-size: 0.875rem; /* 14px */
}
body.public-layout {
  font-size: 1rem;
}
@media (min-width: 640px) {
  body.public-layout {
    font-size: 0.9375rem; /* 15px */
  }
}

/* Headline list rows */
.headline-link {
  line-height: 1.4;
}

/* Visited headlines fade so a reader coming back to the list (bfcache
   restores the position instantly) can see where they were. Browsers only
   allow color changes on :visited. The pseudo-class outranks the Tailwind
   color utility; hover keeps the link color. */
.headline-link:visited {
  color: #6b7280; /* gray-500 */
}
.dark .headline-link:visited {
  color: #9ca3af; /* gray-400 */
}
.headline-link:visited:hover {
  color: var(--color-link);
}
.article-meta {
  font-size: 0.8125rem; /* 13px on phones — was 12px */
}
@media (min-width: 640px) {
  .article-meta {
    font-size: 0.875rem; /* 14px on desktop, as before */
  }
}
.headline-row {
  line-height: 1.4;
}

/* Filter pills scroll sideways in one row on phones; hide the bar (iOS
   overlays it anyway, desktop Chrome would paint a permanent scrollbar). */
.pill-row {
  scrollbar-width: none;
}
.pill-row::-webkit-scrollbar {
  display: none;
}

/* Smaller heading sizes — :where() gives zero specificity so
   Tailwind utilities (text-3xl, text-lg, etc.) always win. */
:where(h1) { font-size: 1.75rem; }
:where(h2) { font-size: 1.5rem; }
:where(h3) { font-size: 1.25rem; }
:where(h4) { font-size: 1.125rem; }
:where(h5) { font-size: 1rem; }
:where(h6) { font-size: 0.875rem; }

/* Ensure tables have consistent styling */
table {
  font-size: 0.875rem;
}

/* Article content specific styles */
.article-content {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Raw content container */
.raw-content {
  max-height: 600px;
  overflow-y: auto;
}

/* Status indicators */
.status-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.status-indicator.active {
  background-color: #10b981; /* green-500 */
}

.status-indicator.inactive {
  background-color: #f59e0b; /* amber-500 */
}

.status-indicator.error {
  background-color: #ef4444; /* red-500 */
}

/* Dark mode support (class-based, toggled via .dark on <html>) */
.dark .status-indicator.active {
  background-color: #34d399; /* green-400 */
}

.dark .status-indicator.inactive {
  background-color: #fbbf24; /* amber-400 */
}

.dark .status-indicator.error {
  background-color: #f87171; /* red-400 */
}

/* Most Popular section dark mode */
.dark .most-popular-section {
  border-left-color: #ef4444 !important; /* red-500 */
}

/* Contextual Deal section dark mode */
.dark .contextual-deal-section {
  border-left-color: var(--color-accent) !important;
}

/* Bootstrap dark mode overrides for admin pages */
.dark .card {
  background-color: #111827; /* gray-900 */
  border-color: #374151; /* gray-700 */
  color: #e5e7eb; /* gray-200 */
}

.dark .card-header {
  background-color: #1f2937; /* gray-800 */
  border-color: #374151; /* gray-700 */
  color: #f3f4f6; /* gray-100 */
}

.dark .card-body {
  color: #e5e7eb; /* gray-200 */
}

.dark .table {
  color: #e5e7eb; /* gray-200 */
  --bs-table-bg: transparent;
}

.dark .table > :not(caption) > * > * {
  border-bottom-color: #374151; /* gray-700 */
}

.dark .table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: rgba(255, 255, 255, 0.03);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
}

.dark .table-warning {
  --bs-table-bg: rgba(234, 179, 8, 0.1);
  --bs-table-striped-bg: rgba(234, 179, 8, 0.1);
  color: #fbbf24; /* amber-400 */
}

.dark .text-muted {
  color: #9ca3af !important; /* gray-400 */
}

.dark .text-decoration-none {
  color: #93c5fd; /* blue-300 */
}

.dark .form-control {
  background-color: #1f2937; /* gray-800 */
  border-color: #4b5563; /* gray-600 */
  color: #f3f4f6; /* gray-100 */
}

.dark .form-control:focus {
  background-color: #1f2937;
  border-color: #3b82f6; /* blue-500 */
  color: #f3f4f6;
}

.dark .form-label,
.dark label {
  color: #d1d5db; /* gray-300 */
}

.dark .form-text {
  color: #9ca3af !important; /* gray-400 */
}

.dark .form-select {
  background-color: #1f2937;
  border-color: #4b5563;
  color: #f3f4f6;
}

.dark .alert-danger {
  background-color: rgba(127, 29, 29, 0.3);
  border-color: #991b1b;
  color: #fca5a5; /* red-300 */
}

.dark .breadcrumb {
  color: #9ca3af;
}

.dark .breadcrumb-item a {
  color: #93c5fd; /* blue-300 */
}

.dark .breadcrumb-item.active {
  color: #d1d5db; /* gray-300 */
}

.dark .page-header,
.dark :is(h1, h2, h3, h4, h5, h6):not(.bands-layout *) {
  color: #f3f4f6; /* gray-100 */
}

.dark .btn-outline-primary {
  color: #93c5fd;
  border-color: #3b82f6;
}

.dark .btn-outline-primary:hover {
  background-color: #3b82f6;
  color: #fff;
}

.dark .btn-outline-danger {
  color: #fca5a5;
  border-color: #ef4444;
}

.dark .btn-outline-danger:hover {
  background-color: #ef4444;
  color: #fff;
}

.dark .btn-secondary {
  background-color: #4b5563;
  border-color: #4b5563;
}

.dark .container-fluid {
  color: #e5e7eb;
}

/* Dark mode: lighten link hover colors that are too dark on dark backgrounds.
   These override Tailwind hover:text-*-800/900 classes which are unreadable on dark bg. */
.dark .hover\:text-blue-900:hover { color: #93c5fd !important; }
.dark .hover\:text-blue-800:hover { color: #93c5fd !important; }
.dark .hover\:text-indigo-900:hover { color: #a5b4fc !important; }
.dark .hover\:text-indigo-800:hover { color: #a5b4fc !important; }
.dark .hover\:text-red-900:hover { color: #fca5a5 !important; }
.dark .hover\:text-red-800:hover { color: #fca5a5 !important; }
.dark .hover\:text-yellow-900:hover { color: #fde68a !important; }
.dark .hover\:text-yellow-800:hover { color: #fde68a !important; }
.dark .hover\:text-green-900:hover { color: #86efac !important; }
.dark .hover\:text-green-800:hover { color: #86efac !important; }
.dark .hover\:text-purple-900:hover { color: #c4b5fd !important; }
.dark .hover\:text-purple-800:hover { color: #c4b5fd !important; }

/* Dark mode: lighten light hover backgrounds on outline action buttons */
.dark .hover\:bg-yellow-50:hover { background-color: rgba(234, 179, 8, 0.15) !important; }
.dark .hover\:bg-red-50:hover { background-color: rgba(239, 68, 68, 0.15) !important; }
.dark .hover\:bg-green-50:hover { background-color: rgba(34, 197, 94, 0.15) !important; }
.dark .hover\:bg-blue-50:hover { background-color: rgba(59, 130, 246, 0.15) !important; }
.dark .hover\:bg-cyan-50:hover { background-color: rgba(6, 182, 212, 0.15) !important; }
.dark .hover\:bg-gray-50:hover { background-color: rgba(107, 114, 128, 0.15) !important; }

/* Dark mode: form-check elements */
.dark .form-check-label {
  color: #d1d5db; /* gray-300 */
}

/* Dark mode: code elements without explicit color */
.dark code:not([class*="text-"]) {
  color: #e5e7eb; /* gray-200 */
}

/* Dark mode: btn-primary */
.dark .btn-primary {
  background-color: #2563eb; /* blue-600 */
  border-color: #2563eb;
  color: #fff;
}

.dark .btn-primary:hover {
  background-color: #1d4ed8; /* blue-700 */
  border-color: #1d4ed8;
}
/* ---- Cards and rails homepage (HomepageCategory) ------------------------ */
/* Redesigned 2026-10-15 (Ken): Big Stories lead, content sidebar instead of
   the Sections index, pills + search on one row, cards without the colored
   top border. Colors come from the tenant's CSS variables. */
.category-nav .category-nav__link { color: rgba(255,255,255,0.65); }
.category-nav .category-nav__link:hover,
.category-nav .category-nav__link.is-active { color: #fff; }
/* the nav scrolls sideways on phones; no scrollbar track under it */
.category-nav .overflow-x-auto { scrollbar-width: none; }
.category-nav .overflow-x-auto::-webkit-scrollbar { display: none; }
.masthead-utility__link { color: var(--color-link); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.masthead-utility__link:hover { color: var(--color-link-hover); }

/* toolbar: pills left, search right */
.category-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
}
.category-toolbar__updated {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #6b7280;
  margin: 0 0 8px;
}
.category-toolbar__pills {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.category-toolbar__pill {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #d1d5db;
  color: var(--color-link);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.category-toolbar__pill:hover { background: var(--color-accent-subtle); }
.category-toolbar__pill.is-active { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.category-toolbar__search { flex: 1 1 320px; max-width: 460px; }
.category-toolbar__form { display: flex; gap: 8px; align-items: center; }
.category-toolbar__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 38px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  color: #111827;
}
.category-toolbar__input:focus { outline: none; box-shadow: 0 0 0 2px var(--color-accent-muted); border-color: var(--color-accent); }
.category-toolbar__submit {
  height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: var(--color-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.category-toolbar__submit:hover { background: var(--color-accent-hover); }
.category-toolbar__range { font-size: 13px; color: #6b7280; margin: 6px 0 0; }

/* page: main column + content sidebar */
.category-rails {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}
.category-railwrap { min-width: 0; }
.category-sidebar { min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.category-sidebar__block { display: flex; flex-direction: column; gap: 8px; }
.category-sidebar__title {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-primary);
  border-top: 3px solid var(--color-accent);
  padding-top: 10px;
  margin: 0;
}
.category-sidebar__more { font-size: 13px; font-weight: 600; color: var(--color-link); margin-top: 4px; }
.category-sidebar__more:hover { color: var(--color-link-hover); }
.category-sidebar__event,
.category-sidebar__headline {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  color: #111827;
}
.category-sidebar__event { flex-direction: column; gap: 3px; }
.category-sidebar__event:hover .category-sidebar__event-name,
.category-sidebar__headline:hover .category-sidebar__headline-title { color: var(--color-link); }
.category-sidebar__event-name { font-size: 15px; font-weight: 700; line-height: 1.3; }
.category-sidebar__event-meta { font-size: 12px; color: #6b7280; }
.category-sidebar__event-status { font-size: 12px; font-weight: 600; color: var(--color-link); }
.category-sidebar__headline { justify-content: space-between; align-items: flex-start; }
.category-sidebar__headline-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.category-sidebar__headline-title { font-size: 14px; line-height: 1.35; font-weight: 600; }
.category-sidebar__headline-when { font-size: 12px; color: #6b7280; }
.category-sidebar__count {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-accent-subtle);
  border-radius: 10px;
  padding: 2px 8px;
}
.category-sidebar__paywall { padding-top: 4px; }

/* Recently Popular, ranked */
.category-popular { display: flex; flex-direction: column; gap: 8px; }
.category-popular--phone { display: none; margin-top: 28px; }
.category-popular__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.category-popular__item {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.category-popular__rank { flex: 0 0 18px; font-size: 18px; font-weight: 700; color: var(--color-link-hover); line-height: 1.2; }
.category-popular__body { min-width: 0; font-size: 14px; line-height: 1.35; }
.category-popular__link { font-weight: 700; color: #111827; }
.category-popular__link:hover { color: var(--color-link); }
.category-popular__meta { display: block; font-size: 12px; color: #6b7280; margin-top: 2px; }

/* Big Stories: the lead band */
.big-stories { display: flex; flex-direction: column; margin-bottom: 36px; }
.big-stories__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 3px solid var(--color-accent);
  padding-top: 14px;
  margin-bottom: 6px;
}
.big-stories__title { font-size: 30px; line-height: 1.1; font-weight: 700; color: var(--color-primary); margin: 0; }
.big-stories__caption { font-size: 13px; color: #6b7280; margin: 0; }
.big-story {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 0 20px;
  border-bottom: 1px solid #d6d3cc;
}
.big-story__eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-link-hover);
}
.big-story__category { color: inherit; }
.big-story__category:hover { color: var(--color-link); }
.big-story__dot { color: #c9c6bc; }
.big-story__count { color: #6b7280; font-weight: 500; letter-spacing: 0.06em; }
.big-story__title { font-size: 24px; line-height: 1.25; font-weight: 700; margin: 0; }
.big-story__link { color: #111827; }
.big-story__link:hover { color: var(--color-link); }
.big-story__articles { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.big-story__article { display: flex; gap: 10px; line-height: 1.4; }
.big-story__bullet { flex-shrink: 0; color: var(--color-link-hover); }
.big-story__body { min-width: 0; }
.big-story__article-link { font-size: 16px; color: #111827; }
.big-story__article-link:hover { color: var(--color-link); }
.big-story__meta { font-size: 13px; color: #6b7280; margin-left: 6px; white-space: nowrap; }
.big-story__more { margin-top: 2px; }
.big-story__more-link { font-size: 14px; font-weight: 600; color: var(--color-link); }
.big-story__more-link:hover { color: var(--color-link-hover); }

/* rails */
.category-rail {
  padding: 18px 0 22px;
  border-bottom: 1px solid #d6d3cc;
}
.category-rail--alt {
  background: var(--color-accent-subtle);
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
  border-radius: 8px;
  border-bottom: 0;
}
.category-rail--popular { padding-top: 0; }
.category-rail--popular hr { display: none; }
.category-rail__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.category-rail__title {
  font-size: 30px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
}
.category-rail__title a { color: inherit; }
.category-rail__chips { font-size: 13px; color: #6b7280; }
.category-rail__note,
.category-card__earlier,
.category-row__earlier {
  display: inline-block;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #92400e;
  background: rgba(217, 119, 6, 0.1);
  border-radius: 3px;
  padding: 1px 6px;
}
.category-row__earlier { margin-left: 6px; }
.category-card__earlier { margin-top: auto; align-self: flex-start; }
.category-rail__empty { font-size: 14px; color: #6b7280; margin: 0; }

.category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.category-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 14px 16px;
  min-width: 0;
  min-height: 150px;
}
.category-card__kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-link-hover);
}
.category-card__title { font-size: 17px; line-height: 1.3; font-weight: 700; margin: 0; }
.category-card__link { color: #111827; }
.category-card__link:hover { color: var(--color-link); }
.category-card__meta { font-size: 12px; color: #6b7280; margin: auto 0 0; }
.category-card__dot { margin: 0 2px; }
.category-card--deal .category-card__deal-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  background: #fff;
  border-radius: 3px;
  margin-bottom: 6px;
}
.category-card--deal .category-card__deal-image img { max-height: 100%; max-width: 100%; object-fit: contain; }
.category-card__price-now { color: #15803d; font-weight: 600; font-size: 13px; }
.category-card__price s { color: #9ca3af; margin-left: 6px; }

.category-list {
  columns: 2;
  column-gap: 40px;
  margin-top: 14px;
}
.category-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
  line-height: 1.4;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  break-inside: avoid;
}
.category-row__bullet { flex-shrink: 0; color: #111827; }
.category-row__body { min-width: 0; }
.category-row__link { font-size: 15px; color: #111827; }
.category-row__link:hover { color: var(--color-link); }
.category-row__meta { font-size: 12px; color: #6b7280; margin-left: 6px; white-space: nowrap; }
.category-rail__more { margin-top: 12px; }
.category-rail__more-link { font-size: 14px; font-weight: 600; color: var(--color-link); }
.category-rail__more-link:hover { color: var(--color-link-hover); }
.category-page__range {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin: 0 0 4px;
}

/* dark */
.dark .category-toolbar__pill { background: #1f2937; border-color: #4b5563; }
.dark .category-toolbar__pill.is-active { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.dark .category-toolbar__input { background: #1f2937; border-color: #4b5563; color: #f3f4f6; }
.dark .category-toolbar__updated, .dark .category-toolbar__range { color: #9ca3af; }
.dark .category-rail, .dark .big-story { border-bottom-color: #374151; }
.dark .category-rail--alt { background: rgba(255,255,255,0.03); }
.dark .category-rail__title, .dark .big-stories__title, .dark .category-sidebar__title { color: var(--color-primary); }
.dark .category-card { background: #1f2937; border-color: #374151; }
.dark .category-card__link, .dark .category-row__link, .dark .category-row__bullet,
.dark .big-story__link, .dark .big-story__article-link, .dark .category-popular__link,
.dark .category-sidebar__event, .dark .category-sidebar__headline { color: #f3f4f6; }
.dark .category-card__link:hover, .dark .category-row__link:hover, .dark .big-story__link:hover,
.dark .big-story__article-link:hover, .dark .category-popular__link:hover { color: var(--color-link); }
.dark .category-card__meta, .dark .category-rail__chips, .dark .category-row__meta, .dark .big-story__meta,
.dark .big-stories__caption, .dark .big-story__count, .dark .category-popular__meta,
.dark .category-sidebar__event-meta, .dark .category-sidebar__headline-when { color: #9ca3af; }
.dark .category-row, .dark .category-popular__item, .dark .category-sidebar__event, .dark .category-sidebar__headline { border-bottom-color: rgba(255,255,255,0.08); }
.dark .category-sidebar__count { background: rgba(255,255,255,0.08); color: #f3f4f6; }
.dark .category-rail__note, .dark .category-card__earlier, .dark .category-row__earlier { color: #fcd34d; background: rgba(217,119,6,0.2); }
.dark .category-card--deal .category-card__deal-image { background: #fff; }
.dark .category-card__price-now { color: #4ade80; }

/* chips that name a topic link to it; the rest stay plain */
.category-rail__chip { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.category-rail__chip:hover { color: var(--color-link); }
.category-rail__chip-dot { margin: 0 3px; }
/* when the story broke */
.category-card__time, .category-row__time { white-space: nowrap; }
/* other sources that ran the same headline */
.category-story__also { margin-left: 4px; }
.category-story__also-link { color: inherit; text-decoration: underline dotted; text-underline-offset: 2px; }
.category-story__also-link:hover { color: var(--color-link); }

/* phone masthead: search folds behind a button (reader taps to open) */
.search-collapse__toggle { display: none; }
@media (max-width: 639px) {
  .search-collapse__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 auto;
    padding: 4px 14px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
    color: #374151;
    font-size: 13px;
  }
  .dark .search-collapse__toggle { background: #1f2937; border-color: #4b5563; color: #d1d5db; }
  .search-collapse { text-align: center; }
  .search-collapse__form { display: none; margin-top: 8px; text-align: left; }
  .search-collapse.is-open .search-collapse__toggle { display: none; }
  .search-collapse.is-open .search-collapse__form { display: block; }
}
.masthead-logo { height: 110px; width: auto; }
@media (max-width: 639px) { .masthead-logo { height: 56px; } }

/* narrow: one column, the sidebar after the rails, popular list up top */
@media (max-width: 1023px) {
  .category-rails { grid-template-columns: 1fr; gap: 28px; }
  .category-sidebar__popular { display: none; }
  .category-popular--phone { display: block; }
}
@media (max-width: 700px) {
  /* cards become one swipe row; the partly visible next card is the cue */
  .category-cards {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 0 16px 4px;
  }
  .category-cards::-webkit-scrollbar { display: none; }
  .category-card { flex: 0 0 240px; scroll-snap-align: start; min-height: 140px; }
  .category-list { columns: 1; }
  .category-row--extra { display: none; }
  .category-rail--alt { margin: 0 -16px; padding-left: 16px; padding-right: 16px; border-radius: 0; }
  .category-rail__title, .big-stories__title { font-size: 24px; }
  .big-story__title { font-size: 20px; }
  .category-row__meta, .big-story__meta { white-space: normal; }
  .category-toolbar__pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; }
  .category-toolbar__pills::-webkit-scrollbar { display: none; }
  .category-toolbar__pill { height: 34px; padding: 0 14px; font-size: 13px; }
  .category-toolbar__search { flex-basis: 100%; max-width: none; }
}

/* ---- Refurbishment calendar (MouseDetails, /refurbishments) --------------- */
/* Disney's printed times guide: one park per row, a status word per ride,
   a 90-day strip under each, up to three stories inline. Ken chose this over
   the month-ruler board and the wall calendar (prototype, 2026-10-17). */
.refurb {
  --rb-ink: #1a1f3d;
  --rb-text: #1f2333;
  --rb-muted: #6b6f80;
  --rb-gold: #b8860b;
  --rb-gold-ink: #8b6914;
  --rb-rule: #d4d2cb;
  --rb-rule-soft: #e8e6e0;
  --rb-paper: #ffffff;
  --rb-permanent: #7a2e2e;
  --rb-ok: #2f7a4b;
  --rb-park-mk: #1a1f3d;
  --rb-park-ep: #5b4a9a;
  --rb-park-hs: #8b2f3f;
  --rb-park-ak: #3b6b3b;
  --rb-park-wp: #2a6f8f;
  --rb-park-other: #6b6f80;
  max-width: 80rem;
  margin: 0 auto;
  padding: 28px 24px 56px;
  color: var(--rb-text);
  font-family: var(--font-body);
}
.dark .refurb {
  --rb-ink: #f3f4f6;
  --rb-text: #e5e7eb;
  --rb-muted: #9ca3af;
  --rb-gold: #d4a632;
  --rb-gold-ink: #e8c255;
  --rb-rule: #374151;
  --rb-rule-soft: #273041;
  --rb-paper: #1a2232;
  --rb-permanent: #d08484;
  --rb-ok: #6fc08a;
  --rb-park-mk: #8a94c8;
  --rb-park-ep: #a99ad8;
  --rb-park-hs: #d88a97;
  --rb-park-ak: #8bc08b;
  --rb-park-wp: #7fb8d4;
  --rb-park-other: #9ca3af;
}

.refurb__eyebrow {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rb-gold-ink);
  margin: 0 0 6px;
}
.refurb__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--rb-ink);
  margin: 0 0 18px;
}
.refurb__title-accent {
  display: block;
  font-style: italic;
  font-weight: normal;
  font-size: 0.62em;
  color: var(--rb-gold-ink);
  margin-top: 6px;
}
.refurb__resorts {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  border-bottom: 1px solid var(--rb-rule);
  margin-bottom: 14px;
}
.refurb__resort {
  flex: 0 0 auto;
  padding: 8px 14px 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--rb-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
  white-space: nowrap;
}
.refurb__resort:hover { color: var(--rb-ink); }
.refurb__resort.is-active { color: var(--rb-ink); border-bottom-color: var(--rb-gold); }
.refurb__resort:focus-visible { outline: 2px solid var(--rb-gold); outline-offset: -2px; }
.refurb__summary {
  font-family: var(--font-heading);
  font-size: 17px;
  color: var(--rb-text);
  margin: 0 0 26px;
}

/* Your trip */
.refurb-trip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -12px 0 10px;
  font-size: 13px;
  color: var(--rb-muted);
}
.refurb-trip__label {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rb-gold-ink);
  margin-right: 4px;
}
.refurb-trip__date {
  font: 13px var(--font-body);
  padding: 5px 8px;
  border: 1px solid var(--rb-rule);
  border-radius: 4px;
  background: var(--rb-paper);
  color: var(--rb-text);
}
.refurb-trip__date:focus-visible { outline: 2px solid var(--rb-gold); outline-offset: 1px; }
.refurb-trip__clear {
  font: 12px var(--font-body);
  background: none;
  border: 0;
  padding: 0 4px;
  color: var(--color-link);
  cursor: pointer;
  text-decoration: underline;
}
.refurb-trip__line {
  font-size: 14px;
  color: var(--rb-gold-ink);
  margin: 0 0 22px;
}
.refurb-ride.is-outside-trip { opacity: 0.35; }
@media (prefers-reduced-motion: no-preference) { .refurb-ride { transition: opacity 0.15s; } }

/* The guide */
.refurb-guide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}
.refurb-park {
  border: 1px solid var(--rb-rule);
  background: var(--rb-paper);
  min-width: 0;
}
.refurb-park__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 10px 14px;
  background: var(--rb-park, var(--rb-ink));
  color: #fff;
  font-family: var(--font-heading);
  font-size: 18px;
}
.refurb-park__head small {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
  white-space: nowrap;
}
.refurb-ride {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rb-rule-soft);
}
/* One park per row (Ken, 2026-10-17): the ride's name, dates and stories sit
   flush left, the 90-day strip flush right. Stacks again under 761px. */
@media (min-width: 761px) {
  .refurb-ride {
    display: grid;
    /* Fixed shares, not content-sized: every strip in the park is the same
       width, so the same day lands at the same x on every row. */
    grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
    grid-template-rows: auto auto;
    column-gap: 40px;
    align-items: start;
  }
  .refurb-ride__who { grid-column: 1; grid-row: 1; min-width: 0; }
  .refurb-ride__who .refurb-ride__name { justify-content: flex-start; gap: 14px; }
  .refurb-ride__news { grid-column: 1; grid-row: 2; min-width: 0; }
  .refurb-ride__when { grid-column: 2; grid-row: 1 / span 2; min-width: 0; }
  .refurb-ride__when .refurb-strip { margin-top: 7px; }
}
.refurb-ride:last-child { border-bottom: 0; }
.refurb-ride__name {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 17px;
  line-height: 1.25;
  color: var(--rb-ink);
}
.refurb-ride__name a { color: inherit; text-decoration: none; }
.refurb-ride__name a:hover { color: var(--rb-gold-ink); }
.refurb-ride__status {
  flex: none;
  font-style: normal;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rb-gold-ink);
  white-space: nowrap;
  padding-top: 4px;
}
.refurb-ride.is-upcoming .refurb-ride__status { color: var(--rb-muted); }
.refurb-ride.is-reopened .refurb-ride__status { color: var(--rb-ok); }
.refurb-ride.is-permanent .refurb-ride__status { color: var(--rb-permanent); }
.refurb-ride__dates {
  font-size: 13.5px;
  margin: 2px 0 0;
}
.refurb-strip {
  position: relative;
  height: 8px;
  margin-top: 8px;
  background: var(--rb-rule-soft);
  border-radius: 4px;
  overflow: hidden;
}
.refurb-strip i {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--rb-park, var(--rb-ink));
}
.refurb-strip i.is-upcoming { background: color-mix(in srgb, var(--rb-park, var(--rb-ink)) 40%, var(--rb-paper)); }
.refurb-strip i.is-open-ended {
  background: repeating-linear-gradient(135deg, var(--rb-park, var(--rb-ink)) 0 4px, color-mix(in srgb, var(--rb-park, var(--rb-ink)) 45%, var(--rb-paper)) 4px 8px);
}
.refurb-strip b {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 2px;
  background: var(--rb-gold);
}
.refurb-strip__caption {
  position: relative;
  display: flex;
  justify-content: flex-end;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  color: var(--rb-muted);
  margin-top: 3px;
}
/* "today" sits under the gold marker, not centered on the strip */
.refurb-strip__today {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  color: var(--rb-gold-ink);
}
.refurb-ride__stories {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.refurb-ride__stories li {
  font-size: 13px;
  line-height: 1.35;
  padding: 3px 0 3px 10px;
  border-left: 2px solid var(--rb-rule);
  margin-bottom: 3px;
}
.refurb-ride__stories a { color: var(--color-link); text-decoration: none; }
.refurb-ride__stories a:hover { color: var(--color-link-hover); text-decoration: underline; }
.refurb-ride__stories span {
  margin-left: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  color: var(--rb-muted);
  white-space: nowrap;
}
.refurb-ride__more {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--color-link);
  text-decoration: none;
}
.refurb-ride__more:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .refurb { padding: 20px 16px 40px; }
}
