/* Shared editorial layout for P17–P21; visual tokens and shell come from the approved homepage. */
.page-editorial .breadcrumbs {
  padding-block: 18px 2px;
  color: var(--muted);
  font-size: calc(14px * var(--text-scale, 1));
  line-height: 1.6;
}

.page-editorial .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-editorial .breadcrumbs li + li::before {
  content: "→";
  margin-inline-end: 8px;
  color: var(--muted);
}

.page-editorial .breadcrumbs a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-editorial .breadcrumbs a:is(:hover, :focus-visible) { color: var(--yellow); }
.page-editorial .article-section { scroll-margin-top: 84px; }
.page-editorial .hero-character { width: 540px; height: 565px; right: -20px; }
.page-editorial .hero-copy { width: min(62%, 760px); }
.page-editorial .hero h1 {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: calc(42px * var(--text-scale, 1));
}
.page-editorial .hero-actions .button { max-width: 100%; }

.page-editorial .article-lead { padding-block: 28px 8px; }
.page-editorial .article-lead p {
  max-width: 980px;
  color: var(--text);
  font-size: calc(18px * var(--text-scale, 1));
  line-height: 1.65;
}

.page-editorial .article-lead p + p { margin-top: 16px; }
.page-editorial .section-content h3 {
  margin: 30px 0 14px;
  color: var(--text);
  font: 800 calc(22px * var(--text-scale, 1))/1.35 Inter, sans-serif;
}

.page-editorial .section-content h3:first-child { margin-top: 0; }
.page-editorial .section-content > p,
.page-editorial .section-content > blockquote { max-width: 980px; }
.page-editorial .section-content blockquote {
  margin: 20px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--yellow);
  border-radius: 0 12px 12px 0;
  background: var(--panel);
  overflow-wrap: anywhere;
}

.page-editorial .editorial-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
}

.page-editorial .editorial-list li {
  position: relative;
  min-width: 0;
  padding: 16px 20px 16px 56px;
  border: 1px solid #323b65;
  border-radius: 14px;
  background: linear-gradient(110deg, #171d40, var(--panel));
  color: var(--text);
  font-size: calc(16px * var(--text-scale, 1));
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.page-editorial .editorial-list li::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 22px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 224, 0, .12);
}

.page-editorial ol.editorial-list { counter-reset: editorial-step; }
.page-editorial ol.editorial-list li {
  --step-size: calc(40px * var(--text-scale, 1));
  counter-increment: editorial-step;
  min-height: calc(var(--step-size) + 36px);
  padding: 18px 20px 18px calc(38px + var(--step-size));
}
.page-editorial ol.editorial-list li::before {
  content: counter(editorial-step);
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: var(--step-size);
  height: var(--step-size);
  color: #101127;
  font-weight: 800;
  font-size: calc(16px * var(--text-scale, 1));
}

.page-editorial .article-section .table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.page-editorial .editorial-table { min-width: 680px; table-layout: auto; }
.page-editorial .editorial-table thead th {
  font-size: calc(18px * var(--text-scale, 1));
  font-weight: 800;
}

.page-editorial .editorial-table tbody th {
  font-size: calc(16px * var(--text-scale, 1));
  font-weight: 400;
}

.page-editorial .author-identity h2 {
  margin-bottom: 4px;
  color: var(--text);
  font: 800 calc(19px * var(--text-scale, 1))/normal Inter, sans-serif;
}

.page-editorial .author-identity .expert-age { margin-top: 6px; color: var(--muted); text-transform: none; }
.page-editorial #expert .author-table { min-width: 0; width: 100%; table-layout: fixed; }
.page-editorial #expert .table-wrap { overflow-x: visible; }
.page-editorial #expert .author-table th,
.page-editorial #expert .author-table td { overflow-wrap: anywhere; }

.page-editorial .editorial-contact-form {
  display: grid;
  gap: 18px;
  max-width: 720px;
  margin: 24px 0;
  padding: 24px;
  border: 1px solid #323b65;
  border-radius: 18px;
  background: linear-gradient(130deg, #171d40, var(--panel));
}

.page-editorial .editorial-contact-form .form-field { display: grid; gap: 8px; }
.page-editorial .editorial-contact-form label { color: var(--text); font-weight: 700; }
.page-editorial .editorial-contact-form input,
.page-editorial .editorial-contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #55608b;
  border-radius: 10px;
  color: var(--text);
  background: #111631;
  font: inherit;
}

.page-editorial .editorial-contact-form textarea { resize: vertical; min-height: 170px; }
.page-editorial .editorial-contact-form :is(input, textarea):focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.page-editorial .editorial-contact-form button { justify-self: start; cursor: pointer; }

@media (min-width: 981px) and (max-width: 1395px) {
  .page-editorial .hero { height: 760px; }
  .page-editorial .hero-copy { width: 56%; }
  .page-editorial .hero-character { width: 440px; height: 465px; right: -20px; }
  .page-editorial .hero h1 { font-size: calc(36px * var(--text-scale, 1)); }
}

@media (min-width: 601px) and (max-width: 980px) {
  .page-editorial .hero { height: 860px; }
  .page-editorial .hero-copy { width: auto; }
  .page-editorial .hero-character { width: 450px; height: 472px; right: auto; }
}

@media (max-width: 600px) {
  .page-editorial .hero { height: clamp(780px, calc(1160px - 100vw), 840px); }
  .page-editorial .hero-copy { width: auto; }
  .page-editorial .hero h1 { font-size: calc(27px * var(--text-scale, 1)); }
  .page-editorial .hero-character { width: 372px; height: 390px; right: auto; bottom: 4px; }
  .page-editorial ul.editorial-list li { padding-left: 45px; }
  .page-editorial ul.editorial-list li::before { left: 17px; }
  .page-editorial .editorial-table { min-width: 630px; }
  .page-editorial .editorial-contact-form { padding: 18px; }
  .page-editorial #expert .author-table { table-layout: auto; }
  .page-editorial #expert .author-table th,
  .page-editorial #expert .author-table td { padding: 10px; height: auto; }
}

.a11y-reflow .page-editorial .hero {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
  padding-bottom: 24px;
}

.a11y-reflow .page-editorial .hero-copy {
  order: 1;
  position: relative;
  inset: auto;
  width: 100%;
  max-width: 100%;
  z-index: 2;
}

.a11y-reflow .page-editorial .hero-character {
  order: 2;
  position: relative;
  inset: auto;
  transform: none;
  width: min(100%, 450px);
  height: auto;
  aspect-ratio: 1;
  margin-top: 24px;
  align-self: center;
  object-fit: contain;
  z-index: 1;
}

@media (max-width: 600px) {
  .page-editorial-responsible-gambling .trust-line {
    width: fit-content;
    max-width: 100%;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(9, 16, 42, .72);
  }
  .page-editorial-responsible-gambling .trust-line,
  .page-editorial-responsible-gambling .trust-line > span:first-of-type { color: #fff; }
}
