@import url('/assets/cf-design-system.css?v=3.8');

:root,
html[data-theme="light"] {
  --news-disclaimer-bg: #fffbeb;
  --news-disclaimer-border: rgba(245, 158, 11, 0.45);
  --news-disclaimer-text: #78350f;

  --tone-sky-text: #0284c7;
  --tone-sky-bg: rgba(2, 132, 199, 0.09);
  --tone-sky-border: rgba(2, 132, 199, 0.28);

  --tone-crimson-text: #dc2626;
  --tone-crimson-bg: rgba(220, 38, 38, 0.08);
  --tone-crimson-border: rgba(220, 38, 38, 0.26);

  --tone-emerald-text: #059669;
  --tone-emerald-bg: rgba(5, 150, 105, 0.09);
  --tone-emerald-border: rgba(5, 150, 105, 0.28);

  --hero-metric-box-bg: #ffffff;
  --hero-metric-box-border: #e5e7eb;
  --hero-metric-tile-bg: #f8fafc;
  --hero-metric-tile-border: #e2e8f0;
  --hero-metric-num-color: #0f172a;
  --hero-metric-sub-color: #475569;

  --cover-pattern-stroke: rgba(17, 24, 39, 0.07);
  --dd-shadow: 0 18px 42px -10px rgba(15, 23, 42, 0.18), 0 4px 14px -2px rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] {
  --news-disclaimer-bg: rgba(245, 158, 11, 0.08);
  --news-disclaimer-border: rgba(245, 158, 11, 0.35);
  --news-disclaimer-text: #fde68a;

  --tone-sky-text: #38bdf8;
  --tone-sky-bg: rgba(56, 189, 248, 0.12);
  --tone-sky-border: rgba(56, 189, 248, 0.35);

  --tone-crimson-text: #f87171;
  --tone-crimson-bg: rgba(248, 113, 113, 0.12);
  --tone-crimson-border: rgba(248, 113, 113, 0.35);

  --tone-emerald-text: #34d399;
  --tone-emerald-bg: rgba(52, 211, 153, 0.12);
  --tone-emerald-border: rgba(52, 211, 153, 0.35);

  --hero-metric-box-bg: #161b26;
  --hero-metric-box-border: rgba(255, 255, 255, 0.13);
  --hero-metric-tile-bg: #1e2433;
  --hero-metric-tile-border: rgba(255, 255, 255, 0.1);
  --hero-metric-num-color: #f8fafc;
  --hero-metric-sub-color: #94a3b8;

  --cover-pattern-stroke: rgba(255, 255, 255, 0.07);
  --dd-shadow: 0 20px 44px -8px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

.news-shell {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.15rem 1rem 3rem;
}

@media (min-width: 640px) {
  .news-shell {
    padding: 1.5rem 1.5rem 3.5rem;
  }
}

/* Disclaimer Lab Header */
.news-disclaimer-bar {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.78rem 1rem;
  border-radius: 8px;
  background-color: var(--news-disclaimer-bg) !important;
  border: 1px solid var(--news-disclaimer-border) !important;
  color: var(--news-disclaimer-text) !important;
  margin-bottom: 0.85rem;
  font-size: 0.8rem;
  line-height: 1.52;
}

.news-disclaimer-bar div {
  text-align: justify !important;
  hyphens: auto;
}

.news-disclaimer-bar strong {
  color: inherit;
  font-weight: 700;
}

.news-disclaimer-icon {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: var(--cf-orange, #f6821f);
}

/* Breaking Ticker Strip */
.news-ticker-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  background-color: var(--cf-bg-surface) !important;
  border: 1px solid var(--cf-border) !important;
  margin-bottom: 1.15rem;
  overflow: hidden;
}

.news-ticker-label {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--cf-font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.58rem;
  border-radius: 5px;
  background-color: var(--cf-orange);
  color: #ffffff;
  text-transform: uppercase;
}

.news-ticker-track {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  flex: 1;
}

.news-ticker-track::-webkit-scrollbar {
  display: none;
}

.news-ticker-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cf-text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.news-ticker-link:hover {
  color: var(--cf-orange);
}

.news-ticker-sep {
  color: var(--cf-border-strong);
  font-size: 0.75rem;
}

/* Hero Masthead + Kotak Statistik Putih Manis */
.news-hero-card {
  background-color: var(--cf-bg-surface) !important;
  border: 1px solid var(--cf-border) !important;
  border-radius: 10px !important;
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .news-hero-card {
    padding: 1.65rem 1.85rem;
  }
}

.news-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.8rem;
}

.news-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--cf-font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.24rem 0.68rem;
  border-radius: 999px;
  background-color: var(--cf-orange-tint);
  border: 1px solid var(--cf-orange-border);
  color: var(--cf-orange);
}

.news-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--cf-status-green, #10b981);
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.news-sync-meta {
  font-family: var(--cf-font-mono);
  font-size: 0.73rem;
  color: var(--cf-text-muted);
}

.news-hero-topgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.15rem;
  align-items: stretch;
}

@media (min-width: 920px) {
  .news-hero-topgrid {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
    gap: 1.35rem;
  }
}

.news-hero-metrics-box {
  background-color: var(--hero-metric-box-bg) !important;
  border: 1px solid var(--hero-metric-box-border) !important;
  border-radius: 10px;
  padding: 0.95rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.7rem;
}

.news-hero-metrics-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--cf-font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--hero-metric-sub-color);
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--hero-metric-tile-border);
}

.news-stat-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.news-stat-chip {
  padding: 0.68rem 0.55rem;
  border-radius: 8px;
  background-color: var(--hero-metric-tile-bg);
  border: 1px solid var(--hero-metric-tile-border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
}

.news-stat-chip strong {
  font-family: var(--cf-font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--hero-metric-num-color);
}

.news-stat-chip span {
  font-family: var(--cf-font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--hero-metric-sub-color);
  white-space: nowrap;
}

/* Source Filter Navigation */
.news-source-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cf-border);
}

.news-source-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.46rem 0.85rem;
  border-radius: 7px;
  font-size: 0.8125rem;
  font-weight: 600;
  background-color: var(--cf-bg-subtle);
  border: 1px solid var(--cf-border-strong);
  color: var(--cf-text-secondary);
  text-decoration: none;
  transition: all 140ms ease;
}

.news-source-tab:hover {
  border-color: var(--cf-orange);
  color: var(--cf-text-primary);
}

.news-source-tab.is-active {
  background-color: var(--cf-orange-tint);
  border-color: var(--cf-orange);
  color: var(--cf-text-primary);
  font-weight: 700;
}

.news-source-count {
  font-family: var(--cf-font-mono);
  font-size: 0.68rem;
  padding: 0.06rem 0.42rem;
  border-radius: 999px;
  background-color: var(--cf-bg-surface);
  border: 1px solid var(--cf-border);
  color: var(--cf-text-muted);
}

/* Search, Full-View Channel Dropdown & Action Toolbar */
.news-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
}

.news-search-wrap {
  position: relative;
  flex: 1 1 250px;
}

.news-search-input {
  width: 100%;
  padding: 0.64rem 0.9rem 0.64rem 2.35rem;
  border-radius: 8px;
  border: 1px solid var(--cf-border-strong);
  background-color: var(--cf-bg-surface);
  color: var(--cf-text-primary);
  font-size: 0.85rem;
  font-family: var(--cf-font-sans);
  outline: none;
  transition: border-color 140ms ease;
}

.news-search-input:focus {
  border-color: var(--cf-orange);
}

.news-search-icon {
  position: absolute;
  left: 0.78rem;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--cf-text-muted);
  pointer-events: none;
}

.news-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

@media (max-width: 639px) {
  .news-toolbar-actions {
    width: 100%;
  }
}

/* Full Popover Dropdown Tanpa Scrollbar (Desktop & Mobile) */
.news-channel-dd {
  position: relative;
}

@media (max-width: 639px) {
  .news-channel-dd {
    flex: 1 1 100%;
  }
}

.news-dd-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.6rem 0.95rem;
  border-radius: 8px;
  border: 1px solid var(--cf-border-strong);
  background-color: var(--cf-bg-surface);
  color: var(--cf-text-primary);
  font-family: var(--cf-font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
  user-select: none;
  white-space: nowrap;
}

@media (max-width: 639px) {
  .news-dd-trigger {
    width: 100%;
  }
}

.news-dd-trigger:hover,
.news-channel-dd.is-open .news-dd-trigger {
  border-color: var(--cf-orange);
}

.news-channel-dd.is-open .news-dd-trigger {
  background-color: var(--cf-orange-tint);
  box-shadow: 0 0 0 3px rgba(246, 130, 31, 0.12);
}

.news-dd-icon {
  width: 15px;
  height: 15px;
  color: var(--cf-orange);
  flex-shrink: 0;
}

.news-dd-badge {
  font-family: var(--cf-font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.1rem 0.48rem;
  border-radius: 999px;
  background-color: var(--cf-orange-tint);
  border: 1px solid var(--cf-orange-border);
  color: var(--cf-orange);
}

.news-dd-chevron {
  width: 14px;
  height: 14px;
  color: var(--cf-text-muted);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
  flex-shrink: 0;
}

.news-channel-dd.is-open .news-dd-chevron {
  transform: rotate(180deg);
  color: var(--cf-orange);
}

/* Tanpa Scrollbar: tinggi menyesuaikan isi penuh & lebar lega */
.news-dd-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 340px;
  width: max-content;
  max-width: 560px;
  background-color: var(--cf-bg-surface);
  border: 1px solid var(--cf-border-strong);
  border-radius: 12px;
  box-shadow: var(--dd-shadow);
  padding: 0.8rem 0.85rem;
  z-index: 75;
  overflow: visible;
}

@media (max-width: 639px) {
  .news-dd-menu {
    position: static;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: 0.55rem;
    box-shadow: var(--dd-shadow);
  }
}

.news-channel-dd.is-open .news-dd-menu {
  display: block;
}

.news-dd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.15rem 0.35rem 0.6rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--cf-border);
}

.news-dd-head-title {
  font-family: var(--cf-font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cf-text-muted);
}

.news-dd-reset-btn {
  background: transparent;
  border: 0;
  padding: 0;
  font-family: var(--cf-font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--cf-orange);
  cursor: pointer;
  white-space: nowrap;
}

.news-dd-reset-btn:hover {
  text-decoration: underline;
}

/* Grid tanpa scrollbar agar seluruh kanal terlihat penuh tanpa potongan */
.news-dd-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem;
  overflow: visible;
}

.news-dd-list.is-multi-col {
  grid-template-columns: repeat(2, minmax(230px, 1fr));
}

@media (max-width: 639px) {
  .news-dd-list,
  .news-dd-list.is-multi-col {
    grid-template-columns: minmax(0, 1fr);
  }
}

.news-dd-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background-color 120ms ease, border-color 120ms ease;
  user-select: none;
}

.news-dd-option:hover {
  background-color: var(--cf-bg-subtle);
  border-color: var(--cf-border);
}

.news-dd-opt-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1;
}

.news-dd-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background-color: var(--tone-sky-text);
}

.news-dd-dot[data-tone="crimson"] {
  background-color: var(--tone-crimson-text);
}

.news-dd-dot[data-tone="emerald"] {
  background-color: var(--tone-emerald-text);
}

.news-dd-opt-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.news-dd-opt-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cf-text-primary);
  line-height: 1.28;
  white-space: nowrap;
}

.news-dd-opt-meta {
  font-family: var(--cf-font-mono);
  font-size: 0.66rem;
  color: var(--cf-text-muted);
  white-space: nowrap;
}

.news-dd-switch {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background-color: var(--cf-bg-subtle);
  border: 1px solid var(--cf-border-strong);
  transition: background-color 160ms ease, border-color 160ms ease;
  flex-shrink: 0;
}

.news-dd-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--cf-text-muted);
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1), background-color 160ms ease;
}

input.news-dd-cb:checked + .news-dd-switch {
  background-color: var(--cf-orange);
  border-color: var(--cf-orange);
}

input.news-dd-cb:checked + .news-dd-switch .news-dd-knob {
  transform: translateX(16px);
  background-color: #ffffff;
}

.news-dd-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.55rem;
  padding: 0.5rem 0.35rem 0.1rem;
  border-top: 1px solid var(--cf-border);
  font-family: var(--cf-font-mono);
  font-size: 0.68rem;
  color: var(--cf-text-muted);
}

.news-dd-only-btn {
  background: var(--cf-bg-subtle);
  border: 1px solid var(--cf-border-strong);
  border-radius: 5px;
  padding: 0.16rem 0.48rem;
  font-family: var(--cf-font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--cf-text-secondary);
  cursor: pointer;
  white-space: nowrap;
}

.news-dd-only-btn:hover {
  border-color: var(--cf-orange);
  color: var(--cf-orange);
}

.news-refresh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 0.95rem;
  border-radius: 8px;
  border: 1px solid var(--cf-border-strong);
  background-color: var(--cf-bg-surface);
  color: var(--cf-text-primary);
  font-family: var(--cf-font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease;
  white-space: nowrap;
}

@media (max-width: 639px) {
  .news-refresh-btn {
    width: 100%;
  }
}

.news-refresh-btn:hover {
  border-color: var(--cf-orange);
  color: var(--cf-orange);
}

/* Dropdown Terjemahan Instan 7 Bahasa di Samping Waktu Terbit */
.news-time-tr-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.news-tr-picker {
  position: relative;
  display: inline-block;
}

.news-tr-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 0.14rem 1.35rem 0.14rem 0.48rem;
  border-radius: 5px;
  border: 1px solid var(--cf-border-strong);
  background-color: var(--cf-bg-subtle);
  color: var(--cf-text-secondary);
  font-family: var(--cf-font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: border-color 130ms ease, color 130ms ease, background-color 130ms ease;
}

.news-tr-select:hover,
.news-tr-select:focus {
  border-color: var(--cf-orange);
  color: var(--cf-text-primary);
}

.news-tr-select.is-translated {
  border-color: var(--cf-orange);
  background-color: var(--cf-orange-tint);
  color: var(--cf-orange);
}

.news-tr-caret {
  position: pointer;
  pointer-events: none;
  position: absolute;
  right: 0.42rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.58rem;
  color: var(--cf-text-muted);
  line-height: 1;
}

/* Source Badges Per Channel */
.news-source-badge {
  font-family: var(--cf-font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid var(--cf-orange-border);
  background-color: var(--cf-orange-tint);
  color: var(--cf-orange);
}

.news-source-badge[data-tone="sky"] {
  color: var(--tone-sky-text);
  background-color: var(--tone-sky-bg);
  border-color: var(--tone-sky-border);
}

.news-source-badge[data-tone="crimson"] {
  color: var(--tone-crimson-text);
  background-color: var(--tone-crimson-bg);
  border-color: var(--tone-crimson-border);
}

.news-source-badge[data-tone="emerald"] {
  color: var(--tone-emerald-text);
  background-color: var(--tone-emerald-bg);
  border-color: var(--tone-emerald-border);
}

/* Editorial Bento Spotlight (8 Cols Lead + 4 Cols Trending) */
.news-bento-spotlight {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.1rem;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .news-bento-spotlight {
    grid-template-columns: minmax(0, 7.3fr) minmax(0, 4.7fr);
  }
}

.news-lead-card {
  background-color: var(--cf-bg-surface) !important;
  border: 1px solid var(--cf-border) !important;
  border-radius: 10px !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 140ms ease !important;
}

.news-lead-card:hover {
  border-color: var(--cf-orange) !important;
}

.news-lead-media {
  position: relative;
  width: 100%;
  height: 245px;
  background-color: var(--cf-bg-subtle);
  border-bottom: 1px solid var(--cf-border);
  overflow: hidden;
}

@media (min-width: 640px) {
  .news-lead-media {
    height: 285px;
  }
}

.news-lead-body {
  padding: 1.35rem 1.5rem 1.45rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.news-lead-title {
  font-family: var(--cf-font-serif) !important;
  font-size: clamp(1.28rem, 2.15vw, 1.68rem);
  font-weight: 700;
  line-height: 1.28;
  margin: 0.55rem 0 0.65rem;
  color: var(--cf-text-primary) !important;
}

.news-lead-title a {
  color: inherit;
  text-decoration: none;
}

.news-lead-title a:hover {
  color: var(--cf-orange);
}

/* Trending Top 5 Rail */
.news-trending-rail {
  background-color: var(--cf-bg-surface) !important;
  border: 1px solid var(--cf-border) !important;
  border-radius: 10px !important;
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
}

.news-trending-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  margin-bottom: 0.45rem;
  border-bottom: 1px solid var(--cf-border);
}

.news-trending-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.news-trending-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.68rem 0;
  border-bottom: 1px solid var(--cf-border);
}

.news-trending-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.news-trending-num {
  font-family: var(--cf-font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--cf-orange);
  line-height: 1.2;
  min-width: 24px;
  padding-top: 2px;
}

.news-trending-title {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--cf-text-primary);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-trending-title:hover {
  color: var(--cf-orange);
}

/* 3-Column Card Grid & Cover Visuals */
.news-grid-3 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.05rem;
}

@media (min-width: 768px) {
  .news-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .news-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.news-item-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--cf-bg-surface) !important;
  border: 1px solid var(--cf-border) !important;
  border-radius: 10px !important;
  overflow: hidden;
  transition: border-color 140ms ease !important;
}

.news-item-card:hover {
  border-color: var(--cf-orange) !important;
}

.news-thumb-wrap {
  position: relative;
  width: 100%;
  height: 162px;
  background-color: var(--cf-bg-subtle);
  border-bottom: 1px solid var(--cf-border);
  overflow: hidden;
}

.news-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dynamic Wireframe Editorial Cover */
.news-editorial-cover {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.95rem 1.1rem;
  background-color: var(--cf-bg-subtle);
  overflow: hidden;
}

.news-editorial-cover[data-tone="sky"] {
  border-top: 3px solid var(--tone-sky-text);
}
.news-editorial-cover[data-tone="crimson"] {
  border-top: 3px solid var(--tone-crimson-text);
}
.news-editorial-cover[data-tone="emerald"] {
  border-top: 3px solid var(--tone-emerald-text);
}

.news-cover-svg {
  position: absolute;
  right: -12px;
  bottom: -14px;
  width: 168px;
  height: 118px;
  pointer-events: none;
  opacity: 0.85;
}

.news-cover-kicker {
  font-family: var(--cf-font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cf-text-muted);
  z-index: 1;
}

.news-cover-publisher {
  font-family: var(--cf-font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--cf-text-primary);
  line-height: 1.2;
  z-index: 1;
  max-width: 85%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-card-content {
  padding: 1.05rem 1.15rem 0.85rem;
  flex: 1;
}

.news-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.news-time-label {
  font-family: var(--cf-font-mono);
  font-size: 0.69rem;
  color: var(--cf-text-muted);
}

.news-card-title {
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.44;
  margin: 0 0 0.5rem;
  color: var(--cf-text-primary) !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-title a {
  color: inherit;
  text-decoration: none;
}

.news-card-title a:hover {
  color: var(--cf-orange);
}

.news-card-excerpt {
  font-size: 0.82rem;
  line-height: 1.58;
  color: var(--cf-text-secondary) !important;
  text-align: justify !important;
  hyphens: auto;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.72rem 1.15rem;
  border-top: 1px solid var(--cf-border);
  background-color: var(--cf-bg-subtle);
  font-size: 0.75rem;
}

.news-origin-tag {
  font-family: var(--cf-font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--cf-text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 58%;
}

.news-read-link {
  font-weight: 700;
  color: var(--cf-orange);
  text-decoration: none;
  white-space: nowrap;
}

.news-read-link:hover {
  text-decoration: underline;
}

.news-section-block {
  margin-top: 2.25rem;
}

.news-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--cf-border);
}

/* Article Reader Layout */
.news-article-layout {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .news-article-layout {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  }
}

.news-reader-box {
  background-color: var(--cf-bg-surface) !important;
  border: 1px solid var(--cf-border) !important;
  border-radius: 10px !important;
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .news-reader-box {
    padding: 2rem 2.25rem;
  }
}

.news-reader-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--cf-text-primary) !important;
  text-align: justify !important;
  hyphens: auto;
  margin: 0 0 1.15rem;
  max-width: 68ch;
}

.news-source-callout {
  margin-top: 1.5rem;
  padding: 1.15rem;
  border-radius: 8px;
  background-color: var(--cf-bg-subtle);
  border: 1px solid var(--cf-border-strong);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.news-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.68rem 1.15rem;
  border-radius: 8px;
  background-color: var(--cf-orange);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.84rem;
  text-decoration: none;
  border: 1px solid var(--cf-orange);
  transition: background-color 140ms ease;
}

.news-btn-primary:hover {
  background-color: var(--cf-orange-hover);
}

.news-sidebar-card {
  background-color: var(--cf-bg-surface) !important;
  border: 1px solid var(--cf-border) !important;
  border-radius: 10px !important;
  padding: 1.25rem;
}

.news-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.news-related-item {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--cf-border);
}

.news-related-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.news-related-link {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--cf-text-primary);
  text-decoration: none;
  display: block;
}

.news-related-link:hover {
  color: var(--cf-orange);
}

.ts-hidden-slot {
  position: fixed;
  bottom: 8px;
  right: 8px;
  z-index: 40;
}