/* eBibliophil Manual — stiluri */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/fraunces-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/fraunces-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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/inter-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/inter-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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
	--ebm-bg: #faf8f4;
	--ebm-surface: #ffffff;
	--ebm-ink: #1c2230;
	--ebm-ink-2: #474d5b;
	--ebm-muted: #737885;
	--ebm-line: #e6e1d7;
	--ebm-accent: #c2410c;
	--ebm-accent-strong: #9a3412;
	--ebm-accent-soft: #fdead7;
	--ebm-on-accent: #ffffff;
	--ebm-gold: #2f6f7e;
	--ebm-gold-soft: #e3eff1;
	--ebm-warn: #b3261e;
	--ebm-warn-soft: #fbe9e7;
	--ebm-shadow: 0 1px 2px rgba(28, 34, 48, .04), 0 8px 24px -12px rgba(28, 34, 48, .12);
	--ebm-font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ebm-font-serif: "Fraunces", Georgia, "Times New Roman", serif;
	--ebm-radius: 14px;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--ebm-bg: #12151b; --ebm-surface: #1a1e26; --ebm-ink: #eceae4; --ebm-ink-2: #c2c4c9; --ebm-muted: #8e939e; --ebm-line: #2c313c;
		--ebm-accent: #fb923c; --ebm-accent-strong: #fdba74; --ebm-accent-soft: #3b2313; --ebm-on-accent: #1a0f06;
		--ebm-gold: #7fc0cd; --ebm-gold-soft: #1a2e33; --ebm-warn: #f2857c; --ebm-warn-soft: #3a1c19;
		--ebm-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--ebm-bg: #12151b; --ebm-surface: #1a1e26; --ebm-ink: #eceae4; --ebm-ink-2: #c2c4c9; --ebm-muted: #8e939e; --ebm-line: #2c313c;
	--ebm-accent: #fb923c; --ebm-accent-strong: #fdba74; --ebm-accent-soft: #3b2313; --ebm-on-accent: #1a0f06;
	--ebm-gold: #7fc0cd; --ebm-gold-soft: #1a2e33; --ebm-warn: #f2857c; --ebm-warn-soft: #3a1c19;
	--ebm-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
	color-scheme: dark;
}

/* ---------- Bază ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ebm-bg); color: var(--ebm-ink); font: 400 16px/1.65 var(--ebm-font-sans); -webkit-font-smoothing: antialiased; }
a { color: var(--ebm-accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ebm-accent-strong); }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--ebm-font-serif); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--ebm-accent); outline-offset: 2px; border-radius: 4px; }
button { font: inherit; color: inherit; cursor: pointer; }
.ebt-skip { position: absolute; left: -999px; top: 8px; background: var(--ebm-accent); color: var(--ebm-on-accent); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.ebt-skip:focus { left: 8px; }
.ebt-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.ebt-wrap--narrow { max-width: 860px; }
.ebt-eyebrow { margin: 0 0 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ebm-gold); }
.ebt-lead { margin: 14px 0 0; font-size: 18px; line-height: 1.55; color: var(--ebm-ink-2); max-width: 62ch; }
.ebt-empty { color: var(--ebm-muted); padding: 24px 0; }

/* ---------- Antet ---------- */
.ebt-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--ebm-bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ebm-line); }
.ebt-header__in { max-width: 1400px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 20px; }
.ebt-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ebm-ink); flex: none; }
.ebt-brand__name { font-family: var(--ebm-font-serif); font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
.ebt-brand__tag { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ebm-gold); border: 1px solid currentColor; border-radius: 99px; padding: 1px 8px; }
.ebt-nav { display: flex; gap: 4px; margin-right: auto; }
.ebt-nav a { color: var(--ebm-ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 6px 12px; border-radius: 8px; white-space: nowrap; }
.ebt-nav a:hover { background: var(--ebm-accent-soft); color: var(--ebm-accent-strong); }
.ebt-theme, .ebt-menu { flex: none; height: 38px; border: 1px solid var(--ebm-line); background: var(--ebm-surface); border-radius: 10px; display: grid; place-items: center; }
.ebt-theme { width: 38px; }
.ebt-menu { display: none; padding: 0 14px; font-size: 14px; font-weight: 500; }
.ebt-theme__moon { display: none; }
:root[data-theme="dark"] .ebt-theme__sun { display: none; }
:root[data-theme="dark"] .ebt-theme__moon { display: block; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .ebt-theme__sun { display: none; }
	:root:not([data-theme="light"]) .ebt-theme__moon { display: block; }
}

/* ---------- Căutare ---------- */
.ebt-search { display: flex; align-items: center; gap: 10px; background: var(--ebm-surface); border: 1px solid var(--ebm-line); border-radius: 12px; padding: 0 6px 0 14px; color: var(--ebm-muted); min-width: 0; }
.ebt-search:focus-within { border-color: var(--ebm-accent); box-shadow: 0 0 0 3px var(--ebm-accent-soft); }
.ebt-search svg { flex: none; }
.ebt-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ebm-ink); font: inherit; padding: 9px 0; }
.ebt-search input::placeholder { color: var(--ebm-muted); }
.ebt-search button { border: 0; background: var(--ebm-accent); color: var(--ebm-on-accent); font-weight: 600; font-size: 14px; border-radius: 8px; padding: 7px 14px; }
.ebt-search button:hover { background: var(--ebm-accent-strong); }
.ebt-search--compact { width: 300px; height: 38px; border-radius: 10px; }
.ebt-search--compact button { display: none; }
.ebt-search--compact input { font-size: 14px; }
.ebt-search--hero { max-width: 620px; padding: 6px 6px 6px 18px; border-radius: 16px; box-shadow: var(--ebm-shadow); }
.ebt-search--hero input { font-size: 17px; padding: 10px 0; }
.ebt-search--hero button { padding: 11px 22px; font-size: 15px; border-radius: 11px; }

/* ---------- Prima pagină ---------- */
.ebt-hero { padding: 88px 0 72px; border-bottom: 1px solid var(--ebm-line); background:
	radial-gradient(900px 380px at 85% -10%, var(--ebm-accent-soft), transparent 70%),
	radial-gradient(600px 300px at 0% 110%, var(--ebm-gold-soft), transparent 70%); }
.ebt-hero h1 { font-size: clamp(36px, 5.4vw, 60px); font-weight: 500; max-width: 16ch; letter-spacing: -.02em; line-height: 1.08; }
.ebt-hero h1 em { font-style: italic; color: var(--ebm-accent); }
.ebt-hero__lead { font-size: 19px; color: var(--ebm-ink-2); max-width: 58ch; margin: 22px 0 30px; }
.ebt-hero__stats { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 26px 0 0; font-size: 14px; color: var(--ebm-muted); }
.ebt-hero__stats b { color: var(--ebm-ink); font-family: var(--ebm-font-serif); font-size: 18px; font-weight: 600; margin-right: 4px; }
.ebt-section { padding: 72px 0; }
.ebt-section--alt { background: var(--ebm-surface); border-block: 1px solid var(--ebm-line); }
.ebt-section__head { margin-bottom: 30px; }
.ebt-section__head h2 { font-size: 30px; }
.ebt-section__head p { margin: 8px 0 0; color: var(--ebm-ink-2); }
.ebt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.ebt-card { background: var(--ebm-surface); border: 1px solid var(--ebm-line); border-radius: var(--ebm-radius); padding: 24px; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s, transform .15s; }
.ebt-card:hover { border-color: var(--ebm-accent); box-shadow: var(--ebm-shadow); transform: translateY(-2px); }
.ebt-card__head { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; text-decoration: none; color: inherit; }
.ebt-card__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--ebm-accent-soft); color: var(--ebm-accent); display: grid; place-items: center; }
.ebt-card__n { justify-self: end; font-family: var(--ebm-font-serif); font-size: 15px; color: var(--ebm-muted); font-variant-numeric: tabular-nums; }
.ebt-card__head h3 { grid-column: 1 / -1; font-size: 21px; margin-top: 14px; }
.ebt-card__head p { grid-column: 1 / -1; margin: 4px 0 0; font-size: 14.5px; color: var(--ebm-ink-2); line-height: 1.5; }
.ebt-card__list { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--ebm-line); display: grid; gap: 2px; }
.ebt-card__list a { display: block; position: relative; padding: 5px 0 5px 20px; font-size: 14.5px; color: var(--ebm-ink); text-decoration: none; }
.ebt-card__list a::before { content: ""; position: absolute; left: 3px; top: 13px; width: 6px; height: 6px; border-radius: 2px; background: var(--ebm-gold); transform: rotate(45deg); }
.ebt-card__list a:hover { color: var(--ebm-accent); }
.ebt-card__more { margin-top: auto; padding-top: 14px; font-size: 14px; font-weight: 600; text-decoration: none; }

/* ---------- Pagina de ghid: trei coloane ---------- */
.ebt-doc { max-width: 1400px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 270px minmax(0, 1fr) 220px; gap: 56px; align-items: start; }
.ebt-doc--list { grid-template-columns: 270px minmax(0, 860px); }
.ebt-doc__side, .ebt-doc__toc { position: sticky; top: 64px; max-height: calc(100vh - 64px); overflow-y: auto; padding: 32px 0; }
.ebt-doc__main { padding: 40px 0 88px; min-width: 0; max-width: 800px; width: 100%; justify-self: center; }
.ebt-page { padding-top: 56px; padding-bottom: 88px; }

.ebt-tree__group { border-bottom: 1px solid var(--ebm-line); }
.ebt-tree__group summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 11px 8px; cursor: pointer; font-weight: 600; font-size: 14.5px; border-radius: 8px; color: var(--ebm-ink); }
.ebt-tree__group summary::-webkit-details-marker { display: none; }
.ebt-tree__group summary:hover { background: var(--ebm-accent-soft); }
.ebt-tree__group summary svg { color: var(--ebm-accent); flex: none; }
.ebt-tree__group summary span { flex: 1; }
.ebt-tree__group summary em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--ebm-muted); }
.ebt-tree__group ul { list-style: none; margin: 0 0 12px 17px; padding: 0; border-left: 1px solid var(--ebm-line); }
.ebt-tree__group li a { display: block; margin-left: -1px; padding: 6px 12px 6px 18px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.4; color: var(--ebm-ink-2); text-decoration: none; }
.ebt-tree__group li a:hover { color: var(--ebm-ink); border-left-color: var(--ebm-muted); }
.ebt-tree__group li a[aria-current] { color: var(--ebm-accent-strong); font-weight: 600; border-left-color: var(--ebm-accent); }

.ebt-doc__toc p { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ebm-muted); }
.ebt-doc__toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--ebm-line); }
.ebt-doc__toc a { display: block; margin-left: -1px; padding: 5px 0 5px 14px; border-left: 2px solid transparent; font-size: 13.5px; line-height: 1.4; color: var(--ebm-ink-2); text-decoration: none; }
.ebt-doc__toc a:hover { color: var(--ebm-ink); }
.ebt-doc__toc a.is-active { color: var(--ebm-accent-strong); border-left-color: var(--ebm-accent); font-weight: 600; }

.ebt-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ebm-muted); margin-bottom: 18px; }
.ebt-crumbs a { color: var(--ebm-ink-2); text-decoration: none; }
.ebt-crumbs a:hover { color: var(--ebm-accent); }
.ebt-crumbs i { font-style: normal; }
.ebt-doc__head { margin-bottom: 36px; }
.ebt-doc__head h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 600; letter-spacing: -.02em; }
.ebt-doc__head .ebt-card__icon { margin-bottom: 16px; }
.ebt-doc__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--ebm-line); }
.ebt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ebt-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ebm-ink-2); background: var(--ebm-surface); border: 1px solid var(--ebm-line); border-radius: 99px; padding: 3px 11px; white-space: nowrap; }
.ebt-chip svg { color: var(--ebm-muted); }
.ebt-level { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.ebt-level b { width: 3px; border-radius: 1px; background: var(--ebm-line); }
.ebt-level b:nth-child(1) { height: 5px; background: var(--ebm-accent); }
.ebt-level b:nth-child(2) { height: 8px; }
.ebt-level b:nth-child(3) { height: 11px; }
.ebt-chip--mediu .ebt-level b:nth-child(2), .ebt-chip--avansat .ebt-level b { background: var(--ebm-accent); }
.ebt-print { margin-left: auto; border: 1px solid var(--ebm-line); background: var(--ebm-surface); border-radius: 99px; padding: 3px 13px; font-size: 13px; font-weight: 500; color: var(--ebm-ink-2); }
.ebt-print:hover { border-color: var(--ebm-accent); color: var(--ebm-accent); }

.ebt-doc__foot { margin-top: 64px; }
.ebt-updated { font-size: 13px; color: var(--ebm-muted); margin: 0 0 18px; }
.ebt-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ebt-pager a { display: block; border: 1px solid var(--ebm-line); background: var(--ebm-surface); border-radius: var(--ebm-radius); padding: 16px 20px; text-decoration: none; transition: border-color .15s; }
.ebt-pager a:hover { border-color: var(--ebm-accent); }
.ebt-pager span { display: block; font-size: 12.5px; color: var(--ebm-muted); margin-bottom: 4px; }
.ebt-pager strong { color: var(--ebm-ink); font-family: var(--ebm-font-serif); font-weight: 600; font-size: 17px; line-height: 1.3; }
.ebt-pager__next { text-align: right; }

/* ---------- Liste de ghiduri ---------- */
.ebt-rows { border: 1px solid var(--ebm-line); border-radius: var(--ebm-radius); background: var(--ebm-surface); overflow: hidden; }
.ebt-row { display: flex; align-items: center; gap: 18px; padding: 18px 22px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--ebm-line); transition: background .12s; }
.ebt-row:last-child { border-bottom: 0; }
.ebt-row:hover { background: var(--ebm-accent-soft); }
.ebt-row__n { font-family: var(--ebm-font-serif); font-size: 20px; color: var(--ebm-gold); font-variant-numeric: tabular-nums; flex: none; }
.ebt-row__main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ebt-row__main strong { font-family: var(--ebm-font-serif); font-size: 18px; font-weight: 600; }
.ebt-row__main span { font-size: 14.5px; color: var(--ebm-ink-2); line-height: 1.5; }
.ebt-row .ebt-chips { flex: none; }
.ebt-row__go { flex: none; color: var(--ebm-muted); transition: transform .15s; }
.ebt-row:hover .ebt-row__go { color: var(--ebm-accent); transform: translateX(3px); }
.ebt-group { margin-top: 44px; }
.ebt-group h2 { font-size: 22px; margin-bottom: 14px; }
.ebt-group h2 a { display: inline-flex; align-items: center; gap: 10px; color: var(--ebm-ink); text-decoration: none; }
.ebt-group h2 svg { color: var(--ebm-accent); }
.nav-links { display: flex; gap: 6px; margin-top: 24px; }
.nav-links .page-numbers { padding: 6px 12px; border: 1px solid var(--ebm-line); border-radius: 8px; text-decoration: none; background: var(--ebm-surface); }
.nav-links .current { background: var(--ebm-accent); color: var(--ebm-on-accent); border-color: var(--ebm-accent); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---------- Conținutul ghidului ---------- */
.ebm-content { font-size: 16.5px; }
.ebm-content > * { margin-block: 0 20px; }
.ebm-content > h2 { font-size: 26px; margin: 52px 0 16px; padding-top: 4px; }
.ebm-content > h2:first-child { margin-top: 0; }
.ebm-content h3 { font-size: 19px; margin: 30px 0 10px; }
.ebm-content p { margin: 0 0 16px; }
.ebm-content strong { font-weight: 600; }
.ebm-content code { font: 500 .88em ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--ebm-accent-soft); color: var(--ebm-accent-strong); padding: 2px 6px; border-radius: 5px; }

/* Bullet-uri */
.ebm-content ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.ebm-content ul > li { position: relative; padding-left: 26px; }
.ebm-content ul > li::before { content: ""; position: absolute; left: 5px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--ebm-accent); transform: rotate(45deg); }
.ebm-content ul ul { margin: 8px 0 0; }
.ebm-content ul ul > li::before { background: none; border: 1.5px solid var(--ebm-accent); }
.ebm-content ol:not(.ebm-steps__list) { list-style: none; counter-reset: ebm-ol; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.ebm-content ol:not(.ebm-steps__list) > li { counter-increment: ebm-ol; position: relative; padding-left: 36px; }
.ebm-content ol:not(.ebm-steps__list) > li::before { content: counter(ebm-ol); position: absolute; left: 0; top: .1em; width: 24px; height: 24px; border-radius: 50%; background: var(--ebm-accent-soft); color: var(--ebm-accent-strong); font-size: 12.5px; font-weight: 700; display: grid; place-items: center; }

/* Tabele */
.ebm-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ebm-content th, .ebm-content td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--ebm-line); vertical-align: top; }
.ebm-content thead th { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ebm-muted); font-weight: 600; }
.ebm-content .wp-block-table { margin: 0 0 20px; overflow-x: auto; border: 1px solid var(--ebm-line); border-radius: var(--ebm-radius); background: var(--ebm-surface); }
.ebm-content .wp-block-table tr:last-child td { border-bottom: 0; }

/* Pași */
.ebm-steps { margin: 28px 0; background: var(--ebm-surface); border: 1px solid var(--ebm-line); border-radius: 18px; box-shadow: var(--ebm-shadow); }
.ebm-steps__head { display: flex; align-items: center; gap: 14px; padding: 16px 28px; border-bottom: 1px solid var(--ebm-line); }
.ebm-steps__label { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ebm-gold); }
.ebm-steps__count { font-size: 13px; color: var(--ebm-muted); margin-left: auto; }
.ebm-steps__progress { width: 96px; height: 6px; border-radius: 99px; background: var(--ebm-line); overflow: hidden; }
.ebm-steps__progress span { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--ebm-accent); transition: width .3s ease; }
.ebm-steps__list { list-style: none; margin: 0; padding: 10px 28px 14px; }
.ebm-step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; padding: 18px 0; }
.ebm-step::before { content: ""; position: absolute; left: 21.5px; top: 66px; bottom: -14px; width: 1px; background: repeating-linear-gradient(to bottom, var(--ebm-accent) 0 4px, transparent 4px 9px); opacity: .55; }
.ebm-step:last-child::before { display: none; }
.ebm-step__marker { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ebm-accent); background: var(--ebm-surface); color: var(--ebm-accent-strong); display: grid; place-items: center; font: 600 19px/1 var(--ebm-font-serif); font-variant-numeric: lining-nums; transition: background .2s, color .2s; }
.ebm-step__check { position: absolute; inset: -1.5px; border-radius: 50%; border: 0; background: var(--ebm-accent); color: var(--ebm-on-accent); display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
.ebm-step__check svg { width: 18px; height: 18px; }
.ebm-step__check:hover, .ebm-step__check:focus-visible { opacity: .9; }
.ebm-step.is-done .ebm-step__check { opacity: 1; }
.ebm-step.is-done::before { opacity: 1; background: var(--ebm-accent); }
.ebm-step.is-done .ebm-step__title { color: var(--ebm-muted); }
.ebm-step__body { padding-top: 8px; min-width: 0; }
.ebm-content .ebm-step__title { font-size: 19px; margin: 0 0 8px; transition: color .2s; }
.ebm-step__where { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px !important; font-size: 12.5px; font-weight: 500; color: var(--ebm-ink-2); }
.ebm-step__where span { background: var(--ebm-bg); border: 1px solid var(--ebm-line); border-radius: 6px; padding: 1px 8px; }
.ebm-step__where i { font-style: normal; color: var(--ebm-muted); }
.ebm-step__content { color: var(--ebm-ink-2); font-size: 16px; }
.ebm-step__content > :last-child { margin-bottom: 0; }
.ebm-step__content strong { color: var(--ebm-ink); }
.ebm-step__content ul > li::before { background: var(--ebm-gold); width: 6px; height: 6px; }
.ebm-steps.is-complete .ebm-steps__count { color: var(--ebm-accent-strong); font-weight: 600; }

/* Note */
.ebm-note { display: grid; grid-template-columns: 22px 1fr; gap: 14px; margin: 24px 0; padding: 16px 20px; border-radius: 12px; border: 1px solid var(--ebm-line); border-left: 3px solid var(--ebm-muted); background: var(--ebm-surface); font-size: 15.5px; }
.ebm-note__icon { margin-top: 2px; color: var(--ebm-muted); }
.ebm-note__title { margin: 0 0 4px !important; font-weight: 600; color: var(--ebm-ink); }
.ebm-note__body { color: var(--ebm-ink-2); min-width: 0; }
.ebm-note__body > :last-child { margin-bottom: 0; }
.ebm-note--sfat { border-left-color: var(--ebm-accent); background: var(--ebm-accent-soft); border-color: transparent transparent transparent var(--ebm-accent); }
.ebm-note--sfat .ebm-note__icon { color: var(--ebm-accent); }
.ebm-note--atentie { border-color: transparent transparent transparent var(--ebm-warn); background: var(--ebm-warn-soft); }
.ebm-note--atentie .ebm-note__icon { color: var(--ebm-warn); }
.ebm-note--rezultat { border-left-color: var(--ebm-gold); background: var(--ebm-gold-soft); border-color: transparent transparent transparent var(--ebm-gold); }
.ebm-note--rezultat .ebm-note__icon { color: var(--ebm-gold); }

/* Cerințe prealabile */
.ebm-prereq { margin: 24px 0; padding: 20px 24px; border: 1px dashed var(--ebm-muted); border-radius: var(--ebm-radius); }
.ebm-prereq__title { margin: 0 0 12px !important; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ebm-gold); }
.ebm-content .ebm-prereq ul { margin: 0; }
.ebm-content .ebm-prereq ul > li { padding-left: 30px; }
.ebm-content .ebm-prereq ul > li::before { left: 0; top: .28em; width: 18px; height: 18px; border-radius: 5px; transform: none; background: var(--ebm-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6b5c' stroke-width='3.500' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.500 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Taste */
.ebm-keys { white-space: nowrap; }
.ebm-keys i { font-style: normal; color: var(--ebm-muted); margin: 0 3px; }
kbd { font: 600 .82em var(--ebm-font-sans); background: var(--ebm-surface); border: 1px solid var(--ebm-line); border-bottom-width: 2px; border-radius: 6px; padding: 2px 7px; color: var(--ebm-ink); }

/* Diagrame și grafice */
.ebm-diagram, .ebm-chart { margin: 28px 0; background: var(--ebm-surface); border: 1px solid var(--ebm-line); border-radius: 18px; padding: 24px; }
.ebt-section--alt .ebm-diagram { background: var(--ebm-bg); }
.ebm-diagram__canvas { overflow-x: auto; }
.ebm-mermaid { margin: 0; text-align: center; font: 13px/1.6 ui-monospace, Menlo, Consolas, monospace; color: var(--ebm-muted); white-space: pre; }
.ebm-mermaid:not(.is-rendered):not(.is-failed) { min-height: 180px; color: transparent; background: linear-gradient(100deg, transparent 30%, var(--ebm-accent-soft) 50%, transparent 70%) 0 0 / 200% 100%; animation: ebm-shimmer 1.4s linear infinite; border-radius: 10px; overflow: hidden; }
.ebm-mermaid.is-failed { text-align: left; }
.ebm-mermaid svg { max-width: 100%; height: auto; }
.ebm-mermaid .node rect, .ebm-mermaid .node polygon, .ebm-mermaid .node circle, .ebm-mermaid .node path { stroke-width: 1.4px; }
.ebm-diagram figcaption { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ebm-line); font-size: 13.5px; color: var(--ebm-muted); text-align: center; }
@keyframes ebm-shimmer { to { background-position: -200% 0; } }
.ebm-chart__title { font-family: var(--ebm-font-serif); font-weight: 600; font-size: 18px; margin-bottom: 16px; }
.ebm-chart__canvas { position: relative; }
.ebm-chart__data { margin-top: 14px; font-size: 13.5px; color: var(--ebm-ink-2); }
.ebm-chart__data summary { cursor: pointer; color: var(--ebm-muted); width: fit-content; }
.ebm-chart__data table { margin-top: 10px; font-size: 14px; width: 100%; border-collapse: collapse; }
.ebm-chart__data th, .ebm-chart__data td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--ebm-line); font-weight: 400; }
.ebm-chart__data td { font-variant-numeric: tabular-nums; }
.ebm-error { color: var(--ebm-warn); font-size: 14px; }

/* ---------- Subsol ---------- */
.ebt-footer { border-top: 1px solid var(--ebm-line); color: var(--ebm-muted); font-size: 14px; }
.ebt-footer__in { max-width: 1400px; margin: 0 auto; padding: 28px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.ebt-footer p { margin: 0; }
.ebt-footer strong { color: var(--ebm-ink); font-family: var(--ebm-font-serif); }
.ebt-footer a { color: inherit; }

/* ---------- Ecrane mici ---------- */
@media (max-width: 1180px) {
	.ebt-doc { grid-template-columns: 250px minmax(0, 1fr); gap: 40px; }
	.ebt-doc__toc { display: none; }
}
@media (max-width: 860px) {
	.ebt-header__in { gap: 10px; padding: 0 16px; }
	.ebt-nav, .ebt-search--compact, .ebt-brand__tag { display: none; }
	.ebt-brand { margin-right: auto; }
	.ebt-menu { display: grid; }
	.ebt-wrap, .ebt-doc { padding: 0 16px; }
	.ebt-doc, .ebt-doc--list { display: block; }
	.ebt-doc__side { display: none; position: static; max-height: none; padding: 16px 0 0; }
	.ebt-doc__side.is-open { display: block; }
	.ebt-doc__main { padding: 28px 0 64px; }
	.ebt-hero { padding: 56px 0 48px; }
	.ebt-section { padding: 52px 0; }
	.ebt-cards { grid-template-columns: 1fr; }
	.ebt-search--hero button { padding: 11px 14px; }
	.ebm-steps__head { padding: 14px 16px; }
	.ebm-steps__list { padding: 6px 16px 10px; }
	.ebm-step { grid-template-columns: 36px minmax(0, 1fr); gap: 14px; }
	.ebm-step__marker { width: 36px; height: 36px; font-size: 16px; }
	.ebm-step::before { left: 17.5px; top: 58px; }
	.ebm-step__body { padding-top: 4px; }
	.ebm-diagram, .ebm-chart { padding: 16px; border-radius: 14px; }
	.ebt-row { flex-wrap: wrap; gap: 8px 14px; padding: 16px; }
	.ebt-row__main { flex-basis: calc(100% - 50px); }
	.ebt-row__go { display: none; }
	.ebt-pager { grid-template-columns: 1fr; }
	.ebt-pager__next { text-align: left; }
	.ebt-print { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Tipărire ---------- */
@media print {
	:root { --ebm-bg: #fff; --ebm-surface: #fff; --ebm-ink: #000; --ebm-ink-2: #222; --ebm-shadow: none; }
	.ebt-header, .ebt-footer, .ebt-doc__side, .ebt-doc__toc, .ebt-pager, .ebt-print, .ebm-step__check, .ebm-steps__progress, .ebm-chart__data, .ebt-crumbs { display: none !important; }
	.ebt-doc { display: block; padding: 0; }
	.ebt-doc__main { max-width: none; padding: 0; }
	.ebm-step, .ebm-note, .ebm-diagram, .ebm-chart, .ebm-prereq { break-inside: avoid; }
	.ebm-steps { box-shadow: none; }
	a { color: inherit; text-decoration: none; }
}
