* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --ink: #14231f;
  --muted: #5c6f68;
  --paper: #f7f5ef;
  --panel: #ffffff;
  --line: #d9ded8;
  --green: #0b5d4d;
  --green-2: #11715f;
  --blue: #1e5d9b;
  --red: #b8333a;
  --gold: #c99a34;
  --shadow: 0 18px 45px rgba(28, 42, 38, 0.12);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 222, 216, 0.86);
  background: rgba(247, 245, 239, 0.94);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
}

.hero {
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(10, 24, 21, 0.38), rgba(10, 24, 21, 0.82)),
    image-set(
      url("../figures/simulation_tables/world_cup_2026.webp") type("image/webp"),
      url("../figures/simulation_tables/world_cup_2026.png") type("image/png")
    ) center 42% / cover no-repeat;
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 120px 0 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: #f1dfb1;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(44px, 8vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: #e8f0ec;
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-toolbox {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
  max-width: 940px;
}

.hero-tool {
  min-height: 118px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.hero-tool strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.hero-tool span {
  display: block;
  color: #edf6f2;
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.button.light {
  border-color: var(--line);
  background: #fff;
  color: var(--green);
}

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

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

.section.compact {
  padding: 38px 0;
}

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

.section-head h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-head p,
.page-title p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

.card {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-media {
  aspect-ratio: 16 / 9;
  background: #e5ebe6;
  overflow: hidden;
}

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

.card-body {
  padding: 20px;
}

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

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.card a {
  text-decoration: none;
}

.metric {
  padding: 20px;
  border-left: 4px solid var(--green);
}

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

.stat-card {
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.stat-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.stat-card strong {
  display: block;
  color: var(--green);
  font-size: 24px;
  line-height: 1.2;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: #f1f5f0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.data-table .is-highlight td {
  background: #fff8e5;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.related-links a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  font-size: 30px;
  color: var(--green);
}

.key-takeaway {
  padding: 18px 20px;
  border: 1px solid #ead8a7;
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: #fff8e5;
  color: #4e4022;
}

.key-takeaway h2,
.key-takeaway h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.key-takeaway p {
  margin: 0;
  color: #4e4022;
}

.latest-update-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 16px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #dce7ef;
  border-radius: 8px;
  background: #f8fbff;
  color: #24364a;
}

.latest-update-card span {
  display: block;
  margin-bottom: 5px;
  color: #678099;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.latest-update-card strong {
  display: block;
  color: #0b5d4d;
  font-size: 18px;
  line-height: 1.35;
}

.latest-update-card p {
  margin: 0;
  color: #4d6276;
  line-height: 1.65;
}

.takeaway-grid,
.trust-grid,
.compare-grid,
.popular-grid {
  display: grid;
  gap: 14px;
}

.takeaway-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

.takeaway-item,
.trust-card,
.popular-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.takeaway-item span,
.trust-card span,
.popular-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.takeaway-item strong,
.trust-card strong,
.popular-card strong {
  display: block;
  color: var(--green);
  font-size: 18px;
  line-height: 1.35;
}

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

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

.popular-card {
  min-height: 150px;
  text-decoration: none;
}

.popular-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.compare-tool {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.compare-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.compare-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.compare-controls select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

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

.compare-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
  padding: 16px;
}

.compare-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
}

.compare-card strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.25;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.risk-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e7efe9;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.risk-tag.warn {
  background: #fff1d6;
  color: #8a5b00;
}

.risk-tag.hot {
  background: #ffe5e7;
  color: var(--red);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.pill-list li {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #35564e;
  font-size: 13px;
  font-weight: 700;
}

.page-hero {
  background:
    linear-gradient(180deg, rgba(247, 245, 239, 0.9), rgba(247, 245, 239, 1)),
    url("../assets/site-logo.png") right 22% top 36px / min(460px, 58vw) auto no-repeat;
}

.page-title {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0 46px;
}

.article {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 72px;
}

.article h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
}

.article h2 {
  margin: 38px 0 12px;
  font-size: 28px;
}

.article p,
.article li {
  color: #415b54;
  font-size: 17px;
  line-height: 1.9;
}

.article-meta {
  margin: 16px 0 28px;
  color: var(--muted);
  font-weight: 700;
}

.quote {
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  background: #fffaf0;
  color: #4e4022;
  line-height: 1.8;
}

.notice {
  padding: 14px 16px;
  border: 1px solid #ead8a7;
  border-radius: 8px;
  background: #fff8e5;
  color: #5c4818;
  line-height: 1.75;
}

@media (max-width: 860px) {
  .nav {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
    background-position: center top;
  }

  .hero-inner {
    padding: 72px 0 46px;
  }

  .hero h1 {
    font-size: clamp(36px, 9vw, 52px);
    line-height: 1.04;
  }

  .hero p {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.62;
  }

  .hero-actions {
    margin-top: 22px;
    gap: 10px;
  }

  .hero-toolbox {
    gap: 9px;
    margin-top: 20px;
  }

  .hero-tool {
    min-height: auto;
    padding: 13px 14px;
  }

  .hero-tool strong {
    margin-bottom: 5px;
    font-size: 16px;
  }

  .hero-tool span {
    font-size: 14px;
    line-height: 1.45;
  }

  .section-head {
    display: block;
  }

  .grid.cols-3,
  .grid.cols-4,
  .hero-toolbox,
  .takeaway-grid,
  .trust-grid,
  .popular-grid,
  .compare-grid,
  .compare-controls,
  .stat-grid,
  .latest-update-card {
    grid-template-columns: 1fr;
  }

  .page-hero {
    background-size: 280px auto;
    background-position: right -48px top 34px;
  }
}

/* Production navigation and trust footer */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #e7edf5;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 26px rgba(18, 32, 54, 0.06);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1280px, calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #1d2a3a;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.18);
}

.nav-center,
.nav-actions {
  display: flex;
  align-items: center;
}

.nav-center {
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.nav-actions {
  justify-content: flex-end;
  gap: 12px;
}

.nav-center a,
.nav-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #5a687d;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.nav-center a:hover,
.nav-center a.active {
  background: #eef5ff;
  color: #2563eb;
}

.nav-actions .cta {
  min-height: 42px;
  padding: 10px 16px;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.nav-actions .cta:hover {
  background: #1d4ed8;
  color: #fff;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.language-label {
  color: #7a8699;
  font-size: 13px;
  font-weight: 800;
}

.language-switch select {
  min-height: 40px;
  max-width: 154px;
  padding: 8px 34px 8px 12px;
  border: 1px solid #d8e1ee;
  border-radius: 8px;
  background: #f8fbff;
  color: #26364b;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
}

.quick-links-band {
  border-top: 1px solid #e6edf5;
  background: #f7faff;
}

.quick-links-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 38px;
}

.quick-links-inner h2 {
  margin: 0 0 16px;
  color: #172136;
  font-size: 24px;
  line-height: 1.15;
}

.quick-links-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.quick-links-list a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid #e2eaf4;
  border-radius: 8px;
  background: #fff;
  color: #2563eb;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(30, 45, 68, 0.05);
}

.quick-links-list a:hover {
  border-color: #bfd5ff;
  background: #f4f8ff;
}

.site-footer {
  border-top: 0;
  width: auto;
  margin: 0;
  padding: 0;
  background: #1f2b3a;
  color: #c8d2df;
  font-size: inherit;
}

.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0;
  display: block;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.15fr) minmax(180px, 0.8fr) minmax(280px, 1fr);
  gap: 58px;
  padding: 42px 0 48px;
}

.footer-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 20px;
  font-weight: 850;
  text-decoration: none;
}

.footer-brand-lockup img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.footer-brand-block p,
.footer-trust p {
  margin: 18px 0 0;
  color: #9dacbe;
  line-height: 1.8;
}

.footer-col h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 18px;
}

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

.footer-links a,
.footer-bottom a {
  color: #cbd5e1;
  text-decoration: none;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0 28px;
  border-top: 1px solid rgba(203, 213, 225, 0.18);
  color: #9dacbe;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.footer-language {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 0 0 30px;
  color: #9dacbe;
  font-size: 14px;
}

.footer-language span {
  color: #cbd5e1;
  font-weight: 800;
}

.footer-language a {
  color: #cbd5e1;
  text-decoration: none;
}

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

@media (max-width: 980px) {
  .nav {
    width: min(100% - 28px, 1280px);
    grid-template-columns: 1fr auto;
    gap: 10px 14px;
    padding: 12px 0;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .nav-center {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .nav-center::-webkit-scrollbar {
    display: none;
  }

  .nav-actions {
    grid-column: 2;
    grid-row: 1;
    gap: 8px;
  }

  .quick-links-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 30px;
  }
}

@media (max-width: 620px) {
  .nav {
    width: min(100% - 24px, 1280px);
    gap: 8px 10px;
    padding: 10px 0;
  }

  .brand {
    min-width: 0;
    gap: 9px;
    font-size: 16px;
  }

  .brand span {
    max-width: 86px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .language-label {
    display: none;
  }

  .language-switch select {
    width: 92px;
    max-width: 92px;
    min-height: 36px;
    padding: 7px 22px 7px 8px;
    font-size: 13px;
  }

  .nav-center {
    gap: 6px;
  }

  .nav-center a {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 14px;
  }

  .nav-actions .cta {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .hero {
    background-position: center top;
  }

  .hero-inner {
    width: min(100% - 28px, 1180px);
    padding: 42px 0 30px;
  }

  .hero .eyebrow {
    margin-bottom: 10px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .hero p {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.5;
  }

  .hero-actions {
    margin-top: 16px;
  }

  .button {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 14px;
  }

  .hero-toolbox {
    margin-top: 14px;
    gap: 8px;
  }

  .hero-tool {
    padding: 11px 12px;
  }

  .hero-tool span {
    font-size: 13px;
    line-height: 1.4;
  }

  .quick-links-inner,
  .footer-inner {
    width: min(100% - 28px, 1180px);
  }

  .footer-bottom {
    display: grid;
  }

  .footer-bottom nav {
    justify-content: flex-start;
  }

  .footer-language {
    padding-bottom: 26px;
  }
}
