body {
  overflow-x: hidden;
}

/* ===== Header — Youlyou-style: logo first, slanted tabs ===== */
.main-header {
  --header-compact: 1;
  background: #fff;
}

/* Logo bar on top */
.logo-bar {
  padding: 9px 0 8px;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.logo-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand__link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.brand__mark {
  width: 220px;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.brand__descriptor {
  color: #667085;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand__name {
  font-size: clamp(31px, 4vw, 42px);
  font-weight: 700;
  line-height: 0.95;
  color: var(--color-red);
}

.brand__tag {
  font-size: 10px;
  color: #888;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}

.brand__editor {
  font-size: 15px;
  color: #222;
  font-weight: 700;
  border-inline-start: 1px solid #ddd;
  padding-inline-start: 16px;
  line-height: 1.35;
}

.brand__editor span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #888;
  margin-bottom: 2px;
}

.brand__editor strong {
  color: #111;
  font-weight: 700;
}

.logo-bar__tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-bar__promo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  background: #111;
  color: #fff;
  min-width: 132px;
}

.logo-bar__promo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff2d2d;
  animation: pulse-live 1.6s infinite;
}

@keyframes pulse-live {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 45, 45, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 45, 45, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 45, 45, 0);
  }
}

.logo-bar__promo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.logo-bar__promo-text span:first-child {
  font-size: 10px;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.logo-bar__promo-text span:last-child {
  font-size: 13px;
  font-weight: 700;
}

.nav-search-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 0;
  background: #fff;
}

.nav-search-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.nav-search-link:hover {
  border-color: var(--color-red);
  color: var(--color-red);
}

.nav-date {
  font-size: 12.5px;
  color: #666;
  white-space: nowrap;
  font-weight: 500;
}

/* Slanted grey/red tabs */
.nav-bar {
  background: #fff;
  color: #222;
  min-height: var(--nav-h);
  z-index: 80;
  border-bottom: 1px solid var(--color-border);
  padding: 5px 0 0;
}

.nav-bar.is-sticky {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  background: #fff;
  box-shadow: 0 1px 0 var(--color-border);
  padding-top: 8px;
}

body.has-sticky-nav {
  padding-top: calc(var(--nav-h) + 16px);
}

.nav-bar__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  min-height: var(--nav-h);
}

.nav-menu {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0;
}

.nav-menu > li {
  margin-inline-start: -6px;
}

.nav-menu > li:first-child {
  margin-inline-start: 0;
}

.nav-menu a,
.nav-more__btn {
  display: inline-flex;
  align-items: center;
  height: var(--nav-h);
  padding: 0 20px;
  color: #333;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  border: 0;
  background: var(--color-tab);
  cursor: pointer;
  position: relative;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-menu a:hover,
.nav-menu a.is-active,
.nav-more__btn:hover {
  background: var(--color-red);
  color: #fff;
  z-index: 2;
}

.nav-more {
  position: relative;
}

.nav-more__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 170px;
  background: #fff;
  border: 1px solid var(--color-border);
  z-index: 50;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.nav-more.is-open .nav-more__dropdown {
  display: block;
}

.nav-more__dropdown a {
  display: block;
  height: auto;
  padding: 11px 14px;
  color: var(--color-text);
  font-size: 13px;
  border-bottom: 1px solid var(--color-border);
  clip-path: none;
  background: #fff;
}

.nav-more__dropdown a:last-child {
  border-bottom: 0;
}

.nav-more__dropdown a:hover {
  background: var(--color-red-soft);
  color: var(--color-red);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  background: #fff;
  color: #222;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border-radius: 4px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #222;
}

.nav-actions {
  display: none;
}

/* ===== Ticker — full red bar ===== */
.news-ticker {
  background: var(--color-red);
  overflow: hidden;
}

.ticker {
  display: flex;
  align-items: stretch;
  min-height: 38px;
}

.ticker__label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 0 14px 0 10px;
  min-width: 54px;
  position: relative;
  z-index: 2;
  border-inline-start: 0;
}

.ticker__label::after {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(255, 255, 255, 0.45);
  border: 0;
}

.ticker__track-wrap {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: transparent;
}

.ticker__track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 45s linear infinite;
  padding-inline: 8px;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

.ticker__item {
  font-size: 13.5px;
  font-weight: 500;
  color: #fff;
  padding-inline: 18px;
  position: relative;
}

.ticker__item::before {
  content: "•";
  margin-inline-end: 18px;
  opacity: 0.85;
}

.ticker__item:hover {
  color: #fff;
  text-decoration: underline;
}

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

/* ===== Main layout ===== */
.main-content {
  padding: 18px 0 40px;
  background: #fff;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-red);
}

.page-head h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-black);
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-head h1::before {
  content: "";
  width: 5px;
  height: 22px;
  background: var(--color-red);
  flex-shrink: 0;
}

.page-head__count {
  font-size: 12px;
  color: var(--color-muted);
}

.layout-home {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 22px;
  align-items: start;
}

.layout-main {
  min-width: 0;
}

.layout-side {
  min-width: 0;
}

/* ===== Footer ===== */
.site-footer {
  background: transparent;
  color: #ccc;
  padding: 0;
  margin-top: 36px;
}

.pro-footer {
  background: #141416;
  color: #cfcfcf;
  margin-top: 48px;
  position: relative;
}

.footer-slant {
  height: 48px;
  background: linear-gradient(176deg, #fff 0 48%, #141416 49%);
  margin-top: -1px;
}

.footer-top-bar {
  background: #1b1b1e;
  border-bottom: 1px solid #2c2c30;
  padding: 26px 0;
}

.footer-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-newsletter__title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.footer-newsletter__desc {
  font-size: 13.5px;
  color: #9a9a9a;
}

.footer-newsletter__form {
  display: flex;
  gap: 0;
  min-width: min(420px, 100%);
  border: 0;
  overflow: hidden;
  border-radius: 4px;
}

.footer-newsletter__form input {
  flex: 1;
  border: 0;
  outline: 0;
  background: #fff;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  min-width: 0;
}

.footer-newsletter__form button {
  border: 0;
  background: var(--color-red);
  color: #fff;
  font-weight: 700;
  padding: 0 22px;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 0;
}

.footer-newsletter__form button:hover {
  background: var(--color-red-dark);
}

.footer-main-content {
  padding: 28px 14px 20px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 22px;
}

.footer-grid a {
  font-size: 13.5px;
  font-weight: 700;
  color: #ddd;
}

.footer-grid a:hover {
  color: var(--color-red);
}

.footer-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #2a2a2e;
}

.footer-social-row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #1f1f23;
  border: 1px solid #333;
  font-size: 12.5px;
  font-weight: 700;
  color: #eee;
  border-radius: 4px;
}

.footer-social-row a:hover {
  border-color: var(--color-red);
  color: #fff;
}

.footer-social-row span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-red);
}

.footer-bottom-strip {
  border-top: 1px solid #2a2a2e;
  padding: 16px 0;
  font-size: 12px;
  color: #777;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottom-links a {
  color: #999;
}

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

.footer__grid,
.footer__brand-name,
.footer__desc,
.footer__title,
.footer__links,
.footer__bottom {
  display: none;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .layout-home {
    grid-template-columns: 1fr;
  }

  .brand__editor {
    display: none;
  }
}

@media (max-width: 768px) {
  .logo-bar__inner,
  .brand,
  .brand__link {
    min-width: 0;
  }

  .logo-bar__inner {
    position: relative;
    min-height: 42px;
  }

  .brand {
    position: absolute;
    inset-inline-start: 14px;
    top: 0;
    width: 155px;
  }

  .logo-bar__tools {
    position: absolute;
    inset-inline-end: 14px;
    top: 0;
  }

  .brand__descriptor {
    display: none;
  }

  .brand__mark {
    width: 155px !important;
    height: auto !important;
  }

  .brand__name {
    font-size: 27px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-bottom: 8px;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    z-index: 60;
    border-bottom: 2px solid var(--color-red);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  }

  .nav-bar {
    position: relative;
    padding-top: 4px;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu > li {
    margin: 0;
  }

  .nav-menu a,
  .nav-more__btn {
    height: 46px;
    border-bottom: 1px solid #eee;
    justify-content: flex-start;
    clip-path: none;
    background: #fff;
    border-radius: 0;
  }

  .nav-menu a.is-active,
  .nav-menu a:hover,
  .nav-more__btn:hover {
    background: var(--color-red);
    color: #fff;
  }

  .nav-more__dropdown {
    position: static;
    border: 0;
    box-shadow: none;
    background: #fafafa;
  }

  .nav-more__dropdown a {
    color: #444;
    padding-inline-start: 24px;
    border-bottom-color: #eee;
  }

  .nav-date {
    display: none;
  }

  .logo-bar {
    padding: 10px 0;
  }

  .logo-bar__promo {
    display: none;
  }

  .ticker__item {
    font-size: 12.5px;
  }

  .main-content {
    padding-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track,
  .logo-bar__promo-dot,
  .badge--urgent,
  .news-card__media img,
  .hero__lead img,
  .hero__side-media img,
  .feature-card__media img {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== Bottom mobile nav ===== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 90;
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
}

.bottom-nav__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  max-width: var(--container);
  margin: 0 auto;
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-muted);
  padding: 4px;
}

.bottom-nav a svg {
  width: 20px;
  height: 20px;
}

.bottom-nav a svg path,
.bottom-nav a svg circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav a.is-active,
.bottom-nav a:hover {
  color: var(--color-red);
}

@media (max-width: 768px) {
  .bottom-nav {
    display: block;
  }

  body {
    padding-bottom: 68px;
  }

  .pro-footer {
    margin-bottom: 0;
  }

  .nav-menu a,
  .nav-more__btn,
  .nav-search-link,
  .nav-toggle {
    min-height: 44px;
  }
}
