:root {
  --red: #d71920;
  --red-dark: #a80f16;
  --ink: #181818;
  --muted: #666f7a;
  --line: #e2e6ea;
  --paper: #ffffff;
  --page: #f2f3f5;
  --teal: #027c89;
  --gold: #d8a63b;
  --blue: #1457a8;
  --shadow: 0 14px 34px rgba(18, 24, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.58;
}

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

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

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
}

.skip-link:focus {
  top: 14px;
}

.topbar {
  background: var(--red);
  color: #fff;
  font-size: 13px;
}

.topbar__inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar a {
  color: #fff;
  font-weight: 800;
  margin-left: auto;
}

.masthead {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  min-height: 126px;
  display: grid;
  grid-template-columns: 178px 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 18px 0;
}

.brand {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.brand img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.site-title h1 {
  margin: 0;
  color: var(--red);
  font-size: 42px;
  line-height: 1;
}

.site-title p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 680px;
}

.actions,
.article-actions,
.cta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 9px 16px;
  font-size: 15px;
  font-weight: 900;
}

.btn--primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.btn--primary:hover {
  background: var(--red-dark);
  color: #fff;
}

.btn--ghost {
  background: #fff;
  color: var(--red);
  border-color: var(--red);
}

.nav {
  background: #111;
  color: #fff;
  border-bottom: 4px solid var(--red);
}

.nav__inner {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav__inner::-webkit-scrollbar {
  display: none;
}

.nav a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  padding: 0 15px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.nav a:hover {
  background: var(--red);
  color: #fff;
}

.hotline {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.hotline__inner {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.hotline__inner::-webkit-scrollbar {
  display: none;
}

.hotline strong {
  color: var(--red);
  text-transform: uppercase;
}

.hotline a {
  color: var(--muted);
  white-space: nowrap;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding: 28px 0 42px;
}

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

.headline {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.headline img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.headline__body {
  padding: 20px;
}

.kicker,
.section-title span,
.tag {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.headline h2 {
  margin: 8px 0 10px;
  font-size: 34px;
  line-height: 1.12;
}

.headline p,
.story-card p,
.panel p,
.article-body p,
.article-body li {
  color: var(--muted);
}

.meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #7a828b;
  font-size: 13px;
}

.main-other,
.panel,
.story-card,
.side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.main-other {
  padding: 18px;
}

.main-other h2,
.panel h2 {
  margin: 0 0 14px;
  font-size: 21px;
}

.main-other ol,
.popular ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: item;
}

.main-other li,
.popular li {
  counter-increment: item;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.main-other li:first-child,
.popular li:first-child {
  border-top: 0;
}

.main-other li::before,
.popular li::before {
  content: counter(item);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-weight: 900;
}

.main-other a,
.popular a {
  font-weight: 900;
  line-height: 1.36;
}

.section-title {
  margin: 28px 0 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 3px solid var(--red);
  padding-bottom: 8px;
}

.section-title h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

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

.story-card {
  overflow: hidden;
}

.story-card[hidden] {
  display: none;
}

.story-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.story-card__body {
  padding: 15px;
}

.tag {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 2px 8px;
  border-radius: 5px;
  background: #ffe5e7;
}

.tag--teal {
  color: var(--teal);
  background: #dff8f7;
}

.tag--gold {
  color: #7a4d00;
  background: #fff0c8;
}

.tag--blue {
  color: var(--blue);
  background: #e3edff;
}

.story-card h3 {
  margin: 9px 0;
  font-size: 20px;
  line-height: 1.28;
}

.story-card p {
  margin: 0 0 12px;
  font-size: 14px;
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
}

.panel {
  padding: 18px;
}

.search-panel label {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.search-panel input {
  width: 100%;
  min-height: 44px;
  border-radius: 6px;
  border: 1px solid var(--line);
  padding: 0 12px;
  font: inherit;
}

.topic-list {
  display: grid;
  gap: 9px;
}

.topic-list a {
  min-height: 38px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-weight: 900;
}

.topic-list a:last-child {
  border-bottom: 0;
}

.feature-band {
  background: #151515;
  color: #fff;
  padding: 42px 0;
}

.feature-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.feature-band h2 {
  margin: 6px 0 12px;
  font-size: 36px;
  line-height: 1.15;
}

.feature-band p {
  color: #d9d9d9;
}

.quick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.quick-list li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 13px 14px;
}

.latest-list {
  display: grid;
  gap: 14px;
}

.side-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  overflow: hidden;
}

.side-card img {
  width: 100%;
  height: 100%;
  min-height: 130px;
  object-fit: cover;
}

.side-card__body {
  padding: 14px 14px 14px 0;
}

.side-card h3 {
  margin: 8px 0;
  font-size: 21px;
  line-height: 1.25;
}

.faq-section {
  padding: 42px 0;
  background: #fff;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  background: #fbfbfc;
}

summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 900;
}

details p {
  margin: 0 0 16px;
  color: var(--muted);
}

.site-footer {
  background: #111;
  color: #dfdfdf;
  padding: 32px 0 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 26px;
}

.footer-grid img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 10px;
  color: #fff;
}

.footer-grid p {
  max-width: 520px;
  margin: 0;
  color: #bfc4c9;
}

.footer-grid a {
  display: block;
  color: #dfdfdf;
  margin: 7px 0;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: #bfc4c9;
  font-size: 14px;
}

.article-page {
  background: #fff;
}

.article-hero {
  padding: 34px 0 24px;
  background: linear-gradient(180deg, #ffffff, #f4f5f7);
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
}

.article-hero h1 {
  margin: 8px 0 10px;
  max-width: 860px;
  font-size: 44px;
  line-height: 1.12;
}

.article-hero p {
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
}

.article-body {
  width: min(830px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 46px;
}

.article-body img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin-bottom: 22px;
}

.article-body h2 {
  margin: 28px 0 10px;
  font-size: 27px;
  line-height: 1.2;
}

.article-body p,
.article-body li {
  font-size: 17px;
}

.article-body ul {
  padding-left: 22px;
}

.article-actions {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 22px;
}

@media (max-width: 980px) {
  .masthead__inner,
  .layout,
  .hero-grid,
  .feature-band__inner {
    grid-template-columns: 1fr;
  }

  .masthead__inner {
    gap: 14px;
  }

  .brand {
    width: 170px;
  }

  .actions {
    justify-content: flex-start;
  }

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

@media (max-width: 680px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .topbar a {
    margin-left: 0;
  }

  .site-title h1 {
    font-size: 34px;
  }

  .headline h2 {
    font-size: 28px;
  }

  .section-title h2,
  .feature-band h2 {
    font-size: 27px;
  }

  .story-grid,
  .footer-grid,
  .side-card {
    grid-template-columns: 1fr;
  }

  .side-card__body {
    padding: 15px;
  }

  .article-hero h1 {
    font-size: 32px;
  }

  .btn {
    flex: 1 1 120px;
  }
}
