/* Self-hosted Figtree variable font (latin + latin-ext), weights 300-900 */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   TOKENS: the design system (docs/design.md). Every color, font size, width and
   breakpoint comes from here; check_seo fails on raw values. Type values are the
   winner of scripts/design_bench.py (docs/design.md "Design benchmark").
   ============================================================ */
:root {
  --font: 'Figtree', system-ui, sans-serif;

  /* Colors. Text pairs pass WCAG AA 4.5:1 (table in docs/design.md "Colors") */
  --bg: #FBF7EF;            /* warm off-white page background */
  --bg-deep: #F5EEE1;       /* footer, inset areas */
  --surface: #FFFFFF;       /* cards sit on --bg; also text on navy */
  --surface-hover: #F8F4EC;

  --title: #16233F;         /* navy: headings, primary text, text on --wa */
  --title-hover: #22325A;   /* dark button hover */
  --text: #4A5263;          /* body text */
  --text-muted: #636A79;    /* captions, dates: 4.7:1 on --bg-deep, 5.1 on --bg */
  --border: #EAE3D6;        /* warm hairline */
  --border-strong: #D9D0BF;

  --green: #44705A;         /* links, accents: 4.9:1 or more on every surface */
  --green-dark: #2D5C42;    /* labels, text on --green-tint */
  --green-tint: #E9F3EC;    /* CTA card background */
  --green-line: #C5DFCF;
  --error: #922B21;         /* wrong-vs-right examples (del) */
  --error-tint: #FDECEA;
  --wa: #25D366;            /* WhatsApp green: navy text on it (7.9:1), the logo stays white */
  --wa-dark: #1EB458;
  --star: #C27C0E;          /* review stars: a graphic, 3.4:1 on white (WCAG 1.4.11) */

  /* Type: 7 sizes in rem (the visitor's font setting and zoom work), fluid from 390px to 1280px.
     Values: the design benchmark's winner, 2026-11-02 (snapshots/design-bench/report.md). */
  --fs-xs: 0.875rem;        /* 14: captions, dates, crumbs, labels, chips, nav, footer */
  --fs-sm: 0.9375rem;       /* 15: card text, FAQ answers, CTA text */
  --fs-body: 1rem;          /* 16: running text, lists, FAQ questions, buttons, card titles (bold) */
  --fs-lead: clamp(1rem, 0.9178rem + 0.3371vw, 1.1875rem);         /* 16-19: hero intro, CTA title */
  --fs-h3: clamp(1.1875rem, 1.0916rem + 0.3933vw, 1.40625rem);     /* 19-22.5 */
  --fs-h2: clamp(1.4375rem, 1.191rem + 1.0112vw, 2rem);            /* 23-32 */
  --fs-h1: clamp(1.71875rem, 1.2395rem + 1.9663vw, 2.8125rem);     /* 27.5-45 */
  --fs-display: clamp(2.625rem, 2.0225rem + 2.472vw, 4rem);        /* 42-64: the homepage hero title only (owner, 2026-11-13) */
  --lh-body: 1.5;           /* running text and card text */
  --lh-h3: 1.3;
  --lh-h2: 1.2;
  --lh-h1: 1.1;

  /* Spacing: 4px steps, then 8 (use these in new rules) */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-7: 32px; --sp-8: 40px; --sp-9: 48px; --sp-10: 64px;
  --gutter: clamp(20px, 4vw, 40px);     /* page side padding */
  --section: clamp(40px, 6vw, 72px);    /* between page sections */
  --pad-card: clamp(20px, 3vw, 32px);   /* inside a large card */

  /* Widths. Breakpoints: only 600px (phone) and 900px (desktop) */
  --w-page: 1200px;         /* nav, hero, content and footer share this edge */
  --w-prose: 560px;         /* running text column: about 72-80 characters per line */

  --r-card: 24px;
  --r-inner: 16px;
  --r-control: 14px;
  --r-img: 6px;
  --r-pill: 999px;
}

/* ============================================================
   BASE
   ============================================================ */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--title);
}
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); }
p, li { text-wrap: pretty; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--title); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }

/* Display headings. Heavy and slightly tight, like the educato landing pages. */
.font-heading { font-family: var(--font); font-weight: 800; letter-spacing: -0.015em; }

/* ============================================================
   NAVBAR
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,247,239,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--w-page);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  font-family: var(--font);
  font-weight: 800;
  font-size: var(--fs-lead);
  letter-spacing: -0.02em;
  color: var(--title);
  text-decoration: none;
  flex-shrink: 0;
}
/* Header logo (owner, 2026-11-13): the mark (/favicon.svg) + "Proiecte" over "Licență | Disertație | Grad"
   ("Atestate" alone on /atestat/). The sub-line shows from 600px; anything too long ends in "…", never a sideways scroll. */
.site-header .nav-logo { display: inline-flex; align-items: center; gap: var(--sp-2); min-width: 0; flex-shrink: 1; }
.site-header .nav-logo img { flex: none; }
.nav-brand { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.nav-brand b, .nav-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-brand b { font-weight: 800; }
.nav-sub { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0; color: var(--text-muted); }
@media (max-width: 600px) { .nav-sub { display: none; } }
/* The header's WhatsApp button (owner, 2026-11-16; it showed the number 2026-11-13 to 16): the logo + "WhatsApp".
   A soft tinted pill, navy on --green-tint like the CTA card; the page's own green button stays the one primary. */
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: 0 var(--sp-4);
  margin-left: auto;
  flex: none;
  border-radius: 999px;
  background: var(--green-tint);
  color: var(--title);
  font-size: var(--fs-body);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.nav-phone:hover { background: var(--green-line); color: var(--title); }
.nav-phone-icon { display: inline-flex; flex: none; }
.nav-phone-icon svg { width: 18px; height: 18px; }
@media (min-width: 900px) {
  .nav-inner { gap: var(--sp-3); }
  .nav-phone { order: 1; margin-left: 0; }
  .nav-links { margin-left: auto; }
}
@media (max-width: 600px) { .nav-inner { gap: var(--sp-1); } }
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a {
  padding: 7px clamp(8px, 2.2vw - 12px, 12px); /* 8px at 900 so the WhatsApp pill fits, 12px from ~1100 */
  border-radius: 10px;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--title); background: var(--surface); }
.nav-links a.active { background: var(--title); color: var(--surface); }
.nav-links a.active:hover { color: var(--surface); }
.nav-cta { background: var(--surface); border: 1px solid var(--border-strong); margin-left: 6px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--title); border-radius: 2px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-deep);
  padding: clamp(40px,6vw,64px) var(--gutter) 0;
  margin-top: clamp(24px,4vw,48px);
}
.footer-inner {
  max-width: calc(var(--w-page) - 2 * var(--gutter));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px,5vw,64px);
  padding-bottom: clamp(32px,5vw,48px);
}
.footer-brand p { font-size: var(--fs-xs); color: var(--text); line-height: 1.6; margin: 12px 0 0; max-width: 260px; }
.footer-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.footer-links div { display: flex; flex-direction: column; gap: 9px; }
.footer-links strong { font-size: var(--fs-xs); font-weight: 700; color: var(--title); text-transform: none; letter-spacing: 0; margin-bottom: 4px; }
.footer-links a { font-size: var(--fs-xs); color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--title); }
.footer-bottom { max-width: calc(var(--w-page) - 2 * var(--gutter)); margin: 0 auto; padding: 20px 0; border-top: 1px solid var(--border-strong); }
.footer-bottom p { font-size: var(--fs-xs); color: var(--text-muted); margin: 0; }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
/* A two-line pill (owner choice, 2026-10-10): the label says why to write, like the CTA card does.
   No overflow:hidden or animated pseudo-element, so WebKit has nothing to clip. */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 22px 8px 14px;
  background: var(--wa);
  border-radius: var(--r-pill);
  color: var(--title);
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
  text-decoration: none;
  line-height: 1.15;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.wa-float svg { flex: none; color: var(--surface); }
.wa-float:hover, .wa-float:focus-visible { color: var(--title); background: var(--wa-dark); }
.wa-float:active { transform: scale(0.97); }
.wa-float-txt { display: flex; flex-direction: column; gap: 2px; }
.wa-float-txt b { font-size: var(--fs-body); font-weight: 700; }
.wa-float-txt small { font-size: var(--fs-xs); font-weight: 600; }
@media (max-width: 899px) {
  .wa-float { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--r-control);
  font-size: var(--fs-body);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  border: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-dark { background: var(--title); color: var(--surface); }
.btn-dark:hover { background: var(--title-hover); color: var(--surface); }
.btn-wa { background: var(--wa); color: var(--title); }
.btn-wa:hover { background: var(--wa-dark); color: var(--title); }
.btn-wa svg { color: var(--surface); }
.btn-outline { background: var(--surface); color: var(--title); border: 1.5px solid var(--border-strong); }
.btn-outline:hover { background: var(--surface-hover); color: var(--title); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding: clamp(48px,7vw,88px) var(--gutter) clamp(24px,4vw,40px);
}
.page-hero-inner { max-width: calc(var(--w-page) - 2 * var(--gutter)); margin: 0 auto; }
.page-hero h1 { font-weight: 800; letter-spacing: -0.02em; margin: 0 0 16px; color: var(--title); max-width: 760px; }
.page-hero p { font-size: var(--fs-lead); line-height: var(--lh-body); color: var(--text); margin: 0; max-width: var(--w-prose); }
.page-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.page-hero .result-cta { max-width: 620px; }

/* ============================================================
   INNER PAGE CONTENT
   ============================================================ */
.page-content { max-width: var(--w-page); margin: 0 auto; padding: clamp(24px,4vw,48px) var(--gutter) clamp(48px,7vw,80px); }
.page-content h2 { font-weight: 800; letter-spacing: -0.015em; margin: 0 0 12px; color: var(--title); }
.page-content p { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text); margin: 0 0 16px; }
.page-content > p { max-width: var(--w-prose); } /* running text never wider than the prose column */
.page-content p:last-child { margin-bottom: 0; }
.service-section { padding: clamp(36px,5vw,56px) 0; border-bottom: 1px solid var(--border); }
.service-section:last-of-type { border-bottom: none; }

/* Generic white card on the warm background */
.card { background: var(--surface); border-radius: var(--r-card); padding: var(--pad-card); }

/* CTA card (WhatsApp) — one per page, at the top of the content */
.cta-card { background: var(--green-tint); border-radius: var(--r-card); padding: var(--pad-card); margin-bottom: var(--sp-7); }

/* ============================================================
   STEPS
   ============================================================ */
/* The order steps are ol.steps-timeline, after the .legal-content rules (it must win over their margins). */

/* ============================================================
   STATS (proof bar)
   ============================================================ */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); gap: 12px; margin: 8px 0 40px; }
.stat-card { background: var(--surface); border-radius: var(--r-card); padding: 22px 20px; }
.stat-card strong { display: block; font-size: var(--fs-h2); font-weight: 800; letter-spacing: -0.02em; color: var(--title); line-height: 1.1; }
.stat-card span { display: block; font-size: var(--fs-xs); color: var(--text); margin-top: 6px; }

/* Feature/value cards */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 16px; margin: 24px 0 8px; }
.feature-card { background: var(--surface); border-radius: var(--r-card); padding: 26px 24px; }
.feature-card .feature-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--green-tint); color: var(--green); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feature-card h3 { font-size: var(--fs-body); font-weight: 700; margin: 0 0 6px; color: var(--title); }
.feature-card p { font-size: var(--fs-sm) !important; line-height: 1.6; color: var(--text); margin: 0 !important; }

/* ============================================================
   FAQ (accordion built on <details>)
   ============================================================ */
details { background: var(--surface); border-radius: var(--r-inner); margin-bottom: 8px; }
details summary {
  padding: 18px 20px;
  font-size: var(--fs-body); font-weight: 600; color: var(--title);
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  border-radius: var(--r-inner);
}
details summary:hover { background: var(--surface-hover); }
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: ''; flex-shrink: 0; width: 9px; height: 9px;
  border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: translateY(-3px) rotate(45deg);
}
details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
details > p, .details-body { font-size: var(--fs-sm); line-height: var(--lh-body); color: var(--text); padding: 0 20px 18px; margin: 0; }

/* /modele/: hero choice cards, the 11 parts as folded rows, "Mai departe" cards */
.section-gap { margin: 0 0 clamp(48px,7vw,72px); }
.pick { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 26px; max-width: 980px; }
.pick-card { display: flex; gap: 14px; align-items: center; background: var(--surface); border-radius: var(--r-inner); padding: 16px 18px; color: var(--title); text-decoration: none; }
.pick-card:hover { background: var(--surface-hover); color: var(--title); }
.pick-card strong { display: block; font-size: var(--fs-body); font-weight: 800; }
.pick-card small { display: block; font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px; }
.pick-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--green-tint); color: var(--green-dark); display: grid; place-items: center; }
.pick [data-download-cta] { grid-column: 1 / -1; }
.anat { margin: 0 0 clamp(48px,7vw,72px); }
.anat-list { display: flex; flex-direction: column; gap: 8px; margin: 18px 0 8px; }
.anat-row { margin: 0; }
.anat-row summary { justify-content: flex-start; gap: 14px; padding: 14px 18px; }
.anat-num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--title); color: var(--surface); display: grid; place-items: center; font-size: var(--fs-xs); font-weight: 700; }
.anat-txt { flex: 1; min-width: 0; }
.anat-txt strong { display: block; font-size: var(--fs-body); font-weight: 700; color: var(--title); }
.anat-txt small { display: block; font-size: var(--fs-xs); font-weight: 400; color: var(--text); line-height: 1.45; margin-top: 2px; }
.anat-more { flex: none; font-size: var(--fs-xs); font-weight: 700; color: var(--green); white-space: nowrap; }
.anat-row[open] .anat-more { visibility: hidden; }
.anat-body { padding: 0 18px 18px 62px; }
.legal-content .anat-full { color: var(--title); font-weight: 600; }
.anat-body .example, .anat-body .sample-toc { background: var(--bg); }
.legal-content .why { background: var(--green-tint); border-radius: var(--r-inner); padding: 14px 18px; font-size: var(--fs-sm); }
.legal-content .note-small { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 16px; }
/* privacy policy "Nu avem nevoie de nume" box; /preturi/ "Inclus mereu" box */
.legal-content .anon-box, .legal-content .incl-box { background: var(--green-tint); border-radius: var(--r-card); padding: 26px 26px 12px; margin-bottom: 8px; }
.legal-content .anon-box h2, .legal-content .incl-box h2 { margin: 0 0 16px; }
.legal-content .anon-box ul, .legal-content .incl-box ul { list-style: none; padding: 0; }
.legal-content .anon-box li, .legal-content .incl-box li { position: relative; padding-left: 30px; line-height: 1.55; margin-bottom: 12px; }
.legal-content .anon-box li::before, .legal-content .incl-box li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 800; color: var(--green-dark); }
.legal-content .anon-box strong, .legal-content .incl-box strong { color: var(--title); }
@media (max-width: 600px) { .legal-content .anon-box, .legal-content .incl-box { padding: 22px 18px 8px; } }
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.more-card { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border-radius: var(--r-card); padding: 20px 22px; color: var(--text); text-decoration: none; font-size: var(--fs-sm); line-height: 1.5; }
a.more-card:hover { background: var(--surface-hover); color: var(--text); }
.more-card strong { font-size: var(--fs-body); color: var(--title); }
.more-card .params { font-size: var(--fs-xs); color: var(--text-muted); }
.more-card .params b { color: var(--title); font-weight: 700; }
.more-card .link-chips { margin-top: 4px; gap: 6px; }
.more-card .link-chips a { background: var(--bg); padding: 6px 12px; font-size: var(--fs-xs); }
@media (max-width: 899px) {
  .pick { grid-template-columns: 1fr; gap: 8px; }
  .pick-card { padding: 12px 14px; }
  .more-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .anat-more { display: none; }
  .anat-row summary { align-items: flex-start; padding: 12px 14px; }
  .anat-row summary::after { margin-top: 10px; }
  .anat-body { padding: 0 14px 14px; }
}

/* Domain pages /domenii/<slug>/: hero cards, compact CTA, folded chapters, example strip, topic teaser
   (example section and hero cards: scripts/examples/pages.py; teaser: scripts/resources/topic_ideas.py) */
.pick-2 { grid-template-columns: repeat(2, minmax(0, 340px)); margin-top: 20px; }
.pick-thumb { flex: none; width: 42px; height: auto; border-radius: 4px; outline: 1px solid var(--border-strong); }
.cta-card.cta-compact { padding: 20px 22px; }
.cta-compact .cta-title { font-size: var(--fs-body); margin: 0 0 6px; }
.cta-compact .cta-text { font-size: var(--fs-sm); margin: 0 0 14px; }
.legal-content .anat-lead { margin-bottom: 0; }
.legal-content .anat-txt h3 { font-size: var(--fs-body); font-weight: 700; margin: 0; line-height: 1.35; }
/* /disertatie/: committee note inside a folded part, domain preview strip (the "all" card first) */
.legal-content .part-exp { font-size: var(--fs-sm); }
.part-exp strong { color: var(--green-dark); }
.dom-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 10px -20px 8px; padding: 0 20px 8px; scroll-padding: 0 20px; scrollbar-width: none; }
.dom-strip::-webkit-scrollbar { display: none; }
.dom-card { flex: 0 0 38%; max-width: 170px; scroll-snap-align: start; background: var(--surface); border-radius: var(--r-inner); padding: 8px 8px 10px; text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.dom-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: 6px; outline: 1px solid rgba(0,0,0,0.08); outline-offset: -1px; margin-bottom: 6px; }
.dom-card b { font-size: var(--fs-xs); color: var(--title); line-height: 1.3; }
.dom-card span { font-size: var(--fs-xs); line-height: 1.35; color: var(--text-muted); }
.dom-card.dom-all { justify-content: center; align-items: center; text-align: center; background: var(--green-tint); padding: 12px; }
.dom-card.dom-all b, .dom-card.dom-all span { color: var(--green-dark); }
.dom-card.dom-word img { aspect-ratio: 4 / 3; }
/* /domenii/: domains in groups, each group a strip of example pages (owner pick, 2026-10-13) */
.dh-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px 6px; padding: 0 20px 6px; scrollbar-width: none; }
.dh-chips::-webkit-scrollbar { display: none; }
.dh-chips a { flex: none; display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; padding: 9px 14px; border-radius: 999px; background: var(--surface); color: var(--title); font-size: var(--fs-xs); font-weight: 600; text-decoration: none; }
.dh-chips a:hover { background: var(--green-tint); }
@media (prefers-reduced-motion: no-preference) { .dh-chips a { transition: background-color .15s ease-out; } }
.dh-lead { font-size: var(--fs-xs); color: var(--text-muted); margin: 0 0 4px; }
.dh-group { scroll-margin-top: 80px; }
.dh-group h2 { display: flex; align-items: baseline; gap: 8px; margin: 28px 0 10px; }
.dh-group h2 span { font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted); }
.dh-group .dom-strip { margin-top: 0; }
@media (min-width: 900px) { .dh-group .dom-card { flex-basis: 160px; } }
.dh-all { margin: 24px 0 0; font-weight: 700; }
.dh-all a { color: var(--green); }
.dh-faq { margin-top: 48px; }
/* /modele/: the domain strip inside the hero */
.page-hero .hero-strip-lead { font-size: var(--fs-xs); font-weight: 700; color: var(--title); margin: 18px 0 0; }
.page-hero .dom-strip { margin-top: 10px; }
/* /blog/: guides grouped by topic (the thesis parts are the hero strip) */
.blog-group { max-width: 860px; margin: 0 auto 8px; }
.blog-group h2 { margin: 34px 0 12px; }
.blog-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 600px) { .blog-list { grid-template-columns: 1fr; } }
/* /blog/ on phones: each group scrolls sideways (2 rows of cards, 3 rows of guide links) instead of one long column */
@media (max-width: 600px) {
  .blog-group.strip .blog-list, .blog-group.strip .rel-list { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
  .blog-group.strip .blog-list { grid-template-rows: repeat(2, auto); }
  .blog-group.strip .rel-list { grid-template-rows: repeat(3, auto); }
  .blog-group.strip .blog-list::-webkit-scrollbar, .blog-group.strip .rel-list::-webkit-scrollbar { display: none; }
  .blog-group.strip .blog-list > *, .blog-group.strip .rel-list > li { scroll-snap-align: start; }
  .legal-content .blog-group.strip .rel-list li, .blog-group.strip .rel-list li { margin: 0; }
  /* /universitati/: card text kept to 3 lines in the city strips (full text stays in the HTML) */
  .blog-group.strip .blog-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
.blog-list .example-card .meta { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-group .anat-list { margin-top: 8px; }
.sv-list a { position: relative; padding-right: 34px; }
.sv-list a::after { position: absolute; right: 16px; top: 14px; }
.sv-list small { display: block; font-weight: 500; font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px; }
/* Homepage (2026-10-10): examples strip in the hero, real theses on the right, sections with swipe strips */
.hero-grid.has-works { align-items: center; }
.hero-strip-wrap { padding: 8px var(--gutter) 0; max-width: var(--w-page); margin: 0 auto; box-sizing: border-box; }
.hero-strip-wrap .hero-strip-lead { font-size: var(--fs-sm); font-weight: 700; color: var(--title); margin: 18px 0 0; }
.hero-strip-wrap .dom-strip, .home-sec .dom-strip { margin: 10px calc(-1 * var(--gutter)) 0; padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding: 0 var(--gutter); }
.hero-facts { font-size: var(--fs-xs); color: var(--text-muted); margin: 14px 0 0; line-height: 1.7; }
.hero-facts b { color: var(--title); }
.hero-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 10px 0 0; font-size: var(--fs-xs); font-weight: 700; }
.hero-works { margin-top: 8px; }
.hw-lead { font-size: var(--fs-xs); font-weight: 700; color: var(--title); margin: 0 0 10px; }
.hw-lead span { font-weight: 500; color: var(--text-muted); }
.hw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hw-card { background: var(--surface); border-radius: var(--r-inner); padding: 8px 8px 10px; text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.hw-card:hover { background: var(--surface-hover); }
.hw-card img { display: block; width: 100%; height: auto; aspect-ratio: 560 / 793; object-fit: cover; object-position: top; border-radius: 6px; outline: 1px solid rgba(0,0,0,0.08); outline-offset: -1px; margin-bottom: 6px; }
.hw-card b { font-size: var(--fs-xs); color: var(--title); line-height: 1.3; }
.hw-card span { font-size: var(--fs-xs); line-height: 1.35; color: var(--text-muted); }
.home-sec { padding: clamp(36px,6vw,64px) var(--gutter) 0; }
.home-wrap { max-width: calc(var(--w-page) - 2 * var(--gutter)); margin: 0 auto; }
.home-wrap.hero-strip-wrap { max-width: var(--w-page); }
.home-sec h2 { margin: 0 0 14px; color: var(--title); }
.home-lead { color: var(--text-muted); max-width: var(--w-prose); margin: 0 0 6px; }
.home-more { margin: 14px 0 0; font-weight: 700; }
.home-sec .link-chips { margin-top: 14px; }
.home-what { margin-top: 4px; }
/* Long-form text on the homepage (owner, 2026-10-13): the guide and one block per domain */
.home-guide > * { max-width: var(--w-prose); }
.home-guide p { line-height: var(--lh-body); margin: 0 0 12px; }
.home-guide h3 { color: var(--title); margin: 26px 0 8px; }
.home-guide .home-step { display: flex; align-items: center; gap: 12px; font-size: var(--fs-h3); margin: 24px 0 8px; scroll-margin-top: 80px; }
.home-step .anat-num { flex: none; }
.home-links { font-size: var(--fs-xs); font-weight: 700; }
.home-links a { color: var(--green-dark); }
.home-dom-group { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--green-dark); margin: 28px 0 10px; scroll-margin-top: 80px; }
.home-dom-grid { display: grid; gap: 10px; }
.home-dom { background: var(--surface); border-radius: var(--r-inner); padding: 20px 22px; scroll-margin-top: 80px; }
.home-dom h3 { color: var(--title); margin: 0 0 8px; line-height: 1.3; }
.home-dom p { font-size: var(--fs-sm); line-height: 1.6; margin: 0 0 10px; }
.home-dom .home-links { margin: 0; }
@media (min-width: 900px) { .home-dom-grid { grid-template-columns: 1fr 1fr; } }
.rev-strip, .txt-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 6px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 8px; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
.rev-strip::-webkit-scrollbar, .txt-strip::-webkit-scrollbar { display: none; }
.rev-card { flex: 0 0 78%; max-width: 330px; scroll-snap-align: start; background: var(--surface); border-radius: var(--r-inner); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.rev-card p { font-size: var(--fs-sm); line-height: 1.55; margin: 0; flex: 1; }
.rev-card b { font-size: var(--fs-xs); color: var(--title); }
.rev-card span { font-size: var(--fs-xs); color: var(--text-muted); }
.rev-card .rev-stars { color: var(--star); letter-spacing: 2px; }

/* Homepage (owner, 2026-11-13, after elaboramproiecte.ro): hero, numbers, Cum lucrăm, testimoniale, FAQ,
   one column with a lot of room. docs/decisions/2026-11-13-homepage-redesign.md */
.home .home-sec { padding: calc(var(--section) * 1.5) var(--gutter) 0; }
.home > :last-child { padding-bottom: calc(var(--section) * 1.5); }
.home .home-sec h2 { margin: 0 0 var(--sp-7); }
.home-hero { padding: calc(var(--section) * 1.5) var(--gutter) var(--section); }
.home-eyebrow { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: var(--title); margin: 0 0 var(--sp-6); }
.home-hero p.hero-crumbs { margin: 0 0 var(--sp-6); } /* /atestat/ and /grad-didactic/ keep their crumbs and date line */
.home-hero h1 { font-size: var(--fs-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.025em; color: var(--title); max-width: 12em; margin: 0 0 var(--sp-7); }
.home-hero-text { font-size: var(--fs-lead); line-height: 1.75; color: var(--text); max-width: var(--w-prose); margin: 0 0 var(--sp-8); }
.home-hero-text b { color: var(--title); font-weight: 700; }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
/* Homepage hero photo (owner, 2026-11-13): under the buttons on phones, beside the text on desktop. */
.home-hero-photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 0%; border-radius: var(--r-card); margin-top: var(--sp-8); }
@media (min-width: 900px) {
  .home-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--sp-9); align-items: center; }
  .home-hero-photo { margin-top: 0; aspect-ratio: 5 / 4; }
}
.home-hero-actions .btn { border-radius: 999px; padding: 12px var(--sp-6); }
.home-stats { padding: 0 var(--gutter); }
.home-stats-list { list-style: none; margin: 0 auto; padding: 0; max-width: calc(var(--w-page) - 2 * var(--gutter)); display: grid; }
.home-stats-list li { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); padding: var(--sp-8) 0; text-align: center; }
.home-stats-list b { font-size: var(--fs-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.025em; color: var(--title); }
.home-stats-list span { font-size: var(--fs-lead); line-height: 1.4; color: var(--text); max-width: 16em; }
.home .quote-panel { margin-bottom: 0; }
.home .rev-card { padding: var(--sp-6); gap: var(--sp-3); }
.home-faq > details, .home-faq > h2 { max-width: var(--w-prose); }
/* "De ce noi": a navy band (owner's reference). On navy: titles --surface, text --border, eyebrow and icons --green-line. */
.home-why { background: var(--title); padding: calc(var(--section) * 1.5) var(--gutter); margin-top: calc(var(--section) * 1.5); }
.home-why .home-eyebrow { color: var(--green-line); }
.home-why h2 { color: var(--surface); margin: 0 0 var(--sp-4); }
.home-why-lead { font-size: var(--fs-lead); line-height: var(--lh-body); color: var(--border); max-width: var(--w-prose); margin: 0 0 var(--sp-9); }
.home-why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-8); }
.home-why-list svg { display: block; color: var(--green-line); margin-bottom: var(--sp-4); }
.home-why-list h3 { color: var(--surface); margin: 0 0 var(--sp-2); }
.home-why-list p { font-size: var(--fs-body); line-height: 1.7; color: var(--border); max-width: var(--w-prose); margin: 0; }
.home-why-photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 30%; border-radius: var(--r-card); margin-top: var(--sp-10); }
@media (min-width: 900px) {
  .home-why-list { grid-template-columns: repeat(3, 1fr); gap: var(--sp-9) var(--sp-7); }
  .home-why-photo { aspect-ratio: 21 / 9; }
}
.home-faq > .btn { margin-top: var(--sp-6); }
@media (max-width: 899px) {
  .home-stats-list { max-width: 320px; }
  .home-stats-list li + li { border-top: 1px solid var(--border-strong); }
}
@media (min-width: 900px) {
  .home-stats-list { display: flex; } /* any number of items; the long one ("Primul capitol gratuit") gets more room */
  .home-stats-list li { flex: 1 1 0; min-width: 0; padding: var(--sp-6) var(--sp-4); }
  .home-stats-list li.stat-wide { flex-grow: 1.9; }
  .home-stats-list b { text-wrap: balance; }
  .home-stats-list b { font-size: var(--fs-h1); } /* 5 columns: "1 capitol" fits on one line */
  .home-stats-list li + li { border-left: 1px solid var(--border-strong); }
  .home .rev-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); overflow: visible; margin: 0; padding: 0; }
  .home .rev-card { max-width: none; }
}
.txt-card { flex: 0 0 74%; max-width: 290px; scroll-snap-align: start; background: var(--surface); border-radius: var(--r-inner); padding: 16px 18px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px; }
a.txt-card:hover { background: var(--surface-hover); color: inherit; }
.txt-card b { font-size: var(--fs-body); color: var(--title); line-height: 1.3; }
.txt-card small { font-size: var(--fs-xs); font-weight: 700; color: var(--green-dark); }
.txt-card p { font-size: var(--fs-sm); line-height: 1.55; margin: 0; color: var(--text); flex: 1; }
.txt-card .txt-more { font-size: var(--fs-xs); font-weight: 700; color: var(--green-dark); }
.txt-card .anat-num { margin-bottom: 2px; }
.txt-card.txt-all { flex-basis: 40%; max-width: 170px; justify-content: center; align-items: center; text-align: center; background: var(--green-tint); }
.txt-card.txt-all b, .txt-card.txt-all span { color: var(--green-dark); }
@media (min-width: 900px) { .home-what { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } }
@media (max-width: 899px) {
  .hero-grid.has-works { grid-template-columns: 1fr; }
  .hero-works { margin-top: 18px; }
  .hw-card img { aspect-ratio: 3 / 4; }
}
@media (min-width: 900px) {
  .hero-strip-wrap .dom-card, .home-sec .dom-card { flex: 0 0 210px; max-width: 210px; padding: 10px 10px 12px; }
  .hero-strip-wrap .dom-card b, .home-sec .dom-card b { font-size: var(--fs-body); }
  .hero-strip-wrap .hero-strip-lead { font-size: var(--fs-body); }
  .hero-links { font-size: var(--fs-sm); }
  .rev-card { flex: 0 0 360px; max-width: 360px; padding: 20px 22px; }
  .txt-card { flex: 0 0 340px; max-width: 340px; padding: 20px 22px; }
  .txt-card.txt-all { flex: 0 0 210px; max-width: 210px; }
}
.ex-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 6px -20px 6px; padding: 0 20px 8px; scroll-padding: 0 20px; scrollbar-width: none; }
.ex-strip::-webkit-scrollbar { display: none; }
.ex-strip figure { flex: 0 0 42%; max-width: 200px; margin: 0; scroll-snap-align: start; background: var(--surface); border-radius: var(--r-inner); padding: 8px; }
.ex-strip a { display: block; }
.ex-strip img { display: block; width: 100%; height: auto; border-radius: 6px; outline: 1px solid rgba(0,0,0,0.08); outline-offset: -1px; }
.ex-strip.wide figure { flex-basis: 72%; max-width: 300px; }
.ex-strip .ex-all { display: flex; background: var(--green-tint); }  /* "see all" card first (docs/design.md "Swipe strips") */
.ex-strip .ex-all a { display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; font-weight: 700; color: var(--green-dark); text-decoration: none; }
.ex-strip figcaption { font-size: var(--fs-xs); color: var(--text-muted); text-align: center; margin-top: 6px; line-height: 1.35; }
.legal-content .ex-lead { margin: 18px 0 8px; }
.legal-content .ex-hint { font-size: var(--fs-xs); color: var(--text-muted); margin: 0 0 14px; }
.ex-dl { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--surface); border-radius: var(--r-inner); padding: 14px 16px; margin-bottom: 14px; }
.ex-dl span { font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.5; }
.ex-dl span a { font-weight: 700; }
.tt-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin: 6px 0 4px; }
.tt-card { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border-radius: var(--r-inner); padding: 14px 16px; color: var(--title); text-decoration: none; }
.tt-card:hover { background: var(--surface-hover); color: var(--title); }
.tt-card strong { font-size: var(--fs-sm); line-height: 1.35; }
.tt-card small { font-size: var(--fs-xs); color: var(--text-muted); }
.tt-level { align-self: flex-start; font-size: var(--fs-xs); font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--green-tint); color: var(--green-dark); }
.tt-level.tt-mediu { background: var(--bg-deep); color: var(--title); }
.tt-level.tt-ambitios { background: var(--title); color: var(--surface); }
.tt-more { font-weight: 700; }
.legal-content .related-label { font-size: var(--fs-xs); font-weight: 700; color: var(--text-muted); margin: 10px 0 0; }
@media (max-width: 899px) { .tt-grid { grid-template-columns: 1fr; gap: 8px; } }
@media (max-width: 600px) { .pick-2 { grid-template-columns: 1fr; gap: 8px; } }

/* Blog guides with folded parts (/blog/structura-lucrare-licenta/ first, TODO.md declutter item 8) */
.legal-content .anat-txt h2 { font-size: var(--fs-body); font-weight: 700; margin: 0; line-height: 1.35; color: var(--title); scroll-margin-top: 90px; }
.anat-txt small { display: block; font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px; font-weight: 400; }
.legal-content .phase-title { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--green-dark); margin: 22px 0 8px; }
.list-tools { display: flex; justify-content: flex-end; margin: -4px 0 8px; }
.open-all, .part-next { all: unset; cursor: pointer; font-weight: 700; color: var(--green-dark); }
.open-all { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; font-size: var(--fs-xs); background: var(--green-tint); padding: 8px 16px; border-radius: var(--r-pill); }
.part-next { display: inline-flex; align-items: center; min-height: 44px; margin-top: 2px; font-size: var(--fs-xs); }
.toc-fold { padding: 0; }
.toc-fold > summary { padding: 16px 20px; }
.toc-fold nav { padding: 0 24px 14px; }
.toc-fold a { color: var(--title); font-weight: 500; }
.hero-date { color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.page-hero p.hero-date { font-size: var(--fs-xs); line-height: 1.4; color: var(--text-muted); font-weight: 500; margin: 10px 0 0; }
.fix-list { list-style: none; padding: 0; margin: 10px 0 0; }
.legal-content .fix-list li { background: var(--surface); border-radius: var(--r-inner); padding: 12px 16px; margin: 0 0 8px; display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-sm); line-height: 1.45; }
.fx-bad { color: var(--text-muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.fx-bad::before { content: "✗ "; display: inline-block; margin-right: 4px; }
.fx-good { color: var(--title); font-weight: 600; }
.fx-good::before { content: "✓ "; color: var(--green); }
.rel-list { list-style: none; padding: 0; margin: 8px 0 0; }
.legal-content .rel-list li { margin: 0 0 8px; }
.rel-list a { display: block; background: var(--surface); border-radius: var(--r-inner); padding: 14px 16px; font-weight: 700; color: var(--title); text-decoration: none; }
.rel-list a::after { content: " →"; color: var(--green); }
.anat-body table { font-size: var(--fs-xs); }
.wcard { display: flex; gap: 18px; align-items: center; background: var(--surface); border-radius: var(--r-card); padding: 18px; margin: 0 0 24px; }
.wcard-pages { flex: none; display: flex; gap: 6px; }
.wcard-pages a { display: block; }
.wcard-pages img { display: block; width: 62px; height: auto; border-radius: 4px; outline: 1px solid var(--border-strong); }
.wcard-text { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.wcard-text strong { font-size: var(--fs-body); color: var(--title); }
.wcard-text span { font-size: var(--fs-xs); color: var(--text-muted); }
.part-shot { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; text-decoration: none; font-weight: 700; font-size: var(--fs-xs); color: var(--green-dark); }
.part-shot img { width: 84px; height: auto; border-radius: 4px; outline: 1px solid var(--border-strong); }
.part-shot.wide img { width: 150px; }

/* ============================================================
   DOCUMENT PREVIEW (/viewer.js, DESIGN.md "Document preview")
   A reader inside the page, under the tapped link (owner pick, 2026-10-11: no popup).
   ============================================================ */
.pv { position: relative; margin: 12px 0 18px; background: var(--surface); border-radius: var(--r-card); overflow: hidden; text-align: left; }
.pv-bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.pv-close, .pv-arrow { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: 999px; color: var(--title); cursor: pointer; background: var(--surface); }
.pv-close:hover, .pv-arrow:hover { background: var(--surface-hover); }
.pv-close:focus-visible, .pv-arrow:focus-visible, .pv-pages:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.pv-arrow:disabled { opacity: 0.3; cursor: default; }
.pv-head { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.25; }
.pv-head strong { font-size: var(--fs-sm); color: var(--title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-count { font-size: var(--fs-xs); color: var(--text-muted); }
.pv-dl.btn { flex: none; gap: 5px; padding: 10px 14px; font-size: var(--fs-xs); min-height: 44px; }
.pv-pages { position: relative; display: flex; align-items: flex-start; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px; background: var(--bg-deep); scrollbar-width: none; }
.pv-pages::-webkit-scrollbar { display: none; }
.pv-page { flex: 0 0 86%; max-width: 520px; margin: 0; scroll-snap-align: center; }
.pv-page img { display: block; max-height: 72vh; width: auto; max-width: 100%; height: auto; margin: 0 auto; background: var(--surface); border-radius: 4px; outline: 1px solid rgba(0,0,0,0.08); outline-offset: -1px; cursor: zoom-in; }
.pv-arrow { position: absolute; top: 55%; }
.pv-prev { left: 8px; }
.pv-next { right: 8px; }
/* A tap on a page: twice as large, scrolled inside the page frame; a second tap fits it again */
.pv-zoomed .pv-page { flex-basis: 100%; max-width: none; overflow: auto; max-height: 80vh; }
.pv-zoomed .pv-page img { max-width: none; max-height: none; width: 200%; cursor: zoom-out; }
@media (max-width: 899px) { .pv-arrow { display: none; } }
@media (max-width: 600px) { .pv-dl-kind { display: none; } .pv-head strong { font-size: var(--fs-xs); } }
@media (min-width: 900px) { .pv-zoomed .pv-page img { width: 140%; } }
/* Slide viewer on /resurse/model-prezentare-powerpoint-licenta/: the template's slides with what to write and say,
   or a domain's example deck picked from the strip below it (prototype pick, 2026-10-11) */
.slide-viewer { background: var(--surface); border-radius: var(--r-card); padding: 12px; margin: 0 0 20px; scroll-margin-top: 80px; }
.legal-content .sv-lead { margin-top: -4px; }
.sv-stage { position: relative; }
.sv-img { display: block; width: 100%; height: auto; aspect-ratio: 1100 / 619; border-radius: 8px; outline: 1px solid rgba(0,0,0,0.08); outline-offset: -1px; background: var(--bg); }
.sv-nav { all: unset; box-sizing: border-box; cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: color-mix(in srgb, var(--title) 82%, transparent); color: var(--surface); display: grid; place-items: center; font-size: var(--fs-h2); line-height: 1; }
.sv-nav:focus-visible, .sv-th:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.sv-prev { left: 8px; }
.sv-next { right: 8px; }
.sv-count { position: absolute; right: 10px; bottom: 10px; background: color-mix(in srgb, var(--title) 82%, transparent); color: var(--surface); font-size: var(--fs-xs); font-weight: 700; padding: 4px 9px; border-radius: var(--r-pill); }
.legal-content ol.sv-notes { list-style: none; padding: 0; margin: 10px 2px 8px; min-height: 120px; }
.sv-notes li { display: none; margin: 0; }
.sv-notes li.on { display: block; }
.slide-viewer.is-ex .sv-notes { display: none; }
.legal-content .sv-notes h3 { font-size: var(--fs-body); margin: 0 0 6px; }
.legal-content .sv-notes p { font-size: var(--fs-sm); margin: 0 0 4px; }
.legal-content .sv-notes p.sv-say { background: var(--green-tint); color: var(--green-dark); border-radius: 8px; padding: 8px 10px; margin-top: 6px; }
.sv-ex { margin: 10px 2px 8px; min-height: 120px; }
.sv-ex[hidden] { display: none; }
.sv-ex-t { display: block; font-size: var(--fs-body); color: var(--title); margin: 0 0 6px; }
.legal-content .sv-ex p { font-size: var(--fs-xs); color: var(--text-muted); margin: 0; }
.sv-rail { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; }
.sv-rail::-webkit-scrollbar { display: none; }
.sv-th { all: unset; cursor: pointer; flex: 0 0 92px; position: relative; border-radius: 5px; outline: 2px solid transparent; outline-offset: 1px; }
.sv-th img { display: block; width: 100%; height: auto; border-radius: 5px; }
.sv-th span { position: absolute; left: 4px; top: 4px; font-size: var(--fs-xs); font-weight: 700; background: var(--surface); color: var(--title); border-radius: 4px; padding: 1px 5px; }
.sv-th[aria-current="true"] { outline-color: var(--green); }
.dom-card.sv-card img { aspect-ratio: 16 / 9; }
.dom-card.sv-card[aria-current="true"] { outline: 2px solid var(--green); }
.sv-unis .txt-card:not(.txt-all) { flex-basis: 62%; max-width: 250px; }
.sv-unis .txt-card small { margin-top: auto; }
.legal-content .sv-note { font-size: var(--fs-xs); color: var(--text-muted); }
.legal-content .anat-body ul { margin-bottom: 0; }
@media (max-width: 600px) {
  .sv-nav { width: 34px; height: 34px; background: color-mix(in srgb, var(--title) 60%, transparent); }
  .sv-prev { left: 4px; }
  .sv-next { right: 4px; }
}

@media (max-width: 600px) {
  .wcard { flex-direction: column; align-items: stretch; }
  .wcard-pages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .wcard-pages img { width: 100%; }
}

/* Topic idea pages /resurse/teme-licenta/<domeniu>/ and their hub card (generated by scripts/resources/topic_ideas.py) */
p.hero-crumbs, .page-hero p.hero-crumbs, .legal-content p.hero-crumbs { font-size: var(--fs-xs); font-weight: 600; line-height: 1.4; color: var(--green); margin: 0 0 10px; }
.hero-crumbs a { color: var(--green); }
.level-why { font-size: var(--fs-sm); }
.legal-content .topic-area-title { font-size: var(--fs-body); font-weight: 800; color: var(--title); margin: 28px 0 12px; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.topic-hub-card { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border-radius: var(--r-inner); padding: 16px 18px; color: var(--text); text-decoration: none; }
.topic-hub-card:hover { background: var(--surface-hover); }
.topic-hub-title { font-size: var(--fs-body); font-weight: 800; color: var(--title); line-height: 1.3; }
.topic-hub-example { font-size: var(--fs-xs); line-height: 1.5; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.topic-hub-card .read-more { font-size: var(--fs-xs); font-weight: 700; color: var(--green); margin-top: auto; }
@media (max-width: 600px) {
  .topic-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .topic-hub-card { padding: 14px; min-height: 44px; }
  .topic-hub-title { font-size: var(--fs-sm); }
  .topic-hub-example { display: none; }
}
.topic-ideas { margin: 16px 0 12px; }
.topic-idea summary { align-items: flex-start; }
.topic-idea summary::after { margin-top: 10px; }
.topic-idea-head { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.topic-idea-title { line-height: 1.45; }
.topic-idea-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: var(--fs-xs); font-weight: 600; line-height: 1; padding: 6px 11px; border-radius: 999px; background: var(--bg-deep); color: var(--text); }
.topic-idea-body { display: grid; grid-template-columns: 150px 1fr; gap: 10px 18px; margin: 0; padding: 4px 20px 20px; font-size: var(--fs-sm); line-height: var(--lh-body); }
.topic-idea-body dt { font-weight: 700; color: var(--title); }
.topic-idea-body dd { margin: 0; color: var(--text); }
.legal-content .link-chips + .topic-next { margin-top: 14px; } /* hub help line under the area chips */
.legal-content .topic-idea-cta { margin: -6px 0 0; font-weight: 700; color: var(--title); } /* padding and size from details > p */
/* Topic pages, resources PR 4: easiest-topic line, WhatsApp lines under branches and disertație, official lists, hub finder. */
.legal-content .topic-easy { margin: 14px 0 0; }
.legal-content .topic-branch-cta, .legal-content .topic-dis-cta { margin: 10px 0 0; font-weight: 700; color: var(--title); }
.legal-content .official-lists { font-size: var(--fs-sm); }
.legal-content .official-lists-date { font-size: var(--fs-xs); color: var(--text-muted); }
.tool-tabs button[aria-pressed="true"] { background: var(--title); border-color: var(--title); color: var(--surface); }
.topic-finder .tool-tabs { margin: 16px 0 0; }
.topic-finder[hidden], .topic-finder [hidden] { display: none; }
.legal-content .topic-finder .tf-count { margin: 12px 0 0; font-size: var(--fs-sm); font-weight: 700; color: var(--title); }
.topic-finder .tf-count:empty { display: none; }
.topic-finder details.topic-idea { background: var(--bg); }
/* Drept grile (resources PR 4): question, options as tap targets, marked after the check. */
.gr-list { margin-top: 18px; }
.gr-q { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.gr-q legend { padding: 0; margin-bottom: 8px; font-weight: 700; color: var(--title); line-height: var(--lh-body); }
.gr-q legend .tag { margin-right: 6px; }
.gr-opt { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; box-sizing: border-box; padding: 10px 12px; margin-top: 6px; border-radius: 12px; background: var(--bg); line-height: var(--lh-body); cursor: pointer; }
.gr-opt input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; }
.gr-opt.is-correct { background: var(--green-tint); }
.gr-opt.is-wrong { background: var(--error-tint); }
.legal-content .gr-expl p { margin: 10px 0 0; font-size: var(--fs-sm); }
@media (max-width: 600px) {
  .topic-idea-body { grid-template-columns: 1fr; gap: 2px; }
  .topic-idea-body dd { margin-bottom: 12px; }
  .legal-content .topic-idea-cta { margin-top: -18px; }
}

/* ============================================================
   PRICE TABLE
   ============================================================ */
.price-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 24px 0; font-size: var(--fs-sm); background: var(--surface); border-radius: var(--r-inner); overflow: hidden; }
.price-table th { text-align: left; padding: 14px 16px; background: var(--title); color: var(--surface); font-size: var(--fs-xs); font-weight: 700; }
.price-table td { padding: 14px 16px; color: var(--text); border-bottom: 1px solid var(--border); }
.price-table tr:last-child td { border-bottom: none; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 360px; gap: clamp(40px,6vw,80px); align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: var(--fs-xs); font-weight: 600; color: var(--title); }
.form-group input,
.form-group textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  font-size: var(--fs-body);
  font-family: inherit;
  color: var(--title);
  background: var(--surface);
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--title); }
.form-group textarea { resize: vertical; min-height: 130px; }
/* /contact/ (owner, 2026-11-14): „Cum lucrăm” under the form, on the form's column. */
.page-content > .quote-panel + .how-we-work { max-width: calc(var(--w-prose) + 2 * var(--pad-card)); margin: 0 auto; }
/* Quote form (owner, 2026-11-13, after elaboramproiecte.ro "Formular Ofertă Preț"): /contact/ and /preturi/.
   Labels over big rounded fields, one full-width button; it still only opens WhatsApp. */
.quote-panel { background: var(--bg-deep); border-radius: var(--r-card); padding: var(--pad-card); max-width: calc(var(--w-prose) + 2 * var(--pad-card)); margin: 0 auto var(--section); }
.quote-panel h2 { margin: 0 0 var(--sp-3); }
.quote-panel > p { font-size: var(--fs-body); line-height: 1.7; color: var(--text); margin: 0 0 var(--sp-7); }
.quote-panel .tool { background: none; border-radius: 0; padding: 0; margin: 0; }
.quote-panel .tool-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
.quote-panel .tool-grid + .form-group,
.quote-panel .tool > .form-group + .form-group { margin-top: var(--sp-5); }
.quote-panel .form-group { gap: var(--sp-2); }
.quote-panel .form-group label { font-size: var(--fs-body); font-weight: 600; color: var(--title); }
.quote-panel .form-group input,
.quote-panel .tool .form-group select { width: 100%; min-height: 56px; padding: 0 var(--sp-5); border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: var(--fs-body); font-family: inherit; color: var(--title); }
.quote-panel .tool .form-group select:focus { border-color: var(--title); }
.quote-panel .tool-actions { margin-top: var(--sp-7); }
.quote-panel .tool-actions .btn { width: 100%; min-height: 56px; border-radius: 999px; }
.quote-panel .hint { margin: var(--sp-3) 0 0; text-align: center; }
@media (min-width: 900px) { .quote-panel .tool-grid { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   WRONG / RIGHT (del, ins)
   ============================================================ */
del { color: var(--error); text-decoration: line-through; background: var(--error-tint); padding: 0 2px; border-radius: 2px; }
ins { color: var(--green-dark); text-decoration: none; font-style: normal; background: var(--green-tint); padding: 0 2px; border-radius: 2px; }

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 16px; margin-top: 36px; }
.blog-card {
  background: var(--surface); border-radius: var(--r-card);
  padding: 28px 26px; display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; color: inherit; border: 1.5px solid transparent;
}
.blog-card:hover { border-color: var(--border-strong); color: inherit; }
.blog-card time, .blog-card .meta { font-size: var(--fs-xs); color: var(--text-muted); }
.blog-card h2, .blog-card h3 { font-size: var(--fs-h3); font-weight: 800; letter-spacing: -0.01em; color: var(--title); margin: 0; line-height: 1.3; }
.blog-card p { font-size: var(--fs-sm); line-height: 1.6; color: var(--text); margin: 0; }
.blog-card .read-more { font-size: var(--fs-xs); font-weight: 700; color: var(--green); margin-top: auto; padding-top: 4px; }

/* Article layout */
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--fs-xs); color: var(--text-muted); margin-top: 18px; }
.article-meta span + span::before { content: '·'; margin-right: 14px; }
.toc { background: var(--surface); border-radius: var(--r-card); padding: 22px 26px; margin: 0 0 36px; }
.toc strong { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--green-dark); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2 260px; column-gap: 32px; }
.toc li { font-size: var(--fs-sm) !important; line-height: 1.5 !important; margin-bottom: 6px !important; break-inside: avoid; }
.toc a { color: var(--title); font-weight: 500; }
.toc a:hover { color: var(--green); }
.legal-content h2[id], .legal-content h3[id], .topic-hub-card[id] { scroll-margin-top: 80px; }
.author-box { display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border-radius: var(--r-card); padding: 24px 26px; margin-top: 44px; }
.author-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--title); color: var(--surface); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: var(--fs-lead); flex-shrink: 0; }
.author-box p { margin: 0 !important; }
.author-box .author-label { font-size: var(--fs-xs) !important; color: var(--text-muted) !important; }
.author-box .author-name { font-size: var(--fs-body) !important; font-weight: 800; color: var(--title) !important; margin: 2px 0 6px !important; }
.related { margin-top: 44px; }
.related h2 { margin-top: 0 !important; }
.related .blog-grid { margin-top: 16px; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); }
.related .blog-card { padding: 22px; }
.related .blog-card h3 { font-size: var(--fs-body); margin: 0; }
.related .blog-card p { font-size: var(--fs-xs); line-height: 1.55; margin: 0; }
/* CTA card title and text: every page uses these classes, never inline styles */
.cta-card .cta-title { font-size: var(--fs-lead); line-height: 1.3; color: var(--title); margin: 0 0 10px; }
.cta-card .cta-text { font-size: var(--fs-sm); line-height: var(--lh-body); color: var(--text); margin: 0 0 20px; }
/* FAQ wrapper: the questions as a column of folded rows */
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.faq-list > details { margin-bottom: 0; }
/* Trust facts under a page title (e.g. /preturi/) */
.trust-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.trust-chips li { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border-radius: var(--r-pill); padding: 8px 14px; font-size: var(--fs-xs); font-weight: 600; color: var(--title); }
.trust-chips svg { color: var(--green); flex: none; }
/* Contact block at the end of a page: WhatsApp button, never the phone number as text */
.contact-card { max-width: 860px; margin-top: 40px; }
.contact-card h2 { margin-top: 0; }
.contact-card .btn { margin-top: 6px; }
/* Card that sends visitors to proof (example theses, demo) */
.proof-card { margin: 40px 0; }
.proof-card h2 { margin-top: 0; }
.proof-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.link-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.link-chips a { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; background: var(--surface); border-radius: var(--r-pill); padding: 8px 16px; font-size: var(--fs-xs); font-weight: 600; color: var(--title); }
.link-chips a:hover { background: var(--green-tint); color: var(--green-dark); }

/* Worked examples and sample documents inside articles */
.example { background: var(--surface); border-radius: var(--r-inner); padding: 18px 22px; margin: 0 0 18px; }
.price-summary { max-width: 760px; margin: 0 auto 32px; }
.example-label { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--green-dark); margin-bottom: 8px; }
.ref-hang { padding-left: 2em; text-indent: -2em; } /* bibliography entries with a hanging indent (APA examples) */
.legal-content .example p:last-child { margin-bottom: 0; }
.sample-toc { background: var(--surface); border-radius: var(--r-card); padding: 22px 26px; margin: 0 0 12px; }
.sample-toc .row { display: flex; gap: 8px; align-items: baseline; font-size: var(--fs-sm); line-height: 1.9; color: var(--title); }
.sample-toc .row.lvl1 { font-weight: 700; }
.sample-toc .row.lvl2 { padding-left: 22px; color: var(--text); }
.sample-toc .row.lvl3 { padding-left: 44px; color: var(--text); }
.sample-toc .dots { flex: 1; border-bottom: 1.5px dotted var(--border-strong); transform: translateY(-5px); min-width: 24px; }
.sample-note { font-size: var(--fs-xs) !important; color: var(--text-muted) !important; margin-top: 0 !important; }

/* Free resources: download box and in-browser tools */
.download-box { background: var(--surface); border-radius: var(--r-card); padding: clamp(22px,3vw,30px); margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.download-box strong { display: block; font-size: var(--fs-lead); color: var(--title); }
.download-box span { font-size: var(--fs-xs); color: var(--text-muted); }
.legal-content .example-disclaimer { font-size: var(--fs-xs); color: var(--text-muted); }
.tool { background: var(--surface); border-radius: var(--r-card); padding: clamp(20px,3vw,30px); margin: 0 0 28px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 18px; }
.tool .form-group { margin-bottom: 0; }
.tool .form-group select { padding: 12px 14px; border: 1.5px solid var(--border-strong); border-radius: 12px; font-size: var(--fs-body); font-family: inherit; color: var(--title); background: var(--surface); }
.tool .hint { font-size: var(--fs-xs); color: var(--text-muted); }
.tool-result { background: var(--green-tint); border-radius: var(--r-inner); padding: 18px 20px; margin-top: 18px; }
.tool-result .label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--green-dark); }
.tool-result .value { font-size: var(--fs-body); color: var(--title); line-height: var(--lh-body); margin: 6px 0 12px; word-break: break-word; }
.tool-result .big { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.02em; color: var(--title); line-height: 1.1; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: var(--fs-xs); }
/* Shared tool parts (resources PR 1): one tab row, highlights, input/result tables, timeline bars, a highlighted text box. */
.tool-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.tool-tabs button { font: inherit; font-size: var(--fs-xs); font-weight: 700; min-height: 44px; padding: 8px 16px; border-radius: var(--r-pill); border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--title); cursor: pointer; }
.tool-tabs button[aria-selected="true"] { background: var(--title); border-color: var(--title); color: var(--surface); }
.tool-tabs button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.tool-panel[hidden] { display: none; }
mark.tool-hl { background: var(--green-tint); color: var(--title); border-bottom: 2px solid var(--green); border-radius: 2px; padding: 0 1px; }
mark.tool-hl.is-error { background: var(--error-tint); border-bottom-color: var(--error); }
.tool-text { background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: 12px; padding: 12px 14px; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--title); white-space: pre-wrap; word-break: break-word; max-height: 360px; overflow: auto; }
.tool-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.tool-table th, .tool-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.tool-table th { color: var(--title); font-weight: 700; }
.tool-table input, .tool-table select { width: 100%; min-width: 64px; min-height: 44px; padding: 8px 10px; border: 1.5px solid var(--border-strong); border-radius: 10px; font: inherit; font-size: var(--fs-body); color: var(--title); background: var(--surface); }
.tool-bars { display: grid; gap: 8px; }
.tool-bars .bar-row { display: grid; grid-template-columns: minmax(0, 10em) 1fr; gap: 10px; align-items: center; font-size: var(--fs-xs); color: var(--text); }
.tool-bars .bar-track { position: relative; height: 14px; background: var(--bg-deep); border-radius: var(--r-pill); }
.tool-bars .bar { position: absolute; top: 0; bottom: 0; background: var(--green); border-radius: var(--r-pill); }
.tool-bars .bar.is-done { background: var(--green-line); }
/* /embed/<tool>/ pages: the tool alone inside another site's iframe (scripts/resources/build_embeds.py) */
body.embed { background: var(--bg); margin: 0; }
.embed-main { padding: 8px; }
.embed-main .tool { margin: 0; }
.embed-credit { font-size: var(--fs-xs); color: var(--text-muted); margin: 10px 4px 0; }
.embed-credit a { color: var(--green); font-weight: 600; }
/* /resurse/instrumente-pe-site-ul-tau/: the embed code and a live preview */
.emb-preview-label { font-size: var(--fs-xs); font-weight: 700; color: var(--green-dark); margin: 20px 0 8px; }
.emb-frame { display: block; width: 100%; border: 0; border-radius: var(--r-inner); background: var(--bg); }
/* tools: writing (counter, corrector, formatting check) */
.tool-file { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); margin-top: var(--sp-3); }
.tool-file input[type="file"] { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.tool-file input[type="file"]:focus-visible + label { outline: 2px solid var(--green); outline-offset: 2px; }
.tool-file label { cursor: pointer; }
.tool .tool-file-msg { margin: var(--sp-2) 0 0; color: var(--title); }
.cnt-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); margin-top: var(--sp-4); }
.cnt-stats > div { background: var(--bg); border-radius: var(--r-inner); padding: 10px 12px; }
.cnt-stats > div[hidden] { display: none; }
.cnt-stats strong { display: block; font-size: var(--fs-h3); font-weight: 800; color: var(--title); line-height: 1.2; overflow-wrap: anywhere; }
.cnt-stats span { display: block; font-size: var(--fs-xs); color: var(--text); line-height: 1.3; margin-top: 2px; }
.cnt-pair, .cnt-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3) var(--sp-4); }
.cnt-settings { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--border); }
.cnt-settings[hidden], .tool .cnt-note[hidden] { display: none; }
.tool .cnt-note { margin: var(--sp-3) 0 0; }
@media (max-width: 600px) { .cnt-settings .form-group:first-child { grid-column: 1 / -1; } }
.tool .form-group input, .tool .form-group select { min-width: 0; }
.dia-opts { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-3); }
.dia-opts label { font-size: var(--fs-sm); color: var(--text); line-height: 1.4; }
.dia-opts .dia-check { display: flex; gap: var(--sp-3); align-items: flex-start; }
.dia-opts input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--green); }
.dia-opts input[type="number"] { width: 5em; margin: 0 4px; min-height: 44px; padding: 8px 10px; border: 1.5px solid var(--border-strong); border-radius: 12px; font: inherit; font-size: var(--fs-body); color: var(--title); background: var(--surface); }
.tool-result .dia-issues { list-style: none; padding: 0; margin: 6px 0 var(--sp-4); }
.tool-result .dia-issues li { font-size: var(--fs-sm); color: var(--title); line-height: 1.4; margin: 0 0 4px; }
.dia-issues li.is-error strong { color: var(--error); }
.dia-text { margin-top: 6px; }
.dia-text mark.is-error { cursor: pointer; }
.tool .dia-legend { margin: var(--sp-2) 0 0; }
.tool .fmt-head { margin: var(--sp-5) 0 var(--sp-2); font-size: var(--fs-xs); font-weight: 700; color: var(--green-dark); }
.fmt-head .hint { display: block; font-weight: 400; }
.fmt-margins, .fmt-text { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); }
.fmt-text { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--sp-3); }
@media (max-width: 600px) {
  .fmt-margins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fmt-text .form-group:first-child, .fmt-text .form-group:last-child { grid-column: 1 / -1; }
}
.tool-result .fmt-sum { font-size: var(--fs-h3); font-weight: 800; color: var(--title); line-height: 1.3; margin: 0 0 var(--sp-3); }
.tool-result .fmt-list { list-style: none; padding: 0; margin: 6px 0 var(--sp-4); }
.tool-result .fmt-list[hidden], .tool-result .label[hidden] { display: none; }
.tool-result .fmt-list li { position: relative; padding-left: 24px; font-size: var(--fs-sm); color: var(--title); line-height: 1.45; margin: 0 0 6px; }
.fmt-list li::before { position: absolute; left: 0; top: 0; width: 18px; text-align: center; font-weight: 800; }
.fmt-list li.is-ok::before { content: "✓"; color: var(--green-dark); }
.fmt-list li.is-warn::before { content: "!"; color: var(--error); }
.fmt-list li.is-unknown::before { content: "?"; color: var(--text-muted); }
/* tools: citations (Chicago notes, APA list, ISO 690, IEEE, citation check) */
.tool .tool-row { margin-top: var(--sp-3); }
.tool-check { display: flex; align-items: center; gap: var(--sp-2); min-height: 44px; font-size: var(--fs-sm); color: var(--title); cursor: pointer; }
.tool-check input { width: 20px; height: 20px; accent-color: var(--green); flex-shrink: 0; }
.tool .hint:empty { display: none; }
.tool .cite-list { list-style: none; margin: var(--sp-3) 0 0; padding: 0; counter-reset: cite; }
.tool .cite-list li { display: flex; align-items: flex-start; gap: var(--sp-2); margin: 0; padding: var(--sp-2) 0; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); line-height: var(--lh-body); color: var(--title); }
.cite-list li:last-child { border-bottom: 0; }
.cite-list .cite-txt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
ol.cite-list li::before { counter-increment: cite; content: counter(cite); flex-shrink: 0; min-width: 1.6em; font-weight: 700; color: var(--green-dark); }
.cite-del { flex-shrink: 0; min-width: 44px; min-height: 44px; margin: calc(-1 * var(--sp-2)) 0; border: 0; background: none; color: var(--text-muted); font: inherit; font-size: var(--fs-body); cursor: pointer; border-radius: var(--r-control); }
.cite-del:hover { color: var(--error); background: var(--error-tint); }
.cite-del:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.tool textarea.cite-paste { min-height: 110px; font-size: var(--fs-sm); }
.tool textarea.tool-short { min-height: 90px; }
.tool .cit-out { margin: var(--sp-2) 0 var(--sp-3); padding-left: 1.2em; font-size: var(--fs-sm); color: var(--title); }
.tool .cit-out li { margin-bottom: var(--sp-1); overflow-wrap: anywhere; }
/* tools: planners and calculators (plan, average, licență grade, hypotheses, sample size) */
.tool-result .tool-note { margin-bottom: 0; }
#pl-tool p.hint, #md-tool p.hint, #nt-tool p.hint, #ip-tool p.hint { margin: var(--sp-3) 0 0; line-height: var(--lh-body); }
.tool-table input[aria-invalid="true"] { border-color: var(--error); }
.tool-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tool-x { min-width: 44px; min-height: 44px; border: 0; border-radius: 12px; background: none; color: var(--text-muted); font: inherit; font-size: var(--fs-h3); line-height: 1; cursor: pointer; }
.tool-x:hover { background: var(--surface-hover); color: var(--title); }
.md-table th, .md-table td { padding: 6px 4px; vertical-align: middle; }
.md-table .md-num { width: 64px; }
.md-table .md-del { width: 48px; text-align: center; }
.md-table input { min-width: 0; }
.md-need { margin-top: var(--sp-4); }
.legal-content .pl-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.pl-step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 6px; align-items: start; margin: 0 !important; }
.pl-check { display: grid; place-items: center; min-height: 52px; cursor: pointer; }
.pl-check input { width: 22px; height: 22px; accent-color: var(--green); }
.pl-step details { background: var(--bg); margin: 0; }
.pl-step summary { padding: 12px 14px; }
.pl-step .anat-body { padding: 0 14px 14px; }
.pl-step .anat-txt strong { font-size: var(--fs-body); }
.pl-step.is-done .anat-txt strong { color: var(--text-muted); text-decoration: line-through; }
.pl-step.is-late .pl-when { color: var(--error); font-weight: 600; }
.pl-step.is-now .pl-when { color: var(--green-dark); font-weight: 600; }
.pl-bars { margin-top: 18px; }
.pl-bars[hidden], .nt-lic[hidden], .tool .form-group[hidden] { display: none; }
.ip-out .label { margin-top: var(--sp-4); }
.ip-out .label:first-child { margin-top: 0; }
.legal-content .ip-list { margin: 6px 0 0; padding-left: 22px; }
.legal-content .ip-list li { margin: 0 0 4px; color: var(--title); }
.legal-content .ip-list.ip-h { list-style: none; padding-left: 0; }
.ip-out .value { margin: 6px 0 0; }
.ip-out .ip-note { margin-top: var(--sp-3); }
#ip-copied { align-self: center; }
.ip-full { grid-column: 1 / -1; }
.ss-more { margin-top: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.ss-more select { min-width: 0; width: 100%; }
.ss-more .ss-rate { grid-column: 1 / -1; }
@media (max-width: 600px) { .ss-tabs button { flex: 1 1 auto; padding: 8px 10px; } }
.nt-table { margin-top: var(--sp-4); }
.nt-table th, .nt-table td { vertical-align: middle; }
.nt-table th[scope="row"] { width: 72px; color: var(--text-muted); font-weight: 600; }
.nt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px; }
.nt-grid select, .nt-grid input { min-width: 0; width: 100%; }
@media (max-width: 600px) { .nt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pl-bars .bar.is-late { background: var(--error); }
.pl-now { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--title); }
/* tools: statistics, field and table tools (test chooser, biodiversity, CAO, APA table, paraphrase) */
.tool .form-group[hidden] { display: none; }
.tool-result .ts-big { font-size: var(--fs-h2); }
.bio-matrix th, .bio-matrix td { padding: 4px; border-bottom: none; }
.bio-matrix .bio-name { min-width: 7em; }
.bio-matrix .bio-st, .bio-matrix .bio-n { min-width: 5em; }
.bio-matrix .bio-n { text-align: right; }
.bio-opts { margin-top: var(--sp-5); }
.bio-res td + td, .bio-res th + th { text-align: right; }
.tool-result .bio-res { background: var(--surface); border-radius: var(--r-inner); }
.cao-in th, .cao-in td { padding: 4px; vertical-align: middle; }
.cao-in .ohi-in { min-width: 7em; }
.cao-in .cao-nr { color: var(--text-muted); }
.cao-in .cao-sum { white-space: nowrap; font-weight: 700; color: var(--title); }
.legal-content .cao-line { font-size: var(--fs-sm); color: var(--title); margin: 0 0 6px; }
.tb-tabs { margin-top: var(--sp-5); }
.apa-prev { border: 1.5px solid var(--border-strong); border-radius: var(--r-inner); padding: var(--sp-4); margin-top: var(--sp-5); overflow-x: auto; }
.legal-content .apa-prev p { font-size: var(--fs-sm); color: var(--title); margin: 0 0 6px; }
.apa-prev .apa-table { border-collapse: collapse; font-size: var(--fs-sm); color: var(--title); margin: 0 0 6px; }
.apa-prev .apa-table th { font-weight: 400; text-align: left; border-top: 1px solid var(--title); border-bottom: 1px solid var(--title); padding: 4px 10px; }
.apa-prev .apa-table td { padding: 4px 10px; }
.apa-prev .apa-table tbody tr:last-child td { border-bottom: 1px solid var(--title); }
.tb-canvas { display: block; width: 100%; height: auto; margin-top: var(--sp-5); border: 1.5px solid var(--border-strong); border-radius: var(--r-inner); }
.tb-canvas[hidden] { display: none; }
.pa-opts { align-items: flex-end; }
.pa-opts .pa-n { flex-direction: row; align-items: center; gap: var(--sp-2); }
.pa-texts { display: grid; gap: var(--sp-4); margin-top: var(--sp-3); }
.legal-content .pa-texts .pa-cap { font-size: var(--fs-xs); font-weight: 700; color: var(--green-dark); margin: 0 0 4px; }
@media (min-width: 900px) { .pa-texts { grid-template-columns: 1fr 1fr; } }
.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist input { width: 20px; height: 20px; margin-top: 5px; accent-color: var(--green); flex-shrink: 0; }
.resource-type { display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--green-dark); background: var(--green-tint); border-radius: var(--r-pill); padding: 4px 10px; align-self: flex-start; }

/* Wide tables in articles scroll inside their box on narrow screens instead of widening the page. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll > table { min-width: 0; }

/* Cookie banner (funnel.js). Non-blocking; "Accept" and "Refuz" have equal weight. */
.cookie-banner { position: fixed; z-index: 300; left: 16px; bottom: 16px; width: min(420px, calc(100vw - 32px)); background: var(--surface); color: var(--title);
  border-radius: var(--r-card); padding: 18px 20px; box-shadow: 0 12px 36px rgba(22,35,63,0.18); }
.cookie-banner p { font-size: var(--fs-xs); line-height: 1.55; color: var(--text); margin: 0 0 12px; }
.cookie-banner p strong { display: block; color: var(--title); font-size: var(--fs-sm); margin-bottom: 4px; }
.cookie-banner a { color: var(--green); font-weight: 600; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-actions .btn { flex: 1; }
.cookie-banner .cb-short { display: none; }
@media (max-width: 600px) {
  /* Phones: one line of text and the two buttons in one row (owner, 2026-10-24); the pill keeps its label above it. */
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; width: auto; display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
  .cookie-banner p { flex: 1; margin: 0; line-height: 1.4; }
  .cookie-banner p strong { display: inline; font-size: var(--fs-xs); margin: 0; }
  .cookie-banner .cb-long { display: none; }
  .cookie-banner .cb-short { display: inline; }
  .cookie-actions { flex: none; gap: 6px; }
  .cookie-actions .btn { flex: none; padding: 8px 12px; }
  body.cookie-open .wa-float { bottom: 84px; }
  body.cookie-open .wa-float.is-calm { opacity: 0; pointer-events: none; } /* the CTA card's own WhatsApp button is on screen */
}
.footer-links button.footer-link-btn { all: unset; cursor: pointer; font-size: var(--fs-xs); color: var(--text); }
.footer-links button.footer-link-btn:hover { color: var(--title); }
.footer-links button.footer-link-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }
/* Funnel: CTA inside a tool result, and the "next step" box at the end of an article */
.result-cta { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between; background: var(--surface); border-radius: var(--r-inner); padding: 16px 18px; margin-top: 16px; }
.result-cta strong { display: block; font-size: var(--fs-body); color: var(--title); }
.legal-content .result-cta p, .result-cta p { font-size: var(--fs-xs); color: var(--text); margin: 4px 0 0; line-height: 1.5; }
.result-cta > div { flex: 1 1 240px; }
.next-step { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; background: var(--green-tint); border-radius: var(--r-card); padding: 22px 24px; margin: 40px 0 8px; }
.next-step > div { flex: 1 1 260px; }
.next-step strong { display: block; font-size: var(--fs-lead); font-weight: 800; color: var(--title); }
.legal-content .next-step p { font-size: var(--fs-sm); margin: 6px 0 0; }
.next-step .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-next { background: var(--surface); border-radius: var(--r-inner); padding: 16px 20px; margin: 8px 0 32px; }
.legal-content .inline-next p { font-size: var(--fs-sm); margin: 0; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 0 0 30px; }
.preview-grid.wide { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
/* The preview grid breaks out of the text column (--w-prose) to the full width of .page-content (container query units). */
.page-content { container-type: inline-size; }
.example-search { position: relative; margin: 20px 0 0; max-width: 560px; }
.example-search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.example-search input { width: 100%; height: 52px; border: 0; border-radius: 999px; background: var(--surface); padding: 0 20px 0 48px; font: inherit; font-size: var(--fs-body); color: var(--title); outline: 2px solid transparent; }
.example-search input:focus { outline-color: var(--green); }
.example-search input::placeholder { color: var(--text-muted); }
.example-search-count { margin: 10px 0 0 4px; font-size: var(--fs-sm); color: var(--text-muted); }
#rezultate, #similaritate { scroll-margin-top: 80px; }
.example-areas [hidden] { display: none; }
.example-search-empty { background: var(--surface); border-radius: var(--r-card); padding: 18px 20px; margin: 16px 0 0; }
.example-chips { margin: 0 0 8px; }
@media (max-width: 600px) {
  .example-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px 8px; padding: 0 20px 4px; scrollbar-width: none; }
  .example-chips::-webkit-scrollbar { display: none; }
  .example-chips a { flex: none; }
}
.example-areas .example-area-title { font-size: var(--fs-h3); font-weight: 800; color: var(--title); margin: 32px 0 12px; scroll-margin-top: 80px; }
.example-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 10px; }
.example-areas { margin-bottom: clamp(40px,6vw,60px); }
.example-card { background: var(--surface); border-radius: var(--r-card); padding: 10px 12px 10px 10px; display: flex; gap: 14px; align-items: flex-start; color: inherit; text-decoration: none; }
.example-card:hover { background: var(--surface-hover); color: inherit; }
.example-card img { flex: none; display: block; width: 66px; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 8px; outline: 1px solid rgba(0,0,0,0.08); outline-offset: -1px; }
.example-card-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-top: 2px; }
.example-card-domain { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--green-dark); }
.example-card h3 { font-size: var(--fs-body); font-weight: 800; line-height: 1.3; color: var(--title); margin: 0; }
.example-card .meta { font-size: var(--fs-xs); color: var(--text-muted); }
@media (prefers-reduced-motion: no-preference) { .example-card { transition: background-color 0.15s ease-out; } }
.preview-grid figure { margin: 0; background: var(--surface); border-radius: var(--r-inner); padding: 10px; }
.preview-grid img { display: block; width: 100%; height: auto; border-radius: 6px; outline: 1px solid rgba(0,0,0,0.08); outline-offset: -1px; }
.preview-grid figcaption { font-size: var(--fs-xs); line-height: 1.35; color: var(--text-muted); text-align: center; margin-top: 8px; }
/* Phones: the previews become a swipe strip (about 2 pages visible) instead of full-width images stacked before the text. */
@media (max-width: 600px) {
  .preview-grid, .preview-grid.wide { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px 24px; padding: 0 20px 8px; scroll-padding: 0 20px; scrollbar-width: none; }
  .preview-grid::-webkit-scrollbar { display: none; }
  .preview-grid figure { flex: 0 0 44%; padding: 8px; scroll-snap-align: start; }
  .preview-grid.wide figure { flex-basis: 72%; }
  .preview-grid:has(figure:only-child) figure { flex-basis: 60%; }
}

/* Title page generator: A4 preview (margins 2.5 / 2 / 2.5 / 3 cm as % of the 21 cm width) */
.tp-preview-wrap { display: flex; justify-content: center; margin: 22px 0 6px; }
.tp-preview { container-type: inline-size; width: min(420px, 100%); aspect-ratio: 210 / 297; background: #FFFFFF; box-shadow: 0 2px 14px rgba(22,35,63,0.12); border-radius: 4px;
  padding: 11.9% 9.5% 11.9% 14.3%; display: flex; flex-direction: column; font-family: 'Times New Roman', Times, serif; color: #000000; }
.legal-content .tp-preview p { margin: 0; color: #000000; line-height: 1.35; font-size: 2.95cqw; text-align: center; text-wrap: balance; }
.legal-content .tp-preview .tp-top { font-weight: 700; }
.legal-content .tp-preview .tp-type { margin-top: 26%; font-size: 4.4cqw; font-weight: 700; }
.legal-content .tp-preview .tp-title { margin-top: 3%; font-size: 3.5cqw; }
.tp-people { margin-top: auto; display: flex; justify-content: space-between; gap: 6%; font-size: 2.95cqw; line-height: 1.4; }
.tp-people strong, .tp-people span { display: block; }
.tp-right { text-align: right; }
.legal-content .tp-preview .tp-city { margin-top: 18%; font-weight: 700; }
@media print {
  body:has(#tp-preview) * { visibility: hidden; }
  body:has(#tp-preview) .tp-preview, body:has(#tp-preview) .tp-preview * { visibility: visible; }
  body:has(#tp-preview) .tp-preview { position: fixed; inset: 0; width: 210mm; height: 297mm; box-shadow: none; border-radius: 0; padding: 25mm 20mm 25mm 30mm; container-type: normal; }
  body:has(#tp-preview) .legal-content .tp-preview p, body:has(#tp-preview) .tp-people { font-size: 12pt; }
  body:has(#tp-preview) .legal-content .tp-preview .tp-type { font-size: 18pt; margin-top: 70mm; }
  body:has(#tp-preview) .legal-content .tp-preview .tp-title { font-size: 14pt; margin-top: 6mm; }
  body:has(#tp-preview) .legal-content .tp-preview .tp-city { margin-top: 45mm; }
  @page { size: A4; margin: 0; }
}

/* Demo result popup (shown only when a score is above the threshold) */
.result-modal { border: none; border-radius: var(--r-card); padding: 0; width: min(440px, calc(100vw - 32px)); background: var(--surface); color: var(--title); box-shadow: 0 24px 60px rgba(22,35,63,0.25); }
.result-modal::backdrop { background: rgba(22,35,63,0.45); }
.result-modal-body { padding: 28px 26px 24px; }
.result-modal h2 { font-size: var(--fs-h3); font-weight: 800; letter-spacing: -0.01em; margin: 0 0 10px; color: var(--title); }
.result-modal p { font-size: var(--fs-sm); line-height: 1.6; color: var(--text); margin: 0 0 14px; }
.result-modal .scores { display: flex; gap: 10px; margin: 0 0 16px; }
.result-modal .score { flex: 1; background: var(--bg); border-radius: var(--r-inner); padding: 10px 12px; }
.result-modal .score strong { display: block; font-size: var(--fs-h2); font-weight: 800; color: var(--title); }
.result-modal .score span { font-size: var(--fs-xs); color: var(--text-muted); }
.result-modal .actions { display: flex; flex-direction: column; gap: 8px; }
.result-modal .actions .btn { width: 100%; }
.result-modal-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: none; border-radius: 50%; background: var(--bg); color: var(--text); font-size: var(--fs-h3); line-height: 1; cursor: pointer; }

/* ============================================================
   HOMEPAGE SPECIFIC
   ============================================================ */
.hero-grid { display: grid; grid-template-columns: 1fr minmax(0, 480px); gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero-photos { position: relative; height: clamp(320px, 38vw, 500px); display: flex; align-items: center; justify-content: center; align-self: start; margin-top: clamp(24px, 4vw, 48px); }
.stats-bar { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--border); }
.stats-item { flex: 1 1 120px; }
.pdf-card { display: flex; background: var(--surface); border: 1.5px dashed var(--border-strong); border-radius: var(--r-card); overflow: hidden; text-decoration: none; cursor: pointer; }
.pdf-card:hover { border-color: var(--green); }

/* ============================================================
   LEGAL / ARTICLE CONTENT
   ============================================================ */
.legal-content { max-width: var(--w-prose); }
.legal-content h2 { font-weight: 800; letter-spacing: -0.015em; margin: 40px 0 10px; color: var(--title); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content .blog-group h2:first-child { margin-top: 40px; }  /* a group inside the text (e.g. /universitati/) keeps the normal heading gap */
.legal-content h3 { font-weight: 700; margin: 28px 0 8px; color: var(--title); }
.legal-content p { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text); margin: 0 0 14px; }
.legal-content ul, .legal-content ol { padding-left: 22px; margin: 0 0 14px; }
.legal-content li { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text); margin-bottom: 6px; }

/* Steps timeline (owner, 2026-11-12): the order steps on a vertical line, each an icon chip, the title with a
   green label and one line of text. After the .legal-content rules so it wins over their ol/li/h3/p margins. */
ol.steps-timeline { list-style: none; padding: 0; max-width: var(--w-prose); margin: var(--sp-6) 0 var(--sp-7); display: flex; flex-direction: column; gap: var(--sp-6); }
.steps-timeline > li { position: relative; display: grid; grid-template-columns: 40px 1fr; column-gap: var(--sp-4); margin: 0; }
.steps-timeline > li:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: calc(-1 * var(--sp-6)); width: 2px; background: var(--green-line); }
.tl-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--green-tint); color: var(--green-dark); display: flex; align-items: center; justify-content: center; }
.tl-head { display: flex; flex-wrap: wrap; align-items: center; align-content: center; gap: var(--sp-1) var(--sp-3); min-height: 40px; }
.steps-timeline h3 { margin: 0; }
.tl-badge { font-size: var(--fs-xs); font-weight: 700; line-height: 1.4; color: var(--surface); background: var(--green); border-radius: var(--r-pill); padding: 2px 10px; white-space: nowrap; }
.steps-timeline p { margin: var(--sp-1) 0 0; color: var(--text); }
@media (max-width: 600px) { .tl-head h3 { flex-basis: 100%; } } /* every label under its title, not only the short ones */

/* ============================================================
   MOTION — only when the user hasn't asked for reduced motion
   ============================================================ */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.spinner { animation: spin 0.8s linear infinite; }
@media (prefers-reduced-motion: no-preference) {
  .nav-links a, .btn, .blog-card, .topic-hub-card, .pdf-card, .link-chips a, details summary, .form-group input, .form-group textarea {
    transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out, transform 120ms ease-out;
  }
  .wa-float { transition: background-color 150ms ease-out, transform 120ms ease-out; }
  /* Owner request (2026-10-10): the pill shakes sideways every 12 s; the move is the last ~1 s of the
     cycle, so nothing moves in the first 11 s. funnel.js adds .is-calm while the CTA card is on screen.
     It animates `translate` (not `transform`) so the :active press keeps working. */
  .wa-float { animation: wa-shake 12s ease-in-out infinite; }
  .wa-float.is-calm, .wa-float:hover { animation-play-state: paused; }
}
@keyframes wa-shake {
  0%, 91%, 100% { translate: 0 0; }
  92.5% { translate: -6px 0; }
  94% { translate: 6px 0; }
  95.5% { translate: -4px 0; }
  97% { translate: 4px 0; }
  98.5% { translate: -2px 0; }
}
@media (prefers-reduced-motion: no-preference) {
  details summary::after { transition: transform 200ms ease-out; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 899px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg);
    padding: 8px 20px 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(22,35,63,0.08);
    gap: 2px;
  }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin-left: 0; }
  .site-header.open .nav-links { display: flex; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; }
}

@media (max-width: 899px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photos { height: 260px; margin-top: 0; align-self: auto; width: 100%; }
  .stats-bar { display: grid; grid-template-columns: 1fr 1fr; }
  .stats-item { padding: 16px 12px !important; border-right: none !important; border-bottom: 1px solid var(--border); }
  .stats-item:nth-child(odd) { border-right: 1px solid var(--border) !important; }
}

@media (max-width: 600px) {
  .footer-links { grid-template-columns: 1fr; }
  .price-table { font-size: var(--fs-xs); }
  .price-table th, .price-table td { padding: 10px 10px; }
}

/* Code in guides (atestat informatică posts): scrolls sideways inside its card on phones */
.legal-content pre.code-block { overflow-x: auto; font-size: var(--fs-xs); line-height: 1.45; margin: 0; white-space: pre; }

/* PowerPoint page: deck picker, template variants, speech tool (resources PR 3) */
.sv-pick { display: flex; flex-direction: column; gap: var(--sp-1); margin: 0 2px var(--sp-3); }
.sv-pick label { font-size: var(--fs-xs); font-weight: 700; color: var(--green-dark); }
.sv-pick select { min-height: 44px; padding: 0 var(--sp-3); border: 1.5px solid var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--title); font-family: inherit; font-size: var(--fs-body); }
.sv-pick select:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.slide-viewer.is-var .sv-ex p { font-size: var(--fs-sm); color: var(--text); }
.legal-content .sv-designs-lead { font-size: var(--fs-xs); font-weight: 700; color: var(--green-dark); margin: calc(-1 * var(--sp-3)) 0 0; }
.sv-designs .dom-card img { aspect-ratio: 16 / 9; }
.sp-tool textarea { min-height: 96px; }
.sp-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin-top: var(--sp-3); }
.sp-timer { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); margin-top: var(--sp-4); }
.sp-timer .btn { white-space: normal; text-align: left; }
.sp-clock, .sp-result .big { font-variant-numeric: tabular-nums; }
.sp-clock { font-size: var(--fs-body); font-weight: 700; color: var(--title); }
.tool-result.sp-result { margin-top: var(--sp-4); }
