/* GLM Omnimedia News — original editorial stylesheet
   Structure inspired by classic Christian news magazines; all design original. */

:root {
  --navy: #1c2b45;
  --navy-dark: #121d31;
  --gold: #c19a3f;
  --gold-light: #e8d9ae;
  --paper: #fbf9f4;
  --ink: #232323;
  --muted: #6b6f76;
  --line: #e3ddd0;
  --card-bg: #ffffff;
  --badge-church: #7a2e2e;
  --badge-liberty: #1f5c4d;
  --badge-world: #2e4a7a;
  --badge-culture: #8a5a1d;
  --badge-theology: #4a2e6e;
  --badge-missions: #2e6e5a;
  --badge-latest: #555;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
}

a { color: var(--navy); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Utility bar ---------- */
.utility-bar {
  background: var(--navy-dark);
  color: #cfd6e4;
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.utility-bar .container {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 7px; padding-bottom: 7px; gap: 12px; flex-wrap: wrap;
}
.utility-bar .soli { color: var(--gold-light); font-style: italic; font-family: "Source Serif 4", Georgia, serif; }
.utility-bar .dateline { text-transform: uppercase; font-size: 12px; }

/* ---------- Masthead ---------- */
.masthead { background: #fff; border-bottom: 3px double var(--gold); text-align: center; padding: 26px 16px 20px; }
.masthead .brandmark {
  display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy);
}
.masthead .brand-logo { width: 72px; height: 72px; flex: none; border-radius: 8px; }
/* Legacy: pages not yet rebuilt still carry the old flame mark. */
.masthead .flame { width: 46px; height: 46px; flex: none; }
.masthead h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800; font-size: clamp(30px, 5vw, 52px);
  letter-spacing: 0.01em; line-height: 1.05; margin: 0;
}
.masthead .tagline {
  margin-top: 8px; font-style: italic; color: var(--muted); font-size: 16px;
}

/* ---------- Nav ---------- */
.main-nav { background: var(--navy); position: sticky; top: 0; z-index: 50; }
.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; }
.main-nav a {
  display: block; padding: 13px 18px; color: #eef1f7; text-decoration: none;
  font-family: "Source Sans 3", Arial, sans-serif; font-size: 14px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.main-nav a:hover, .main-nav a:focus { background: var(--navy-dark); color: var(--gold-light); }

/* ---------- Hero ---------- */
.hero { margin: 28px 0 8px; }
.hero-card {
  display: grid; grid-template-columns: 1.15fr 1fr; background: var(--card-bg);
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(28,43,69,0.06);
}
.hero-card .hero-img { min-height: 320px; }
.hero-card .hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-card .hero-text { padding: 30px 32px; display: flex; flex-direction: column; justify-content: center; }
.hero-card h2 {
  font-family: "Playfair Display", Georgia, serif; font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.2; margin: 10px 0 12px;
}
.hero-card h2 a { color: var(--ink); text-decoration: none; }
.hero-card h2 a:hover { color: var(--navy); text-decoration: underline; }
.hero-card .summary { color: #3c3c3c; margin-bottom: 14px; }

.badge {
  display: inline-block; font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; background: var(--badge-latest); padding: 4px 10px; border-radius: 3px;
}
.badge.church-ministry { background: var(--badge-church); }
.badge.religious-liberty { background: var(--badge-liberty); }
.badge.world { background: var(--badge-world); }
.badge.culture-family { background: var(--badge-culture); }
.badge.theology { background: var(--badge-theology); }
.badge.missions { background: var(--badge-missions); }
.badge.breaking { background: #c0392b; margin-right: 6px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.55; } }

.meta {
  font-family: "Source Sans 3", Arial, sans-serif; font-size: 13.5px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center;
}
.meta .byline { font-weight: 600; color: var(--navy); }
.meta a { color: var(--navy); }

/* ---------- Layout ---------- */
.content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 34px; margin: 26px 0 40px; }

.section-title {
  font-family: "Playfair Display", Georgia, serif; font-size: 26px; color: var(--navy);
  border-bottom: 2px solid var(--gold); padding-bottom: 8px; margin: 30px 0 18px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.section-title .count { font-family: "Source Sans 3", Arial, sans-serif; font-size: 13px; color: var(--muted); font-weight: 400; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.card {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 1px 6px rgba(28,43,69,0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(28,43,69,0.10); }
.card .thumb { aspect-ratio: 16/9; overflow: hidden; background: #e9e4d6; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
/* Shared placeholder for stories without an image: same emblem as the old
   inline-SVG <img>, served once from CSS instead of repeated per card. */
.card .thumb-empty { display: block; background: #141824; }
.hero-card .hero-img-empty { display: block; background: #141824; }
.card .card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card h3 { font-family: "Playfair Display", Georgia, serif; font-size: 19px; line-height: 1.3; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--navy); text-decoration: underline; }
.card .summary { font-size: 15px; color: #454545; flex: 1; }
.card .meta { font-size: 12.5px; border-top: 1px solid var(--line); padding-top: 10px; }

/* topic rows */
.topic-row { margin-bottom: 6px; }
.topic-list { list-style: none; }
.topic-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.topic-list li:last-child { border-bottom: none; }
.topic-list h4 { font-family: "Playfair Display", Georgia, serif; font-size: 18px; line-height: 1.35; margin: 6px 0 4px; }
.topic-list h4 a { color: var(--ink); text-decoration: none; }
.topic-list h4 a:hover { text-decoration: underline; color: var(--navy); }
.topic-list .meta { font-size: 12.5px; }
.coming-soon {
  font-style: italic; color: var(--muted); font-size: 15.5px;
  padding: 6px 0 10px;
}

/* ---------- Sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 26px; }
.widget { background: var(--card-bg); border: 1px solid var(--line); border-radius: 6px; padding: 20px 22px; }
.widget h3 {
  font-family: "Playfair Display", Georgia, serif; font-size: 19px; color: var(--navy);
  border-bottom: 2px solid var(--gold); padding-bottom: 8px; margin-bottom: 14px;
}
.most-read { list-style: none; counter-reset: mr; }
.most-read li { counter-increment: mr; padding: 10px 0 10px 40px; position: relative; border-bottom: 1px dashed var(--line); font-size: 15.5px; line-height: 1.4; }
.most-read li:last-child { border-bottom: none; }
.most-read li::before {
  content: counter(mr); position: absolute; left: 0; top: 8px;
  font-family: "Playfair Display", Georgia, serif; font-size: 24px; font-weight: 800; color: var(--gold);
}
.most-read a { color: var(--ink); text-decoration: none; }
.most-read a:hover { text-decoration: underline; color: var(--navy); }
.widget p { font-size: 15px; color: #3d3d3d; }
.verse-text { font-style: italic; font-size: 16.5px; color: var(--navy-dark); }
.verse-ref { display: block; margin-top: 8px; font-style: normal; font-family: "Source Sans 3", Arial, sans-serif; font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---------- Story page ---------- */
.story-wrap { max-width: 780px; margin: 30px auto 50px; padding: 0 20px; }
.breadcrumb { font-family: "Source Sans 3", Arial, sans-serif; font-size: 13.5px; margin-bottom: 18px; }
.breadcrumb a { color: var(--navy); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.story-head h1 {
  font-family: "Playfair Display", Georgia, serif; font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.18; margin: 12px 0 14px; color: var(--ink);
}
.story-head .meta { margin-bottom: 20px; font-size: 14px; }
.story-figure { margin: 0 0 26px; }
.story-figure img { width: 100%; border-radius: 6px; border: 1px solid var(--line); }
.story-figure figcaption {
  font-family: "Source Sans 3", Arial, sans-serif; font-size: 12.5px; color: var(--muted);
  padding-top: 8px; font-style: italic;
}
.story-body { font-size: 18px; }
.story-body p { margin-bottom: 1.25em; }
.commentary-box {
  border-left: 4px solid var(--gold); background: #fdf6e3;
  padding: 18px 22px; margin: 26px 0; border-radius: 0 6px 6px 0;
}
.commentary-box .who {
  font-family: "Source Sans 3", Arial, sans-serif; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--badge-church); margin-bottom: 8px;
}
.commentary-box p { font-style: italic; margin: 0; }
.takeaway-box {
  background: var(--navy); color: #f2ecdd; border-radius: 6px;
  padding: 22px 26px; margin: 30px 0;
}
.takeaway-box .label {
  font-family: "Source Sans 3", Arial, sans-serif; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-light); margin-bottom: 10px;
}
.takeaway-box p { margin: 0; font-size: 17px; }
.source-line {
  font-family: "Source Sans 3", Arial, sans-serif; font-size: 15px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 14px 0; margin: 26px 0; color: var(--muted);
}
.source-line a { color: var(--navy); font-weight: 600; }
.story-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.btn {
  display: inline-block; font-family: "Source Sans 3", Arial, sans-serif; font-size: 14px; font-weight: 600;
  text-decoration: none; background: var(--navy); color: #fff; padding: 11px 22px; border-radius: 4px;
}
.btn:hover { background: var(--navy-dark); color: var(--gold-light); }
.btn.ghost { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn.ghost:hover { background: var(--navy); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #c9d1e2; margin-top: 20px; }
.site-footer .container { padding-top: 40px; padding-bottom: 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; margin-bottom: 28px; }
.site-footer h4 {
  font-family: "Playfair Display", Georgia, serif; color: #fff; font-size: 18px; margin-bottom: 12px;
}
.site-footer p { font-size: 14.5px; color: #aeb7cc; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #c9d1e2; text-decoration: none; font-family: "Source Sans 3", Arial, sans-serif; font-size: 14px; }
.footer-links a:hover { color: var(--gold-light); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid #2c3c5c; padding-top: 18px; display: flex; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; font-family: "Source Sans 3", Arial, sans-serif; font-size: 13px; color: #8f99b3;
}
.footer-bottom .soli { font-family: "Source Serif 4", Georgia, serif; font-style: italic; color: var(--gold-light); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .content-grid { grid-template-columns: 1fr; }
  .hero-card { grid-template-columns: 1fr; }
  .hero-card .hero-img { min-height: 220px; max-height: 340px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .main-nav a { padding: 11px 12px; font-size: 12.5px; }
  .footer-grid { grid-template-columns: 1fr; }
  .story-body { font-size: 17px; }
}

/* Brand lockup shown wherever a story has no photo: the ministry's flaming
   torch over the open Bible beside the GLM Omnimedia News name. Replaces the
   old plain-flame placeholder emblem (Pastor Whyte's direction, 2026-11-04). */
.brand-lockup { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 100%; background: #141824; color: #f5edd8; padding: 14px; box-sizing: border-box; }
.brand-lockup-name { font-family: "Playfair Display", Georgia, serif; font-weight: 700; line-height: 1.15; }
.card .thumb .brand-lockup img { width: auto; height: 42px; object-fit: contain; flex: none; }
.brand-lockup-thumb .brand-lockup-name { font-size: 15px; }
.hero-card .hero-img .brand-lockup img { width: auto; height: 84px; object-fit: contain; flex: none; }
.brand-lockup-hero .brand-lockup-name { font-size: 25px; }
.story-figure .brand-lockup { aspect-ratio: 16/9; border-radius: 6px; border: 1px solid var(--line); }
.story-figure .brand-lockup img { width: auto; height: 104px; flex: none; }
.brand-lockup-story .brand-lockup-name { font-size: clamp(20px, 3.4vw, 30px); }
