/* ON360 — commercial longform pages (page-commercial.php + online-casinos hub).
   Uses the theme's --on360-* tokens. Class prefix on360-. */

.on360-commercial { max-width: 1040px; margin: 0 auto; padding: 8px 48px 20px; }
.on360-commercial__head { padding-top: 14px; border-bottom: 1px solid var(--on360-border); padding-bottom: 26px; margin-bottom: 30px; }
.on360-commercial__badge { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.on360-commercial h1 {
  margin: 0; font-size: 46px; line-height: 1.05; letter-spacing: -0.038em; font-weight: 800; max-width: 20ch;
}
.on360-commercial__meta {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--on360-muted-2);
  margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 14px;
}
.on360-commercial__meta span { white-space: nowrap; }
.on360-commercial .on360-disclosure { margin-top: 22px; max-width: 640px; }

/* toplist placeholder marker slot (empty until a ranked list is wired in) */
.on360-longform .on360-toplist-slot { margin: 26px 0; }

/* ---- longform body ---- */
.on360-longform { color: var(--on360-ink-soft); font-size: 18.5px; }
.on360-longform > p,
.on360-longform > ul,
.on360-longform > ol {
  font-family: var(--font-serif); font-size: 18.5px; line-height: 1.68; color: var(--on360-ink-soft);
  margin: 0 0 20px;
}
.on360-longform > h2 {
  font-family: var(--font-sans); font-size: 27px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15;
  color: var(--on360-ink); margin: 42px 0 14px; padding-top: 20px; border-top: 1px solid var(--on360-border);
}
.on360-longform > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.on360-longform h3 {
  font-family: var(--font-sans); font-size: 19.5px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3;
  color: var(--on360-ink); margin: 26px 0 10px;
}
.on360-longform a { color: var(--on360-red); text-decoration: underline; text-underline-offset: 2px; }
.on360-longform a:hover { color: var(--on360-ink); }
.on360-longform strong { font-weight: 700; color: var(--on360-ink); }
.on360-longform ul, .on360-longform ol { padding-left: 22px; }
.on360-longform li { margin-bottom: 9px; }
.on360-longform blockquote {
  margin: 22px 0; padding: 6px 0 6px 22px; border-left: 3px solid var(--on360-red);
  font-family: var(--font-serif); font-size: 21px; line-height: 1.4; font-weight: 600; color: var(--on360-ink);
}

/* ---- comparison tables ---- */
.on360-longform table {
  width: 100%; border-collapse: collapse; margin: 24px 0; font-family: var(--font-sans);
  font-size: 14.5px; border: 1px solid var(--on360-border); background: var(--on360-content);
}
.on360-longform thead th {
  background: var(--on360-ink); color: var(--on360-content); text-align: left; font-weight: 700;
  font-size: 12.5px; letter-spacing: 0.02em; padding: 11px 14px; vertical-align: bottom;
}
.on360-longform tbody td, .on360-longform tbody th {
  padding: 11px 14px; border-top: 1px solid var(--on360-border); vertical-align: top; text-align: left;
  color: var(--on360-muted-4); font-weight: 400;
}
.on360-longform tbody th { font-weight: 700; color: var(--on360-ink); }
.on360-longform tbody tr:nth-child(even) td,
.on360-longform tbody tr:nth-child(even) th { background: var(--on360-panel); }
.on360-longform .on360-table-wrap { overflow-x: auto; margin: 24px 0; }
.on360-longform .on360-table-wrap table { margin: 0; }

/* ---- callout boxes ---- */
.on360-longform .on360-box {
  margin: 24px 0; padding: 16px 20px; background: var(--on360-panel); border: 1px solid var(--on360-border);
  border-left: 3px solid var(--on360-muted-2);
}
.on360-longform .on360-box p { margin: 0 0 8px; font-family: var(--font-serif); font-size: 15.5px; line-height: 1.6; color: var(--on360-muted-4); }
.on360-longform .on360-box p:last-child { margin-bottom: 0; }
.on360-longform .on360-box.is-info { border-left-color: #2C6E9B; }
.on360-longform .on360-box.is-warn { border-left-color: #B9770C; }
.on360-longform .on360-box.is-tip  { border-left-color: #2E7D46; }
.on360-longform .on360-box.is-legal{ border-left-color: var(--on360-red); background: var(--on360-panel-alt); }

/* ---- FAQ ---- */
.on360-longform .on360-faq { margin: 30px 0 6px; border-top: 2px solid var(--on360-ink); padding-top: 6px; }
.on360-longform .on360-faq h3 {
  font-family: var(--font-sans); font-size: 17.5px; font-weight: 700; letter-spacing: -0.015em;
  color: var(--on360-ink); margin: 20px 0 8px; padding-top: 18px; border-top: 1px solid var(--on360-border);
}
.on360-longform .on360-faq h3:first-of-type { border-top: 0; padding-top: 4px; }
.on360-longform .on360-faq p { font-family: var(--font-serif); font-size: 16.5px; line-height: 1.6; color: var(--on360-muted-4); margin: 0 0 12px; }

/* ---- responsible-gambling block ---- */
.on360-rg-block {
  max-width: 1040px; margin: 34px auto 0; padding: 24px 48px 30px;
  background: var(--on360-ink); color: var(--on360-dark-text);
  display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: center;
}
.on360-rg-block__msg { font-size: 15px; line-height: 1.5; max-width: 60ch; }
.on360-rg-block__msg strong { color: var(--on360-content); }
.on360-rg-block__links { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.on360-rg-block__links a { color: var(--on360-content); border-bottom: 1px solid var(--on360-dark-hairline); padding-bottom: 6px; }
.on360-rg-block__age { display: inline-flex; align-items: center; justify-content: center; height: 20px; padding: 0 7px; border: 1px solid var(--on360-dark-hairline); border-radius: 3px; font-family: var(--font-mono); font-size: 11px; color: var(--on360-dark-text); margin-right: 8px; }

/* hub: longform block sits under the toplist */
.on360-hub-longform { max-width: 1040px; margin: 0 auto; padding: 8px 48px 10px; }

@media (max-width: 900px) {
  .on360-commercial, .on360-rg-block, .on360-hub-longform { padding-left: 24px; padding-right: 24px; }
  .on360-commercial h1 { font-size: 34px; }
  .on360-longform, .on360-longform > p, .on360-longform > ul, .on360-longform > ol { font-size: 17px; }
  .on360-longform > h2 { font-size: 23px; }
  .on360-rg-block { grid-template-columns: 1fr; }
}

/* ============================================================
   Branded Pexels cover band (Canadian-tinted, ON360 mark)
   ============================================================ */
.on360-cover {
  position: relative; margin: 0; overflow: hidden; isolation: isolate;
  border-top: 4px solid var(--on360-red);
  border-bottom: 1px solid var(--on360-border);
  background: var(--on360-ink);
}
.on360-cover__img {
  display: block; width: 100%; height: clamp(190px, 26vw, 300px);
  object-fit: cover; object-position: center 42%;
  filter: grayscale(0.14) contrast(1.04) brightness(0.98) saturate(0.95);
}
/* Canadian red-from-left brand tint + bottom scrim for the ON360 mark */
.on360-cover::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(200,16,46,0.48) 0%, rgba(200,16,46,0.12) 46%, rgba(20,19,15,0) 72%),
    linear-gradient(0deg,  rgba(20,19,15,0.62) 0%, rgba(20,19,15,0.04) 60%),
    repeating-linear-gradient(45deg, rgba(20,19,15,0.05) 0 8px, rgba(20,19,15,0) 8px 16px);
  mix-blend-mode: multiply;
}
.on360-cover__mark {
  position: absolute; left: 48px; bottom: 16px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
}
.on360-cover__word {
  font-family: var(--font-sans); font-weight: 800; font-size: 22px;
  letter-spacing: -0.035em; line-height: 1; color: #FBFAF7;
}
.on360-cover__word .a { color: var(--on360-red-bright); }
.on360-cover__word .tld { font-size: 11px; font-weight: 500; color: #C9C4B8; letter-spacing: 0; }
.on360-cover__tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(201,196,184,0.9);
  padding-left: 10px; border-left: 1px solid rgba(201,196,184,0.35);
}
.on360-cover__credit {
  position: absolute; right: 48px; bottom: 13px; z-index: 2;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.02em;
  color: rgba(251,250,247,0.55);
}
.on360-cover__credit a { color: rgba(251,250,247,0.7); }
@media (max-width: 900px) {
  .on360-cover__mark { left: 24px; }
  .on360-cover__credit { right: 24px; }
  .on360-cover__tag { display: none; }
}

/* ============================================================
   In-content branded figure (2–3 distributed in the body)
   ============================================================ */
.on360-longform .on360-fig { margin: 32px 0; }
.on360-longform .on360-fig__frame {
  position: relative; overflow: hidden; isolation: isolate;
  border-top: 3px solid var(--on360-red); background: var(--on360-ink);
}
.on360-longform .on360-fig__img {
  display: block; width: 100%; height: auto; max-height: 360px;
  object-fit: cover; filter: grayscale(0.12) contrast(1.03) saturate(0.96);
}
.on360-longform .on360-fig__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(200,16,46,0.34) 0%, rgba(200,16,46,0.07) 42%, rgba(20,19,15,0) 70%),
    linear-gradient(0deg,  rgba(20,19,15,0.42) 0%, rgba(20,19,15,0) 48%);
  mix-blend-mode: multiply;
}
.on360-longform .on360-fig__chip {
  position: absolute; left: 13px; bottom: 12px; z-index: 2;
  display: flex; align-items: center; gap: 7px;
}
.on360-longform .on360-fig__word {
  font-family: var(--font-sans); font-weight: 800; font-size: 14px;
  letter-spacing: -0.03em; line-height: 1; color: #FBFAF7;
}
.on360-longform .on360-fig__word .a { color: var(--on360-red-bright); }
.on360-longform .on360-fig__cap {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.02em;
  color: var(--on360-muted-2); padding-top: 8px;
}
