/* ============================================================
   DrellaBet Guide (drellabet.casino) - site overrides
   Trebuchet display face, Verdana body, bracketed monospace
   ordinals before each H2, dotted rules under headings.
   ============================================================ */
:root {
  --font-display: "Trebuchet MS", "Lucida Grande", "Segoe UI", system-ui, sans-serif;
  --font-body: Verdana, Geneva, "DejaVu Sans", system-ui, sans-serif;
  --font-mono: "DejaVu Sans Mono", "Consolas", "Courier New", monospace;
}

/* Greek flag for the /el switcher entry */
.lang-flag--el {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 18'><rect width='27' height='18' fill='%23ffffff'/><rect y='2' width='27' height='2' fill='%230D5EAF'/><rect y='6' width='27' height='2' fill='%230D5EAF'/><rect y='10' width='27' height='2' fill='%230D5EAF'/><rect y='14' width='27' height='2' fill='%230D5EAF'/><rect width='10' height='10' fill='%230D5EAF'/><rect x='4' width='2' height='10' fill='%23ffffff'/><rect y='4' width='10' height='2' fill='%23ffffff'/></svg>");
}

body { letter-spacing: 0.005em; }

/* Headings: open tracking plus a dotted rule that stops short */
.content-section h2 {
  letter-spacing: 0.055em;
  text-transform: none;
  padding-bottom: 14px;
  border-bottom: 2px dotted var(--color-border-2);
  margin-bottom: 26px;
}
.content-section h3 {
  letter-spacing: 0.04em;
  color: var(--color-accent);
}
.content-section h4 {
  letter-spacing: 0.03em;
  color: var(--color-text);
}

/* Bracketed ordinal set by the content as <span class="ord">[03]</span> */
.ord {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--color-cta);
  margin-bottom: 8px;
}

/* Definition rows: the label as the operator prints it, then the reading */
.label-rows {
  display: grid;
  gap: 0;
  margin: 22px 0 26px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-surface-alt);
}
.label-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px dotted var(--color-border);
}
.label-row:last-child { border-bottom: 0; }
.label-row dt,
.label-row .lr-term {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin: 0;
}
.label-row dd,
.label-row .lr-desc {
  margin: 0;
  color: var(--color-text-muted);
}
@media (max-width: 720px) {
  .label-row { grid-template-columns: 1fr; gap: 6px; }
}

/* A callout for the places the Swedish stops */
.gap-note {
  border-left: 4px solid var(--color-cta);
  background: var(--color-surface-2);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 10px 10px 0;
}
.gap-note p:last-child { margin-bottom: 0; }
.gap-note strong { color: var(--color-text); }

/* Tables keep the dotted language */
.content-section table th {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* Screenshots sit a touch wider here since they are 900x1000 renders */
.section-illus--transparent { max-width: 340px; }
@media (max-width: 900px) {
  .section-illus--transparent { max-width: 300px; }
}

/* illustrations that sit beside a short paragraph run render narrower so the
   text column and the image finish at roughly the same height */
.section-illus--compact { max-width: 235px; }
@media (max-width: 900px) {
  .section-illus--compact { max-width: 210px; }
}

/* ============================================================
   Stats band. The shared stylesheet only targets .stats-bar__grid,
   while home.php emits .stats-bar__inner, so the six figures fell
   into a single column. Lexikon renders them as a ruled register row.
   ============================================================ */
.stats-bar {
  background: var(--color-surface-alt);
}
.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 dotted var(--color-border-2);
}
.stats-bar__inner .stat:first-child {
  padding-left: 0;
  border-left: 0;
}
.stats-bar__inner .stat__value {
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.stats-bar__inner .stat__label {
  font-size: 0.6875rem;
  line-height: 1.45;
  letter-spacing: 0.1em;
  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 dotted var(--color-border-2); }
  .stats-bar__inner .stat:nth-child(2n+1) { padding-left: 0; border-left: 0; }
  .stats-bar__inner .stat__value { font-size: 1.25rem; }
}

/* amount cells must not break between the figure and the currency symbol */
.content-section table td,
.content-section table th { white-space: normal; overflow-wrap: break-word; }
@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 register tables scroll sideways on narrow screens instead of
   pushing the fifth and sixth 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 { display: table; width: 100%; min-width: 34rem; }
  .content-section table thead { table-layout: fixed; }
}


/* FAQ pairs: give each question room so the list does not read as one block */
.faq-list { margin: var(--space-4) 0 var(--space-5); }
.faq-answer { padding: var(--space-3) 0; border-bottom: 1px dotted var(--color-border); }
.faq-answer:last-child { border-bottom: 0; }
.faq-answer h4 { margin: 0 0 0.4rem; color: var(--color-text); }
.faq-answer p { margin: 0; color: var(--color-text-muted); }
