/* ============================================================
   PROJECT MANAGER NOTE:
   This is the full visual styling pass. Everything here reads
   its colors from the --gm-* variables defined in style.css, so
   dark mode "just works" everywhere without repeating any color
   values in this file. Organized top-to-bottom in the order
   things appear on the page: reset -> topbar -> header -> nav ->
   hero/cards -> sections -> footer -> responsive.
   ============================================================ */

/* ---- Reset & base ---- */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  transition: background 0.2s ease, color 0.2s ease;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.gm-skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gm-accent); color: #fff; padding: 8px 16px; z-index: 999;
}
.gm-skip-link:focus { left: 0; }

/* ---- Text size toggle: JS adds this class to <html> ---- */
html.gm-text-large body { font-size: 118%; }

/* ---- Top bar ---- */
.gm-topbar { background: var(--gm-accent); color: #fff; font-size: 0.8rem; }
.gm-topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 8px 20px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}
.gm-utility-nav { display: flex; align-items: center; gap: 16px; }
.gm-utility-nav a { opacity: 0.85; }
.gm-utility-nav a:hover { opacity: 1; color: var(--gm-link-hover); }
.gm-text-toggle, .gm-dark-toggle {
  background: transparent; border: 1px solid rgba(255,255,255,0.4); color: #fff;
  border-radius: 4px; padding: 3px 10px; font-size: 0.75rem; cursor: pointer;
}
.gm-text-toggle:hover, .gm-dark-toggle:hover { border-color: #fff; }

/* ---- Header ---- */
.gm-header { border-bottom: 1px solid var(--gm-border); }
.gm-header-inner {
  max-width: 1200px; margin: 0 auto; padding: 20px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.gm-logo { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; }
.gm-logo-dot { color: var(--gm-link-hover); }
.gm-site-tagline { color: var(--gm-text-muted); font-size: 0.9rem; margin: 0; }
.gm-search-form { display: flex; align-items: center; border: 1px solid var(--gm-border); border-radius: 20px; overflow: hidden; }
.gm-search-input { border: none; background: transparent; padding: 6px 0 6px 16px; font-size: 0.85rem; width: 160px; color: var(--gm-text); outline: none; }
.gm-search-submit { border: none; background: transparent; padding: 6px 16px; font-size: 0.85rem; cursor: pointer; color: var(--gm-text); }
.gm-search-submit:hover { color: var(--gm-link-hover); }

/* ---- Primary section nav ---- */
.gm-primary-nav { background: var(--gm-card-bg); border-bottom: 1px solid var(--gm-border); }
.gm-primary-nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; gap: 24px; overflow-x: auto; white-space: nowrap;
}
.gm-primary-nav-inner a { display: inline-block; padding: 12px 0; font-size: 0.9rem; font-weight: 600; }
.gm-primary-nav-inner a:hover { color: var(--gm-link-hover); }

/* ---- Shared: category badge + meta ---- */
.gm-category-label {
  display: inline-block; background: var(--gm-badge-bg); color: var(--gm-badge-text);
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 3px 8px; border-radius: 3px; margin: 12px 0 6px;
}
.gm-meta-line { color: var(--gm-text-muted); font-size: 0.8rem; margin: 4px 0 0; }

/* ---- Save button (bookmark) ---- */
.gm-save-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: rgba(0,0,0,0.55); color: #fff; border: none; border-radius: 50%;
  width: 30px; height: 30px; font-size: 1rem; cursor: pointer; line-height: 1;
}
.gm-save-btn.is-saved { background: var(--gm-link-hover); }
.gm-hero-card, .gm-card { position: relative; }
.gm-save-btn-inline {
  position: static; width: auto; height: auto; border-radius: 20px;
  padding: 6px 14px; font-size: 0.85rem; margin: 8px 0; background: var(--gm-card-bg); color: var(--gm-text);
  border: 1px solid var(--gm-border);
}
.gm-save-btn-inline.is-saved { background: var(--gm-link-hover); color: #fff; border-color: var(--gm-link-hover); }

/* ---- Single article page ---- */
.gm-single-article { max-width: 760px; margin: 0 auto; padding: 32px 20px; }
.gm-single-title { font-size: 2rem; line-height: 1.2; margin: 10px 0; }
.gm-single-image { margin: 16px 0; border-radius: 6px; overflow: hidden; }
.gm-single-content { font-size: 1.05rem; line-height: 1.7; margin-top: 16px; }
.gm-single-content p { margin: 0 0 1.2em; }

/* ---- Top stories: hero + side stories + Latest sidebar (3-column) ---- */
.gm-top-stories { max-width: 1200px; margin: 0 auto; padding: 32px 20px 8px; }
.gm-eyebrow { font-size: 1.6rem; margin: 0 0 2px; }
.gm-subhead { color: var(--gm-text-muted); margin: 0 0 20px; font-size: 0.9rem; }
.gm-top-stories-grid { display: grid; grid-template-columns: 1.5fr 1fr 0.9fr; gap: 24px; align-items: start; }
.gm-hero-title { font-size: 1.6rem; margin: 4px 0 8px; line-height: 1.25; }
.gm-hero-title a:hover { color: var(--gm-link-hover); }
.gm-hero-dek { color: var(--gm-text-muted); margin: 0 0 8px; }
.gm-hero-image-link { position: relative; display: block; }
.gm-hero-badge {
  position: absolute; bottom: 10px; left: 10px; background: var(--gm-accent); color: #fff;
  font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 3px;
}
.gm-side-list { display: flex; flex-direction: column; gap: 24px; }

/* PM note: without this, CSS grid auto-placement would slide the
   Latest panel into the MIDDLE column whenever there's no side-list
   content yet (e.g. only 1-2 posts exist site-wide) — this pins it
   to the right no matter how many other items are present. */
.gm-latest-panel { grid-column: 3; }

/* ---- Latest sidebar panel ---- */
.gm-latest-panel { background: var(--gm-card-bg); border-radius: 6px; padding: 16px; }
.gm-latest-panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.gm-latest-panel-header h2 { margin: 0; font-size: 1.1rem; }
.gm-latest-list { list-style: none; margin: 0; padding: 0; }
.gm-list-item { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--gm-border); }
.gm-list-item:last-child { border-bottom: none; }
.gm-list-number { color: var(--gm-text-muted); font-size: 0.75rem; width: 14px; }
.gm-list-date { color: var(--gm-text-muted); font-size: 0.75rem; width: 42px; }
.gm-list-title { font-size: 0.85rem; line-height: 1.3; }
.gm-list-title:hover { color: var(--gm-link-hover); }
.gm-verified-tag { font-size: 0.65rem; background: var(--gm-bg); color: var(--gm-text-muted); padding: 2px 7px; border-radius: 3px; }

/* ---- Standard card ---- */
.gm-card-title { font-size: 1.05rem; margin: 4px 0; line-height: 1.3; }
.gm-card-title a:hover { color: var(--gm-link-hover); }

/* ---- Ad slot ---- */
.gm-ad-slot {
  max-width: 1200px; margin: 20px auto; padding: 16px 20px; background: var(--gm-card-bg);
  border-radius: 6px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}
.gm-ad-slot a { font-weight: 700; }
.gm-ad-slot a:hover { color: var(--gm-link-hover); }

/* ---- Section rows (Ghana, Business, etc.) ---- */
.gm-section-row { max-width: 1200px; margin: 32px auto; padding: 0 20px; }
.gm-section-row-header { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--gm-accent); padding-bottom: 8px; margin-bottom: 16px; }
.gm-section-row-header h2 { margin: 0; font-size: 1.3rem; }
.gm-section-more-link { font-size: 0.85rem; font-weight: 600; }
.gm-section-more-link:hover { color: var(--gm-link-hover); }
.gm-section-row-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* ---- Newsletter CTA ---- */
.gm-newsletter-cta {
  max-width: 700px; margin: 40px auto; padding: 32px 20px; text-align: center;
  background: var(--gm-card-bg); border-radius: 8px;
}
.gm-newsletter-cta h2 { margin: 0 0 8px; }

/* ---- Footer ---- */
.gm-footer { background: var(--gm-footer-bg); color: var(--gm-footer-text); margin-top: 40px; padding: 32px 20px; }
.gm-footer .gm-logo { color: var(--gm-footer-text); }
.gm-footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 24px; }
.gm-footer-inner h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gm-footer-muted); }
.gm-footer-inner ul { list-style: none; padding: 0; margin: 0; }
.gm-footer-inner li { margin-bottom: 6px; font-size: 0.9rem; }
.gm-footer-inner li a { color: var(--gm-footer-text); }
.gm-footer-inner li a:hover { color: var(--gm-accent); }
.gm-footer-bottom {
  max-width: 1200px; margin: 24px auto 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--gm-footer-muted); flex-wrap: wrap; gap: 8px;
}
.gm-footer-bottom a { color: var(--gm-footer-muted); }
.gm-footer-bottom a:hover { color: var(--gm-accent); }

/* ---- Business & Markets ticker band ---- */
.gm-markets-band {
  background: var(--gm-footer-bg); color: var(--gm-footer-text);
  margin: 32px 0; padding: 24px 20px;
}
.gm-markets-inner { max-width: 1200px; margin: 0 auto; }
.gm-markets-inner h2 { margin: 0 0 16px; font-size: 1.2rem; color: #fff; }
.gm-ticker-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px;
  padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.gm-ticker-item { font-size: 0.8rem; color: var(--gm-footer-muted); }
.gm-ticker-item strong { display: block; color: #fff; font-size: 1.1rem; margin: 2px 0; }
.gm-ticker-item .gm-ticker-up { color: #3ddc7c; }
.gm-ticker-item .gm-ticker-down { color: #ff5a6e; }
.gm-markets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gm-markets-grid .gm-card-title,
.gm-markets-grid .gm-category-label { color: #fff; }
.gm-markets-grid .gm-category-label { background: rgba(255,255,255,0.15); }

/* ---- Opinion card ---- */
.gm-opinion-card {
  background: var(--gm-accent); color: #fff; padding: 24px; border-radius: 6px;
}
.gm-opinion-card .gm-category-label { background: rgba(255,255,255,0.2); color: #fff; }
.gm-opinion-card blockquote { font-size: 1.4rem; font-weight: 700; line-height: 1.25; margin: 12px 0; }
.gm-opinion-card p { font-size: 0.9rem; opacity: 0.9; }
.gm-opinion-byline { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 0.85rem; }
.gm-opinion-byline span {
  width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700;
}

/* ---- Ideas & Culture grid ---- */
.gm-culture-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---- GM247 Live (TV & FM) broadcast page ---- */
.gm-media-hub { background: var(--gm-footer-bg); color: var(--gm-footer-text); padding: 40px 20px 60px; }
.gm-media-hero { max-width: 900px; margin: 0 auto 40px; }
.gm-media-hero h1 { font-size: 2.2rem; margin: 8px 0; color: #fff; }
.gm-media-hero .gm-subhead { color: var(--gm-footer-muted); }
.gm-media-hero .gm-eyebrow { color: var(--gm-accent); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.04em; display: flex; align-items: center; gap: 8px; }
.gm-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gm-accent); display: inline-block; animation: gm-pulse 1.6s infinite; }
@keyframes gm-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.gm-channel { max-width: 900px; margin: 0 auto 48px; }
.gm-channel-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.gm-channel-heading h2 { margin: 2px 0; color: #fff; font-size: 1.6rem; }
.gm-channel-heading .gm-eyebrow { color: var(--gm-footer-muted); font-size: 0.75rem; text-transform: uppercase; margin: 0; }
.gm-channel-status {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; padding: 5px 12px; border-radius: 20px;
}
.gm-status-connecting { background: rgba(255,255,255,0.15); color: #fff; }
.gm-status-offline { background: rgba(255,255,255,0.08); color: var(--gm-footer-muted); }
.gm-status-live { background: var(--gm-accent); color: #fff; }

.gm-tv-stage { background: #000; border-radius: 6px; overflow: hidden; aspect-ratio: 16/9; }
.gm-tv-stage video { width: 100%; height: 100%; display: block; }
.gm-channel-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #15181d, #000); color: var(--gm-footer-muted);
}
.gm-channel-placeholder span { font-size: 1.2rem; opacity: 0.6; }
.gm-channel-placeholder span b { color: var(--gm-accent); }
.gm-channel-placeholder strong { font-size: 2.5rem; color: #fff; margin: 6px 0; }

.gm-radio-console { background: linear-gradient(160deg, #15181d, #000); border-radius: 6px; padding: 32px; text-align: center; }
.gm-radio-brand { font-size: 2.4rem; font-weight: 800; color: #fff; margin-bottom: 20px; }
.gm-radio-brand span { color: #fff; }
.gm-radio-brand strong { color: var(--gm-accent); }
.gm-radio-brand i { font-style: normal; color: #fff; }
.gm-radio-wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 60px; margin-bottom: 20px; }
.gm-radio-wave i {
  width: 3px; background: var(--gm-accent); border-radius: 2px; height: 12px;
  animation: gm-wave 1.2s ease-in-out infinite; animation-play-state: paused; opacity: 0.4;
}
.gm-radio-wave.gm-playing i { animation-play-state: running; opacity: 1; }
.gm-radio-wave i:nth-child(odd) { animation-duration: 0.8s; }
.gm-radio-wave i:nth-child(3n) { animation-duration: 1.1s; }
@keyframes gm-wave { 0%, 100% { height: 8px; } 50% { height: 40px; } }
.gm-radio-console audio { width: 100%; margin-top: 12px; }
.gm-radio-offline { color: var(--gm-footer-muted); }
.gm-channel .gm-meta-line { color: var(--gm-footer-muted); margin-top: 12px; text-align: center; }

/* ---- Responsive ---- */
@media (max-width: 780px) {
  .gm-top-stories-grid { grid-template-columns: 1fr; }
  .gm-section-row-grid { grid-template-columns: 1fr; }
  .gm-footer-inner { grid-template-columns: 1fr 1fr; }
  .gm-header-inner { flex-direction: column; align-items: flex-start; }
  .gm-ticker-row { grid-template-columns: repeat(2, 1fr); }
  .gm-markets-grid { grid-template-columns: 1fr; }
  .gm-culture-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) and (min-width: 781px) {
  .gm-top-stories-grid { grid-template-columns: 1fr 1fr; }
  .gm-latest-panel { grid-column: 1 / -1; }
}
