:root {
  --bg: #f6f7fb; --card: #ffffff; --text: #141824; --muted: #5d6475; --line: #e3e6ef;
  --accent: #1d3a8a; --accent-2: #2f56c5; --accent-soft: #e8edfb; --ok: #1f7a4a; --ok-soft: #e4f4ea;
  --ro: #1d3a8a; --int: #8a4b1d; --badge: #c2410c;
  --shadow: 0 1px 2px rgba(20, 24, 36, .06), 0 4px 16px rgba(20, 24, 36, .05);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1117; --card: #171b24; --text: #e9ecf3; --muted: #9aa3b5; --line: #262c3a;
    --accent: #8fa8ff; --accent-2: #a9bcff; --accent-soft: #1d2540; --ok: #6fd39c; --ok-soft: #15291e;
    --ro: #8fa8ff; --int: #f0ae7a; --badge: #fb923c; --shadow: none;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
a { color: var(--accent-2); }
.top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; }
.logo {
  width: 30px; height: 30px; border-radius: 8px; background: #1d3a8a; color: #fff; display: grid; place-items: center;
  font-size: 18px; font-weight: 800;
}
.date { color: var(--muted); font-size: 14px; }
main { max-width: 720px; margin: 0 auto; padding: 14px 16px 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 0 0 14px; box-shadow: var(--shadow); }
.muted { color: var(--muted); }
h1.page { font-size: 22px; line-height: 1.25; margin: 4px 0 12px; }
.doc h1 { font-size: 22px; line-height: 1.25; margin: 0 0 6px; }
.doc h2 { font-size: 18px; line-height: 1.3; margin: 22px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.doc h2:first-of-type { border-top: 0; padding-top: 0; }
.doc h3 { font-size: 16px; margin: 16px 0 6px; }
.doc p { margin: 8px 0; }
.doc ul, .doc ol { padding-left: 20px; margin: 8px 0; }
.doc li { margin: 6px 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.doc blockquote { margin: 10px 0; padding: 4px 12px; border-left: 3px solid var(--accent); color: var(--muted); }
.doc a { word-break: break-word; }
.doc img { max-width: 100%; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 999px; margin-right: 6px; vertical-align: 2px; }
.tag.ro { background: var(--accent-soft); color: var(--ro); }
.tag.int { background: color-mix(in srgb, var(--int) 16%, transparent); color: var(--int); }
.reading { list-style: none; padding-left: 0 !important; }
.reading li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.reading li:last-child { border-bottom: 0; }
.reading input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.reading li.done > span { opacity: .55; text-decoration: line-through; }
.btn {
  display: block; width: 100%; min-height: 50px; border: 0; border-radius: 12px; font: inherit; font-weight: 650;
  background: var(--accent); color: #fff; padding: 12px 16px; cursor: pointer;
}
@media (prefers-color-scheme: dark) { .btn { color: #0e1117; } }
.btn.secondary { background: var(--accent-soft); color: var(--accent); }
.btn.done { background: var(--ok-soft); color: var(--ok); }
.btn:disabled { opacity: .8; cursor: default; }
.btn + .btn { margin-top: 10px; }
.list { list-style: none; padding: 0; margin: 0; }
.list li a { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 14px 4px; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line); min-height: 50px; }
.list li:last-child a { border-bottom: 0; }
.list .sub { color: var(--muted); font-size: 13px; }
.badge { background: var(--badge); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 7px; flex: none; }
h2.sec { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 4px 6px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); min-height: 50px; }
.row:last-child { border-bottom: 0; }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: .2s; }
.switch span::before { content: ""; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::before { transform: translateX(20px); }
input.pass { width: 100%; font: inherit; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); margin: 8px 0 12px; }
.err { color: #c0262d; min-height: 1.4em; }
.back { display: inline-block; margin: 0 0 10px; text-decoration: none; font-weight: 600; }
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 0 7px; font-size: 11.5px; color: var(--muted); text-decoration: none; min-height: 56px; }
.tabs a .ic { font-size: 19px; line-height: 1.2; }
.tabs a.on { color: var(--accent); font-weight: 650; }
.answer { margin-top: 12px; padding: 12px; border-radius: 10px; background: var(--accent-soft); }

/* ===== Știrile zilei: magazine layout (digest.js) + glossary (glosar.js) ===== */
:root {
  --serif: ui-serif, "New York", "Iowan Old Style", "Charter", Georgia, serif;
  --putere: #2f5bea; --justitie: #7c3aed; --bani: #0e9f6e; --bucuresti: #e07a10;
  --partide: #db2777; --international: #0891b2; --aparare: #475569; --societate: #dc4c3e;
  --p-psd: #e2001a; --p-pnl: #ffd200; --p-pnl-ink: #1d3a8a; --p-usr: #0090d0; --p-aur: #a9761b; --p-udmr: #2e7d32;
  --p-sos: #6d28d9; --p-pot: #9333ea; --p-pace: #64748b; --p-alt: #64748b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --putere: #7f9cff; --justitie: #b18cff; --bani: #3fd19b; --bucuresti: #ffad5c;
    --partide: #ff7ab3; --international: #4fd1e8; --aparare: #a3b2c9; --societate: #ff8a7a;
  }
}
.top-r { display: flex; align-items: center; gap: 10px; }
.gl-btn { text-decoration: none; font-size: 20px; line-height: 1; padding: 6px; border-radius: 10px; background: var(--accent-soft); }

.digest { --t: var(--putere); }
.d-head { padding: 6px 2px 4px; }
.d-kicker { color: var(--accent); font-weight: 700; font-size: 15px; }
.d-title { font-family: var(--serif); font-size: 34px; line-height: 1.08; letter-spacing: -.01em; margin: 2px 0 6px; }
.d-meta { color: var(--muted); font-size: 14.5px; margin: 0 0 12px; }
.progress { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.progress .bar { flex: 1; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress .bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent-2); transition: width .45s cubic-bezier(.2,.8,.2,1); }
.progress.full .bar i { background: var(--ok); }
.ptxt { font-size: 13.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }

.tldr { background: var(--accent-soft); border-radius: 18px; padding: 16px 18px 10px; margin: 0 0 16px; }
.tldr h2 { font-family: var(--serif); font-size: 21px; margin: 0 0 6px; }
.tldr ul { list-style: none; padding: 0; margin: 0; }
.tldr li { padding: 9px 0; border-top: 1px solid color-mix(in srgb, var(--accent) 14%, transparent); font-size: 16.5px; line-height: 1.45; cursor: pointer; }
.tldr li:first-child { border-top: 0; }

.number { background: #1d3a8a; color: #fff; border-radius: 22px; padding: 20px 20px 18px; margin: 0 0 16px; }
.number .n-lbl { opacity: .8; font-weight: 600; font-size: 14px; }
.number .n-big { font-family: var(--serif); font-size: 72px; line-height: 1; font-weight: 700; letter-spacing: -.02em; margin: 6px 0 8px; }
.number p { margin: 0; font-size: 16.5px; line-height: 1.45; }
.number .term { color: #fff; }
@media (prefers-color-scheme: dark) { .number { background: #22408f; } }

.story { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px 12px 22px; margin: 0 0 14px; box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 70px; }
.story::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--t); }
.story.t-putere { --t: var(--putere); } .story.t-justitie { --t: var(--justitie); } .story.t-bani { --t: var(--bani); }
.story.t-bucuresti { --t: var(--bucuresti); } .story.t-partide { --t: var(--partide); } .story.t-international { --t: var(--international); }
.story.t-aparare { --t: var(--aparare); } .story.t-societate { --t: var(--societate); }
.s-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--t) 13%, transparent); color: var(--t); }
.chip.scope { background: var(--bg); color: var(--muted); }
.chip.when { background: transparent; color: var(--muted); font-weight: 600; padding-left: 2px; }
.chip.upd { background: #fde68a; color: #7a4b00; }
.pips { display: inline-flex; gap: 3px; margin-left: auto; }
.pips i { width: 14px; height: 6px; border-radius: 3px; background: var(--line); }
.pips i.on { background: var(--t); }
.s-title { font-family: var(--serif); font-size: 24px; line-height: 1.2; letter-spacing: -.005em; margin: 0 0 8px; }
.s-lead { font-size: 18px; line-height: 1.45; font-weight: 560; margin: 0 0 12px; }
.s-why { background: color-mix(in srgb, var(--t) 8%, transparent); border-radius: 14px; padding: 10px 14px; margin: 0 0 10px; }
.s-why p, .s-block p, .legal p { margin: 2px 0 0; }
.s-lbl { font-size: 13.5px; font-weight: 750; color: var(--t); }
.s-block { margin: 12px 0; }
.concept { font-size: 15.5px; margin: 10px 0; color: var(--muted); }
.concept span { font-weight: 700; color: var(--text); }
.camps { list-style: none; padding: 0; margin: 6px 0 0; }
.camps li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-top: 1px dashed var(--line); }
.camps li:first-child { border-top: 0; }
.party { flex: none; font-size: 12.5px; font-weight: 800; padding: 3px 8px; border-radius: 8px; color: #fff; background: var(--p-alt); max-width: 45%; }
.party.p-psd { background: var(--p-psd); } .party.p-pnl { background: var(--p-pnl); color: var(--p-pnl-ink); } .party.p-usr { background: var(--p-usr); }
.party.p-aur { background: var(--p-aur); } .party.p-udmr { background: var(--p-udmr); } .party.p-sos { background: var(--p-sos); }
.party.p-pot { background: var(--p-pot); } .party.p-pace { background: var(--p-pace); }
.say { font-size: 15.5px; line-height: 1.45; }
.legal { background: #fff4e5; border-radius: 12px; padding: 10px 14px; margin: 12px 0; color: #5b3a00; }
.legal .s-lbl { color: #8a5a00; }
@media (prefers-color-scheme: dark) { .legal { background: #2e2412; color: #f3dcae; } .legal .s-lbl { color: #ffc56b; } }
.sources { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 2px; }
.src { font-size: 13.5px; font-weight: 650; text-decoration: none; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); background: var(--bg); }
.s-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.linkbtn { border: 0; background: none; font: inherit; font-weight: 650; color: var(--t); padding: 8px 0; cursor: pointer; }
.readbtn { border: 0; font: inherit; font-size: 15px; font-weight: 700; padding: 9px 16px; border-radius: 999px; background: var(--bg); color: var(--muted); cursor: pointer; min-height: 40px; }
.readbtn.on { background: var(--ok-soft); color: var(--ok); }
.readbtn.pop { animation: pop .35s ease; }
@keyframes pop { 40% { transform: scale(1.12); } }
.story.read .s-title, .story.read .s-lead, .story.read .s-why { opacity: .55; }
.story.read::before { background: var(--ok); }

.who { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px 18px; margin: 0 0 14px; }
.who .n-lbl, .reading-box h2, .plain h2 { font-family: var(--serif); font-size: 21px; font-weight: 700; margin: 0 0 8px; color: var(--text); }
.person { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.person p { margin: 2px 0 0; color: var(--muted); font-size: 15.5px; }
.avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent-2), var(--partide)); }
.reading-box, .plain { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px 18px; margin: 0 0 14px; }
.reading-box .reading { margin: 0; }
.rd { display: flex; flex-direction: column; gap: 2px; }
.rd-t { font-weight: 650; line-height: 1.35; }
.rd-t a { color: var(--text); text-decoration: none; }
.rd-m { color: var(--muted); font-size: 14px; }
.rd-m b { color: var(--accent); }
.plain ul { padding-left: 18px; margin: 4px 0; }

/* tappable terms */
/* tappable words: one quiet signal everywhere — a fine dotted line in the text's own colour, faint enough to read past */
.term { all: unset; cursor: pointer; color: inherit; text-decoration: underline dotted; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, currentColor 38%, transparent); border-radius: 4px; -webkit-tap-highlight-color: transparent; transition: background .15s; }
.term:focus-visible { outline: 2px solid var(--accent-2); }
.term:active, .term.tapped { background: color-mix(in srgb, var(--accent-2) 22%, transparent); }

/* bottom sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; }
.sheet-bg { position: absolute; inset: 0; background: rgba(8, 15, 35, .42); opacity: 0; transition: opacity .2s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 78vh; overflow-y: auto; background: var(--card); border-radius: 24px 24px 0 0; padding: 8px 20px calc(22px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .22s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -10px 40px rgba(8,15,35,.25); max-width: 720px; margin: 0 auto; }
.sheet-wrap.open .sheet { transform: none; }
.sheet-wrap.open .sheet-bg { opacity: 1; }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 4px auto 6px; }
.sh-top { display: flex; justify-content: space-between; align-items: center; min-height: 36px; }
.sh-back { border: 0; background: none; font: inherit; color: var(--accent-2); font-weight: 650; padding: 6px 0; cursor: pointer; max-width: 80%; text-align: left; }
.sh-x { margin-left: auto; border: 0; background: var(--bg); color: var(--muted); width: 34px; height: 34px; border-radius: 50%; font-size: 15px; cursor: pointer; }
.sh-tip { display: inline-block; font-size: 12.5px; font-weight: 750; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.tip-om { background: color-mix(in srgb, var(--partide) 14%, transparent); color: var(--partide); }
.tip-institutie { background: color-mix(in srgb, var(--putere) 14%, transparent); color: var(--putere); }
.tip-document, .tip-program { background: color-mix(in srgb, var(--bani) 14%, transparent); color: var(--bani); }
.tip-loc { background: color-mix(in srgb, var(--bucuresti) 14%, transparent); color: var(--bucuresti); }
.sh-title { font-family: var(--serif); font-size: 28px; line-height: 1.15; margin: 8px 0 8px; }
.sh-text { font-size: 18px; line-height: 1.5; margin: 0 0 10px; }
.sh-ex { color: var(--muted); font-size: 16px; border-left: 3px solid var(--line); padding-left: 10px; }
.sh-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sh-pill { font-size: 14.5px; font-weight: 650; padding: 8px 12px; border-radius: 12px; background: var(--bg); color: var(--text); text-decoration: none; }

/* glossary page */
.search { margin-top: 2px; }
.glist { list-style: none; padding: 0; margin: 8px 0 0; }
.gitem { all: unset; display: block; width: 100%; box-sizing: border-box; cursor: pointer; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 0 0 8px; }
.gitem strong { display: block; font-family: var(--serif); font-size: 19px; margin: 6px 0 2px; }
.gdesc { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .progress .bar i, .sheet, .sheet-bg { transition: none; }
  .readbtn.pop { animation: none; }
}
.say .note { color: var(--muted); font-weight: 600; }

/* ===== v2: cover, hero story, people, quiz, stories mode ===== */
body.no-scroll { overflow: hidden; }
.cover { --t: var(--putere); position: relative; overflow: hidden; border-radius: 26px; padding: 22px 20px 18px; margin: 4px 0 12px; color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--t) 70%, #fff 0%) 0%, transparent 60%),
              linear-gradient(150deg, color-mix(in srgb, var(--t) 85%, #000 0%) 0%, #14266b 100%); }
.cover.t-putere { --t: var(--putere); } .cover.t-justitie { --t: var(--justitie); } .cover.t-bani { --t: var(--bani); }
.cover.t-bucuresti { --t: var(--bucuresti); } .cover.t-partide { --t: var(--partide); } .cover.t-international { --t: var(--international); }
.cover.t-aparare { --t: var(--aparare); } .cover.t-societate { --t: var(--societate); }
.cover::after { content: "Ș"; position: absolute; right: -14px; bottom: -58px; font-family: var(--serif); font-size: 220px; font-weight: 800; color: rgba(255,255,255,.08); line-height: 1; pointer-events: none; }
.c-day { font-family: var(--serif); font-size: 46px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.c-date { margin-top: 6px; font-size: 16px; opacity: .9; }
.c-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 16px; }
.c-stats span { font-size: 14px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); }
.c-play { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; padding: 12px 20px 12px 14px; font: inherit; font-weight: 750; font-size: 16.5px; color: #14266b; background: #fff; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.c-play span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #14266b; color: #fff; font-size: 12px; padding-left: 2px; }

.story.hero { background: linear-gradient(160deg, color-mix(in srgb, var(--t) 14%, var(--card)) 0%, var(--card) 55%); border-color: color-mix(in srgb, var(--t) 30%, var(--line)); }
.story.hero .s-title { font-size: 28px; }

.people { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
.person-chip { all: unset; display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px 3px 3px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; font-weight: 650; cursor: pointer; }
.av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; flex: none; font-size: 11.5px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent-2), var(--partide)); }
.av img, .avatar img, .ph-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }
.avatar.has-img { background: var(--line); }
.person.tappable { cursor: pointer; border-radius: 14px; }
.person.tappable:active { background: var(--bg); }
.avatar { overflow: hidden; }

/* person sheet */
.ph-hero { display: flex; gap: 14px; align-items: center; margin: 4px 0 10px; }
.ph-photo { width: 84px; height: 84px; border-radius: 22px; flex: none; display: grid; place-items: center; overflow: hidden; font-size: 26px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent-2), var(--partide)); }
.ph-photo.wide { width: 112px; height: 136px; border-radius: 22px; }
.ph-id .sh-title { margin: 0 0 4px; font-size: 26px; }
.ph-fn { margin: 0 0 8px; color: var(--muted); font-size: 15px; line-height: 1.4; }
.ph-id .party { display: inline-block; }
.ph-lbl { margin-top: 14px; color: var(--accent-2); }
.timeline { list-style: none; margin: 8px 0 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); }
.timeline li { position: relative; margin: 0 0 12px; padding-left: 8px; font-size: 16px; line-height: 1.45; }
.timeline li::before { content: ""; position: absolute; left: -24px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 3px solid var(--accent-2); }
.timeline b { display: block; font-size: 13.5px; color: var(--accent-2); }
.gallery { display: flex; gap: 8px; overflow-x: auto; margin: 14px -20px 4px; padding: 0 20px; scroll-snap-type: x mandatory; }
.gallery figure { margin: 0; flex: none; width: 150px; height: 190px; border-radius: 16px; overflow: hidden; background: var(--bg); scroll-snap-align: start; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.credit { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }
.wikibox { margin: 12px 0 0; background: var(--bg); border-radius: 14px; padding: 10px 14px; }
.wikibox summary { font-weight: 700; cursor: pointer; }
.wikibox p { font-size: 15.5px; line-height: 1.5; color: var(--muted); }

/* quiz */
.quiz { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 16px 18px; margin: 0 0 14px; }
.quiz h2 { font-family: var(--serif); font-size: 24px; margin: 0; }
.q-sub { color: var(--muted); font-size: 14.5px; margin: 4px 0 10px; }
.q { border-top: 1px solid var(--line); padding: 12px 0; }
.q-n { font-size: 12.5px; font-weight: 750; color: var(--accent-2); }
.q-q { font-size: 17.5px; font-weight: 650; margin: 4px 0 10px; line-height: 1.4; }
.q-show { border: 0; font: inherit; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 12px; padding: 10px 14px; width: 100%; cursor: pointer; }
.q-a p { margin: 0 0 10px; background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.q-row { display: flex; gap: 8px; }
.q-btn { flex: 1; border: 0; font: inherit; font-weight: 700; border-radius: 12px; padding: 10px; cursor: pointer; background: var(--bg); color: var(--muted); }
.q.is-ok .q-btn.ok { background: var(--ok-soft); color: var(--ok); }
.q.is-ko .q-btn.ko { background: #fde8e8; color: #b42318; }
@media (prefers-color-scheme: dark) { .q.is-ko .q-btn.ko { background: #3a1717; color: #ff9b8f; } }
.q-score { font-weight: 750; margin: 8px 0 0; }

/* confetti */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 80; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: fall 2.2s cubic-bezier(.2,.6,.4,1) forwards; }
@keyframes fall { to { transform: translate(var(--x), 105vh) rotate(var(--r)); opacity: .9; } }

/* stories mode */
.stories { position: fixed; inset: 0; z-index: 90; background: #0a1430; display: flex; flex-direction: column; padding: calc(10px + env(safe-area-inset-top)) 12px calc(14px + env(safe-area-inset-bottom)); }
.st-segs { display: flex; gap: 4px; padding: 0 2px; }
.st-segs i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.28); overflow: hidden; }
.st-segs i b { display: block; height: 100%; width: 0; background: #fff; transition: width .25s; }
.st-segs i.done b { width: 100%; }
.st-x { position: absolute; top: calc(22px + env(safe-area-inset-top)); right: 16px; z-index: 2; border: 0; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 16px; cursor: pointer; }
.st-stage { flex: 1; display: flex; margin-top: 14px; }
.st-card { --t: var(--putere); flex: 1; border-radius: 26px; padding: 54px 22px 22px; color: #fff; display: flex; flex-direction: column; overflow-y: auto;
  background: radial-gradient(110% 70% at 100% 0%, color-mix(in srgb, var(--t) 80%, #fff 0%) 0%, transparent 60%), linear-gradient(165deg, var(--t) 0%, #101d4d 100%);
  animation: stIn .28s cubic-bezier(.2,.8,.2,1); }
.st-card.t-putere { --t: #2f5bea; } .st-card.t-justitie { --t: #7c3aed; } .st-card.t-bani { --t: #0e9f6e; } .st-card.t-bucuresti { --t: #e07a10; }
.st-card.t-partide { --t: #db2777; } .st-card.t-international { --t: #0891b2; } .st-card.t-aparare { --t: #475569; } .st-card.t-societate { --t: #dc4c3e; }
@keyframes stIn { from { opacity: .4; transform: scale(.985); } }
.st-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.st-chip { font-size: 14px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.18); }
.st-when { font-size: 14px; opacity: .85; }
.st-title { font-family: var(--serif); font-size: 31px; line-height: 1.12; margin: 18px 0 14px; letter-spacing: -.01em; }
.st-title a { color: #fff; }
.st-lead { font-size: 19px; line-height: 1.45; font-weight: 560; margin: 0 0 16px; }
.st-why { background: rgba(255,255,255,.14); border-radius: 18px; padding: 12px 16px; font-size: 16.5px; line-height: 1.45; }
.st-why b { font-size: 13.5px; opacity: .85; }
.st-why p { margin: 4px 0 0; }
.st-why a, .st-lead a { color: #fff; }
.st-people { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.st-person { border: 0; color: inherit; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; padding: 3px 12px 3px 3px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: 14px; font-weight: 650; }
.st-more, .st-cta { margin-top: auto; align-self: flex-start; border: 0; border-radius: 999px; padding: 12px 18px; font: inherit; font-weight: 750; background: #fff; color: #101d4d; cursor: pointer; }
.st-more { margin-top: 22px; }
.st-cover, .st-end { justify-content: center; }
.st-kick { font-weight: 700; opacity: .85; }
.st-big { font-family: var(--serif); font-size: 64px; font-weight: 800; line-height: 1; margin: 8px 0; letter-spacing: -.02em; }
.st-sub { font-size: 20px; opacity: .9; }
.st-hint { margin-top: 28px; opacity: .8; }
.st-end { background: linear-gradient(165deg, #0e9f6e 0%, #0b3d6b 100%); }
.st-end .st-cta { margin-top: 18px; }
@media (prefers-reduced-motion: reduce) { .st-card { animation: none; } .confetti { display: none; } }
.chip.star { background: var(--t); color: #fff; }
.tabs a .ic svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabs a.on .ic svg { stroke-width: 2.2; }
.chip.mins { background: transparent; color: var(--muted); font-weight: 600; padding: 3px 2px; }

/* no zoom (Leo): pinch and double-tap are off everywhere; inputs ≥16px so iOS doesn't zoom on focus */
html, body, * { touch-action: pan-x pan-y; }
input, select, textarea { font-size: 17px !important; }

/* ===== Citește în profunzime + cititorul din aplicație ===== */
.deep { margin: 4px 0 14px; }
.deep h2 { font-family: var(--serif); font-size: 26px; margin: 8px 2px 2px; }
.deep-sub { color: var(--muted); font-size: 14.5px; margin: 0 2px 12px; }
.art { --t: var(--putere); position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 16px 18px 14px; margin: 0 0 12px; box-shadow: var(--shadow); cursor: pointer; overflow: hidden; }
.art::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--t); }
.art.t-putere { --t: var(--putere); } .art.t-justitie { --t: var(--justitie); } .art.t-bani { --t: var(--bani); } .art.t-bucuresti { --t: var(--bucuresti); }
.art.t-partide { --t: var(--partide); } .art.t-international { --t: var(--international); } .art.t-aparare { --t: var(--aparare); } .art.t-societate { --t: var(--societate); }
.art-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip.done { background: var(--ok-soft); color: var(--ok); }
.art-title { font-family: var(--serif); font-size: 23px; line-height: 1.2; margin: 10px 0 6px; }
.art-teaser { color: var(--muted); font-size: 16px; line-height: 1.5; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.art-go { border: 0; font: inherit; font-weight: 750; border-radius: 999px; padding: 10px 16px; background: var(--t); color: #fff; cursor: pointer; }
.art.read { opacity: .72; }

.reader { --t: var(--putere); position: fixed; inset: 0; z-index: 60; background: var(--card); display: flex; flex-direction: column; transform: translateY(24px); opacity: 0; transition: transform .22s cubic-bezier(.2,.8,.2,1), opacity .18s; }
.reader.open { transform: none; opacity: 1; }
.reader.t-putere { --t: var(--putere); } .reader.t-justitie { --t: var(--justitie); } .reader.t-bani { --t: var(--bani); } .reader.t-bucuresti { --t: var(--bucuresti); }
.reader.t-partide { --t: var(--partide); } .reader.t-international { --t: var(--international); } .reader.t-aparare { --t: var(--aparare); } .reader.t-societate { --t: var(--societate); }
.rd-bar { display: flex; align-items: center; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; border-bottom: 1px solid var(--line); }
.rd-back { border: 0; background: none; font: inherit; font-weight: 700; color: var(--t); padding: 6px 0; cursor: pointer; }
.rd-prog { flex: 1; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.rd-prog i { display: block; height: 100%; width: 0; background: var(--t); border-radius: inherit; }
.rd-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 22px 22px calc(40px + env(safe-area-inset-bottom)); max-width: 680px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.rd-kick { color: var(--t); font-weight: 700; font-size: 14.5px; }
.rd-title { font-family: var(--serif); font-size: 32px; line-height: 1.12; letter-spacing: -.01em; margin: 8px 0 14px; }
.rd-text { font-family: var(--serif); font-size: 19.5px; line-height: 1.62; }
.rd-text p { margin: 0 0 1.05em; }
.rd-lead::first-letter { float: left; font-size: 3.3em; line-height: .86; font-weight: 800; margin: .06em .1em 0 0; color: var(--t); }
.rd-text h2 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif; font-size: 18px; font-weight: 800; margin: 1.6em 0 .5em; color: var(--t); }
.rd-text blockquote { margin: 1.2em 0; padding: 4px 0 4px 16px; border-left: 4px solid var(--t); font-size: 21px; font-style: italic; color: var(--text); }
.rd-text ul { padding-left: 1.1em; margin: 0 0 1em; }
.rd-text li { margin: .35em 0; }

.rd-done { display: block; width: 100%; border: 0; font: inherit; font-weight: 800; font-size: 17px; border-radius: 16px; padding: 15px; margin: 28px 0 18px; background: var(--t); color: #fff; cursor: pointer; }
.rd-src { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.rd-src-h { width: 100%; font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.rd-src .src { font-size: 12.5px; padding: 4px 9px; }
.sheet-wrap { z-index: 95; }
@media (prefers-reduced-motion: reduce) { .reader { transition: none; } }

/* ===== 24.10.2026: party colours everywhere, photo viewer, structured articles ===== */
/* every party has its own colour: pills, avatar rings, party words in the text */
.av[data-p="psd"], .avatar[data-p="psd"] { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--p-psd); }
.av[data-p="pnl"], .avatar[data-p="pnl"] { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--p-pnl); }
.av[data-p="usr"], .avatar[data-p="usr"] { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--p-usr); }
.av[data-p="aur"], .avatar[data-p="aur"] { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--p-aur); }
.av[data-p="udmr"], .avatar[data-p="udmr"] { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--p-udmr); }
.av[data-p="sos"], .avatar[data-p="sos"] { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--p-sos); }
.av[data-p="pot"], .avatar[data-p="pot"] { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--p-pot); }
.av[data-p="pace"], .avatar[data-p="pace"] { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--p-pace); }
.person-chip .av { margin: 2px; }
/* parties in the text: bold, with a short solid line in the party's colour (the pills stay for tags) */
.term.term-party { --pc: var(--p-alt); font-weight: 750; text-decoration: underline solid; text-decoration-thickness: 3px; text-underline-offset: 3px; text-decoration-color: var(--pc); }
.term-party.p-psd { --pc: var(--p-psd); } .term-party.p-pnl { --pc: var(--p-pnl); } .term-party.p-usr { --pc: var(--p-usr); } .term-party.p-aur { --pc: var(--p-aur); }
.term-party.p-udmr { --pc: var(--p-udmr); } .term-party.p-sos { --pc: var(--p-sos); } .term-party.p-pot { --pc: var(--p-pot); } .term-party.p-pace { --pc: var(--p-pace); }
/* one-time tip */
.tip-toast { position: fixed; left: 16px; right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 40; display: flex; gap: 12px; align-items: center; background: var(--text); color: var(--bg); border-radius: 16px; padding: 12px 14px; font-size: 15px; line-height: 1.4; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.tip-toast button { all: unset; cursor: pointer; white-space: nowrap; font-weight: 800; padding: 6px 10px; border-radius: 10px; background: color-mix(in srgb, var(--bg) 18%, transparent); }
.tip-demo { text-decoration: underline dotted; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }

/* photos you can open big */
.zoomable { cursor: zoom-in; position: relative; }
.zoom-hint { position: absolute; right: 6px; bottom: 6px; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; color: #fff; background: rgba(0,0,0,.45); }
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.94); display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; transition: opacity .18s; }
.lightbox.open { opacity: 1; }
.lb-stage { width: 100%; flex: 1; display: grid; place-items: center; padding: calc(56px + env(safe-area-inset-top)) 10px 10px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.lb-x { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 18px; cursor: pointer; }
.lb-cap { color: #e9ecf3; font-size: 15px; text-align: center; margin: 8px 20px 4px; max-width: 640px; }
.lb-count { color: #9aa3b5; font-size: 13px; font-weight: 700; margin-bottom: calc(18px + env(safe-area-inset-bottom)); min-height: 1em; }
.gallery figure { cursor: zoom-in; }

/* article card: what blocks are inside */
.art-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.art-kinds span { font-size: 12.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }

/* the reader: each part is its own card, like the story cards */
.rd-text { font-family: inherit; font-size: 17.5px; line-height: 1.55; }
.rd-lead { font-family: var(--serif); font-size: 20px; line-height: 1.6; margin: 4px 0 16px; }
.rb-pe { background: var(--accent-soft); border-radius: 18px; padding: 14px 16px; margin: 0 0 16px; }
.rb-pe p { margin: 4px 0 0; font-size: 18px; font-weight: 600; line-height: 1.45; }
.rd-toc { display: flex; gap: 6px; overflow-x: auto; margin: 0 -22px 14px; padding: 2px 22px 6px; scrollbar-width: none; }
.rd-toc::-webkit-scrollbar { display: none; }
.rd-toc button { flex: none; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 700; padding: 6px 11px; border-radius: 999px; cursor: pointer; }
.rb { --b: var(--t); background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px 12px; margin: 0 0 14px; position: relative; overflow: hidden; }
.rb::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--b); }
.rb-lbl { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; letter-spacing: .01em; color: var(--b); margin: 0 0 8px; text-transform: uppercase; }
.rb-pe .rb-lbl { color: var(--accent); }
.rb-ico { font-size: 18px; text-transform: none; }
.rb p { margin: 6px 0 0; }
.rb h4 { margin: 10px 0 2px; font-size: 16px; }
.rb.b-facts { --b: var(--t); } .rb.b-stats { --b: var(--bani); } .rb.b-time { --b: var(--justitie); }
.rb.b-camps { --b: var(--partide); } .rb.b-next { --b: var(--international); } .rb.b-gen { --b: var(--aparare); }
.rb-list { margin: 0; padding: 0; list-style: none; counter-reset: f; }
.rb-list li { position: relative; padding: 8px 0 8px 36px; border-top: 1px dashed var(--line); }
.rb-list li:first-child { border-top: 0; }
.rb-list li::before { content: "•"; position: absolute; left: 6px; top: 7px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; background: var(--b); }
ol.rb-list li { counter-increment: f; } ol.rb-list li::before { content: counter(f); }
.b-next .rb-list li::before { content: "→"; }
.rb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.rb-stat { background: var(--card); border-radius: 14px; padding: 12px; border: 1px solid var(--line); }
.rb-big { font-family: var(--serif); font-size: 30px; font-weight: 800; line-height: 1.05; color: var(--b); }
.rb-mean { font-size: 14.5px; line-height: 1.4; margin-top: 4px; color: var(--text); }
.rb-tl { margin-top: 4px; }
.rb-tl li::before { border-color: var(--b); }
.rb-tl b { color: var(--b); }
.rb-camps { display: grid; gap: 8px; }
.rb-camp { --c: var(--p-alt); background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 14px; padding: 10px 12px; }
.rb-camp p { margin: 6px 0 0; }
.rb-camp .party { max-width: none; display: inline-block; }
.rb-camp.p-psd { --c: var(--p-psd); } .rb-camp.p-pnl { --c: var(--p-pnl); } .rb-camp.p-usr { --c: var(--p-usr); } .rb-camp.p-aur { --c: var(--p-aur); }
.rb-camp.p-udmr { --c: var(--p-udmr); } .rb-camp.p-sos { --c: var(--p-sos); } .rb-camp.p-pot { --c: var(--p-pot); } .rb-camp.p-pace { --c: var(--p-pace); }
.rb.b-you { --b: var(--ok); background: var(--ok-soft); border-color: transparent; }
.rb.b-you p { font-size: 18px; font-weight: 600; }
.rb-quote { margin: 0 0 14px; padding: 16px 18px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.rb-quote blockquote { margin: 0; font-family: var(--serif); font-size: 21px; font-style: italic; line-height: 1.4; }
.rb-quote blockquote::before { content: "“"; font-size: 46px; line-height: 0; vertical-align: -18px; margin-right: 4px; color: var(--t); }
.rb-quote figcaption { margin-top: 6px; font-size: 14px; color: var(--muted); font-weight: 650; }
.rb .rb-quote { margin: 10px 0 0; }
.rd-text .rb-list { padding: 0; margin: 0; }
.rd-text .rb-list li { margin: 0; }
.rd-text .rb-tl { padding: 0 0 0 16px; margin: 4px 0 0 6px; }
.rd-text .rb-tl li { margin: 0 0 12px; }
.rd-text .rb-quote blockquote { border: 0; padding: 0; margin: 0; }
.rb.b-explain { --b: var(--accent-2); background: var(--accent-soft); border-color: transparent; }
.rb.b-explain .rb-list li { border-top-color: color-mix(in srgb, var(--accent) 18%, transparent); }
.rb.b-explain .rb-list li::before { content: "💡"; background: none; font-size: 15px; }
.rb-who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.rb-sub { font-size: 13.5px; color: var(--muted); font-weight: 600; line-height: 1.3; }
.nobr { white-space: nowrap; }
.rf-btn { border: 0; font: inherit; font-size: 20px; font-weight: 800; color: var(--accent); cursor: pointer; width: 34px; height: 32px; display: grid; place-items: center; padding: 0; }
.rf-btn.spin, .btn.spin { animation: rf .8s linear infinite; }
@keyframes rf { to { transform: rotate(360deg); } }

/* ===== „Citește mai mult”: the word's own page ===== */
.sh-more { display: flex; flex-direction: column; gap: 2px; margin: 16px 0 4px; padding: 14px 16px; border-radius: 16px; background: var(--accent-2); color: #fff; text-decoration: none; }
.sh-more span { font-weight: 800; font-size: 17px; }
.sh-more small { opacity: .85; font-size: 13.5px; }
@media (prefers-color-scheme: dark) { .sh-more { color: #0e1117; } }
.tpage { padding-bottom: 20px; }
.tp-back { margin: 0 0 6px; color: var(--accent-2); }
.tp-hero { display: flex; gap: 16px; align-items: flex-end; margin: 4px 0 18px; }
.tp-hero.p-psd, .tp-hero.p-pnl, .tp-hero.p-usr, .tp-hero.p-aur, .tp-hero.p-udmr, .tp-hero.p-sos, .tp-hero.p-pot, .tp-hero.p-pace { border-left: 8px solid var(--pc, var(--p-alt)); padding-left: 14px; }
.tp-hero.p-psd { --pc: var(--p-psd); } .tp-hero.p-pnl { --pc: var(--p-pnl); } .tp-hero.p-usr { --pc: var(--p-usr); } .tp-hero.p-aur { --pc: var(--p-aur); }
.tp-hero.p-udmr { --pc: var(--p-udmr); } .tp-hero.p-sos { --pc: var(--p-sos); } .tp-hero.p-pot { --pc: var(--p-pot); } .tp-hero.p-pace { --pc: var(--p-pace); }
.tp-photo { width: 116px; height: 144px; border-radius: 22px; flex: none; display: grid; place-items: center; overflow: hidden; font-size: 34px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent-2), var(--partide)); position: relative; }
.tp-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.tp-id { min-width: 0; }
.tp-title { font-family: var(--serif); font-size: 34px; line-height: 1.08; margin: 6px 0 6px; }
.tp-fn { margin: 0 0 8px; color: var(--muted); font-size: 15.5px; line-height: 1.4; }
.tp-body { margin-top: 4px; }
.tp-soon { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 18px; border: 1.5px dashed var(--line); color: var(--muted); font-size: 15px; line-height: 1.45; margin: 4px 0 14px; }
.tp-soon b { color: var(--text); }
.tp-links { margin: 6px 0 14px; }
.rb.b-how { --b: var(--putere); } .rb.b-ex { --b: var(--bucuresti); } .rb.b-why { --b: var(--societate); } .rb.b-wiki { --b: var(--aparare); }
.rb.b-legal { --b: #c47a00; background: #fff4e5; border-color: transparent; color: #5b3a00; }
@media (prefers-color-scheme: dark) { .rb.b-legal { --b: #ffc56b; background: #2e2412; color: #f3dcae; } }
.rb.b-myth { --b: #d97706; }
.rb.b-myth .rb-list li::before { content: "!"; }
.rb.b-see { --b: var(--accent-2); }
.rb-see { display: flex; flex-wrap: wrap; gap: 8px; }
.see-chip { font-size: 14.5px; font-weight: 700; padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.see-chip.off { color: var(--muted); }
.rb.b-quiz { --b: var(--justitie); }
.rb-q { border-top: 1px dashed var(--line); padding: 8px 0; }
.rb-q:first-of-type { border-top: 0; }
.rb-q summary { cursor: pointer; font-weight: 650; list-style: none; }
.rb-q summary::before { content: "❓ "; }
.rb-q[open] summary::before { content: "✅ "; }
.rb-q p { margin: 6px 0 0 26px; color: var(--muted); }

/* ===== tappable words, v3 (24.10, 12:45): dots drawn as a background, so they look the same on every iPhone ===== */
:root { --dot: rgba(20, 24, 36, .5); }
@media (prefers-color-scheme: dark) { :root { --dot: rgba(233, 236, 243, .6); } }
.number, .stories, .cover, .st-card { --dot: rgba(255, 255, 255, .75); }
.term { all: unset; display: inline; cursor: pointer; color: inherit; text-decoration: none;
  background-image: radial-gradient(circle, var(--dot) 0 1.05px, transparent 1.35px);
  background-size: 4.6px 3px; background-repeat: repeat-x; background-position: 0 100%;
  padding-bottom: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  -webkit-tap-highlight-color: transparent; border-radius: 3px; }
.term:active, .term.tapped { background-color: color-mix(in srgb, var(--accent-2) 22%, transparent); background-color: rgba(47, 86, 197, .22); }
.term:focus-visible { outline: 2px solid var(--accent-2); }
.term.term-party { font-weight: 750; text-decoration: none; background-image: linear-gradient(var(--pc), var(--pc)); background-size: 100% 3px; background-position: 0 100%; padding-bottom: 1px; }
.nobr .term { white-space: normal; }
.tip-demo { text-decoration: none; background-image: radial-gradient(circle, currentColor 0 1.05px, transparent 1.35px); background-size: 4.6px 3px; background-repeat: repeat-x; background-position: 0 100%; padding-bottom: 2px; }

/* ===== v4 (Leo, 24.10 13:19): words without any line under them; parties as coloured tags again ===== */
.term { background-image: none; padding-bottom: 0; text-decoration: none; }
.term.term-party { --pc: var(--p-alt); font-weight: 800; padding: 0 5px; border-radius: 6px; text-decoration: none; color: #fff; background-image: none; background-color: var(--pc); }
.term-party.p-pnl { color: var(--p-pnl-ink); }
.number .term.term-party, .stories .term.term-party { color: #fff; } .number .term-party.p-pnl, .stories .term-party.p-pnl { color: var(--p-pnl-ink); }

/* ===== v5 (Leo, 24.10 13:51): party tags exactly as before the dots — each in its own colour (fixes the grey) ===== */
.term.term-party { font-weight: 800; padding: 0 5px; border-radius: 6px; text-decoration: none; color: #fff; background-image: none; background-color: var(--p-alt); }
.term.term-party.p-psd { background-color: var(--p-psd); }
.term.term-party.p-pnl { background-color: var(--p-pnl); color: var(--p-pnl-ink); }
.term.term-party.p-usr { background-color: var(--p-usr); }
.term.term-party.p-aur { background-color: var(--p-aur); }
.term.term-party.p-udmr { background-color: var(--p-udmr); }
.term.term-party.p-sos { background-color: var(--p-sos); }
.term.term-party.p-pot { background-color: var(--p-pot); }
.term.term-party.p-pace { background-color: var(--p-pace); }
.number .term.term-party:not(.p-pnl), .stories .term.term-party:not(.p-pnl) { color: #fff; }
/* how long ago, after every date (date.js) */
.rel { color: var(--muted); font-weight: 500; }
.number .rel, .stories .rel, .cover .rel, .st-card .rel { color: rgba(255, 255, 255, .78); }
.timeline b .rel, .rb-tl b .rel { font-weight: 600; }

/* ===== the learning session in the app (sesiune.js) ===== */
.tabs { grid-template-columns: repeat(6, 1fr); }
.tabs a { font-size: 11px; }
.ses { padding-bottom: 8px; }
.ses-feed { display: flex; flex-direction: column; gap: 12px; }
.ses-hero { background: linear-gradient(135deg, #2f56c5, #1d3a8a); color: #fff; border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.ses-hero h2 { font-family: var(--serif); font-size: 30px; margin: 0; }
.ses-hero p { margin: 0; opacity: .9; line-height: 1.45; }
.ses-k { font-weight: 800; font-size: 14px; opacity: .85; }
.ses-hero .btn { width: 100%; }
.ses-go { background: #fff; color: #1d3a8a; font-size: 18px; }
.ses-hero .btn.secondary { background: rgba(255,255,255,.16); color: #fff; border-color: transparent; }
.tm { border-radius: 20px; }
.tm-claude { background: var(--card); border: 1px solid var(--line); padding: 14px 14px 10px; box-shadow: var(--shadow); font-size: 17px; line-height: 1.55; }
.tm-claude .rb { background: var(--bg); }
.tm-claude .rb:last-child { margin-bottom: 4px; }
.tm-lead { margin: 2px 2px 12px; font-size: 17.5px; line-height: 1.55; }
.tm-leo { align-self: flex-end; max-width: 86%; background: var(--accent-2); color: #fff; padding: 10px 14px; border-radius: 20px 20px 6px 20px; white-space: pre-wrap; font-size: 16.5px; line-height: 1.45; }
@media (prefers-color-scheme: dark) { .tm-leo { color: #0e1117; } }
.tm-score { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.tm-score b { font-family: var(--serif); font-size: 40px; line-height: 1; }
.tm-score span { font-weight: 800; font-size: 15px; padding: 4px 10px; border-radius: 999px; }
.tm-score.ok b { color: var(--ok); } .tm-score.ok span { background: var(--ok-soft); color: var(--ok); }
.tm-score.mid b { color: #d97706; } .tm-score.mid span { background: #fff4e5; color: #8a5a00; }
.tm-score.low b { color: #dc2626; } .tm-score.low span { background: #fde8e8; color: #b91c1c; }
@media (prefers-color-scheme: dark) { .tm-score.mid span { background: #2e2412; color: #ffc56b; } .tm-score.low span { background: #3a1616; color: #ff9b9b; } }
.tm-hint { margin: 10px 0 4px; padding: 10px 12px; border-radius: 14px; background: var(--accent-soft); font-size: 15px; }
.tm-code { position: relative; margin: 10px 0; }
.tm-code pre { margin: 0; white-space: pre-wrap; word-break: break-word; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 44px 12px 12px; font-size: 13.5px; line-height: 1.45; max-height: 360px; overflow: auto; }
.tm-copy { position: absolute; top: 8px; right: 8px; border: 0; border-radius: 10px; padding: 6px 10px; font: inherit; font-size: 13.5px; font-weight: 700; background: var(--accent-2); color: #fff; cursor: pointer; }
.tm-wait { background: var(--card); border: 1px dashed var(--line); padding: 12px 14px; color: var(--muted); font-size: 15px; display: flex; align-items: center; gap: 10px; }
.dots { display: inline-flex; gap: 4px; flex: none; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); animation: dots 1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.tm-err { background: #fde8e8; color: #7f1d1d; padding: 12px 14px; }
.tm-err p { margin: 0 0 8px; }
@media (prefers-color-scheme: dark) { .tm-err { background: #3a1616; color: #ffd0d0; } }
.ses-chips { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0 6px; scrollbar-width: none; }
.ses-chips::-webkit-scrollbar { display: none; }
.ses-chip { flex: none; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.ses-compose { position: sticky; bottom: calc(80px + env(safe-area-inset-bottom)); display: flex; gap: 8px; align-items: flex-end; background: var(--bg); padding: 8px 0 4px; }
.ses-compose textarea { flex: 1; font: inherit; font-size: 16.5px; line-height: 1.4; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--text); resize: none; max-height: 220px; }
.ses-send { flex: none; border-radius: 16px; padding: 12px 16px; }
.rb.b-recap { --b: var(--justitie); } .rb.b-ask { --b: var(--putere); background: var(--accent-soft); border-color: transparent; }
.rb.b-ask p, .rb.b-ask li { font-size: 18px; font-weight: 650; }
.rb.b-fix { --b: #d97706; } .rb.b-model { --b: var(--ok); background: var(--ok-soft); border-color: transparent; }
.rb.b-lesson { --b: var(--putere); } .rb.b-task { --b: var(--partide); background: color-mix(in srgb, var(--partide) 10%, var(--card)); }
.ses-compose textarea { min-width: 0; flex: 1 1 auto; width: auto; }
.ses-compose .ses-send { flex: 0 0 auto; width: auto; margin: 0; }
.ses { min-width: 0; }
