:root {
  --site-bg: #f3f4f6;
  --site-surface: #ffffff;
  --site-surface-alt: #f8fafc;
  --site-ink: #171a22;
  --site-ink-soft: #4d5563;
  --site-line: #d9dee7;
  --site-red: #c91f2e;
  --site-red-deep: #9f1820;
  --site-red-dark: #6d1018;
  --site-dark: #131722;
  --site-dark-soft: #232a39;
  --site-shadow: 0 18px 46px rgba(17, 24, 39, 0.08);
  --site-radius: 14px;
  --site-radius-sm: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--site-ink);
  background: var(--site-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.news-topline {
  background: #0f1320;
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.news-topline-wrap {
  min-height: 42px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.breaking-label {
  background: var(--site-red);
  color: #fff;
  padding: 7px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}

.breaking-ticker {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.breaking-ticker-loop {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  animation: breakingTicker 26s linear infinite;
}

.breaking-ticker a,
.breaking-ticker span {
  position: relative;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.86);
}

.breaking-ticker a + a::before,
.breaking-ticker a + span::before,
.breaking-ticker span + a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  display: inline-block;
  margin-right: 18px;
  vertical-align: middle;
}

.news-header {
  background: linear-gradient(180deg, #cf2433 0%, #a61824 100%);
  color: #fff;
  box-shadow: 0 12px 34px rgba(104, 18, 27, 0.24);
}

.news-header-main {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.news-logo {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.news-logo-mark {
  display: inline-flex;
  align-items: stretch;
  width: fit-content;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(80, 10, 18, 0.24);
}

.news-logo-tag,
.news-logo-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 13px;
  font-size: 1.44rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
}

.news-logo-tag {
  background: #fff;
  color: var(--site-red);
}

.news-logo-code {
  background: #101521;
  color: #fff;
}

.news-logo-note {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.75rem;
  max-width: 500px;
}

.news-header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-tool-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.header-tool-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.header-cta {
  background: var(--site-red);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.header-cta:hover {
  background: var(--site-red-deep);
  color: #fff;
}

.tool-mark,
.tool-pulse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.tool-pulse::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

.news-nav-shell {
  background: rgba(109, 16, 24, 0.46);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.news-primary-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 50px;
  overflow-x: auto;
  white-space: nowrap;
}

.news-primary-nav a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 0;
  border-bottom: 2px solid transparent;
}

.news-primary-nav a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.market-ribbon {
  background: #fff;
  color: var(--site-ink);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid var(--site-line);
}

.market-ribbon-track {
  min-height: 48px;
  overflow: hidden;
  white-space: nowrap;
  padding: 0 2px;
}

.market-ribbon-loop {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  animation: marketTicker 34s linear infinite;
}

.market-ribbon-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
}

.market-ribbon-item strong {
  color: #222937;
}

.market-ribbon-item span {
  font-weight: 700;
}

.market-ribbon-item em {
  font-style: normal;
  font-weight: 800;
}

.market-ribbon-item .up {
  color: #0f8a4b;
}

.market-ribbon-item .down {
  color: #c91f2e;
}

.home-hero {
  margin-bottom: 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: start;
}

.lead-slider,
.lead-story,
.hero-panel,
.section-shell,
.post-shell,
.news-card,
.empty-card {
  background: var(--site-surface);
  border: 1px solid var(--site-line);
  border-radius: var(--site-radius);
  box-shadow: var(--site-shadow);
}

.lead-slider,
.lead-story {
  overflow: hidden;
}

.hero-slider {
  position: relative;
}

.slider-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  pointer-events: none;
}

.slider-arrow {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.42);
}

.lead-slide {
  display: none;
}

.lead-slide.is-active {
  display: block;
}

.slider-dots {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 20px 18px;
  border-top: 1px solid var(--site-line);
  background: #fff;
}

.slider-dots button {
  min-width: 42px;
  height: 34px;
  border: 1px solid var(--site-line);
  border-radius: 999px;
  background: #fff;
  padding: 0 12px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #596171;
}

.slider-dots button.is-active {
  background: var(--site-red);
  border-color: var(--site-red);
  color: #fff;
}

.lead-story-media {
  display: block;
  aspect-ratio: 2 / 1;
  background: #cfd6df;
}

.lead-story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lead-story-media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(23, 26, 34, 0.6);
  font-weight: 700;
}

.lead-story-body {
  padding: 26px 28px 30px;
}

.story-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #707887;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.story-badge {
  background: rgba(193, 31, 40, 0.1);
  color: var(--site-red);
  padding: 6px 10px;
  border-radius: 999px;
}

.lead-story h2,
.section-title,
.post-title,
.news-card h3,
.news-card h4,
.story-card h3,
.spotlight-card h4,
.headline-item h4,
.side-story h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  letter-spacing: -0.03em;
}

.lead-story h2 {
  margin: 14px 0 14px;
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  line-height: 1.08;
  font-weight: 800;
}

.lead-story p,
.story-card p,
.headline-item p,
.post-summary,
.post-body {
  color: var(--site-ink-soft);
  line-height: 1.75;
}

.hero-sidebar {
  display: grid;
  gap: 18px;
}

.hero-panel {
  padding: 18px;
}

.panel-title,
.section-kicker {
  color: var(--site-red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.panel-link {
  color: #7f8794;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.side-story {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--site-line);
}

.side-story:first-of-type {
  border-top: 0;
  padding-top: 8px;
}

.side-story-media {
  width: 110px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #dde3eb;
}

.side-story-media img,
.story-card-media img,
.spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-story h3 {
  font-size: 1.02rem;
  line-height: 1.28;
  margin: 8px 0 0;
  font-weight: 800;
}

.side-story-body .story-meta {
  gap: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.side-story-body .story-meta span:first-child {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(201, 31, 46, 0.08);
  color: var(--site-red);
}

.side-story-body .story-meta span:last-child {
  color: #8a91a0;
}

.flash-stack {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.flash-link {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: var(--site-ink);
  font-weight: 700;
}

.flash-time {
  color: var(--site-red);
  font-size: 0.82rem;
  font-weight: 800;
}

.section-shell {
  padding: 24px;
  margin-bottom: 24px;
}

.compact-shell {
  padding-top: 20px;
  padding-bottom: 20px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-title {
  margin: 8px 0 0;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.08;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(201, 31, 46, 0.1);
}

.section-kicker-news {
  background: rgba(201, 31, 46, 0.1);
  color: var(--site-red);
}

.section-kicker-editor {
  background: rgba(31, 88, 201, 0.12);
  color: #1f58c9;
}

.section-kicker-economy {
  background: rgba(15, 138, 75, 0.12);
  color: #0f8a4b;
}

.section-kicker-sports {
  background: rgba(255, 140, 0, 0.14);
  color: #d87300;
}

.section-link {
  color: var(--site-red);
  font-weight: 800;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.market-card {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border: 1px solid var(--site-line);
  border-radius: 14px;
  padding: 14px 16px;
  display: grid;
  gap: 4px;
}

.market-name {
  color: #697181;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.market-card strong {
  font-size: 1.25rem;
}

.market-change {
  font-size: 0.86rem;
  font-weight: 800;
}

.market-change.up {
  color: #0f8a4b;
}

.market-change.down {
  color: var(--site-red);
}

.story-card,
.spotlight-card {
  display: flex;
  flex-direction: column;
  background: var(--site-surface);
  border: 1px solid var(--site-line);
  border-radius: var(--site-radius-sm);
  overflow: hidden;
}

.story-card-media,
.spotlight-media {
  display: block;
  aspect-ratio: 2 / 1;
  background: #dbe2ea;
}

.story-card-body,
.spotlight-body {
  padding: 16px 16px 18px;
}

.story-card h3,
.headline-item h4,
.spotlight-card h4 {
  margin: 10px 0 10px;
  font-size: 1.18rem;
  line-height: 1.24;
  font-weight: 800;
}

.section-shell-split .split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.95fr);
  gap: 24px;
}

.feature-story {
  display: flex;
  flex-direction: column;
  background: var(--site-surface);
  border: 1px solid var(--site-line);
  border-radius: var(--site-radius);
  overflow: hidden;
}

.feature-story-media {
  display: block;
  aspect-ratio: 1.9 / 1;
  background: #dbe2ea;
}

.feature-story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-story-body {
  padding: 20px 22px 24px;
}

.feature-story h3 {
  margin: 10px 0 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 1.55rem;
  line-height: 1.18;
  font-weight: 800;
}

.feature-story p {
  color: var(--site-ink-soft);
  line-height: 1.75;
}

.headline-list {
  display: grid;
  gap: 16px;
}

.headline-item {
  padding: 0 0 16px;
  border-bottom: 1px solid var(--site-line);
}

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

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.empty-state,
.empty-card {
  padding: 26px;
  text-align: center;
  color: var(--site-ink-soft);
}

.news-card {
  padding: 22px;
}

.news-card h3,
.news-card h4 {
  margin: 10px 0 10px;
  font-size: 1.5rem;
  line-height: 1.18;
}

.news-meta {
  color: #707887;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-shell {
  padding: 30px;
}

.post-title {
  margin: 14px 0 18px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.post-summary {
  font-size: 1.12rem;
}

.post-body {
  font-size: 1rem;
}

.post-body p {
  margin-bottom: 1.2rem;
}

.site-footer {
  background: #121722;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 48px;
  padding: 42px 0 18px;
}

.footer-showcase {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  margin-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-block {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  max-width: 640px;
}

.footer-brand-mark {
  display: inline-flex;
  align-items: stretch;
  border-radius: 12px;
  overflow: hidden;
}

.footer-brand-mark span,
.footer-brand-mark strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  min-width: 72px;
  padding: 0 14px;
  letter-spacing: 0.08em;
  font-size: 1.2rem;
}

.footer-brand-mark span {
  background: #fff;
  color: var(--site-red);
  font-weight: 900;
}

.footer-brand-mark strong {
  background: var(--site-red);
  color: #fff;
  font-weight: 900;
}

.footer-showcase-right {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 360px;
}

.footer-showcase-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
}

.footer-showcase-card span {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.footer-showcase-card strong {
  color: #fff;
  font-size: 1rem;
  line-height: 1.45;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 28px;
}

.footer-brand {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
}

.footer-copy,
.footer-note {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-top: 12px;
}

.footer-title {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.54);
}

@keyframes marketTicker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes breakingTicker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1199px) {
  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-showcase {
    flex-direction: column;
  }

  .footer-showcase-right {
    min-width: 0;
  }
}

@media (max-width: 991px) {
  .news-topline-wrap {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 10px 0;
  }

  .news-header-main {
    min-height: auto;
    padding: 18px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .news-header-tools {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-grid,
  .section-shell-split .split-layout {
    grid-template-columns: 1fr;
  }

  .market-grid,
  .story-grid,
  .spotlight-grid {
    grid-template-columns: 1fr;
  }

  .footer-showcase-right {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .container,
  .container-sm {
    padding-left: 16px;
    padding-right: 16px;
  }

  .breaking-ticker {
    display: grid;
    gap: 8px;
    white-space: normal;
  }

  .news-primary-nav {
    gap: 16px;
  }

  .news-logo-tag,
  .news-logo-code {
    min-height: 44px;
    padding: 0 14px;
    font-size: 1.02rem;
  }

  .section-shell,
  .post-shell,
  .news-card,
  .lead-story-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .side-story {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .side-story-media {
    width: 90px;
    height: 62px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand-block {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
