/*
Theme Name: Truth in Focus 2026
Theme URI: https://truthfocus.net/
Author: Bullcoming Enterprises
Author URI: https://bullcomingenterprises.com/
Description: A lightweight custom newsroom theme for Truth in Focus. Built for fast local reporting, breaking-news alerts, investigations, and mobile readability without a page builder.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: truth-in-focus-2026
*/

:root {
  --tif-navy: #0f1b2d;
  --tif-navy-2: #18263b;
  --tif-gold: #d3a449;
  --tif-red: #b3262e;
  --tif-ink: #17202a;
  --tif-muted: #6b7280;
  --tif-paper: #ffffff;
  --tif-soft: #f4f5f7;
  --tif-border: #dde1e6;
  --tif-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--tif-ink);
  background: var(--tif-paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.62;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.tif-wrap { width: min(calc(100% - 32px), var(--tif-max)); margin: 0 auto; }

.site-header { background: var(--tif-navy); color: white; }
.tif-branding { padding: 16px 0 12px; }
.tif-masthead-image {
  display: block;
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
}
.tif-site-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-top: 8px; }
.tif-site-name { font: 700 0.94rem/1.2 Georgia, 'Times New Roman', serif; letter-spacing: .07em; text-transform: uppercase; }
.tif-tagline { margin: 0; opacity: .85; font-size: .88rem; }

.tif-nav-shell { background: #08121f; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.12); }
.tif-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 52px; }
.tif-nav ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0; padding: 0; margin: 0; }
.tif-nav li { position: relative; }
.tif-nav a { display: block; color: white; text-decoration: none; padding: 15px 14px; font-weight: 700; font-size: .9rem; }
.tif-nav a:hover, .tif-nav a:focus { background: rgba(255,255,255,.08); color: #fff2ce; }
.tif-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 30; min-width: 230px; background: #101d2e; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.tif-nav li:hover > .sub-menu, .tif-nav li:focus-within > .sub-menu { display: block; }
.tif-nav .sub-menu a { padding: 11px 14px; }

.tif-ticker { background: var(--tif-red); color: white; overflow: hidden; border-bottom: 3px solid #851a20; }
.tif-ticker-inner { display: grid; grid-template-columns: auto 1fr; align-items: center; min-height: 42px; }
.tif-ticker-label { align-self: stretch; display: flex; align-items: center; background: #7f161c; padding: 0 16px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; font-size: .78rem; white-space: nowrap; }
.tif-ticker-window { overflow: hidden; }
.tif-ticker-track { display: inline-flex; align-items: center; gap: 36px; min-width: max-content; padding-left: 100%; animation: tifTicker 34s linear infinite; }
.tif-ticker:hover .tif-ticker-track, .tif-ticker:focus-within .tif-ticker-track { animation-play-state: paused; }
.tif-ticker-item { color: white; text-decoration: none; font-weight: 700; white-space: nowrap; }
.tif-ticker-item time { font-weight: 400; opacity: .85; margin-left: 8px; }
@keyframes tifTicker { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .tif-ticker-track { animation: none; padding-left: 12px; flex-wrap: wrap; min-width: 0; } }

.tif-main { padding: 34px 0 54px; }
.tif-section { margin: 0 0 44px; }
.tif-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; border-bottom: 3px solid var(--tif-navy); }
.tif-section-title { margin: 0; padding: 0 0 8px; font: 800 1.45rem/1.15 Georgia, 'Times New Roman', serif; color: var(--tif-navy); }
.tif-section-title::after { content: ''; display: block; width: 74px; border-bottom: 3px solid var(--tif-gold); transform: translateY(11px); }
.tif-section-link { font-size: .86rem; font-weight: 700; text-decoration: none; color: var(--tif-red); }

.tif-lead-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .8fr); gap: 26px; margin-bottom: 36px; }
.tif-lead-card { position: relative; min-height: 390px; border-radius: 8px; overflow: hidden; background: var(--tif-navy); color: white; }
.tif-lead-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .54; }
.tif-lead-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,27,45,.05), rgba(15,27,45,.94)); }
.tif-lead-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; }
.tif-lead-content h1 { margin: 8px 0 10px; font: 800 clamp(1.8rem, 4vw, 3.2rem)/1.03 Georgia, 'Times New Roman', serif; }
.tif-lead-content a { text-decoration: none; }
.tif-lead-content p { max-width: 760px; margin: 0 0 10px; font-size: 1.03rem; }
.tif-side-stack { display: grid; gap: 16px; }
.tif-side-story { border-top: 4px solid var(--tif-gold); background: var(--tif-soft); padding: 18px; }
.tif-side-story h3 { margin: 6px 0 7px; font: 800 1.25rem/1.15 Georgia, 'Times New Roman', serif; }
.tif-side-story a { text-decoration: none; }

.tif-badge { display: inline-block; background: var(--tif-red); color: white; border-radius: 2px; padding: 4px 8px; font-weight: 900; font-size: .69rem; letter-spacing: .08em; text-transform: uppercase; }
.tif-badge-news, .tif-badge-public-service { background: var(--tif-navy); }
.tif-badge-investigation { background: #5b2a86; }
.tif-badge-analysis, .tif-badge-opinion { background: #6b4e16; }
.tif-meta { color: var(--tif-muted); font-size: .8rem; }

.tif-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.tif-card { border: 1px solid var(--tif-border); background: white; border-radius: 7px; overflow: hidden; box-shadow: 0 4px 16px rgba(15,27,45,.05); }
.tif-card-image { display: block; aspect-ratio: 16/9; background: #dfe4ea; overflow: hidden; }
.tif-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.tif-card:hover .tif-card-image img { transform: scale(1.025); }
.tif-card-body { padding: 16px 17px 18px; }
.tif-card h3 { margin: 8px 0 7px; font: 800 1.18rem/1.22 Georgia, 'Times New Roman', serif; }
.tif-card h3 a { text-decoration: none; }
.tif-card p { margin: 0 0 12px; color: #46515e; font-size: .92rem; }

.tif-alert-grid { display: grid; gap: 14px; }
.tif-alert-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 15px 17px; border-left: 5px solid var(--tif-red); background: #fff6f6; }
.tif-alert-row h3 { margin: 0; font: 800 1.05rem/1.25 Georgia, 'Times New Roman', serif; }
.tif-alert-row h3 a { text-decoration: none; }

.tif-content { max-width: 820px; margin: 0 auto; }
.tif-content h1, .tif-content h2, .tif-content h3 { font-family: Georgia, 'Times New Roman', serif; color: var(--tif-navy); }
.tif-content h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; }
.tif-article-header { margin-bottom: 26px; }
.tif-article-deck { font-size: 1.18rem; color: #46515e; }
.tif-article-meta { color: var(--tif-muted); font-size: .9rem; }
.tif-article-feature { margin: 20px 0 28px; }
.tif-article-feature img { width: 100%; border-radius: 8px; }
.tif-content .entry-content { font-family: Georgia, 'Times New Roman', serif; font-size: 1.08rem; }
.tif-content .entry-content p { margin: 0 0 1.25em; }

.tif-footer { background: var(--tif-navy); color: #d8dee8; padding: 38px 0 28px; margin-top: 40px; }
.tif-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.tif-footer h2, .tif-footer h3 { color: white; margin-top: 0; font-family: Georgia, 'Times New Roman', serif; }
.tif-footer a { color: #f2d99b; text-decoration: none; }
.tif-footer-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.13); font-size: .82rem; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .tif-lead-grid { grid-template-columns: 1fr; }
  .tif-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tif-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .tif-wrap { width: min(calc(100% - 22px), var(--tif-max)); }
  .tif-masthead-image { max-height: 175px; }
  .tif-site-title-row { display: block; }
  .tif-tagline { margin-top: 4px; }
  .tif-nav { display: block; }
  .tif-nav ul { display: block; }
  .tif-nav .sub-menu { position: static; display: block; box-shadow: none; background: rgba(255,255,255,.04); padding-left: 14px; }
  .tif-grid { grid-template-columns: 1fr; }
  .tif-alert-row { grid-template-columns: 1fr; }
  .tif-footer-grid { grid-template-columns: 1fr; }
  .tif-lead-card { min-height: 350px; }
}
