:root {
  --cm-bg: #071217;
  --cm-bg-soft: #0d1d23;
  --cm-surface: #13262d;
  --cm-surface-light: #f7f4ec;
  --cm-white: #f8fafc;
  --cm-text: #16252b;
  --cm-muted: #66767d;
  --cm-muted-dark: #b4c0c4;
  --cm-teal: #22b8a7;
  --cm-teal-dark: #0b8278;
  --cm-gold: #e4ad48;
  --cm-border: rgba(255, 255, 255, 0.12);
  --cm-radius: 24px;
  --cm-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  background: var(--cm-bg);
}

.cm-site,
.cm-gateway {
  min-height: 100vh;
  margin: 0;
  color: var(--cm-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cm-site *,
.cm-gateway * {
  box-sizing: border-box;
}

.cm-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.cm-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 18, 23, 0.9);
  backdrop-filter: blur(16px);
}

.cm-header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cm-brand,
.cm-header a,
.cm-footer a {
  text-decoration: none;
}

.cm-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cm-white);
}

.cm-app-icon {
  width: 39px;
  height: 39px;
  display: block;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.22);
}

.cm-brand-name,
.cm-footer-brand {
  font-size: 1.2rem;
  font-weight: 850;
  letter-spacing: -0.025em;
}

.cm-nav,
.cm-header-actions,
.cm-language-switcher,
.cm-footer-links {
  display: flex;
  align-items: center;
}

.cm-nav {
  gap: 22px;
}

.cm-nav a,
.cm-author-link,
.cm-language-switcher a {
  color: rgba(248, 250, 252, 0.78);
  font-size: 0.92rem;
  font-weight: 650;
}

.cm-nav a:hover,
.cm-author-link:hover,
.cm-language-switcher a:hover,
.cm-language-switcher .is-active {
  color: var(--cm-white);
}

.cm-header-actions {
  gap: 18px;
}

.cm-author-link {
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.cm-language-switcher {
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.36);
}

.cm-language-switcher .is-active {
  font-weight: 850;
}

.cm-hero {
  position: relative;
  overflow: hidden;
  color: var(--cm-white);
  background:
    radial-gradient(circle at 75% 28%, rgba(34, 184, 167, 0.19), transparent 30%),
    radial-gradient(circle at 15% 20%, rgba(228, 173, 72, 0.09), transparent 28%),
    linear-gradient(145deg, #071217 0%, #0a2025 58%, #071217 100%);
}

.cm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.cm-hero-grid {
  position: relative;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: 70px;
  padding-top: 74px;
  padding-bottom: 82px;
}

.cm-eyebrow {
  margin-bottom: 17px;
  color: var(--cm-teal-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.cm-hero .cm-eyebrow,
.cm-section-heading.is-on-dark .cm-eyebrow {
  color: #6ce0d2;
}

.cm-hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3rem, 5.4vw, 5.45rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.cm-hero-lead {
  max-width: 60ch;
  margin: 26px 0 0;
  color: rgba(248, 250, 252, 0.78);
  font-size: 1.1rem;
  line-height: 1.8;
}

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

.cm-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.cm-button:hover {
  transform: translateY(-2px);
}

.cm-button-primary {
  color: #06201e;
  background: var(--cm-teal);
  box-shadow: 0 14px 34px rgba(34, 184, 167, 0.2);
}

.cm-button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--cm-white);
  background: rgba(255, 255, 255, 0.04);
}

.cm-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 30px;
}

.cm-stat {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: rgba(248, 250, 252, 0.78);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.82rem;
  font-weight: 700;
}

.cm-preview-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.cm-phone {
  position: relative;
  z-index: 2;
  width: min(100%, 390px);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 42px;
  background: #050b0d;
  box-shadow: 0 42px 100px rgba(0, 0, 0, 0.5);
  transform: rotate(1.5deg);
}

.cm-phone::after {
  content: "";
  position: absolute;
  inset: 7px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 35px;
}

.cm-phone-speaker {
  width: 76px;
  height: 5px;
  margin: 5px auto 13px;
  border-radius: 999px;
  background: #202b2f;
}

.cm-app-bar,
.cm-match-list,
.cm-preview-button {
  position: relative;
  z-index: 1;
}

.cm-app-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 15px 14px;
  border-radius: 25px 25px 13px 13px;
  background: #102229;
}

.cm-app-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #06201e;
  background: var(--cm-teal);
  font-size: 0.68rem;
  font-weight: 900;
}

.cm-app-title {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cm-app-title strong {
  overflow: hidden;
  color: var(--cm-white);
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cm-app-title span {
  color: var(--cm-muted-dark);
  font-size: 0.74rem;
}

.cm-live-pill {
  padding: 6px 8px;
  border-radius: 999px;
  color: #8df0e4;
  background: rgba(34, 184, 167, 0.13);
  font-size: 0.68rem;
  font-weight: 800;
}

.cm-match-list {
  display: grid;
  gap: 10px;
  padding: 12px 2px;
}

.cm-match-card,
.cm-rest-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 17px;
  background: #101c21;
}

.cm-match-card {
  padding: 13px;
}

.cm-match-meta,
.cm-match-teams,
.cm-rest-card {
  display: flex;
  align-items: center;
}

.cm-match-meta {
  justify-content: space-between;
  margin-bottom: 10px;
  color: #8fa0a6;
  font-size: 0.7rem;
  font-weight: 750;
  text-transform: uppercase;
}

.cm-match-status {
  color: var(--cm-teal);
}

.cm-match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  color: var(--cm-white);
  font-size: 0.78rem;
  line-height: 1.35;
}

.cm-match-teams strong:last-child {
  text-align: right;
}

.cm-score {
  padding: 6px 8px;
  border-radius: 9px;
  color: var(--cm-gold);
  background: rgba(228, 173, 72, 0.09);
  font-size: 0.76rem;
  font-weight: 900;
}

.cm-rest-card {
  justify-content: space-between;
  gap: 14px;
  padding: 12px 13px;
  color: #8fa0a6;
  font-size: 0.72rem;
}

.cm-rest-card strong {
  color: #dbe4e7;
}

.cm-preview-button {
  margin: 0 2px 3px;
  padding: 14px;
  border-radius: 14px 14px 24px 24px;
  color: #06201e;
  background: var(--cm-teal);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 900;
}

.cm-preview-orbit {
  position: absolute;
  border: 1px solid rgba(34, 184, 167, 0.2);
  border-radius: 50%;
}

.cm-preview-orbit-one {
  width: 490px;
  height: 490px;
}

.cm-preview-orbit-two {
  width: 590px;
  height: 590px;
  border-color: rgba(228, 173, 72, 0.1);
}

.cm-section {
  padding: 100px 0;
}

.cm-section-light,
.cm-section-store {
  background: var(--cm-surface-light);
}

.cm-section-heading {
  max-width: 760px;
  margin-bottom: 46px;
}

.cm-section-heading h2 {
  margin: 0;
  color: var(--cm-text);
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.cm-section-heading p {
  max-width: 66ch;
  margin: 20px 0 0;
  color: var(--cm-muted);
  font-size: 1.04rem;
  line-height: 1.8;
}

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

.cm-feature-card {
  padding: 28px;
  border: 1px solid #dde2de;
  border-radius: var(--cm-radius);
  background: #fff;
  box-shadow: 0 14px 38px rgba(19, 38, 45, 0.055);
}

.cm-feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 14px;
  color: #063c37;
  background: #dff7f3;
  font-size: 0.86rem;
  font-weight: 900;
}

.cm-feature-card h3,
.cm-offline-card h3 {
  margin: 0;
  font-size: 1.18rem;
  letter-spacing: -0.025em;
}

.cm-feature-card p,
.cm-offline-card p {
  margin: 12px 0 0;
  color: var(--cm-muted);
  line-height: 1.7;
}

.cm-section-dark {
  color: var(--cm-white);
  background:
    radial-gradient(circle at 12% 20%, rgba(34, 184, 167, 0.12), transparent 30%),
    linear-gradient(140deg, #071217, #0b2026);
}

.cm-format-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: 76px;
}

.cm-section-heading.is-on-dark h2 {
  color: var(--cm-white);
}

.cm-section-heading.is-on-dark p {
  color: var(--cm-muted-dark);
}

.cm-format-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cm-format-pills span {
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #d8e2e5;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.86rem;
  font-weight: 700;
}

.cm-offline-card {
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: var(--cm-shadow);
}

.cm-offline-symbol {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 18px;
  color: #06201e;
  background: var(--cm-teal);
  font-size: 1.4rem;
  font-weight: 900;
}

.cm-offline-card p {
  color: var(--cm-muted-dark);
}

.cm-section-store {
  border-bottom: 1px solid #e2e3dd;
}

.cm-store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 760px;
}

.cm-store-card {
  position: relative;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 30px;
  border: 1px solid #d9dfdb;
  border-radius: var(--cm-radius);
  background: #fff;
}

.cm-store-card img {
  width: auto;
  max-width: 210px;
  height: 58px;
  opacity: 0.48;
  filter: grayscale(1);
}

.cm-store-card small {
  color: var(--cm-muted);
  text-align: center;
}

.cm-coming-soon {
  position: absolute;
  top: 13px;
  right: 13px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #765008;
  background: #fff0cd;
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.cm-section-languages {
  background: #eef3ef;
}

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

.cm-language-grid span {
  padding: 12px 13px;
  border: 1px solid #d6dfd9;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

.cm-footer {
  color: var(--cm-muted-dark);
  background: #050d10;
}

.cm-footer-inner {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-top: 32px;
  padding-bottom: 32px;
}

.cm-footer-brand {
  color: var(--cm-white);
}

.cm-footer p {
  margin: 7px 0 0;
}

.cm-footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.cm-footer a {
  color: var(--cm-muted-dark);
}

.cm-footer a:hover {
  color: var(--cm-white);
}

.cm-gateway {
  display: grid;
  place-items: center;
  padding: 30px;
  color: var(--cm-white);
  background:
    radial-gradient(circle at 50% 38%, rgba(34, 184, 167, 0.18), transparent 32%),
    var(--cm-bg);
}

.cm-gateway-card {
  width: min(520px, 100%);
  padding: 46px;
  border: 1px solid var(--cm-border);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--cm-shadow);
  text-align: center;
}

.cm-gateway-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
}

.cm-gateway h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 4rem);
  letter-spacing: -0.045em;
}

.cm-gateway p {
  margin: 16px 0 0;
  color: var(--cm-muted-dark);
  line-height: 1.7;
}

.cm-gateway-links {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.cm-gateway-links a {
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  color: var(--cm-white);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  font-weight: 750;
}

.cm-gateway-links a:hover {
  border-color: var(--cm-teal);
}

@media (max-width: 980px) {
  .cm-nav {
    display: none;
  }

  .cm-hero-grid,
  .cm-format-grid {
    grid-template-columns: 1fr;
  }

  .cm-hero-grid {
    gap: 58px;
    padding-top: 72px;
  }

  .cm-hero-copy {
    max-width: 760px;
  }

  .cm-preview-wrap {
    padding-bottom: 20px;
  }

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

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

@media (max-width: 680px) {
  .cm-shell {
    width: min(calc(100% - 28px), 1160px);
  }

  .cm-header-inner {
    min-height: 68px;
    gap: 12px;
  }

  .cm-brand-name,
  .cm-author-link {
    display: none;
  }

  .cm-header-actions {
    gap: 8px;
  }

  .cm-hero-grid {
    min-height: auto;
    padding-top: 58px;
    padding-bottom: 64px;
  }

  .cm-hero h1 {
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

  .cm-phone {
    width: min(100%, 360px);
    transform: none;
  }

  .cm-preview-orbit-one {
    width: 390px;
    height: 390px;
  }

  .cm-preview-orbit-two {
    display: none;
  }

  .cm-section {
    padding: 72px 0;
  }

  .cm-feature-grid,
  .cm-store-grid {
    grid-template-columns: 1fr;
  }

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

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

  .cm-footer-links {
    justify-content: flex-start;
  }

  .cm-gateway-card {
    padding: 34px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cm-button {
    transition: none;
  }
}


.cm-footer a[aria-current="page"] {
  color: var(--cm-white);
  text-decoration-color: var(--cm-teal);
  text-underline-offset: 4px;
}

.cm-document-page {
  min-height: 70vh;
  color: var(--cm-text);
  background: #eef3ef;
}

.cm-document-hero {
  padding: 72px 0 58px;
  color: var(--cm-white);
  background:
    radial-gradient(
      circle at 85% 4%,
      rgba(34, 184, 167, 0.12),
      transparent 26%
    ),
    linear-gradient(
      180deg,
      #071419 0%,
      #0b2026 100%
    );
}

.cm-document-back {
  display: inline-flex;
  margin-bottom: 30px;
  color: #8feade;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
}

.cm-document-back:hover {
  color: var(--cm-white);
}

.cm-document-heading {
  max-width: 900px;
}

.cm-document-heading h1 {
  max-width: 15ch;
  margin: 0;
  color: var(--cm-white);
  font-size: clamp(2.75rem, 6vw, 5.2rem);
  line-height: 0.99;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.cm-document-intro {
  max-width: 72ch;
  margin: 24px 0 0;
  color: rgba(248, 250, 252, 0.78);
  font-size: 1.06rem;
  line-height: 1.8;
}

.cm-document-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 28px;
  color: var(--cm-muted-dark);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.5;
}

.cm-document-meta a {
  color: #8feade;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .cm-document-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

.cm-document-content {
  padding: 0 0 96px;
}

.cm-document-grid {
  display: grid;
  gap: 16px;
}

.cm-document-card {
  padding: 30px 32px 27px;
  border: 1px solid #d7e0da;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 42px rgba(17, 38, 45, 0.07);
}

.cm-document-card h2 {
  margin: 0 0 14px;
  color: #12313a;
  font-size: clamp(1.2rem, 2vw, 1.48rem);
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.cm-document-card p {
  margin: 0 0 11px;
  color: #4d6067;
  line-height: 1.78;
}

.cm-document-card p:last-child {
  margin-bottom: 0;
}

.cm-document-card ul {
  margin: 14px 0 0 1.2rem;
  padding: 0;
  color: #4d6067;
  line-height: 1.75;
}

.cm-document-card li + li {
  margin-top: 7px;
}

@media (max-width: 680px) {
  .cm-document-hero {
    padding: 48px 0 42px;
  }

  .cm-document-heading h1 {
    font-size: clamp(2.35rem, 12vw, 3.6rem);
  }

  .cm-document-content {
    padding-bottom: 68px;
  }

  .cm-document-card {
    padding: 24px 21px 21px;
    border-radius: 19px;
  }
}

/* Pass 3: full ClubMode localisation. */
.cm-language-menu {
  position: relative;
  color: var(--cm-white);
}

.cm-language-menu summary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(248, 250, 252, 0.88);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 750;
  list-style: none;
  white-space: nowrap;
}

.cm-language-menu summary::-webkit-details-marker {
  display: none;
}

.cm-language-menu summary::after {
  content: "⌄";
  margin-inline-start: 2px;
  color: rgba(248, 250, 252, 0.58);
  transition: transform 150ms ease;
}

.cm-language-menu[open] summary::after {
  transform: rotate(180deg);
}

.cm-language-menu-icon {
  color: #69e1d3;
  font-size: 0.82rem;
}

.cm-language-menu-panel {
  position: absolute;
  inset-block-start: calc(100% + 10px);
  inset-inline-end: 0;
  z-index: 120;
  width: min(430px, calc(100vw - 28px));
  max-height: min(560px, calc(100vh - 100px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  padding: 10px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(7, 18, 23, 0.98);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.cm-language-menu-panel a {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 11px;
  color: rgba(248, 250, 252, 0.78);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
}

.cm-language-menu-panel a:hover,
.cm-language-menu-panel a.is-active {
  color: var(--cm-white);
  background: rgba(34, 184, 167, 0.13);
}

.cm-language-menu-panel a.is-active {
  box-shadow: inset 0 0 0 1px rgba(93, 226, 210, 0.27);
}

.cm-language-menu-panel small {
  color: rgba(248, 250, 252, 0.42);
  font-size: 0.67rem;
  font-weight: 700;
  direction: ltr;
}

.cm-gateway-card {
  width: min(760px, 100%);
}

.cm-gateway-language-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.cm-gateway-language-grid a {
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 9px;
  text-align: center;
}

.cm-store-card img {
  max-width: min(250px, 100%);
  height: auto;
}

/* Use logical properties so the same layout mirrors cleanly in RTL. */
.cm-author-link {
  padding-left: 0;
  border-left: 0;
  padding-inline-start: 18px;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.14);
}

.cm-match-teams strong:last-child {
  text-align: end;
}

.cm-footer-links {
  justify-content: flex-end;
}

[dir="rtl"] .cm-site,
[dir="rtl"] .cm-gateway {
  direction: rtl;
}

[dir="rtl"] .cm-preview-wrap,
[dir="rtl"] .cm-phone,
[dir="rtl"] .cm-store-card img {
  direction: ltr;
}

[dir="rtl"] .cm-document-card ul {
  margin-left: 0;
  margin-right: 1.2rem;
}

[dir="rtl"] .cm-document-back {
  direction: rtl;
}

[dir="rtl"] .cm-footer-links {
  justify-content: flex-start;
}

/* Script-aware font stacks and line-breaking. */
html:lang(ar) .cm-site,
html:lang(ar) .cm-gateway {
  font-family: "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}

html:lang(he) .cm-site,
html:lang(he) .cm-gateway {
  font-family: "Noto Sans Hebrew", Arial, sans-serif;
}

html:lang(ja) .cm-site,
html:lang(ja) .cm-gateway {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

html:lang(ko) .cm-site,
html:lang(ko) .cm-gateway {
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

html:lang(zh-Hans) .cm-site,
html:lang(zh-Hans) .cm-gateway {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html:lang(zh-Hant) .cm-site,
html:lang(zh-Hant) .cm-gateway {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

html:lang(ar) .cm-hero h1,
html:lang(ar) .cm-section-heading h2,
html:lang(ar) .cm-document-heading h1,
html:lang(he) .cm-hero h1,
html:lang(he) .cm-section-heading h2,
html:lang(he) .cm-document-heading h1,
html:lang(ja) .cm-hero h1,
html:lang(ja) .cm-section-heading h2,
html:lang(ja) .cm-document-heading h1,
html:lang(ko) .cm-hero h1,
html:lang(ko) .cm-section-heading h2,
html:lang(ko) .cm-document-heading h1,
html:lang(zh-Hans) .cm-hero h1,
html:lang(zh-Hans) .cm-section-heading h2,
html:lang(zh-Hans) .cm-document-heading h1,
html:lang(zh-Hant) .cm-hero h1,
html:lang(zh-Hant) .cm-section-heading h2,
html:lang(zh-Hant) .cm-document-heading h1 {
  letter-spacing: 0;
}

html:lang(ja) .cm-site,
html:lang(ko) .cm-site,
html:lang(zh-Hans) .cm-site,
html:lang(zh-Hant) .cm-site {
  line-break: strict;
  word-break: normal;
  overflow-wrap: anywhere;
}

html:lang(ja) .cm-eyebrow,
html:lang(ko) .cm-eyebrow,
html:lang(zh-Hans) .cm-eyebrow,
html:lang(zh-Hant) .cm-eyebrow {
  letter-spacing: 0.035em;
}

@media (max-width: 780px) {
  .cm-language-menu summary span:not(.cm-language-menu-icon) {
    display: none;
  }

  .cm-language-menu summary::after {
    display: none;
  }

  .cm-language-menu-panel {
    position: fixed;
    inset-block-start: 76px;
    inset-inline: 14px;
    width: auto;
    max-height: calc(100vh - 96px);
  }

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

@media (max-width: 460px) {
  .cm-language-menu-panel {
    grid-template-columns: 1fr;
  }

  .cm-gateway-language-grid {
    grid-template-columns: 1fr;
  }
}

html:lang(ar) .cm-eyebrow,
html:lang(he) .cm-eyebrow {
  letter-spacing: 0;
  text-transform: none;
}

html:lang(ar) .cm-hero h1,
html:lang(he) .cm-hero h1 {
  max-width: 18ch;
  line-height: 1.08;
}

html:lang(ja) .cm-hero h1,
html:lang(ko) .cm-hero h1,
html:lang(zh-Hans) .cm-hero h1,
html:lang(zh-Hant) .cm-hero h1 {
  max-width: 15ch;
  line-height: 1.08;
}
