/*
 Theme Name:   Bootscore Child
 Description:  Plastics InfoMart — Custom BootScore Child Theme. Pixel-perfect custom design for plasticsinfomart.com
 Author:       Bootscore
 Author URI:   https://bootscore.me
 Template:     bootscore
 Version:      6.0.0
 Requires at least: 5.0
 Tested up to: 6.6
 Requires PHP: 7.4
 License: MIT License
 License URI: https://github.com/bootscore/bootscore-child/blob/main/LICENSE
 Text Domain:  bootscore
*/

/* =============================================================
   Plastics InfoMart — Custom BootScore Child Theme Stylesheet
   Pixel-identical match for homepage, category, and single detail
   ============================================================= */

/* ── 1. Color Tokens with Hex Fallbacks ──────────────────────── */
:root {
  --paper: #ffffff;
  --wash: #f4f6f8;
  --soft: #e8ebef;
  --ink: #181c21;
  --slate: #4c5765;
  --muted: #7a8696;
  --rule: #d6dcde;
  --red: #ba151b;
  --red-dark: #940e13;
  --max: 1320px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --display: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --shadow: 0 16px 38px rgba(24, 28, 33, .12);
}

/* ── 2. High Specificity Reset — Overriding Bootstrap ───────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body, html body, body.wp-theme-bootscore {
  margin: 0 !important;
  background: var(--paper) !important;
  color: var(--ink) !important;
  font-family: var(--sans) !important;
  font-size: 14px;
  line-height: 1.45 !important;
}

body a, html body a {
  color: inherit;
  text-decoration: none !important;
}

body h1, body h2, body h3, body h4, body h5, body h6, body p {
  margin-top: 0;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--red) 75%, white);
  outline-offset: 3px;
}

/* ── 3. Layout Containers ───────────────────────────────────── */
.wrap { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
main { padding-bottom: 70px; }

/* ── 4. Utility Bar ─────────────────────────────────────────── */
.utility {
  background: var(--wash) !important;
  border-bottom: 1px solid var(--rule) !important;
  color: var(--slate) !important;
  font-size: 11px !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
}
.utility-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.utility-group { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.utility button, .utility a {
  min-height: 32px; border: 0; background: transparent;
  color: inherit !important; padding: 6px 0; font-size: 11px !important;
}
.utility .active { color: var(--red) !important; font-weight: 700 !important; }

/* ── 5. Masthead ────────────────────────────────────────────── */
.masthead { border-bottom: 1px solid var(--rule); background: var(--paper); }
.masthead-inner {
  min-height: 90px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}
.mast-actions { display: flex; align-items: center; gap: 8px; }
.mast-actions:last-child { justify-content: flex-end; }
.icon-btn {
  width: 44px; height: 44px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  border-radius: 50%;
  position: relative;
}
.icon-btn:hover { background: var(--soft); border-color: var(--rule); }
.hamburger::before, .hamburger::after, .hamburger span {
  content: ""; position: absolute; left: 13px;
  width: 18px; height: 2px; background: currentColor;
}
.hamburger::before { top: 14px; }
.hamburger span { top: 21px; }
.hamburger::after { top: 28px; }
.search-glyph::before {
  content: ""; position: absolute;
  width: 13px; height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%; left: 13px; top: 12px;
}
.search-glyph::after {
  content: ""; position: absolute;
  width: 9px; height: 2px;
  background: currentColor;
  transform: rotate(45deg);
  left: 26px; top: 28px;
}
.wordmark { text-align: center; color: var(--ink) !important; text-decoration: none !important; }
.wordmark small {
  display: block; font-size: 10px !important;
  letter-spacing: .3em !important; color: var(--red) !important; margin-bottom: 2px; font-weight: bold;
}
.wordmark strong {
  display: block; font-family: var(--serif) !important;
  font-size: clamp(29px, 4vw, 46px) !important;
  line-height: .9 !important; letter-spacing: -.07em !important; font-weight: 700 !important; white-space: nowrap;
}
.wordmark em {
  display: block; margin-top: 7px; font-style: normal !important;
  font-size: 9px !important; letter-spacing: .36em !important;
  color: var(--slate) !important; text-transform: uppercase !important;
}
.login {
  border: 1px solid var(--rule); background: var(--paper);
  border-radius: 3px; min-height: 38px; padding: 0 15px;
  font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.login:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ── 6. Search Panel ────────────────────────────────────────── */
.search-panel { display: none; border-bottom: 1px solid var(--rule); background: var(--wash); }
.search-panel.open { display: block; }
.search-form { display: flex; gap: 10px; padding: 18px 0; }
.search-form input {
  flex: 1; min-height: 44px;
  border: 1px solid var(--rule);
  padding: 0 13px; background: var(--paper); color: var(--ink);
}
.search-form button {
  min-height: 44px; border: 0; padding: 0 17px;
  background: var(--red); color: white; font-weight: 700;
}
.search-form button:hover { background: var(--red-dark); }
.search-result { padding: 0 0 16px; color: var(--red-dark); font-size: 12px; font-weight: 700; }

/* ── 7. Section Rail Navigation & Dropdowns ─────────────────── */
.section-rail {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky; top: 0;
  z-index: 9999 !important;
  overflow: visible !important;
}
.rail-inner {
  display: flex; min-height: 48px; align-items: center;
  gap: 21px; overflow: visible !important; scrollbar-width: none;
}
.rail-inner::-webkit-scrollbar { display: none; }
.rail-menu, .rail-inner > ul {
  display: flex !important; gap: 21px !important; margin: 0 !important; padding: 0 !important; list-style: none !important;
  align-items: center !important; flex-wrap: nowrap !important; overflow: visible !important;
}
.rail-menu > li, .rail-inner > ul > li {
  position: relative !important; list-style: none !important; white-space: nowrap !important;
}
.rail-btn,
.rail-inner a,
.rail-inner li a {
  border: 0; background: transparent;
  color: var(--slate) !important; min-height: 44px;
  padding: 4px 0; white-space: nowrap;
  font-size: 12px !important; font-weight: 700 !important;
  display: inline-flex; align-items: center; gap: 4px;
  text-decoration: none !important;
}
.rail-btn:hover, .rail-btn[aria-pressed="true"],
.rail-inner a:hover, .rail-inner li a:hover,
.rail-inner .current-menu-item > a,
.rail-inner .current-menu-ancestor > a {
  color: var(--red) !important;
}
.rail-btn[aria-pressed="true"],
.rail-inner .current-menu-item > a,
.rail-inner .current-menu-ancestor > a {
  border-bottom: 2px solid var(--red) !important;
}

/* Arrow indicator for menu items with children */
.rail-menu > li.menu-item-has-children > a::after,
.rail-menu > li.page_item_has_children > a::after {
  content: "" !important;
  display: inline-block !important;
  width: 0 !important; height: 0 !important;
  margin-left: 4px !important;
  vertical-align: middle !important;
  border-top: 4px solid currentColor !important;
  border-right: 4px solid transparent !important;
  border-left: 4px solid transparent !important;
  transition: transform .2s ease !important;
}
.rail-menu > li.menu-item-has-children:hover > a::after,
.rail-menu > li.menu-item-has-children.open > a::after {
  transform: rotate(180deg) !important;
}

/* Sub-menu Dropdown Panel */
.rail-menu .sub-menu {
  display: none !important;
  position: absolute !important;
  top: 100% !important; left: 0 !important;
  min-width: 220px !important;
  background: #ffffff !important;
  border: 1px solid var(--rule) !important;
  border-top: 3px solid var(--red) !important;
  box-shadow: 0 16px 38px rgba(24, 28, 33, .22) !important;
  padding: 8px 0 !important; margin: 0 !important;
  list-style: none !important;
  z-index: 99999 !important;
}
.rail-menu li:hover > .sub-menu,
.rail-menu li.open > .sub-menu,
.rail-menu li.focus > .sub-menu {
  display: block !important;
}
.rail-menu .sub-menu li {
  position: relative !important; list-style: none !important;
  margin: 0 !important; padding: 0 !important; width: 100% !important;
}
.rail-menu .sub-menu a {
  display: block !important;
  padding: 9px 18px !important;
  font-size: 13px !important;
  font-family: var(--serif) !important;
  color: var(--ink) !important;
  text-decoration: none !important;
  white-space: normal !important;
  line-height: 1.3 !important;
  border-bottom: 0 !important;
  transition: background .15s ease, color .15s ease !important;
}
.rail-menu .sub-menu a:hover,
.rail-menu .sub-menu li.current-menu-item > a {
  background: var(--wash) !important;
  color: var(--red) !important;
}

/* Nested Sub-menus (Level 2+) */
.rail-menu .sub-menu .sub-menu {
  top: 0 !important; left: 100% !important;
  border-top: 1px solid var(--rule) !important;
}

/* ── 8. Live Ticker ─────────────────────────────────────────── */
.livebar {
  background: var(--ink) !important;
  color: white !important;
  border-bottom: 3px solid var(--red) !important;
  position: relative !important;
  z-index: 1 !important;
}
.live-inner { min-height: 44px; display: flex; align-items: center; gap: 14px; overflow: hidden; }
.live-label {
  flex: 0 0 auto; color: var(--paper) !important;
  font-size: 11px !important; font-weight: 700 !important;
  letter-spacing: .13em !important; text-transform: uppercase !important;
  display: flex; gap: 7px; align-items: center;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(186,21,27,.3);
}
.ticker-window { overflow: hidden; flex: 1; }
.ticker-track {
  display: flex; width: max-content;
  gap: 48px; animation: ticker 32s linear infinite;
}
.ticker-track.is-paused { animation-play-state: paused; }
.ticker-item { font-family: var(--serif) !important; font-size: 14px !important; white-space: nowrap; }
.ticker-item a { color: white !important; text-decoration: none !important; }
.ticker-item a:hover { color: var(--red) !important; text-decoration: underline !important; }
.ticker-control {
  flex: 0 0 auto;
  border: 1px solid var(--slate);
  background: transparent; color: var(--paper);
  min-height: 32px; padding: 4px 10px;
  border-radius: 2px; font-size: 11px;
}
.ticker-control:hover { background: var(--paper); color: var(--ink); }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── 9. Mobile Drawer ───────────────────────────────────────── */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 999990 !important;
  background: rgba(22,25,29,.5);
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.drawer {
  position: fixed; z-index: 999999 !important;
  top: 0; left: 0; bottom: 0;
  width: min(390px, 90vw);
  background: var(--paper); padding: 24px;
  transform: translateX(-101%);
  transition: transform .25s ease;
  box-shadow: var(--shadow); overflow-y: auto;
}
body.menu-open { overflow: hidden; }
body.menu-open .drawer { transform: translateX(0); }
body.menu-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-head {
  display: flex !important; justify-content: space-between !important;
  align-items: flex-start !important; border-bottom: 2px solid var(--ink); padding-bottom: 14px;
  gap: 12px !important;
}
.drawer-head strong {
  font-family: var(--serif) !important; font-size: 19px !important; line-height: 1.25 !important;
  word-break: normal !important; overflow-wrap: normal !important; flex: 1 !important;
  color: var(--ink) !important;
}
.close-btn {
  border: 0; background: transparent; color: var(--ink);
  width: 36px; height: 36px; font-size: 28px; line-height: 1; flex-shrink: 0; cursor: pointer;
  display: flex !important; align-items: center !important; justify-content: center !important;
}
.drawer-list { list-style: none; margin: 20px 0 0; padding: 0; }
.drawer-list > li { position: relative; border-bottom: 1px solid var(--rule); }
.drawer-list a {
  display: block; padding: 11px 0;
  font-family: var(--serif) !important; font-size: 18px !important;
  color: var(--ink) !important; text-decoration: none !important;
}
.drawer-list a:hover { color: var(--red) !important; }
.drawer-list .sub-toggle {
  position: absolute; right: 0; top: 8px;
  width: 32px; height: 32px;
  border: 1px solid var(--rule); background: var(--wash); color: var(--ink);
  border-radius: 3px; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .2s ease, background .2s ease;
}
.drawer-list .sub-toggle.active {
  transform: rotate(-90deg); background: var(--red); color: white; border-color: var(--red);
}
.drawer-list .sub-menu {
  display: none !important; list-style: none !important;
  padding: 4px 0 8px 14px !important; margin: 0 !important;
  border-left: 2px solid var(--red) !important;
}
.drawer-list li.sub-open > .sub-menu {
  display: block !important;
}
.drawer-list .sub-menu a {
  font-size: 15px !important; padding: 6px 0 !important;
  border-bottom: 0 !important; color: var(--slate) !important;
}
.drawer-list .sub-menu a:hover { color: var(--red) !important; }

/* ── 10. Shared Typography & Atoms ──────────────────────────── */
.eyebrow {
  color: var(--red) !important; font-size: 11px !important; font-weight: 700 !important;
  letter-spacing: .17em !important; text-transform: uppercase !important;
}
.breadcrumb {
  color: var(--red) !important; font-size: 11px !important; font-weight: 700 !important;
  letter-spacing: .15em !important; text-transform: uppercase !important;
}
.breadcrumb a { color: var(--red) !important; }
.breadcrumb a:hover { text-decoration: underline !important; }
.story-meta { color: var(--muted) !important; font-size: 11px !important; letter-spacing: .04em !important; text-transform: uppercase !important; }
.text-link { color: var(--red) !important; font-size: 12px !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: .08em !important; }
.text-link:hover { color: var(--red-dark) !important; text-decoration: underline !important; }

/* ── 11. Ad Slots ───────────────────────────────────────────── */
.ad-slot {
  min-height: 250px;
  border: 1px dashed var(--rule);
  background: var(--wash); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 16px;
  font-size: 10px !important; letter-spacing: .18em !important; text-transform: uppercase !important;
}
.ad-slot.tall { min-height: 600px; width: 300px; }
.top-ad { margin: 22px auto 30px; max-width: 970px; min-height: 90px; }
.ad-side { width: 300px; min-height: 600px; }
.footer-ad { min-height: 90px; max-width: 728px; margin-left: auto; margin-right: auto; }
.ad-size-mobile { display: none; }

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE — front-page.php
   ═══════════════════════════════════════════════════════════════ */

/* Lead Grid */
.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, .88fr) 300px;
  gap: 24px;
  border-top: 3px solid var(--ink);
  padding-top: 16px;
}
.lead-story { border-right: 1px solid var(--rule); padding-right: 24px; }
.lead-story h1 {
  margin: 12px 0 13px !important;
  max-width: 720px;
  font-family: var(--serif) !important;
  font-size: clamp(34px, 4.8vw, 67px) !important;
  line-height: .98 !important;
  letter-spacing: -.055em !important;
  font-weight: normal !important;
}
.lead-story h1 a { color: var(--ink) !important; text-decoration: none !important; }
.lead-story h1 a:hover { color: var(--red) !important; }
.lead-deck { max-width: 650px; color: var(--slate) !important; font-family: var(--serif) !important; font-size: 17px !important; line-height: 1.4 !important; }

/* Ranked Top Stories */
.ranked { border-right: 1px solid var(--rule); padding-right: 24px; }
.ranked h2 {
  font-family: var(--display) !important; font-size: 28px !important;
  letter-spacing: -.04em !important; text-transform: uppercase !important; margin: 0 0 10px !important;
  font-weight: normal !important;
}
.ranked-item {
  display: grid; grid-template-columns: 27px 1fr;
  gap: 10px; border-top: 1px solid var(--rule); padding: 13px 0;
}
.ranked-item:first-of-type { border-top: 0; }
.rank { color: var(--red) !important; font-family: var(--serif) !important; font-size: 23px !important; line-height: 1 !important; }
.ranked-item h3 { margin: 0 0 5px !important; font-family: var(--serif) !important; font-size: 17px !important; line-height: 1.1 !important; font-weight: normal !important; }
.ranked-item h3 a { color: var(--ink) !important; text-decoration: none !important; }
.ranked-item h3 a:hover { color: var(--red) !important; }

/* Section Modules */
.section-block { margin-top: 46px; }
.module-head {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: baseline;
  gap: 8px 16px; border-top: 3px solid var(--ink); padding-top: 10px; margin-bottom: 14px;
}
.module-head h2 {
  font-family: var(--display) !important; font-size: 28px !important;
  letter-spacing: -.04em !important; text-transform: uppercase !important; margin: 0 !important;
  font-weight: normal !important;
}
.module-head .active-topic { color: var(--muted) !important; font-size: 11px !important; text-transform: uppercase !important; letter-spacing: .13em !important; }

/* Story Grid (4-col) */
.story-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
}
.story {
  min-height: 148px; padding: 17px 18px 9px 0;
  margin-right: 18px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.story:nth-child(4n) { border-right: 0; margin-right: 0; }
.story h3 { margin: 8px 0 8px !important; font-family: var(--serif) !important; font-size: 20px !important; line-height: 1.08 !important; font-weight: normal !important; }
.story h3 a { color: var(--ink) !important; text-decoration: none !important; }
.story h3 a:hover { color: var(--red) !important; }
.story p { color: var(--slate) !important; font-size: 13px !important; margin-bottom: 8px !important; }
.story .story-meta { font-size: 10px !important; }

/* Split Module */
.split-module {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px; align-items: start;
}
.split-module > .ad-slot { min-height: 250px; width: 300px; justify-self: center; }

/* Industry Pulse Poll */
.opinion {
  margin-top: 48px; border: 1px solid var(--rule);
  background: var(--wash); padding: 24px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px;
}
.opinion h2 { margin: 5px 0 8px !important; font-family: var(--serif) !important; font-size: 30px !important; line-height: 1.05 !important; font-weight: normal !important; }
.opinion p { color: var(--slate) !important; font-size: 13px !important; }
.vote-row { display: flex; gap: 10px; }
.vote-btn {
  min-height: 44px; min-width: 110px;
  border: 1px solid var(--ink);
  background: var(--paper); color: var(--ink); font-weight: 700;
}
.vote-btn:hover, .vote-btn[aria-pressed="true"] { background: var(--ink); color: white; }
.results { display: none; margin-top: 18px; }
.results.visible { display: block; }
.result-row {
  display: grid; grid-template-columns: 46px 1fr 38px;
  gap: 9px; align-items: center; margin: 8px 0;
  color: var(--slate) !important; font-size: 12px !important;
}
.bar { height: 8px; background: #d6dcde; }
.bar span { display: block; height: 100%; background: var(--red); }
.status { color: var(--red-dark) !important; font-size: 12px !important; font-weight: 700 !important; min-height: 18px; margin: 14px 0 0; }

/* ═══════════════════════════════════════════════════════════════
   CATEGORY PAGE — category.php
   ═══════════════════════════════════════════════════════════════ */
.page-head { border-top: 3px solid var(--ink); padding-top: 13px; margin-top: 10px; }
.page-head h1 {
  font-family: var(--serif) !important;
  font-size: clamp(40px, 5vw, 72px) !important;
  line-height: .95 !important; letter-spacing: -.06em !important; margin: 12px 0 10px !important;
  font-weight: normal !important;
}
.page-head p {
  max-width: 700px; color: var(--slate) !important;
  font-family: var(--serif) !important; font-size: 18px !important; margin-bottom: 24px !important;
}
.filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 11px 0; margin-bottom: 26px;
}
.filter {
  min-height: 38px; padding: 0 14px;
  border: 1px solid var(--rule); background: var(--paper);
  color: var(--slate) !important; font-size: 11px !important; font-weight: 700 !important;
  text-transform: uppercase !important; letter-spacing: .07em !important;
  display: inline-flex; align-items: center; justify-content: center;
}
.filter:hover, .filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper) !important; }
.listing-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px; align-items: start;
}
.news-list { border-top: 3px solid var(--ink); }
.news-item {
  display: grid; grid-template-columns: 145px minmax(0, 1fr);
  gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--rule);
}
.news-item.is-hidden { display: none; }
.news-index {
  font-family: var(--display) !important; font-size: 40px !important;
  line-height: 1 !important; color: var(--red) !important; letter-spacing: -.04em !important;
}
.news-item h2 {
  font-family: var(--serif) !important; font-size: 27px !important;
  line-height: 1.02 !important; letter-spacing: -.035em !important; margin: 0 0 8px !important;
  font-weight: normal !important;
}
.news-item h2 a { color: var(--ink) !important; text-decoration: none !important; }
.news-item h2 a:hover { color: var(--red) !important; }
.news-item p { color: var(--slate) !important; font-size: 14px !important; margin: 0 0 8px !important; }
.meta { color: var(--muted) !important; font-size: 10px !important; letter-spacing: .08em !important; text-transform: uppercase !important; }
.load-more {
  display: block; margin: 24px auto 0;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--ink); background: var(--paper); color: var(--ink);
  font-size: 11px !important; font-weight: 700 !important; letter-spacing: .08em !important; text-transform: uppercase !important;
}
.load-more:hover { background: var(--ink); color: var(--paper); }
.side-stack { display: grid; gap: 24px; }
.side-note { border-top: 3px solid var(--ink); padding-top: 11px; }
.side-note h2 {
  font-family: var(--display) !important; font-size: 25px !important;
  text-transform: uppercase !important; letter-spacing: -.03em !important; margin: 0 0 10px !important;
  font-weight: normal !important;
}
.side-note p { color: var(--slate) !important; font-family: var(--serif) !important; font-size: 17px !important; }
.side-links { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.side-links li {
  padding: 11px 0; border-bottom: 1px solid var(--rule);
  font-family: var(--serif) !important; font-size: 16px !important;
}
.side-links a { color: var(--ink) !important; text-decoration: none !important; }
.side-links a:hover { color: var(--red) !important; }

/* ═══════════════════════════════════════════════════════════════
   SINGLE POST — single.php
   ═══════════════════════════════════════════════════════════════ */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 300px;
  justify-content: space-between;
  gap: 60px; align-items: start;
}
.article-head { border-top: 3px solid var(--ink); padding-top: 14px; }
.article-head h1 {
  font-family: var(--serif) !important;
  font-size: clamp(43px, 5.7vw, 78px) !important;
  line-height: .94 !important; letter-spacing: -.065em !important; margin: 12px 0 16px !important; max-width: 780px;
  font-weight: normal !important;
}
.dek {
  font-family: var(--serif) !important; font-size: 21px !important;
  line-height: 1.3 !important; color: var(--slate) !important; max-width: 680px; margin: 0 0 22px !important;
}
.byline {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 12px 0; color: var(--muted) !important; font-size: 11px !important;
  letter-spacing: .06em !important; text-transform: uppercase !important;
}
.article-tools { display: flex; gap: 8px; margin: 18px 0 30px; }
.tool-btn {
  min-height: 40px; border: 1px solid var(--rule);
  background: var(--paper); color: var(--ink);
  padding: 0 13px; font-size: 11px !important; font-weight: 700 !important;
}
.tool-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.article-status { color: var(--red-dark) !important; font-size: 12px !important; font-weight: 700 !important; align-self: center; }
.article-body {
  font-family: var(--serif) !important; font-size: 19px !important;
  line-height: 1.65 !important; max-width: 680px;
  color: var(--ink) !important;
}
.article-body p { margin: 0 0 22px !important; font-family: var(--serif) !important; font-size: 19px !important; line-height: 1.65 !important; }

/* Drop-cap on first letter of first paragraph */
.article-body > p:first-child::first-letter,
.article-body p:first-child:first-letter {
  float: left; font-size: 67px !important; line-height: .77 !important;
  padding: 8px 9px 0 0; color: var(--red) !important; font-family: var(--serif) !important;
}
.article-body h2 {
  font-family: var(--display) !important; font-size: 27px !important;
  line-height: 1.05 !important; letter-spacing: -.03em !important;
  text-transform: uppercase !important; margin: 36px 0 12px !important;
  font-weight: normal !important;
}
.inline-ad { width: 300px; min-height: 250px; margin: 34px auto; }
.article-end { border-top: 1px solid var(--rule); margin-top: 34px; padding-top: 18px; }
.article-end h2 {
  font-family: var(--display) !important; font-size: 24px !important;
  text-transform: uppercase !important; margin: 0 0 10px !important;
  font-weight: normal !important;
}
.related-links { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.related-links a {
  font-family: var(--serif) !important; font-size: 18px !important;
  padding: 14px 0; border-bottom: 1px solid var(--rule); display: block;
  color: var(--ink) !important; text-decoration: none !important;
}
.related-links a:hover { color: var(--red) !important; }
.most-read { border-top: 3px solid var(--ink); padding-top: 11px; }
.most-read h2 {
  font-family: var(--display) !important; font-size: 25px !important;
  text-transform: uppercase !important; margin: 0 0 8px !important;
  font-weight: normal !important;
}
.most-read ol { margin: 0; padding: 0; list-style: none; counter-reset: read; }
.most-read li {
  counter-increment: read;
  display: grid; grid-template-columns: 34px 1fr;
  gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--rule);
  font-family: var(--serif) !important; font-size: 16px !important; line-height: 1.18 !important;
}
.most-read li::before {
  content: counter(read, decimal-leading-zero);
  font-family: var(--display) !important; color: var(--red) !important; font-size: 20px !important;
}
.most-read a { color: var(--ink) !important; text-decoration: none !important; }
.most-read a:hover { color: var(--red) !important; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
footer { background: var(--ink) !important; color: #d6dcde !important; padding: 42px 0 28px; margin-top: 70px; }
.footer-top {
  display: grid; grid-template-columns: 1.1fr 2fr;
  gap: 40px; padding-bottom: 30px;
  border-bottom: 1px solid #38424d;
}
.footer-mark { color: var(--paper) !important; font-family: var(--serif) !important; font-size: 33px !important; letter-spacing: -.06em !important; }
.footer-mark small {
  display: block; color: #d46b70;
  font-family: var(--sans) !important; font-size: 10px !important;
  letter-spacing: .22em !important; text-transform: uppercase !important;
}
.footer-links {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px 20px; font-size: 12px !important;
}
.footer-links a { color: #d6dcde !important; text-decoration: none !important; }
.footer-links a:hover { color: white !important; text-decoration: underline !important; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; padding-top: 22px;
  color: #7a8696 !important; font-size: 11px !important;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .section-rail {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  .section-rail::-webkit-scrollbar {
    display: none !important; width: 0 !important; height: 0 !important;
  }
  .rail-inner {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  .rail-inner::-webkit-scrollbar {
    display: none !important; width: 0 !important; height: 0 !important;
  }
  .rail-menu, .rail-inner > ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: max-content !important;
  }
  .rail-menu > li, .rail-inner > ul > li {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }
  .rail-btn, .rail-inner a, .rail-inner li a {
    white-space: nowrap !important;
  }
  .lead-grid { grid-template-columns: minmax(0, 1.4fr) minmax(220px, .8fr); }
  .lead-grid > .ad-slot { grid-column: 1 / -1; min-height: 250px; width: 300px; justify-self: center; }
  .story-grid { grid-template-columns: repeat(2, 1fr); }
  .story:nth-child(4n) { border-right: 1px solid var(--rule); margin-right: 18px; }
  .story:nth-child(2n) { border-right: 0; margin-right: 0; }
  .split-module { grid-template-columns: 1fr; }
  .listing-layout { grid-template-columns: 1fr; }
  .side-stack { grid-template-columns: 1fr 300px; }
  .ad-side { min-height: 250px; }
  .news-item { grid-template-columns: 90px minmax(0, 1fr); }
  .news-index { font-size: 32px !important; }
  .side-note { grid-column: 1; }
  .side-stack .ad-slot { grid-column: 2; grid-row: 1 / span 2; }
  .article-layout { grid-template-columns: 1fr; gap: 32px; }
  .article-main { max-width: 760px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 640px) {
  .utility-inner { min-height: 38px; align-items: flex-start; padding: 5px 0; }
  .utility-group { gap: 10px; }
  .utility-group:last-child { display: none; }
  .masthead-inner { min-height: 77px; grid-template-columns: auto 1fr auto; gap: 7px; }
  .wordmark strong { font-size: clamp(20px, 7vw, 29px) !important; letter-spacing: -.09em !important; white-space: normal; overflow-wrap: anywhere; }
  .wordmark small { font-size: 8px !important; }
  .wordmark em { font-size: 7px !important; letter-spacing: .25em !important; }
  .login { display: none; }
  .rail-inner { gap: 17px; }
  .live-inner { gap: 9px; }
  .ticker-control { padding: 4px 6px; }
  .eyebrow.desk-eyebrow { display: none; }
  .lead-grid { grid-template-columns: 1fr; gap: 18px; }
  .lead-story, .ranked { border-right: 0; padding-right: 0; }
  .lead-story h1 { font-size: 43px !important; }
  .ad-slot.tall { min-height: 250px; width: 300px; }
  .ad-size-desktop { display: none; }
  .ad-size-mobile { display: inline; }
  .story-grid { grid-template-columns: 1fr; }
  .story, .story:nth-child(2n), .story:nth-child(4n) {
    border-right: 0; margin-right: 0; min-height: auto; padding: 15px 0;
  }
  .module-head .active-topic { order: 3; flex-basis: 100%; }
  .opinion { grid-template-columns: 1fr; padding: 18px; }
  .opinion h2 { font-size: 26px !important; }
  .page-head h1 { font-size: 46px !important; }
  .page-head p { font-size: 16px !important; }
  .news-item { grid-template-columns: 1fr; gap: 8px; }
  .news-index { font-size: 24px !important; }
  .news-item h2 { font-size: 24px !important; }
  .side-stack { grid-template-columns: 1fr; }
  .side-stack .ad-slot { grid-column: auto; grid-row: auto; width: 300px; justify-self: center; }
  .article-head h1 { font-size: 47px !important; }
  .dek { font-size: 18px !important; }
  .article-body { font-size: 18px !important; line-height: 1.58 !important; }
  .article-body h2 { font-size: 24px !important; }
  .footer-ad { min-height: 100px; width: 100%; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .drawer-list { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
