/*
Theme Name: Fox News Style
Theme URI: https://wai-y.io
Author: Wai-Y
Author URI: https://wai-y.io
Description: Pixel-perfect cable news layout with hero zone, kicker overlays, badge pills, trending bar, and continuous 3-column article grid.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: waiy-foxnews
*/

/* ===== CSS VARIABLES ===== */
:root {
  --wy-primary: #003366;
  --wy-primary-dark: #002244;
  --wy-accent: #d92228;
  --wy-accent-hover: #b51d20;
  --wy-bg: #ffffff;
  --wy-bg-alt: #f5f5f5;
  --wy-text: #333333;
  --wy-text-muted: #666666;
  --wy-border: #e0e0e0;
  --wy-header-bg: #003366;
  --wy-header-text: #ffffff;
  --wy-stock-positive: #1a8b38;
  --wy-font-heading: 'Playfair Display', Georgia, serif;
  --wy-font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --wy-font-nav: 'Open Sans', 'Roboto', sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--wy-font-body);
  color: var(--wy-text);
  background: var(--wy-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }

/* ===== SITE HEADER (sticky, dark) ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-row-upper {
  background-color: var(--wy-header-bg);
  min-height: 80px;
  display: flex;
  align-items: center;
  padding: 0 16px;
}
.nav-row-upper .inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}
.nav-logo {
  flex-shrink: 0;
  margin-right: 16px;
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  width: auto;
}
.nav-logo-box img {
  display: block;
  height: 100%;
  width: auto;
  object-fit: contain;
}
.nav-logo-text {
  font-family: var(--wy-font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  min-width: max-content;
  padding: 5px 12px;
  font-family: var(--wy-font-nav);
  font-weight: 900;
  font-size: 14px;
  line-height: normal;
  letter-spacing: -.25px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.95);
  white-space: nowrap;
  transition: opacity .15s;
}
.nav-links a:hover { opacity: .8; text-decoration: none; }
.nav-links .current-menu-item a,
.nav-links .current_page_item a,
.nav-links .current-cat a {
  border-bottom: 3px solid var(--wy-accent);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Trending bar */
.nav-row-lower {
  background-color: var(--wy-bg);
  height: 40px;
  line-height: 40px;
  border-bottom: 1px solid var(--wy-border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 14px;
}
.nav-row-lower .inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}
.trending-label {
  color: var(--wy-accent);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: -.25px;
  margin-right: 12px;
  white-space: nowrap;
}
.trending-items {
  display: flex;
  gap: 0;
  overflow: hidden;
}
.trending-items a {
  font-weight: 900;
  font-size: 13px;
  letter-spacing: -.25px;
  color: var(--wy-text);
  padding: 0 12px;
  white-space: nowrap;
  border-left: 1px solid var(--wy-border);
}
.trending-items a:first-child { border-left: none; }
.trending-items a:hover { color: var(--wy-accent); text-decoration: none; }

/* ===== PAGE LAYOUT ===== */
.page-wrap {
  width: auto;
  margin: 0 16px;
}
.region-content-sidebar {
  display: flex;
  flex-direction: column;
  max-width: 1440px;
  margin: 0 auto;
}
.main-content-primary {
  flex: 1;
  min-width: 0;
}
.sidebar {
  display: none;
  flex-direction: column;
  flex: 0 0 300px;
  margin: 0 0 24px 16px;
  padding-top: 0;
}

/* ===== BIG-TOP (HERO) ===== */
.big-top {
  margin-bottom: 16px;
  border-bottom: 1px solid var(--wy-border);
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}
.big-top .article {
  display: grid;
  grid-template-areas: "story-image" "info" "relateds";
}
.big-top .m {
  grid-area: story-image;
  position: relative;
  overflow: hidden;
}
.big-top .m img {
  display: block;
  width: 100%;
  height: auto;
}
.big-top .pill {
  display: inline-block;
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--wy-accent);
  color: #fff;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 900;
  line-height: 14px;
  padding: 4px 8px;
  z-index: 2;
}
.big-top .info {
  grid-area: info;
  padding: 16px 0;
}
.big-top .eyebrow {
  display: inline-block;
  color: var(--wy-accent);
  font-size: 11px;
  font-weight: 900;
  line-height: 18px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.big-top .title {
  font-family: var(--wy-font-heading);
  font-size: 28px;
  line-height: 32px;
  font-weight: 900;
  letter-spacing: -.5px;
  margin-bottom: 10px;
  color: var(--wy-primary);
  word-break: break-word;
}
.big-top .title a { color: inherit; }
.big-top .title a:hover { text-decoration: underline; }
.big-top .dek {
  color: var(--wy-text-muted);
  font-size: 16px;
  line-height: 22px;
  letter-spacing: -.25px;
  font-weight: 400;
}
.big-top .relateds {
  grid-area: relateds;
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--wy-border);
}
.big-top .relateds .related-item {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--wy-accent);
}
.big-top .relateds .bullet {
  color: var(--wy-accent);
  font-size: 8px;
  line-height: 1.8;
  flex-shrink: 0;
}
.big-top .relateds a { color: var(--wy-accent); }
.big-top .relateds a:hover { text-decoration: underline; }

/* ===== COLLECTION SECTIONS ===== */
.collection {
  margin-bottom: 24px;
}
.collection .info-header {
  display: flex;
  align-items: baseline;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--wy-primary);
  padding-bottom: 8px;
}
.collection .section-title {
  font-family: var(--wy-font-heading);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.25px;
  color: var(--wy-text);
  text-transform: uppercase;
  margin: 0;
}
.collection .section-more {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--wy-primary);
  text-transform: uppercase;
}

/* Small shelf: 3-across article grid */
.small-shelf {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  gap: 16px;
}
.small-shelf .article {
  display: grid;
  grid-auto-rows: min-content;
  padding: 0;
  position: relative;
}
.small-shelf .article ~ .article {
  padding-top: 16px;
  border-top: 1px solid var(--wy-border);
}
.small-shelf .article .m {
  position: relative;
  margin-bottom: 8px;
  overflow: hidden;
}
.small-shelf .article .m img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform .2s;
}
.small-shelf .article:hover .m img { transform: scale(1.03); }
.small-shelf .article .m .pill {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--wy-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  padding: 2px 8px;
  text-transform: uppercase;
  z-index: 2;
}
.small-shelf .article .eyebrow {
  display: inline-block;
  color: #4b78a7;
  font-size: 11px;
  font-weight: 900;
  line-height: 18px;
  text-transform: uppercase;
  margin-right: 6px;
  margin-bottom: 2px;
}
.small-shelf .article .eyebrow a { color: inherit; }
.small-shelf .article .headline {
  font-family: var(--wy-font-heading);
  font-size: 24px;
  font-weight: 900;
  line-height: 28px;
  letter-spacing: -.5px;
  margin-bottom: 8px;
  color: var(--wy-primary);
}
.small-shelf .article .headline a { color: inherit; }
.small-shelf .article .headline a:hover { text-decoration: underline; }
.small-shelf .article .meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 400;
  color: var(--wy-text-muted);
}
.small-shelf .article .meta .author { font-weight: 900; }
.small-shelf .article .meta a { color: inherit; }

/* ===== SIDEBAR BLOCKS ===== */
.sidebar-block {
  background: var(--wy-bg-alt);
  border: 1px solid var(--wy-border);
  margin-bottom: 16px;
  padding: 16px;
}
.sidebar-block-header {
  font-family: var(--wy-font-heading);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.25px;
  color: var(--wy-primary);
  border-bottom: 2px solid var(--wy-primary);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.trending-article {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--wy-border);
}
.trending-article:last-child { border-bottom: none; }
.trending-thumb { flex: 0 0 80px; overflow: hidden; }
.trending-thumb img { width: 100%; height: 60px; object-fit: cover; }
.trending-info { flex: 1; min-width: 0; }
.trending-info .eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--wy-accent);
  margin-bottom: 4px;
}
.trending-title {
  font-family: var(--wy-font-heading);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--wy-primary);
  display: block;
}
.trending-title:hover { text-decoration: underline; }

/* ===== ARTICLE PAGE ===== */
.article-header-wrap {
  text-align: center;
  margin: 0 auto 24px;
  padding: 24px 24px 0;
}
.article-category-pill {
  display: inline-block;
  background: var(--wy-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 2px 6px;
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-bottom: 14px;
  text-decoration: none;
}
.article-category-pill:hover { opacity: .9; text-decoration: none; }
.article-page-title {
  font-family: var(--wy-font-heading);
  font-size: 48px;
  font-weight: 900;
  line-height: 58px;
  letter-spacing: -.5px;
  margin-bottom: 8px;
  color: var(--wy-text);
}
.article-page-dek {
  font-family: var(--wy-font-body);
  font-size: 24px;
  font-weight: 300;
  line-height: 28px;
  color: var(--wy-text);
  margin-bottom: 20px;
}
.article-byline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--wy-text-muted);
  margin-bottom: 6px;
}
.article-byline .author-name { font-weight: 900; color: var(--wy-primary); text-decoration: none; }
.article-byline .author-name:hover { text-decoration: underline; }
.article-date {
  font-size: 14px;
  color: var(--wy-text-muted);
  margin-bottom: 18px;
}
.article-share-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--wy-primary);
  color: #fff;
  cursor: pointer;
  border: none;
  transition: opacity .2s;
}
.share-btn:hover { opacity: .8; }
.article-content-area { max-width: 100%; }
.article-page-image { margin: 0 0 20px; }
.article-page-image img { width: 100%; }
.article-page-image figcaption {
  font-size: 12px;
  color: var(--wy-text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--wy-border);
}
.article-body {
  font-family: var(--wy-font-body);
  font-size: 18px;
  font-weight: 300;
  line-height: 26px;
  color: var(--wy-text-muted);
}
.article-body p { margin-bottom: 20px; }
.article-body h2 {
  font-family: var(--wy-font-heading);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.5px;
  margin: 28px 0 14px;
  color: var(--wy-text);
}
.article-body a { color: var(--wy-primary); font-weight: 500; }
.article-body a:hover { text-decoration: underline; }
.article-body strong { font-weight: 700; color: var(--wy-accent); text-transform: uppercase; }
.article-body blockquote {
  margin: 28px 0;
  padding: 20px 28px;
  border: none;
  background: none;
  font-size: 1.35em;
  font-style: italic;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.6;
  color: var(--wy-text);
  position: relative;
}
.article-body blockquote::before {
  content: '\201C';
  font-size: 4em;
  font-family: Georgia, serif;
  color: var(--wy-primary);
  opacity: .25;
  position: absolute;
  top: -10px;
  left: -5px;
  line-height: 1;
}
.article-body img { border-radius: 0; margin: 1.5rem 0; }

/* Related posts on article page */
.article-related { margin-top: 32px; }

/* ===== SECTION PAGE ===== */
.section-banner {
  background: var(--wy-header-bg);
  padding: 28px 16px;
  text-align: center;
  margin-bottom: 24px;
}
.section-banner-title {
  font-family: var(--wy-font-heading);
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}
.section-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 20px;
}
.article-list-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--wy-border);
}
.article-list-image { overflow: hidden; }
.article-list-image img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; }
.article-list-body { display: flex; flex-direction: column; justify-content: center; }

/* ===== SITE FOOTER ===== */
.site-footer {
  background-color: var(--wy-header-bg);
  padding: 32px 0 24px;
  margin-top: 20px;
}
.footer-inner {
  max-width: 1408px;
  margin: 0 auto;
  padding: 0 16px;
}
.footer-upper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-logo-box {
  display: flex;
  align-items: center;
  height: 32px;
  width: auto;
}
.footer-logo-box img {
  display: block;
  height: 100%;
  width: auto;
  object-fit: contain;
}
.footer-brand-text { font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.5; }
.footer-nav-cols { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-col-title {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.25px;
  margin-bottom: 10px;
  color: #edf6ff;
}
.footer-col-list { list-style: none; }
.footer-col-list li { margin-bottom: 6px; }
.footer-col-list a { color: #edf6ff; font-size: 12px; }
.footer-col-list a:hover { text-decoration: underline; }
.footer-lower {
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-copyright { font-size: 11px; color: #ccc; }
.footer-links { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-links a { color: #edf6ff; font-size: 11px; font-weight: 900; }

/* ===== 404 ===== */
.error-404 { text-align: center; padding: 4rem 0; }
.error-404 h1 { font-size: 6rem; color: var(--wy-border); margin-bottom: 0; }
.error-404 p { color: var(--wy-text-muted); font-size: 1.1rem; }
.error-404 .back-home {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 2rem;
  background: var(--wy-primary);
  color: #fff;
  border-radius: 3px;
  font-weight: 900;
}
.error-404 .back-home:hover { opacity: .9; text-decoration: none; }

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--wy-border);
}
.pagination a, .pagination span {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  border-radius: 3px;
}
.pagination .current {
  background: var(--wy-primary);
  color: #fff;
  font-weight: 900;
}
.pagination a:hover { background: var(--wy-bg-alt); text-decoration: none; }

/* ===== NO POSTS ===== */
.no-posts {
  text-align: center;
  padding: 4rem 0;
  color: var(--wy-text-muted);
}

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

/* ===== WP BLOCK STYLES ===== */
.wp-block-image { margin: 1.5rem 0; }
.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* ===== RESPONSIVE: TABLET 768px+ ===== */
@media screen and (min-width: 768px) {
  .small-shelf { grid-template-columns: 1fr 1fr; }
  .small-shelf .article ~ .article { padding-top: 0; border-top: none; }
  .big-top .title { font-size: 32px; line-height: 36px; }
  .section-list-grid { grid-template-columns: 1fr 1fr; }
  .footer-upper { grid-template-columns: 1fr 1fr; }
  .nav-hamburger { display: none; }
  .nav-links { display: flex !important; }
}

/* ===== RESPONSIVE: DESKTOP 1024px+ ===== */
@media screen and (min-width: 1024px) {
  .region-content-sidebar { flex-direction: row; }
  .sidebar {
    display: flex;
    flex: 0 0 300px;
    margin: 0 0 24px 16px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
  }
  .sidebar-columns {
    display: grid;
    grid-row-gap: 16px;
    width: 100%;
  }
  .big-top .article {
    grid-template-columns: minmax(520px, auto) minmax(355px, auto);
    grid-template-areas: "story-image info" "relateds relateds";
  }
  .big-top .info {
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .big-top .title {
    font-size: calc(32px + 16 * (100vw - 1024px) / 416);
    line-height: calc(38px + 20 * (100vw - 1024px) / 416);
  }
  .small-shelf { grid-template-columns: 1fr 1fr 1fr; }
  .small-shelf .article ~ .article { padding-top: 0; border-top: none; }
  .section-list-grid { grid-template-columns: 1fr 1fr; }
  .article-list-item { grid-template-columns: 180px 1fr; }
  .footer-upper { grid-template-columns: 1fr auto; }
}

/* ===== WIDE DESKTOP 1280px+ ===== */
@media screen and (min-width: 1280px) {
  .page-wrap { max-width: 1440px; margin: 0 auto; padding: 0 16px; }
  .big-top .article { grid-template-columns: minmax(627px, auto) minmax(408px, auto); }
  .big-top .title { font-size: 48px; line-height: 58px; }
  .article-page-title { font-size: 48px; line-height: 58px; }
  .section-banner-title { font-size: 42px; }
}

/* ===== WIDGETS (sidebar) ===== */
.widget { margin-bottom: 2rem; }
.widget-title {
  font-family: var(--wy-font-heading);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.25px;
  color: var(--wy-primary);
  border-bottom: 2px solid var(--wy-primary);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--wy-border);
  font-size: 0.9rem;
}
.widget li:last-child { border-bottom: none; }

/* ===== MOBILE NAV TOGGLE ===== */
.nav-hamburger {
  display: block;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  margin-right: 8px;
}
.nav-links { display: none; }
@media screen and (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-hamburger { display: none; }
}
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  background: var(--wy-header-bg);
  z-index: 999;
  padding: 8px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.nav-links.open a { padding: 10px 20px; display: block; }
.nav-search-btn {
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

/* ===== AD PLACEHOLDER ===== */
.ad-banner {
  background: var(--wy-bg-alt);
  text-align: center;
  padding: 24px 20px;
  color: var(--wy-text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 12px auto;
  max-width: 728px;
}

/* ===== KICKER OVERLAYS ===== */
.kicker {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  border-radius: 0;
  background-color: rgba(0,51,102,.8);
  overflow: hidden;
  z-index: 2;
}
.big-top .kicker { bottom: 40px; }
.kicker-text {
  display: block;
  color: #fff;
  font-family: var(--wy-font-heading);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -.25px;
  padding: 6px 10px;
}
.big-top .kicker-text {
  font-size: 42px;
  line-height: 1.4;
  padding: 8px 16px;
}
.kicker.alternate {
  border: 3px solid var(--wy-accent);
  background-color: #fff;
  left: auto;
  right: 14px;
  bottom: 8px;
  transform: rotate(4deg);
}
.kicker.alternate .kicker-text { color: var(--wy-accent); }

/* ===== HEADLINE COLOR VARIANTS ===== */
.headline-red, .headline-red a { color: var(--wy-accent) !important; }
.headline-green, .headline-green a { color: var(--wy-stock-positive) !important; }

/* ===== RASTER LOGO ===== */
.nav-logo-box.nav-logo-raster {
  height: 48px;
  width: 48px;
  border-radius: 6px;
  overflow: hidden;
  background: transparent;
  padding: 4px;
}
.nav-logo-box.nav-logo-raster img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  border-radius: 4px;
}
.footer-logo-box.footer-logo-raster {
  height: 36px;
  width: 36px;
  border-radius: 4px;
  overflow: hidden;
  background: transparent;
  padding: 3px;
}
.footer-logo-box.footer-logo-raster img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  border-radius: 3px;
}

/* ===== META ITEMS ===== */
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.meta-item svg {
  flex-shrink: 0;
  vertical-align: middle;
}

/* ===== COLLECTION-SECTION RIBBON ===== */
.collection-section {
  border-top: 3px solid var(--wy-primary);
  padding-top: 16px;
  margin-top: 24px;
}

/* ===== ARTICLE BYLINE AVATAR ===== */
.article-byline .author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--wy-bg-alt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.article-byline .author-avatar svg { width: 28px; height: 28px; fill: var(--wy-text-muted); }
.article-byline .author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.article-byline .separator { color: var(--wy-text-muted); }
.article-byline .source { font-weight: 400; }

/* ===== NEWSLETTER SIDEBAR ===== */
.newsletter-desc {
  font-size: 13px;
  color: var(--wy-text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}
.newsletter-form { display: flex; gap: 6px; }
.newsletter-input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--wy-border);
  font-size: 13px;
  font-family: var(--wy-font-body);
  background: var(--wy-bg);
}
.newsletter-btn {
  background: var(--wy-primary);
  color: #fff;
  border: none;
  padding: 8px 14px;
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
  letter-spacing: -.25px;
}
.newsletter-btn:hover { background: var(--wy-primary-dark); }
.newsletter-freq {
  font-size: 11px;
  color: var(--wy-text-muted);
  margin-top: 6px;
}

/* ===== BLOCKQUOTE ATTRIBUTION ===== */
.article-body blockquote p { margin: 0 0 4px 0; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body blockquote p:last-child:not(:first-child) {
  margin-top: 4px;
  font-size: 0.65em;
  font-style: normal;
  font-family: var(--wy-font-body);
  color: var(--wy-text-muted);
  letter-spacing: .3px;
}
