/* ICIJ News — public website theme (editorial news layout)
   Palette taken from the ICIJNEWS. logo: signal red #D80000 + off-white #F4F4F4,
   with near-black for chrome. Condensed Oswald headings echo the logo lettering. */
:root {
  --theme: #d80000;
  --theme-dark: #a30000;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --bg: #fff;
  --soft: #f4f4f4;
  --chrome: #111111;
  --heading: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Open Sans", "Segoe UI", Arial, sans-serif;
}
::selection { background: var(--theme); color: #fff; }
body { font-family: var(--body); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.6; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--theme); }
h1, h2, h3, h4 { font-family: var(--heading); font-weight: 600; letter-spacing: .2px; }
.text-theme { color: var(--theme); }
.skip-link { position: absolute; left: 8px; top: 8px; z-index: 2000; background: #fff; padding: 8px 12px; }
img.cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-placeholder.cover { width: 100%; height: 100%; }
.img-placeholder { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--theme), #7a0000); color: #f4f4f4; font-family: var(--heading); font-weight: 700; font-size: 1.7rem; letter-spacing: 2px; }
.img-placeholder span::after { content: "."; }

/* Buttons */
.btn-theme { background: var(--theme); border-color: var(--theme); color: #fff; }
.btn-theme:hover, .btn-theme:focus { background: var(--theme-dark); border-color: var(--theme-dark); color: #fff; }
.btn-load-more { border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; padding: 9px 28px; border-radius: 4px; }
.btn-load-more:hover { background: var(--theme); color: #fff; border-color: var(--theme); }

/* Top bar */
.top-bar { background: var(--chrome); color: #bdbdbd; font-size: 12.5px; border-bottom: 3px solid var(--theme); }
.top-bar .container { min-height: 36px; }
.top-links a, .top-social { color: #e2e2e2; }
.top-links a { text-transform: uppercase; font-weight: 600; letter-spacing: .4px; font-size: 12px; }
.top-links a:hover, .top-social:hover { color: #fff; }
.top-social { font-size: 14px; }

/* Header */
.site-header { background: #fff; padding: 18px 0; }
.site-logo { display: inline-flex; align-items: center; }
.site-logo img { height: 56px; width: auto; display: block; }
.header-tagline { font-family: var(--heading); font-size: 14px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); border-left: 3px solid var(--theme); padding-left: 12px; line-height: 1.3; }
@media (max-width: 575.98px) { .site-logo img { height: 44px; } }
/* legacy */ .logo-mark { background: var(--theme); color: #fff; font-family: var(--heading); font-weight: 900; font-size: 26px; padding: 2px 9px; border-radius: 4px; letter-spacing: .5px; margin-right: 6px; line-height: 1.2; }
.logo-word { font-family: var(--heading); font-weight: 900; font-size: 28px; color: #111; letter-spacing: .3px; }
.header-search { position: relative; width: 340px; }
.header-search .form-control { border-radius: 4px; padding-right: 44px; background: var(--soft); border-color: var(--line); }
.header-search .form-control:focus { border-color: var(--theme); box-shadow: 0 0 0 .2rem rgba(216,0,0,.15); }
.header-search .btn { position: absolute; right: 0; top: 0; height: 100%; color: var(--muted); }
.btn-nav-toggle { font-size: 26px; line-height: 1; padding: 4px 8px; }

/* Main navigation */
.main-nav { background: var(--theme); position: sticky; top: 0; z-index: 1030; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.nav-list { flex-wrap: wrap; }
.nav-list a { display: block; color: #fff; font-family: var(--heading); font-weight: 500; font-size: 15px; text-transform: uppercase; letter-spacing: .5px; padding: 13px 12px; }
@media (max-width: 1199.98px) { .nav-list a { font-size: 14px; padding: 13px 9px; } }
.nav-list a:hover, .nav-list a.active { background: var(--chrome); color: #fff; }
.mobile-nav { background: var(--chrome); color: #fff; border-right: 4px solid var(--theme); }
.mobile-nav .logo-word { color: #fff; font-size: 22px; }
.mobile-nav .logo-mark { font-size: 20px; }
.mobile-links li a { display: block; color: #e5e6ee; padding: 10px 2px; border-bottom: 1px solid rgba(255,255,255,.08); font-family: var(--heading); font-weight: 500; }

/* Breaking news ticker */
.breaking-bar { border-bottom: 1px solid var(--line); background: #fff; }
.breaking-bar .container { min-height: 44px; overflow: hidden; }
.breaking-label { background: var(--chrome); box-shadow: inset 4px 0 0 var(--theme); padding-left: 14px !important; color: #fff; font-family: var(--heading); font-weight: 600; font-size: 13px; letter-spacing: .6px; text-transform: uppercase; padding: 5px 10px; border-radius: 3px; white-space: nowrap; margin-right: 14px; flex-shrink: 0; }
.ticker { overflow: hidden; flex: 1; position: relative; mask-image: linear-gradient(90deg, transparent, #000 2%, #000 96%, transparent); }
.ticker-list { display: flex; gap: 48px; white-space: nowrap; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-list { animation-play-state: paused; }
.ticker-list a { font-size: 13.5px; font-weight: 600; }
.ticker-list li::before { content: "•"; color: var(--theme); margin-right: 10px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-list { animation: none; } .ticker { overflow-x: auto; } }

.site-main { padding: 24px 0 44px; min-height: 50vh; }
.site-breadcrumb { font-size: 13px; margin-bottom: 18px; }
.site-breadcrumb a { color: var(--muted); }

/* Featured grid */
.featured-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 6px; }
.featured-lead { grid-row: span 2; }
.post-overlay { position: relative; overflow: hidden; border-radius: 3px; background: #222; }
.overlay-link { display: block; height: 100%; color: #fff; }
.overlay-link:hover { color: #fff; }
.overlay-link img, .overlay-link .img-placeholder { transition: transform .5s ease; }
.overlay-link:hover img { transform: scale(1.04); }
.overlay-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 18px 16px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.82)); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.overlay-title { font-family: var(--heading); font-size: 17px; font-weight: 600; line-height: 1.35; margin: 0; color: #fff; display: block; }
.overlay-title-lg { font-size: 26px; line-height: 1.25; }
.overlay-meta { font-size: 12px; color: rgba(255,255,255,.8); }
.post-overlay-sm { height: 200px; margin-bottom: 14px; }
@media (max-width: 991.98px) {
  .featured-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 180px 180px; }
  .featured-lead { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 575.98px) {
  .featured-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 210px; }
  .featured-lead { grid-column: auto; }
  .overlay-title-lg { font-size: 20px; }
}

/* Section headings (Varient-style underline) */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; border-bottom: 2px solid var(--theme); margin-bottom: 18px; }
.section-title, .widget-title { font-size: 19px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; margin: 0 0 -2px; }
.section-title span, .widget-title span { display: inline-block; padding: 4px 12px 5px; margin-bottom: -0px; background: var(--theme); color: #fff; border-radius: 3px 3px 0 0; }
.section-more { font-size: 13px; color: var(--muted); padding-bottom: 8px; }

/* Category badges */
.cat-badge { display: inline-block; padding: 3px 8px; border-radius: 2px; font-family: var(--heading); font-size: 11.5px; font-weight: 500; line-height: 1.4; text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; }
a.cat-badge:hover { filter: brightness(1.1); }
.img-badge { position: absolute; left: 10px; top: 10px; }

/* Latest posts list */
.post-list-item { display: flex; gap: 20px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.post-list-item:last-child { border-bottom: 0; }
.post-list-img { position: relative; flex: 0 0 300px; height: 190px; border-radius: 3px; overflow: hidden; background: var(--soft); }
.post-list-body { flex: 1; min-width: 0; }
.post-title { font-size: 21px; font-weight: 600; line-height: 1.35; margin: 4px 0 6px; }
.post-title-sm { font-size: 16px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.post-source { color: var(--theme); font-weight: 600; }
.post-excerpt { color: #555; font-size: 14px; margin: 0; }
.post-cats { display: flex; flex-wrap: wrap; gap: 4px; }
@media (max-width: 767.98px) {
  .post-list-item { flex-direction: column; gap: 12px; }
  .post-list-img { flex-basis: auto; height: 210px; }
}

/* Grid card (related) */
.post-grid-img { display: block; height: 170px; border-radius: 3px; overflow: hidden; margin-bottom: 10px; background: var(--soft); }

/* Sidebar */
.sidebar { position: sticky; top: 64px; }
.widget { margin-bottom: 34px; }
.widget-title { border-bottom: 2px solid var(--theme); margin-bottom: 18px; }
.post-small { display: flex; gap: 12px; margin-bottom: 16px; }
.post-small-img { flex: 0 0 100px; height: 72px; border-radius: 3px; overflow: hidden; background: var(--soft); }
.post-small-img .img-placeholder { font-size: 1rem; }
.post-small-title { font-size: 15px; font-weight: 500; line-height: 1.4; margin: 0 0 4px; }
.follow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.follow-btn { color: #fff; padding: 8px 10px; border-radius: 3px; font-size: 13px; font-weight: 600; }
.follow-btn:hover { color: #fff; opacity: .9; }
.follow-facebook { background: #3b5998; } .follow-twitter-x { background: #111; } .follow-linkedin { background: #0a66c2; }
.follow-youtube { background: #e52d27; } .follow-telegram { background: #229ed9; } .follow-rss { background: #f26522; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud a { border: 1px solid var(--line); padding: 4px 10px; font-size: 12.5px; border-radius: 3px; color: #444; }
.tag-cloud a:hover { background: var(--theme); border-color: var(--theme); color: #fff; }
.trending-list li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--line); font-weight: 600; font-size: 14px; line-height: 1.4; }
.trend-num { font-weight: 600; flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--theme); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--heading); font-size: 13px; }

/* Listing pages */
.listing-head { border-left: 4px solid var(--theme); padding: 4px 0 4px 16px; margin-bottom: 24px; }
.listing-title { font-size: 32px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin: 0 0 4px; }
.listing-intro { color: var(--muted); margin: 0; }
.empty-state { text-align: center; padding: 48px 16px; background: var(--soft); border-radius: 6px; color: #555; }
.empty-state > i { font-size: 2.2rem; color: var(--theme); display: block; margin-bottom: 8px; }
.pagination .page-link { color: var(--ink); }
.pagination .active > .page-link { background: var(--theme); border-color: var(--theme); color: #fff; }

/* Article page */
.article-title { font-size: 38px; font-weight: 600; line-height: 1.22; margin: 6px 0 12px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 18px; }
.article-meta a { color: var(--theme); font-weight: 600; }
.article-figure { margin: 0 0 20px; }
.article-figure img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 3px; background: var(--soft); }
.article-figure .img-placeholder { height: 360px; border-radius: 3px; font-size: 3rem; }
@media (max-width: 575.98px) { .article-figure .img-placeholder { height: 210px; } }
.article-figure figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.article-body { font-size: 16.5px; line-height: 1.8; overflow-wrap: anywhere; }
.article-body img { max-width: 100%; height: auto; }
.article-body a { color: var(--theme); text-decoration: underline; }
.article-lead { font-size: 18px; color: #333; }
.read-original { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; background: var(--soft); border: 1px solid var(--line); border-left: 4px solid var(--theme); padding: 18px 20px; margin: 26px 0; border-radius: 4px; }
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share-label { font-weight: 700; font-family: var(--heading); margin-right: 4px; }
.share-btn { width: 36px; height: 36px; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; color: #fff; border: 0; font-size: 15px; }
.share-btn:hover { color: #fff; opacity: .88; }
.share-facebook { background: #3b5998; } .share-x { background: #111; } .share-linkedin { background: #0a66c2; } .share-whatsapp { background: #25d366; }
.share-telegram { background: #229ed9; } .share-email { background: #6c757d; } .share-copy { background: var(--theme); }
.related { margin-top: 34px; }
.related .section-title { border-bottom: 2px solid var(--line); margin-bottom: 18px; }
@media (max-width: 575.98px) { .article-title { font-size: 25px; } .listing-title { font-size: 23px; } }

.static-page { max-width: 820px; }
.rss-list li, .contact-list li { padding: 6px 0; word-break: break-all; }

/* Footer */
.site-footer { background: var(--chrome); color: #b3b3b3; font-size: 14px; padding-top: 48px; border-top: 4px solid var(--theme); }
.site-footer a { color: #e0e0e0; }
.site-footer a:hover { color: #fff; }
.footer-logo { display: inline-flex; align-items: center; margin-bottom: 12px; }
.footer-logo .logo-word { color: #fff; }
.footer-tagline { color: #fff; font-family: var(--heading); font-size: 16px; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 8px; }
.footer-about { font-size: 13.5px; }
.footer-title { color: #fff; font-size: 17px; font-weight: 500; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--theme); display: inline-block; }
.footer-links li { padding: 4px 0; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 34px; height: 34px; border-radius: 3px; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--theme); }
.newsletter-form .form-control { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #fff; }
.newsletter-form .form-control::placeholder { color: #9a9a9a; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.footer-contact li { padding: 3px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 36px; padding: 16px 0; font-size: 13px; }
.back-top { width: 34px; height: 34px; border-radius: 3px; background: var(--theme); display: inline-flex; align-items: center; justify-content: center; color: #fff !important; }

/* Maintenance */
.maintenance-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--soft); font-family: var(--body); margin: 0; padding: 16px; }
.maintenance-card { background: #fff; max-width: 520px; padding: 40px; border-radius: 8px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.maintenance-logo { margin-bottom: 10px; }
.maintenance-logo img { height: 56px; width: auto; }
.maintenance-tagline { font-family: var(--heading); text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.maintenance-card { border-top: 5px solid var(--theme); }

/* Brand accents */
.mobile-nav .offcanvas-title img { height: 38px; width: auto; }
.footer-logo img { height: 48px; width: auto; }
.read-original .btn-theme { font-family: var(--heading); text-transform: uppercase; letter-spacing: .5px; }
.btn-theme { font-weight: 600; }
.share-copy { background: var(--chrome); }
