/*
Theme Name:  Exposed News
Theme URI:   https://exposednews.co.uk
Author:      Exposed News Editorial
Author URI:  https://exposednews.co.uk
Description: Agency-level investigative journalism theme. Full SEO, structured data, internal linking architecture.
Version:     2.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: exposed-news
Tags:        news, journalism, investigative, seo, two-columns
*/

/* ================================================================
   EXPOSED NEWS — Design System v1.0
   Palette derived from: investigative dossier / redacted documents
   — deep ink navy, evidence-tape red, aged newsprint, monospace data
   ================================================================ */

:root {
  /* COLOUR TOKENS */
  --ink:        #0C1220;   /* primary text / header bg */
  --ink-mid:    #1E2D45;   /* card backgrounds, nav */
  --red:        #BF2D2D;   /* accent: evidence tape, CTAs, badges */
  --red-light:  #E03535;   /* hover states */
  --paper:      #F7F5F0;   /* page background — aged newsprint */
  --paper-2:    #EFECEA;   /* card / section bg */
  --paper-3:    #E3DFD8;   /* borders, dividers */
  --muted:      #6B7A8F;   /* secondary text, meta */
  --white:      #FFFFFF;

  /* TYPOGRAPHY */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* SPACING */
  --max-w:   1180px;
  --gutter:  clamp(16px, 4vw, 28px);
  --radius:  2px;

  /* TRANSITIONS */
  --t: 140ms ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── CONTAINER ── */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }

/* ================================================================
   MASTHEAD
   ================================================================ */
.masthead {
  background: var(--ink);
  color: var(--white);
  border-bottom: 3px solid var(--red);
}
.masthead-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px var(--gutter);
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
  color: rgba(255,255,255,.4);
  font-family: var(--font-mono);
}
.masthead-top a { color: rgba(255,255,255,.4); }
.masthead-top a:hover { color: var(--white); text-decoration: none; }

/* SIGNATURE ELEMENT: Evidence-tape ticker */
.evidence-tape {
  background: var(--red);
  padding: 7px var(--gutter);
  font-size: 11.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: .4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
}
.et-label {
  background: var(--white);
  color: var(--red);
  padding: 2px 8px;
  font-size: 10px;
  letter-spacing: 1px;
  flex-shrink: 0;
  white-space: nowrap;
}
.et-scroll {
  white-space: nowrap;
  animation: scroll-ticker 50s linear infinite;
  color: rgba(255,255,255,.9);
}
@keyframes scroll-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.masthead-brand {
  text-align: center;
  padding: 28px var(--gutter) 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  cursor: pointer;
}
.masthead-brand h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 62px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1.5px;
  line-height: 1;
}
/* Signature visual: the redaction bar on "EXPOSED" */
.masthead-brand h1 .redact {
  position: relative;
  display: inline-block;
}
.masthead-brand h1 .redact::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
}
.masthead-brand p {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(255,255,255,.3);
  text-transform: uppercase;
  margin-top: 8px;
}

/* ── PRIMARY NAV ── */
.primary-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 var(--gutter);
}
.primary-nav a {
  color: rgba(255,255,255,.7);
  font-size: 13px;
  font-weight: 500;
  padding: 13px 17px;
  border-bottom: 2px solid transparent;
  transition: color var(--t), border-color var(--t);
  white-space: nowrap;
}
.primary-nav a:hover,
.primary-nav a.active {
  color: var(--white);
  border-bottom-color: var(--red);
  text-decoration: none;
}

/* ── SEARCH ── */
.site-search {
  background: var(--ink-mid);
  padding: 10px var(--gutter);
  display: flex;
  justify-content: center;
}
.search-inner {
  display: flex;
  max-width: 560px;
  width: 100%;
  border: 1px solid rgba(255,255,255,.12);
}
.search-inner input {
  flex: 1;
  padding: 9px 15px;
  background: rgba(255,255,255,.06);
  color: var(--white);
  border: none;
  outline: none;
  font-size: 13.5px;
  font-family: var(--font-body);
}
.search-inner input::placeholder { color: rgba(255,255,255,.3); }
.search-inner button {
  padding: 9px 20px;
  background: var(--red);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  transition: background var(--t);
}
.search-inner button:hover { background: var(--red-light); }

/* ================================================================
   BREADCRUMB
   ================================================================ */
.breadcrumb {
  font-size: 12.5px;
  color: var(--muted);
  padding: 14px 0 0;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--red); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }

/* ================================================================
   BADGES / TAGS
   ================================================================ */
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 3px 9px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--muted);
  border-radius: var(--radius);
}
.badge.politics  { background: #1A5C3A; }
.badge.crime     { background: var(--red); }
.badge.media     { background: #5C2D8A; }
.badge.tech      { background: #0A5A6B; }
.badge.finance   { background: #1A3A6B; }
.badge.defence   { background: #3A4A2A; }
.badge.immigration { background: #5A3A1A; }
.badge.featured  { background: var(--red); }

/* ================================================================
   HOMEPAGE HERO
   ================================================================ */
.home-hero {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 0;
  margin: 32px 0 0;
  border: 1px solid var(--paper-3);
}
.hero-lead {
  padding: 36px 40px;
  border-right: 1px solid var(--paper-3);
  cursor: pointer;
  transition: background var(--t);
}
.hero-lead:hover { background: var(--paper-2); }
.hero-lead:hover .hero-title { color: var(--red); }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 12px 0 16px;
  transition: color var(--t);
}
.hero-deck {
  font-size: 15.5px;
  color: var(--ink-mid);
  line-height: 1.65;
  margin-bottom: 18px;
}
.hero-sidebar { display: flex; flex-direction: column; }
.hs-item {
  padding: 20px 22px;
  border-bottom: 1px solid var(--paper-3);
  cursor: pointer;
  transition: background var(--t);
}
.hs-item:last-child { border-bottom: none; }
.hs-item:hover { background: var(--paper-2); }
.hs-item:hover .hs-title { color: var(--red); }
.hs-title {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin: 6px 0 5px;
  transition: color var(--t);
}

/* ================================================================
   META LINE
   ================================================================ */
.meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  flex-wrap: wrap;
}
.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--paper-3);
  flex-shrink: 0;
}
.read-link {
  font-size: 12.5px;
  color: var(--red);
  font-weight: 600;
  font-family: var(--font-mono);
  cursor: pointer;
}
.read-link:hover { text-decoration: underline; }

/* ================================================================
   SECTION HEADERS
   ================================================================ */
.sec-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 40px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}
.sec-head h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}
.sec-head .see-all {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--red);
  margin-left: auto;
  font-weight: 600;
}
.sec-head .see-all:hover { text-decoration: underline; }

/* ================================================================
   ARTICLE GRID & CARDS
   ================================================================ */
.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--paper-3);
  border: 1px solid var(--paper-3);
  margin-bottom: 8px;
}
.art-card {
  background: var(--paper);
  padding: 24px;
  cursor: pointer;
  transition: background var(--t);
}
.art-card:hover { background: var(--paper-2); }
.art-card:hover .ac-title { color: var(--red); }
.ac-title {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin: 8px 0 10px;
  transition: color var(--t);
}
.ac-excerpt {
  font-size: 13.5px;
  color: var(--ink-mid);
  line-height: 1.55;
  margin-bottom: 12px;
}

/* ================================================================
   ARTICLE PAGE
   ================================================================ */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 52px;
  padding: 36px 0 80px;
}
.article-header {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--paper-3);
  margin-bottom: 30px;
}
.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 14px 0 18px;
}
.article-standfirst {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  font-style: italic;
  color: var(--ink-mid);
  line-height: 1.6;
  margin-bottom: 18px;
}
.article-body { max-width: 68ch; }
.article-body p { margin-bottom: 20px; color: var(--ink-mid); line-height: 1.8; font-size: 16.5px; }
.article-body h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 36px 0 14px;
  padding-top: 8px;
  border-top: 1px solid var(--paper-3);
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 24px 0 10px;
}
.article-body blockquote {
  border-left: 3px solid var(--red);
  padding: 14px 22px;
  margin: 28px 0;
  background: var(--paper-2);
}
.article-body blockquote p { margin: 0; font-style: italic; font-size: 16px; color: var(--ink); }
.article-body ul, .article-body ol { margin: 0 0 20px 24px; }
.article-body li { margin-bottom: 9px; color: var(--ink-mid); line-height: 1.65; }

/* DATA TABLE (monospace values) */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.data-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 14px;
  border-bottom: 2px solid var(--ink);
  background: var(--paper-2);
}
.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--paper-3);
  vertical-align: top;
}
.data-table td.num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
}
.data-table tr:hover td { background: var(--paper-2); }

/* ================================================================
   FAQ ACCORDION
   ================================================================ */
.faq-list { margin: 24px 0; }
.faq-item {
  border-bottom: 1px solid var(--paper-3);
}
.faq-item:first-child { border-top: 1px solid var(--paper-3); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 16px 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color var(--t);
}
.faq-q:hover { color: var(--red); }
.faq-q .faq-icon {
  font-size: 20px;
  font-family: var(--font-mono);
  color: var(--red);
  flex-shrink: 0;
  transition: transform var(--t);
}
.faq-a {
  display: none;
  padding: 0 0 18px;
  color: var(--ink-mid);
  line-height: 1.75;
  font-size: 15px;
}
.faq-a.open { display: block; }
.faq-q.open .faq-icon { transform: rotate(45deg); }

/* ================================================================
   COMPARISON TABLE
   ================================================================ */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 14px;
}
.compare-table th {
  padding: 12px 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--ink);
  background: var(--paper-2);
}
.compare-table th.us {
  background: var(--ink);
  color: var(--white);
}
.compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--paper-3);
  text-align: center;
  vertical-align: middle;
}
.compare-table td:first-child {
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
}
.compare-table td .yes { color: #1A7A3A; font-weight: 700; font-size: 16px; }
.compare-table td .no  { color: var(--muted); font-size: 16px; }
.compare-table tr:hover td { background: var(--paper-2); }

/* ================================================================
   SIDEBAR
   ================================================================ */
.article-sidebar { position: sticky; top: 24px; height: fit-content; }
.sidebar-widget { margin-bottom: 28px; }
.sw-head {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 14px;
}
.sidebar-link {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--paper-3);
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.4;
  transition: color var(--t);
  font-family: var(--font-display);
  font-weight: 600;
}
.sidebar-link:hover { color: var(--red); text-decoration: none; }

/* DOSSIER WIDGET (signature element) */
.dossier-box {
  background: var(--ink);
  color: var(--white);
  padding: 20px;
  font-family: var(--font-mono);
}
.dossier-box .db-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.dossier-box .db-stat {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  display: block;
  margin: 6px 0 2px;
}
.dossier-box .db-desc {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  line-height: 1.4;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

/* ================================================================
   HOMEPAGE: TOPIC OVERVIEW CARDS
   ================================================================ */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1px;
  background: var(--paper-3);
  border: 1px solid var(--paper-3);
  margin-bottom: 8px;
}
.topic-card {
  background: var(--paper);
  padding: 28px 30px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: background var(--t);
}
.topic-card:hover { background: var(--paper-2); text-decoration: none; }
.topic-card:hover .tc-title { color: var(--red); }
.tc-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.tc-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  transition: color var(--t);
  line-height: 1.3;
}
.tc-desc { font-size: 14px; color: var(--muted); line-height: 1.55; }
.tc-keywords {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* ================================================================
   SIGNATURE INTERACTIVE ELEMENT: Accountability Score Widget
   ================================================================ */
.accountability-widget {
  background: var(--ink);
  color: var(--white);
  padding: 36px 40px;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}
.accountability-widget::before {
  content: 'CASE FILE';
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(255,255,255,.15);
}
.aw-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.aw-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,.45);
  margin-bottom: 28px;
}
.aw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.aw-input label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,.5);
  letter-spacing: .5px;
  margin-bottom: 6px;
}
.aw-input select, .aw-input input {
  width: 100%;
  padding: 9px 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.aw-input select option { background: var(--ink); }
.aw-btn {
  padding: 11px 28px;
  background: var(--red);
  color: var(--white);
  border: none;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
  transition: background var(--t);
}
.aw-btn:hover { background: var(--red-light); }
.aw-result {
  display: none;
  margin-top: 24px;
  padding: 20px;
  background: rgba(255,255,255,.05);
  border-left: 3px solid var(--red);
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
}
.aw-result .score {
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  display: block;
  margin-bottom: 8px;
}
.aw-result .score-label { color: var(--red); font-size: 11px; letter-spacing: 1px; }

/* ================================================================
   FOOTER
   ================================================================ */
footer {
  background: var(--ink);
  color: rgba(255,255,255,.5);
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 52px var(--gutter) 36px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-grid h4 {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--white);
  margin-bottom: 14px;
}
.footer-grid p { font-size: 13px; line-height: 1.7; }
.footer-links { display: flex; flex-direction: column; gap: 7px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.5); transition: color var(--t); }
.footer-links a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px var(--gutter);
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-legal {
  background: rgba(255,255,255,.04);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 14px var(--gutter);
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,.3);
  text-align: center;
}

/* ================================================================
   UTILITY
   ================================================================ */
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
.pb-0 { padding-bottom: 0; }
.mt-0 { margin-top: 0; }
.text-mono { font-family: var(--font-mono); }
.text-red  { color: var(--red); }
.divider { height: 1px; background: var(--paper-3); margin: 40px 0; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; }
  .hero-lead { border-right: none; border-bottom: 1px solid var(--paper-3); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .aw-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .primary-nav a { padding: 10px 12px; font-size: 12px; }
  .masthead-brand h1 { font-size: 32px; }
  .hero-lead { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .accountability-widget { padding: 24px 20px; }
}
