/* ProLend International: the guides. The hub, every guide and their component
 * vocabulary (answer capsule, key facts, callout, worked example, comparison table,
 * FAQ, sources), on the same tokens as the home page: night-navy stages, paper for
 * reading, the accent blue for labels and links, green kept for money and action.
 * Generated by _src/assemble-assets.mjs. Shared with the ProLend South Africa guides. */

/* ── the opener ───────────────────────────────────────────────────────────── */
.page-hero { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(110% 120% at 90% 0%, #14233a 0%, var(--night) 62%); color: var(--on-dark); padding: clamp(40px, 6vw, 72px) 0 clamp(44px, 6vw, 72px); border-bottom: 1px solid var(--line-dark); }
.page-hero .ribbon { top: 38%; height: 80%; opacity: 0.55; }
.page-hero .wrap > * { max-width: 860px; }
.crumb { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--on-dark-faint); margin-bottom: 26px; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumb a { color: var(--on-dark-soft); text-decoration: none; }
.crumb a:hover { color: #fff; }
.crumb span { margin: 0 9px; opacity: 0.6; }
.page-hero .kicker { margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; color: #fff; }
.page-hero .lede { margin-top: 22px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--on-dark-soft); max-width: 40em; }
.meta-line { margin-top: 22px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; line-height: 1.8; color: var(--on-dark-faint); }
.meta-line a { color: var(--mint); text-decoration: none; }
.meta-line span { margin: 0 8px; opacity: 0.5; }
.meta-line .rev { opacity: 1; margin: 0; color: var(--on-dark-soft); }
.nav a[aria-current="page"] { color: #fff; }

.read-hero h1 { font-size: clamp(32px, 4.2vw, 54px); max-width: 20em; }
.read-hero .lede { max-width: 42em; }

/* ── three zones: contents · reading column · rail ───────────────────────── */
.read-shell {
  display: grid;
  grid-template-columns: 200px minmax(0, 700px) 250px;
  grid-template-areas: "toc body rail";
  justify-content: space-between;
  column-gap: 48px;
  align-items: start;
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(64px, 8vw, 104px);
}
.read-shell.no-toc { grid-template-columns: minmax(0, 760px) 250px; grid-template-areas: "body rail"; }
.article { grid-area: body; min-width: 0; }

.article-toc { grid-area: toc; position: sticky; top: 100px; align-self: start; }
.article-toc .tk { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.article-toc nav { display: flex; flex-direction: column; }
.article-toc nav a { padding: 8px 0 8px 16px; border-left: 2px solid var(--line); font-size: 14px; line-height: 1.35; color: var(--ink-soft); text-decoration: none; transition: border-color 150ms, color 150ms; }
.article-toc nav a:hover { border-left-color: var(--accent); color: var(--ink); }
.article-toc nav a.active { border-left-color: var(--green); color: var(--ink); font-weight: 600; }

.article-rail { grid-area: rail; position: sticky; top: 100px; align-self: start; display: flex; flex-direction: column; gap: 14px; }
.rail-card { border: 1px solid var(--line); border-radius: 6px; background: var(--card); padding: 22px; }
.rail-card.dark { background: linear-gradient(160deg, var(--navy-3), var(--navy)); border-color: rgba(143, 209, 162, 0.22); color: var(--on-dark); }
.rail-card .rk { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.rail-card.dark .rk { color: var(--mint); }
.rail-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.22; }
.rail-card.dark h3 { color: #fff; }
.rail-card p { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.rail-card.dark p { color: var(--on-dark-soft); }
.rail-card .btn { width: 100%; margin-top: 16px; min-height: 44px; padding: 0 14px; font-size: 14px; background: var(--green); color: #fff; }
.rail-card .btn:hover { background: var(--green-deep); }
.rail-card .btn.ghost { margin-top: 8px; background: transparent; color: var(--ink); border-color: var(--line); }
.rail-card .btn.ghost:hover { border-color: var(--ink); }
.rail-card.dark .btn.ghost { color: var(--on-dark); border-color: rgba(255, 255, 255, 0.28); }
.rail-card.dark .btn.ghost:hover { border-color: var(--mint); color: #fff; }

/* ── the reading column ──────────────────────────────────────────────────── */
.article-body h2 { margin-top: 48px; font-size: clamp(24px, 2.4vw, 29px); font-weight: 750; letter-spacing: -0.025em; line-height: 1.15; scroll-margin-top: 100px; }
.article-body h3 { margin-top: 30px; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.article-body p { margin-top: 16px; font-size: 17.5px; line-height: 1.75; }
.article-body ul, .article-body ol { margin-top: 16px; padding-left: 22px; list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-top: 8px; font-size: 17.5px; line-height: 1.7; }
.article-body li::marker { color: var(--green); }
.article-body strong { font-weight: 650; }
.article-body a, .article-sources a, .callout a, .ratenote a, .article-faq a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(47, 88, 119, 0.32); text-underline-offset: 3px; }
.article-body a:hover { text-decoration-color: var(--accent); }
[id] { scroll-margin-top: 100px; }

/* the section label above each H2. Overrides the site's hero .kicker */
.article-body .kicker { display: block; margin: 64px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.article-body .kicker + h2 { margin-top: 10px; }

.keytakeaway { margin-top: 0; padding: 24px 26px; background: var(--navy); color: var(--on-dark); border-radius: 6px; border-left: 3px solid var(--green); }
.keytakeaway .kt { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mint); margin: 0 0 10px; }
.keytakeaway p { margin: 0; font-size: 17px; line-height: 1.62; color: var(--on-dark); }
.keytakeaway p + p { margin-top: 10px; }
.keytakeaway strong { color: #fff; }

.keyfacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 28px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.keyfacts > div { background: var(--card); padding: 18px 20px; }
.keyfacts .n { margin: 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.keyfacts .v { margin: 6px 0 0; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; color: var(--ink); }

.callout { margin-top: 30px; padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 4px; }
.callout .ck { margin: 0 0 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.callout p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--ink-soft); }
.callout p + p { margin-top: 10px; }
.callout strong { color: var(--ink); }

.pullquote { margin: 44px 0 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--green); }
.pullquote p { margin: 0; font-size: clamp(21px, 2.2vw, 25px); font-weight: 650; letter-spacing: -0.02em; line-height: 1.36; color: var(--ink); }

.example { margin-top: 34px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.example .eh { padding: 13px 22px; background: var(--navy); color: var(--on-dark); font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.example .eb { padding: 18px 22px 20px; }
.example .ek { margin: 0 0 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.example .row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.example .row:last-of-type { border-bottom: 0; }
.example .row .l { color: var(--ink-soft); }
.example .row .r { font-weight: 650; color: var(--ink); font-variant-numeric: proportional-nums; text-align: right; }
.example .row.total, .example .row.tot { border-top: 2px solid var(--ink); border-bottom: 0; margin-top: 4px; }
.example .row.total .l, .example .row.total .r, .example .row.tot .l, .example .row.tot .r { color: var(--green-deep); font-weight: 750; }
.example .fine { margin: 12px 0 0; font-family: var(--mono); font-size: 11px; line-height: 1.55; color: var(--ink-faint); }

.ratenote { margin-top: 30px; padding: 14px 18px; border-left: 3px solid var(--green); background: rgba(49, 160, 83, 0.07); border-radius: 4px; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }
.ratenote strong { color: var(--ink); font-weight: 650; }

.article-body .table-wrap { margin-top: 24px; overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
.article-body table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 15.5px; }
.article-body thead th { text-align: left; padding: 12px 16px; background: var(--navy); color: var(--on-dark-soft); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }
.article-body tbody th { text-align: left; padding: 13px 16px; font-weight: 650; color: var(--ink); border-bottom: 1px solid var(--line); vertical-align: top; width: 32%; }
.article-body tbody td { padding: 13px 16px; color: var(--ink-soft); border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; font-variant-numeric: proportional-nums; }
.article-body tbody tr:last-child th, .article-body tbody tr:last-child td { border-bottom: 0; }

.inline-cta { margin-top: 48px; padding: 26px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: radial-gradient(130% 160% at 0% 100%, #173a2a 0%, var(--navy) 60%); border-radius: 6px; color: var(--on-dark); }
.inline-cta .t { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.35; color: #fff; max-width: 34ch; }
.inline-cta a { flex: none; display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; background: var(--green); color: #fff; border-radius: var(--r); font-weight: 600; font-size: 15px; text-decoration: none; transition: background 160ms; }
.inline-cta a:hover { background: var(--green-deep); }

.article-faq { margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line); }
.article-faq h2 { margin: 0 0 12px; font-size: clamp(24px, 2.4vw, 29px); font-weight: 750; letter-spacing: -0.025em; }
.article-faq details { border-top: 1px solid var(--line); }
.article-faq details:last-of-type { border-bottom: 1px solid var(--line); }
.article-faq summary { list-style: none; cursor: pointer; position: relative; padding: 18px 40px 18px 0; font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.article-faq summary::-webkit-details-marker { display: none; }
.article-faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform 200ms; }
.article-faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.article-faq summary:hover { color: var(--accent); }
.article-faq .a { padding: 0 24px 20px 0; font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
.article-faq .a p + p { margin-top: 10px; }

.related { margin-top: 56px; }
.related > .rk, .related > h2 { margin: 0 0 16px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; }
.related > a { display: block; padding: 13px 0; border-top: 1px solid var(--line); font-size: 17px; font-weight: 650; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.related > a:last-child { border-bottom: 1px solid var(--line); }
.related > a:hover { color: var(--accent); }

.article-sources { margin-top: 44px; padding: 22px 24px; background: var(--paper-2); border-radius: 6px; }
.article-sources .sk { margin: 0 0 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.article-sources ul { padding-left: 18px; list-style: disc; }
.article-sources li { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.article-sources .note { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--ink-faint); }

.article-disc { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; line-height: 1.65; color: var(--ink-faint); }

/* ── guide cards (hub and related reading) ───────────────────────────────── */
.learn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; grid-auto-rows: 1fr; }
.related .learn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.learn-card { display: flex; flex-direction: column; padding: 22px 24px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--ink); transition: border-color 200ms, transform 200ms, box-shadow 200ms; }
.learn-card:hover { border-color: rgba(15, 24, 35, 0.28); transform: translateY(-3px); box-shadow: 0 24px 48px -32px rgba(15, 24, 35, 0.4); }
.learn-card .k { margin: 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.learn-card h3 { margin-top: 12px; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.22; }
.learn-card p { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.article-body .learn-card p { font-size: 14.5px; line-height: 1.5; }

/* ── the hub ─────────────────────────────────────────────────────────────── */
.read-hub { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(64px, 8vw, 104px); }
.learn-startline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: center; padding: 30px 32px; border-radius: 6px; text-decoration: none; color: var(--on-dark); background: radial-gradient(130% 180% at 100% 0%, #173a2a 0%, var(--navy) 60%); border: 1px solid rgba(143, 209, 162, 0.22); transition: border-color 200ms, transform 200ms; }
.learn-startline:hover { border-color: var(--mint); transform: translateY(-2px); }
.learn-startline .k { margin: 0 0 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mint); }
.learn-startline h2 { margin: 0 0 8px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 750; letter-spacing: -0.025em; color: #fff; }
.learn-startline p { margin: 0; color: var(--on-dark-soft); max-width: 60ch; }
.learn-startline .go { display: inline-flex; align-items: center; min-height: 50px; padding: 0 24px; background: var(--green); color: #fff; border-radius: var(--r); font-weight: 600; white-space: nowrap; }
.learn-group { margin-top: 64px; }
.learn-group > h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); font-size: clamp(22px, 2.4vw, 28px); font-weight: 750; letter-spacing: -0.025em; }


/* ── this site's additions ───────────────────────────────────────────────── */
.rail-notes ul { margin-top: 4px; }
.rail-notes li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); }
.rail-notes li b { color: var(--green-deep); }
.article-faq .a p { margin: 0; }
.read-hub > .article-disc { margin-top: 72px; }
.nf-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.read-hub > .learn-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .read-hub > .learn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .read-hub > .learn-grid { grid-template-columns: 1fr; } }
/* a group of two shares the row; never an empty third column */
.read-hub .learn-grid:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.read-hub .learn-grid:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 1180px) {
  .read-shell { grid-template-columns: minmax(0, 720px) 250px; grid-template-areas: "body rail"; justify-content: center; }
  .article-toc { display: none; }
}
@media (max-width: 900px) {
  .read-shell { grid-template-columns: minmax(0, 1fr); grid-template-areas: "body" "rail"; }
  .article-rail { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 48px; }
  .learn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .learn-grid, .related .learn-grid, .keyfacts { grid-template-columns: 1fr; }
  .learn-grid { grid-auto-rows: auto; }
  .article-body p, .article-body li { font-size: 17px; }
  .learn-startline { grid-template-columns: 1fr; padding: 24px; }
  .learn-startline .go { justify-content: center; }
  .example .row { flex-direction: column; gap: 2px; }
  .example .row .r { text-align: left; }
}

/* long German compounds (Wertpapierdienstleistungen) must wrap on phones rather than push the page sideways */
.article-body a, .article-sources a, .read-hero a { overflow-wrap: break-word; }
/* long button labels (German) wrap on phones instead of pushing the page sideways */
@media (max-width: 520px) { .learn-startline .go, .inline-cta a { flex: 0 1 auto; max-width: 100%; white-space: normal; text-align: center; padding: 12px 20px; } }
