* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --font-headline: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Merriweather', Georgia, 'Times New Roman', serif;
  --divider-color: #e0e0e0;
}

h1, h2, h3 {
  font-family: var(--font-headline);
}

/* Reusable thin vertical divider — apply to any element that needs a
   hairline separator on its left edge (sidebar rails, story columns, etc). */
.divider-v {
  border-left: 1px solid var(--divider-color);
}

/* Horizontal counterpart — separates stacked sections (category blocks,
   story rows) from whatever precedes them. */
.divider-h {
  border-top: 1px solid var(--divider-color);
}

/* Homepage — full-width, single-column section stack (no sidebar). The
   first section has nothing above it now that the hero is gone, so it
   gets no top divider/spacing. */
.home-stack > .category-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* Category section — homepage layout. One of these repeats per section: an
   optional title bar, then a "hero" row (1 large card + a 2x2 grid of 4
   small cards) and a "grid" row (4 more small cards in a single row). */
.category-section {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
}

.category-section__title {
  display: inline-block;
  font-family: var(--font-headline);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 3px solid #FF6600;
  padding-bottom: 0.3rem;
  margin-bottom: 1.5rem;
}

.category-section__title:hover {
  color: #FF6600;
}

/* Editor's Picks row 1 — 2 items: a 75% split-treatment lead card + a 25%
   standard medium card alongside it (row 2 reuses the standard
   .category-section__row--grid 4-up grid). */
.editors-picks__row1 {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Hero row — 1 large card (left 50%) + a 2x2 grid of small cards (right
   50%), used by the Latest News / Features homepage sections. */
.category-section__row--hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.category-section__quad-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.category-section__row--grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.home-stack__most-read-link {
  text-align: right;
  margin: 1.5rem 0 0;
  font-weight: 700;
}

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

  .editors-picks__row1 {
    grid-template-columns: 1fr;
  }

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

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

  .category-section__row--grid {
    grid-template-columns: 1fr;
  }
}

.ad-slot {
  margin: 1.5rem 0;
  text-align: center;
}

.ad-slot__label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  margin-bottom: 0.35rem;
}

.ad-slot--header {
  margin: 0 0 1rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid #eee;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: #1a1a1a;
  background: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.375rem 1.5rem;
  background-color: #FF6600;
}

.site-subnav {
  /* Hidden for now — re-enable by removing this. */
  display: none;
  flex-wrap: nowrap;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.55rem 1.5rem;
  background: #14213d;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.site-subnav a {
  flex-shrink: 0;
  color: #e8e8e8;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-subnav a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
}

.site-header__logo img {
  width: 350px;
  height: auto;
  max-width: 100%;
  display: block;
  transition: width 0.2s ease;
}

/* Slims the header once it's actually pinned to the viewport top (vs. just
   sitting in its normal flow position) — toggled by header.js based on
   the header's own getBoundingClientRect().top, not scroll position, so
   it's correct regardless of what sits above the header. */
.site-header--stuck .site-header__logo img {
  width: 200px;
}

.site-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 1.5rem 1.5rem;
  border-left: 2px solid var(--divider-color);
  border-right: 2px solid var(--divider-color);
}

/* Groups the nav and search icon together at the header's right edge,
   instead of letting .site-header__inner's space-between spread the nav
   out to the middle now that the search element is just a small icon. */
.site-header__right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-header__nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.site-header__nav a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
}

.site-header__nav a:hover {
  background: rgba(255, 255, 255, 0.28);
}

.site-header__search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.site-header__search-toggle:hover {
  opacity: 0.8;
}

/* Search overlay bar — part of the sticky header's normal flow (not
   absolutely positioned), so it pushes content down by its own height
   when open rather than floating over it. */
.site-search-bar {
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 0.75rem 1.5rem;
}

.site-search-bar__form {
  display: flex;
  gap: 0.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.site-search-bar__form input {
  flex: 1;
  padding: 0.65rem 0.9rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.site-search-bar__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  border: none;
  border-radius: 4px;
  background: #FF6600;
  color: #fff;
  cursor: pointer;
}

.site-search-bar__submit:hover {
  opacity: 0.85;
}

.site-header__menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  order: 2;
}

.site-header__menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #1a2b4c;
  border-radius: 2px;
}

/* Constrained to the same 1000px column as .site-main, with matching
   2px divider borders so the main content's vertical lines flow
   straight into the footer with no gap or break. The admin-edited
   footer HTML nested inside fills this box edge to edge. */
.site-footer {
  max-width: 1000px;
  margin: 0 auto;
  border-left: 2px solid var(--divider-color);
  border-right: 2px solid var(--divider-color);
}

.home-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

.home-main {
  /* Grid items default to min-width:auto, which lets a child's intrinsic
     content size (e.g. the masonry section's multi-column layout) force
     this track wider than its 1fr share. Allow it to shrink to fit. */
  min-width: 0;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Story snippet card — reusable base component for image+headline story
   listings (homepage grid, category/author/search pages, sidebars).
   Default (unmodified) size is "medium"; add --small or --large for the
   size variants used in later redesign phases. */
.story-card {
  /* As a grid/flex item, this would otherwise default to min-width:auto and
     refuse to shrink below its content's intrinsic size, overflowing
     narrow grid tracks (editors-picks grid, masonry columns, etc). */
  min-width: 0;
}

.story-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.story-card__media {
  position: relative;
}

.story-card__image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.story-card__tag {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: #FF6600;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}

.story-card__title {
  font-family: var(--font-headline);
  font-size: 1.2rem;
  line-height: 1.25;
  margin: 0.6rem 0 0.3rem;
}

.story-card__meta {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
}

.story-card__meta a {
  color: #666;
}

.story-card--small .story-card__image {
  height: 120px;
}

.story-card--small .story-card__title {
  font-size: 0.95rem;
  margin: 0.4rem 0 0.2rem;
}

.story-card--small .story-card__tag {
  font-size: 0.6rem;
  padding: 0.15rem 0.45rem;
}

.story-card--large .story-card__image {
  height: 335px;
}

.story-card--large .story-card__title {
  font-size: 1.9rem;
}

.story-card--large .story-card__tag {
  font-size: 0.8rem;
  padding: 0.25rem 0.7rem;
}

/* Split treatment for Editor's Picks' lead item — image on the left
   (70%), solid yellow title block on the right (30%), Mirror's
   lead-story pattern, instead of image-with-overlay or image-above-title.
   This card itself occupies 75% of its row; a standard medium card fills
   the remaining 25% alongside it. */
.story-card--split .story-card__link {
  display: grid;
  grid-template-columns: 7fr 3fr;
}

.story-card--split .story-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  display: block;
}

.story-card--split .story-card__textblock {
  height: 100%;
  box-sizing: border-box;
  background: #ffd400;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-card--split .story-card__title {
  margin: 0 0 0.6rem;
  font-size: 1.4rem;
  color: #1a1a1a;
  line-height: 1.25;
  text-decoration: underline;
}

.story-card--split .story-card__meta {
  margin: 0;
  font-size: 0.8rem;
  color: #333;
}


.home-sidebar {
  padding-left: 1.5rem;
}

.home-sidebar.divider-v {
  border-left: 1px solid var(--divider-color);
}

.home-sidebar__heading {
  margin-top: 0;
  text-transform: uppercase;
  font-size: 1rem;
  border-bottom: 2px solid #1a1a1a;
  padding-bottom: 0.5rem;
}

.most-read-list {
  padding-left: 1.25rem;
}

.most-read-list li {
  margin-bottom: 0.75rem;
}

.featured-articles-list {
  padding-left: 1.25rem;
  margin: 0 0 1.5rem;
}

.featured-articles-list li {
  margin-bottom: 0.75rem;
}

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

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


  .home-sidebar {
    padding-left: 0;
    padding-top: 1.5rem;
  }

  .home-sidebar.divider-v {
    border-left: none;
    border-top: 1px solid var(--divider-color);
  }

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

  .site-header__inner {
    flex-wrap: wrap;
  }

  .site-header__logo {
    order: 1;
    flex: 1 1 0;
    min-width: 210px;
  }

  .site-header__logo img {
    width: 100%;
    max-width: 350px;
    height: auto;
  }

  .site-header__menu-toggle {
    display: flex;
    order: 2;
    flex-shrink: 0;
  }

  .site-header__right {
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 0.75rem;
  }

  .site-header__search-toggle {
    order: 1;
    justify-content: flex-start;
  }

  .site-header__nav {
    display: none;
    order: 2;
    flex-direction: column;
    gap: 0;
    margin-top: 1rem;
  }

  .site-header__nav.is-open {
    display: flex;
  }

  .site-header__nav a {
    padding: 0.65rem 0.75rem;
    border-top: 1px solid rgba(26, 43, 76, 0.15);
  }
}

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



.static-page {
  max-width: 800px;
  margin: 0 auto;
}

.static-page__body {
  font-size: 1.05rem;
  line-height: 1.7;
}

.static-page__body p {
  margin: 0 0 1.25rem;
}





.not-found {
  text-align: center;
  padding: 3rem 0;
}

.page-title {
  text-transform: uppercase;
  border-bottom: 3px solid #1a1a1a;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.pagination a {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: bold;
}

.pagination span {
  color: #666;
  font-size: 0.9rem;
}

.author-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid #1a1a1a;
}

.author-header__photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-header__name {
  margin: 0 0 0.5rem;
}

.author-header__bio {
  color: #555;
  margin: 0;
}
