/* PVL Newsprint — main stylesheet v1.1.0 */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --newsroom-paper:         #f6f4ef;
  --newsroom-paper-2:       #fbfaf7;
  --newsroom-surface:       #ffffff;
  --newsroom-surface-soft:  #f3f1ec;
  --newsroom-ink:           #1c1c1c;
  --newsroom-muted:         #666157;
  --newsroom-border:        #d8d3c8;
  --newsroom-rule:          #d8d2c5;
  --newsroom-orange:        #e87722;
  --newsroom-sans:          'Inter', Arial, sans-serif;
  --newsroom-serif:         'Merriweather', Georgia, 'Times New Roman', serif;
  --newsroom-max:           1400px;
  --newsroom-gutter:        20px;
  --newsroom-radius:        10px;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; background: var(--newsroom-paper); margin: 0; padding: 0; overflow-x: clip; }
/* Body: Merriweather — all editorial/article content inherits this */
body { margin: 0; padding: 0; font-family: var(--newsroom-serif); font-size: 1rem; line-height: 1.7; color: var(--newsroom-ink); background: var(--newsroom-paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--newsroom-ink); text-decoration: none; }
a:hover { color: var(--newsroom-orange); }
h1,h2,h3,h4,h5,h6 { font-family: var(--newsroom-serif); font-weight: 700; line-height: 1.15; color: var(--newsroom-ink); margin: 0 0 .5em; }

/* UI chrome: Inter
   - Navigation menu (Home, News, Sports…)
   - Article meta line (date, category, author)
   - Section labels above card groups (TOP STORIES, MORE HEADLINES)
   - Sidebar widget titles (Search Archives, Latest E-Edition, About PVL)
   - Buttons, CTAs, form elements
   - Header and footer chrome
*/
nav, .newsroom-nav, .newsroom-nav-list, .newsroom-nav-list a,
button, .button, .wp-block-button,
input, select, textarea,
label,
.newsroom-meta, .newsroom-meta-line, .newsroom-meta-byline,
.newsroom-tag, .newsroom-byline, .newsroom-section-label,
.newsroom-section-head,
.newsroom-card-cta, .newsroom-lead-cta,
.site-header, .site-footer,
.newsroom-sidebar-card h3,
.widget-title, .widgettitle,
.newsroom-topline,
.newsroom-ad-slot { font-family: var(--newsroom-sans); }

/* ============================================================
   TOPLINE BAR — flush to top, minimal padding
   ============================================================ */
.newsroom-topline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 4px var(--newsroom-gutter);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--newsroom-muted);
  border-bottom: 1px solid var(--newsroom-rule);
  background: var(--newsroom-surface);
  box-sizing: border-box;
}
.newsroom-topline-date    { justify-self: start; }
.newsroom-topline-tagline { justify-self: center; text-align: center; text-transform: none; letter-spacing: .02em; font-style: italic; color: #4d4a43; white-space: nowrap; }
.newsroom-topline-tagline::before { content: "\201C"; margin-right: .18em; }
.newsroom-topline-tagline::after  { content: "\201D"; margin-left: .18em; }
.newsroom-topline-cities  { justify-self: end; text-align: right; white-space: nowrap; }

body.admin-bar .newsroom-topline  { margin-top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .newsroom-topline { margin-top: 46px; } }

/* ============================================================
   SITE HEADER — full-width band, content-width inner
   ============================================================ */
.site-header {
  position: relative;
  top: auto;
  z-index: auto;
  width: 100%;
  background: var(--newsroom-surface);
  border-bottom: 0;
  transition: none;
}
body.newsroom-scrolled .site-header { box-shadow: none; }
body.admin-bar .site-header { top: auto; }
@media screen and (max-width: 782px) { body.admin-bar .site-header { top: auto; } }

/* Header inner — pure PHP shortcode controls this */
.newsroom-header-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 24px;
  max-width: var(--newsroom-max);
  margin: 0 auto;
  padding: 16px var(--newsroom-gutter) 8px;
  box-sizing: border-box;
  width: 100%;
}
.newsroom-header-logo-link { flex: 0 0 auto; display: flex; align-items: center; text-decoration: none; font-family: var(--newsroom-serif); font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 900; color: var(--newsroom-ink); letter-spacing: -0.02em; line-height: 1; }
.newsroom-header-logo { height: 100px; width: auto; max-width: none; display: block; transition: height .22s ease; }
.newsroom-header-nav { flex: 1 1 auto; display: flex; justify-content: flex-end; align-items: center; min-width: 0; overflow: visible; }

body.newsroom-scrolled .newsroom-header-logo { height: 44px; }
body.newsroom-scrolled .newsroom-header-inner { padding-top: 3px; padding-bottom: 3px; }


/* RMG-45: center form-page titles */
body.page-id-927 .wp-block-post-title,
body.page-id-1114 .wp-block-post-title,
body.page-id-1117 .wp-block-post-title,
body.page-id-1173 .wp-block-post-title,
body.page-id-653 .wp-block-post-title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Keep Contact page title on one centered line */
body.page-id-653 .wp-block-post-title {
  white-space: nowrap;
}
@media (max-width: 640px) {
  body.page-id-653 .wp-block-post-title {
    white-space: normal;
  }
}

/* Contact + submission page sizing normalization */
body.page-id-653 .wp-block-post-content,
body.page-id-927 .wp-block-post-content,
body.page-id-1114 .wp-block-post-content,
body.page-id-1117 .wp-block-post-content,
body.page-id-1173 .wp-block-post-content {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

body.page-id-653 .wp-block-post-title,
body.page-id-927 .wp-block-post-title,
body.page-id-1114 .wp-block-post-title,
body.page-id-1117 .wp-block-post-title,
body.page-id-1173 .wp-block-post-title {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  line-height: 1.2;
}

body.page-id-653 .fluentform,
body.page-id-927 .fluentform,
body.page-id-1114 .fluentform,
body.page-id-1117 .fluentform,
body.page-id-1173 .fluentform {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 980px) {
  body.page-id-653 .wp-block-post-content,
  body.page-id-927 .wp-block-post-content,
  body.page-id-1114 .wp-block-post-content,
  body.page-id-1117 .wp-block-post-content,
  body.page-id-1173 .wp-block-post-content {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* ============================================================
   NAV (classic wp_nav_menu output)
   ============================================================ */
.newsroom-nav-list {
  display: flex;
  justify-content: flex-end;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}
.newsroom-nav-list li { position: relative; }
.newsroom-nav-list > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 10px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--newsroom-ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s;
}
.newsroom-nav-list > li > a:hover,
.newsroom-nav-list > li.current-menu-item > a { color: var(--newsroom-orange); }
.newsroom-nav-list .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 999;
  min-width: 200px;
  background: var(--newsroom-surface);
  border: 1px solid var(--newsroom-border);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  list-style: none;
  margin: 0;
  padding: 4px 0;
}
.newsroom-nav-list li:hover > .sub-menu { display: block; }
.newsroom-nav-list .sub-menu a {
  display: block;
  padding: 7px 14px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--newsroom-ink);
  text-decoration: none;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: .01em;
}
.newsroom-nav-list .sub-menu a:hover { color: var(--newsroom-orange); }
body.newsroom-scrolled .newsroom-nav-list > li > a { min-height: 30px; padding: 4px 8px; font-size: .9rem; }
/* Nested sub-menus (3rd level) — fly out to the right */
.newsroom-nav-list .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  border-top: none;
}
.newsroom-nav-list .sub-menu li { position: relative; }
.newsroom-nav-list .sub-menu li:hover > .sub-menu { display: block; }

/* Mobile/tablet nav (RMG-19) */
.newsroom-nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  border: 1px solid var(--newsroom-border);
  border-radius: 8px;
  background: var(--newsroom-surface);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.newsroom-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--newsroom-ink);
}

@media (max-width: 1400px) {
  .newsroom-header-inner {
    gap: 12px;
    padding: 10px var(--newsroom-gutter) 8px;
  }
  .newsroom-header-logo { height: 66px; }
  body.newsroom-scrolled .newsroom-header-logo { height: 50px; }

  .newsroom-nav-toggle { display: inline-flex; margin-left: auto; }

  .newsroom-header-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 1px);
    background: var(--newsroom-surface);
    border-top: 1px solid var(--newsroom-border);
    border-bottom: 1px solid var(--newsroom-border);
    box-shadow: 0 10px 20px rgba(0,0,0,.07);
    padding: 8px 0;
    display: none;
    z-index: 1001;
  }
  body.newsroom-mobile-nav-open .newsroom-header-nav { display: block; }

  .newsroom-nav-list {
    display: block;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .newsroom-nav-list > li > a {
    display: block;
    min-height: 0;
    padding: 10px 16px;
    font-size: .95rem;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .newsroom-nav-list .sub-menu,
  .newsroom-nav-list .sub-menu .sub-menu {
    position: static;
    display: none;
    min-width: 0;
    width: 100%;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }
  .newsroom-nav-list li:hover > .sub-menu { display: none; }
  .newsroom-nav-list .sub-menu li:hover > .sub-menu { display: none; }
  .newsroom-nav-list li.is-open > .sub-menu { display: block !important; }
  .newsroom-nav-list > li > .sub-menu { padding-left: 10px; }
  .newsroom-nav-list .sub-menu .sub-menu { padding-left: 10px; }
  .newsroom-nav-list .sub-menu a {
    padding: 8px 12px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .newsroom-submenu-toggle { display: none !important; }
}


/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.newsroom-site-content { background: var(--newsroom-paper-2); }

/* ============================================================
   HOMEPAGE LAYOUT
   ============================================================ */
.newsroom-homepage { margin: 0; padding: 0; }

/* Homepage search bar */
.newsroom-home-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 0 0 16px;
}
.newsroom-home-search-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--newsroom-border);
  border-radius: 10px;
  padding: 10px 12px;
  font: 500 .98rem/1.2 var(--newsroom-sans);
  background: #fff;
}
.newsroom-home-search-submit {
  min-height: 44px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  border-radius: 10px;
  padding: 0 14px;
  font: 700 .9rem/1 var(--newsroom-sans);
  cursor: pointer;
}
.newsroom-home-search-submit:hover { background: #000; }
@media (max-width: 640px) {
  .newsroom-home-search {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .newsroom-home-search-submit {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    font-size: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .newsroom-home-search-submit::before {
    content: "⌕";
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
  }
}

/* Hide sidebar e-edition widgets on mobile */
@media (max-width: 980px) {
  .newsroom-eedition-search-card,
  .newsroom-eedition-latest-card {
    display: none !important;
  }
}

.newsroom-layout {
  max-width: var(--newsroom-max);
  margin: 0 auto;
  padding: 16px var(--newsroom-gutter);
  background: var(--newsroom-paper-2);
  box-sizing: border-box;
}

/* Grid fix — applied via wp_head inline style in functions.php */

/* Meta line */
.newsroom-meta-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--newsroom-muted);
  margin-bottom: 6px;
}

/* Lead story */
/* All body text inside the main content column is Merriweather — no exceptions */
.newsroom-main-column p,
.newsroom-main-column .newsroom-card-excerpt,
.newsroom-main-column .newsroom-lead p { font-family: var(--newsroom-serif); }

.newsroom-lead { background: #fff; border: 1px solid var(--newsroom-border); border-radius: var(--newsroom-radius); padding: 14px; margin-bottom: 20px; }
.newsroom-lead-media {
  display: block;
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 1px solid var(--newsroom-border);
  border-radius: var(--newsroom-radius);
  margin-bottom: 12px;
  background: transparent;
  width: 100%;
}
.newsroom-lead-media img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.newsroom-lead h2 { font-size: clamp(1.75rem, 2.8vw, 2.45rem); line-height: 1.12; margin: .2em 0; }
.newsroom-lead p { font-family: var(--newsroom-serif); font-size: .98rem; line-height: 1.6; color: #2e2e2e; margin: 8px 0 12px; }

/* Section heads */
.newsroom-home-section { margin-bottom: 20px; }
.newsroom-section-head {
  font-size: .875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--newsroom-muted);
  border-bottom: 1px solid var(--newsroom-rule);
  padding-bottom: 6px;
  margin-bottom: 12px;
}

/* ============================================================
   TOP STORIES — 4-card 2×2 grid
   ============================================================ */
.newsroom-top-stories { padding-bottom: 8px; border-bottom: 1px solid var(--newsroom-rule); margin-bottom: 16px; }
.newsroom-top-grid--4 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(120px, auto);
  grid-auto-flow: row;
  gap: 14px;
  align-items: stretch;
}

/* Image card: 1 col wide, 2 rows tall — PHP always emits in pairs */
.newsroom-top-grid--4 .newsroom-card--media {
  grid-column: span 1;
  grid-row: span 2;
  height: 100%;
}

/* Text card: full width (both cols), 1 row tall — compact banner */
.newsroom-top-grid--4 .newsroom-card--text {
  grid-column: span 2;
  grid-row: span 1;
  height: 100%;
}

/* All cards stretch to fill their grid area */
.newsroom-top-grid--4 .newsroom-card {
  height: 100%;
}

/* Force landscape crop on top-grid image cards regardless of original orientation */
.newsroom-top-grid--4 .newsroom-card--media .newsroom-card-media {
  aspect-ratio: 3 / 2;
  max-height: none;
  overflow: hidden;
}
.newsroom-top-grid--4 .newsroom-card--media .newsroom-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%; /* default: landscape source */
}

/* Portrait source: image has more vertical content than the 3/2 crop shows.
   Shift focal point up to favour faces / subjects over torsos / floor. */
.newsroom-top-grid--4 .newsroom-card--media.newsroom-card--img-portrait .newsroom-card-media img {
  object-position: 50% 12%;
}

/* Square source: slight upward bias — usually a headshot or group photo */
.newsroom-top-grid--4 .newsroom-card--media.newsroom-card--img-square .newsroom-card-media img {
  object-position: 50% 18%;
}

/* Landscape source: already wider than crop — center-crop is fine */
.newsroom-top-grid--4 .newsroom-card--media.newsroom-card--img-landscape .newsroom-card-media img {
  object-position: 50% 25%;
}

/* Solo image card (no pair available) — span full width, 1 row tall like a text card
   but keeps image visible. Landscape crop applied at 4/1 ratio for cinematic feel. */
.newsroom-top-grid--4 .newsroom-card--media.newsroom-card--solo {
  grid-column: span 2;
  grid-row: span 1;
  flex-direction: row;
  align-items: stretch;
  min-height: 120px;
}
.newsroom-top-grid--4 .newsroom-card--media.newsroom-card--solo .newsroom-card-media {
  aspect-ratio: auto;
  width: 220px;
  min-width: 220px;
  max-height: none;
  flex-shrink: 0;
}
.newsroom-top-grid--4 .newsroom-card--media.newsroom-card--solo .newsroom-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}
.newsroom-top-grid--4 .newsroom-card--media.newsroom-card--solo .newsroom-card-content {
  flex: 1;
  padding: 12px;
}

/* Text card: horizontal layout — thumbnail left, content right if image exists */
.newsroom-top-grid--4 .newsroom-card--text {
  flex-direction: row;
  align-items: stretch;
  min-height: 80px;
}

/* Cards */
.newsroom-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--newsroom-border); border-radius: var(--newsroom-radius); overflow: hidden; height: auto; }
.newsroom-card-media { display: block; position: relative; overflow: hidden; background: transparent; aspect-ratio: 16/9; max-height: 220px; }
.newsroom-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }

.newsroom-media-caption-bar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  border-radius: 8px;
  pointer-events: none;
}
.newsroom-media-caption-text {
  display: block;
  font: 700 clamp(.82rem, 1.2vw, 1rem)/1.35 var(--newsroom-sans);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.55);
}

.newsroom-card-content { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 12px; }
.newsroom-card h3 { font-size: clamp(1rem, 1.6vw, 1.25rem); line-height: 1.25; margin: 0; }
.newsroom-card-excerpt { font-size: .9rem; color: #323232; line-height: 1.5; margin: 0; }
.newsroom-card--text .newsroom-card-media { display: none; }

/* CTA */
.newsroom-card-cta, .newsroom-lead-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  margin-top: auto;
  align-self: flex-start;
  border: 1px solid var(--newsroom-border);
  background: var(--newsroom-surface-soft);
  color: var(--newsroom-ink);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-decoration: none;
  transition: background .15s;
}
.newsroom-card-cta:hover, .newsroom-lead-cta:hover { background: #ece8de; color: var(--newsroom-ink); }

/* ============================================================
   MORE HEADLINES (briefs)
   ============================================================ */
.newsroom-more-headlines { background: #fff; border: 1px solid var(--newsroom-border); border-radius: var(--newsroom-radius); padding: 12px 14px; margin-bottom: 16px; overflow: hidden; }
.newsroom-brief-item { padding: 10px 10px; border-bottom: 1px dashed var(--newsroom-rule); border-radius: 10px; }
.newsroom-brief-item:last-child { border-bottom: 0; }
.newsroom-brief-item h4 { font-family: var(--newsroom-serif); font-size: 1rem; line-height: 1.25; margin: 4px 0 0; }
.newsroom-brief-item a { color: var(--newsroom-ink); text-decoration: none; }
.newsroom-brief-item a:hover { color: var(--newsroom-orange); }

/* ============================================================
   AD SLOTS
   ============================================================ */
.newsroom-ad-slot { margin: 14px 0; }
.newsroom-ad-tiles { display: grid; gap: 12px; grid-template-columns: 1fr; }
.newsroom-ad-slot.newsroom-ad-target-3 .newsroom-ad-tiles,
.newsroom-ad-slot.newsroom-ad-count-3 .newsroom-ad-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.newsroom-ad-slot.newsroom-ad-count-2 .newsroom-ad-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.newsroom-ad-tile { border: 1px solid var(--newsroom-border); background: var(--newsroom-surface); padding: 10px; display: flex; align-items: center; justify-content: center; min-height: 90px; }
.newsroom-ad-slot--sidebar .newsroom-ad-tile { min-height: 150px; }
.newsroom-ad-slot--mobile { display: none; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.newsroom-sidebar { display: flex; flex-direction: column; gap: 18px; }
.newsroom-sidebar-card { background: var(--newsroom-surface); border: 1px solid var(--newsroom-border); border-radius: var(--newsroom-radius); padding: 18px; }
.newsroom-sidebar-title { font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--newsroom-rule); padding-bottom: 8px; margin-bottom: 12px; }

/* ============================================================
   SINGLE ARTICLE
   ============================================================ */
.newsroom-article-wrap {
  max-width: var(--newsroom-max);
  margin: 0 auto;
  padding: 20px var(--newsroom-gutter);
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px;
  box-sizing: border-box;
}
.newsroom-article { background: var(--newsroom-surface); border: 1px solid var(--newsroom-border); padding: 24px; }
.newsroom-article h1.entry-title { font-family: var(--newsroom-serif); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.12; margin-bottom: .3em; }
.newsroom-article .entry-content p { font-family: var(--newsroom-serif); font-size: 1.05rem; line-height: 1.8; }
.newsroom-article .entry-content h2,
.newsroom-article .entry-content h3,
.newsroom-article .entry-content h4,
.newsroom-article .entry-content .wp-block-heading { font-family: var(--newsroom-serif); }

/* ============================================================
   ARCHIVE
   ============================================================ */
.newsroom-archive-wrap {
  max-width: var(--newsroom-max);
  margin: 0 auto;
  padding: 20px var(--newsroom-gutter);
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px;
  box-sizing: border-box;
}
.newsroom-archive-grid { column-count: 3; column-gap: 16px; }
.newsroom-archive-grid.newsroom-js-masonry-active {
  column-count: initial !important;
  column-gap: 0 !important;
  display: block !important;
}
.newsroom-archive-grid .newsroom-archive-card {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
  vertical-align: top;
}
.newsroom-archive-grid.newsroom-js-masonry-active .newsroom-archive-card {
  display: block;
  margin: 0;
}
@media (max-width: 1280px) {
  .newsroom-archive-grid { column-count: 2; }
}

/* RMG-39: News category should use full content width (no sidebar column). */
body.category .newsroom-archive-wrap,
body.post-type-archive-news_article .newsroom-archive-wrap,
body.tag .newsroom-archive-wrap,
body.tax .newsroom-archive-wrap {
  grid-template-columns: 1fr;
}
body.category .newsroom-archive-wrap .newsroom-sidebar,
body.post-type-archive-news_article .newsroom-archive-wrap .newsroom-sidebar,
body.tag .newsroom-archive-wrap .newsroom-sidebar,
body.tax .newsroom-archive-wrap .newsroom-sidebar {
  display: none;
}
body.category .newsroom-pagination,
body.post-type-archive-news_article .newsroom-pagination,
body.tag .newsroom-pagination,
body.tax .newsroom-pagination {
  display: none !important;
}

/* Remove wpautop artifacts that render as empty grid slots. */
body.category .newsroom-archive-grid > p,
body.category .newsroom-archive-grid > br,
body.category .newsroom-main-column > p:empty,
body.category .newsroom-archive-wrap > p:empty,
body.post-type-archive-news_article .newsroom-archive-grid > p,
body.post-type-archive-news_article .newsroom-archive-grid > br,
body.post-type-archive-news_article .newsroom-main-column > p:empty,
body.post-type-archive-news_article .newsroom-archive-wrap > p:empty,
body.tag .newsroom-archive-grid > p,
body.tag .newsroom-archive-grid > br,
body.tag .newsroom-main-column > p:empty,
body.tag .newsroom-archive-wrap > p:empty,
body.tax .newsroom-archive-grid > p,
body.tax .newsroom-archive-grid > br,
body.tax .newsroom-main-column > p:empty,
body.tax .newsroom-archive-wrap > p:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
}

.newsroom-lazy-sentinel { display: flex; justify-content: center; padding: 18px 0 8px; }
.newsroom-lazy-status { font-size: .82rem; color: #666157; background: #fff; border: 1px solid var(--newsroom-border); border-radius: 999px; padding: 6px 12px; }
.newsroom-lazy-sentinel.is-loading .newsroom-lazy-status { opacity: .85; }
.newsroom-archive-card.newsroom-card-enter {
  animation: pvlCardIn .22s ease-out;
}
@keyframes pvlCardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.newsroom-archive-card { background: var(--newsroom-surface); border: 1px solid var(--newsroom-border); border-radius: var(--newsroom-radius); overflow: hidden; padding: 14px; }
.newsroom-archive-card h2 { font-family: var(--newsroom-serif); font-size: 1.15rem; line-height: 1.25; margin: 6px 0 4px; }
.newsroom-archive-card .newsroom-excerpt { font-size: .92rem; color: #333; }
.newsroom-archive-card > a { display: block; border-radius: var(--newsroom-radius); overflow: hidden; }
.newsroom-archive-card > a img { width: 100%; height: auto; display: block; border-radius: var(--newsroom-radius); }
.newsroom-archive-card .newsroom-card-cta { margin-top: 10px; }

/* ============================================================
   FOOTER — true full-width
   ============================================================ */
.site-footer { background: #000; color: #fff; margin: 0; padding: 0; width: 100%; }
.newsroom-footer-shell { width: 100%; background: #000; padding: 36px 0 0; margin: 0; box-sizing: border-box; }
.newsroom-footer-shell, .newsroom-footer-shell * { color: #fff !important; }
.newsroom-footer-shell a { text-decoration: none; }
.newsroom-footer-shell a:hover { text-decoration: underline; }

.newsroom-footer-top,
.newsroom-footer-otherpapers,
.newsroom-footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.newsroom-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid #242424;
}
.newsroom-footer-brandline { display: flex; align-items: flex-end; gap: 14px; }
.newsroom-footer-logo { max-height: 100px; width: auto; filter: brightness(0) invert(1); }
.newsroom-footer-brandtext { display: flex; flex-direction: column; gap: 3px; }
.newsroom-footer-tag { margin: 0; font-size: .96rem; color: #d7d7d7 !important; }
.newsroom-footer-community-inline { margin: 0; font-size: .92rem; color: #d7d7d7 !important; }
.newsroom-footer-community-inline span { opacity: .6; padding: 0 5px; }

/* Footer nav — 2-column grid in rounded box */
.newsroom-footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 8px 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 14px 16px;
  min-width: 260px;
  box-sizing: border-box;
}
.newsroom-footer-nav a { font-weight: 700; font-size: 1rem; line-height: 1.25; display: block; }
.newsroom-footer-nav a[aria-disabled="true"] { opacity: .7; }

.newsroom-footer-otherpapers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: .9rem;
  color: #d7d7d7 !important;
  padding-top: 4px;
  padding-bottom: 8px;
}
.newsroom-footer-otherpapers a { font-weight: 600; display: inline; }
.newsroom-footer-otherpapers span { opacity: .6; }

.newsroom-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 18px;
  border-top: 1px solid #242424;
  margin-top: 8px;
}
.newsroom-footer-legal { margin: 0; font-size: .88rem; color: #d7d7d7 !important; line-height: 1.4; }
.newsroom-footer-powered { margin: 0; font-size: .92rem; display: flex; align-items: center; gap: 6px; }
.newsroom-powered-prefix { font-size: 1rem; color: #d7d7d7 !important; }
.newsroom-powered-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.newsroom-gp-logo { height: 22px; width: auto; display: inline-block; vertical-align: middle; }
.newsroom-powered-wordmark { font-weight: 700; letter-spacing: .01em; }

/* ============================================================
   EEDITION SIDEBAR WIDGETS
   ============================================================ */
.newsroom-eedition-search-card h3, .newsroom-eedition-latest-card h3 { text-align: left; margin-bottom: 8px; }
.newsroom-eedition-search-card .newsroom-eedition-search { margin: 0; display: flex; gap: 6px; align-items: center; }
.newsroom-eedition-search-card .newsroom-eedition-search input[type="search"] { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid #c9c9c9; border-radius: 8px; font-size: .86rem; }
.newsroom-eedition-search-card .newsroom-eedition-search button { padding: 8px 10px; border: 1px solid #111; background: #111; color: #fff; border-radius: 8px; font-weight: 700; cursor: pointer; }
.newsroom-eedition-latest-card { text-align: center; }
.newsroom-eedition-latest-card .newsroom-eedition-latest-cover { display: block; margin: 0 auto 8px; max-width: 240px; }
.newsroom-eedition-latest-card .newsroom-eedition-latest-cover img { display: block; margin: 0 auto; width: 100%; height: auto; border-radius: 8px; }
.newsroom-eedition-latest-card h3 { text-align: left !important; }
.newsroom-eedition-latest-card .newsroom-eedition-date { text-align: center !important; margin: 0 0 8px; }
.newsroom-eedition-latest-card .newsroom-card-cta { display: inline-flex; margin: 8px auto 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .newsroom-layout, .newsroom-article-wrap, .newsroom-archive-wrap { padding: 12px 14px; }
  .newsroom-topline { display: none; }
  .newsroom-topline-date, .newsroom-topline-tagline, .newsroom-topline-cities { display: none !important; }
  .newsroom-lead-media { width: 100%; aspect-ratio: 16/10; }
  .newsroom-top-grid--4 {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    grid-auto-flow: row;
  }
  .newsroom-top-grid--4 .newsroom-card--media,
  .newsroom-top-grid--4 .newsroom-card--text {
    grid-column: span 1;
    grid-row: span 1;
    height: auto;
  }
  .newsroom-archive-grid { column-count: 1; }
  .newsroom-ad-slot--sidebar { display: none; }
  .newsroom-ad-slot--mobile { display: block; }
  .newsroom-ad-slot .newsroom-ad-tiles,
  .newsroom-ad-slot.newsroom-ad-count-2 .newsroom-ad-tiles,
  .newsroom-ad-slot.newsroom-ad-count-3 .newsroom-ad-tiles { grid-template-columns: 1fr; }
  .newsroom-footer-top { flex-direction: column; align-items: flex-start; gap: 14px; }
  .newsroom-footer-nav { grid-template-columns: repeat(2, minmax(110px, 1fr)); width: 100%; }
  .newsroom-footer-bottom { flex-direction: column; align-items: flex-start; }
  .newsroom-article-wrap, .newsroom-archive-wrap { grid-template-columns: 1fr; }
  .newsroom-media-caption-bar { left: 6px; right: 6px; bottom: 6px; padding: 8px 10px; border-radius: 6px; }
  .newsroom-media-caption-text { font-size: .82rem; }
}

/* v1.1.1: footer full-width + balanced top row */
.wp-block-template-part:has(.site-footer),
.wp-block-template-part:last-child {
  width: 100% !important;
  max-width: 100% !important;
}
.newsroom-footer-top {
  align-items: center !important;
}
.newsroom-footer-brandline {
  flex: 1 1 auto;
  min-width: 0;
  align-items: center !important;
}
.newsroom-footer-nav {
  flex: 0 0 auto;
  width: auto;
  min-width: 280px;
  max-width: 340px;
}

/* v1.1.2: footer nav wider columns, tighter text */
.newsroom-footer-nav {
  max-width: 420px !important;
  min-width: 320px !important;
  grid-template-columns: repeat(2, minmax(140px, 1fr)) !important;
}
.newsroom-footer-nav a {
  font-size: .88rem !important;
  white-space: nowrap;
}

/* v1.1.3: suppress wpautop <br> tags inside footer nav grid */
.newsroom-footer-nav br { display: none !important; }

/* v1.1.4: fix sticky — apply to outer wp-block-template-part wrapper, not inner group */
header.wp-block-template-part {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  background: var(--newsroom-surface) !important;
  border-bottom: 3px double var(--newsroom-ink) !important;
  width: 100% !important;
  transition: box-shadow .22s ease;
}
body.newsroom-scrolled header.wp-block-template-part {
  box-shadow: 0 6px 20px rgba(0,0,0,.1) !important;
}
/* Inner group no longer needs sticky */
header.wp-block-template-part .site-header {
  position: static !important;
  border-bottom: none !important;
  box-shadow: none !important;
}
/* Admin bar offset on the outer wrapper */
body.admin-bar header.wp-block-template-part { top: 32px !important; }
@media screen and (max-width: 782px) {
  body.admin-bar header.wp-block-template-part { top: 46px !important; }
}
/* Sidebar sticky top should match */
aside.newsroom-sidebar { top: 60px !important; }

/* v1.1.5: paper-white warm background palette */
:root {
  --newsroom-paper:        #faf8f3;
  --newsroom-paper-2:      #faf8f3;
  --newsroom-surface:      #ffffff;
  --newsroom-surface-soft: #f5f3ec;
}
html, body { background: var(--newsroom-paper) !important; }
.newsroom-site-content,
.newsroom-layout,
.newsroom-homepage { background: var(--newsroom-paper) !important; }
/* cards stay white */
.newsroom-card, .newsroom-article, .newsroom-sidebar-card,
.newsroom-more-headlines, .newsroom-archive-card { background: #ffffff !important; }

/* v1.1.6: topline paperwhite, header white, content paperwhite */
.newsroom-topline {
  background: #faf8f3 !important;
  border-bottom: 1px solid var(--newsroom-rule) !important;
}
header.wp-block-template-part,
.site-header,
.newsroom-header-inner {
  background: #ffffff !important;
}

/* ============================================================
   E-EDITION MAGAZINE RACK (RMG-20)
   ============================================================ */
.newsroom-eedition-archive-wrap {
  max-width: var(--newsroom-max);
  margin: 0 auto;
  padding: 24px var(--newsroom-gutter);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 6px 24px;
  align-items: start;
}
.newsroom-eedition-archive-wrap .newsroom-eedition-rack-title { grid-column: 1 / -1; }
.newsroom-eedition-archive-wrap .newsroom-eedition-search-top { grid-column: 1 / -1; }
.newsroom-eedition-archive-wrap .newsroom-eedition-filters { grid-column: 1; grid-row: 3; position: sticky; top: 90px; }
.newsroom-eedition-archive-wrap .newsroom-eedition-rack { grid-column: 2; grid-row: 3; }
.newsroom-eedition-rack-title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--newsroom-ink);
  padding-bottom: 10px;
}
.newsroom-eedition-search-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 0 0 6px;
}
.newsroom-eedition-quicksearch {
  margin: 0;
  display: flex;
  gap: 6px;
  align-items: center;
}
.newsroom-eedition-quicksearch input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 8px 10px;
  border: 1px solid #c9c9c9;
  border-radius: 8px;
  font-size: .86rem;
  background: #fff;
}
.newsroom-eedition-quicksearch button {
  height: 38px;
  padding: 8px 12px;
  border: 1px solid #111;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.newsroom-eedition-filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-items: end;
  margin: 0;
  padding: 8px 10px 10px;
  background: #fff;
  border: 1px solid var(--newsroom-border);
  border-radius: 10px;
}
.newsroom-eedition-filters label { display: grid; grid-template-columns: 68px 1fr; gap: 8px; align-items: center; }
.newsroom-ee-filter-row { display: grid; grid-template-columns: 68px 1fr; gap: 8px; align-items: center; }
.newsroom-eedition-filters label span { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #666157; line-height: 1; white-space: nowrap; }
.newsroom-eedition-filters input[type="date"] { height: 34px; border: 1px solid var(--newsroom-border); border-radius: 8px; padding: 0 9px; background: #fff; font-size: .8rem; }
.newsroom-eedition-filter-actions { display: flex; gap: 8px; align-items: center; justify-content: center; padding-top: 6px; }
.newsroom-eedition-filter-actions button,
.newsroom-eedition-filter-actions a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 34px; padding: 0 10px; border-radius: 8px; text-decoration: none;
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.newsroom-eedition-filter-actions button { border: 1px solid #111; background: #111; color: #fff; cursor: pointer; }
.newsroom-eedition-filter-actions a { border: 1px solid var(--newsroom-border); background: #fff; color: #111; }
.newsroom-eedition-filter-summary { margin: 2px 0 0; font-size: .85rem; color: #666157; white-space: nowrap; }
.newsroom-eedition-quicksearch br,
.newsroom-eedition-filters br,
.newsroom-eedition-filter-actions br { display: none !important; }
.newsroom-eedition-rack {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  align-items: start;
}
.newsroom-eedition-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--newsroom-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  text-decoration: none;
  color: var(--newsroom-ink);
  transition: transform .18s ease, box-shadow .18s ease;
}
.newsroom-eedition-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  color: var(--newsroom-ink);
  text-decoration: none;
}
.newsroom-eedition-cover {
  aspect-ratio: 11 / 17;
  background: #f4f4f4;
  overflow: hidden;
  width: 100%;
  flex-shrink: 0;
}
.newsroom-eedition-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.newsroom-eedition-cover--fallback { background: #ece7dc; padding: 12px; }
.newsroom-eedition-no-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
  font-weight: 700;
  color: var(--newsroom-muted);
  font-size: .78rem;
  line-height: 1.3;
  padding: 8px 10px 10px;
}
.newsroom-eedition-meta {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--newsroom-border);
}
.newsroom-eedition-meta h3 {
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 4px;
  color: var(--newsroom-ink);
}
.newsroom-eedition-meta p {
  margin: 0;
  font-size: .78rem;
  color: var(--newsroom-muted);
}
.newsroom-eedition-hit {
  margin-top: 6px !important;
  font-size: .78rem !important;
  line-height: 1.35;
  color: #4a453e !important;
}
.newsroom-eedition-hit mark {
  background: #ffe18a;
  color: #1c1c1c;
  padding: 0 2px;
}
.newsroom-eedition-hit--title {
  font-style: italic;
  color: #6e675d !important;
}
@media (max-width: 980px) {
  .newsroom-eedition-archive-wrap { grid-template-columns: 1fr; }
  .newsroom-eedition-archive-wrap .newsroom-eedition-search-top,
  .newsroom-eedition-archive-wrap .newsroom-eedition-filters,
  .newsroom-eedition-archive-wrap .newsroom-eedition-rack { grid-column: 1; grid-row: auto; }
  .newsroom-eedition-archive-wrap .newsroom-eedition-filters { position: static; }
  .newsroom-eedition-search-top { grid-template-columns: 1fr; }
  .newsroom-eedition-rack { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
}
@media (max-width: 600px) {
  .newsroom-eedition-rack { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (max-width: 980px) {
  .newsroom-eedition-quicksearch,
  .newsroom-eedition-search-card .newsroom-eedition-search {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
  }

  .newsroom-eedition-quicksearch button,
  .newsroom-eedition-search-card .newsroom-eedition-search button {
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
    font-size: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .newsroom-eedition-quicksearch button::before,
  .newsroom-eedition-search-card .newsroom-eedition-search button::before {
    content: "⌕";
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
  }
}

/* RMG-20 v2 overrides consolidated into base rules above */

/* Meta — date first, large; title smaller below */
.newsroom-eedition-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px 12px !important;
  flex: 1;
}
.newsroom-eedition-meta .newsroom-eedition-date {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--newsroom-ink) !important;
  margin: 0 !important;
  order: 1;
}
.newsroom-eedition-meta h3 {
  font-size: .75rem !important;
  font-weight: 400 !important;
  color: var(--newsroom-muted) !important;
  margin: 0 !important;
  order: 2;
}

/* Full sticky header on e-edition page (matches homepage) */
header.newsroom-full-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  background: #ffffff !important;
  border-bottom: 3px double var(--newsroom-ink) !important;
  width: 100% !important;
  box-shadow: none;
  transition: box-shadow .22s ease;
}
body.newsroom-scrolled header.newsroom-full-header {
  box-shadow: 0 6px 20px rgba(0,0,0,.1) !important;
}
body.admin-bar header.newsroom-full-header { top: 32px !important; }
@media screen and (max-width: 782px) {
  body.admin-bar header.newsroom-full-header { top: 46px !important; }
}

/* RMG-20 v3: e-edition page header — white band + logo size match homepage */
header.newsroom-full-header { background: #ffffff !important; }
header.newsroom-full-header .newsroom-header-logo { height: 100px !important; }
body.newsroom-scrolled header.newsroom-full-header .newsroom-header-logo { height: 44px !important; }


/* ============================================================
   SEARCH RESULTS — compact horizontal card
   ============================================================ */
.newsroom-search-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsroom-search-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  padding: 0;
  min-height: 200px;
  background: #fff;
  border: 1px solid var(--newsroom-border, #e2e2e2);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  text-decoration: none;
  color: var(--newsroom-ink, #111);
  overflow: hidden;
}

/* Search card image container — flush fill, no gaps */
.newsroom-search-card-media {
  flex: 0 0 130px;
  width: 130px;
  min-width: 130px;
  align-self: stretch;
  display: block;
  text-decoration: none;
  overflow: hidden;
  border-radius: 0;
  background: #e8e4de;
  position: relative;
}

/* All images inside search card media: absolute fill */
.newsroom-search-card-media img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: top center !important;
  display: block !important;
  border-radius: 0 !important;
  aspect-ratio: unset !important;
}

.newsroom-search-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
}

.newsroom-search-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  color: var(--newsroom-muted, #666);
  flex-wrap: wrap;
}

.newsroom-search-type {
  font-weight: 700;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 2px 6px;
  border-radius: 3px;
  background: #f0f0f0;
  color: #444;
}

.newsroom-search-type--issue {
  background: #e8f0fb;
  color: #1a4b9e;
}

.newsroom-search-card-title {
  font-size: .95rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.newsroom-search-card-title a {
  color: var(--newsroom-ink, #111);
  text-decoration: none;
}

.newsroom-search-card-title a:hover {
  text-decoration: underline;
}

.newsroom-search-card-excerpt {
  font-size: .82rem;
  color: var(--newsroom-muted, #555);
  margin: 0;
  line-height: 1.45;
  /* clamp to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 480px) {
  .newsroom-search-card {
    flex-direction: row; /* keep horizontal even on mobile — image stays small */
    gap: 10px;
  }
  .newsroom-search-card-media {
    flex: 0 0 90px;
    width: 90px;
  }
  .newsroom-search-card-media img {
    width: 90px !important;
  }
}
/* News article image placeholder (no featured image) */
.newsroom-search-card-media--placeholder {
  flex: 0 0 130px;
  width: 130px;
  align-self: stretch;
  background: #e8e4de;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
  color: #bbb;
  font-size: 2rem;
}
.newsroom-search-card-media--placeholder::after {
  content: '📰';
  font-size: 2rem;
  line-height: 1;
}

/* Kill wpautop-injected empty <p> tags inside eedition cards and rack */
.newsroom-eedition-rack > p,
.newsroom-eedition-card > p:empty,
.newsroom-eedition-archive-wrap > p:empty,
.newsroom-site-content > p:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
}

/* Kill any stray <p> inside eedition card anchor (wpautop artifact) */
.newsroom-eedition-card > p {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  line-height: 0 !important;
}

.newsroom-lead-media img, .newsroom-card-media img { display: block; }

/* Remove wpautop-injected <br> inside media anchors that creates top gap */
.newsroom-lead-media > br,
.newsroom-card-media > br,
.newsroom-sports-lead-media > br {
  display: none !important;
}

/* Align top-story cards (2-5) with lead card visual breathing room */
.newsroom-top-grid--4 .newsroom-card {
  padding: 8px 10px 10px;
}
.newsroom-top-grid--4 .newsroom-card .newsroom-card-content {
  padding: 12px 4px 4px;
}

/* Match card 1 media corner radius on cards 2-5 */
.newsroom-top-grid--4 .newsroom-card-media {
  border-radius: var(--newsroom-radius);
}

/* Single article featured image: portrait-safe framing */
.single-news_article .newsroom-article .newsroom-lead-media {
  aspect-ratio: auto;
  max-height: 760px;
  background: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.single-news_article .newsroom-article .newsroom-lead-media img {
  width: 100%;
  height: auto;
  max-height: 760px;
  object-fit: contain;
  object-position: center top;
}

/* Homepage photo framing tune: less aggressive crop + face-biased focal area */
.newsroom-homepage .newsroom-lead-media,
.newsroom-homepage .newsroom-card-media {
  aspect-ratio: 4 / 3;
}
.newsroom-homepage .newsroom-lead-media img,
.newsroom-homepage .newsroom-card-media img {
  object-fit: cover;
  object-position: 50% 22%;
}

/* Top-grid image cards override: force landscape 3/2 crop (overrides 4/3 above) */
.newsroom-homepage .newsroom-top-grid--4 .newsroom-card--media .newsroom-card-media {
  aspect-ratio: 3 / 2;
}
.newsroom-homepage .newsroom-top-grid--4 .newsroom-card--media .newsroom-card-media img {
  object-position: 50% 25%;
}

/* Tighten metadata-to-image spacing on homepage cards (2-5) */
.newsroom-homepage .newsroom-top-grid--4 .newsroom-card .newsroom-card-content {
  padding-top: 6px !important;
}
.newsroom-homepage .newsroom-top-grid--4 .newsroom-card .newsroom-meta-line {
  margin-top: 0 !important;
  margin-bottom: 4px !important;
}

/* Extra-tight metadata spacing under card images (2-5) */
.newsroom-homepage .newsroom-top-grid--4 .newsroom-card .newsroom-card-content {
  padding-top: 2px !important;
  gap: 4px !important;
}
.newsroom-homepage .newsroom-top-grid--4 .newsroom-card .newsroom-meta-line {
  margin: 0 0 2px 0 !important;
  line-height: 1.1 !important;
}

/* Fix real gap source: wpautop <p> wrapper after card image anchors */
.newsroom-homepage .newsroom-top-grid--4 .newsroom-card > p {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}
.newsroom-homepage .newsroom-top-grid--4 .newsroom-card .newsroom-card-content {
  margin-top: 0 !important;
  padding-top: 2px !important;
}

/* RMG-40: Contact page styling */
.newsroom-contact-page {
  padding: 20px 0 56px;
}
.newsroom-contact-page .newsroom-contact-title {
  text-align: center;
  margin-bottom: 8px;
}
.newsroom-contact-page .newsroom-contact-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 20px;
  color: var(--newsroom-muted);
}
.newsroom-contact-page .newsroom-contact-cards {
  gap: 18px;
  margin-bottom: 20px;
}
.newsroom-contact-page .newsroom-contact-card {
  background: var(--newsroom-surface);
  border: 1px solid var(--newsroom-border);
  border-radius: 10px;
  padding: 16px;
  height: 100%;
}
.newsroom-contact-page .newsroom-contact-table {
  margin-top: 8px;
}
.newsroom-contact-page .newsroom-contact-table table {
  background: var(--newsroom-surface);
  border: 1px solid var(--newsroom-border);
}
.newsroom-contact-page .newsroom-contact-table th {
  font-family: var(--newsroom-sans);
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.newsroom-contact-page .newsroom-contact-footnote {
  margin-top: 18px;
  font-size: .9rem;
  color: var(--newsroom-muted);
}
@media (max-width: 781px) {
  .newsroom-contact-page {
    padding: 12px 0 40px;
  }
  .newsroom-contact-page .newsroom-contact-card {
    padding: 14px;
  }
  .newsroom-contact-page .newsroom-contact-table {
    overflow-x: visible;
  }
  .newsroom-contact-page .newsroom-contact-table table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }
  .newsroom-contact-page .newsroom-contact-table th,
  .newsroom-contact-page .newsroom-contact-table td {
    font-size: .76rem;
    padding: 7px 8px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}

/* RMG-41: Back to Top */
.newsroom-back-to-top {
  position: fixed;
  right: 18px;
  left: auto;
  bottom: 18px;
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  max-width: max-content;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(28,28,28,.88);
  color: #fff;
  padding: 10px 12px;
  border-radius: 999px;
  font: 700 .85rem/1 var(--newsroom-sans);
  letter-spacing: .02em;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, background-color .15s ease;
}
.newsroom-back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.newsroom-back-to-top:hover {
  background: rgba(0,0,0,.94);
}

@media (max-width: 640px) {
  .newsroom-back-to-top {
    right: 6px;
    left: auto;
    bottom: 16px;
    transform: translateY(8px);
    width: auto;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: .68rem;
    line-height: 1;
  }
  .newsroom-back-to-top::before {
    content: none;
  }
  .newsroom-back-to-top.is-visible {
    transform: translateY(0);
  }
}

/* RMG-51 follow-up: preserve original image orientation on SINGLE article only */
.single-news_article .newsroom-article .newsroom-lead-media {
  aspect-ratio: auto !important;
  max-height: 760px !important;
}

.single-news_article .newsroom-article .newsroom-lead-media img {
  width: 100% !important;
  height: auto !important;
  max-height: 760px !important;
  object-fit: contain !important;
  object-position: center top !important;
}

/* Archive/category/obits orientation restore (keep homepage crop behavior) */
body.category .newsroom-card-media,
body.archive .newsroom-card-media,
body.search .newsroom-card-media,
body.blog .newsroom-card-media,
body.home:not(.newsroom-homepage) .newsroom-card-media {
  aspect-ratio: auto !important;
  max-height: none !important;
}

body.category .newsroom-card-media img,
body.archive .newsroom-card-media img,
body.search .newsroom-card-media img,
body.blog .newsroom-card-media img,
body.home:not(.newsroom-homepage) .newsroom-card-media img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center top !important;
}

/* RMG-51 HOME ONLY: force uniform image box sizes regardless of source orientation */
.newsroom-homepage .newsroom-lead-media,
.newsroom-homepage .newsroom-card-media,
.newsroom-homepage .newsroom-top-grid--4 .newsroom-card--media .newsroom-card-media {
  aspect-ratio: 3 / 2 !important;
  max-height: none !important;
  overflow: hidden !important;
}

.newsroom-homepage .newsroom-lead-media img,
.newsroom-homepage .newsroom-card-media img,
.newsroom-homepage .newsroom-top-grid--4 .newsroom-card--media .newsroom-card-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top;
}


/* RMG-55: slight breathing room between card image and meta line */
.newsroom-card-content .newsroom-meta-line {
  margin-top: 3px;
}
