/* ============================================================
   OFF THE PRESS — style.css
   Pixel-perfect Cloudflare Pages rebuild
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:        #c8102e;
  --red-dark:   #a50e25;
  --black:      #111111;
  --dark:       #1a1a1a;
  --mid-gray:   #555555;
  --light-gray: #e8e8e8;
  --border:     #dddddd;
  --bg:         #f4f4f4;
  --white:      #ffffff;
  --header-bg:  #1b1b1b;
  --font-sans:  'Lato', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;
  --max-width:  1200px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--black);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.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;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input { font-family: inherit; }

/* ---- Layout Helpers ---- */
.container-fluid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 15px;
}

.hidden-mobile { display: flex; }

/* ---- MOBILE DRAWER ---- */
.mobile-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

.mobile-overlay.active { display: block; }

.mobile-drawer {
  position: fixed;
  top: 0; left: 0;
  width: 300px; height: 100%;
  background: var(--header-bg);
  color: var(--white);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-drawer.open { transform: translateX(0); }

.mobile-menu__top { padding: 20px 15px; }

.mobile-menu__close {
  color: var(--white); font-size: 20px;
  margin-bottom: 20px; display: block;
}

.mobile-newsletter h3 {
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  color: var(--white); margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.mobile-nav-list { margin: 15px 0; }
.mobile-nav-list li { border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-nav-list a {
  display: block; padding: 10px 0;
  color: var(--white); font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.mobile-nav-list a:hover { color: var(--red); }

.mobile-trending h4 {
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin: 15px 0 5px;
}

.mobile-search {
  display: flex; gap: 5px; margin-top: 15px;
}
.mobile-search input {
  flex: 1; padding: 8px 10px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2); color: var(--white);
  font-size: 13px; border-radius: 2px;
}
.mobile-search button {
  padding: 8px 12px; background: var(--red); color: var(--white);
  border-radius: 2px;
}

/* ---- HEADER ---- */
.main-header {
  background: var(--header-bg);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.header-inner {
  display: flex;
  align-items: stretch;
  min-height: 70px;
}

.header-left {
  display: flex;
  align-items: center;
  padding: 10px 15px 10px 0;
  flex-shrink: 0;
}

.header-logo {
  width: 220px;
  height: auto;
}

.header-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid rgba(255,255,255,0.08);
}

.header-top-row {
  display: flex;
  align-items: center;
  padding: 8px 0 8px 15px;
  gap: 15px;
  flex: 1;
}

/* Top nav */
.top-nav ul {
  display: flex;
  gap: 0;
  align-items: center;
}
.top-nav a {
  display: block;
  padding: 6px 14px;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.15s;
  white-space: nowrap;
}
.top-nav a:hover,
.top-nav a.active { color: var(--white); }
.top-nav a.active { border-bottom: 2px solid var(--red); }

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* Newsletter in header */
.header-newsletter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.newsletter-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.newsletter-form.inline {
  display: flex;
  gap: 5px;
}
.newsletter-form input[type="email"],
.newsletter-form input[type="text"] {
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 12px;
  border-radius: 2px;
  width: 180px;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-form button {
  padding: 6px 12px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.15s;
}
.newsletter-form button:hover { background: var(--red-dark); }

/* Social nav in header */
.social-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.social-nav a {
  display: flex;
  align-items: center;
  opacity: 0.75;
  transition: opacity 0.15s;
}
.social-nav a:hover { opacity: 1; }
.social-nav img { width: 20px; height: 20px; object-fit: contain; }

/* Mobile trigger */
.mobile-trigger {
  display: none;
  color: var(--white);
  font-size: 20px;
  padding: 5px 8px;
}

/* Trending bar */
.trending-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--red);
  padding: 0 15px;
  height: 34px;
  overflow: hidden;
}
.trending-label {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  white-space: nowrap;
  padding-right: 12px;
  border-right: 1px solid rgba(255,255,255,0.3);
  margin-right: 12px;
}
.trending-nav {
  display: flex;
  gap: 0;
  flex: 1;
}
.trending-nav a {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.9);
  padding: 0 12px;
  height: 34px;
  display: flex;
  align-items: center;
  transition: background 0.15s;
}
.trending-nav a:hover {
  background: rgba(0,0,0,0.15);
  color: var(--white);
}
.header-search {
  margin-left: auto;
}
.header-search a {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  padding: 5px;
  display: block;
}
.header-search a:hover { color: var(--white); }

/* ---- MAIN LAYOUT ---- */
.main { padding: 15px 0 30px; }

.content-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.col-main {
  flex: 1;
  min-width: 0;
}

.col-sidebar {
  width: 280px;
  flex-shrink: 0;
  padding-top: 5px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---- SECTION HEADERS ---- */
.section, .post-wrapper { margin-bottom: 5px; }

.header-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  margin-bottom: 5px;
  border-bottom: 3px solid var(--red);
}
.header-wrap h2 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--black);
  white-space: nowrap;
}
.title-wrap {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Breaking Now gets a special oversized header */
.section--tight .header-wrap h2 {
  font-size: 28px;
  letter-spacing: 0.08em;
  color: var(--red);
}

/* ---- FEATURED POST (BREAKING NOW) ---- */
.section--tight { padding: 10px 0; }

.featured-post {
  background: var(--white);
  padding: 14px 18px 18px;
  margin-bottom: 5px;
  text-align: center;
}
.featured-post .featured-kicker h1 {
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
  margin-bottom: 12px;
  display: block;
  line-height: 1.1;
}
.featured-post .featured-kicker:hover h1 { color: var(--red-dark); }
.featured-post .featured-img-link {
  display: block;
  max-width: 72%;
  margin: 0 auto 12px;
}
.featured-post img {
  width: 100%;
  height: auto;
  display: block;
}
.featured-post h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--black);
  max-width: 85%;
  margin: 0 auto;
}
.featured-post h2:hover { color: var(--red); }
.featured-post a { display: block; }

/* ---- TRENDING EXCLUSIVE ITEM ---- */
.trending-exclusive {
  display: none;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 0 12px !important;
  color: var(--white) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
  border-left: 1px solid rgba(255,255,255,0.3) !important;
  position: relative;
}
.trending-exclusive::before {
  content: '🔥';
  font-size: 12px;
  flex-shrink: 0;
}
.trending-exclusive:hover {
  background: rgba(0,0,0,0.15) !important;
  color: var(--white) !important;
}

/* ---- X / TWITTER FEED ---- */
.sidebar-x-feed {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 10px 12px 12px;
}
.sidebar-x-feed .header-wrap {
  margin-bottom: 8px;
}
.x-feed-loading {
  font-size: 12px;
  color: #999;
  text-align: center;
  padding: 12px 0 4px;
  font-style: italic;
}
.x-feed-fallback {
  text-align: center;
  padding: 10px 0 4px;
  font-size: 12px;
}
.x-feed-fallback a {
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
}

/* ---- TWO-COLUMN FEED ---- */
.two-col-feed {
  display: flex;
  gap: 0;
  background: var(--white);
}

.single-column {
  flex: 1;
  padding: 0;
}

.single-column:first-child {
  border-right: 1px solid var(--border);
}

.clip.layout__basic {
  border-bottom: 1px solid var(--border);
  padding: 8px 10px;
  display: block;
}

.clip.layout__basic:last-child { border-bottom: none; }

.clip.layout__basic a.nt-link {
  color: var(--black);
  display: block;
}
.clip.layout__basic a.nt-link:hover { color: var(--red); }

.clip.layout__basic p {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--black);
  margin: 0;
  transition: color 0.15s;
}
.clip.layout__basic a.nt-link:hover p { color: var(--red); }

/* Text-only clips get a subtle left accent on hover */
.clip.layout__basic:not(.photo) {
  border-left: 3px solid transparent;
  padding-left: 9px;
  transition: border-color 0.15s, background 0.15s;
}
.clip.layout__basic:not(.photo):hover {
  border-left-color: var(--red);
  background: #fafafa;
}

/* Photo clips */
.clip.photo {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.clip.photo .photo-link {
  flex-shrink: 0;
}
.clip.photo .photo-link img {
  width: 130px;
  height: 80px;
  object-fit: cover;
  display: block;
}
.clip.photo .nt-link:not(.photo-link) {
  flex: 1;
}

/* ---- COLUMN BREAK (visual gap between the two cols in feed) ---- */
.column-break-desktop {
  display: none;
}

/* ---- POST WRAPPER (category grids, etc) ---- */
.post-wrapper {
  background: var(--white);
  margin-bottom: 8px;
}

.additional-content.row {
  display: flex;
  flex-wrap: wrap;
  padding: 10px 5px 15px;
  border-bottom: 1px solid var(--border);
}
.additional-content.row:last-child { border-bottom: none; }

.col-xs-12 { width: 100%; padding: 0 10px; }
.col-sm-4 { width: 33.333%; }

/* ---- YOUTUBE CAROUSEL ---- */
.yt-carousel-wrapper {
  padding: 12px 12px 16px;
}
.yt-carousel-wrapper .header-wrap {
  margin-bottom: 12px;
}
.yt-channel-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
  white-space: nowrap;
  margin-left: auto;
  flex-shrink: 0;
}
.yt-channel-link:hover { text-decoration: underline; }

.yt-carousel-container {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.yt-track-outer {
  flex: 1;
  overflow: hidden;
}
.yt-track {
  display: flex;
  gap: 12px;
  transition: transform 0.35s ease;
  will-change: transform;
  min-height: 180px;
  align-items: flex-start;
}

.yt-nav {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  font-size: 22px;
  line-height: 1;
  color: var(--black);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.yt-nav:hover:not(:disabled) {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.yt-nav:disabled { opacity: 0.3; cursor: default; }

.yt-card {
  flex: 0 0 calc(33.333% - 8px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
}
.yt-card:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}
.yt-card__thumb {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  overflow: hidden;
  flex-shrink: 0;
}
.yt-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.yt-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  opacity: 0;
  transition: opacity 0.15s;
}
.yt-card:hover .yt-card__play { opacity: 1; }
.yt-card__body {
  padding: 8px 9px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.yt-card__title {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--black);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.yt-card__date {
  font-size: 11px;
  color: var(--mid-gray);
  margin-top: auto;
}
.yt-loading, .yt-error {
  width: 100%;
  text-align: center;
  padding: 30px 0;
  font-size: 13px;
  color: #999;
  font-style: italic;
}
.yt-error a { color: var(--red); text-decoration: underline; }
.yt-view-all {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
}
.yt-view-all:hover { text-decoration: underline; }

/* ---- X POSTS FEED ---- */
/* X oembed wrapper — Twitter widget renders native blockquote cards inside here */
.x-posts-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}
.x-post-embed {
  border-bottom: 1px solid var(--border);
  padding: 4px 0 2px;
  overflow: hidden;
}
.x-post-embed:last-child { border-bottom: none; }
/* Scale the native tweet card to fit the sidebar width */
.x-post-embed .twitter-tweet {
  margin: 0 !important;
  max-width: 100% !important;
}
.x-post-embed iframe {
  max-width: 100% !important;
}

/* ---- EXCLUSIVE LIST ---- */
.exclusive-section { padding: 10px 10px 15px; }
.exclusive-list { padding: 0 5px; }
.exclusive-list li {
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.exclusive-list li:last-child { border-bottom: none; }
.exclusive-list a {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.4;
  display: block;
  transition: color 0.15s;
}
.exclusive-list a:hover { color: var(--red); }

/* ---- SIDEBAR ---- */

/* Ezoic ad placeholder slots */
.ezoic-ad {
  background: #f0f0f0;
  border: 1px dashed #ccc;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ezoic-ad--banner {
  min-height: 90px;
  margin-bottom: 8px;
}
.ezoic-ad--sidebar {
  min-height: 250px;
}
/* In-feed ad slots inside the headline columns */
.ezoic-ad--infeed {
  min-height: 100px;
  border-left: none !important;
  background: #f7f7f7;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.ezoic-ad__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #aaa;
  font-weight: 700;
}

.sidebar-newsletter {
  background: var(--white);
  padding: 16px 15px;
  border: 1px solid var(--border);
}
.sidebar-newsletter h3 {
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--black);
  margin-bottom: 12px;
}
.newsletter-form.sidebar {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.newsletter-form.sidebar input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--black);
  font-size: 13px;
  border-radius: 2px;
}
.newsletter-form.sidebar button {
  width: 100%;
  padding: 9px;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.15s;
}
.newsletter-form.sidebar button:hover { background: var(--red-dark); }

/* Sidebar Exclusive Reporting */
.sidebar-exclusive {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 10px 12px 12px;
}
.sidebar-exclusive .header-wrap {
  margin-bottom: 4px;
}
.sidebar-exclusive .exclusive-list li {
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.sidebar-exclusive .exclusive-list li:last-child { border-bottom: none; }
.sidebar-exclusive .exclusive-list a {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.4;
  display: block;
  transition: color 0.15s;
  border-left: 3px solid transparent;
  padding-left: 7px;
}
.sidebar-exclusive .exclusive-list a:hover {
  color: var(--red);
  border-left-color: var(--red);
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--header-bg);
  padding: 25px 0 20px;
  margin-top: 10px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-logo { height: 38px; width: auto; display: block; margin: 0 auto; }
.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}
.footer-social a {
  display: flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.footer-social a:hover { opacity: 1; }
.footer-social img { width: 22px; height: 22px; object-fit: contain; }
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.03em;
}
.footer-copy a { color: rgba(255,255,255,0.5); }
.footer-copy a:hover { color: var(--white); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .col-sidebar { display: none; }
  .content-row { gap: 0; }
}

@media (max-width: 768px) {
  .hidden-mobile { display: none !important; }
  .mobile-trigger { display: block !important; }

  .header-inner { min-height: 56px; }
  .header-logo { width: 160px; }
  .header-right { border-left: none; }
  .header-top-row {
    justify-content: space-between;
    padding: 8px 0 8px 10px;
  }
  .header-right-actions { margin-left: 0; }

  .two-col-feed { flex-direction: column; }
  .single-column:first-child { border-right: none; border-bottom: 2px solid var(--border); }

  .yt-card { flex: 0 0 calc(50% - 6px); }
  .featured-post .featured-kicker h1 { font-size: 26px; }
  .featured-post h2 { font-size: 18px; }
  .section--tight .header-wrap h2 { font-size: 22px; }
}

@media (max-width: 480px) {
  .trending-bar { display: none; }
  .featured-post .featured-kicker h1 { font-size: 20px; }
  .featured-post h2 { font-size: 16px; }
  .clip.photo .photo-link img { width: 95px; height: 60px; }
  .yt-card { flex: 0 0 calc(100% - 0px); }
}
