/* ==========================================================================
   T7 News — main stylesheet
   Organised as: 1) tokens  2) reset/base  3) layout primitives
   4) header/nav  5) breaking ticker  6) live tv  7) cards
   8) homepage sections  9) article  10) archive/search  11) footer
   12) widgets/ads  13) motion  14) responsive
   ========================================================================== */

/* 1. DESIGN TOKENS ========================================================= */
:root {
  /* Surfaces — very dark navy climbing to lighter navy card surfaces.
     Tuned cooler/deeper to sit under the official teal-navy logo. */
  --t7-bg:            #05080F;
  --t7-bg-2:          #070C16;
  --t7-surface:       #0C1421;
  --t7-surface-2:     #111C30;
  --t7-surface-3:     #18273F;
  --t7-surface-4:     #21344F;

  /* Text */
  --t7-text:          #F4F7FC;
  --t7-text-dim:      #C4CFE0;
  --t7-muted:         #8695B0;
  --t7-muted-2:       #5A6B88;

  /* Brand */
  --t7-blue:          #2F81F7;
  --t7-blue-600:      #1C68E2;
  --t7-blue-700:      #144FB8;
  --t7-blue-300:      #83B2FF;
  --t7-blue-200:      #A9CBFF;
  --t7-blue-soft:     rgba(47, 129, 247, 0.13);
  --t7-blue-softer:   rgba(47, 129, 247, 0.07);
  --t7-blue-glow:     rgba(47, 129, 247, 0.42);

  /* Red — LIVE / BREAKING / urgent only */
  --t7-red:           #F23645;
  --t7-red-600:       #D01C2B;
  --t7-red-soft:      rgba(242, 54, 69, 0.16);
  --t7-red-glow:      rgba(242, 54, 69, 0.45);

  /* Lines & depth */
  --t7-border:        rgba(102, 140, 210, 0.13);
  --t7-border-strong: rgba(112, 150, 220, 0.28);
  --t7-hairline:      rgba(255, 255, 255, 0.055);
  --t7-edge-hi:       rgba(255, 255, 255, 0.05);   /* top inner highlight */

  --t7-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --t7-shadow:    0 18px 40px -18px rgba(0, 0, 0, 0.62), 0 2px 6px rgba(0,0,0,0.3);
  --t7-shadow-lg: 0 50px 100px -32px rgba(0, 0, 0, 0.78), 0 8px 24px -8px rgba(0,0,0,0.5);
  --t7-shadow-blue: 0 20px 50px -18px var(--t7-blue-glow);

  /* Elevation — layered surface + top edge highlight + shadow */
  --t7-elev-1: linear-gradient(180deg, var(--t7-surface-2), var(--t7-surface));
  --t7-elev-2: linear-gradient(180deg, var(--t7-surface-3), var(--t7-surface-2));

  /* Radii */
  --t7-radius-xs: 9px;
  --t7-radius-sm: 13px;
  --t7-radius:    17px;
  --t7-radius-lg: 24px;
  --t7-radius-xl: 30px;
  --t7-radius-pill: 999px;

  /* Rhythm */
  --t7-gap:       clamp(16px, 1.6vw, 24px);
  --t7-gap-lg:    clamp(22px, 2.6vw, 40px);
  --t7-section-y: clamp(40px, 4.6vw, 68px);
  --t7-wrap:      1240px;
  --t7-wrap-wide: 1460px;
  --t7-read:      740px;

  /* Type */
  --t7-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --t7-font-head: "Archivo", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Fluid type scale (1.24 ratio, clamped) */
  --t7-fs-xs:   0.75rem;
  --t7-fs-sm:   0.84rem;
  --t7-fs-base: 1rem;
  --t7-fs-md:   1.075rem;
  --t7-fs-lg:   clamp(1.15rem, 0.6vw + 1rem, 1.35rem);
  --t7-fs-xl:   clamp(1.4rem,  1.1vw + 1.05rem, 1.9rem);
  --t7-fs-2xl:  clamp(1.8rem,  2vw + 1.1rem,   2.6rem);
  --t7-fs-3xl:  clamp(2.3rem,  3.4vw + 1rem,   3.6rem);
  --t7-fs-4xl:  clamp(2.8rem,  5vw + 1rem,     4.6rem);

  --t7-header-h: 128px;
  --t7-header-h-stuck: 64px;

  --t7-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t7-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t7-dur: 0.42s;
}

/* 2. RESET / BASE ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--t7-surface-3) var(--t7-bg);
}

body {
  margin: 0;
  background-color: var(--t7-bg);
  background-image:
    radial-gradient(1400px 680px at 8% -12%, rgba(47, 129, 247, 0.13), transparent 58%),
    radial-gradient(1100px 720px at 102% -4%, rgba(23, 90, 200, 0.10), transparent 56%),
    radial-gradient(900px 900px at 50% 120%, rgba(47, 129, 247, 0.05), transparent 60%);
  background-attachment: fixed;
  color: var(--t7-text);
  font-family: var(--t7-font-body);
  font-size: 16px;
  line-height: 1.62;
  font-feature-settings: "kern", "liga", "cv05", "ss01";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Contain horizontal overflow WITHOUT breaking the sticky header
   (overflow on html/body would). .t7-main is not an ancestor of the header. */
.t7-main { overflow-x: clip; }
.t7-footer { overflow-x: clip; }

h1, h2, h3, h4, h5 {
  font-family: var(--t7-font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.018em;
  margin: 0 0 0.5em;
  color: var(--t7-text);
  text-wrap: balance;
}
h1 { font-weight: 800; letter-spacing: -0.025em; }

p { margin: 0 0 1.15em; }
a { color: var(--t7-blue-300); text-decoration: none; transition: color 0.2s var(--t7-ease); }
a:hover { color: #fff; }
/* Beat WordPress global-styles low-specificity link underline */
.t7-site a { text-decoration: none; }
.t7-content a,
.t7-article__standfirst a,
.comment-content a { text-decoration: underline; text-underline-offset: 3px; }
img, picture, video, svg { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.3em; }
figure { margin: 0; }
button { font: inherit; cursor: pointer; color: inherit; }
:where(input, textarea, select) { font: inherit; }

::selection { background: var(--t7-blue); color: #fff; }

/* Accessible focus */
:focus-visible {
  outline: 2px solid var(--t7-blue-300);
  outline-offset: 3px;
  border-radius: 3px;
}

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; padding: 0;
  overflow: hidden; position: absolute !important; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: var(--t7-surface-2);
  clip: auto; clip-path: none;
  color: var(--t7-text);
  display: block;
  font-size: 0.9rem;
  height: auto; width: auto;
  left: 12px; top: 12px;
  padding: 12px 20px;
  z-index: 100000;
  border-radius: var(--t7-radius-xs);
  box-shadow: var(--t7-shadow);
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100000;
}
.skip-link:focus {
  left: 12px; top: 12px;
  background: var(--t7-blue); color: #fff;
  padding: 10px 18px; border-radius: var(--t7-radius-xs);
}

/* 3. LAYOUT PRIMITIVES =================================================== */
.t7-wrap {
  width: min(100% - 40px, var(--t7-wrap));
  margin-inline: auto;
}
.t7-wrap--wide { width: min(100% - 40px, var(--t7-wrap-wide)); }

.t7-section { padding-block: var(--t7-section-y); position: relative; }
.t7-section + .t7-section { padding-top: 0; }

/* Section distinction — alternating "broadcast segment" bands.
   A banded section gets a faint raised surface + top/bottom hairlines so it
   reads as its own show without heavy boxes. */
.t7-section--band {
  padding-block: var(--t7-section-y);
  margin-block: calc(var(--t7-section-y) * 0.45);
  background:
    radial-gradient(80% 60% at 0% 0%, var(--t7-blue-soft), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent 30%),
    var(--t7-bg-2);
  border-block: 1px solid var(--t7-border);
  box-shadow: inset 0 1px 0 var(--t7-edge-hi), inset 0 -1px 0 var(--t7-edge-hi);
}
.t7-section--band + .t7-section,
.t7-section + .t7-section--band { padding-top: var(--t7-section-y); }
.t7-section--tint::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 60% at 0% 0%, var(--t7-blue-softer), transparent 70%);
}

.t7-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(22px, 2.6vw, 36px);
  position: relative;
}
.t7-section__headings { min-width: 0; }
.t7-section__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--t7-font-head);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--t7-blue-300);
  margin-bottom: 10px;
}
.t7-section__kicker::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--t7-blue), transparent);
}
.t7-section__title {
  font-size: var(--t7-fs-2xl);
  font-weight: 800;
  letter-spacing: -0.028em;
  margin: 0;
  position: relative;
  padding-left: 18px;
}
.t7-section__title::before {
  content: "";
  position: absolute; left: 0; top: 0.08em; bottom: 0.08em;
  width: 5px; border-radius: 5px;
  background: linear-gradient(var(--t7-blue-300), var(--t7-blue-600));
  box-shadow: 0 0 20px var(--t7-blue-glow);
}
.t7-section__title--red::before { background: linear-gradient(var(--t7-red), var(--t7-red-600)); box-shadow: 0 0 20px var(--t7-red-glow); }
.t7-section__head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -14px;
  height: 1px;
  background: linear-gradient(90deg, var(--t7-border-strong), transparent 65%);
}

.t7-viewall {
  font-family: var(--t7-font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--t7-muted);
  display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 7px 4px 7px 0;
  transition: color 0.2s var(--t7-ease), gap 0.2s var(--t7-ease);
}
.t7-viewall:hover { color: var(--t7-blue-200); gap: 10px; }
.t7-viewall svg { width: 14px; height: 14px; transition: transform 0.25s var(--t7-ease); }
.t7-viewall:hover svg { transform: translateX(3px); }

/* Reusable chips / badges */
.t7-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--t7-font-head);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 6px;
  color: var(--t7-blue-300);
  background: var(--t7-blue-soft);
  border: 1px solid var(--t7-border-strong);
}
.t7-chip--solid { background: var(--t7-blue); color: #fff; border-color: transparent; }
.t7-chip--red { color: #fff; background: var(--t7-red); border-color: transparent; }

.t7-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: t7-pulse 1.8s infinite;
}
@keyframes t7-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.t7-badge-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--t7-font-head);
  font-size: 0.64rem; font-weight: 800;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--t7-red), var(--t7-red-600));
  padding: 5px 11px;
  border-radius: 7px;
  box-shadow: 0 6px 22px -6px var(--t7-red-glow), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Buttons */
.t7-btn {
  --_bg: linear-gradient(180deg, var(--t7-blue), var(--t7-blue-600));
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--t7-font-head);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.012em;
  padding: 13px 22px;
  border-radius: var(--t7-radius-pill);
  border: 1px solid transparent;
  background: var(--_bg);
  color: #fff;
  overflow: hidden;
  transition: transform 0.22s var(--t7-ease), box-shadow 0.28s var(--t7-ease), filter 0.2s;
  box-shadow: 0 12px 34px -12px var(--t7-blue-glow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.t7-btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,0.28) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--t7-ease);
}
.t7-btn:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 20px 46px -14px var(--t7-blue-glow), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.t7-btn:hover::after { transform: translateX(120%); }
.t7-btn:active { transform: translateY(0); }
.t7-btn svg { width: 18px; height: 18px; position: relative; }
.t7-btn--ghost {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border-color: var(--t7-border-strong);
  color: var(--t7-text);
  box-shadow: inset 0 1px 0 var(--t7-edge-hi);
}
.t7-btn--ghost:hover { background: var(--t7-blue-soft); border-color: var(--t7-blue); box-shadow: 0 10px 26px -12px var(--t7-blue-glow); }
.t7-btn--ghost::after { display: none; }
.t7-btn--sm { padding: 10px 16px; font-size: 0.82rem; }

/* 4. HEADER / NAV ======================================================= */
.t7-utility {
  background: linear-gradient(180deg, var(--t7-bg-2), var(--t7-bg));
  border-bottom: 1px solid var(--t7-hairline);
  font-size: 0.76rem;
  color: var(--t7-muted);
  position: relative;
  z-index: 901;
}
.t7-utility__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  min-height: 36px;
  padding-block: 5px;
}
.t7-utility__group { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.t7-utility__item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.t7-utility__item svg { width: 13px; height: 13px; opacity: 0.7; color: var(--t7-blue-300); }
.t7-lang { display: inline-flex; align-items: center; gap: 9px; padding-left: 4px; }
.t7-lang a { color: var(--t7-muted); font-weight: 600; transition: color 0.2s; }
.t7-lang a[aria-current="true"], .t7-lang a.is-active { color: var(--t7-text); }
.t7-lang a:hover { color: var(--t7-blue-200); }
.t7-lang__sep { opacity: 0.3; }
.t7-social { display: inline-flex; align-items: center; gap: 8px; }
.t7-social a {
  width: 25px; height: 25px; display: grid; place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--t7-muted);
  transition: background 0.22s var(--t7-ease), color 0.22s, transform 0.22s var(--t7-ease);
}
.t7-social a:hover { background: var(--t7-blue); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 16px -6px var(--t7-blue-glow); }
.t7-social svg { width: 13px; height: 13px; }

.t7-header {
  position: sticky; top: 0; z-index: 900;
  background: color-mix(in srgb, var(--t7-bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid var(--t7-border);
  transition: background 0.35s var(--t7-ease), box-shadow 0.35s var(--t7-ease), border-color 0.35s;
}
.t7-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--t7-blue-soft) 30%, var(--t7-blue-soft) 70%, transparent);
  opacity: 0; transition: opacity 0.35s var(--t7-ease);
}
.t7-header.is-stuck::after { opacity: 1; }

.t7-header__bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
  padding-block: 16px;
  transition: padding 0.35s var(--t7-ease);
}
.t7-brand { display: inline-flex; align-items: center; gap: 14px; }
.t7-brand__mark {
  flex-shrink: 0;
  height: 54px;
  display: inline-flex;
  transition: height 0.35s var(--t7-ease);
}
.t7-brand__mark img, .t7-brand__mark svg, .t7-brand__mark .custom-logo {
  height: 100%; width: auto;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 22px rgba(47, 129, 247, 0.14));
}
.t7-logo-img { display: block; }
.t7-brand__text { display: flex; flex-direction: column; line-height: 1.04; gap: 3px; }
.t7-brand__name {
  font-family: var(--t7-font-head);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  color: var(--t7-text);
}
.t7-brand__tag {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--t7-muted);
}

.t7-header__ad {
  justify-self: center;
  max-width: 100%;
  opacity: 0.96;
}

.t7-header__tools { display: inline-flex; align-items: center; gap: 9px; }
.t7-icon-btn {
  position: relative;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--t7-radius-sm);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--t7-border);
  color: var(--t7-text-dim);
  box-shadow: inset 0 1px 0 var(--t7-edge-hi);
  transition: background 0.22s, border-color 0.22s, color 0.22s, transform 0.22s var(--t7-ease), box-shadow 0.22s;
}
.t7-icon-btn:hover {
  background: var(--t7-blue-soft);
  border-color: var(--t7-blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px var(--t7-blue-glow), inset 0 1px 0 var(--t7-edge-hi);
}
.t7-icon-btn:active { transform: translateY(0); }
.t7-icon-btn svg { width: 19px; height: 19px; }
.t7-icon-btn__badge {
  position: absolute; top: 8px; right: 9px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--t7-red);
  border: 2px solid var(--t7-bg);
  box-shadow: 0 0 8px var(--t7-red-glow);
}

/* Primary nav */
.t7-nav {
  border-top: 1px solid var(--t7-hairline);
  background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent);
}
.t7-nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.t7-menu {
  display: flex; align-items: center;
  gap: clamp(4px, 1.5vw, 26px);
  list-style: none; margin: 0; padding: 0;
  flex-wrap: wrap;
}
.t7-menu > li { position: relative; }
.t7-menu > li > a {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--t7-font-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--t7-muted);
  padding: 18px 2px;
  position: relative;
  white-space: nowrap;
  transition: color 0.22s var(--t7-ease);
}
.t7-menu > li > a::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 10px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--t7-blue-300), var(--t7-blue));
  box-shadow: 0 0 14px var(--t7-blue-glow);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.32s var(--t7-ease);
}
.t7-menu > li:hover > a,
.t7-menu > li:focus-within > a,
.t7-menu > li.current-menu-item > a,
.t7-menu > li.current-menu-parent > a { color: var(--t7-text); }
.t7-menu > li:hover > a::after,
.t7-menu > li:focus-within > a::after,
.t7-menu > li.current-menu-item > a::after,
.t7-menu > li.current-menu-parent > a::after { transform: scaleX(1); }
.t7-menu > li > a svg { opacity: 0.6; transition: transform 0.25s var(--t7-ease); }
.t7-menu > li:hover > a svg { transform: rotate(180deg); }

.t7-menu .t7-live-flag {
  font-family: var(--t7-font-head);
  font-size: 0.56rem; font-weight: 800; letter-spacing: 0.12em;
  background: linear-gradient(135deg, var(--t7-red), var(--t7-red-600));
  color: #fff;
  padding: 2px 5px; border-radius: 4px;
  box-shadow: 0 0 12px var(--t7-red-glow);
  animation: t7-live-flag 2.2s var(--t7-ease) infinite;
}
@keyframes t7-live-flag { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Dropdowns */
.t7-menu ul.sub-menu {
  position: absolute; top: calc(100% - 6px); left: -14px;
  min-width: 230px;
  list-style: none; margin: 0; padding: 8px;
  background: var(--t7-surface-2);
  border: 1px solid var(--t7-border-strong);
  border-radius: var(--t7-radius-sm);
  box-shadow: var(--t7-shadow);
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.24s var(--t7-ease), transform 0.24s var(--t7-ease), visibility 0.24s;
  z-index: 50;
}
.t7-menu li:hover > ul.sub-menu,
.t7-menu li:focus-within > ul.sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.t7-menu ul.sub-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--t7-radius-xs);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--t7-text-dim);
  text-transform: none;
  letter-spacing: 0;
}
.t7-menu ul.sub-menu a:hover { background: var(--t7-blue-soft); color: #fff; }

/* Stuck header state (set via JS) */
.t7-header.is-stuck {
  background: color-mix(in srgb, var(--t7-bg) 92%, transparent);
  box-shadow: 0 14px 40px -18px rgba(0, 0, 0, 0.7);
  border-bottom-color: var(--t7-border-strong);
}
.t7-header.is-stuck .t7-header__bar { padding-block: 8px; }
.t7-header.is-stuck .t7-brand__mark { height: 36px; }
.t7-header.is-stuck .t7-brand__name { font-size: 1.15rem; }
.t7-header.is-stuck .t7-brand__tag,
.t7-header.is-stuck .t7-header__ad { display: none; }
.t7-header.is-stuck .t7-menu > li > a { padding-block: 13px; }

/* Mobile nav toggle */
.t7-burger { display: none; }

/* 5. BREAKING TICKER =================================================== */
.t7-breaking {
  position: relative;
  background:
    linear-gradient(90deg, var(--t7-red-soft), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent),
    var(--t7-surface);
  border-block: 1px solid var(--t7-border);
  overflow: hidden;
}
.t7-breaking::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--t7-red), var(--t7-red-600));
  box-shadow: 0 0 18px var(--t7-red-glow);
}
.t7-breaking__inner {
  display: flex; align-items: center; gap: 18px;
  min-height: 50px;
}
.t7-breaking__badge {
  display: inline-flex; align-items: center; gap: 9px;
  flex-shrink: 0;
  font-family: var(--t7-font-head);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--t7-red), var(--t7-red-600));
  padding: 8px 24px 8px 14px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  box-shadow: 0 0 30px -6px var(--t7-red-glow);
}
.t7-breaking__viewport {
  flex: 1; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 3%, #000 94%, transparent);
}
.t7-breaking__track {
  display: flex; align-items: center;
  gap: 60px;
  width: max-content;
  animation: t7-ticker 42s linear infinite;
}
.t7-breaking:hover .t7-breaking__track,
.t7-breaking__track[data-paused="true"] { animation-play-state: paused; }
@keyframes t7-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.t7-breaking__item {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.9rem;
  color: var(--t7-text-dim);
  white-space: nowrap;
}
.t7-breaking__item a { color: var(--t7-text-dim); }
.t7-breaking__item a:hover { color: #fff; }
.t7-breaking__item::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--t7-red); flex-shrink: 0;
}
.t7-breaking__time { color: var(--t7-muted); font-size: 0.78rem; flex-shrink: 0; }
.t7-breaking__controls { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; padding-right: 2px; }
.t7-breaking__ctrl {
  width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 7px; color: var(--t7-muted);
  background: transparent; border: 1px solid transparent;
}
.t7-breaking__ctrl:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.t7-breaking__ctrl svg { width: 14px; height: 14px; }

/* 6. LIVE TV — the cinematic broadcast moment ========================= */
/* (.t7-live-stage is used by the dedicated Live TV page template;
   the homepage uses the boxed .t7-livepanel composition — see section 8.) */
.t7-live-stage {
  position: relative;
  border-radius: var(--t7-radius-xl);
  overflow: hidden;
  background:
    radial-gradient(140% 120% at 50% -20%, rgba(47, 129, 247, 0.28), transparent 52%),
    radial-gradient(90% 80% at 100% 120%, rgba(23, 90, 200, 0.16), transparent 60%),
    linear-gradient(175deg, var(--t7-surface-3), var(--t7-surface) 55%, var(--t7-bg-2));
  border: 1px solid var(--t7-border-strong);
  box-shadow:
    var(--t7-shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 90px -40px rgba(47, 129, 247, 0.4);
  isolation: isolate;
}
/* corner brackets — broadcast framing */
.t7-live-stage::before,
.t7-live-stage::after {
  content: ""; position: absolute; z-index: 4; width: 26px; height: 26px;
  border: 2px solid var(--t7-blue-300); opacity: 0.5;
  pointer-events: none;
}
.t7-live-stage::before { top: 16px; left: 16px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.t7-live-stage::after { bottom: 16px; right: 16px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }

.t7-live-stage__grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(120, 160, 230, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 230, 0.10) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(130% 100% at 30% 30%, #000, transparent 80%);
          mask-image: radial-gradient(130% 100% at 30% 30%, #000, transparent 80%);
  opacity: 0.55;
}
.t7-live-stage__world {
  position: absolute; inset: -5% -5% -5% 20%; z-index: 0;
  background-position: center right;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.85;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%);
          mask-image: linear-gradient(90deg, transparent, #000 40%);
}
/* slow light sweep */
.t7-live-stage__inner::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(140, 180, 255, 0.06) 50%, transparent 60%);
  transform: translateX(-30%);
  animation: t7-sweep 9s var(--t7-ease) infinite;
}
@keyframes t7-sweep { 0% { transform: translateX(-40%); } 60%, 100% { transform: translateX(40%); } }

.t7-live-stage__inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) 1.15fr;
  gap: clamp(22px, 3.4vw, 52px);
  padding: clamp(26px, 3.6vw, 52px);
  min-height: clamp(420px, 40vw, 520px);
}
.t7-live-copy__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 18px;
}

.t7-live-screen {
  position: relative;
  align-self: center;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--t7-radius);
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 50% 30%, #0b1424, #04060c 75%);
  border: 1px solid var(--t7-border-strong);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 0 120px -40px rgba(47, 129, 247, 0.35),
    0 40px 80px -30px #000;
  display: grid;
  place-items: center;
}
/* screen vignette + scanlines */
.t7-live-screen::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background:
    radial-gradient(120% 120% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.55)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0 2px, transparent 2px 4px);
}
.t7-live-screen__mark {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: center;
}
.t7-live-screen__logo {
  height: clamp(96px, 22%, 150px); width: auto;
  opacity: 0.16;
  filter: grayscale(0.2) drop-shadow(0 0 40px var(--t7-blue-glow));
}
.t7-live-screen__badge { position: absolute; top: 16px; right: 16px; z-index: 6; }
.t7-live-screen iframe,
.t7-live-screen video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 5; }
/* soft blue glow ring when a real stream is playing */
.t7-live-screen[data-status="live"] { box-shadow: inset 0 0 0 1px rgba(47,129,247,0.5), 0 0 60px -10px var(--t7-blue-glow), 0 40px 80px -30px #000; }

/* Tap-to-play affordance for the compact homepage panel (no autoplay there). */
.t7-live-screen__play {
  position: absolute; inset: 0; z-index: 7;
  display: grid; place-items: center;
  width: 100%; height: 100%;
  border: 0; cursor: pointer;
  color: #fff;
  background: radial-gradient(60% 60% at 50% 50%, rgba(0,0,0,0.35), rgba(0,0,0,0.62));
}
.t7-live-screen__play svg { position: relative; z-index: 1; width: 26px; height: 26px; }
.t7-live-screen__play::before {
  content: ""; position: absolute; width: 66px; height: 66px; border-radius: 50%;
  background: var(--t7-red); box-shadow: 0 0 40px -6px var(--t7-red);
  transition: transform .15s ease;
}
.t7-live-screen__play:hover::before { transform: scale(1.06); }
.t7-live-screen.is-playing .t7-live-screen__play { display: none; }

/* Polite playback status / error line (empty until JS needs it). */
.t7-live-screen__status {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; margin: 0;
  padding: 10px 14px;
  font-size: 0.82rem; line-height: 1.4; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.82));
}
.t7-live-screen__status:empty { display: none; }

/* Decorative broadcast control bar (offline only) */
.t7-live-screen__bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}
.t7-live-screen__bar > svg { width: 15px; height: 15px; }
.t7-live-screen__progress {
  flex: 1; height: 3px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.16);
  position: relative;
}
.t7-live-screen__progress::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 34%;
  background: linear-gradient(90deg, var(--t7-red-600), var(--t7-red));
  border-radius: 3px;
}
.t7-live-screen__progress::after {
  content: ""; position: absolute; left: 34%; top: 50%;
  width: 11px; height: 11px; border-radius: 50%;
  background: #fff; transform: translate(-50%, -50%);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
}
.t7-live-screen__icons { display: inline-flex; gap: 13px; }
.t7-live-screen__icons svg { width: 15px; height: 15px; }

/* Offline state */
.t7-live-offline {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; text-align: center;
  padding: 28px 32px 64px;
  background: radial-gradient(90% 90% at 50% 42%, rgba(17, 28, 48, 0.55), rgba(4, 6, 12, 0.9));
}
.t7-live-offline__icon {
  position: relative;
  width: 66px; height: 66px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(180deg, var(--t7-surface-3), var(--t7-surface-2));
  border: 1px solid var(--t7-border-strong);
  color: var(--t7-blue-200);
  box-shadow: inset 0 1px 0 var(--t7-edge-hi);
}
.t7-live-offline__icon svg { width: 28px; height: 28px; position: relative; z-index: 2; }
.t7-live-offline__ping {
  position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid var(--t7-blue-300);
  animation: t7-ping 2.6s var(--t7-ease-out) infinite;
}
@keyframes t7-ping {
  0%   { transform: scale(1); opacity: 0.7; }
  70%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}
.t7-live-offline h3 { font-size: 1.3rem; margin: 6px 0 0; letter-spacing: -0.02em; }
.t7-live-offline p { color: var(--t7-muted); margin: 0; font-size: 0.92rem; max-width: 38ch; }
.t7-live-offline__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

.t7-live-status-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--t7-font-head);
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--t7-muted);
  padding: 6px 11px; border-radius: 7px;
  border: 1px solid var(--t7-border-strong);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
}

.t7-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--t7-border);
}
.t7-panel__title {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--t7-font-head);
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--t7-text);
  margin: 0;
}
.t7-panel__head .t7-viewall { padding: 0; }

/* ============================================================
   Homepage OPENING BLOCK — Latest News (dominant, left) + Live TV panel (right)
   The opening block is intentionally always visible (no .t7-reveal).
   ============================================================ */
.t7-opening { padding-top: clamp(28px, 3.6vw, 48px); }
.t7-opening__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 384px);
  grid-template-rows: auto 1fr;
  gap: var(--t7-gap-lg);
  align-items: start;
}
.t7-opening__grid--solo { grid-template-columns: 1fr; grid-template-rows: none; }
.t7-opening__grid--solo .t7-livepanel { max-width: 460px; margin-inline: auto; }

/* Explicit desktop placement — DOM order stays lead → panel → feed so mobile
   stacks with Live TV right after the lead story. */
.t7-opening__lead { grid-column: 1; grid-row: 1; display: flex; }
.t7-opening__feed { grid-column: 1; grid-row: 2; }
.t7-opening .t7-livepanel { grid-column: 2; grid-row: 1 / span 2; align-self: start; }

.t7-opening__lead .t7-card--feature {
  width: 100%;
  min-height: clamp(300px, 32vw, 420px);
}
.t7-opening__lead .t7-card--feature .t7-card__title {
  font-size: var(--t7-fs-xl);
  line-height: 1.1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.t7-opening__lead .t7-card--feature .t7-card__excerpt {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.t7-opening__feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--t7-gap-lg) var(--t7-gap);
}
.t7-opening__feed .t7-card__title { font-size: var(--t7-fs-md); }
@media (max-width: 1180px) {
  .t7-opening__grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 340px); }
  .t7-opening__feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 940px) {
  .t7-opening__grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .t7-opening__lead,
  .t7-opening__feed,
  .t7-opening .t7-livepanel { grid-column: 1; grid-row: auto; }
  .t7-opening__feed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .t7-opening__feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .t7-opening__feed { grid-template-columns: 1fr; }
}

/* RIGHT — boxed broadcast panel (prominent, but secondary to the feed) */
.t7-livepanel {
  display: flex; flex-direction: column;
  gap: 14px;
  padding: clamp(16px, 1.5vw, 22px);
  background:
    radial-gradient(120% 70% at 100% 0%, var(--t7-blue-soft), transparent 55%),
    var(--t7-elev-1);
  border: 1px solid var(--t7-border-strong);
  border-radius: var(--t7-radius-lg);
  box-shadow: var(--t7-shadow), inset 0 1px 0 var(--t7-edge-hi);
  position: sticky;
  top: calc(var(--t7-header-h-stuck) + 16px);
}
@media (max-width: 940px) { .t7-livepanel { position: static; } }
.t7-livepanel__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px;
}
.t7-livepanel__eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--t7-font-head);
  font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--t7-blue-300);
}
.t7-livepanel__eyebrow svg { width: 13px; height: 13px; }
.t7-livepanel__title {
  font-size: var(--t7-fs-lg);
  letter-spacing: -0.02em;
  margin: 5px 0 0;
}
.t7-livepanel .t7-live-screen {
  aspect-ratio: auto;
  min-height: clamp(300px, 30vw, 340px);
  border-radius: var(--t7-radius-sm);
}
.t7-livepanel .t7-live-screen__logo { height: clamp(60px, 16%, 96px); }
.t7-livepanel .t7-live-offline { padding: 20px 18px; gap: 10px; }
.t7-livepanel .t7-live-offline__icon { width: 54px; height: 54px; }
.t7-livepanel .t7-live-offline__icon svg { width: 24px; height: 24px; }
.t7-livepanel .t7-live-offline h3 { font-size: 1.08rem; }
.t7-livepanel .t7-live-offline p { font-size: 0.84rem; }
.t7-livepanel .t7-live-offline__actions { flex-direction: column; width: 100%; margin-top: 4px; }
.t7-livepanel .t7-live-offline__actions .t7-btn { width: 100%; justify-content: center; }
.t7-livepanel__cta { width: 100%; justify-content: center; }
.t7-livepanel__bulletins { margin-top: 2px; }
.t7-livepanel__bulletins-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--t7-border);
}
.t7-livepanel__bulletins .t7-bulletins__item { grid-template-columns: 60px 1fr; padding: 10px 0; }
.t7-livepanel__bulletins .t7-bulletins__title { font-size: 0.82rem; }

/* 7. CARDS =========================================================== */
.t7-card { position: relative; }
.t7-card a { color: inherit; }

.t7-card__media {
  position: relative;
  border-radius: var(--t7-radius-sm);
  overflow: hidden;
  background: var(--t7-surface-2);
  aspect-ratio: 16 / 10;
  box-shadow: inset 0 0 0 1px var(--t7-hairline);
}
.t7-card__media::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(47, 129, 247, 0);
  transition: box-shadow 0.3s var(--t7-ease);
  pointer-events: none;
}
.t7-card:hover .t7-card__media::before { box-shadow: inset 0 0 0 1px rgba(47, 129, 247, 0.35); }
.t7-card__media img,
.t7-card__media svg.t7-placeholder,
.t7-bulletins__media img,
.t7-bulletins__media svg.t7-placeholder,
.t7-result__media img,
.t7-result__media svg.t7-placeholder {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--t7-ease), filter 0.4s;
}
.t7-card:hover .t7-card__media img,
.t7-card:hover .t7-card__media svg.t7-placeholder { transform: scale(1.06); }
/* Safety net: any media inside a card is bounded and cropped — an image-only
   NOTICE / ADVERTISEMENT post with a very tall document scan can never push the
   card taller than its box or dominate the viewport. */
.t7-card .t7-card__media,
.t7-opening__lead .t7-card--feature,
.t7-topstories__lead .t7-card--feature { overflow: hidden; }
.t7-card .t7-card__media > * { max-width: 100%; max-height: 100%; }
/* Inline SVG placeholders inside a plain wrap (e.g. article hero) keep flow height */
.t7-article__hero svg.t7-placeholder { position: static; width: 100%; height: auto; }
.t7-card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 10, 18, 0.5));
  opacity: 0; transition: opacity 0.3s;
}
.t7-card:hover .t7-card__media::after { opacity: 1; }

.t7-card__cat {
  font-family: var(--t7-font-head);
  font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--t7-blue-300);
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 9px;
  transition: color 0.2s;
}
.t7-card__cat::before {
  content: ""; width: 5px; height: 5px; border-radius: 1px;
  background: currentColor; transform: rotate(45deg);
}
.t7-card:hover .t7-card__cat { color: var(--t7-blue-200); }
.t7-card__title {
  font-size: var(--t7-fs-md);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.017em;
  margin: 0;
  transition: color 0.2s;
}
.t7-card:hover .t7-card__title { color: #fff; }
.t7-card__title a::after {
  content: ""; position: absolute; inset: 0; z-index: 3;
}
.t7-card__meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.76rem;
  color: var(--t7-muted);
  margin-top: 10px;
}
.t7-card__meta > * { display: inline-flex; align-items: center; gap: 6px; }
.t7-card__meta > * + *::before {
  content: ""; width: 3px; height: 3px; border-radius: 50%;
  background: var(--t7-muted-2); margin-right: 2px;
}
.t7-card__body { padding-top: 14px; }
.t7-card--standard { transition: transform 0.35s var(--t7-ease); }
.t7-card--standard:hover { transform: translateY(-4px); }

/* Feature card — dominant story */
.t7-card--feature {
  position: relative;
  border-radius: var(--t7-radius-lg);
  overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: 340px;
  height: 100%;
  box-shadow: var(--t7-shadow);
  transition: transform 0.4s var(--t7-ease), box-shadow 0.4s var(--t7-ease);
}
.t7-card--feature:hover { transform: translateY(-4px); box-shadow: var(--t7-shadow-lg); }
.t7-card--feature > img,
.t7-card--feature .t7-card__media {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: 0;
}
.t7-card--feature .t7-card__media { aspect-ratio: auto; box-shadow: none; }
.t7-card--feature .t7-card__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(4, 7, 14, 0) 25%, rgba(4, 7, 14, 0.5) 58%, rgba(4, 7, 14, 0.96)),
    linear-gradient(75deg, rgba(4, 7, 14, 0.5), transparent 60%);
}
.t7-card--feature .t7-card__media::after { content: none; }
.t7-card--feature .t7-card__body {
  position: relative; z-index: 2;
  padding: clamp(22px, 3vw, 38px);
  width: 100%;
}
.t7-card--feature .t7-card__title {
  font-size: var(--t7-fs-xl);
  line-height: 1.08;
  letter-spacing: -0.028em;
}
.t7-card--feature .t7-card__cat { color: var(--t7-blue-200); }
.t7-card--feature .t7-card__excerpt {
  color: var(--t7-text-dim);
  font-size: 0.96rem;
  line-height: 1.5;
  margin: 12px 0 0;
  max-width: 54ch;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.t7-card--feature .t7-card__meta { color: var(--t7-text-dim); }

/* Horizontal / list card */
.t7-card--h {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 15px;
  align-items: start;
}
.t7-card--h .t7-card__media { aspect-ratio: 4 / 3; border-radius: var(--t7-radius-xs); }
.t7-card--h .t7-card__body { padding-top: 0; }
.t7-card--h .t7-card__title { font-size: 0.92rem; line-height: 1.32; letter-spacing: -0.012em; }
.t7-card--h .t7-card__cat { font-size: 0.58rem; margin-bottom: 5px; }
.t7-card--h .t7-card__meta { margin-top: 7px; font-size: 0.72rem; }

/* Compact numbered (trending) */
.t7-rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.t7-rank__item {
  display: grid; grid-template-columns: 34px 1fr; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--t7-hairline);
  align-items: center;
}
.t7-rank__item:last-child { border-bottom: 0; }
.t7-rank__num {
  font-family: var(--t7-font-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: transparent;
  -webkit-text-stroke: 1px var(--t7-border-strong);
  text-align: center;
}
.t7-rank__item:nth-child(-n+3) .t7-rank__num {
  color: var(--t7-blue-300); -webkit-text-stroke: 0;
}
.t7-rank__title { font-size: 0.88rem; line-height: 1.32; margin: 0; font-family: var(--t7-font-body); font-weight: 600; }
.t7-rank__meta { font-size: 0.74rem; color: var(--t7-muted); margin-top: 4px; }

/* Video card — cinematic */
.t7-card--video { transition: transform 0.4s var(--t7-ease); }
.t7-card--video:hover { transform: translateY(-4px); }
.t7-card--video .t7-card__media { aspect-ratio: 16 / 9; border-radius: var(--t7-radius-sm); }
.t7-card--video .t7-card__media::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(4,7,14,0) 45%, rgba(4,7,14,0.55));
  opacity: 1;
}
.t7-card--video .t7-card__play {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
}
.t7-card--video .t7-card__play span {
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(47,129,247,0.35), rgba(6,10,18,0.6));
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 30px -8px rgba(0,0,0,0.6);
  transition: transform 0.35s var(--t7-ease), background 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.t7-card--video:hover .t7-card__play span {
  transform: scale(1.12);
  background: var(--t7-blue);
  border-color: transparent;
  box-shadow: 0 12px 40px -8px var(--t7-blue-glow);
}
.t7-card--video .t7-card__play svg { width: 22px; height: 22px; margin-left: 3px; color: #fff; }
.t7-card__duration {
  position: absolute; right: 10px; bottom: 10px; z-index: 3;
  font-family: var(--t7-font-head);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: rgba(4, 7, 14, 0.82);
  border: 1px solid var(--t7-hairline);
  padding: 3px 8px; border-radius: 6px;
  backdrop-filter: blur(2px);
}
/* the dominant video in the hero grid */
.t7-video-grid--hero > :first-child .t7-card__media { border-radius: var(--t7-radius); height: 100%; }
.t7-video-grid--hero > :first-child { display: flex; flex-direction: column; }
.t7-video-grid--hero > :first-child .t7-card__play span { width: 76px; height: 76px; }
.t7-video-grid--hero > :first-child .t7-card__title { font-size: var(--t7-fs-lg); }

/* Shorts card — portrait, cinematic rail */
.t7-shorts-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(178px, 22vw, 216px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(90deg, #000 96%, transparent);
          mask-image: linear-gradient(90deg, #000 96%, transparent);
}
.t7-short { scroll-snap-align: start; transition: transform 0.4s var(--t7-ease); }
.t7-short:hover { transform: translateY(-5px); }
.t7-short .t7-card__media {
  aspect-ratio: 9 / 16;
  border-radius: var(--t7-radius);
  box-shadow: var(--t7-shadow), inset 0 0 0 1px var(--t7-hairline);
}
.t7-short .t7-card__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(4,7,14,0.1) 0%, transparent 30%, transparent 45%, rgba(4, 7, 14, 0.95));
}
.t7-short:hover .t7-card__media::after { content: ""; position: absolute; inset: 0; z-index: 1; box-shadow: inset 0 0 0 1.5px rgba(47,129,247,0.5); border-radius: inherit; }
.t7-short__body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 15px;
}
.t7-short__title {
  font-family: var(--t7-font-head);
  font-weight: 600;
  font-size: 0.86rem; line-height: 1.26; margin: 0;
  letter-spacing: -0.01em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.t7-short__play {
  position: absolute; top: 13px; left: 13px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(4, 7, 14, 0.55); border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(3px);
  transition: background 0.3s, transform 0.3s var(--t7-ease);
}
.t7-short:hover .t7-short__play { background: var(--t7-blue); border-color: transparent; transform: scale(1.08); }
.t7-short__play svg { width: 13px; height: 13px; margin-left: 2px; color: #fff; }
.t7-shorts-more {
  scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  aspect-ratio: 9 / 16;
  border-radius: var(--t7-radius);
  background: var(--t7-elev-1);
  border: 1px dashed var(--t7-border-strong);
  color: var(--t7-text-dim);
  font-family: var(--t7-font-head); font-weight: 600; font-size: 0.85rem;
  transition: border-color 0.3s, color 0.3s, transform 0.3s var(--t7-ease);
}
.t7-shorts-more span {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--t7-blue-soft); border: 1px solid var(--t7-border-strong);
}
.t7-shorts-more:hover { border-color: var(--t7-blue); color: #fff; transform: translateY(-5px); }

/* Card surface wrapper (for boxed cards) */
.t7-panel {
  background: var(--t7-elev-1);
  border: 1px solid var(--t7-border);
  border-radius: var(--t7-radius);
  padding: clamp(18px, 2vw, 24px);
  box-shadow: inset 0 1px 0 var(--t7-edge-hi);
  transition: border-color 0.3s var(--t7-ease), transform 0.3s var(--t7-ease), box-shadow 0.3s;
}
.t7-panel:hover { border-color: var(--t7-border-strong); }
a.t7-panel:hover, .t7-panel--hover:hover { transform: translateY(-4px); box-shadow: var(--t7-shadow); }
.t7-panel--trending { background: radial-gradient(90% 120% at 100% 0%, var(--t7-blue-softer), transparent 55%), var(--t7-elev-1); }

.t7-section__lede {
  max-width: 62ch;
  color: var(--t7-muted);
  font-size: 0.98rem;
  margin: -6px 0 26px;
}

/* 8. HOMEPAGE SECTIONS ================================================ */
/* Top Stories — one dominant feature + a supporting editorial rail */
.t7-topstories {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: var(--t7-gap-lg);
  align-items: stretch;
}
.t7-topstories__lead { display: flex; }
.t7-topstories__lead .t7-card--feature { width: 100%; min-height: clamp(360px, 38vw, 500px); }
.t7-topstories__rail {
  display: flex; flex-direction: column;
  gap: 4px;
}
.t7-topstories__rail .t7-card--h {
  padding: 14px 0;
  border-bottom: 1px solid var(--t7-hairline);
  align-items: center;
}
.t7-topstories__rail .t7-card--h:first-child { padding-top: 0; }
.t7-topstories__rail .t7-card--h:last-child { border-bottom: 0; padding-bottom: 0; }
.t7-topstories__rail .t7-card--h .t7-card__media { width: 120px; aspect-ratio: 4/3; }
.t7-topstories__rail .t7-card--h .t7-card__title { font-size: 1rem; }
@media (max-width: 940px) {
  .t7-topstories { grid-template-columns: 1fr; }
}

.t7-sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--t7-gap);
}

/* Category spotlight — asymmetric: dominant lead + stacked list */
.t7-spotlight {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--t7-gap-lg);
}
.t7-spotlight__lead { display: flex; }
.t7-spotlight__lead .t7-card--feature { width: 100%; min-height: clamp(320px, 34vw, 440px); }
.t7-spotlight__side { display: flex; flex-direction: column; gap: 2px; }
.t7-spotlight__side .t7-card--h {
  padding: 15px 0;
  border-bottom: 1px solid var(--t7-hairline);
}
.t7-spotlight__side .t7-card--h:first-child { padding-top: 0; }
.t7-spotlight__side .t7-card--h:last-child { border-bottom: 0; }
/* Category with only one story → lead spans full width, no empty column */
.t7-spotlight--solo { grid-template-columns: 1fr; }
.t7-spotlight--solo .t7-spotlight__lead .t7-card--feature { min-height: clamp(300px, 30vw, 400px); }
@media (max-width: 860px) { .t7-spotlight { grid-template-columns: 1fr; } }

.t7-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--t7-gap);
}
.t7-video-grid--hero {
  grid-template-columns: 1.7fr 1fr 1fr;
  grid-auto-rows: 1fr;
}
.t7-video-grid--hero > :first-child { grid-row: span 2; }
@media (max-width: 960px) { .t7-video-grid--hero { grid-template-columns: 1fr 1fr; } .t7-video-grid--hero > :first-child { grid-row: auto; grid-column: 1 / -1; } }
@media (max-width: 560px) { .t7-video-grid--hero { grid-template-columns: 1fr; } }

.t7-rank--cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 44px;
}
.t7-rank--cols .t7-rank__item:nth-last-child(2) { border-bottom: 0; }
@media (max-width: 720px) { .t7-rank--cols { grid-template-columns: 1fr; } .t7-rank--cols .t7-rank__item:nth-last-child(2) { border-bottom: 1px solid var(--t7-hairline); } }

/* Section reveal — PROGRESSIVE ENHANCEMENT ONLY.
   Core content is ALWAYS at full opacity in plain CSS. The entrance is a
   TRANSFORM-ONLY slide (never opacity) so that if a transition is paused —
   backgrounded tab, headless renderer, blocked JS, IO that never fires — the
   content is still fully visible, merely offset by a few pixels. It is opt-in:
   it only applies once the inline <head> boot script has added `t7-anim` to
   <html>, and the boot script also force-adds `.is-in` so sections settle. */
.t7-reveal { /* fully visible by default — no opacity here on purpose */ }

@media (prefers-reduced-motion: no-preference) {
  .t7-anim .t7-reveal {
    transform: translateY(22px);
    transition: transform 0.7s var(--t7-ease-out);
  }
  .t7-anim .t7-reveal.is-in { transform: none; }
}

/* 9. ARTICLE ========================================================= */
.t7-article { padding-block: clamp(28px, 4vw, 48px); }
.t7-article__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.t7-article__main { min-width: 0; }
.t7-breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 0.78rem; color: var(--t7-muted);
  margin-bottom: 18px;
}
.t7-breadcrumbs a { color: var(--t7-muted); }
.t7-breadcrumbs a:hover { color: var(--t7-blue-300); }
.t7-breadcrumbs svg { width: 12px; height: 12px; opacity: 0.5; }
.t7-breadcrumbs [aria-current] { color: var(--t7-text-dim); }

.t7-article__header { max-width: var(--t7-read); margin-inline: auto; }
.t7-article__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.t7-article__title {
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  line-height: 1.1;
  margin: 0 0 18px;
}
.t7-article__standfirst {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--t7-text-dim);
  margin-bottom: 22px;
}
.t7-article__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  padding-block: 14px;
  border-block: 1px solid var(--t7-border);
  font-size: 0.85rem;
  color: var(--t7-muted);
}
.t7-article__meta strong { color: var(--t7-text-dim); font-weight: 600; }
.t7-article__meta-item { display: inline-flex; align-items: center; gap: 7px; }
.t7-article__meta-item svg { width: 15px; height: 15px; opacity: 0.7; }

/* Reader sharing — T7 blue / neutral only, never breaking-red */
.t7-share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-block: 16px; }
.t7-share__label {
  font-family: var(--t7-font-head);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--t7-muted);
  margin-right: 4px;
}
.t7-share__btn,
.t7-share__bookmark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--t7-border);
  color: var(--t7-text-dim);
  box-shadow: inset 0 1px 0 var(--t7-edge-hi);
  transition: transform 0.2s var(--t7-ease), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.t7-share__btn:hover,
.t7-share__bookmark:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: var(--t7-blue);
  background: var(--t7-blue-soft);
  box-shadow: 0 8px 20px -10px var(--t7-blue-glow);
}
.t7-share__btn:active,
.t7-share__bookmark:active { transform: translateY(0); }
.t7-share__btn svg,
.t7-share__bookmark svg { width: 17px; height: 17px; }
.t7-share__native { color: var(--t7-blue-200); border-color: var(--t7-border-strong); }
.t7-share__btn[hidden] { display: none !important; }
.t7-share__bookmark { margin-left: auto; }
.t7-share__bookmark[aria-pressed="true"],
.t7-share__bookmark.is-saved { background: var(--t7-blue); border-color: transparent; color: #fff; }

/* Sticky vertical share rail beside the reading column (desktop only) */
.t7-article__reading { position: relative; max-width: var(--t7-read); margin-inline: auto; }
.t7-share-rail { display: none; }
@media (min-width: 1200px) {
  .t7-share-rail {
    display: block;
    position: absolute;
    right: 100%;
    top: 0;
    height: 100%;
    margin-right: 22px;
  }
  .t7-share-rail__inner {
    position: sticky;
    top: calc(var(--t7-header-h-stuck) + 26px);
  }
  .t7-share--rail {
    flex-direction: column;
    gap: 8px;
    padding-block: 0;
  }
  .t7-share--rail .t7-share__btn { width: 44px; height: 44px; }
  /* keep the reading column feeling uncluttered: the in-flow row is enough
     once the rail is present, but we keep both for redundancy/scannability */
}
.t7-share.has-native .t7-share__native { display: grid; }

.t7-article__hero {
  margin: 26px 0;
  border-radius: var(--t7-radius);
  overflow: hidden;
  border: 1px solid var(--t7-border);
}
.t7-article__hero figcaption {
  font-size: 0.8rem; color: var(--t7-muted);
  padding: 10px 14px;
  background: var(--t7-surface);
}

.t7-content { max-width: var(--t7-read); margin-inline: auto; font-size: 1.075rem; line-height: 1.75; }
.t7-content > * { margin-bottom: 1.4em; }
.t7-content p { color: var(--t7-text-dim); }
.t7-content h2 { font-size: 1.6rem; margin-top: 1.7em; }
.t7-content h3 { font-size: 1.28rem; margin-top: 1.5em; }
.t7-content a { color: var(--t7-blue-300); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(127,176,255,0.4); }
.t7-content a:hover { text-decoration-color: currentColor; }
.t7-content img { border-radius: var(--t7-radius-sm); }
.t7-content figure { margin: 1.8em 0; }
.t7-content figcaption { font-size: 0.85rem; color: var(--t7-muted); margin-top: 8px; text-align: center; }
.t7-content blockquote {
  margin: 1.8em 0;
  padding: 6px 0 6px 24px;
  border-left: 3px solid var(--t7-blue);
  font-family: var(--t7-font-head);
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--t7-text);
}
.t7-content blockquote cite { display: block; margin-top: 10px; font-size: 0.85rem; font-style: normal; color: var(--t7-muted); font-family: var(--t7-font-body); }
.t7-content ul, .t7-content ol { padding-left: 1.4em; color: var(--t7-text-dim); }
.t7-content li { margin-bottom: 0.5em; }
.t7-content li::marker { color: var(--t7-blue); }
.t7-content hr { border: 0; border-top: 1px solid var(--t7-border); margin: 2.4em 0; }
.t7-content pre { background: var(--t7-bg-2); border: 1px solid var(--t7-border); border-radius: var(--t7-radius-sm); padding: 18px; overflow-x: auto; font-size: 0.9rem; }
.t7-content code { background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 5px; font-size: 0.9em; }
.t7-content pre code { background: none; padding: 0; }
.t7-content table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.t7-content th, .t7-content td { padding: 10px 12px; border: 1px solid var(--t7-border); text-align: left; }
.t7-content th { background: var(--t7-surface-2); }
.wp-block-image, .wp-caption { max-width: 100%; }
.alignwide { margin-inline: calc(-1 * clamp(20px, 6vw, 90px)); max-width: none; }
.alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }
.aligncenter { margin-inline: auto; }

.t7-article__footer { max-width: var(--t7-read); margin: 30px auto 0; }
.t7-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.t7-tags a {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: var(--t7-radius-pill);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--t7-border);
  color: var(--t7-text-dim);
}
.t7-tags a:hover { border-color: var(--t7-blue); color: #fff; }

.t7-author-box {
  display: flex; gap: 16px;
  padding: 20px;
  margin-top: 28px;
  background: var(--t7-surface);
  border: 1px solid var(--t7-border);
  border-radius: var(--t7-radius);
}
.t7-author-box img { width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0; }
.t7-author-box h4 { margin: 0 0 4px; font-size: 1rem; }
.t7-author-box p { margin: 0; font-size: 0.88rem; color: var(--t7-muted); }

.t7-related { margin-top: 44px; }
.t7-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--t7-gap);
}

/* Reading progress bar */
.t7-progress {
  position: fixed; top: 0; left: 0; z-index: 950;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--t7-blue), var(--t7-blue-300));
  box-shadow: 0 0 12px var(--t7-blue-glow);
  transition: width 0.1s linear;
}

/* Sidebar */
.t7-sidebar { position: sticky; top: calc(var(--t7-header-h-stuck) + 20px); display: flex; flex-direction: column; gap: var(--t7-gap); }
.t7-widget {
  background: var(--t7-surface);
  border: 1px solid var(--t7-border);
  border-radius: var(--t7-radius);
  padding: 18px;
}
.t7-widget__title {
  font-size: 0.82rem;
  font-family: var(--t7-font-head);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--t7-text);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.t7-widget ul { list-style: none; margin: 0; padding: 0; }
.t7-widget li a { display: block; padding: 8px 0; color: var(--t7-text-dim); font-size: 0.9rem; border-bottom: 1px solid var(--t7-hairline); }
.t7-widget li:last-child a { border-bottom: 0; }
.t7-widget li a:hover { color: #fff; }

/* Latest bulletins panel */
.t7-bulletins { display: flex; flex-direction: column; }
.t7-bulletins__item {
  display: grid; grid-template-columns: 74px 1fr; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--t7-hairline);
  align-items: start;
}
.t7-bulletins__item:first-child { padding-top: 0; }
.t7-bulletins__item:last-child { border-bottom: 0; padding-bottom: 0; }
.t7-bulletins__media { aspect-ratio: 1/1; border-radius: var(--t7-radius-xs); overflow: hidden; background: var(--t7-surface-2); }
.t7-bulletins__media img { width: 100%; height: 100%; object-fit: cover; }
.t7-bulletins__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.t7-bulletins__cat { display: block; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--t7-blue-300); font-family: var(--t7-font-head); }
.t7-bulletins__title { display: block; font-size: 0.84rem; line-height: 1.3; margin: 0; font-family: var(--t7-font-body); font-weight: 600; color: var(--t7-text); }
.t7-bulletins__item:hover .t7-bulletins__title { color: #fff; }
.t7-bulletins__time { display: block; font-size: 0.72rem; color: var(--t7-muted); }

/* 10. ARCHIVE / SEARCH ============================================== */
.t7-page-hero {
  padding-block: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--t7-border);
  background:
    radial-gradient(700px 260px at 8% 0%, var(--t7-blue-soft), transparent 70%);
}
.t7-page-hero__eyebrow {
  font-family: var(--t7-font-head);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--t7-blue-300);
  margin-bottom: 10px;
}
.t7-page-hero__title { font-size: clamp(1.9rem, 4vw, 3rem); margin: 0; }
.t7-page-hero__desc { color: var(--t7-text-dim); max-width: 60ch; margin: 14px 0 0; }
.t7-page-hero__count { color: var(--t7-muted); font-size: 0.85rem; margin-top: 10px; }

.t7-filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 22px;
}
.t7-filters a {
  font-family: var(--t7-font-head);
  font-size: 0.8rem; font-weight: 600;
  padding: 8px 15px;
  border-radius: var(--t7-radius-pill);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--t7-border);
  color: var(--t7-text-dim);
  transition: all 0.2s var(--t7-ease);
}
.t7-filters a:hover { border-color: var(--t7-blue); color: #fff; }
.t7-filters a[aria-current="true"], .t7-filters a.is-active {
  background: var(--t7-blue); border-color: transparent; color: #fff;
}

.t7-archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(28px, 4vw, 52px);
  padding-block: var(--t7-section-y);
  align-items: start;
}
.t7-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--t7-gap);
}

.t7-search-results { display: flex; flex-direction: column; gap: 12px; }
.t7-result {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 16px;
  background: var(--t7-surface);
  border: 1px solid var(--t7-border);
  border-radius: var(--t7-radius);
  transition: border-color 0.25s, transform 0.25s var(--t7-ease);
}
.t7-result:hover { border-color: var(--t7-border-strong); transform: translateY(-3px); }
.t7-result__media { aspect-ratio: 16/10; border-radius: var(--t7-radius-xs); overflow: hidden; background: var(--t7-surface-2); }
.t7-result__media img { width: 100%; height: 100%; object-fit: cover; }
.t7-result__title { font-size: 1.05rem; margin: 6px 0 8px; }
.t7-result__excerpt { font-size: 0.88rem; color: var(--t7-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 560px) { .t7-result { grid-template-columns: 1fr; } }

/* Pagination */
.t7-pagination { display: flex; justify-content: center; margin-top: 40px; }
.t7-pagination .nav-links, .t7-pagination .page-numbers { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; list-style: none; padding: 0; }
.t7-pagination a, .t7-pagination span {
  min-width: 42px; height: 42px;
  display: grid; place-items: center;
  padding: 0 12px;
  border-radius: var(--t7-radius-xs);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--t7-border);
  color: var(--t7-text-dim);
  font-weight: 600; font-size: 0.9rem;
}
.t7-pagination a:hover { border-color: var(--t7-blue); color: #fff; }
.t7-pagination .current { background: var(--t7-blue); border-color: transparent; color: #fff; }

/* Search overlay */
.t7-search-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: color-mix(in srgb, var(--t7-bg) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex; flex-direction: column; align-items: center;
  padding-top: clamp(60px, 14vh, 160px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.32s var(--t7-ease), visibility 0.32s;
}
.t7-search-overlay.is-open { opacity: 1; visibility: visible; }
.t7-search-overlay__inner { width: min(100% - 40px, 720px); transform: translateY(-16px); transition: transform 0.4s var(--t7-ease); }
.t7-search-overlay.is-open .t7-search-overlay__inner { transform: none; }
.t7-search-overlay__form { position: relative; }
.t7-search-overlay input[type="search"] {
  width: 100%;
  background: var(--t7-surface-2);
  border: 1px solid var(--t7-border-strong);
  border-radius: var(--t7-radius);
  color: var(--t7-text);
  font-family: var(--t7-font-head);
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  padding: 22px 60px 22px 24px;
  outline: none;
}
.t7-search-overlay input:focus { border-color: var(--t7-blue); box-shadow: 0 0 0 4px var(--t7-blue-soft); }
.t7-search-overlay__submit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--t7-muted); }
.t7-search-overlay__submit svg { width: 24px; height: 24px; }
.t7-search-overlay__hint { color: var(--t7-muted); font-size: 0.82rem; margin-top: 14px; }
.t7-search-overlay__close {
  position: absolute; top: 24px; right: 24px;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; background: var(--t7-surface-2); border: 1px solid var(--t7-border);
  color: var(--t7-text-dim);
}
.t7-search-overlay__close:hover { color: #fff; border-color: var(--t7-red); }

/* Default search form */
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-form .search-field {
  width: 100%;
  background: var(--t7-surface-2);
  border: 1px solid var(--t7-border);
  border-radius: var(--t7-radius-sm);
  color: var(--t7-text);
  padding: 12px 16px;
}
.search-form .search-field:focus { outline: none; border-color: var(--t7-blue); }
.search-form .search-submit { border: 0; }

/* 11. FOOTER ======================================================= */
.t7-footer {
  margin-top: var(--t7-section-y);
  background: linear-gradient(180deg, transparent, var(--t7-bg-2));
  border-top: 1px solid var(--t7-border);
  padding-top: clamp(40px, 5vw, 68px);
}
.t7-footer__top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(24px, 4vw, 54px);
  padding-bottom: 40px;
}
.t7-footer__about p { color: var(--t7-muted); font-size: 0.9rem; max-width: 40ch; margin: 14px 0 18px; }
.t7-footer h4 {
  font-size: 0.78rem;
  font-family: var(--t7-font-head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t7-text);
  margin-bottom: 14px;
}
.t7-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.t7-footer ul a { color: var(--t7-muted); font-size: 0.9rem; }
.t7-footer ul a:hover { color: var(--t7-blue-300); }
.t7-footer__app {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
  padding: 22px clamp(18px, 3vw, 30px);
  background: linear-gradient(120deg, var(--t7-blue-soft), transparent 60%), var(--t7-surface);
  border: 1px solid var(--t7-border);
  border-radius: var(--t7-radius-lg);
}
.t7-footer__app h4 { margin: 0 0 4px; font-size: 1.05rem; letter-spacing: 0; text-transform: none; }
.t7-footer__app p { margin: 0; color: var(--t7-muted); font-size: 0.88rem; }
.t7-footer__app-badges { display: flex; gap: 12px; }
.t7-footer__app-badges a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: var(--t7-radius-sm);
  border: 1px solid var(--t7-border-strong);
  background: rgba(0,0,0,0.25);
  color: var(--t7-text);
  font-size: 0.82rem; font-weight: 600;
}
.t7-footer__app-badges a:hover { border-color: var(--t7-blue); }
.t7-footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  padding: 22px 0 30px;
  margin-top: 30px;
  border-top: 1px solid var(--t7-hairline);
  font-size: 0.82rem;
  color: var(--t7-muted);
}
.t7-footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* 12. WIDGETS / ADS =============================================== */
/* Empty ad inventory reserves NO space — every wrapper collapses cleanly. */
.t7-ad-slot:empty { display: none; }
.t7-home-ad:empty { display: none; }
.t7-home-ad { margin-block: clamp(20px, 3vw, 40px); }
.t7-home-ad > .t7-ad-slot { width: min(100% - 40px, var(--t7-wrap-wide)); margin-inline: auto; }
.t7-ad-slot { display: block; }

/* Real ad creatives (from a widget) sit centered per format. */
.t7-ad-slot--leaderboard { max-width: 970px; margin-inline: auto; }
.t7-ad-slot--rectangle { max-width: 300px; }
.t7-ad-slot--mobile { display: none; }

/* Slim admin-preview strip — NEVER a tall box. Shown only with ?t7news_ads=1
   or the t7news_ad_preview filter. */
.t7-ad--preview {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 0;
  padding: 7px 14px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 8px, transparent 8px 16px),
    var(--t7-surface);
  border: 1px dashed var(--t7-border-strong);
  border-radius: var(--t7-radius-xs);
  text-align: center;
  line-height: 1.2;
}
.t7-ad__label { font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--t7-muted-2); }
.t7-ad__size { font-size: 0.72rem; color: var(--t7-muted); }

/* Skeletons */
.t7-skeleton {
  position: relative; overflow: hidden;
  background: var(--t7-surface-2);
  border-radius: var(--t7-radius-sm);
}
.t7-skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  transform: translateX(-100%);
  animation: t7-shimmer 1.5s infinite;
}
@keyframes t7-shimmer { to { transform: translateX(100%); } }

/* Progressive image — images are ALWAYS visible. Native loading="lazy" plus a
   surface-coloured placeholder background covers perceived load; there is no
   opacity gate that could trap an image invisible if JS or paint stalls. */
.t7-img-wrap { position: relative; overflow: hidden; background: var(--t7-surface-2); }

/* 13. MOTION ===================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* Reveal never moves content under reduced motion. */
  .t7-anim .t7-reveal,
  .t7-reveal { transform: none !important; transition: none !important; }
  .t7-breaking__track { animation: none !important; }
  .t7-live-stage__inner::before,
  .t7-live-offline__ping,
  .t7-btn::after { animation: none !important; display: none !important; }
}

/* 14. RESPONSIVE =============================================== */
@media (max-width: 1180px) {
  .t7-header__ad { display: none; }
  .t7-header__bar { grid-template-columns: auto 1fr; }
  .t7-live-stage__inner { grid-template-columns: 1fr; min-height: 0; }
  .t7-live-stage__world { inset: -5%; -webkit-mask-image: linear-gradient(180deg, transparent, #000 55%); mask-image: linear-gradient(180deg, transparent, #000 55%); }
}

@media (max-width: 1024px) {
  .t7-menu { display: none; }
  .t7-burger { display: grid; }
  .t7-nav__inner { justify-content: flex-end; }
  .t7-article__layout,
  .t7-archive-layout { grid-template-columns: 1fr; }
  .t7-article__sidebar,
  .t7-archive-layout .t7-sidebar { position: static; }
  .t7-spotlight { grid-template-columns: 1fr; }
  .t7-video-grid--hero { grid-template-columns: 1fr 1fr; }
  .t7-footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .t7-wrap { width: min(100% - 28px, var(--t7-wrap)); }
  .t7-utility__inner { justify-content: center; }
  .t7-utility__group:last-child { display: none; }
  .t7-brand__tag { white-space: nowrap; }
  .t7-header__tools { gap: 6px; }
  .t7-header__tools .t7-notif { display: none; }
  .t7-icon-btn { width: 40px; height: 40px; }
  .t7-brand__mark { height: 40px; }
  .t7-brand__name { font-size: 1.2rem; }
  .t7-brand__tag { font-size: 0.52rem; letter-spacing: 0.18em; }
  .t7-live-stage { border-radius: var(--t7-radius-lg); }
  .t7-live-stage::before, .t7-live-stage::after { display: none; }
  .t7-live-stage__inner { gap: 20px; padding: 22px; }
  .t7-live-screen { aspect-ratio: auto; min-height: 340px; }
  .t7-opening__lead .t7-card--feature .t7-card__title { font-size: var(--t7-fs-xl); -webkit-line-clamp: 5; }
  .t7-live-screen__bar { display: none; }
  .t7-live-screen__mark { display: none; }
  .t7-live-offline { position: static; background: none; padding: 18px; }
  .t7-live-offline__actions { flex-direction: column; width: 100%; }
  .t7-live-offline__actions .t7-btn { width: 100%; justify-content: center; }
  .t7-topstories { grid-template-columns: 1fr; }
  .t7-video-grid--hero { grid-template-columns: 1fr; }
  .t7-video-grid--hero > :first-child { grid-row: auto; }
  .t7-section__head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .t7-footer__top { grid-template-columns: 1fr; }
  .t7-footer__app { flex-direction: column; align-items: flex-start; }
  .t7-result { grid-template-columns: 100px 1fr; }
  .t7-ad-slot--mobile { display: block; }
  .t7-ad-slot--leaderboard { display: none; }
  .alignwide, .alignfull { margin-inline: calc(50% - 50vw); }
}

/* Mobile drawer */
.t7-drawer {
  position: fixed; inset: 0 0 0 auto; z-index: 1000;
  width: min(86vw, 380px);
  background: var(--t7-bg-2);
  border-left: 1px solid var(--t7-border-strong);
  box-shadow: var(--t7-shadow-lg);
  transform: translateX(100%);
  transition: transform 0.4s var(--t7-ease);
  display: flex; flex-direction: column;
  overflow-y: auto;
  padding: 20px;
}
.t7-drawer.is-open { transform: none; }
.t7-drawer__backdrop {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(4, 6, 12, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.t7-drawer__backdrop.is-open { opacity: 1; visibility: visible; }
.t7-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.t7-drawer__head .t7-brand { gap: 10px; }
.t7-drawer__head .t7-brand__mark { height: 40px; }
.t7-drawer {
  background:
    radial-gradient(120% 40% at 100% 0%, var(--t7-blue-softer), transparent 60%),
    var(--t7-bg-2);
}
.t7-drawer__live {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-radius: var(--t7-radius-sm);
  background: var(--t7-surface-2);
  border: 1px solid var(--t7-border);
  margin-bottom: 16px;
}
.t7-drawer__menu { list-style: none; margin: 0; padding: 0; }
.t7-drawer__menu li { border-bottom: 1px solid var(--t7-hairline); }
.t7-drawer__menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px;
  font-family: var(--t7-font-head);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--t7-text-dim);
}
.t7-drawer__menu a:hover { color: #fff; }
.t7-drawer__menu .sub-menu { padding-left: 14px; }
.t7-drawer__menu .sub-menu a { font-size: 0.88rem; font-weight: 500; padding: 10px 4px; }

body.t7-no-scroll { overflow: hidden; }

/* Sticky mobile Live CTA */
.t7-live-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 800;
  display: none;
  align-items: center; gap: 8px;
  padding: 12px 18px;
  border-radius: var(--t7-radius-pill);
  background: linear-gradient(135deg, var(--t7-red), var(--t7-red-600));
  color: #fff;
  font-family: var(--t7-font-head); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 34px -10px var(--t7-red);
  transform: translateY(140%);
  transition: transform 0.4s var(--t7-ease);
}
.t7-live-fab.is-visible { transform: none; }
@media (max-width: 1024px) { .t7-live-fab { display: inline-flex; } }

/* Toast */
.t7-toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 1200;
  transform: translate(-50%, 20px);
  background: var(--t7-surface-3);
  border: 1px solid var(--t7-border-strong);
  color: var(--t7-text);
  font-size: 0.86rem; font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--t7-radius-pill);
  box-shadow: var(--t7-shadow);
  opacity: 0;
  transition: opacity 0.28s var(--t7-ease), transform 0.28s var(--t7-ease);
}
.t7-toast.is-in { opacity: 1; transform: translate(-50%, 0); }

.t7-drawer__caret { margin-left: auto; font-size: 1rem; color: var(--t7-muted); }

/* Comments (minimal, themed) */
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--t7-hairline); }
.comment-form input, .comment-form textarea {
  width: 100%; background: var(--t7-surface-2); border: 1px solid var(--t7-border);
  border-radius: var(--t7-radius-xs); color: var(--t7-text); padding: 10px 14px; margin-bottom: 12px;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--t7-blue); }
