@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700;900&family=Source+Sans+Pro:wght@400;600;700&display=swap');
/* ============================================================================
 * Tipmaster Ratgeber — content section stylesheet
 *
 * Self-contained. Does NOT import the production design-system.css because
 * that targets the game UI (atomic data components: tables, tip grids, score
 * displays). The Ratgeber is editorial content with different needs:
 * generous reading column, prose typography, category navigation.
 *
 * Brand tokens borrowed from tmstatic/www/css/design-system/_tokens.css:
 *   yellow var(--brand-color, #0060AA), gray scale, Montserrat, 4px spacing.
 * ============================================================================ */

:root {
  --tm-yellow: var(--brand-color, #0060AA);
  --tm-yellow-hover: #0050a0;
  --tm-yellow-active: #003e80;
  --tm-red: #dc2626;

  --tm-gray-50:  #fafafa;
  --tm-gray-100: #f4f4f5;
  --tm-gray-200: #e4e4e7;
  --tm-gray-300: #d4d4d8;
  --tm-gray-400: #a1a1aa;
  --tm-gray-500: #71717a;
  --tm-gray-600: #52525b;
  --tm-gray-700: #3f3f46;
  --tm-gray-800: #27272a;
  --tm-gray-900: #18181b;
  --tm-gray-950: #09090b;

  --rg-bg:           #ffffff;
  --rg-bg-soft:      var(--tm-gray-50);
  --rg-text:         var(--tm-gray-950);
  --rg-text-muted:   var(--tm-gray-600);
  --rg-text-faint:   var(--tm-gray-500);
  --rg-border:       var(--tm-gray-200);
  --rg-link:         var(--tm-gray-950);
  --rg-link-hover:   var(--tm-red);

  --rg-font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --rg-content-width: 1000px;
  /* --brand-color is set per-brand via inline <style> in baseof.html; #0060AA is the fallback */
  --brand-color: var(--brand-color, #0060AA);
  --rg-wide-width:    1000px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--rg-font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--rg-text);
  background: var(--rg-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--rg-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: var(--tm-gray-300);
  transition: color 150ms ease, text-decoration-color 150ms ease;
}
a:hover { color: var(--rg-link-hover); text-decoration-color: var(--rg-link-hover); }

img { max-width: 100%; height: auto; }

/* ----------------------------------------------------------------------------
 * Header
 * ---------------------------------------------------------------------------- */
.rg-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--rg-border);
  backdrop-filter: saturate(180%) blur(12px);
  background: rgba(255, 255, 255, 0.92);
}
.rg-header__inner {
  max-width: var(--rg-wide-width);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
/* Right-side group: nav (optional) → langs → CTA hug together, balanced
   against the logo on the left. Avoids the dead-space gap that an empty
   nav column caused under the old grid layout. */
.rg-header__right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 1 auto;
}
.rg-header__right::before {
  content: "";
  display: block;
  width: 1px; height: 24px;
  background: var(--rg-border, #e5e5e5);
  margin-right: 2px;
  order: 1;
}
.rg-header__right > .rg-langs { order: 0; }
.rg-header__right > .rg-cta   { order: 2; }
.rg-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--rg-text);
  font-weight: 800;
  letter-spacing: -0.01em;
  flex: 0 0 auto;
}
.rg-logo__img { height: 44px; width: auto; display: block; }
.rg-logo__sub  {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rg-text-muted);
  padding: 2px 6px;
  background: var(--tm-yellow);
  color: var(--tm-gray-950);
  border-radius: 3px;
}
.rg-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  justify-content: center;
}
.rg-nav a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--rg-text-muted);
  border-radius: 6px;
}
.rg-nav a:hover { color: var(--rg-text); background: var(--tm-gray-100); }
.rg-nav a.is-active {
  color: var(--rg-text);
  background: var(--tm-gray-100);
  box-shadow: inset 0 -2px 0 var(--tm-yellow);
}

/* ----------------------------------------------------------------------------
 * Language selector — flag strip in header
 * ---------------------------------------------------------------------------- */
.rg-langs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  font-size: 20px;
  line-height: 1;
  flex: 0 1 auto;
}
.rg-langs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity .12s, background .12s, transform .08s;
}
.rg-langs a:hover { opacity: 1; background: var(--tm-gray-100); transform: translateY(-1px); }
.rg-langs a.is-active {
  opacity: 1;
  background: var(--tm-gray-100);
  box-shadow: inset 0 -2px 0 var(--tm-yellow);
}

/* ----------------------------------------------------------------------------
 * CTA buttons
 * ---------------------------------------------------------------------------- */
.rg-cta {
  display: inline-block;
  padding: 10px 18px;
  font-family: var(--rg-font);
  font-size: 14px;
  font-weight: 700;
  color: var(--tm-gray-950);
  background: var(--tm-yellow);
  border: 1px solid var(--tm-yellow);
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms ease, transform 50ms ease;
}
.rg-cta:hover { background: var(--tm-yellow-hover); border-color: var(--tm-yellow-hover); color: var(--tm-gray-950); }
.rg-cta:active { transform: translateY(1px); }
.rg-cta--ghost {
  background: transparent;
  color: var(--rg-text);
  border-color: var(--tm-gray-300);
}
.rg-cta--ghost:hover { background: var(--tm-gray-100); border-color: var(--tm-gray-400); color: var(--rg-text); }

/* ----------------------------------------------------------------------------
 * Main / sections
 * ---------------------------------------------------------------------------- */
.rg-main {
  min-height: calc(100vh - 200px);
}

.rg-hero {
  padding: 80px 24px 64px;
  text-align: center;
  background: linear-gradient(180deg, var(--rg-bg-soft) 0%, var(--rg-bg) 100%);
  border-bottom: 1px solid var(--rg-border);
}
.rg-hero__inner { max-width: var(--rg-content-width); margin: 0 auto; }
.rg-hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rg-text-muted);
  background: var(--tm-yellow);
  color: var(--tm-gray-950);
  padding: 4px 10px;
  border-radius: 999px;
  margin: 0 0 16px;
}
.rg-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 800;
}
.rg-hero__lede {
  font-size: 19px;
  color: var(--rg-text-muted);
  margin: 0 auto 32px;
  max-width: 600px;
}
.rg-hero__ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ----------------------------------------------------------------------------
 * Categories grid (homepage)
 * ---------------------------------------------------------------------------- */
.rg-categories,
.rg-latest {
  max-width: var(--rg-wide-width);
  margin: 0 auto;
  padding: 64px 24px;
}
.rg-categories h2,
.rg-latest h2 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rg-text-muted);
  margin: 0 0 24px;
}
.rg-categories__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.rg-categories__grid a {
  display: block;
  padding: 24px;
  background: var(--rg-bg);
  border: 1px solid var(--rg-border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--rg-text);
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.rg-categories__grid a:hover {
  border-color: var(--tm-gray-400);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.rg-categories__grid h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.rg-categories__grid p  { margin: 0 0 16px; font-size: 15px; color: var(--rg-text-muted); }
.rg-categories__count {
  font-size: 12px;
  font-weight: 600;
  color: var(--rg-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ----------------------------------------------------------------------------
 * Article list (latest + category lists)
 * ---------------------------------------------------------------------------- */
.rg-articles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.rg-articles__item a {
  display: block;
  padding: 20px;
  background: var(--rg-bg);
  border: 1px solid var(--rg-border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--rg-text);
  transition: border-color 150ms ease, transform 150ms ease;
  height: 100%;
}
.rg-articles__item a:hover {
  border-color: var(--tm-gray-400);
  transform: translateY(-2px);
}
.rg-articles__category,
.rg-article__category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rg-text-muted);
  margin: 0 0 8px;
}
.rg-articles__item h2,
.rg-articles__item h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}
.rg-articles__item p {
  margin: 0;
  font-size: 14px;
  color: var(--rg-text-muted);
  line-height: 1.5;
}
.rg-articles__meta {
  margin: 12px 0 0 !important;
  font-size: 13px;
  color: var(--rg-text-faint);
}
.rg-articles__empty {
  padding: 24px;
  border: 1px dashed var(--rg-border);
  border-radius: 10px;
  color: var(--rg-text-muted);
  font-style: italic;
}

/* ----------------------------------------------------------------------------
 * Category list page
 * ---------------------------------------------------------------------------- */
.rg-list {
  max-width: var(--rg-wide-width);
  margin: 0 auto;
  padding: 48px 24px 64px;
}
.rg-list__header { max-width: var(--rg-content-width); margin-bottom: 32px; }
.rg-list__crumb {
  font-size: 13px;
  color: var(--rg-text-muted);
  margin: 0 0 12px;
}
.rg-list__crumb a { color: var(--rg-text-muted); }
.rg-list h1 {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.rg-list__lede {
  font-size: 18px;
  color: var(--rg-text-muted);
  margin: 0;
  max-width: 640px;
}
.rg-list__intro { max-width: var(--rg-content-width); margin-bottom: 32px; }

/* ----------------------------------------------------------------------------
 * Article (single page) — magazine reading layout
 *
 * Aesthetic target: confident Saturday football magazine. Generous editorial
 * typography, brand yellow used 4 deliberate times per page (section numbers,
 * drop cap, end rule, button). Light theme, warm-tinted neutrals.
 * ---------------------------------------------------------------------------- */
.rg-article {
  /* Outer container matches header/list width (--rg-wide-width = 1000px) so the
     article column aligns visually with the header logo/nav above. Prose lines
     inside are kept readable via .rg-article__body which clamps to ~680px. */
  --rg-article-col: 936px;
  --rg-article-pad-x: 32px;
  max-width: calc(var(--rg-article-col) + (var(--rg-article-pad-x) * 2));
  margin: 0 auto;
  padding: 56px var(--rg-article-pad-x) 96px;
}

/* Article header, prose body and FAQ block all span the full article width so
   the column aligns visually with the header bar above. */
.rg-prose,
.rg-article__header { max-width: none; }

/* Breadcrumb — quieter, smaller dot separators, wraps naturally */
.rg-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  font-size: 13px;
  color: var(--rg-text-faint);
  margin: 0 0 56px;
  line-height: 1.5;
}
.rg-breadcrumb a { color: var(--rg-text-muted); text-decoration: none; }
.rg-breadcrumb a:hover { color: var(--rg-text); text-decoration: underline; }
.rg-breadcrumb__sep { color: var(--tm-gray-400); font-weight: 400; }
.rg-breadcrumb [aria-current="page"] {
  color: var(--rg-text);
  font-weight: 500;
}

/* Header — magazine kicker bar + oversized h1 + italic deck */
.rg-article__header {
  margin: 0 0 64px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--rg-border);
}
.rg-article__kicker {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 28px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.rg-article__kicker .rg-article__category {
  color: var(--tm-gray-950);
  position: relative;
  padding-left: 32px;
}
.rg-article__kicker .rg-article__category::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 22px;
  height: 4px;
  background: var(--tm-yellow);
  transform: translateY(-50%);
  border-radius: 1px;
}
.rg-article__readtime { color: var(--rg-text-faint); font-weight: 600; letter-spacing: 0.08em; }

.rg-article__header h1 {
  font-size: clamp(38px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  font-weight: 800;
  /* Long German compounds / Dutch / Turkish words break at word boundaries.
     No auto-hyphenation: Spanish/Portuguese hyphenation rules produce ugly
     "qui-nielas" breaks. */
  overflow-wrap: break-word;
  word-break: normal;
}
.rg-article__lede {
  font-size: clamp(19px, 1.8vw, 22px);
  line-height: 1.5;
  color: var(--rg-text-muted);
  margin: 0 0 32px;
  font-weight: 400;
  font-style: italic;
}
/* Hero image — one shared per translation_key, rendered between the lede
   and the byline so the reader sees the visual before metadata. */
.rg-article__hero {
  margin: 0 0 32px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--tm-gray-100, #f3f3f3);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.rg-article__hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 624;
  object-fit: cover;
}
/* Byline — two-part: editorial masthead on the left, dates on the right.
   On wide screens they sit on the same row; on narrow screens they stack. */
.rg-article__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  font-size: 13px;
  color: var(--rg-text-faint);
}

/* Editorial masthead component */
.rg-article__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rg-article__author-mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--tm-yellow);
  color: var(--tm-gray-950);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-radius: 50%;
  font-feature-settings: "lnum";
  flex-shrink: 0;
}
.rg-article__author-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.3;
}
.rg-article__author-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--rg-text);
  letter-spacing: -0.005em;
}
.rg-article__author-role {
  font-size: 12px;
  font-weight: 500;
  color: var(--rg-text-faint);
  letter-spacing: 0.01em;
}

/* Dates block, sits to the right of the author. */
.rg-article__dates {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-size: 13px;
  color: var(--rg-text-muted);
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.rg-article__dates time { color: var(--rg-text); font-weight: 500; }
.rg-article__meta-sep { color: var(--tm-gray-300); font-weight: 400; }
.rg-article__updated { color: var(--rg-text-faint); }

/* ---------- Prose (article body) ---------- */
.rg-prose {
  font-size: 18px;
  line-height: 1.7;
  counter-reset: section;
}
.rg-prose > * + * { margin-top: 1.3em; }

/* Drop cap on first paragraph — magazine signal. Hidden on small screens
   where a 4em cap would dominate a narrow column. */
.rg-prose > p:first-of-type::first-letter {
  float: left;
  font-size: 4.2em;
  line-height: 0.88;
  font-weight: 800;
  color: var(--tm-yellow);
  margin: 0.04em 0.12em 0 -0.02em;
  padding: 0;
  font-feature-settings: "lnum";
}

/* H2 — numbered section header. Section number sits above as its own line. */
.rg-prose h2 {
  margin-top: 2.6em;
  font-size: clamp(26px, 2.4vw, 32px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.015em;
  counter-increment: section;
}
.rg-prose h2::before {
  content: counter(section, decimal-leading-zero);
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--tm-yellow);
  margin-bottom: 10px;
  font-feature-settings: "tnum";
  line-height: 1;
}
/* Paragraph that follows an h2 should hug the heading — collapse the prose
   default 1.3em spacer so the section title doesn't float in the gap. */
.rg-prose h2 + * { margin-top: 0.7em; }

.rg-prose h3 {
  margin-top: 2em;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--tm-gray-800);
}
.rg-prose h3 + * { margin-top: 0.6em; }

/* Lists, paragraphs */
.rg-prose p, .rg-prose ul, .rg-prose ol { margin: 0; }
.rg-prose ul, .rg-prose ol { padding-left: 1.5em; }
.rg-prose li { padding-left: 0.25em; }
.rg-prose li + li { margin-top: 0.5em; }
.rg-prose ul li::marker { color: var(--tm-yellow); }
.rg-prose ol li::marker { color: var(--tm-gray-500); font-weight: 700; }
.rg-prose strong { font-weight: 700; color: var(--tm-gray-950); }
.rg-prose em { font-style: italic; }

/* Links in body — subtle yellow underline */
.rg-prose a {
  color: var(--rg-text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: var(--tm-yellow);
}
.rg-prose a:hover {
  color: var(--rg-text);
  background: var(--tm-yellow);
  text-decoration-color: var(--tm-yellow);
}

/* Pull-quote — replaces banned left-stripe blockquote.
   Hanging quotation glyph + larger italic, no border-left. */
.rg-prose blockquote {
  margin: 2.2em 0;
  padding: 0;
  border: none;
  background: none;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.35;
  font-weight: 500;
  font-style: italic;
  color: var(--tm-gray-900);
  position: relative;
  padding-left: 36px;
}
.rg-prose blockquote::before {
  content: "\201C";
  position: absolute;
  left: -8px;
  top: -0.3em;
  font-size: 2.4em;
  line-height: 1;
  font-style: normal;
  color: var(--tm-yellow);
  font-weight: 800;
  font-family: Georgia, "Times New Roman", serif;
}
.rg-prose blockquote p { margin: 0; }
.rg-prose blockquote + p { margin-top: 2em; }

.rg-prose code {
  background: var(--tm-gray-100);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.rg-prose hr {
  margin: 2.4em auto;
  border: none;
  width: 80px;
  height: 4px;
  background: var(--tm-yellow);
  border-radius: 2px;
}
.rg-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 2em 0;
}
.rg-prose th, .rg-prose td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rg-border);
  text-align: left;
}
.rg-prose thead th {
  background: transparent;
  border-bottom: 2px solid var(--tm-gray-950);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tm-gray-700);
}
.rg-prose tbody tr:hover { background: var(--rg-bg-soft); }
.rg-prose img {
  display: block;
  margin: 2em auto;
  border-radius: 6px;
}

/* End-of-article yellow rule */
.rg-article__end-rule {
  margin: 72px auto 0;
  border: none;
  width: 64px;
  height: 3px;
  background: var(--tm-yellow);
  border-radius: 2px;
}

/* ---------- Related articles — SEO interlinking + reader continuation ---------- */
.rg-related {
  margin: 64px 0 0;
}
.rg-related__heading {
  margin: 0 0 24px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--rg-text-muted);
  position: relative;
  padding-left: 32px;
}
.rg-related__heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 22px;
  height: 4px;
  background: var(--tm-yellow);
  transform: translateY(-50%);
  border-radius: 1px;
}
.rg-related__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rg-related__item {
  border-top: 1px solid var(--rg-border);
}
.rg-related__item:last-child {
  border-bottom: 1px solid var(--rg-border);
}
.rg-related__item a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 6px 24px;
  padding: 18px 0;
  text-decoration: none;
  color: var(--rg-text);
  transition: color 150ms ease;
  position: relative;
}
.rg-related__item a::after {
  content: "→";
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 18px;
  color: var(--tm-yellow);
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.rg-related__item a:hover { color: var(--tm-gray-950); }
.rg-related__item a:hover::after { transform: translateX(6px); }
.rg-related__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.005em;
  grid-column: 1;
}
.rg-related__lede {
  font-size: 14px;
  line-height: 1.45;
  color: var(--rg-text-muted);
  grid-column: 1;
  /* Two-line clamp keeps cards uniform height when descriptions vary */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- End-of-article CTA — confident dark block ---------- */
.rg-cta-block {
  margin: 56px calc(var(--rg-article-pad-x) * -1) 0;
  padding: 56px var(--rg-article-pad-x);
  background: var(--tm-gray-950);
  color: var(--tm-gray-100);
  text-align: left;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}
.rg-cta-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--tm-yellow);
}
.rg-cta-block__kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--tm-yellow);
}
.rg-cta-block h3 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.rg-cta-block__lede {
  margin: 0 0 32px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--tm-gray-300);
}
.rg-cta--large {
  font-size: 16px;
  padding: 14px 26px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

/* ---------- Translations switcher (replaces inline-styled aside) ---------- */
.rg-translations {
  margin: 48px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--rg-border);
}
.rg-translations__label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--rg-text-faint);
}
.rg-translations__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 14px;
}
.rg-translations__list a {
  color: var(--rg-text);
  text-decoration: none;
  font-weight: 500;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease;
}
.rg-translations__list a:hover {
  border-bottom-color: var(--tm-yellow);
}

/* ----------------------------------------------------------------------------
 * Footer
 * ---------------------------------------------------------------------------- */
.rg-footer {
  margin-top: 64px;
  padding: 48px 24px 24px;
  background: var(--tm-gray-900);
  color: var(--tm-gray-300);
}
.rg-footer__inner {
  max-width: var(--rg-wide-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.rg-footer__col h4 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tm-yellow);
}
.rg-footer__col p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--tm-gray-400);
}
.rg-footer__col ul { list-style: none; margin: 0; padding: 0; }
.rg-footer__col li + li { margin-top: 8px; }
.rg-footer__col a {
  color: var(--tm-gray-300);
  text-decoration: none;
  font-size: 14px;
}
.rg-footer__col a:hover { color: var(--tm-yellow); }
.rg-footer__bottom {
  max-width: var(--rg-wide-width);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--tm-gray-800);
  font-size: 12px;
  color: var(--tm-gray-500);
}
.rg-footer__bottom p { margin: 0; }

/* ----------------------------------------------------------------------------
 * Mobile
 * ---------------------------------------------------------------------------- */
@media (max-width: 720px) {
  .rg-header__inner {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 10px 14px;
  }
  /* On mobile the lang strip drops to its own full-width row beneath
     the logo + CTA so the header doesn't get cramped. */
  .rg-header__right { flex-wrap: wrap; gap: 8px; }
  .rg-header__right::before { display: none; }
  .rg-header__right > .rg-langs {
    flex-basis: 100%; order: 3;
    justify-content: center;
    padding-top: 4px;
    border-top: 1px solid var(--rg-border, #eee);
  }
  .rg-nav {
    flex-basis: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .rg-nav ul { justify-content: flex-start; flex-wrap: nowrap; }
  .rg-nav a { white-space: nowrap; padding: 6px 10px; font-size: 14px; }
  .rg-logo__img { height: 36px; }
  .rg-logo__sub { display: none; }
  .rg-langs { font-size: 18px; gap: 0; }
  .rg-langs a { width: 28px; height: 28px; }

  .rg-hero { padding: 48px 20px 40px; }
  .rg-hero__lede { font-size: 17px; }

  .rg-categories,
  .rg-latest,
  .rg-list { padding: 40px 16px; }

  .rg-article {
    --rg-article-pad-x: 22px;
    padding: 32px var(--rg-article-pad-x) 64px;
  }
  .rg-breadcrumb { margin-bottom: 40px; font-size: 12px; }
  .rg-article__header { margin-bottom: 44px; padding-bottom: 32px; }
  .rg-article__kicker { gap: 14px; margin-bottom: 22px; font-size: 11px; }
  .rg-article__kicker .rg-article__category { padding-left: 24px; }
  .rg-article__kicker .rg-article__category::before { width: 16px; }
  .rg-article__header h1 {
    font-size: clamp(34px, 9vw, 44px);
    line-height: 1.08;
  }
  .rg-article__lede { font-size: 18px; margin-bottom: 24px; }
  .rg-prose { font-size: 17px; }
  .rg-prose h2 {
    font-size: 24px;
    margin-top: 2.4em;
  }
  .rg-prose h2::before { font-size: 13px; margin-bottom: 8px; }
  .rg-prose h3 { font-size: 19px; }
  /* Drop cap is dramatic on a 680px column, awkward on a 330px column.
     Disable below 480px and let the first paragraph read as a normal one. */
  .rg-prose > p:first-of-type::first-letter {
    float: none;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    margin: 0;
    font-weight: inherit;
  }
  .rg-prose blockquote { font-size: 20px; padding-left: 26px; margin: 1.8em 0; }
  .rg-prose blockquote::before { font-size: 1.8em; left: -2px; }

  .rg-article__end-rule { margin-top: 56px; width: 56px; }

  .rg-related { margin-top: 48px; }
  .rg-related__heading { font-size: 13px; padding-left: 26px; }
  .rg-related__heading::before { width: 18px; }
  .rg-related__item a { padding: 16px 0; gap: 4px 16px; }
  .rg-related__title { font-size: 17px; }
  .rg-related__lede { font-size: 13px; }
  .rg-related__item a::after { font-size: 16px; }

  .rg-cta-block {
    margin: 48px calc(var(--rg-article-pad-x) * -1) 0;
    padding: 44px var(--rg-article-pad-x);
  }
  .rg-cta-block h3 { font-size: 24px; }
  .rg-cta-block__lede { font-size: 16px; margin-bottom: 24px; }

  .rg-footer { padding: 32px 16px 16px; }
}

/* Tablet — keep drop cap but slightly smaller */
@media (min-width: 480px) and (max-width: 900px) {
  .rg-prose > p:first-of-type::first-letter {
    font-size: 3.6em;
    line-height: 0.9;
    margin: 0.06em 0.1em 0 -0.02em;
  }
}

/* ============================================================================
   RTL overrides — applied only when <html dir="rtl"> (Arabic locale).
   Pragmatic minimum: flips directional rules in the header, byline,
   article kicker, prose lists/blockquote, related-items, and CTA box.
   For an exhaustive audit we'd convert every left/right to inline-start/
   inline-end, but this set covers the visible LTR-bound elements.
   ============================================================================ */
html[dir="rtl"] body {
  font-family: "Montserrat", "Segoe UI", "Tahoma", sans-serif;
}

/* Header: language picker + CTA flip to the left side */
html[dir="rtl"] .rg-header__right { margin-right: 0; margin-left: 2px; }
html[dir="rtl"] .rg-header__right::before { margin-right: 0; margin-left: 2px; }

/* Article kicker — flip the yellow stripe before the category label */
html[dir="rtl"] .rg-article__kicker .rg-article__category {
  padding-left: 0;
  padding-right: 32px;
}
html[dir="rtl"] .rg-article__kicker .rg-article__category::before {
  left: auto;
  right: 0;
}

/* Byline: dates float to the start (left in RTL) */
html[dir="rtl"] .rg-article__dates { margin-left: 0; margin-right: auto; }

/* Prose — drop cap should be on the right */
html[dir="rtl"] .rg-prose > p:first-of-type::first-letter {
  float: right;
  margin: 0.04em 0 0 0.12em;
}

/* Lists */
html[dir="rtl"] .rg-prose ul,
html[dir="rtl"] .rg-prose ol { padding-left: 0; padding-right: 1.5em; }
html[dir="rtl"] .rg-prose li { padding-left: 0; padding-right: 0.25em; }

/* Pull-quote — flip the hanging quote glyph */
html[dir="rtl"] .rg-prose blockquote {
  padding-left: 0;
  padding-right: 36px;
}
html[dir="rtl"] .rg-prose blockquote::before {
  left: auto;
  right: -8px;
}

/* Related items + headings */
html[dir="rtl"] .rg-related__heading {
  padding-left: 0;
  padding-right: 32px;
  text-align: right;
}
html[dir="rtl"] .rg-related__heading::before {
  left: auto;
  right: 0;
}

/* CTA block — keep centered, but if the underline uses left, flip it */
html[dir="rtl"] .rg-cta-block { text-align: right; }

/* H3 accent bar flips */
html[dir="rtl"] .rg-prose h3 { padding-left: 0; padding-right: 18px; }
html[dir="rtl"] .rg-prose h3::before { left: auto; right: 0; }

/* FAQ accordion — open marker flips */
html[dir="rtl"] .rg-faq summary { padding-left: 0; padding-right: 32px; }
html[dir="rtl"] .rg-faq summary::before { left: auto; right: 8px; }

/* Tabular numerals should stay LTR even inside RTL paragraphs */
html[dir="rtl"] time,
html[dir="rtl"] .rg-article__readtime { direction: ltr; unicode-bidi: isolate; }

/* ---------- Prose refinements ---------- */

/* Paragraph differentiation — text-indent on consecutive paragraphs,
   reset after headings/tables/lists. */
.rg-prose > p + p {
  margin-top: 1.5em;
  text-indent: 1.5em;
}
.rg-prose > h2 + p,
.rg-prose > h3 + p,
.rg-prose > blockquote + p,
.rg-prose > table + p,
.rg-prose > ul + p,
.rg-prose > ol + p {
  text-indent: 0;
}

/* H3 subheadings — yellow accent bar + stronger weight. */
.rg-prose h3 {
  position: relative;
  padding-left: 18px;
  font-size: 22px;
  font-weight: 800;
  color: var(--tm-gray-900);
  letter-spacing: -0.01em;
}
.rg-prose h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--tm-yellow);
  border-radius: 2px;
}

/* Section numbers — oversized watermark counter above heading. */
.rg-prose h2::before {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--tm-yellow);
  margin-bottom: 14px;
  opacity: 0.65;
  font-feature-settings: "tnum";
}

/* Section borders — 1px rule between H2 sections for clear chapter breaks. */
.rg-prose h2 {
  position: relative;
  padding-top: 48px;
  border-top: 1px solid var(--rg-border);
  margin-top: 3.2em;
}
.rg-prose > h2:first-of-type {
  border-top: none;
  padding-top: 0;
}
.rg-prose h2 + * {
  margin-top: 0.65em;
}

/* Tables — rounded container, row stripes, softer header. */
.rg-prose table {
  border: 1px solid var(--rg-border);
  border-radius: 10px;
  overflow: hidden;
  margin: 2.4em 0;
}
.rg-prose th, .rg-prose td {
  padding: 14px 18px;
}
.rg-prose thead th {
  background: var(--tm-gray-50);
  border-bottom: 2px solid var(--tm-gray-300);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--tm-gray-600);
  padding: 16px 18px;
}
.rg-prose tbody tr:nth-child(even) {
  background: var(--rg-bg-soft);
}
.rg-prose tbody tr:last-child td {
  border-bottom: none;
}

/* Bold text in prose — slightly larger for scannability. */
.rg-prose strong {
  font-weight: 800;
  letter-spacing: -0.005em;
}

/* Lists — tighter integration, subtle left border on ul. */
.rg-prose ul {
  border-left: 2px solid var(--tm-gray-200);
  padding-left: 1.8em;
  margin-left: 0.2em;
}
.rg-prose li + li {
  margin-top: 0.6em;
}

/* Inline links — stronger hover with smooth yellow highlight. */
.rg-prose a:hover {
  background: var(--tm-yellow);
  border-radius: 2px;
  padding: 1px 2px;
  margin: -1px -2px;
}

@media (max-width: 720px) {
  .rg-prose > p + p {
    text-indent: 1.2em;
  }
  .rg-prose h2 {
    padding-top: 36px;
    margin-top: 2.6em;
  }
  .rg-prose h2::before {
    font-size: 24px;
    margin-bottom: 10px;
  }
  .rg-prose h3 {
    padding-left: 14px;
    font-size: 20px;
  }
  .rg-prose th, .rg-prose td {
    padding: 10px 12px;
    font-size: 14px;
  }
  .rg-prose ul {
    border-left-width: 1px;
    padding-left: 1.4em;
  }
}

/* ---------- Glossary (DefinedTermSet visible view) ---------- */
.rg-glossary { margin: 40px 0; }
.rg-glossary__cat { margin: 0 0 40px; }
.rg-glossary__cat h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-color, #0060AA);
  display: inline-block;
}
.rg-glossary dl { margin: 0; }
.rg-glossary dt {
  font-size: 17px;
  font-weight: 700;
  color: var(--tm-gray-900, #111);
  margin: 18px 0 4px;
  scroll-margin-top: 80px;
}
.rg-glossary dt:first-child { margin-top: 0; }
.rg-glossary dd {
  margin: 0 0 12px;
  padding: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--tm-gray-700, #444);
}
.rg-glossary__ext {
  color: var(--brand-color, #0060AA);
  text-decoration: none;
  font-size: 13px;
  vertical-align: middle;
  margin-left: 4px;
}

/* ---------- HowTo block ---------- */
.rg-howto { margin: 40px 0 0; padding: 28px 0 0; border-top: 1px solid var(--tm-gray-200, #eee); }
.rg-howto h2 { font-size: 22px; margin: 0 0 8px; font-weight: 700; }
.rg-howto__meta {
  font-size: 13px;
  color: var(--tm-gray-600, #666);
  margin: 0 0 20px;
}
.rg-howto__steps { margin: 0; padding-left: 0; list-style: none; counter-reset: howto; }
.rg-howto__steps li {
  position: relative;
  padding: 14px 0 14px 56px;
  border-top: 1px solid var(--tm-gray-100, #f3f3f3);
  counter-increment: howto;
}
.rg-howto__steps li:first-child { border-top: 0; }
.rg-howto__steps li::before {
  content: counter(howto);
  position: absolute;
  left: 0; top: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--brand-color, #0060AA);
  color: #fff;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.rg-howto__steps h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 4px 0 4px;
}
.rg-howto__steps p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--tm-gray-700, #444);
}

/* ---------- Pillar (homepage editorial hub body) ---------- */
.rg-pillar {
  padding: 32px 0 16px;
  border-top: 1px solid var(--tm-gray-200, #eee);
}
.rg-pillar__inner {
  max-width: var(--rg-content-width, 1000px);
  margin: 0 auto;
  padding: 0 24px;
}
.rg-pillar h2 {
  font-size: clamp(22px, 2.2vw, 28px);
  margin: 32px 0 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.rg-pillar h3 {
  font-size: 18px;
  margin: 24px 0 8px;
  font-weight: 700;
}
.rg-pillar p { margin: 0 0 14px; line-height: 1.7; font-size: 16px; }
.rg-pillar ul, .rg-pillar ol { margin: 0 0 14px 24px; }
.rg-pillar li { margin: 6px 0; line-height: 1.65; }
.rg-pillar a {
  color: var(--brand-color, #0060AA);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Sources / citations block (E-E-A-T signal) ---------- */
.rg-sources, .rg-updates {
  margin: 40px 0 0;
  padding: 24px 28px;
  background: var(--tm-gray-50, #fafafa);
  border-radius: 6px;
}
.rg-sources h2, .rg-updates h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--tm-gray-700, #444);
  margin: 0 0 14px;
}
.rg-sources ul, .rg-updates ul {
  margin: 0; padding: 0; list-style: none;
}
.rg-sources li, .rg-updates li {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--tm-gray-700, #444);
  padding-left: 18px;
  position: relative;
}
.rg-sources li::before, .rg-updates li::before {
  content: ""; position: absolute; left: 4px; top: 9px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--brand-color, #0060AA);
}
.rg-sources a {
  color: var(--brand-color, #0060AA);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rg-updates time {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--brand-color, #0060AA);
}

/* ---------- Author bio (E-E-A-T signal block) ---------- */
.rg-author-bio {
  margin: 48px 0 0;
  padding: 20px 24px;
  background: var(--tm-gray-50, #fafafa);
  border-left: 3px solid var(--brand-color, #0060AA);
  border-radius: 4px;
}
.rg-author-bio__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-color, #0060AA);
  margin-bottom: 6px;
}
.rg-author-bio p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--tm-gray-700, #444);
}
.rg-author-bio__link {
  margin-top: 10px !important;
  font-size: 13px;
}
.rg-author-bio__link a {
  color: var(--brand-color, #0060AA);
  font-weight: 600;
  text-decoration: none;
}
.rg-author-bio__link a:hover { text-decoration: underline; }
.rg-article__reviewed {
  font-size: 13px;
  color: var(--tm-gray-600, #666);
}
.rg-article__author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.rg-article__reviewer {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--tm-gray-600, #666);
  font-style: italic;
}
.rg-article__reviewer a {
  color: var(--brand-color, #0060AA);
  font-weight: 600;
  text-decoration: none;
  font-style: normal;
}
.rg-article__reviewer a:hover { text-decoration: underline; }

/* ---------- FAQ block (Step 6 of publishing gate) ---------- */
.rg-faq {
  margin: 48px 0 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--tm-gray-200);
}
.rg-faq h2 {
  font-size: 24px;
  margin: 0 0 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.rg-faq details {
  border-bottom: 1px solid var(--tm-gray-200);
  padding: 16px 0;
}
.rg-faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  position: relative;
  padding-left: 32px;
  color: var(--rg-text);
}
.rg-faq summary::-webkit-details-marker { display: none; }
.rg-faq summary::before {
  content: "+";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  font-size: 18px;
  color: var(--tm-yellow);
  font-weight: 800;
  line-height: 1;
}
.rg-faq details[open] summary::before { content: "−"; }
.rg-faq__answer {
  padding: 12px 0 4px 32px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--rg-text-muted);
}
.rg-faq__answer p { margin: 0 0 10px; }
