/* flourish.org.nz — base stylesheet (template v2)
   Fonts: Anybody (display) · Plus Jakarta Sans (body) · JetBrains Mono (data labels)
   Accent discipline: ORANGE IS FOR CTAs ONLY. */

:root {
  --ink: #15211c;
  --ink-soft: #46554e;
  --paper: #ffffff;
  --paper-alt: #f4f7f5;
  --brand: #0e5c43;
  --brand-deep: #093d2d;
  --brand-ink: #10291f;
  --brand-tint: #e3efe9;
  --line: #dde5e0;
  --cta: #f26b1d;
  --cta-dark: #d85a10;
  --gold: #b98a1d;
  --warn-bg: #fdf3e7;
  --warn-line: #ecc89a;
  --ok-bg: #eef8f1;
  --ok-line: #bfe3cc;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(21,33,28,.08), 0 4px 14px rgba(21,33,28,.06);
  --shadow-lift: 0 4px 10px rgba(21,33,28,.10), 0 12px 32px rgba(21,33,28,.14);
  --font-display: "Anybody", -apple-system, sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16.5px;
}
img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.22; color: var(--ink); font-weight: 750; letter-spacing: .1px; }
h1 { font-size: clamp(1.65rem, 4vw, 2.35rem); margin: .2em 0 .4em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.68rem); margin: 1.9em 0 .55em; scroll-margin-top: 90px; }
h3 { font-size: clamp(1.08rem, 2.4vw, 1.24rem); margin: 1.4em 0 .4em; }
h4 { font-size: 1.02rem; margin: 1.2em 0 .35em; }
p { margin: .7em 0; }
a { color: var(--brand); }
a:hover { color: var(--brand-deep); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.updated, .muted { color: var(--ink-soft); font-size: .85rem; }

/* ---------- CTA buttons (the only orange) ---------- */
.btn-cta {
  display: inline-block; background: var(--cta); color: #fff !important; text-decoration: none;
  font-family: var(--font-display); font-weight: 750; font-size: 1rem;
  padding: 12px 24px; border-radius: 10px;
  min-height: 44px; min-width: 140px; text-align: center; line-height: 1.3;
  box-shadow: 0 2px 8px rgba(242,107,29,.35);
  transition: background .15s ease, transform .15s ease;
}
.btn-cta:hover { background: var(--cta-dark); transform: translateY(-1px); }
.btn-cta small { display: block; font-weight: 600; font-size: .72rem; opacity: .92; }
.btn-ghost { display: inline-block; color: var(--brand); text-decoration: none; font-weight: 600; font-size: .88rem; padding: 8px 4px; }

/* ---------- comparison + info tables ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0; border: 1px solid var(--line); border-radius: var(--radius); }
table.compare { border-collapse: collapse; width: 100%; font-size: .88rem; min-width: 720px; }
table.compare thead th {
  background: var(--brand-deep); color: #fff; text-align: left; padding: 11px 12px;
  position: sticky; top: 0; font-family: var(--font-mono); font-weight: 600; font-size: .74rem;
  letter-spacing: .5px; text-transform: uppercase;
}
table.compare td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
table.compare tbody tr:nth-child(even) { background: var(--paper-alt); }
table.compare tbody tr:hover { background: var(--brand-tint); }
table.compare td.num { text-align: right; font-family: var(--font-mono); font-size: .84rem; }
table.compare td img.logo { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; vertical-align: middle; margin-right: 6px; object-fit: contain; }

table.info { border-collapse: collapse; width: 100%; font-size: .9rem; margin: 14px 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
table.info th, table.info td:first-child { text-align: left; background: var(--brand-tint); color: var(--ink); padding: 9px 13px; width: 42%; border-bottom: 1px solid var(--line); font-weight: 700; font-size: .85rem; }
table.info td { padding: 9px 13px; border-bottom: 1px solid var(--line); }
table.info tr:last-child th, table.info tr:last-child td { border-bottom: 0; }

/* ---------- content blocks (legacy + template) ---------- */
.why-trust { background: var(--brand-tint); border-left: 4px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 18px; margin: 18px 0; font-size: .95rem; }
.fact-box, .box { background: var(--paper-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 19px; margin: 16px 0; font-size: .95rem; }
.fact-box b { color: var(--brand-deep); }
.box.warn { background: var(--warn-bg); border-color: var(--warn-line); }
.box.ok { background: var(--ok-bg); border-color: var(--ok-line); }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; padding: 10px 0 10px 48px; position: relative; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 10px;
  width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 600;
}

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; background: var(--paper); }
.faq summary { cursor: pointer; font-weight: 700; padding: 13px 16px; font-family: var(--font-display); font-size: .97rem; }
.faq details[open] { background: var(--paper-alt); }
.faq details div, .faq .faq-a { padding: 0 16px 13px; }

/* responsible gambling block */
.rg-block { background: var(--brand-ink); color: #cfe5d9; border-radius: var(--radius); padding: 18px 22px; margin: 30px 0 10px; font-size: .92rem; }
.rg-block h2, .rg-block h3 { color: #fff; margin-top: 0; }
.rg-block a { color: #9fd8bc; }
.rg-block .r18 { display: inline-block; border: 2px solid #cfe5d9; border-radius: 50%; width: 38px; height: 38px; text-align: center; line-height: 35px; font-weight: 900; margin-right: 10px; font-family: var(--font-mono); }

/* byline */
.byline, .byline a { color: inherit; font-size: .88rem; }
.byline { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.byline-avatar { border-radius: 50%; vertical-align: middle; object-fit: cover; object-position: center 28%; }
.author-profile-photo { width: 88px; height: 88px; flex: none; border: 2px solid var(--line); border-radius: 50%; object-fit: cover; object-position: center 28%; }
.byline-card { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 18px 0; font-size: .9rem; }
.byline-card .avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-deep); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.15rem; flex-shrink: 0; }

.section-alt { background: var(--paper-alt); padding: 26px 0; margin: 30px 0; }
