/* ============================================================
   Jokertipp Weekly (jokertip.casino) - site overrides
   A heavy Lato sits in the headings, set in caps and letterspaced with a
   short gold bar carried above each one, over a Gentium serif text column.
   Key figures read as stacked cards divided by dashed hairlines with the
   term set in crimson caps, the step marker is a pill with a crimson
   outline, and question blocks are boxed rather than ruled. None of that
   repeats the Libertine serif with a bronze bracket on betmica.to, the
   Biolinum column with a cyan underscore on amunbet.online, or the yellow
   bracket and green ground used on the German sister build.
   ============================================================ */
:root {
  --font-display: "Lato", "Carlito", "Nimbus Sans", "DejaVu Sans", system-ui, sans-serif;
  --font-body: "Gentium Book Basic", "Gentium Basic", "Charter", "Bitstream Charter", Georgia, "Nimbus Roman", serif;
  --font-mono: "DejaVu Sans Mono", "Nimbus Mono PS", "Courier New", monospace;
}

body {
  letter-spacing: 0.004em;
  font-size: 1.075rem;
  line-height: 1.76;
}

/* Headings: heavy caps sans under a short gold bar */
.content-section h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.4rem, 1.02rem + 1.35vw, 1.92rem);
  letter-spacing: 0.045em;
  line-height: 1.28;
  text-transform: uppercase;
  border-bottom: 0;
  border-left: 0;
  padding: 0;
  margin-bottom: 26px;
  position: relative;
}
.content-section h2::before {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-bottom: 15px;
  background: var(--color-accent-secondary);
  border-radius: 2px;
}
.content-section h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.12rem, 0.98rem + 0.5vw, 1.3rem);
  color: var(--color-accent);
  letter-spacing: 0.012em;
  text-transform: none;
  margin-top: 38px;
  padding-left: 0;
}
.content-section h4 {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--color-text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.hero h1,
.site-footer h5,
.stats-bar__inner .stat__value,
.cta-banner h2 {
  font-family: var(--font-display);
}
.hero h1 { font-weight: 900; letter-spacing: -0.01em; }
.cta-banner h2::before { margin-left: auto; margin-right: auto; }

/* Pill the content sets as <span class="step">Friday</span> */
.step {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7em;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(255, 61, 110, 0.1);
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  padding: 3px 15px;
  margin-bottom: 10px;
}

/* Key figures: stacked cards split by dashed hairlines */
.figure-rows {
  display: grid;
  gap: 0;
  margin: 26px 0 32px;
  border: 1px solid var(--color-border-2);
  border-top: 3px solid var(--color-accent-secondary);
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  background: var(--color-surface-alt);
}
.figure-row {
  display: grid;
  grid-template-columns: 244px 1fr;
  gap: 24px;
  padding: 15px 22px;
  border-bottom: 1px dashed var(--color-border-2);
}
.figure-row:last-child { border-bottom: 0; }
.figure-row dt,
.figure-row .fr-term {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0;
  padding-top: 5px;
}
.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: 5px; }
}

/* Callout for the sums worth checking twice */
.money-note {
  border: 1px solid var(--color-border-2);
  border-top: 3px solid var(--color-accent);
  background: var(--color-surface-2);
  padding: 18px 22px;
  margin: 28px 0;
  border-radius: 0 0 8px 8px;
}
.money-note p:last-child { margin-bottom: 0; }
.money-note strong { color: var(--color-accent-secondary); }

/* Tables: gold caps in the head row */
.content-section table th {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-accent-secondary);
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-accent-secondary);
}
.content-section table td,
.content-section table th {
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}
.content-section table tbody tr:nth-child(even) { background: rgba(255, 61, 110, 0.045); }
.content-section table caption {
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
}

/* Supplied artwork sits beside the text column it belongs to */
.section-illus--transparent { max-width: 312px; }
@media (max-width: 900px) {
  .section-illus--transparent { max-width: 268px; }
}
.section-illus--compact { max-width: 222px; }
@media (max-width: 900px) {
  .section-illus--compact { max-width: 196px; }
}

/* Question blocks, boxed */
.faq-item {
  margin-bottom: 18px;
  padding: 16px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}
.faq-item h4 {
  margin-bottom: 8px;
  color: var(--color-accent-secondary);
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 1rem;
  font-weight: 900;
}
.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 they are laid out here.
   ============================================================ */
.stats-bar {
  background: var(--color-surface-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-accent-secondary);
}
.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: 900;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--color-accent);
}
.stats-bar__inner .stat__label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  line-height: 1.45;
  letter-spacing: 0.03em;
  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.24rem; }
}

@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 312px float. Allow the
   extra float width back so wrapped lines stay readable.
   ============================================================ */
.content-section p,
.content-section li {
  max-width: calc(72ch + 344px);
}
@media (max-width: 900px) {
  .content-section p,
  .content-section li {
    max-width: 72ch;
  }
}

/* Long German compounds in the headline must not push past the phone edge. */
@media (max-width: 520px) {
  .hero h1 { font-size: clamp(1.55rem, 8.2vw, 2.3rem); letter-spacing: 0; }
}
