/* Today.mv — English LTR news theme (matches TODAY MV UI) */
:root {
  --td-ink: #1a2330;
  --td-ink-soft: #4a5568;
  --td-muted: #6b7280;
  --td-line: #e5e7eb;
  --td-line-strong: #d1d5db;
  --td-bg: #ffffff;
  --td-bg-soft: #f5f6f8;
  --td-red: #e31c23;
  --td-red-deep: #b8141a;
  --td-green: #1f8f3a;
  --td-navy: #162033;
  --td-footer: #1a2330;
  --td-serif: "Crimson Pro", "Libre Baskerville", Georgia, "Times New Roman", serif;
  --td-sans: "Poppins", "DM Sans", "Segoe UI", system-ui, sans-serif;
  --td-wrap: min(1120px, calc(100% - 2rem));
  --td-radius: 4px;
  --td-comment-blue: #2f6fed;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.tb-theme {
  margin: 0;
  background: var(--td-bg);
  color: var(--td-ink);
  font-family: var(--td-sans);
  font-size: 16px;
  line-height: 1.55;
  direction: ltr;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--td-red); }
button { font: inherit; cursor: pointer; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }
.td-wrap, .tb-wrap { width: var(--td-wrap); margin-inline: auto; }

/* —— Top utility —— */
.td-topbar {
  border-bottom: 1px solid var(--td-line);
  background: #fafbfc;
  font-size: 13px;
  color: var(--td-muted);
}
.td-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 36px;
}
.td-social {
  display: flex;
  gap: .65rem;
  align-items: center;
}
.td-social a {
  width: 18px; height: 18px;
  color: var(--td-ink-soft);
  display: grid; place-items: center;
}
.td-social a:hover { color: var(--td-red); }
.td-social svg { width: 15px; height: 15px; fill: currentColor; }
.td-date { letter-spacing: .01em; white-space: nowrap; }
.td-date-short { display: none; }

/* —— Masthead —— */
.td-masthead {
  padding: 1.1rem 0 .35rem;
  background: #f4f4f4;
}
.td-masthead-row {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: .75rem;
}
.td-icon-btn {
  width: 42px; height: 42px;
  border: 0;
  background: transparent;
  color: var(--td-ink);
  display: grid; place-items: center;
  border-radius: 999px;
}
.td-icon-btn:hover { background: var(--td-bg-soft); color: var(--td-red); }
.td-logo {
  justify-self: center;
  display: block;
}
.td-logo img {
  width: min(220px, 58vw);
  height: auto;
  margin-inline: auto;
}
.td-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .15rem .55rem;
  padding: .85rem 0 1rem;
  border-bottom: 1px solid var(--td-line);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
}
.td-nav a {
  color: var(--td-ink);
  padding: .2rem .1rem;
  position: relative;
}
.td-nav a.is-active,
.td-nav a:hover {
  color: var(--td-red);
}
.td-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--td-red);
}
.td-nav-dot {
  color: var(--td-line-strong);
  user-select: none;
  pointer-events: none;
}

/* —— Mobile drawer —— */
.td-drawer {
  position: fixed; inset: 0;
  z-index: 80;
  pointer-events: none;
  visibility: hidden;
}
.td-drawer.is-open { pointer-events: auto; visibility: visible; }
.td-drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, .45);
  opacity: 0; transition: opacity .2s ease;
}
.td-drawer.is-open .td-drawer-backdrop { opacity: 1; }
.td-drawer-panel {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: min(320px, 88vw);
  background: #fff;
  padding: 1.25rem;
  transform: translateX(-100%);
  transition: transform .22s ease;
  overflow: auto;
  box-shadow: 12px 0 40px rgba(15, 23, 42, .18);
}
.td-drawer.is-open .td-drawer-panel { transform: none; }
.td-drawer-panel .td-icon-btn { margin: 0 0 .65rem auto; }
.td-drawer-panel a {
  display: block;
  padding: .85rem 0;
  border-bottom: 1px solid var(--td-line);
  font-family: var(--td-sans);
  font-weight: 500;
  font-size: 1.02rem;
}
.td-drawer-panel a:last-child { border-bottom: 0; }

/* —— Hero —— */
.td-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.75rem;
  align-items: center;
  padding: 1.75rem 0 1.1rem;
}
.td-hero-copy {
  /* Full left column (same left edge as ticker); text stays centered inside. */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}
.td-hero-copy .td-kicker,
.td-hero-copy .td-hero-title {
  width: 100%;
}
.td-hero-copy .td-hero-excerpt {
  margin-inline: auto;
  text-align: center;
  width: 100%;
  max-width: 36rem;
}
.td-hero-copy .td-meta {
  justify-content: center;
  width: 100%;
}
.td-hero--archive {
  align-items: center;
  padding: 2rem 0 1.75rem;
  gap: 2rem;
}
.td-hero--archive .td-hero-copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}
.td-hero--archive .td-hero-excerpt {
  margin-inline: auto;
  text-align: center;
  width: 100%;
}
.td-hero--archive .td-meta {
  justify-content: center;
  width: 100%;
}
.td-kicker {
  display: inline-block;
  color: var(--td-red);
  font-family: var(--td-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .55rem;
}
.td-hero-title {
  font-family: var(--td-serif);
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
  line-height: 1.18;
  font-weight: 600;
  margin: 0 0 .85rem;
  color: var(--td-ink);
}
.td-hero-excerpt {
  font-family: var(--td-serif);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--td-ink-soft);
  margin: 0 0 1rem;
  max-width: 36rem;
}
.td-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1rem;
  align-items: center;
  color: var(--td-muted);
  font-family: var(--td-serif);
  font-size: 13px;
  font-style: italic;
}
.td-meta time,
.td-meta .td-author { display: inline-flex; align-items: center; gap: .35rem; font-style: italic; }
.td-meta svg { opacity: .7; }
.td-hero-media {
  background: #2b3444;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: 0;
}
.td-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.td-hero-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1a2330, #2d3a4f);
  color: #fff;
  text-align: center;
  padding: 2rem;
  border-radius: 2px;
}
.td-hero-empty h1 {
  font-family: var(--td-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 .5rem;
}
.td-hero-empty p { margin: 0; opacity: .85; max-width: 28rem; }

/* —— Mid band: full-bleed #f4f4f4; overlaps lower half of ticker (1:1 mock) —— */
.td-midband {
  --td-ticker-overlap: 22px;
  background: #f4f4f4;
  margin: calc(var(--td-ticker-overlap) * -1) 0 0;
  padding: var(--td-ticker-overlap) 0 0;
}
.td-midband-panel {
  background: transparent;
  padding: 0;
  box-sizing: border-box;
}

/* —— Breaking ticker (day on white; bar straddles white→grey) —— */
.td-ticker-block {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0;
  background: transparent;
}
.td-ticker-day {
  margin: 0 0 .38rem;
  font-family: var(--td-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--td-ink);
}
.td-ticker {
  display: grid;
  grid-template-columns: auto 1fr;
  background: var(--td-red);
  color: #fff;
  min-height: 44px;
  overflow: hidden;
}
.td-ticker-brand {
  background: var(--td-red-deep);
  padding: 0 .95rem;
  display: grid;
  place-items: center;
  z-index: 1;
}
.td-ticker-brand img {
  display: block;
  width: 72px;
  height: auto;
  max-height: 26px;
  object-fit: contain;
  /* Force pure white mark on the red ticker (drops green/red O) */
  filter: brightness(0) invert(1);
}
.td-ticker-track {
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}
.td-ticker-marquee {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  width: max-content;
  padding-inline: 1rem;
  animation: td-ticker-scroll 110s linear infinite;
  will-change: transform;
}
.td-ticker-track:hover .td-ticker-marquee,
.td-ticker-track:focus-within .td-ticker-marquee {
  animation-play-state: paused;
}
.td-ticker-item {
  color: #fff !important;
  font-family: var(--td-serif);
  font-size: 15px;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  flex: none;
  text-decoration: none;
  cursor: pointer;
}
.td-ticker-item:hover,
.td-ticker-item:focus-visible {
  color: #fff !important;
  opacity: .92;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.td-ticker-item::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #7cb342;
  border-radius: 50%;
  flex: none;
}
.td-ticker-empty {
  opacity: .9;
  font-family: var(--td-serif);
  font-size: 15px;
  padding: 0 1rem;
  color: #fff;
}
@keyframes td-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .td-ticker-marquee {
    animation: none;
    flex-wrap: nowrap;
    max-width: 100%;
    overflow: hidden;
  }
}

/* —— Section heads —— */
.td-section {
  padding: 1.25rem 0 2rem;
}
.td-section-title {
  font-family: var(--td-serif);
  text-align: center;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  margin: 0 0 1.25rem;
  color: var(--td-ink);
}
.td-section-title--red { color: var(--td-red); }
.td-rule-green {
  display: block;
  height: 8px;
  width: 100%;
  max-width: none;
  background: linear-gradient(to bottom, #46a746 0 55%, #92cf96 55% 100%);
  border: 0;
  margin: 0 0 1.75rem;
}

/* —— Stories circles (plain avatars, matches TODAY mock) —— */
.td-midband-panel .td-section--stories {
  padding: 1.35rem 0 1.45rem;
}
.td-section--stories {
  padding: 1.65rem 0 1.55rem;
}
.td-section--stories .td-section-title {
  margin-bottom: 1.55rem;
  font-weight: 700;
}
.td-stories {
  display: flex;
  gap: clamp(.75rem, 2.2vw, 1.55rem);
  justify-content: space-between;
  align-items: center;
  overflow-x: auto;
  padding: .15rem 0 .35rem;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.td-stories::-webkit-scrollbar { display: none; }
.td-story {
  flex: none;
  width: 96px;
  color: inherit;
  text-decoration: none;
  scroll-snap-align: center;
}
.td-story:hover { color: inherit; }
.td-story-avatar {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: #1c2430;
  box-sizing: border-box;
  transition: transform .22s ease;
}
.td-story-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}
.td-story:hover .td-story-avatar { transform: scale(1.03); }
.td-story:focus-visible .td-story-avatar {
  outline: 2px solid var(--td-red);
  outline-offset: 3px;
}
.td-story--empty {
  pointer-events: none;
}
.td-story--empty .td-story-avatar {
  background: #2d2d2d;
}

/* —— Latest grid —— */
.td-latest {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.15rem;
  align-items: stretch;
}
.td-latest-lead {
  background: #2b3444;
  min-height: 420px;
  position: relative;
  overflow: hidden;
  display: block;
  color: #fff;
}
.td-latest-lead:hover { color: #fff; }
.td-latest-lead img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
  transition: transform .45s ease;
}
.td-latest-lead:hover img { transform: scale(1.04); }
.td-latest-lead-copy {
  position: absolute; inset: auto 0 0 0;
  padding: 1.35rem 1.25rem 1.2rem;
  background: linear-gradient(180deg, transparent 0%, rgba(10,14,22,.55) 35%, rgba(10,14,22,.92) 100%);
  color: #fff;
  z-index: 1;
}
.td-latest-lead-copy h3 {
  font-family: var(--td-serif);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  margin: 0 0 .45rem;
  line-height: 1.25;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.td-latest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .95rem 1rem;
  min-width: 0;
}

/* —— Cards —— */
.td-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  isolation: isolate;
}
.td-card h3 {
  font-family: var(--td-serif);
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 600;
  margin: .65rem 0 .4rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.td-card-media {
  background: #2b3444;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 0;
  display: block;
  flex: none;
}
.td-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.td-card:hover .td-card-media img { transform: scale(1.03); }
.td-card-foot {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  align-items: baseline;
  font-size: 12px;
  color: var(--td-muted);
  margin-top: 0;
  flex: none;
}
.td-card-foot .td-meta {
  gap: .35rem .65rem;
  font-size: 12px;
  min-width: 0;
}
.td-card-foot .td-kicker {
  margin: 0;
  font-size: 11px;
  flex: none;
  position: static;
}

/* —— Category columns (grey top band + featured media) —— */
.td-cols-band {
  background: linear-gradient(
    to bottom,
    #f4f4f4 0,
    #f4f4f4 11.5rem,
    #ffffff 11.5rem,
    #ffffff 100%
  );
  padding: 1.15rem 0 2rem;
  margin: 0 0 .5rem;
}
.td-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  align-items: start;
}
.td-col {
  min-width: 0;
  position: relative;
  isolation: isolate;
  padding: 0 1.05rem;
  border-left: 1px solid var(--td-line);
}
.td-col:first-child {
  border-left: 0;
  padding-left: 0;
}
.td-col:last-child {
  padding-right: 0;
}
.td-col-head {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0 0 .75rem;
  color: var(--td-red);
  font-family: var(--td-serif);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.2;
}
.td-col-head a { color: inherit; }
.td-col-head a:hover { opacity: .85; }
.td-col-head::before {
  content: "";
  width: 4px;
  height: 1.05em;
  background: #46a746;
  flex: none;
  border-radius: 1px;
}
.td-col-media {
  display: block;
  aspect-ratio: 16 / 11;
  background: #2b3444;
  overflow: hidden;
  margin: 0 0 .85rem;
}
.td-col-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.td-col-media--empty {
  pointer-events: none;
}
.td-col-item {
  position: relative;
  padding: .72rem 0;
}
.td-col-item + .td-col-item {
  border-top: 1px solid var(--td-line);
}
.td-col-item h4 {
  font-family: var(--td-serif);
  font-size: .98rem;
  line-height: 1.35;
  font-weight: 600;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.td-empty-note {
  color: var(--td-muted);
  font-size: 14px;
  padding: .5rem 0;
  margin: 0;
}

/* —— Good News strip —— */
.td-goodnews {
  --td-gn-overlap: 4.85rem;
  background: #fff;
  padding: 1.15rem 0 1.85rem;
}
.td-goodnews-banner {
  background: linear-gradient(90deg, #089247 0%, #44a846 50%, #82bf40 100%);
  text-align: center;
  padding: .95rem 1rem var(--td-gn-overlap);
}
.td-goodnews-banner h2 {
  margin: 0 0 .55rem;
  font-family: var(--td-serif);
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}
.td-goodnews-banner h2 a {
  color: inherit;
  text-decoration: none;
}
.td-goodnews-banner h2 a:hover {
  color: #fff;
  opacity: .92;
}
.td-goodnews-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.05rem;
  margin-top: calc(var(--td-gn-overlap) * -1);
  padding: 0 1.35rem;
  position: relative;
  z-index: 1;
}
.td-goodnews-card {
  min-width: 0;
}
.td-goodnews-media {
  display: block;
  aspect-ratio: 16 / 13;
  background: #2b2b2b;
  overflow: hidden;
  margin: 0 0 .35rem;
}
.td-goodnews-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.td-goodnews-card h3 {
  font-family: var(--td-serif);
  font-size: 1.05rem;
  line-height: 1.28;
  font-weight: 700;
  margin: 0 0 .35rem;
  color: var(--td-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.td-goodnews-card h3 a {
  color: inherit;
}
.td-goodnews-card h3 a:hover {
  color: var(--td-red);
}
.td-goodnews-card .td-meta {
  font-size: 12.5px;
  color: #b0b3b9;
}
.td-goodnews-card--empty {
  opacity: .7;
  pointer-events: none;
}

/* —— Web stories strip —— */
.td-webstories-band {
  background: #f4f4f4;
}
.td-section--webstories {
  padding: 1.55rem 0 2rem;
}
.td-section--webstories .td-section-title {
  margin: 0 0 1.15rem;
}
.td-section-sub {
  text-align: center;
  color: var(--td-muted);
  margin: -.35rem 0 1.35rem;
  font-size: 15px;
}
.td-webstories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
}
.td-webstory {
  background: #2b2b2b;
  aspect-ratio: 9 / 16;
  position: relative;
  overflow: hidden;
  color: #fff;
  display: block;
  border-radius: 0;
}
.td-webstory:hover { color: #fff; }
.td-webstory img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.td-webstory:hover img { transform: scale(1.05); }
.td-webstory-progress {
  position: absolute;
  top: .55rem;
  left: .55rem;
  right: .55rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .28rem;
  z-index: 2;
  pointer-events: none;
}
.td-webstory-progress span {
  display: block;
  height: 2.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .42);
}
.td-webstory-progress span:first-child {
  background: rgba(255, 255, 255, .92);
}
.td-webstory-copy {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.4rem .9rem .95rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.45) 32%, rgba(0,0,0,.88) 100%);
  z-index: 1;
}
.td-webstory-copy h3 {
  font-family: var(--td-serif);
  font-size: 1.05rem;
  margin: 0 0 .45rem;
  line-height: 1.25;
  font-weight: 700;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.td-meta--on-dark {
  color: rgba(255,255,255,.88);
  font-style: italic;
  font-size: 12px;
  gap: .45rem .7rem;
}
.td-meta--on-dark svg { opacity: .9; }
.td-webstory--empty { pointer-events: none; opacity: .75; }
.td-section--webstories .td-section-title a {
  color: inherit;
  text-decoration: none;
}
.td-section--webstories .td-section-title a:hover {
  color: var(--td-red);
}

/* —— Web Stories page + category archive —— */
.td-ws-page {
  padding: 1.35rem 0 2.5rem;
  background: #fff;
}
.td-ws-page-head {
  text-align: center;
  margin: 0 0 1.65rem;
}
.td-ws-page-title {
  font-family: var(--td-serif);
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  color: var(--td-ink);
}
.td-ws-row {
  margin: 0 0 2.35rem;
}
.td-ws-row:last-child {
  margin-bottom: 1rem;
}
.td-ws-row-title {
  font-family: var(--td-serif);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .85rem;
  color: var(--td-red-deep);
}
.td-ws-row-title a {
  color: inherit;
  text-decoration: none;
}
.td-ws-row-title a:hover {
  color: var(--td-red);
}
.td-webstories--archive {
  padding: 0 0 1.25rem;
}
.td-archive { padding-bottom: 2.5rem; }
.td-archive-title {
  font-family: var(--td-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  margin: 0 0 .5rem;
  text-align: center;
}
.td-archive-empty-head {
  text-align: center;
  padding: 2.5rem 0 1.5rem;
}
.td-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem 1.25rem;
  padding: .35rem 0 1.75rem;
  align-items: start;
}
.td-archive-grid .td-card {
  height: auto;
}
.td-archive-grid .td-card h3 {
  margin: .7rem 0 .35rem;
  min-height: 0;
}
.td-archive-grid .td-card-media {
  aspect-ratio: 16 / 11;
}
.td-archive-grid .td-card-foot {
  margin-top: .15rem;
}
.td-pagination {
  display: flex;
  justify-content: center;
  clear: both;
  position: relative;
  z-index: 2;
  padding: .5rem 0 2.25rem;
  margin-top: .25rem;
}
.td-pagination nav,
.td-pagination .pagination {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.td-pagination li { list-style: none; }
.td-pagination a,
.td-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  height: 2.35rem;
  padding: 0 .55rem;
  border: 1px solid var(--td-line);
  border-radius: 4px;
  color: var(--td-ink);
  font-size: 13px;
  font-family: var(--td-sans);
  background: #fff;
}
.td-pagination a:hover {
  border-color: var(--td-ink);
  color: var(--td-ink);
}
.td-pagination [aria-current="page"] span,
.td-pagination .active span,
.td-pagination span[aria-current="page"] {
  background: var(--td-ink);
  border-color: var(--td-ink);
  color: #fff;
}

/* —— Search —— */
.td-search { padding: 2rem 0 3rem; }
.td-search-head { text-align: center; margin-bottom: 1.35rem; }
.td-search-count {
  margin: .35rem 0 0;
  color: var(--td-muted);
  font-size: 14px;
}
.td-search-form {
  display: flex;
  gap: .65rem;
  max-width: 640px;
  margin: 0 auto 1.5rem;
  align-items: stretch;
}
.td-search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: .65rem;
  background: #fff;
  border: 1px solid var(--td-line-strong);
  border-radius: 999px;
  padding: 0 1rem;
  min-height: 48px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.td-search-field:focus-within {
  border-color: var(--td-ink);
  box-shadow: 0 0 0 3px rgba(26, 35, 48, .08);
}
.td-search-field svg { color: var(--td-muted); flex: none; }
.td-search-field input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--td-sans);
  font-size: 15px;
  color: var(--td-ink);
  min-width: 0;
  height: 46px;
}
.td-search-field input::placeholder { color: #9aa3b2; }
.td-search-submit {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--td-ink);
  color: #fff;
  font-family: var(--td-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 0 1.35rem;
  min-height: 48px;
  transition: background .15s ease, transform .15s ease;
}
.td-search-submit:hover {
  background: var(--td-red);
}
.td-search-hint {
  text-align: center;
  padding: 1rem 0 2rem;
}
.td-search-results { padding-top: .5rem; }

.td-tags-index { padding: 2rem 0 3rem; }
.td-tags-index-head { text-align: center; margin-bottom: 1.5rem; }
.td-tags--index {
  justify-content: center;
  gap: .65rem;
}
.td-tag-count {
  margin-left: .35rem;
  opacity: .55;
  font-family: var(--td-sans);
  font-style: normal;
  font-size: 11px;
}

/* —— Article —— */
.td-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(260px, .72fr);
  gap: 2.25rem;
  padding: 1.75rem 0 2.5rem;
  align-items: start;
}
.td-article-header {
  margin: 0 0 1.15rem;
}
.td-article-title {
  font-family: var(--td-serif);
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  line-height: 1.18;
  font-weight: 600;
  margin: 0 0 .75rem;
}
.td-article-figure {
  margin: 0 0 1.15rem;
  background: #2b3444;
}
.td-article-figure + .td-article-header {
  margin-top: .15rem;
}
.td-article-figure img { width: 100%; display: block; }
.td-article-figure figcaption {
  font-size: 13px;
  color: var(--td-muted);
  padding: .5rem .1rem 0;
  font-family: var(--td-serif);
  font-style: italic;
}
.td-article-body {
  font-family: var(--td-serif);
  font-size: 1.125rem;
  line-height: 1.85;
  color: #243041;
}
.td-article-body p { margin: 0 0 1.25rem; }
.td-article-body h2, .td-article-body h3 {
  font-family: var(--td-serif);
  margin: 1.6rem 0 .7rem;
}
.td-article-body img {
  width: 100%;
  height: auto;
  margin: .5rem 0 1rem;
}

/* Video posts — full-width modern player */
.td-video-page {
  padding: 1.5rem 0 2.5rem;
}
.td-video-page-head {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto 1.25rem;
}
.td-video-page-head .td-meta {
  justify-content: center;
  margin: 0;
}
.td-video-page-player {
  margin: 0 auto 1.75rem;
}
.td-video-page-player .td-video-embed {
  margin: 0;
}
.td-article-layout--video {
  gap: 2rem;
  padding: 0;
}
.td-video-embed {
  display: block;
  margin: 0.15rem auto 1.9rem;
  max-width: 100%;
  background: #0b1220;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
}
.td-video-embed-frame {
  position: relative;
  display: block;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  background: #000;
}
.td-video-embed-frame iframe,
.td-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.td-article-aside { position: sticky; top: 1rem; }
.td-sidebar-ad {
  margin-bottom: 1.25rem;
  background: var(--td-bg-soft);
}
.td-sidebar-ad img { width: 100%; height: auto; display: block; }
.td-ad-placeholder {
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  gap: .35rem;
  text-align: center;
  background: linear-gradient(145deg, #c41218, #6b1a8a 70%);
  color: #fff;
  padding: 1.25rem;
  font-family: var(--td-sans);
}
.td-ad-placeholder strong {
  font-size: 1.05rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.td-ad-placeholder span { font-size: 12px; opacity: .9; }
.td-sidebar-block {
  background: var(--td-bg-soft);
  padding: 1.1rem 1rem 1rem;
  margin-bottom: 1.25rem;
}
.td-sidebar-block h2 {
  font-family: var(--td-serif);
  color: var(--td-red);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 .85rem;
}
.td-related-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: .75rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--td-line);
  align-items: start;
}
.td-related-item:last-child { border-bottom: 0; }
.td-related-thumb {
  width: 88px; height: 64px;
  background: #2b3444;
  overflow: hidden;
}
.td-related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.td-related-item h3 {
  font-family: var(--td-serif);
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 500;
  margin: 0;
  color: var(--td-ink);
}
.td-related-item:hover h3 { color: var(--td-red); }
.td-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.td-tag {
  background: #e8eaee;
  color: var(--td-ink);
  padding: .45rem .85rem;
  border-radius: 6px;
  font-family: var(--td-serif);
  font-size: 14px;
  font-weight: 500;
}
.td-tag:hover { background: #dde1e7; color: var(--td-red); }
.td-more-stories {
  padding: .75rem 0 3rem;
  clear: both;
}
.td-more-stories h2 {
  font-family: var(--td-serif);
  color: var(--td-red);
  text-align: center;
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  font-weight: 700;
  margin: 0 0 1.35rem;
}
.td-more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  align-items: start;
}
.td-more-grid .td-card-media { aspect-ratio: 16 / 11; }

/* —— Comments / reactions (PDF-style compose) —— */
body.tb-theme .post-reactions {
  margin: 2rem 0 1.25rem;
  padding: 1.15rem 1.1rem 1.2rem;
  background: var(--td-bg-soft);
  border-radius: 6px;
}
body.tb-theme .post-reactions-title {
  font-family: var(--td-serif);
  font-size: 1.15rem;
  margin: 0 0 .95rem;
  color: var(--td-ink);
  font-weight: 600;
}
body.tb-theme .post-reactions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
body.tb-theme .post-reaction-item {
  appearance: none;
  border: 1px solid var(--td-line);
  background: #fff;
  border-radius: 999px;
  padding: 0;
  min-width: 4.5rem;
}
body.tb-theme .post-reaction-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: .55rem .7rem .5rem;
}
body.tb-theme .post-reaction-icon-wrap { width: 28px; height: 28px; }
body.tb-theme .post-reactions .react-svg { width: 28px; height: 28px; display: block; }
body.tb-theme .post-reactions .react-heart { fill: #ff4d6d; }
body.tb-theme .post-reactions .react-heart-shine { fill: none; stroke: rgba(255,255,255,.7); stroke-width: 1.4; }
body.tb-theme .post-reactions .react-face { fill: #ffc857; }
body.tb-theme .post-reactions .post-reaction-item[data-reaction="wow"] .react-face { fill: #8eacff; }
body.tb-theme .post-reactions .post-reaction-item[data-reaction="sad"] .react-face { fill: #8ec8ff; }
body.tb-theme .post-reactions .post-reaction-item[data-reaction="angry"] .react-face { fill: #ff8f6b; }
body.tb-theme .post-reactions .react-blush { fill: #ff8fa8; opacity: .7; }
body.tb-theme .post-reactions .react-eye,
body.tb-theme .post-reactions .react-mouth,
body.tb-theme .post-reactions .react-brow {
  fill: none;
  stroke: #3d2a16;
  stroke-width: 1.8;
  stroke-linecap: round;
}
body.tb-theme .post-reactions .react-eye-open { fill: #243056; }
body.tb-theme .post-reactions .react-mouth-o { fill: none; stroke: #243056; stroke-width: 1.8; }
body.tb-theme .post-reactions .react-eye-dot { fill: #3d2a16; }
body.tb-theme .post-reactions .react-tear { fill: #6db7ff; }
body.tb-theme .post-reaction-pct {
  font-family: var(--td-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--td-ink-soft);
}
body.tb-theme .article-comments-area {
  margin: 1.25rem 0 0;
}
body.tb-theme .article-comments {
  background: var(--td-bg-soft);
  padding: 1.15rem 1.1rem 1.25rem;
  border: 0;
  box-shadow: none;
}
body.tb-theme .article-comments-title {
  font-family: var(--td-serif);
  font-size: 1.2rem;
  margin: 0 0 1rem;
  color: var(--td-ink);
}
body.tb-theme .article-comments-title::before { display: none; }
body.tb-theme .article-comments-form.cmt-compose {
  background: transparent;
  border: 0;
  padding: 0;
  margin-top: 1rem;
  display: grid;
  gap: .75rem;
}
body.tb-theme .cmt-compose-kicker {
  font-family: var(--td-serif);
  font-size: 1rem;
  color: var(--td-ink-soft);
  margin: 0;
}
body.tb-theme .article-comments-form.cmt-compose .cmt-compose-name,
body.tb-theme .article-comments-form.cmt-compose textarea {
  width: 100%;
}
body.tb-theme .article-comments-form.cmt-compose .cmt-compose-name input,
body.tb-theme .article-comments-form.cmt-compose textarea {
  width: 100%;
  border: 1px solid var(--td-line-strong);
  background: #fff;
  border-radius: 2px;
  padding: .7rem .85rem;
  font-family: var(--td-sans);
  font-size: 14px;
  color: var(--td-ink);
}
body.tb-theme .article-comments-form.cmt-compose textarea {
  min-height: 110px;
  resize: vertical;
}
body.tb-theme .cmt-compose-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
}
body.tb-theme .article-comments-form.cmt-compose .article-comments-submit,
body.tb-theme .cmt-reply-form .article-comments-submit {
  background: var(--td-comment-blue);
  color: #fff;
  border: 0;
  border-radius: 2px;
  padding: .7rem 1.15rem;
  font-family: var(--td-sans);
  font-size: 14px;
  font-weight: 600;
}
body.tb-theme .article-comments-form.cmt-compose .article-comments-submit:hover:not(:disabled),
body.tb-theme .cmt-reply-form .article-comments-submit:hover:not(:disabled) {
  background: #1f5ad4;
}
body.tb-theme .article-comments-form.cmt-compose .article-comments-submit:disabled {
  opacity: .55;
  cursor: not-allowed;
}

/* —— Footer —— */
.td-footer {
  background: var(--td-footer);
  color: #fff;
  padding: 2.25rem 0 1.25rem;
  margin-top: 1rem;
}
.td-footer-logo {
  display: block;
  width: min(180px, 50vw);
  margin: 0 auto 1.1rem;
}
.td-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .2rem .6rem;
  font-size: 14px;
  margin-bottom: 1.25rem;
}
.td-footer-nav a { color: #fff; }
.td-footer-nav a:hover { color: #ffd0d2; }
.td-footer-legalbar {
  background: #f3f4f6;
  border-top: 1px solid var(--td-line);
}
.td-footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem .75rem;
  font-size: 12px;
  color: var(--td-ink-soft);
  padding: .85rem 0;
  font-family: var(--td-sans);
}
.td-footer-legal a { color: var(--td-ink-soft); }
.td-footer-legal a:hover { color: var(--td-red); }
.td-footer-sep { color: var(--td-red); opacity: .85; }

/* —— Misc / legacy hooks —— */
.scroll-to-top {
  position: fixed; right: 1rem; bottom: 1rem;
  width: 42px; height: 42px; border-radius: 999px;
  border: 1px solid var(--td-line);
  background: #fff; color: var(--td-ink);
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  opacity: 0; pointer-events: none; transition: opacity .2s;
  z-index: 40;
}
.scroll-to-top.is-visible { opacity: 1; pointer-events: auto; }
.preview-banner {
  background: #fff3cd; color: #664d03;
  padding: .75rem 1rem; text-align: center; font-size: 14px;
}
.tb-theme .tb-ad, .tb-theme [data-ad-band] { margin: .75rem auto; }

/* —— Responsive —— */
@media (max-width: 1100px) {
  :root { --td-wrap: min(100% - 2rem, 1120px); }
  .td-nav {
    gap: .1rem .35rem;
    font-size: 13px;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: .55rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .td-nav::-webkit-scrollbar { display: none; }
}

@media (max-width: 960px) {
  .td-hero,
  .td-hero--archive,
  .td-latest,
  .td-article-layout { grid-template-columns: 1fr; gap: 1.15rem; }
  .td-hero { padding: 1.25rem 0 1rem; }
  .td-hero--archive {
    text-align: left;
    padding: 1.35rem 0 1.15rem;
  }
  .td-hero--archive .td-hero-copy,
  .td-hero--archive .td-hero-excerpt,
  .td-hero--archive .td-meta {
    align-items: flex-start;
    text-align: left;
    margin-inline: 0;
    justify-content: flex-start;
  }
  .td-hero-title { font-size: clamp(1.55rem, 5.5vw, 2.1rem); }
  .td-article-aside { position: static; }
  .td-cols-band {
    background: linear-gradient(
      to bottom,
      #f4f4f4 0,
      #f4f4f4 10.5rem,
      #ffffff 10.5rem,
      #ffffff 100%
    );
  }
  .td-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem 0;
  }
  .td-col:nth-child(2n+1) {
    border-left: 0;
    padding-left: 0;
    padding-right: 1.05rem;
  }
  .td-col:nth-child(2n) {
    border-left: 1px solid var(--td-line);
    padding-left: 1.05rem;
    padding-right: 0;
  }
  .td-archive-grid,
  .td-webstories,
  .td-goodnews-grid,
  .td-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .td-goodnews { --td-gn-overlap: 3.5rem; }
  .td-goodnews-grid { gap: .9rem; padding: 0 .85rem; }
  .td-latest-lead { min-height: 300px; }
  .td-article-layout { padding: 1.15rem 0 2rem; }
  .td-article-title { font-size: clamp(1.55rem, 5.8vw, 2.15rem); }
  .td-search-form { max-width: none; }
}

@media (max-width: 720px) {
  .td-nav { display: none; }
  .td-masthead { padding: .85rem 0 .2rem; }
  .td-logo img { width: min(170px, 52vw); }
  .td-icon-btn { width: 44px; height: 44px; }
  .td-midband {
    --td-ticker-overlap: 20px;
    margin-bottom: 1.25rem;
  }
  .td-midband-panel { padding: 0; }
  .td-ticker-block { padding-bottom: 0; }
  .td-ticker { min-height: 40px; }
  .td-ticker-day { font-size: 12px; margin-bottom: .32rem; }
  .td-ticker-brand { padding: 0 .75rem; }
  .td-ticker-brand img { width: 62px; max-height: 22px; }
  .td-ticker-item { font-size: 13px; }
  .td-ticker-marquee { gap: 1.25rem; animation-duration: 95s; }
  .td-midband-panel .td-section--stories,
  .td-section--stories {
    padding: 1.15rem 0 1.05rem;
  }
  .td-section--stories .td-section-title { margin-bottom: 1.15rem; }
  .td-stories {
    justify-content: flex-start;
    gap: .85rem;
    padding: .2rem 0 .25rem;
    scroll-padding-inline: .75rem;
  }
  .td-story { width: 76px; }
  .td-story-avatar { width: 76px; height: 76px; }
  .td-rule-green { height: 7px; }
  .td-section { padding: 1rem 0 1.5rem; }
  .td-section-title { margin-bottom: 1rem; }
  .td-cols-band {
    background: linear-gradient(
      to bottom,
      #f4f4f4 0,
      #f4f4f4 12rem,
      #ffffff 12rem,
      #ffffff 100%
    );
  }
  .td-cols { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .td-col,
  .td-col:nth-child(n) {
    border-left: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .td-latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
  .td-card h3 { font-size: 1rem; }
  .td-card-foot {
    flex-wrap: wrap;
    row-gap: .25rem;
  }
  .td-footer { padding: 1.75rem 0 1rem; }
  .td-footer-nav {
    font-size: 13px;
    gap: .35rem .7rem;
    margin-bottom: 1rem;
    justify-content: center;
  }
  .td-footer-legal {
    gap: .45rem .65rem;
    font-size: 11px;
    padding: .85rem 0;
    line-height: 1.5;
  }
  .td-footer-sep { display: none; }
  .td-drawer-panel {
    width: min(340px, 92vw);
    padding: 1rem 1.1rem max(1.5rem, env(safe-area-inset-bottom, 0px));
  }
  .td-drawer-panel a {
    font-size: 1.05rem;
    padding: .85rem 0;
  }
  .td-pagination {
    flex-wrap: wrap;
    gap: .35rem;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  :root { --td-wrap: calc(100% - 1.25rem); }
  body.tb-theme {
    font-size: 15px;
    overflow-x: hidden;
  }
  .td-topbar-inner {
    min-height: 34px;
    font-size: 12px;
    gap: .65rem;
  }
  .td-date { font-size: 11px; }
  .td-date-full { display: none; }
  .td-date-short { display: inline; }
  .td-hero,
  .td-hero--archive { gap: .95rem; padding: 1rem 0 .85rem; }
  .td-hero-excerpt {
    font-size: .98rem;
    margin-bottom: .85rem;
  }
  .td-hero-media { aspect-ratio: 16 / 10; }
  .td-archive-grid,
  .td-webstories,
  .td-goodnews-grid,
  .td-more-grid,
  .td-latest-grid,
  .td-search-results { grid-template-columns: minmax(0, 1fr); gap: 1.15rem; }
  .td-goodnews { --td-gn-overlap: 2.85rem; }
  .td-goodnews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    padding: 0 .55rem;
  }
  .td-latest { gap: 1rem; }
  .td-latest-lead { min-height: 260px; border-radius: 0; }
  .td-latest-lead-copy { padding: 1.1rem 1rem 1rem; }
  .td-latest-lead-copy h3 { font-size: 1.2rem; }
  .td-webstories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
  }
  .td-webstory-copy { padding: 2rem .75rem .85rem; }
  .td-webstory-copy h3 { font-size: .95rem; }
  .td-webstory-progress { top: .45rem; left: .45rem; right: .45rem; }
  .td-article-body { font-size: 1.05rem; line-height: 1.75; }
  .td-article-layout { gap: 1.35rem; padding-bottom: 1.5rem; }
  .td-sidebar-block { padding: 1rem .9rem; }
  .td-related-item { grid-template-columns: 76px 1fr; gap: .65rem; }
  .td-related-thumb { width: 76px; height: 56px; }
  .td-more-stories { padding: .5rem 0 2.25rem; }
  .td-search { padding: 1.35rem 0 2.25rem; }
  .td-search-form {
    flex-direction: column;
    gap: .65rem;
  }
  .td-search-submit { width: 100%; min-height: 48px; }
  .td-search-field { min-height: 48px; border-radius: 14px; }
  .td-pagination { padding: .25rem 0 1.75rem; }
  .td-pagination a,
  .td-pagination span {
    min-width: 2.2rem;
    height: 2.2rem;
    font-size: 12px;
  }
  body.tb-theme .post-reactions-bar { gap: .4rem; }
  body.tb-theme .post-reaction-item { min-width: 3.7rem; flex: 1 1 calc(33.33% - .4rem); }
  body.tb-theme .cmt-compose-actions {
    flex-direction: column;
    align-items: stretch;
  }
  body.tb-theme .article-comments-form.cmt-compose .article-comments-submit {
    width: 100%;
  }
  .scroll-to-top {
    right: .75rem;
    bottom: .75rem;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 420px) {
  .td-webstories,
  .td-webstories--archive,
  .td-goodnews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
  }
  .td-ws-page { padding: 1rem 0 1.75rem; }
  .td-ws-row { margin-bottom: 1.65rem; }
  .td-ws-row-title { margin-bottom: .65rem; }
  .td-goodnews {
    --td-gn-overlap: 2.6rem;
    padding: 1rem 0 1.5rem;
  }
  .td-goodnews-banner h2 { font-size: 1.45rem; }
  .td-goodnews-grid { padding: 0 .4rem; }
  .td-goodnews-card h3 { font-size: .95rem; }
  .td-story { width: 70px; }
  .td-story-avatar { width: 70px; height: 70px; }
  .td-col-head { font-size: 1.15rem; }
  .td-archive-title { font-size: clamp(1.55rem, 7vw, 2rem); }
  .td-latest-grid { grid-template-columns: minmax(0, 1fr); }
  .td-hero-title { font-size: clamp(1.45rem, 7vw, 1.85rem); }
}

@media (prefers-reduced-motion: reduce) {
  .td-story-avatar,
  .td-latest-lead img,
  .td-webstory img,
  .td-card-media img { transition: none; }
}

/* —— Frontend admin bar (logged-in editors) —— */
:root { --frontend-admin-bar-height: 0px; }
body.has-frontend-admin-bar {
  --frontend-admin-bar-height: 44px;
}
body.has-frontend-admin-bar .site-shell {
  padding-top: var(--frontend-admin-bar-height);
}
.frontend-admin-bar {
  --fab-bg: #162033;
  --fab-ink: #f8fafc;
  --fab-muted: #94a3b8;
  --fab-accent: #e31c23;
  --fab-accent-soft: rgba(227, 28, 35, 0.18);
  --fab-green: #1f8f3a;
  --fab-hover: rgba(255, 255, 255, 0.08);
  --fab-line: rgba(255, 255, 255, 0.12);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100000;
  height: var(--frontend-admin-bar-height, 44px);
  min-height: var(--frontend-admin-bar-height, 44px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 60%),
    var(--fab-bg);
  color: var(--fab-ink);
  font-family: var(--td-sans, Poppins, system-ui, sans-serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  direction: ltr;
  text-align: left;
  box-shadow: 0 1px 0 rgba(227, 28, 35, 0.45), 0 8px 24px rgba(22, 32, 51, 0.28);
}
.frontend-admin-bar::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--fab-green) 0 50%, var(--fab-accent) 50% 100%);
  pointer-events: none;
}
.frontend-admin-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  max-width: 1600px;
  height: 100%;
  margin: 0 auto;
  padding: 0 0.85rem;
}
.frontend-admin-bar-left,
.frontend-admin-bar-right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
}
.frontend-admin-bar-right { position: relative; flex-shrink: 0; }
.frontend-admin-bar-link,
.frontend-admin-bar-account {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 30px;
  padding: 0 0.7rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--fab-ink);
  font: inherit;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.frontend-admin-bar-site {
  gap: 0.45rem;
  padding-inline-start: 0.4rem;
  color: #fff;
  font-weight: 700;
}
.frontend-admin-bar-mark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--fab-green) 0 50%, var(--fab-accent) 50% 100%);
  box-shadow: 0 0 0 3px var(--fab-accent-soft);
  flex-shrink: 0;
}
.frontend-admin-bar-link:hover,
.frontend-admin-bar-account:hover {
  background: var(--fab-hover);
  color: #fff;
}
.frontend-admin-bar-new {
  background: var(--fab-accent-soft);
  color: #fecaca;
  font-weight: 600;
}
.frontend-admin-bar-new:hover {
  background: rgba(227, 28, 35, 0.3);
  color: #fff;
}
.frontend-admin-bar-new-plus {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(227, 28, 35, 0.35);
  font-size: 13px;
  line-height: 1;
}
.frontend-admin-bar-sep {
  width: 1px;
  height: 15px;
  background: var(--fab-line);
  margin: 0 0.25rem;
  flex-shrink: 0;
}
.frontend-admin-bar-comments-count {
  min-width: 1.1rem;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.frontend-admin-bar-views {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 30px;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--fab-muted);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}
.frontend-admin-bar-views svg { flex-shrink: 0; opacity: 0.9; }
.frontend-admin-bar-views strong {
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.frontend-admin-bar-menu { position: relative; }
.frontend-admin-bar-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 148px;
  padding: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #1a2740;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
  z-index: 220;
}
.frontend-admin-bar-dropdown.is-open { display: grid; gap: 0.12rem; }
.frontend-admin-bar-dropdown--right { left: auto; right: 0; }
.frontend-admin-bar-dropdown a,
.frontend-admin-bar-dropdown button {
  display: block;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--fab-ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}
.frontend-admin-bar-dropdown a:hover,
.frontend-admin-bar-dropdown button:hover {
  background: var(--fab-accent-soft);
  color: #fff;
}
.frontend-admin-bar-account {
  padding-inline: 0.3rem 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.frontend-admin-bar-account:hover {
  background: rgba(255, 255, 255, 0.1);
}
.frontend-admin-bar-hello { color: var(--fab-muted); }
.frontend-admin-bar-account strong {
  font-weight: 700;
  color: #fff;
}
.frontend-admin-bar-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.frontend-admin-bar-avatar--initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ef3a40, #9f1419);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.frontend-admin-bar .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;
}
@media (max-width: 768px) {
  .frontend-admin-bar-left .frontend-admin-bar-link:not(.frontend-admin-bar-site):not(.frontend-admin-bar-comments):not(.frontend-admin-bar-edit) {
    display: none;
  }
  .frontend-admin-bar-views-label { display: none; }
  .frontend-admin-bar-left { overflow: hidden; }
  .frontend-admin-bar-inner { padding: 0 0.5rem; gap: 0.4rem; }
  .frontend-admin-bar-link,
  .frontend-admin-bar-account,
  .frontend-admin-bar-views {
    padding-inline: 0.45rem;
    font-size: 12px;
  }
  .frontend-admin-bar-hello { display: none; }
}


/* nm-bust 1795309882 */
