/* ============================================================
   Nana Casino Guide (nanacasino.casino) - site overrides
   DejaVu Sans Condensed carries the headings over a Liberation
   Serif reading column, each H2 is marked by a magenta bar at its
   left instead of a rule underneath, the key figure rows stripe in
   a faint gold and the step marker is a hard edged square chip.
   The pairing is shared with no sister site: not the Nimbus Sans
   over Carlito on jasino.casino, not the Lato over Caladea on
   ember-bet.casino, and not the Segoe stack on spin-fin.uk.net.
   ============================================================ */
:root {
  --font-display: "DejaVu Sans Condensed", "Liberation Sans Narrow", "Nimbus Sans Narrow", "Arial Narrow", Arial, sans-serif;
  --font-body: "Liberation Serif", "Nimbus Roman", "DejaVu Serif", Georgia, "Times New Roman", serif;
  --font-mono: "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
}

body {
  letter-spacing: 0;
  font-size: 1.06rem;
  line-height: 1.78;
}

/* Headings: condensed sans, magenta bar at the left edge */
.content-section h2 {
  clear: both;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.15rem + 1.35vw, 2.05rem);
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-transform: none;
  padding-left: 18px;
  padding-bottom: 0;
  margin-bottom: 24px;
  border-bottom: 0;
  border-left: 5px solid var(--color-cta);
}
.content-section h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--color-accent);
  letter-spacing: 0.015em;
  margin-top: 34px;
}
.content-section h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.02em;
}
.hero h1,
.site-footer h5,
.stats-bar__inner .stat__value,
.cta-banner h2 {
  font-family: var(--font-display);
}
.cta-banner h2 { border-left: 0; padding-left: 0; }

/* Square step chip the content sets as <span class="step">Step 2</span> */
.step {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68em;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-cta-text);
  background: var(--color-cta);
  border-radius: 2px;
  padding: 4px 12px;
  margin-bottom: 10px;
}

/* Two column key figure rows, gold stripe, teal hairlines */
.figure-rows {
  display: grid;
  gap: 0;
  margin: 24px 0 28px;
  border: 1px solid var(--color-border-2);
  border-radius: 4px;
  overflow: hidden;
  background: var(--color-surface-alt);
}
.figure-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--color-border);
}
.figure-row:nth-child(even) { background: rgba(255, 198, 58, 0.06); }
.figure-row:last-child { border-bottom: 0; }
.figure-row dt,
.figure-row .fr-term {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  color: var(--color-accent);
  margin: 0;
}
.figure-row dd,
.figure-row .fr-desc {
  margin: 0;
  color: var(--color-text-muted);
}
@media (max-width: 720px) {
  .figure-row { grid-template-columns: 1fr; gap: 6px; }
}

/* Callout for the conditions worth doing arithmetic on */
.money-note {
  border: 1px solid var(--color-border-2);
  border-left: 5px solid var(--color-accent);
  background: var(--color-surface-2);
  padding: 18px 22px;
  margin: 26px 0;
  border-radius: 0 4px 4px 0;
}
.money-note p:last-child { margin-bottom: 0; }
.money-note strong { color: var(--color-accent); }

/* A table must never be squeezed beside a floated illustration */
.content-section .table-wrap,
.content-section table,
.content-section .figure-rows { clear: both; }

/* Tables */
.content-section table th {
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.content-section table td,
.content-section table th {
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

/* Supplied artwork sits beside the text column */
.section-illus--transparent { max-width: 320px; }
@media (max-width: 900px) {
  .section-illus--transparent { max-width: 275px; }
}
.section-illus--compact { max-width: 230px; }
@media (max-width: 900px) {
  .section-illus--compact { max-width: 200px; }
}

/* Question blocks need air between the question and the answer */
.faq-item {
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 2px solid var(--color-accent-dark);
}
.faq-item h4 { margin-bottom: 8px; }
.faq-item p:last-child { margin-bottom: 0; }

/* ============================================================
   Stats band. The shared stylesheet only targets .stats-bar__grid
   while home.php emits .stats-bar__inner, so the six figures fall
   into one column unless we lay them out here.
   ============================================================ */
.stats-bar {
  background: var(--color-surface-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.stats-bar__inner {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}
.stats-bar__inner .stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0 1.25rem;
  border-left: 1px solid var(--color-border);
}
.stats-bar__inner .stat:first-child {
  padding-left: 0;
  border-left: 0;
}
.stats-bar__inner .stat__value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--color-accent);
}
.stats-bar__inner .stat__label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  line-height: 1.45;
  letter-spacing: 0.05em;
  margin-top: 0;
}
@media (max-width: 1100px) {
  .stats-bar__inner { grid-template-columns: repeat(3, 1fr); row-gap: 1.75rem; }
  .stats-bar__inner .stat:nth-child(3n+1) { padding-left: 0; border-left: 0; }
}
@media (max-width: 600px) {
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
  .stats-bar__inner .stat { padding: 0 0.85rem; }
  .stats-bar__inner .stat:nth-child(3n+1) { padding-left: 0.85rem; border-left: 1px solid var(--color-border); }
  .stats-bar__inner .stat:nth-child(2n+1) { padding-left: 0; border-left: 0; }
  .stats-bar__inner .stat__value { font-size: 1.25rem; }
}

@media (max-width: 700px) {
  .content-section table { font-size: 0.8125rem; }
  .content-section table th,
  .content-section table td { padding: 0.55rem 0.5rem; }
}

/* wide tables scroll sideways on narrow screens instead of pushing
   their last columns past the viewport edge */
@media (max-width: 760px) {
  .content-section table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .content-section table thead,
  .content-section table tbody,
  .content-section table tr { width: 100%; }
}

/* ============================================================
   Reading measure next to a floated illustration.
   base.css caps p/li at 72ch, which is right for a plain column
   but leaves only a sliver of text beside a 320px float. Allow
   the extra float width back so wrapped lines stay readable.
   ============================================================ */
.content-section p,
.content-section li {
  max-width: calc(72ch + 352px);
}
@media (max-width: 900px) {
  .content-section p,
  .content-section li {
    max-width: 72ch;
  }
}

/* Language chips: the euro root reads as Europe, the pound version as the UK */
.lang-flag--uk {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 42'><rect width='60' height='42' fill='%23012169'/><path d='M0,0 L60,42 M60,0 L0,42' stroke='%23ffffff' stroke-width='6'/><rect x='24' width='12' height='42' fill='%23ffffff'/><rect y='15' width='60' height='12' fill='%23ffffff'/><rect x='26.5' width='7' height='42' fill='%23C8102E'/><rect y='17.5' width='60' height='7' fill='%23C8102E'/></svg>");
}
.lang-flag--en {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 42'><rect width='60' height='42' fill='%23003399'/><g fill='%23FFCC00'><circle cx='30' cy='9' r='2'/><circle cx='38' cy='11' r='2'/><circle cx='43' cy='17' r='2'/><circle cx='45' cy='24' r='2'/><circle cx='43' cy='31' r='2'/><circle cx='38' cy='36' r='2'/><circle cx='30' cy='38' r='2'/><circle cx='22' cy='36' r='2'/><circle cx='17' cy='31' r='2'/><circle cx='15' cy='24' r='2'/><circle cx='17' cy='17' r='2'/><circle cx='22' cy='11' r='2'/></g></svg>");
}

/* ============================================================
   nanacasino.casino - body copy spacing + section rhythm (2026-09-09)
   Ensures body_html sections have container padding, breathing room
   between sections, paragraphs and images.
   ============================================================ */
.body-copy .content-section {
  padding: clamp(2.2rem, 4vw, 3.6rem) 0;
  border-top: 1px solid var(--color-border);
}
.body-copy .content-section:first-of-type {
  border-top: 0;
  padding-top: clamp(1.4rem, 3vw, 2.2rem);
}
.body-copy .content-section > .container {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: clamp(1rem, 3vw, 1.6rem);
  padding-right: clamp(1rem, 3vw, 1.6rem);
}
.body-copy .content-section h2 {
  margin-top: 0;
  margin-bottom: 1.2rem;
}
.body-copy .content-section h3 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  color: var(--color-accent-secondary);
  font-size: clamp(1.15rem, 0.95rem + 0.6vw, 1.35rem);
  letter-spacing: 0.02em;
}
.body-copy .content-section p {
  margin: 0 0 1rem;
  line-height: 1.78;
}
.body-copy .content-section p:last-child { margin-bottom: 0; }

/* Floated images inside body copy - readable spacing on desktop, stacked on small */
.body-copy .content-section img.section-illus {
  border-radius: 12px;
  display: block;
  height: auto;
}
.body-copy .content-section img.section-illus--right {
  float: right;
  max-width: min(45%, 420px);
  margin: 0.4rem 0 1rem 1.6rem;
}
.body-copy .content-section img.section-illus--left {
  float: left;
  max-width: min(45%, 420px);
  margin: 0.4rem 1.6rem 1rem 0;
}
.body-copy .content-section::after {
  content: "";
  display: block;
  clear: both;
}
@media (max-width: 720px) {
  .body-copy .content-section img.section-illus,
  .body-copy .content-section img.section-illus--left,
  .body-copy .content-section img.section-illus--right {
    float: none;
    max-width: 100%;
    width: 100%;
    margin: 1rem auto 1.4rem;
  }
}
