/*
Theme Name: NewsRescue
Theme URI: https://newsrescue.com
Author: NewsRescue
Description: Editorial theme for NewsRescue. Content first, built around the archive that already exists.
Version: 2.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.1
Text Domain: newsrescue
*/

/* ---------- Tokens ---------- */

:root {
  --navy: #131f49;
  --navy-deep: #0b1433;
  --navy-soft: #26346a;
  --red: #c41e1e;
  --red-dark: #a3161a;
  --ink: #0e1220;
  --text: #262b38;
  --muted: #5d6474;
  --rule: #e2e4ea;
  --rule-strong: #c6cad6;
  --panel: #f3f5f9;
  --white: #fff;
  --on-navy: #c9cfe2;
  --serif: Newsreader, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --gutter: 16px;
  --wrap: min(1320px, calc(100% - 2 * var(--gutter)));
  --col-gap: 24px;
  --block-gap: 44px;
  --thumb: 104px;
  --measure: 44rem;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --col-gap: 32px; --block-gap: 60px; }
}

@media (min-width: 1100px) {
  :root { --col-gap: 40px; --block-gap: 72px; }
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg,
video,
iframe { max-width: 100%; }
img { height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.006em;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.screen-reader,
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--white);
  color: var(--navy);
  padding: 10px 16px;
  font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap { width: var(--wrap); margin-inline: auto; }

.icon { flex: none; }

.apbct_special_field {
  position: absolute !important;
  left: -9999px !important;
  height: 1px !important;
  width: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ---------- Shared type ---------- */

.kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--red);
  line-height: 1.2;
}
a.kicker:hover { color: var(--red-dark); text-decoration: underline; text-underline-offset: 3px; }

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0;
  row-gap: 2px;
  font-family: var(--sans);
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.35;
}
.meta > * + *::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 8px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
  opacity: 0.6;
}
.meta a { color: var(--ink); font-weight: 600; }
.meta a:hover { color: var(--red); }

.card__title a,
.timeline__title a,
.article__foot a {
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}
.card__title a:hover,
.timeline__title a:hover {
  text-decoration-color: currentColor;
  color: var(--navy-soft);
}

/* ---------- Masthead ---------- */

.mast { background: var(--navy); color: var(--white); border-bottom: 4px solid var(--red); }

.mast__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding-block: 12px;
}

.mast__date { display: none; }

.mast__logo { justify-self: start; display: block; }
.mast__logo img { height: 34px; width: auto; }
.logo__word { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; color: var(--white); }

.mast__tools { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }

.mast__link {
  display: none;
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
}
.mast__link:hover { text-decoration: underline; text-underline-offset: 4px; }

.mast__icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.mast__icon:hover { background: rgba(255, 255, 255, 0.1); }
.mast__fb { display: none; }
.search-toggle .icon--close,
.search-toggle[aria-expanded="true"] .icon--search { display: none; }
.search-toggle[aria-expanded="true"] .icon--close { display: block; }

@media (min-width: 768px) {
  .mast__inner {
    grid-template-columns: 1fr auto 1fr;
    min-height: 104px;
    padding-block: 20px;
  }
  .mast__date {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--on-navy);
  }
  .mast__logo { justify-self: center; }
  .mast__logo img { height: 52px; }
  .mast__link,
  .mast__fb { display: inline-grid; }
  .mast__link { display: inline-block; }
}

@media (min-width: 1100px) {
  .mast__inner { min-height: 124px; }
  .mast__logo img { height: 64px; }
}

.search-panel { background: var(--navy-deep); padding: 20px 0; }
.search-panel[hidden] { display: none; }
.search-panel .search-form { max-width: 720px; margin-inline: auto; }

/* ---------- Section navigation ---------- */

.sections {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(19, 31, 73, 0.04), 0 6px 18px -14px rgba(19, 31, 73, 0.35);
}
.admin-bar .sections { top: 32px; }

.sections__inner {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
  mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.sections__inner::-webkit-scrollbar { display: none; }

.sections__list { display: flex; gap: 24px; white-space: nowrap; }
.sections__list a {
  position: relative;
  display: block;
  padding: 14px 0 13px;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--ink);
}
.sections__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}
.sections__list a:hover::after,
.sections__list a[aria-current="page"]::after { transform: scaleX(1); }
.sections__list a[aria-current="page"] { color: var(--navy); }

@media (min-width: 1100px) {
  .sections__inner { -webkit-mask-image: none; mask-image: none; overflow: visible; }
  .sections__list { justify-content: center; gap: 16px; }
  .sections__list a { font-size: 0.94rem; padding: 15px 0 14px; }
}
@media (min-width: 1440px) {
  .sections__list { gap: 26px; }
  .sections__list a { font-size: 1rem; }
}

/* ---------- Search form ---------- */

.search-form {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
}
.search-form > .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 14px 0 44px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--rule-strong);
  border-right: 0;
  border-radius: 4px 0 0 4px;
  -webkit-appearance: none;
  appearance: none;
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.search-form button {
  flex: none;
  height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 0 4px 4px 0;
  background: var(--red);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.search-form button:hover { background: var(--red-dark); }
.search-panel .search-form input[type="search"] { border-color: transparent; }

/* ---------- Section heads ---------- */

.sec-head {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-top: 14px;
  border-top: 2px solid var(--navy);
}
.sec-head::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 56px;
  height: 5px;
  background: var(--red);
}
.sec-head__title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.012em;
  line-height: 1.1;
}
.sec-head__title a:hover { color: var(--red); }
.sec-head--md .sec-head__title { font-size: 1.55rem; }

.sec-head__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
.sec-head__more .icon { width: 18px; height: 18px; transition: transform 0.15s ease; }
.sec-head__more:hover { color: var(--red); }
.sec-head__more:hover .icon { transform: translateX(3px); }

@media (max-width: 599px) {
  .sec-head__more span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .sec-head__more { width: 40px; height: 32px; justify-content: flex-end; }
}

@media (min-width: 1100px) {
  .sec-head__title { font-size: 2.05rem; }
  .sec-head--md .sec-head__title { font-size: 1.75rem; }
}

/* ---------- Cards ---------- */

.card { position: relative; min-width: 0; }
.card__body > * + * { margin-top: 8px; }
.card__kicker + .card__title { margin-top: 6px; }

.card__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--panel);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card__media img.is-portrait { object-position: center 22%; }
.card:hover .card__media img { transform: scale(1.025); }

.card__title { font-size: 1.22rem; line-height: 1.2; text-wrap: pretty; }
.card__deck {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.card__meta { margin-top: 10px; }

/* Card with picture on top */
.card--card.has-media .card__body,
.card--feature.has-media .card__body { padding-top: 14px; }

/* Text-only cards are designed panels, so grids stay aligned without pictures. */
.card--card.no-media {
  display: flex;
  flex-direction: column;
  padding: 20px 20px 18px;
  background: var(--panel);
  border-top: 3px solid var(--navy);
}
.card--card.no-media .card__body { display: flex; flex-direction: column; flex: 1; }
.card--card.no-media .card__title { font-size: 1.32rem; }
.card--card.no-media .card__deck { -webkit-line-clamp: 5; }
.card--card.no-media .card__meta { margin-top: auto; padding-top: 14px; }

/* Ruled grids show text cards as an open list instead of panels. */
.grid--ruled .card--card.no-media {
  padding: 18px 0 0;
  background: none;
  border-top: 1px solid var(--rule);
}
.grid--ruled .card--card.no-media .card__title { font-size: 1.28rem; }
.grid--ruled .card--card.no-media .card__deck { -webkit-line-clamp: 3; }

/* Feature */
.card--feature .card__title { font-size: 1.6rem; line-height: 1.14; }
.card--feature .card__deck { font-size: 1.06rem; -webkit-line-clamp: 4; }
.card--feature.no-media {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  background: var(--navy);
  color: var(--on-navy);
}
.card--feature.no-media .card__body { display: flex; flex-direction: column; flex: 1; }
.card--feature.no-media .card__title { color: var(--white); font-size: 1.85rem; }
.card--feature.no-media .card__title a:hover { color: var(--white); }
.card--feature.no-media .card__deck { color: var(--on-navy); -webkit-line-clamp: 6; }
.card--feature.no-media .kicker { color: #ff8a8a; }
.card--feature.no-media .meta { color: #9fa8c6; margin-top: auto; padding-top: 18px; }
.card--feature.no-media .meta a { color: var(--white); }
.card--feature.no-media::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin-bottom: 18px;
  background: var(--red);
}

@media (min-width: 1100px) {
  .card--feature .card__title { font-size: 1.95rem; }
  .card--feature.no-media { padding: 40px 36px 32px; }
  .card--feature.no-media .card__title { font-size: 2.3rem; line-height: 1.1; }
  .card--feature.no-media .card__deck { font-size: 1.12rem; }
}

/* Row: text with a thumbnail on the right */
.card--row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}
.card--row .card__media { width: var(--thumb); }
.card--row .card__title { font-size: 1.1rem; line-height: 1.22; }
.card--row .card__deck { font-size: 0.97rem; -webkit-line-clamp: 2; }
.card--row .card__meta { margin-top: 8px; }

/* Text */
.card--text { display: flex; gap: 14px; }
.card--text .card__body { min-width: 0; }
.card--text .card__title { font-size: 1.12rem; line-height: 1.24; }
.card--text .card__meta { margin-top: 6px; }
.card__num {
  flex: none;
  width: 34px;
  font-family: var(--serif);
  font-size: 2.3rem;
  font-weight: 600;
  line-height: 0.9;
  color: var(--red);
}

/* ---------- Lists and grids ---------- */

.list--ruled > * { padding-block: 16px; border-top: 1px solid var(--rule); }
.list--ruled > :first-child { border-top: 0; padding-top: 0; }

.grid { display: grid; gap: 28px var(--col-gap); }

@media (min-width: 600px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Phones: secondary cards become compact rows so sections stay scannable. */
@media (max-width: 599px) {
  .grid--4:not(.grid--headlines),
  .arch-grid { gap: 0; }
  .grid--4:not(.grid--headlines) > .card--card:not(:first-child),
  .arch-grid > .card--card:not(:first-child) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--thumb);
    gap: 14px;
    align-items: start;
    margin-top: 16px;
    padding: 16px 0 0;
    background: none;
    border-top: 1px solid var(--rule);
  }
  .grid--4:not(.grid--headlines) > .card--card:not(:first-child) .card__media,
  .arch-grid > .card--card:not(:first-child) .card__media { grid-column: 2; grid-row: 1; }
  .grid--4:not(.grid--headlines) > .card--card:not(:first-child) .card__body,
  .arch-grid > .card--card:not(:first-child) .card__body { grid-column: 1; grid-row: 1; padding-top: 0; }
  .grid--4:not(.grid--headlines) > .card--card:not(:first-child) .card__title,
  .arch-grid > .card--card:not(:first-child) .card__title { font-size: 1.1rem; }
  .grid--4:not(.grid--headlines) > .card--card:not(:first-child) .card__deck,
  .arch-grid > .card--card:not(:first-child) .card__deck { display: none; }
  .band__grid.grid--4 > .card { margin-top: 0; padding-top: 18px; }
  .band__grid.grid--4 { gap: 22px; }
  .band__grid.grid--4 > .card:not(:first-child) .card__deck { display: none; }

  .top__lead .card--hero { margin-inline: calc(-1 * var(--gutter)); }
  .top__lead .card--hero .card__deck,
  .top__lead .card--hero .card__meta { padding-inline: var(--gutter); }
  .top { padding-top: 0; }
}

.grid--headlines { gap: 0 var(--col-gap); margin-top: 28px; }
.grid--headlines > .card { padding: 16px 0 18px; border-top: 1px solid var(--rule); }
.grid--headlines .card__title { font-size: 1.1rem; }

.block { margin-top: var(--block-gap); }
.block--last { margin-bottom: var(--block-gap); }

/* ---------- Front page: top stories ---------- */

.top {
  display: grid;
  gap: 32px var(--col-gap);
  padding-top: 24px;
}

.card--hero .card__panel {
  position: relative;
  padding: 18px 20px 20px;
  background: var(--navy);
}
.card--hero .card__panel .kicker {
  padding: 4px 8px 3px;
  background: var(--red);
  color: var(--white);
}
.card--hero .card__panel .kicker:hover { background: var(--red-dark); text-decoration: none; }
.card--hero .card__title {
  margin-top: 10px;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.12;
  color: var(--white);
  text-wrap: balance;
}
.card--hero .card__title a:hover { color: var(--white); }
.card--hero .card__deck {
  margin-top: 16px;
  font-size: 1.08rem;
  line-height: 1.55;
  -webkit-line-clamp: 4;
}
.card--hero .card__meta { margin-top: 12px; }
.card--hero.no-media .card__panel { padding: 28px 24px 30px; }
.card--hero.no-media .card__panel::before {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-bottom: 20px;
  background: var(--red);
}

.top__related {
  margin-top: 20px;
  border-top: 1px solid var(--rule);
}
.top__related li {
  position: relative;
  padding: 12px 0 12px 20px;
  border-bottom: 1px solid var(--rule);
}
.top__related li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 21px;
  width: 7px;
  height: 7px;
  background: var(--red);
}
.top__related .card__title { font-size: 1.06rem; }
.top__related .card__meta { display: none; }

.top__second .card--second .card__title { font-size: 1.4rem; line-height: 1.16; }
.top__second .card--second.no-media { border-top-color: var(--red); }
.top__second > .card--row {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.top__second > .card--row .card__title { font-size: 1.04rem; }

.top__latest { border-top: 2px solid var(--navy); padding-top: 14px; }
.rail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}
.live-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--red);
  opacity: 0;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot::after { animation: none; }
  .card__media img { transition: none; }
}

.timeline { position: relative; }
.timeline li {
  position: relative;
  padding: 12px 0 12px 20px;
  border-bottom: 1px solid var(--rule);
}
.timeline li:last-child { border-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 2px solid var(--red);
  background: var(--white);
}
.timeline time {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
}
.timeline__title { margin-top: 3px; font-size: 1.04rem; line-height: 1.25; }

@media (min-width: 768px) {
  .top { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 32px; }
  .top__lead { grid-column: 1 / -1; }
  .card--hero.has-media .card__panel { margin: -96px 56px 0 0; padding: 22px 28px 24px; }
  .card--hero .card__title { font-size: 2.15rem; }
  .card--hero.no-media .card__panel { padding: 40px 40px 44px; }
  .card--hero.no-media .card__title { font-size: 2.6rem; }
  .top__related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
  .top__related li { border-bottom: 0; padding-top: 14px; }
}

@media (min-width: 1100px) {
  .top { grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr) minmax(0, 0.92fr); align-items: start; }
  .top__lead { grid-column: auto; }
  .top__second,
  .top__latest { padding-left: var(--col-gap); border-left: 1px solid var(--rule); }
  .top__second { margin-left: calc(-1 * var(--col-gap) / 2); padding-left: calc(var(--col-gap) / 2); }
  .top__latest { border-top: 0; padding-top: 0; margin-left: calc(-1 * var(--col-gap) / 2); padding-left: calc(var(--col-gap) / 2); }
  .card--hero .card__title { font-size: 2.45rem; line-height: 1.08; }
  .card--hero.no-media .card__title { font-size: 2.9rem; }
  .card--hero .card__deck { font-size: 1.12rem; }
  .top__related { grid-template-columns: 1fr; }
  .top__related li { border-bottom: 1px solid var(--rule); padding-top: 12px; }
}

@media (min-width: 1360px) {
  .card--hero.has-media .card__panel { margin-right: 72px; }
}

/* ---------- Front page: section layouts ---------- */

.split { display: grid; gap: 28px var(--col-gap); }
@media (min-width: 768px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .split > .card--feature.no-media { align-self: stretch; }
}
.split > .card--feature.no-media .card__deck { -webkit-line-clamp: 9; }
@media (min-width: 600px) and (max-width: 1099px) {
  .split > .grid--2 { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .split > .grid--2 > .card:first-child { border-top: 0; padding-top: 0; }
}

.pair,
.trio,
.duo { display: grid; gap: 0 var(--col-gap); }
.pair > .block,
.trio > .block,
.duo > .block { margin-top: var(--block-gap); }

@media (min-width: 768px) {
  .pair,
  .trio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trio > .block:nth-child(3) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 var(--col-gap);
    align-items: start;
  }
  .trio > .block:nth-child(3) > .sec-head { grid-column: 1 / -1; }
  .trio > .block:nth-child(3) > .card--col-lead + .list { margin-top: 0; }
  .trio > .block:nth-child(3) .list--ruled > :first-child { border-top: 0; padding-top: 0; }
}
@media (min-width: 1100px) {
  .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trio > .block:nth-child(3) { grid-column: auto; display: block; }
  .trio > .block:nth-child(3) > .card--col-lead + .list { margin-top: 18px; }
  .trio > .block:nth-child(3) .list--ruled > :first-child { border-top: 1px solid var(--rule); padding-top: 16px; }
  .duo { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}

.col-stack > .list { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); }
.col-stack .card--row .card__title { font-size: 1.08rem; }

.card--feature-sm .card__title { font-size: 1.45rem; }
.card--feature-sm.no-media .card__title { font-size: 1.6rem; }
@media (min-width: 1100px) {
  .card--feature-sm.has-media {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
  }
  .card--feature-sm.has-media .card__body { padding-top: 0; }
  .card--feature-sm .card__title { font-size: 1.5rem; }
  .card--feature-sm.no-media { padding: 32px 32px 26px; }
  .card--feature-sm.no-media .card__title { font-size: 1.9rem; }
}

.card--col-lead .card__title { font-size: 1.32rem; }
.card--col-lead.has-media .card__body { padding-top: 14px; }
.card--col-lead + .list { margin-top: 18px; }
.trio .list--ruled > :first-child { border-top: 1px solid var(--rule); padding-top: 16px; }
.trio .card--text .card__title,
.split--history .card--text .card__title { font-size: 1.06rem; }

.split--history .list--ruled > :first-child { padding-top: 0; }

.most-read .list--numbered > li { padding: 16px 0; border-top: 1px solid var(--rule); }
.most-read .list--numbered > li:first-child { border-top: 0; padding-top: 0; }
.most-read .card__title { font-size: 1.1rem; }

/* Rescued band */
.band {
  margin-top: var(--block-gap);
  padding: 44px 0 52px;
  background: var(--navy);
  color: var(--on-navy);
  background-image: radial-gradient(120% 140% at 100% 0%, rgba(196, 30, 30, 0.22) 0%, rgba(196, 30, 30, 0) 46%);
}
.band__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.band__title {
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.015em;
}
.band__title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 12px;
  background: var(--red);
}
.band__intro { max-width: 42rem; margin-top: 14px; font-size: 1.04rem; color: var(--on-navy); }
.band .sec-head__more { color: var(--white); }
.band .sec-head__more:hover { color: #ffb4b4; }
.band__grid .card { padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.band__grid .card__title { font-size: 1.28rem; color: var(--white); }
.band__grid .card__title a:hover { color: var(--white); }
.band__grid .card__deck { color: var(--on-navy); font-size: 0.98rem; -webkit-line-clamp: 4; }
.band__grid .meta { color: #96a0c0; }
.band__grid .meta a { color: var(--white); }
@media (min-width: 1100px) {
  .band { padding: 56px 0 64px; }
  .band__title { font-size: 2.8rem; }
}

/* ---------- Page heads ---------- */

.page-head {
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--panel) 0%, var(--white) 100%);
}
.page-head__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.page-head__title {
  margin-top: 8px;
  font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.75rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.04;
}
.page-head__deck { max-width: 44rem; margin-top: 12px; font-size: 1.12rem; color: var(--text); }
.page-head__deck p { margin: 0; }
.page-head__count {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}
.page-head__count span::before { content: "·"; margin-right: 14px; }
.page-head--search .search-form { max-width: 640px; margin-top: 20px; }

/* ---------- Archives ---------- */

.listing { padding: 32px 0 var(--block-gap); }

.arch-top { display: grid; gap: 28px var(--col-gap); }
.card--arch-lead .card__title { font-size: 1.9rem; }
.card--arch-lead.no-media { padding: 32px 28px 28px; }
.card--arch-lead.no-media .card__title { font-size: 2.2rem; }
.arch-top__side .card__title { font-size: 1.2rem; }

@media (min-width: 1000px) {
  .arch-top { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); align-items: start; }
  .arch-top > .card--arch-lead.no-media { align-self: stretch; }
  .arch-top__side { padding-left: var(--col-gap); border-left: 1px solid var(--rule); margin-left: calc(-1 * var(--col-gap) / 2); padding-left: calc(var(--col-gap) / 2); }
  .card--arch-lead .card__title { font-size: 2.4rem; line-height: 1.08; }
  .card--arch-lead.no-media { padding: 48px 44px 40px; }
  .card--arch-lead.no-media .card__title { font-size: 2.85rem; }
  .card--arch-lead .card__deck { font-size: 1.15rem; }
  .card--arch-lead.no-media .card__deck { -webkit-line-clamp: 8; font-size: 1.2rem; line-height: 1.6; }
}

.arch-grid { margin-top: 40px; padding-top: 32px; border-top: 2px solid var(--navy); }

.rows {
  display: grid;
  gap: 0 var(--col-gap);
  margin-top: 40px;
  border-top: 2px solid var(--navy);
  --thumb: 112px;
}
.rows > .card { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.rows .card__title { font-size: 1.18rem; }
@media (min-width: 700px) {
  .rows { --thumb: 200px; }
  .rows .card--row { gap: 24px; }
}
@media (min-width: 1000px) {
  .rows:not(.rows--single) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.rows--single { max-width: 880px; }
.listing--search .rows { margin-top: 8px; border-top: 0; }
.listing--search .rows .card__title { font-size: 1.3rem; }
.rows--single .card__deck { -webkit-line-clamp: 3; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}
.page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  font-weight: 600;
  color: var(--navy);
}
a.page-numbers:hover { border-color: var(--navy); }
.page-numbers.current { background: var(--navy); border-color: var(--navy); color: var(--white); }
.page-numbers.dots { border-color: transparent; }

.empty { margin: 8px 0; font-size: 1.1rem; color: var(--muted); }

/* ---------- Article ---------- */

.article__head { max-width: var(--measure); padding-top: 32px; }
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.crumbs a { color: var(--muted); }
.crumbs a:last-child { color: var(--red); }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs span { color: var(--rule-strong); }

.article__title {
  margin-top: 14px;
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.article__deck {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  line-height: 1.42;
  color: var(--text);
}
.article__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 22px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.article__byline .meta { font-size: 0.92rem; }

.share { display: flex; gap: 8px; }
.share a,
.share button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.share .icon { width: 17px; height: 17px; }
.share a:hover,
.share button:hover,
.share button.is-copied { background: var(--navy); border-color: var(--navy); color: var(--white); }

.share-rail { display: none !important; }

.article__figure { max-width: 1040px; margin-top: 28px; }
.article__figure img { width: 100%; height: auto; }
.article__figure--narrow { max-width: var(--measure); }
.article__figure--narrow img { width: auto; max-height: 80vh; margin-inline: auto; }
.article__figure figcaption {
  margin-top: 10px;
  padding-left: 12px;
  border-left: 3px solid var(--red);
  font-size: 0.9rem;
  color: var(--muted);
}

.prose {
  max-width: var(--measure);
  margin: 32px auto 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.68;
  color: #1b2030;
  overflow-wrap: break-word;
}
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-size: 1.7rem; margin: 1.6em 0 0.5em; line-height: 1.2; }
.prose h3 { font-size: 1.35rem; margin: 1.4em 0 0.4em; }
.prose h4 { font-size: 1.15rem; margin: 1.3em 0 0.4em; }
.prose a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: rgba(196, 30, 30, 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.prose a:hover { color: var(--red); text-decoration-color: currentColor; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose ul,
.prose ol { margin: 0 0 1.15em; padding-left: 1.3rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--red); }
.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 4px solid var(--red);
  font-size: 1.32rem;
  line-height: 1.45;
  color: var(--navy);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.2rem 0; }
.prose img { margin: 1.4em 0; }
.prose figure { margin: 1.6em 0; }
.prose figure img { margin: 0; }
.prose figcaption,
.prose .wp-caption-text { margin-top: 8px; font-family: var(--sans); font-size: 0.88rem; color: var(--muted); }
.prose .wp-caption { max-width: 100%; }
.prose .aligncenter { margin-inline: auto; }
.prose .alignleft { float: left; margin: 0.3em 1.2em 0.6em 0; max-width: 50%; }
.prose .alignright { float: right; margin: 0.3em 0 0.6em 1.2em; max-width: 50%; }
.prose::after { content: ""; display: block; clear: both; }
.prose iframe { width: 100%; }
.prose iframe[src*="youtube"],
.prose iframe[src*="vimeo"] { height: auto; aspect-ratio: 16 / 9; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 0.98rem; }
.prose th,
.prose td { border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; padding: 0.55em 0.6em; }
.prose th { color: var(--ink); background: var(--panel); }

/* Text To Audio plugin player */
.prose .tts_play_button { display: block; margin: 0 0 1.4em; }
.prose .tts__listent_content {
  width: auto;
  height: 40px;
  gap: 10px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  background-color: var(--navy);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 700;
  --tts-hover-bg: var(--red);
}
.prose .tts__listent_content .tts-button-left { display: flex; align-items: center; gap: 8px; }
.prose .tts__listent_content svg { width: 16px; height: 16px; }

.article__foot,
.comments,
#comments,
.wpd-container,
#wpdcom { max-width: var(--measure); margin-inline: auto; }
.article__foot { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--rule); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tags a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--panel);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
}
.tags a:hover { background: var(--navy); color: var(--white); }
.article__share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.article__share > span { font-size: 0.86rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); }

.after-article { margin-top: var(--block-gap); padding-top: 4px; background: linear-gradient(180deg, var(--panel) 0, var(--white) 420px); }
.after-article .block:first-child { margin-top: 44px; }

.ad { margin: 28px 0; text-align: center; }
.ad__label {
  margin-bottom: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Comments */
.comments { margin-top: 44px; }
.comments h2,
#comments .wpd-thread-head { font-size: 1.5rem; color: var(--navy); }
.comment-list { margin: 16px 0; }
.comment-list li { border-top: 1px solid var(--rule); padding: 14px 0; }
.comment-form label { display: block; margin-top: 12px; font-size: 0.9rem; font-weight: 600; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
}
.comment-form textarea { min-height: 8rem; }
.comment-form .submit,
.form-submit .submit {
  margin-top: 12px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 4px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
}
#wpdcom { font-family: var(--sans) !important; }
#wpdcom .wpd-prim-button,
#wpdcom .wc_comm_submit { background: var(--navy) !important; border-radius: 4px !important; }
#wpdcom .wpd-thread-info,
#wpdcom .wpd-thread-filter .wpd-filter.wpd-active { color: var(--navy) !important; border-bottom-color: var(--red) !important; }
#wpdcom .wpd-thread-info .wpdtc { font-family: var(--sans) !important; }
#wpd-bubble-wrapper #wpd-bubble,
#wpd-bubble-wrapper #wpd-bubble-count,
#wpd-bubble-wrapper > div { background-color: var(--navy) !important; }
#wpd-bubble-wrapper #wpd-bubble-count .wpd-new-comments-count { background-color: var(--red) !important; }

/* ---------- Pages ---------- */

.page-copy { padding-bottom: var(--block-gap); }
.page-copy .prose { margin-top: 36px; }
.prose--lead > p:first-child {
  font-size: 1.45rem;
  line-height: 1.45;
  color: var(--navy);
}

.about-band {
  padding: 56px 0 52px;
  background: var(--navy);
  color: var(--on-navy);
  background-image: radial-gradient(110% 160% at 100% 0%, rgba(196, 30, 30, 0.25) 0%, rgba(196, 30, 30, 0) 50%);
}
.about-band__inner { display: grid; gap: 32px; align-items: end; }
.about-band .page-head__eyebrow { color: #ff9b9b; }
.about-band__title {
  margin-top: 10px;
  font-size: clamp(2.8rem, 2rem + 3vw, 4.6rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.about-band__title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 18px;
  background: var(--red);
}
.about-band__facts { display: grid; grid-template-columns: repeat(3, auto); gap: 28px; margin: 0; justify-content: start; }
.about-band__facts div { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, 0.25); }
.about-band__facts dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-navy); }
.about-band__facts dd { margin: 4px 0 0; font-family: var(--serif); font-size: 2.2rem; font-weight: 600; color: var(--white); line-height: 1; }
@media (min-width: 900px) {
  .about-band { padding: 80px 0 72px; }
  .about-band__inner { grid-template-columns: 1fr auto; }
  .about-band__facts { justify-content: end; }
}

.miss { padding: 64px 0 12px; }
.miss > * { max-width: 760px; }
.miss__title {
  margin-top: 10px;
  font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.6rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.miss__deck { margin: 16px 0 24px; font-size: 1.15rem; color: var(--text); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-weight: 700;
  color: var(--navy);
}
.text-link:hover { color: var(--red); }

/* ---------- Footer ---------- */

.site-foot {
  margin-top: 0;
  background: var(--navy-deep);
  color: var(--on-navy);
  border-top: 4px solid var(--red);
}
.foot {
  display: grid;
  gap: 40px var(--col-gap);
  padding: 52px 0 44px;
}
.foot__logo img { width: 170px; height: auto; }
.foot__mission { max-width: 30rem; margin-top: 20px; font-size: 1rem; line-height: 1.6; }
.foot__social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.foot__social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
}
.foot__social .icon { width: 17px; height: 17px; }
.foot__social a:hover { background: var(--white); color: var(--navy); }
.foot__head {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}
.foot__head::after {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-top: 10px;
  background: var(--red);
}
.foot__links { margin-top: 18px; display: grid; gap: 10px; }
.foot__links--two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.foot__links a { font-size: 1rem; color: var(--on-navy); }
.foot__links a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.foot__archive p { margin: 18px 0 16px; font-size: 0.98rem; line-height: 1.55; }
.foot__archive .search-form input[type="search"] { border-color: transparent; }

.foot__legal { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.foot__legal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 22px;
  font-size: 0.88rem;
  color: #97a0be;
}
.foot__top { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--white); }
.foot__top .icon { width: 17px; height: 17px; }
.foot__top:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (min-width: 768px) {
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 64px 0 52px; }
}
@media (min-width: 1100px) {
  .foot { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1.25fr); gap: 56px; }
  .foot__logo img { width: 190px; }
}

/* ---------- Print ---------- */

@media print {
  .mast, .sections, .site-foot, .share, .after-article, .comments, #comments, .ad { display: none !important; }
  .prose { max-width: none; font-size: 12pt; }
}
