/**
 * WPP Base Theme — Component Styles
 *
 * Hero, banners, spotlight, news, announcements, art & culture,
 * sidebar, footer, and all card types.
 *
 * All colors and font families reference CSS custom properties
 * from site-config.json. No hardcoded colors or font families.
 */

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero-section {
  padding: 30px 0;
  background: var(--white);
}
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}
.hero-main-image {
  width: 100%;
  /* 3:2 photo box (client request 2026-07-22, was a fixed 340px ≈ 2.2:1).
     Ratio-based so it stays 3:2 at every viewport, incl. stacked mobile. */
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, #1a3a5c 0%, #2a5a8c 40%, #3a7abd 100%);
  position: relative;
  overflow: hidden;
}
.hero-main-image::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(transparent, rgba(0,0,0,0.3));
}
.hero-main-image .img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 14px;
}
.hero-credit {
  font-size: 10px;
  color: var(--gray-text);
  margin-top: 4px;
}
.hero-main h2 {
  font-family: var(--font-condensed);
  font-size: 36px;
  font-weight: 700;
  color: var(--dark-navy);
  margin-top: 14px;
  line-height: 1.2;
}
.hero-main h2 a { color: inherit; }
.hero-main h2 a:hover { color: var(--blue); }
.hero-main .meta {
  font-size: 13px;
  color: var(--gray-text);
  margin-top: 8px;
}
.hero-main .excerpt {
  font-size: 16px;
  color: #444;
  margin-top: 10px;
  line-height: 1.6;
}

/* -- Hero Sidebar stories -- */
.hero-sidebar { display: flex; flex-direction: column; gap: 16px; }
.sidebar-story {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-border);
}
.sidebar-story:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-thumb {
  width: 100px; height: 68px;
  background: #ccc;
  flex-shrink: 0;
}
.hero-more-btn {
  display: block;
  text-align: center;
  padding: 12px 32px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  background: #fff;
  border: 2px solid var(--navy);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
  align-self: flex-end;
}
.hero-more-btn:hover { background: var(--navy); color: #fff; }

/* Placeholder gradient backgrounds for sidebar thumbnails */
.sidebar-thumb.t1 { background: linear-gradient(135deg, #8ba, #4a7); }
.sidebar-thumb.t2 { background: linear-gradient(135deg, #7aa, #49b); }
.sidebar-thumb.t3 { background: linear-gradient(135deg, #ab8, #6a5); }
.sidebar-thumb.t4 { background: linear-gradient(135deg, #a8b, #74a); }

.sidebar-story h4 {
  font-family: var(--font-condensed);
  font-size: 16px;
  font-weight: 700;
  color: var(--dark-navy);
  line-height: 1.3;
}
.sidebar-story h4:hover { color: var(--blue); }

/* ================================================================
   GENERAL ASSEMBLY / CTA BANNER
   ================================================================ */
.ga-banner {
  background: var(--navy);
  padding: 30px 0;
  margin: 10px 0;
}
.ga-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  align-items: center;
}
.ga-tags {
  display: flex; gap: 8px; margin-bottom: 12px;
}
.ga-tag {
  background: var(--yellow);
  color: var(--dark-navy);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ga-banner h2 {
  font-family: var(--font-condensed);
  font-size: 34px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.ga-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.ga-btns { display: flex; gap: 12px; }
.ga-btn {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  border-radius: 3px;
}
.ga-btn.primary { background: var(--blue); color: #fff; }
.ga-btn.secondary { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.5); }
.ga-image {
  width: 100%; height: 180px;
  background: linear-gradient(135deg, #2a4a6c, #4a7aac);
  border-radius: 4px;
}

/* ================================================================
   AD BANNER
   ================================================================ */
.ad-banner {
  padding: 20px 0;
  text-align: center;
}
/* Center the AdButler placement div + any iframe it injects.
   The script writes <div id="placement_<id>_0"></div> at the script's
   location, then loads an <iframe> inside. By default the placement div
   is block-level (full width) so the iframe inside sits at the left.
   Shrink-to-fit lets the parent's text-align:center actually work. */
.ad-banner [id^="placement_"],
.sponsor-banner [id^="placement_"],
.sidebar-ad [id^="placement_"] {
  display: inline-block;
}
.ad-banner iframe,
.sponsor-banner iframe,
.sidebar-ad iframe {
  display: block;
  margin: 0 auto;
}
.ad-placeholder {
  width: 100%;
  height: 90px;
  background: linear-gradient(90deg, #e85d26, #d4451a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ================================================================
   SPOTLIGHT SECTION
   ================================================================ */
.spotlight-section {
  background: var(--gray-bg);
  padding: 40px 0;
}
.section-title {
  font-family: var(--font-condensed);
  font-size: 20px;
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.spotlight-img {
  width: 100%; height: 200px;
  background: #bbb;
}
/* Placeholder gradient backgrounds for spotlight cards */
.spotlight-img.s1 { background: linear-gradient(135deg, #556, #889); }
.spotlight-img.s2 { background: linear-gradient(135deg, #664, #997); }
.spotlight-img.s3 { background: linear-gradient(135deg, #466, #799); }
.spotlight-card h3 {
  font-family: var(--font-condensed);
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-navy);
  margin-top: 12px;
  line-height: 1.3;
}
.spotlight-card p {
  font-size: 14px;
  color: var(--gray-text);
  margin-top: 8px;
  line-height: 1.5;
}

/* ================================================================
   SPONSOR BANNER
   ================================================================ */
.sponsor-banner {
  padding: 20px 0;
  text-align: center;
}
.sponsor-placeholder {
  width: 100%;
  height: 80px;
  background: var(--light-blue);
  border: 1px solid var(--gray-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-text);
  font-size: 12px;
  font-weight: 600;
}

/* ================================================================
   NEWS SECTION
   ================================================================ */
.news-section {
  padding: 40px 0;
}
.news-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}

/* -- News Tabs -- */
.news-tabs {
  display: flex;
  border-bottom: 3px solid var(--navy);
  margin-bottom: 24px;
}
.news-tab {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-text);
  cursor: pointer;
  border: 1px solid var(--gray-border);
  border-bottom: none;
  background: var(--gray-bg);
  margin-right: 4px;
}
.news-tab.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* -- News Items -- */
.news-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-border);
}
.news-item:first-child { padding-top: 0; }
.news-thumb {
  width: 160px; height: 105px;
  background: #ccc;
  flex-shrink: 0;
}
/* Placeholder gradient backgrounds for news thumbnails */
.news-thumb.n1 { background: linear-gradient(135deg, #3a6, #285); }
.news-thumb.n2 { background: linear-gradient(135deg, #666, #888); }
.news-thumb.n3 { background: linear-gradient(135deg, #557, #779); }
.news-thumb.n4 { background: linear-gradient(135deg, #a86, #875); }
.news-thumb.n5 { background: linear-gradient(135deg, #6a8, #497); }
.news-thumb.n6 { background: linear-gradient(135deg, #876, #654); }
.news-thumb.n7 { background: linear-gradient(135deg, #567, #789); }

.news-category {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.news-content h3 {
  font-family: var(--font-condensed);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark-navy);
  line-height: 1.25;
  margin-bottom: 6px;
}
.news-content h3 a { color: inherit; }
.news-content h3 a:hover { color: var(--blue); }
.news-content h3:hover { color: var(--blue); }
.news-meta {
  font-size: 13px;
  color: var(--gray-text);
  margin-bottom: 8px;
}
.news-excerpt {
  font-size: 15px;
  color: #555;
  line-height: 1.5;
}
.news-links {
  margin-top: 8px;
  display: flex; gap: 8px;
}
.news-link {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  padding: 3px 10px;
  border: 1px solid var(--blue);
}

.load-more {
  display: block;
  margin: 24px auto 0;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  background: #fff;
  border: 2px solid var(--navy);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ================================================================
   NEWS SIDEBAR
   ================================================================ */
/* Shared Module in the sidebar newsletter slot: module sections carry
   full-width .page-section/.container chrome — collapse it so the module's
   own markup fills the narrow column (same taming as grid columns). */
/* A Shared Module rendered inside a narrow sidebar column: collapse the
   section's own band padding and container width so it fills the column.
   Unscoped on purpose — .sidebar-module only ever means "module in a
   sidebar", and it now appears in the homepage news feed AND in the
   Shared Module widget (article/archive sidebars). */
.sidebar-module { margin-bottom: 24px; }
.sidebar-module .page-section { margin: 0; padding: 0; }
.sidebar-module .page-section > .container {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.sidebar-box {
  background: var(--navy);
  color: #fff;
  margin-bottom: 24px;
  text-align: center;
  overflow: hidden;
}
.sidebar-box-image {
  width: 100%;
  height: 100px;
  background-size: cover;
  background-position: center;
}
.sidebar-box-image-default {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-box-label {
  font-family: var(--font-condensed);
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.2;
}
.sidebar-box-content {
  padding: 20px;
}
.sidebar-box h3 {
  font-family: var(--font-condensed);
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 8px;
}
.sidebar-box p {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 14px;
  line-height: 1.5;
}
.sidebar-box .btn-subscribe {
  background: var(--yellow);
  color: var(--dark-navy);
  border: none;
  padding: 8px 24px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}
.sidebar-newsletter {
  border: 1px solid var(--gray-border);
  padding: 20px;
  margin-bottom: 24px;
  text-align: center;
}
.sidebar-newsletter h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 10px;
}
.sidebar-newsletter input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--gray-border);
  font-size: 13px;
  margin-bottom: 10px;
}
.sidebar-newsletter button {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 8px 24px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  width: 100%;
}
.sidebar-ad {
  width: 100%;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  margin-bottom: 24px;
  overflow: hidden;
}
.sidebar-ad img { width: 100%; height: auto; }
.sidebar-ad span {
  display: flex;
  width: 100%;
  height: 250px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy), #1a4a7a);
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.sidebar-promo {
  background: var(--gray-bg);
  padding: 16px;
  margin-bottom: 24px;
}
.sidebar-promo h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.sidebar-promo-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.sidebar-promo-thumb {
  width: 80px; height: 55px;
  background: #bbb;
}
/* Placeholder gradient backgrounds for sidebar promo thumbnails */
.sidebar-promo-thumb.sp1 { background: linear-gradient(135deg, #a87, #876); }
.sidebar-promo-thumb.sp2 { background: linear-gradient(135deg, #7a8, #698); }

.sidebar-promo-item h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark-navy);
  line-height: 1.3;
}

/* ================================================================
   WATCH THE LATEST (sidebar)
   ================================================================ */
.watch-section {
  margin-bottom: 24px;
}
.watch-section h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--navy);
}
.watch-item {
  margin-bottom: 12px;
}
.watch-thumb {
  width: 100%; height: 160px;
  background: linear-gradient(135deg, #334, #556);
  position: relative;
}
.watch-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 50px; height: 50px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.watch-play::after {
  content: '';
  width: 0; height: 0;
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}
.watch-item h5 {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark-navy);
  margin-top: 8px;
}

/* ================================================================
   ANNOUNCEMENTS SECTION
   ================================================================ */
.announcements-section {
  background: var(--navy);
  padding: 40px 0;
}
.announcements-section .section-title {
  color: #fff;
}
.announcements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.announcement-card {
  background: var(--white);
  overflow: hidden;
}
.announcement-img {
  width: 100%; height: 140px;
  background: #bbb;
}
/* Placeholder gradient backgrounds for announcement cards */
.announcement-img.a1 { background: linear-gradient(135deg, #5a8, #397); }
.announcement-img.a2 { background: linear-gradient(135deg, #87a, #659); }
.announcement-img.a3 { background: linear-gradient(135deg, #a75, #864); }
.announcement-img.a4 { background: linear-gradient(135deg, #579, #468); }

.announcement-card .card-body {
  padding: 14px;
}
.announcement-card h4 {
  font-family: var(--font-condensed);
  font-size: 16px;
  font-weight: 700;
  color: var(--dark-navy);
  line-height: 1.3;
}
.announcement-card .meta {
  font-size: 12px;
  color: var(--gray-text);
  margin-top: 6px;
}
.more-announcements {
  display: block;
  margin: 0 auto;
  padding: 12px 32px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ================================================================
   EXHIBIT / ART EXHIBITION BANNER
   ================================================================ */
.exhibit-banner {
  padding: 30px 0;
  text-align: center;
}
.exhibit-img {
  width: 100%;
  max-width: 800px;
  height: 180px;
  margin: 0 auto;
  background: linear-gradient(90deg, #d4451a, #e85d26, #f0a020);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-condensed);
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ================================================================
   ART & CULTURE SECTION
   ================================================================ */
.art-section {
  background: var(--dark-navy);
  padding: 40px 0;
}
.art-section .section-title {
  color: var(--yellow);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.art-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.art-main-img {
  width: 100%; height: 280px;
  background: linear-gradient(135deg, #a87, #765);
}
.art-main h3 {
  font-family: var(--font-condensed);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-top: 14px;
  line-height: 1.25;
}
.art-main h3 a { color: #fff; }
.art-main h3 a:hover { color: var(--blue); }
.art-main p {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  margin-top: 10px;
  line-height: 1.6;
}
.art-sidebar-items { display: flex; flex-direction: column; gap: 16px; }
.art-side-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.art-side-thumb {
  width: 120px; height: 80px;
  background: #667;
}
/* Placeholder gradient backgrounds for art side thumbnails */
.art-side-thumb.at1 { background: linear-gradient(135deg, #789, #567); }
.art-side-thumb.at2 { background: linear-gradient(135deg, #897, #675); }
.art-side-thumb.at3 { background: linear-gradient(135deg, #978, #756); }

.art-side-item .art-cat {
  font-size: 11px;
  color: var(--yellow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.art-side-item h4 {
  font-family: var(--font-condensed);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-top: 4px;
}
.art-side-item h4 a { color: #fff; }
.art-side-item h4 a:hover { color: var(--blue); }
.art-side-item p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
  line-height: 1.4;
}

.art-media-links { margin-top: 6px; display: flex; gap: 8px; }
.art-media-link {
  font-size: 10px;
  font-weight: 700;
  color: var(--blue);
  padding: 2px 8px;
  border: 1px solid var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.art-media-link:hover { background: var(--blue); color: #fff; }

.more-stories {
  display: block;
  margin: 24px auto 0;
  padding: 10px 28px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--dark-navy);
  padding: 40px 0 20px;
  color: rgba(255,255,255,0.7);
  border-top: 4px solid var(--blue);
}
.footer-top {
  display: grid;
  /* Brand column (220px) + N menu columns. Auto-fits the actual number
     of top-level menu items so we never end up with empty grid cells. */
  grid-template-columns: 220px repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* The wp_nav_menu uses items_wrap='%3$s' which strips the outer <ul> but
   leaves each top-level <li> as a direct child of .footer-top. Strip the
   list bullets, kill default li padding, and let the menu items behave as
   regular block columns. */
.footer-top > li.menu-item,
.footer-top li.menu-item ul,
.footer-top li.menu-item li.menu-item {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Vertical divider between columns. Each top-level <li> gets a left
   border, except the first one which would otherwise sit hard against the
   brand column. */
.footer-top > li.menu-item {
  padding-left: 30px;
  border-left: 1px solid rgba(255,255,255,0.18);
}

/* Style the menu links — same flat list style, no special weighting for
   parent items. Matches the live site where every item reads as one row. */
.footer-top li.menu-item > a {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.75);
  padding: 4px 0;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-top li.menu-item > a:hover {
  color: #fff;
}

/* Top-level (parent) items are column headers — bold + white so they read
   as titles above their muted-gray child links. Direct-child selector only,
   so nested link items keep the regular style. */
.footer-top > li.menu-item > a {
  font-weight: 700;
  color: #fff;
}

/* Children: same style, no extra indent (the live site shows them flat
   alongside the parent). */
.footer-top li.menu-item ul {
  /* nested submenu */
}
.footer-top li.menu-item li.menu-item > a {
  font-size: 13px;
}
.footer-logo {
  display: block;
  margin-bottom: 8px;
}
.footer-logo img {
  height: 50px;
  width: auto;
}
.footer-logo-badges {
  display: flex; gap: 6px; margin-bottom: 12px;
}
.footer-logo-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 2px;
  color: #fff;
}
.footer-logo-badge.r { background: var(--red); }
.footer-logo-badge.g { background: #5b8c2a; }
.footer-social {
  display: flex; gap: 8px; margin-top: 12px;
}
.footer-social a {
  width: 30px; height: 30px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 13px;
}
.footer-address {
  font-size: 11px;
  line-height: 1.6;
  margin-top: 12px;
  color: rgba(255,255,255,0.5);
}
.footer-col h5 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.newsletter-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark-navy);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.footer-bottom {
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.helpdesk {
  display: flex; align-items: center; gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.author-info {
  margin: 8px 0 0;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}
.author-info a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}
.author-info a:hover { color: #fff; }

/* ============================================================
   Classic [gallery] shortcode (WP "Add Media → Create Gallery")
   The theme declares html5 gallery support, which suppresses
   WordPress's default inline gallery styles — so the column
   layout lives here instead. .gallery-columns-N comes from the
   editor's Columns setting.
   ============================================================ */
.gallery {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}
.gallery-columns-1 { grid-template-columns: 1fr; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }
.gallery-columns-6 { grid-template-columns: repeat(6, 1fr); }
.gallery-columns-7 { grid-template-columns: repeat(7, 1fr); }
.gallery-columns-8 { grid-template-columns: repeat(8, 1fr); }
.gallery-columns-9 { grid-template-columns: repeat(9, 1fr); }

.gallery .gallery-item {
  margin: 0;
}
.gallery .gallery-icon img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.gallery .gallery-caption {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--gray-text, #555);
}

/* Tablet: cap at 3 columns */
@media (max-width: 900px) {
  .gallery-columns-4, .gallery-columns-5, .gallery-columns-6,
  .gallery-columns-7, .gallery-columns-8, .gallery-columns-9 {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* Phone: cap at 2 columns */
@media (max-width: 600px) {
  .gallery-columns-2, .gallery-columns-3, .gallery-columns-4,
  .gallery-columns-5, .gallery-columns-6, .gallery-columns-7,
  .gallery-columns-8, .gallery-columns-9 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   Masonry Image Gallery (.bsm-gallery — inc/gallery.php)
   CSS-columns masonry: equal-width columns, natural heights,
   no cropping. Used in page content ([gallery] shortcode), the
   page_gallery builder section, and reused inside the lightbox
   thumbs overlay.
   ============================================================ */
.bsm-gallery {
  columns: 3;
  column-gap: 8px;
  margin: 24px 0;
}
.bsm-gallery--cols-2 { columns: 2; }
.bsm-gallery--cols-4 { columns: 4; }

.bsm-gallery-item {
  position: relative;
  display: block;
  margin-bottom: 8px;
  break-inside: avoid;
  cursor: zoom-in;
  line-height: 0; /* kill inline-img baseline gap */
}
.bsm-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  transition: filter 0.15s;
}
.bsm-gallery-item:hover img,
.bsm-gallery-item:focus-visible img { filter: brightness(1.06); }

/* Clickability affordance: a persistent "enlarge" badge in the corner so
   the tiles read as tappable (needed on touch, where there's no hover),
   emphasized on hover/focus for mouse + keyboard. The pseudo-element is
   pointer-events:none so the click still reaches the anchor. */
.bsm-gallery-item::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cline x1='21' y1='21' x2='15.5' y2='15.5'/%3E%3Cline x1='10.5' y1='7.5' x2='10.5' y2='13.5'/%3E%3Cline x1='7.5' y1='10.5' x2='13.5' y2='10.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 17px 17px;
  opacity: 0.7;
  transform: scale(0.94);
  transition: opacity 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
  pointer-events: none;
  z-index: 2;
}
.bsm-gallery-item:hover::after,
.bsm-gallery-item:focus-visible::after {
  opacity: 1;
  transform: scale(1);
  background-color: var(--navy, #003865);
}

@media (max-width: 900px) {
  .bsm-gallery,
  .bsm-gallery--cols-2,
  .bsm-gallery--cols-4 { columns: 2; }
}
@media (max-width: 560px) {
  .bsm-gallery,
  .bsm-gallery--cols-2,
  .bsm-gallery--cols-4 { columns: 1; }
}

/* ============================================================
   Gallery Lightbox (assets/js/lightbox.js)
   Slideshow view (caption rail right at >=900px, below on
   mobile) + fullscreen masonry thumbs view.
   ============================================================ */
.bsm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.94);
}
.bsm-lightbox.is-open { display: flex; }
body.bsm-lightbox-open { overflow: hidden; }

/* --- Slideshow stage: image + caption rail --- */
.bsm-lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 94vw;
  max-height: 84vh;
}
.bsm-lightbox-figure {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.bsm-lightbox-img {
  max-width: 72vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 4px;
  transition: opacity 0.15s;
}
.bsm-lightbox-img.is-loading { opacity: 0.25; }
.bsm-lightbox-rail {
  flex: 0 0 220px;
  width: 220px;
  color: #bbb;
  font-size: 14px;
  line-height: 1.55;
}
.bsm-lightbox-rail[hidden] { display: none; }
.bsm-lightbox-caption { color: #ccc; }
.bsm-lightbox-credit {
  margin-top: 8px;
  color: #777;
  font-size: 12px;
}

/* --- Bottom bar: prev / counter / next / thumbs --- */
.bsm-lightbox-bar {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  color: #aaa;
  font-size: 14px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.bsm-lightbox-bar button {
  background: none;
  border: none;
  color: #ddd;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 2px;
}
.bsm-lightbox-bar button:hover { color: #fff; }
.bsm-lightbox-counter { color: #fff; }

/* --- Thumbs view --- */
.bsm-lightbox-thumbs {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 64px 24px 24px;
  columns: 4 220px;
  column-gap: 8px;
}
.bsm-lightbox-thumbs a {
  display: block;
  margin-bottom: 8px;
  break-inside: avoid;
  line-height: 0;
}
.bsm-lightbox-thumbs img {
  width: 100%;
  display: block;
  border-radius: 2px;
}
.bsm-lightbox-thumbs a.is-current img {
  outline: 3px solid var(--yellow, #ffd100);
  outline-offset: -3px;
}
/* Thumbs view hides slideshow chrome */
.bsm-lightbox.is-thumbs .bsm-lightbox-stage,
.bsm-lightbox.is-thumbs .bsm-lightbox-bar,
.bsm-lightbox.is-thumbs .bsm-lightbox-prev,
.bsm-lightbox.is-thumbs .bsm-lightbox-next { display: none; }

/* --- Round control buttons (close + side arrows) --- */
.bsm-lightbox-close,
.bsm-lightbox-prev,
.bsm-lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 2;
}
.bsm-lightbox-close:hover,
.bsm-lightbox-prev:hover,
.bsm-lightbox-next:hover { background: rgba(255, 255, 255, 0.28); }

.bsm-lightbox-close { top: 18px; right: 18px; font-size: 28px; }
.bsm-lightbox-prev  { left: 18px;  top: 50%; transform: translateY(-50%); }
.bsm-lightbox-next  { right: 18px; top: 50%; transform: translateY(-50%); }

/* --- Mobile: caption below image, tighter chrome --- */
@media (max-width: 900px) {
  .bsm-lightbox-stage {
    flex-direction: column;
    gap: 10px;
  }
  .bsm-lightbox-img { max-width: 92vw; max-height: 70vh; }
  .bsm-lightbox-rail {
    flex: none;
    width: auto;
    max-width: 86vw;
    text-align: center;
    font-size: 13px;
  }
  .bsm-lightbox-thumbs { columns: 2; padding: 56px 12px 12px; }
}
@media (max-width: 600px) {
  .bsm-lightbox-prev { left: 8px; }
  .bsm-lightbox-next { right: 8px; }
  .bsm-lightbox-close { top: 10px; right: 10px; }
}

/* Make gallery thumbnails feel clickable */
.gallery .gallery-icon a img,
.gallery .gallery-item a img { cursor: zoom-in; }

/* ============================================================
   Image credit / rights holder
   <span class="credit"> inside figcaptions (migrated Brightspot
   images + plugin-injected credits) and the lightbox credit line.
   ============================================================ */
figcaption .credit {
  font-style: normal;
  color: var(--gray-text, #777);
  font-size: 12px;
  white-space: nowrap;
}
figcaption .credit::before {
  content: "\2014\00a0"; /* em dash before the credit */
}
.credit.image-credit-block {
  display: block;
  font-size: 12px;
  color: var(--gray-text, #777);
  margin: 6px 0 1em;
}
/* ---------------------------------------------------------------------------
   Image zero-state placeholder (spec 2026-06-06)
   Applied wherever an article image slot has no featured image. The gradient
   field fills any box; the vector mark is centered and size-capped so it never
   crops or pixelates; the accent bar/tick are %-positioned so they can't be
   cropped at any aspect ratio. Swap assets/images/placeholder-mark.svg to
   change the artwork site-wide.
--------------------------------------------------------------------------- */
.bsm-img-ph {
  position: relative;
  overflow: hidden;
  background-color: var(--navy, #003865);
  background-image:
    url('../images/placeholder-mark.svg'),
    linear-gradient(135deg, var(--navy, #003865) 0%, #001d36 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: min(72%, 300px) auto, cover;
}
.bsm-img-ph::after {
  content: "";
  position: absolute;
  left: 7%;
  bottom: 10%;
  width: 23%;
  height: 8px;
  max-height: 6%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--yellow, #E0E721), var(--yellow-gold, #f2a900));
}
.bsm-img-ph::before {
  content: "";
  position: absolute;
  left: 7%;
  bottom: 4.5%;
  width: 10.5%;
  height: 3px;
  max-height: 2.5%;
  border-radius: 1.5px;
  background: rgba(108, 172, 228, 0.5);
}

/* ==========================================================================
   Builder Tabs (.bsm-tabs) — page_tab markers, grouped at render time
   Without JS, panels stack (hidden only under .bsm-tabs--ready).
   ========================================================================== */
.bsm-tabs { margin: 24px 0; }
.bsm-tabs__bar {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: 2px solid #d9d9d9;
    scrollbar-width: thin;
}
.bsm-tabs__tab {
    appearance: none;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    /* No negative margin here: the bar is a scroll container (overflow-x),
       so overlapping its border makes the content overflow vertically —
       the yellow underline gets clipped and a stray scrollbar appears. */
    padding: 12px 18px;
    font-family: var(--font-condensed);
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
    cursor: pointer;
}
.bsm-tabs__tab:hover { background: rgba(0, 56, 101, 0.06); }
.bsm-tabs__tab.is-active { border-bottom-color: var(--yellow); }
.bsm-tabs__panel { padding-top: 8px; }
.bsm-tabs--ready .bsm-tabs__panel { display: none; }
.bsm-tabs--ready .bsm-tabs__panel.is-active { display: block; }


/* ================================================================
   SOCIAL SHARE BAR (bsm_article_share_bar)
   Lives here, not in article.css: the helper is called from BOTH
   single.php and single-cpt-episode.php, but article.css is only
   enqueued for posts — so on episodes the icons rendered with no
   sizing and each SVG expanded to fill its container (840px squares).
   components.css loads on every page.
   ================================================================ */
.ActionBar {
    display: block;
}

.ActionBar-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
}

.ActionBar-items-item {
    display: inline-block;
}

.ActionLink {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--navy, #003865);
    color: #fff;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.ActionLink:hover {
    background: var(--blue, #6CACE4);
}

.ActionLink svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.ActionLink span {
    /* Visually hidden but accessible */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ── Converted Brightspot enhancements (scripts/bsp_convert.py at sync time,
   bsm_resolve_bsp_tags() at render time). Global: articles, feeds, rich text. ── */
.bsm-quote {
    margin: 1.75em 0;
    padding: 0.25em 0 0.25em 22px;
    border-left: 4px solid var(--blue, #6CACE4);
    font-style: italic;
    color: var(--gray-text, #555);
    font-size: 1.08em;
    line-height: 1.55;
}
.bsm-quote p { margin: 0; }
.bsm-quote cite {
    display: block;
    margin-top: 0.6em;
    font-style: normal;
    font-size: 0.85em;
    color: var(--navy, #003865);
}
.bsm-quote.is-pull-quote {
    border-left: 0;
    border-top: 3px solid var(--yellow, #f5c400);
    border-bottom: 3px solid var(--yellow, #f5c400);
    padding: 1em 0;
    font-size: 1.25em;
    font-family: var(--font-condensed);
    color: var(--navy, #003865);
}
.bsm-embed { margin: 1.5em 0; }
.bsm-embed iframe { max-width: 100%; }
.bsm-embed-video { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.bsm-embed-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bsm-inline-audio, .bsm-inline-video { margin: 1.5em 0; }
.bsm-inline-audio-title { margin: 0 0 0.5em; font-weight: 600; font-size: 0.95em; }
.bsm-inline-audio .wp-audio-shortcode { max-width: 100%; }
.bsm-intro { font-size: 1.15em; line-height: 1.5; font-weight: 500; margin: 0 0 1em; }
.bsm-gallery-title { margin: 1.5em 0 0.5em; }
.bsm-promo-link { margin: 1.5em 0; padding: 0.75em 1em; background: var(--gray-light, #f5f5f5); border-left: 4px solid var(--navy, #003865); }
