/* Inspire Media — public website */
/* Sky-blue theme. --brand is the accent; --brand-strong is used wherever white text sits on it (WCAG AA). */
:root {
    --brand: #0ea5e9;
    --brand-strong: #0277b6;
    --brand-dark: #035c8c;
    --navy: #0c4a6e;
    --navy-deep: #082f49;
    --live: #dc2626;
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --line: #dbe7f0;
    --paper: #ffffff;
    --soft: #f0f9ff;
    --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body { font-family: var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.skip-link { position: absolute; z-index: 2000; background: var(--ink); color: #fff; padding: .5rem 1rem; }

.btn-brand { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; font-weight: 600; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-icon { background: transparent; border: 0; padding: .25rem .5rem; color: var(--ink); }

/* Top bar & header */
.topbar { background: var(--navy-deep); color: #bae6fd; font-size: .8rem; padding: .4rem 0; }
.topbar a:hover { color: #fff; }
.site-header { background: #fff; border-bottom: 3px solid var(--brand); }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--serif); font-weight: 800; color: var(--ink); }
.brand-mark { background: var(--brand-strong); color: #fff; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 6px; font-size: 1.15rem; letter-spacing: -.5px; }
.brand-name { font-size: 1.6rem; letter-spacing: -.5px; }
.brand-light { color: #fff; }
@media (max-width: 575.98px) { .brand-name { font-size: 1.25rem; } .brand-mark { width: 36px; height: 36px; } }

.main-nav { border-top: 1px solid var(--line); }
.main-nav .nav-link { color: var(--ink); font-weight: 600; font-size: .9rem; padding: .8rem .85rem; border-bottom: 3px solid transparent; }
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--brand-strong); border-bottom-color: var(--brand); }
.main-nav .dropdown-menu { border-radius: 0; border-top: 3px solid var(--brand); }
.search-bar { background: var(--soft); border-top: 1px solid var(--line); }

.btn-live { background: var(--live); color: #fff; font-weight: 700; text-transform: uppercase; font-size: .75rem; letter-spacing: .5px; border-radius: 4px; }
.btn-live:hover { background: #b91c1c; color: #fff; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #fff; margin-right: 4px; animation: pulse 1.4s infinite; vertical-align: middle; }
.mobile-nav .live-dot, .text-danger .live-dot { background: var(--live); }
.live-dot-light { background: #fff; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } .ticker-track { animation: none !important; } }

.mobile-nav a { display: block; padding: .75rem 1.25rem; border-bottom: 1px solid var(--line); font-weight: 500; }

/* Breaking news ticker */
.breaking-bar { background: var(--brand-strong); color: #fff; font-size: .9rem; overflow: hidden; }
.breaking-label { background: var(--live); padding: .55rem .9rem; font-weight: 700; text-transform: uppercase; font-size: .75rem; letter-spacing: .5px; white-space: nowrap; flex-shrink: 0; }
.ticker { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker-track { display: inline-flex; gap: 3rem; white-space: nowrap; padding-left: 1.5rem; animation: ticker 45s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-track a { color: #fff; font-weight: 500; }
.ticker-track a::before { content: "●"; font-size: .6rem; margin-right: .6rem; vertical-align: middle; opacity: .7; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Section headers */
.section-head { display: flex; justify-content: space-between; align-items: baseline; border-top: 3px solid var(--cat, var(--ink)); padding-top: .6rem; margin-bottom: 1.25rem; }
.section-head h2 { font-family: var(--serif); font-weight: 800; font-size: 1.5rem; margin: 0; }
.section-head-light { border-color: #fff; }
.section-head-light h2 { color: #fff; }
.section-more { font-size: .85rem; font-weight: 600; color: var(--muted); }
.home-section + .home-section { margin-top: 3.5rem; }
.band-dark { background: linear-gradient(135deg, var(--navy), var(--navy-deep)); }
.band-dark .story-title a, .band-dark .story-meta { color: #fff; }
.band-dark .story-meta { opacity: .7; }
.band-light { background: var(--soft); }

/* Story cards */
.story-card { position: relative; }
.story-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); border-radius: 4px; }
.story-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.story-card:hover .story-media img { transform: scale(1.03); }
.story-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--cat), #111418); }
.story-body { padding-top: .75rem; }
.story-cat { display: inline-block; color: var(--cat, var(--brand-strong)); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; margin-bottom: .3rem; }
.story-title { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; line-height: 1.3; margin-bottom: .4rem; }
.story-title a:hover { color: var(--brand-strong); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.story-excerpt { color: var(--ink-2); font-size: .93rem; margin-bottom: .4rem; }
.story-meta { color: var(--muted); font-size: .78rem; display: flex; gap: .35rem; flex-wrap: wrap; }
.badge-sponsored { display: inline-block; background: #fef3c7; color: #92400e; font-size: .65rem; font-weight: 700; text-transform: uppercase; padding: .1rem .4rem; border-radius: 3px; margin-left: .4rem; }

.story-horizontal, .story-horizontal-lg { display: grid; grid-template-columns: 38% 1fr; gap: 1.25rem; align-items: start; }
.story-horizontal-lg { grid-template-columns: 58% 1fr; gap: 2rem; align-items: center; }
.story-horizontal .story-body, .story-horizontal-lg .story-body { padding-top: 0; }
@media (max-width: 575.98px) { .story-horizontal { grid-template-columns: 40% 1fr; gap: .8rem; } .story-horizontal .story-excerpt { display: none; } .story-horizontal-lg { grid-template-columns: 1fr; } }

.story-overlay .story-media { aspect-ratio: 16 / 10; border-radius: 6px; }
.story-overlay .story-body { position: absolute; inset: auto 0 0 0; padding: 2rem 1.5rem 1.5rem; background: linear-gradient(transparent, rgba(0,0,0,.88)); border-radius: 0 0 6px 6px; color: #fff; }
.story-overlay .story-title a, .story-overlay .story-excerpt, .story-overlay .story-meta { color: #fff; }
.story-overlay .story-cat { background: var(--cat); color: #fff; padding: .15rem .5rem; border-radius: 3px; }
.display-headline { font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.15; }
@media (max-width: 575.98px) { .story-overlay .story-excerpt { display: none; } .story-overlay .story-media { aspect-ratio: 4 / 5; } }

.trending-list { list-style: none; padding: 0; margin: 0; counter-reset: t; }
.trending-list li { counter-increment: t; position: relative; padding: .85rem 0 .85rem 2.6rem; border-bottom: 1px solid var(--line); }
.trending-list li::before { content: counter(t); position: absolute; left: 0; top: .6rem; font-family: var(--serif); font-size: 1.9rem; font-weight: 800; color: var(--brand); line-height: 1; }
.trending-list .story-cat { display: block; margin-bottom: .1rem; }
.trending-title { font-family: var(--serif); font-weight: 700; line-height: 1.3; display: block; }

.live-teaser { background: linear-gradient(135deg, var(--navy), var(--navy-deep)); border-radius: 6px; padding: 1.5rem; }
.newsletter-box { background: var(--soft); border-top: 3px solid var(--brand); padding: 1.25rem; border-radius: 0 0 6px 6px; }

/* Listing pages */
.listing-header { background: var(--soft); border-bottom: 4px solid var(--cat, var(--brand)); padding: 2.25rem 0; }
.listing-title { font-family: var(--serif); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.listing-desc { color: var(--ink-2); max-width: 720px; margin-bottom: 0; }
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.empty-state i { font-size: 3rem; display: block; margin-bottom: 1rem; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; background: #fff; }
.chip:hover { border-color: var(--brand); color: var(--brand-strong); }
.pagination .page-link { color: var(--ink); }
.pagination .page-item.active .page-link { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }

/* Article */
.article-title { font-family: var(--serif); font-weight: 800; font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.12; margin: .4rem 0 .8rem; letter-spacing: -.5px; }
.article-standfirst { font-size: 1.25rem; color: var(--ink-2); line-height: 1.5; }
.article-byline { display: flex; align-items: center; gap: .75rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 1.25rem 0 1rem; }
.article-hero { margin: 0 0 2rem; }
.article-hero img { width: 100%; height: auto; border-radius: 4px; }
.article-hero figcaption, .article-body figcaption { font-size: .85rem; color: var(--muted); padding-top: .5rem; }
.credit { font-style: italic; }
.article-body { font-family: var(--serif); font-size: 1.2rem; line-height: 1.75; color: #1f2328; }
.article-body p { margin-bottom: 1.4rem; }
.article-body h2, .article-body h3 { font-family: var(--serif); font-weight: 800; margin: 2.25rem 0 1rem; }
.article-body a { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 3px; }
.article-body img { max-width: 100%; height: auto; border-radius: 4px; }
.article-body figure { margin: 2rem 0; }
.article-body figure.image-style-side, .article-body .image-style-align-right { float: right; max-width: 45%; margin: .4rem 0 1rem 1.5rem; }
.article-body .image-style-align-left { float: left; max-width: 45%; margin: .4rem 1.5rem 1rem 0; }
.article-body blockquote { border-left: 4px solid var(--brand); padding: .25rem 0 .25rem 1.25rem; margin: 2rem 0; font-size: 1.35rem; font-style: italic; color: var(--ink); }
.article-body table { width: 100%; font-family: var(--sans); font-size: .95rem; border-collapse: collapse; margin: 1.5rem 0; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: .5rem .75rem; }
.article-body th { background: var(--soft); }
.article-body figure.media iframe, .article-body iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 4px; }
.article-body::after { content: ""; display: table; clear: both; }
@media (max-width: 575.98px) { .article-body { font-size: 1.1rem; } .article-body figure.image-style-side, .article-body .image-style-align-right, .article-body .image-style-align-left { float: none; max-width: 100%; margin: 1.5rem 0; } }

.share-bar { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.share-bar a, .share-bar button { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.share-bar a:hover, .share-bar button:hover { background: var(--brand-strong); color: #fff; border-color: var(--brand-strong); }
.live-stage .share-bar a, .live-stage .share-bar button { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.live-stage .share-bar .text-muted { color: rgba(255,255,255,.6) !important; }

.article-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0; }
.article-tags a { background: var(--soft); padding: .3rem .75rem; border-radius: 999px; font-size: .85rem; font-weight: 500; }
.author-box { display: flex; gap: 1rem; align-items: center; background: var(--soft); padding: 1.25rem; border-radius: 6px; }
.sponsored-note { background: #fef3c7; color: #78350f; font-size: .85rem; padding: .5rem .75rem; border-radius: 4px; }
.preview-banner { background: #f59e0b; color: #111; padding: .6rem 0; font-size: .9rem; }

/* Team, contact, live */
.team-card { border: 1px solid var(--line); border-radius: 8px; padding: 1.25rem; height: 100%; }
.team-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.contact-card { background: var(--soft); border-radius: 8px; padding: 1.5rem; }
.live-stage { background: linear-gradient(135deg, #082f49, #020617); }
.live-player { background: #000; border-radius: 6px; overflow: hidden; }
.live-player video { width: 100%; height: 100%; }
.live-offline { display: grid; place-items: center; color: #9ca3af; text-align: center; padding: 2rem; }

/* Social */
.social { display: inline-flex; gap: .5rem; }
.social a { display: inline-grid; place-items: center; }
.social-sm a { font-size: .9rem; }
.social-footer a, .social-dark a { width: 36px; height: 36px; border-radius: 50%; }
.social-footer a { background: rgba(255,255,255,.08); color: #fff; }
.social-footer a:hover { background: var(--brand-strong); color: #fff; }
.social-dark a { background: var(--brand-strong); color: #fff; }

/* Footer */
.site-footer { background: linear-gradient(180deg, var(--navy), var(--navy-deep)); color: #e0f2fe; padding: 3.5rem 0 1.5rem; margin-top: 2rem; }
.footer-title { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .8px; font-weight: 700; margin-bottom: 1rem; }
.footer-links li { margin-bottom: .45rem; font-size: .9rem; overflow-wrap: anywhere; } /* long emails must wrap in the narrow phone column */
.footer-links a[href^="mailto:"] { word-break: break-all; } /* keeps the icon on the same line as the address */
/* A g-5 row's negative margins (1.5rem) exceed the container padding on phones and cause sideways scrolling. */
@media (max-width: 575.98px) { .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; } }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.25rem; display: flex; justify-content: space-between; font-size: .8rem; flex-wrap: wrap; gap: .5rem; }

@media print {
    .topbar, .site-header, .breaking-bar, .site-footer, aside, .share-bar, .article-tags, .author-box { display: none !important; }
}

.text-brand { color: var(--brand-strong) !important; }
.btn-dark { --bs-btn-bg: var(--navy); --bs-btn-border-color: var(--navy); --bs-btn-hover-bg: var(--navy-deep); --bs-btn-hover-border-color: var(--navy-deep); }
.btn-outline-dark { --bs-btn-color: var(--navy); --bs-btn-border-color: var(--navy); --bs-btn-hover-bg: var(--navy); --bs-btn-hover-border-color: var(--navy); --bs-btn-active-bg: var(--navy); }
.form-control:focus, .form-select:focus { border-color: #7dd3fc; box-shadow: 0 0 0 .25rem rgba(14, 165, 233, .25); }
.breadcrumb a { color: var(--brand-strong); }

/* ---- Phase 2 components ---- */
.chip-active { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.chip-active:hover { color: #fff; }

/* Video cards */
.video-card .story-media { position: relative; }
.video-play { position: absolute; left: .6rem; bottom: .6rem; width: 40px; height: 40px; border-radius: 50%; background: rgba(2, 119, 182, .92); color: #fff; display: grid; place-items: center; font-size: 1.3rem; }
.video-duration { position: absolute; right: .5rem; bottom: .5rem; background: rgba(15, 23, 42, .85); color: #fff; font-size: .72rem; font-weight: 600; padding: .1rem .4rem; border-radius: 3px; }

/* Podcasts */
.podcast-card { display: block; }
.podcast-cover { background: linear-gradient(135deg, var(--brand), var(--navy)); border-radius: 8px; overflow: hidden; }
.podcast-cover img { width: 100%; height: 100%; object-fit: cover; }
.podcast-cover span { place-items: center; color: #fff; font-size: 2.5rem; }
.podcast-card:hover .podcast-cover { box-shadow: 0 6px 18px rgba(2, 119, 182, .3); }
.episode-row { display: flex; gap: 1rem; align-items: center; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.episode-row:hover { border-color: var(--brand); }
.episode-play { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--brand-strong); color: #fff; display: grid; place-items: center; font-size: 1.4rem; }
.episode-play:hover { background: var(--brand-dark); color: #fff; }
.audio-player { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; }

/* Live schedule */
.schedule-list li { display: flex; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.schedule-time { font-weight: 700; color: var(--brand-strong); min-width: 3rem; font-variant-numeric: tabular-nums; }

/* Advertising */
.ad-slot { text-align: center; }
.ad-slot img { max-width: 100%; height: auto; display: inline-block; }
.ad-label { display: block; font-size: .65rem; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-bottom: .25rem; }

/* Comments */
.comment { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.comment-reply { margin-left: 2.75rem; padding: .75rem 0 0; border-bottom: 0; }
.comment-body { white-space: pre-line; overflow-wrap: anywhere; }

/* Uploaded logo */
.brand-logo { height: 46px; width: auto; max-width: 260px; object-fit: contain; }
.brand-logo-footer { height: 44px; width: auto; max-width: 240px; object-fit: contain; }
@media (max-width: 575.98px) { .brand-logo { height: 36px; max-width: 170px; } }
