:root {
  /* =====================================================================
     NEWCASTLE DAILY - YELLOW / GOLD (the Newcastle Daily house palette)
     Only this block changes between themes; the rules below are identical.
     ===================================================================== */
  /* --- Accent --- */
  --primary: #f7b302;               /* bars, fills, borders, rules */
  --primary-dark: #e6aa00;          /* hover / pressed fill */
  --primary-deep: #8a6300;          /* accent TEXT on light surfaces (>=4.5:1) */
  --primary-light: #f7b302;         /* accent TEXT on dark surfaces (>=5:1) */
  --on-primary: #363636;            /* text sitting ON a primary fill */
  --primary-line: rgba(0,0,0,.18);  /* hairlines drawn on a primary fill */

  /* --- Surfaces --- */
  --white: #ffffff;                 /* cards, panels, article background */
  --light: #f5f5f5;                 /* page background */
  --surface-alt: #f0f0f0;           /* blockquotes, tinted blocks */
  --surface-alt-2: #ededed;         /* guides block */
  --dark: #363636;                  /* header / nav / footer */
  --darker: #1a1a1a;                /* sub-footer */

  /* --- Text --- */
  --ink: #2c2c2c;                   /* body copy */
  --ink-soft: #4a4a4a;              /* standfirsts, decks */
  --ink-muted: #555555;             /* card summaries */
  --grey: #666666;                  /* meta, captions, bylines */

  /* --- Lines and fields --- */
  --border: #e0e0e0;                /* hairlines */
  --border-strong: #d5d5d5;         /* card underlines */
  --field-border: #cccccc;          /* inputs */
  --ad-border: #dddddd;             /* ad placeholder frame */

  /* --- On dark backgrounds --- */
  --on-dark-muted: #aaaaaa;         /* footer body copy */
  --on-dark-link: #cccccc;          /* footer links */
  --on-dark-soft: #e0e0e0;          /* hero eyebrow / hero copy */

  /* --- Ad placeholder stripes --- */
  --stripe-a: #f0f0f0;              
  --stripe-b: #fafafa;              

  /* --- Status --- */
  --breaking: #dc2626;              /* breaking-news label */

  /* --- Legacy aliases --- */
  --red: var(--primary);
  --red-dark: var(--primary-dark);
  --navy: var(--dark);

  --max-width: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--light);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary-deep); }
img { display: block; width: 100%; }

.container {
  width: min(calc(100% - 32px), var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  padding: 10px 0;
}

.brand {
  display: block;
  width: min(500px, 52vw);
}

.brand img {
  width: 100%;
  height: auto;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  border: 0;
  background: var(--dark);
  color: var(--white);
  min-height: 42px;
  padding: 0 13px;
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  content: "";
  transition: .2s ease;
}

.menu-toggle-icon {
  position: relative;
}

.menu-toggle-icon::before {
  position: absolute;
  left: 0;
  top: -7px;
}

.menu-toggle-icon::after {
  position: absolute;
  left: 0;
  top: 7px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Main nav */

.site-navigation {
  margin: 0;
  padding: 0;
  background: var(--dark);
}

.main-nav {
  margin: 0;
  padding: 0;
  background: var(--dark);
}

.main-nav-inner {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: nowrap;
  width: min(calc(100% - 32px), var(--max-width));
  min-height: 46px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}

.nav-item {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 46px;
  margin: 0;
  padding: 0 9px;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.12);
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.nav-item:first-child {
  border-left: 1px solid rgba(255,255,255,.12);
}

.nav-item:hover,
.nav-item:focus,
.nav-item.active,
.nav-item.preview-active {
  background: var(--primary);
  color: var(--on-primary);
  outline: none;
}

/* The sub-navigation sits immediately against the main navigation. */
.sub-nav {
  margin: 0;
  padding: 0;
  background: var(--primary);
  border: 0;
  border-bottom: 1px solid var(--primary-dark);
}

.sub-nav > .container {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.submenu {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.submenu::-webkit-scrollbar {
  display: none;
}

.submenu.active,
.submenu.preview-active {
  display: flex;
}

.submenu a {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 40px;
  margin: 0;
  padding: 0 14px;
  border-right: 1px solid var(--primary-line);
  color: var(--on-primary);
  font-size: .77rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.submenu a:first-child {
  border-left: 1px solid var(--primary-line);
}

.submenu a:hover,
.submenu a:focus,
.submenu a.active-subcategory {
  background: var(--dark);
  color: var(--primary-light);
  outline: none;
}


/* Breaking */
.breaking-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.breaking-inner {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .92rem;
  font-weight: 700;
}

.breaking-label {
  padding: 5px 9px;
  background: var(--breaking);
  color: var(--white);
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .08em;
}

/* Main layout */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding-top: 28px;
  padding-bottom: 48px;
}

.content-column,
.sidebar { min-width: 0; }

/* 16:9 images */
.media-frame {
  display: block;
  overflow: hidden;
  background: var(--grey);
}

.ratio-16-9 {
  aspect-ratio: 16 / 9;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.media-frame:hover img {
  transform: scale(1.025);
}

/* Lead story */
.lead-story {
  background: var(--white);
  border-top: 5px solid var(--primary);
  box-shadow: 0 5px 18px rgba(0,0,0,.08);
  margin-bottom: 32px;
}

.lead-copy {
  padding: 22px 24px 24px;
}

.kicker {
  display: inline-block;
  color: var(--primary-deep);
  font-size: .76rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 9px;
}

.lead-story h1 {
  margin: 0;
  color: var(--dark);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.03;
  letter-spacing: -.035em;
}

.standfirst {
  margin: 14px 0 12px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.story-meta {
  color: var(--grey);
  font-size: .82rem;
  font-weight: 700;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 4px solid var(--dark);
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  padding: 0 0 7px;
  color: var(--dark);
  font-size: 1.65rem;
  text-transform: uppercase;
}

.section-heading a {
  color: var(--primary-deep);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  padding-bottom: 10px;
}

/* Story grid */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.story-card {
  background: var(--white);
  border-bottom: 3px solid var(--border-strong);
  box-shadow: 0 3px 12px rgba(0,0,0,.06);
}

.story-card .kicker {
  margin: 15px 16px 7px;
}

.story-card h3 {
  margin: 0;
  padding: 0 16px 10px;
  color: var(--dark);
  font-size: 1.08rem;
  line-height: 1.2;
}

.story-card p {
  margin: 0;
  padding: 0 16px 17px;
  color: var(--ink-muted);
  font-size: .88rem;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.ad {
  display: grid;
  place-items: center;
  width: 300px;
  max-width: 100%;
  border: 1px solid var(--ad-border);
  background:
    linear-gradient(135deg,
      var(--stripe-a) 25%,
      var(--stripe-b) 25%,
      var(--stripe-b) 50%,
      var(--stripe-a) 50%,
      var(--stripe-a) 75%,
      var(--stripe-b) 75%);
  background-size: 22px 22px;
  color: var(--grey);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  font-weight: 700;
}

.ad-300-250 { height: 250px; }
.ad-300-450 { height: 450px; }

.sidebar-panel {
  width: 300px;
  max-width: 100%;
  background: var(--white);
  border-top: 5px solid var(--primary);
  box-shadow: 0 3px 12px rgba(0,0,0,.07);
}

.panel-title {
  background: var(--dark);
  color: var(--white);
  padding: 11px 14px;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.top-stories ol {
  margin: 0;
  padding: 0 17px 0 45px;
}

.top-stories li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--primary-deep);
  font-weight: 800;
}

.top-stories li:last-child { border-bottom: 0; }

.top-stories li a {
  color: var(--dark);
  font-weight: 700;
}

.newsletter { padding-bottom: 16px; }

.newsletter p {
  padding: 0 16px;
  color: var(--ink-muted);
  font-size: .9rem;
}

.newsletter form { padding: 0 16px; }

.newsletter input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--field-border);
  padding: 10px 12px;
  font: inherit;
}

.newsletter button {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  border: 0;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}


/* Footer social media */
.footer-social {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
}

.footer-social .social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.06);
  color: var(--white);
  font-size: 1rem;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.footer-social .social-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
  text-decoration: none;
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: var(--white);
  border-top: 6px solid var(--primary);
  padding: 44px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 34px;
}

.footer-logo {
  display: block;
  width: 100%;
  max-width: 310px;
  margin-bottom: 18px;
}

.footer-logo img {
  display: block;
  width: 100%;
  height: auto;

}

.footer-brand p {
  max-width: 340px;
  margin: 0 0 10px;
  color: var(--on-dark-muted);
  font-size: .88rem;
  line-height: 1.6;
}

.footer-grid h3 {
  margin: 0 0 13px;
  color: var(--white);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.footer-grid a {
  display: block;
  margin: 7px 0;
  color: var(--on-dark-link);
  font-size: .88rem;
}

.footer-grid a:hover {
  color: var(--white);
  text-decoration: underline;
}

.sub-footer {
  background: var(--darker);
  color: var(--on-dark-muted);
  font-size: .78rem;
  padding: 15px 0;
}

.sub-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.legal-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.legal-links a:hover {
  color: var(--white);
}

.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;
}

/* Tablet / narrower desktop */
@media (max-width: 1180px) {
  .main-nav-inner {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .main-nav-inner::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    flex: 0 0 auto;
    padding: 0 10px;
    font-size: .76rem;
  }

  .submenu {
    justify-content: flex-start;
  }
}

/* Mobile navigation */
@media (max-width: 760px) {
  .header-inner {
    min-height: 72px;
    justify-content: space-between;
    padding: 8px 0;
  }

  .brand {
    width: min(390px, 64vw);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-navigation {
    background: transparent;
  }

  .main-nav {
    display: none;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav-inner {
    display: block;
    width: 100%;
    min-height: 0;
    overflow: visible;
  }

  .nav-item {
    justify-content: flex-start;
    width: 100%;
    height: 48px;
    padding: 0 18px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
    font-size: .82rem;
  }

  .nav-item:first-child {
    border-left: 0;
  }

  .sub-nav {
    display: none;
  }

  .sub-nav.open {
    display: block;
  }

  .sub-nav > .container {
    width: 100%;
  }

  .submenu,
  .submenu.active,
  .submenu.preview-active {
    display: none;
    width: 100%;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
  }

  .submenu.active,
  .submenu.preview-active {
    display: flex;
  }

  .submenu a {
    justify-content: flex-start;
    width: 100%;
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-bottom: 1px solid var(--primary-line);
    font-size: .78rem;
  }

  .submenu a:first-child {
    border-left: 0;
  }

  .breaking-inner {
    align-items: flex-start;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

@media (max-width: 850px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .sidebar > * {
    justify-self: center;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 20px), var(--max-width));
  }

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

  .lead-copy {
    padding: 17px;
  }

  .lead-story h1 {
    font-size: 2rem;
  }

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

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sub-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .menu-toggle-text {
    display: none;
  }

  .brand {
    width: min(390px, 72vw);
  }

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

  .footer-brand {
    grid-column: auto;
  }
}

/* =========================================================
   CATEGORY PAGE
========================================================= */
.category-page {
    align-items: start;
}

.category-hero {
    margin: 0 0 24px;
    padding: 24px 28px;
    background: var(--dark);
    color: var(--white);
    border-left: 6px solid var(--primary);
    box-shadow: 0 4px 14px rgba(0,0,0,0.10);
}

.category-eyebrow {
    margin-bottom: 6px;
    color: var(--on-dark-soft);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.category-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(2.1rem, 4vw, 3.25rem);
    line-height: 1;
    text-transform: uppercase;
}

.category-hero p {
    max-width: 830px;
    margin: 0;
    color: var(--on-dark-soft);
    font-size: 1rem;
}

.category-feature-grid {
  display: block;
  width: 100%;
  margin-bottom: 28px;
}

.category-lead {
    min-width: 0;
    background: var(--white);
    border-top: 5px solid var(--primary);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.category-lead-copy {
    padding: 20px 22px 22px;
}

.category-lead h2 {
    margin: 0;
    color: var(--dark);
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    line-height: 1.08;
}

.category-side-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    min-width: 0;
}

.category-side-card {
    display: block;
    min-width: 0;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}

.category-side-card .media-frame {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.category-side-card .media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-side-card-copy {
    min-width: 0;
    padding: 12px 14px 14px;
}

.category-side-card-copy .kicker {
    margin-bottom: 7px;
}

.category-side-card h3 {
    margin: 0;
    color: var(--dark);
    font-size: 1rem;
    line-height: 1.22;
}

.guides-block {
    margin-top: 38px;
    padding: 24px;
    background: var(--surface-alt-2);
    border-top: 5px solid var(--grey);
}

.guides-block .section-heading {
    margin-bottom: 18px;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.guide-card {
    min-width: 0;
    padding: 18px;
    background: var(--white);
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.guide-card h3 {
    margin: 0 0 8px;
    color: var(--dark);
    font-size: 1.05rem;
    line-height: 1.22;
}

.guide-card p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 0.88rem;
}

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

.sidebar-list li {
    border-bottom: 1px solid var(--border);
}

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

.sidebar-list a {
    display: block;
    padding: 12px 14px;
    color: var(--dark);
    font-size: 0.88rem;
    font-weight: 700;
}

.sidebar-list a:hover {
    color: var(--primary-deep);
}

@media (max-width: 1080px) {
    .category-feature-grid {
        grid-template-columns: 1fr;
    }

    .category-side-features {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .category-side-card {
        display: block;
    }

    .category-side-card .media-frame {
        aspect-ratio: 16 / 9;
        height: auto;
    }
}

@media (max-width: 850px) {
    .category-side-features {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .guides-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .category-hero {
        padding: 19px 18px;
    }

    .category-side-features,
    .guides-grid {
        grid-template-columns: 1fr;
    }

    .guides-block {
        padding: 18px;
    }
}




/* =========================================================
   CATEGORY FEATURE - SINGLE LEAD STORY
========================================================= */

.category-feature-single {
  display: block !important;
  width: 100% !important;
  grid-template-columns: none !important;
}

.category-feature-single .category-lead {
  display: block;
  width: 100% !important;
  max-width: none !important;
}

.category-side-features,
.category-side-card {
  display: none !important;
}


/* =========================================================
   ARTICLE PAGE
========================================================= */

.article-layout {
  align-items: start;
}

.article-content {
  min-width: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 24px 0 16px;
  color: var(--grey);
  font-size: .78rem;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--dark);
}

.breadcrumb a:hover {
  color: var(--primary-deep);
}

.article-header {
  margin-bottom: 22px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--border);
}

.article-header .kicker {
  margin-bottom: 10px;
}

.article-header h1 {
  max-width: 1050px;
  margin: 0;
  color: var(--dark);
  font-size: clamp(2.25rem, 5vw, 4.35rem);
  line-height: .99;
  letter-spacing: -.045em;
}

.article-deck {
  max-width: 900px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 1.2rem;
  line-height: 1.5;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 18px;
  color: var(--grey);
  font-size: .82rem;
  font-weight: 700;
}

.article-byline a {
  color: var(--dark);
}

.article-share-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.article-share-row > span {
  margin-right: 3px;
  color: var(--grey);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.article-share-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--dark);
}

.article-share-row a:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--on-primary);
}

.article-hero {
  margin: 0 0 24px;
}

.article-hero figcaption,
.article-inline-image figcaption {
  margin-top: 7px;
  color: var(--grey);
  font-size: .76rem;
}

.article-body {
  max-width: 780px;
  margin: 0 auto;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.78;
}

.article-body p {
  margin: 0 0 1.35em;
}

.article-body .article-intro {
  color: var(--dark);
  font-size: 1.22rem;
  line-height: 1.62;
  font-weight: 600;
}

.article-body h2 {
  margin: 1.65em 0 .55em;
  color: var(--dark);
  font-size: 1.75rem;
  line-height: 1.15;
}

.article-body h3 {
  margin: 1.45em 0 .5em;
  color: var(--dark);
  font-size: 1.3rem;
  line-height: 1.2;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.4em;
  padding-left: 1.35em;
}

.article-body li {
  margin: .45em 0;
}

.article-body blockquote {
  margin: 1.75em 0;
  padding: 18px 22px;
  border-left: 5px solid var(--primary);
  background: var(--surface-alt);
  color: var(--dark);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.55;
}

.article-inline-image {
  margin: 1.8em 0;
}

.article-callout {
  margin: 1.8em 0;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  background: var(--white);
  color: var(--dark);
}

.inline-ad.ad-inline {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 120px;
  margin: 28px 0;
  border: 1px solid var(--ad-border);
  background:
    linear-gradient(
      135deg,
      var(--stripe-a) 25%,
      var(--stripe-b) 25%,
      var(--stripe-b) 50%,
      var(--stripe-a) 50%,
      var(--stripe-a) 75%,
      var(--stripe-b) 75%
    );
  background-size: 22px 22px;
  color: var(--grey);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 780px;
  margin: 30px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: .82rem;
}

.article-tags strong {
  color: var(--dark);
}

.article-tags a {
  display: inline-block;
  padding: 6px 9px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--dark);
  font-weight: 700;
}

.article-tags a:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--on-primary);
}

.author-box {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  max-width: 780px;
  margin: 28px auto 0;
  padding: 20px;
  background: var(--white);
  border-top: 4px solid var(--dark);
}

.author-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  font-size: .9rem;
  font-weight: 900;
}

.author-box h2 {
  margin: 0 0 5px;
  color: var(--dark);
  font-size: 1rem;
  text-transform: uppercase;
}

.author-box p {
  margin: 0;
  color: var(--ink-muted);
  font-size: .88rem;
  line-height: 1.55;
}

.related-articles {
  margin-top: 38px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.related-grid .story-card h3 {
  padding-bottom: 16px;
}

.article-sidebar {
  padding-top: 24px;
}

@media (max-width: 850px) {
  .article-sidebar {
    padding-top: 0;
  }
}

@media (max-width: 720px) {
  .article-header h1 {
    font-size: 2.35rem;
  }

  .article-deck {
    font-size: 1.05rem;
  }

  .article-meta-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-body {
    font-size: 1rem;
    line-height: 1.7;
  }

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

/* V17 article header */
.article-header-before-image{margin:0 0 18px;padding:0;border:0}.article-header-before-image h1{max-width:980px;font-size:clamp(1.8rem,3vw,2.75rem);line-height:1.08;letter-spacing:-.025em}.article-summary-meta{max-width:900px;margin:0 0 28px;padding:0 0 18px;border-bottom:1px solid var(--border)}.article-summary-meta .article-deck{margin:0 0 14px;font-size:1.08rem}@media(max-width:720px){.article-header-before-image h1{font-size:1.8rem}}


/* =========================================================
   ARTICLE PAGE - SIMPLE STANDARD LAYOUT
========================================================= */

.article-page-simple {
  padding-top: 24px;
  padding-bottom: 48px;
}

.article-simple {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

.article-simple .article-breadcrumb {
  margin: 0 0 16px;
}

.article-simple-header {
  margin: 0 0 20px;
}

.article-simple-header h1 {
  max-width: 920px;
  margin: 0;
  color: var(--dark);
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.article-hero-simple {
  margin: 0 0 18px;
}

.article-hero-simple figcaption {
  margin-top: 6px;
  color: var(--grey);
  font-size: .76rem;
}

.article-simple-summary {
  max-width: 780px;
  margin: 0 auto 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.article-simple-summary p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.55;
}

.article-simple-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
  color: var(--grey);
  font-size: .82rem;
  font-weight: 700;
}

.article-simple-meta a {
  color: var(--dark);
}

.article-simple-body {
  max-width: 780px;
  margin: 0 auto;
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.72;
}

.article-simple-body p {
  margin: 0 0 1.35em;
}

.article-simple-body h2 {
  margin: 1.7em 0 .55em;
  color: var(--dark);
  font-size: 1.55rem;
  line-height: 1.2;
}

.article-simple-body h3 {
  margin: 1.5em 0 .5em;
  color: var(--dark);
  font-size: 1.22rem;
  line-height: 1.25;
}

.article-simple-body ul,
.article-simple-body ol {
  margin: 0 0 1.4em;
  padding-left: 1.4em;
}

.article-simple-body li {
  margin: .45em 0;
}

.article-mid-ad {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 42px 0;
}

.article-mid-ad .ad {
  flex: 0 0 300px;
  width: 300px;
  height: 250px;
}

.article-simple-related {
  margin-top: 46px;
}

@media (max-width: 620px) {
  .article-page-simple {
    padding-top: 18px;
  }

  .article-simple-header h1 {
    font-size: 1.85rem;
  }

  .article-simple-summary,
  .article-simple-body {
    max-width: 100%;
  }

  .article-simple-summary p {
    font-size: 1rem;
  }

  .article-simple-body {
    font-size: 1rem;
    line-height: 1.68;
  }

  .article-mid-ad {
    margin: 34px 0;
  }
}


/* =========================================================
   ARTICLE PAGE V19 - SIDEBAR + SINGLE 3-AD ROW
========================================================= */

.article-page-simple {
  align-items: start;
}

.article-page-simple .article-simple {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
}

.article-page-simple .article-simple-header h1 {
  max-width: 920px;
}

.article-page-simple .article-simple-summary,
.article-page-simple .article-simple-body {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.article-sidebar-simple {
  padding-top: 24px;
}

.article-bottom-ads {
  display: grid;
  grid-template-columns: repeat(3, 300px);
  justify-content: center;
  gap: 18px;
  width: 100%;
  margin: 46px 0 40px;
}

.article-bottom-ads .ad {
  width: 300px;
  height: 250px;
  margin: 0;
}

@media (max-width: 1100px) {
  .article-bottom-ads {
    grid-template-columns: repeat(2, 300px);
  }
}

@media (max-width: 850px) {
  .article-sidebar-simple {
    padding-top: 0;
  }

  .article-bottom-ads {
    grid-template-columns: repeat(2, 300px);
  }
}

@media (max-width: 660px) {
  .article-bottom-ads {
    grid-template-columns: 300px;
    gap: 18px;
  }
}


/* =========================================================
   ARTICLE BOTTOM ADS V20 - ALWAYS HORIZONTAL
========================================================= */

.article-bottom-ads {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  margin: 46px 0 40px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.article-bottom-ads::-webkit-scrollbar {
  display: none;
}

.article-bottom-ads .ad {
  flex: 0 0 300px !important;
  width: 300px !important;
  min-width: 300px !important;
  height: 250px !important;
  margin: 0 !important;
}

/* Override earlier responsive rules that stacked the ads. */
@media (max-width: 1100px) {
  .article-bottom-ads {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
  }
}

@media (max-width: 850px) {
  .article-bottom-ads {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
  }
}

@media (max-width: 660px) {
  .article-bottom-ads {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start;
    grid-template-columns: none !important;
  }
}


/* =========================================================
   ARTICLE CONTENT WIDTH V21
   Match article text width to the hero image width
========================================================= */

.article-page-simple .article-simple-summary,
.article-page-simple .article-simple-body {
  width: 100%;
  max-width: none !important;
  margin-left: 0;
  margin-right: 0;
}

.article-simple-body {
  width: 100%;
  max-width: none !important;
}

.article-simple-summary {
  width: 100%;
  max-width: none !important;
}


/* =========================================================
   ARTICLE META ORDER V22
   Headline > Excerpt > Author/Date > Image
========================================================= */

.article-simple-header {
  margin-bottom: 12px;
}

.article-simple-header + .article-simple-summary {
  width: 100%;
  max-width: none !important;
  margin: 0 0 20px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--border);
}

.article-simple-header + .article-simple-summary p {
  max-width: none;
  margin: 0;
}

.article-simple-header + .article-simple-summary .article-simple-meta {
  margin-top: 10px;
}

.article-hero-simple {
  margin-top: 0;
}


/* PHP v1 share button */
.article-share-row .share-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--dark);
  cursor: pointer;
}

.article-share-row .share-copy:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--on-primary);
}


.site-search-form {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.site-search-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--field-border);
  font: inherit;
}

.site-search-form button {
  border: 0;
  padding: 0 18px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 800;
  cursor: pointer;
}

.error-page {
  padding: 70px 0;
  max-width: 720px;
}

.error-code {
  color: var(--primary-deep);
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 900;
  line-height: 1;
}

.error-page h1 {
  margin: 12px 0;
  color: var(--dark);
}

.error-home-link {
  margin-top: 20px;
}

.search-empty {
  padding: 30px 0;
}

/* V103 category heading / 16:9 media repair. */
.category-hero {
  display: block !important;
  width: 100% !important;
  margin: 0 0 24px !important;
  padding: 24px 28px !important;
  background: var(--dark) !important;
  color: var(--white) !important;
  border-left: 6px solid var(--primary) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.10) !important;
}
.category-hero h1 {
  margin: 0 0 8px !important;
  padding: 0 !important;
  color: var(--white) !important;
  background: transparent !important;
  font-size: clamp(2.1rem,4vw,3.25rem) !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}
.category-hero p {
  max-width: 830px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--on-dark-soft) !important;
  background: transparent !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}
.media-frame.ratio-16-9,
.category-lead > .media-frame,
.story-card > .media-frame {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
}
.media-frame.ratio-16-9 > img,
.category-lead > .media-frame > img,
.story-card > .media-frame > img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

