:root {
  --accent: #08765a;
  --accent-strong: #055b45;
  --accent-soft: #edf8f4;
}

.home-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.breaking-news {
  border-bottom: 1px solid #dfe4e8;
  background: var(--accent);
  color: #fff;
}

.breaking-news__inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
  font-size: 13px;
}

.breaking-news strong {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 9px;
  background: #fff;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.breaking-news span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.home-heading h1,
.home-heading h2 {
  margin: 0;
  font-size: clamp(25px, 4vw, 38px);
  letter-spacing: -.045em;
}

.home-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: right;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.section-kicker::before {
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(240px, 1fr);
  gap: 18px;
}

.news-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(27, 39, 47, .06);
}

:root[data-theme="black"] .news-card,
:root[data-theme="black"] .live-match,
:root[data-theme="black"] .tools-panel,
:root[data-theme="black"] .tool-link {
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .22);
}

:root[data-theme="black"] .news-card p,
:root[data-theme="black"] .news-card time,
:root[data-theme="black"] .tools-panel p,
:root[data-theme="black"] .tool-link code {
  color: var(--muted);
}

.news-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  background: #dfe5e3;
}

.news-card__content {
  padding: 20px;
}

.news-card__label {
  display: inline-flex;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.news-card h2,
.news-card h3 {
  margin: 0;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.news-card h2 {
  font-size: clamp(27px, 4vw, 42px);
}

.news-card h3 {
  font-size: 20px;
}

.news-card p {
  margin: 12px 0 0;
  color: #626c77;
  font-size: 14px;
  line-height: 1.55;
}

.news-card time {
  display: block;
  margin-top: 14px;
  color: #818994;
  font-size: 11px;
  font-weight: 700;
}

.news-card--lead img {
  height: 342px;
}

.side-news {
  display: grid;
  gap: 18px;
}

.news-card--compact {
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  min-height: 206px;
}

.news-card--compact img {
  height: 100%;
}

.news-card--compact .news-card__content {
  padding: 16px;
}

.news-card--compact p {
  font-size: 12px;
}

.home-section {
  margin-top: 42px;
}

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

.live-match {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 168px;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 24px 20px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(27, 39, 47, .06);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.live-match:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(27, 39, 47, .11);
}

.live-match::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--match-accent, var(--accent));
  content: "";
}

.live-match__team {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.live-match__badge {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--badge-background);
  box-shadow: 0 0 0 1px #dce1e5;
  color: var(--badge-color, #fff);
  font-size: 12px;
  font-weight: 950;
}

.live-match__team strong {
  font-size: 12px;
}

.live-match__score {
  display: grid;
  justify-items: center;
  gap: 7px;
}

.live-match__score strong {
  font-size: 35px;
  letter-spacing: -.09em;
}

.live-match__status {
  border-radius: 999px;
  padding: 5px 8px;
  background: #ec1f2a;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.live-match__open {
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: var(--match-accent, var(--accent));
  font-size: 10px;
  font-weight: 850;
}

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

.latest-grid .news-card img {
  height: 158px;
}

.latest-grid .news-card__content {
  padding: 17px;
}

.latest-grid .news-card h3 {
  font-size: 18px;
}

.tools-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr);
  gap: 24px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, #dfe4e8);
  border-radius: 17px;
  padding: 24px;
  background: linear-gradient(135deg, var(--accent-soft), #fff);
}

.tools-panel h2 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -.035em;
}

.tools-panel p {
  margin: 9px 0 0;
  color: #5c6872;
  font-size: 13px;
  line-height: 1.55;
}

.tool-links {
  display: grid;
  gap: 9px;
}

.tool-link {
  display: grid;
  gap: 3px;
  border: 1px solid #d9e4df;
  border-radius: 11px;
  padding: 11px 13px;
  background: #fff;
  text-decoration: none;
}

.tool-link strong {
  color: var(--accent);
  font-size: 12px;
}

.tool-link code {
  overflow-wrap: anywhere;
  color: #66717b;
  font-size: 10px;
}

@media (min-width: 1300px) {
  .home-shell {
    width: min(1040px, calc(100% - 500px));
    margin-right: 0;
    margin-left: max(24px, calc((100vw - 1440px) / 2 + 24px));
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .tools-panel {
    grid-template-columns: 1fr;
  }

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

  .news-card--compact {
    grid-template-columns: 1fr;
  }

  .news-card--compact img {
    height: 190px;
  }
}

@media (max-width: 720px) {
  .home-shell,
  .breaking-news__inner {
    width: min(100% - 24px, 1180px);
  }

  .home-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .home-heading p {
    text-align: left;
  }

  .news-card--lead img {
    height: 230px;
  }

  .side-news,
  .live-match-grid,
  .latest-grid {
    grid-template-columns: 1fr;
  }

  .news-card--compact {
    grid-template-columns: 38% minmax(0, 1fr);
  }

  .news-card--compact img {
    height: 100%;
  }

  .live-match {
    min-height: 158px;
  }
}
