/* ==========================================================================
   eBuget Magazin — stiluri
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
	--paper: #fbfaf7;
	--surface: #ffffff;
	--surface-2: #f3f1ec;
	--ink: #14161c;
	--ink-2: #3a3f4b;
	--muted: #646a77;
	--line: #e6e2d9;
	--line-strong: #d4cfc3;

	--brand: #1f7a68;          /* teal din logo, întunecat pentru contrast AA */
	--brand-bright: #359681;   /* teal original */
	--brand-2: #5a4f8a;        /* violet din logo */
	--brand-grad: linear-gradient(100deg, #359681 0%, #457290 55%, #655d90 100%);
	--gold: #b7862b;
	--up: #1f7a4d;
	--down: #b23b2e;

	--font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
	--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(20, 22, 28, .04), 0 8px 24px -12px rgba(20, 22, 28, .14);
	--shadow-lg: 0 2px 4px rgba(20, 22, 28, .04), 0 24px 48px -20px rgba(20, 22, 28, .25);

	--container: 1240px;
	--gutter: clamp(16px, 4vw, 32px);
	--gap: clamp(20px, 2.4vw, 32px);
	--header-h: 72px;

	color-scheme: light;
}

:root[data-theme="dark"] {
	--paper: #111318;
	--surface: #181b22;
	--surface-2: #1f232c;
	--ink: #eceae4;
	--ink-2: #c9c7c0;
	--muted: #9a9ea8;
	--line: #2a2e38;
	--line-strong: #3a3f4b;
	--brand: #4fb89f;
	--brand-2: #9d92d0;
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
	--shadow-lg: 0 24px 48px -20px rgba(0, 0, 0, .7);
	color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
/* Bara de admin WordPress (utilizatori logați): header-ul și elementele sticky coboară sub ea */
.admin-bar { --adminbar: 32px; }
.admin-bar .masthead { top: var(--adminbar); }
.admin-bar .progress { top: var(--adminbar); }
@media (max-width: 782px) { .admin-bar { --adminbar: 46px; } }
@media (max-width: 600px) { .admin-bar { --adminbar: 0px; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
	position: absolute; left: 16px; top: -100px; z-index: 1000;
	background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(760px + var(--gutter) * 2); }

.eyebrow {
	font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--brand);
}

.icon { flex: none; }

/* ---------- Butoane ---------- */
.button {
	display: inline-flex; align-items: center; gap: 8px; justify-content: center;
	background: var(--ink); color: var(--paper); border: 0;
	padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px;
	transition: transform .15s ease, background-color .15s ease;
}
.button:hover { background: var(--brand); color: #fff; }
.button:active { transform: translateY(1px); }
.button--outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.button--outline:hover { background: var(--ink); color: var(--paper); box-shadow: none; }

.icon-btn {
	display: inline-grid; place-items: center; width: 42px; height: 42px;
	border: 0; background: transparent; border-radius: 50%;
	transition: background-color .15s ease;
}
.icon-btn:hover { background: var(--surface-2); }

/* ---------- Chip categorie ---------- */
.chip {
	--c: var(--brand);
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	color: var(--c);
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
a.chip:hover { text-decoration: underline; text-underline-offset: 3px; }
:root[data-theme="dark"] .chip { color: color-mix(in srgb, var(--c) 55%, #fff); }

/* ---------- Meta ---------- */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.meta__sep { opacity: .6; }

/* ---------- Bara de progres ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 200; pointer-events: none; }
.progress__bar { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--brand-grad); }

/* ---------- Topbar ---------- */
.topbar { background: var(--ink); color: #d9d7d0; font-size: 12.5px; }
:root[data-theme="dark"] .topbar { background: #0b0c10; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar__date { white-space: nowrap; }
.fx { display: flex; align-items: center; gap: 14px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.fx::-webkit-scrollbar { display: none; }
.fx__label { font-weight: 700; color: #fff; letter-spacing: .04em; text-transform: uppercase; font-size: 11px; }
.fx__item { display: inline-flex; align-items: baseline; gap: 4px; font-variant-numeric: tabular-nums; }
.fx__cur { color: #9ea3ad; font-weight: 600; }
.fx__val { color: #fff; font-weight: 600; }
.fx__trend { font-size: 9px; margin-left: 2px; }
.fx__item--up .fx__trend { color: #6fd39b; }
.fx__item--down .fx__trend { color: #ff8a7a; }

/* ---------- Masthead ---------- */
.masthead {
	position: sticky; top: 0; z-index: 100;
	background: color-mix(in srgb, var(--paper) 88%, transparent);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .2s ease;
}
.masthead.is-scrolled { box-shadow: 0 6px 24px -16px rgba(0, 0, 0, .35); }
.masthead__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.masthead__brand { flex: none; }
.masthead__brand .custom-logo { width: auto; height: 44px; }
.masthead__menu { display: none; margin-left: -8px; }
.masthead__actions { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -.02em; }
:root[data-theme="dark"] .custom-logo { filter: brightness(1.25) saturate(1.1); }

.theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: inline-flex; }
:root[data-theme="dark"] .theme-toggle__moon { display: none; }
/* Navigare desktop */
.nav { flex: 1; min-width: 0; }
.nav__list, .nav .menu { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav__list > li, .nav .menu > li { position: relative; }
.nav__list > li > a, .nav__more, .nav .menu > li > a {
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px;
	font-size: 14.5px; font-weight: 550; color: var(--ink-2); white-space: nowrap; border: 0; background: none;
	transition: background-color .15s ease, color .15s ease;
}
.nav__list > li > a:hover, .nav__more:hover, .nav .menu > li > a:hover { background: var(--surface-2); color: var(--ink); }
.nav__item.is-current > a, .nav .current-menu-item > a, .nav .current-menu-ancestor > a { color: var(--ink); background: var(--surface-2); }
.nav__sub, .nav .sub-menu {
	position: absolute; top: calc(100% + 8px); right: 0; min-width: 240px; list-style: none;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px;
	box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-4px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.nav .sub-menu { left: 0; right: auto; }
.nav__item--more.is-open .nav__sub,
.nav .menu > li:hover > .sub-menu, .nav .menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav__sub a, .nav .sub-menu a { display: block; padding: 9px 12px; border-radius: var(--radius-sm); font-size: 14.5px; }
.nav__sub a:hover, .nav .sub-menu a:hover { background: var(--surface-2); }

/* Panou căutare */
.search-panel { border-top: 1px solid var(--line); padding: 20px 0; background: var(--paper); }
.search-panel[hidden] { display: none; }

.search-form {
	position: relative; display: flex; align-items: center; gap: 8px;
	background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 6px 6px 6px 44px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.search-form:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.search-form .icon { position: absolute; left: 16px; color: var(--muted); }
.search-form__input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); padding: 8px 4px; outline: none; }
.search-form__input::placeholder { color: var(--muted); }
.search-form__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-form__submit { border: 0; background: var(--ink); color: var(--paper); border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 14.5px; }
.search-form__submit:hover { background: var(--brand); color: #fff; }

/* Drawer mobil */
.drawer { position: fixed; inset: 0; z-index: 300; }
.drawer[hidden] { display: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(10, 12, 16, .5); animation: fade .2s ease; }
.drawer__panel {
	position: absolute; inset: 0 auto 0 0; width: min(88vw, 380px); background: var(--paper);
	padding: 16px 20px 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 20px;
	animation: slide-in .25s cubic-bezier(.2, .8, .2, 1);
}
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__head .custom-logo { height: 38px; width: auto; }
.drawer__list, .drawer__nav .menu { list-style: none; display: grid; gap: 2px; }
.drawer__list a, .drawer__nav .menu a {
	--c: var(--brand);
	display: flex; align-items: center; gap: 12px; padding: 13px 8px; border-bottom: 1px solid var(--line);
	font-weight: 600; font-size: 16px;
}
.drawer__count { margin-left: auto; color: var(--muted); font-weight: 500; font-size: 13px; }
.drawer__nav .sub-menu { list-style: none; padding-left: 16px; }
.dot { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(-100%); } }
body.drawer-open { overflow: hidden; }

/* ---------- Publicitate ---------- */
.ad { margin: 24px auto; text-align: center; }
.ad__label { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ad--article { margin: 32px 0; padding: 12px 0; border-block: 1px solid var(--line); }

/* ==========================================================================
   Carduri
   ========================================================================== */
.media {
	position: relative; display: block; overflow: hidden; border-radius: var(--radius);
	background: var(--surface-2); aspect-ratio: 16 / 10;
}
.media__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.card:hover .media__img { transform: scale(1.04); }
.media__fallback {
	--c: var(--brand);
	position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center;
	background:
		radial-gradient(circle at 20% 15%, color-mix(in srgb, #fff 18%, transparent) 0 18%, transparent 19%),
		linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #14161c));
	color: #fff; font-family: var(--font-display); font-weight: 600; font-size: clamp(14px, 1.6vw, 20px);
}

.card { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card__title { font-family: var(--font-display); font-weight: 650; font-size: 20px; line-height: 1.22; letter-spacing: -.01em; font-variation-settings: "opsz" 48; text-wrap: balance; }
.card__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .3s ease; }
.card__title a:hover { background-size: 100% 1.5px; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card .chip, .card .meta a { position: relative; z-index: 2; }
.card__excerpt { color: var(--ink-2); font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Lead */
.card--lead { gap: 20px; }
.card--lead .media { aspect-ratio: 3 / 2; border-radius: calc(var(--radius) + 4px); }
.card--lead .card__title { font-size: clamp(28px, 3.3vw, 44px); font-weight: 700; line-height: 1.08; letter-spacing: -.022em; font-variation-settings: "opsz" 144; }
.card--lead .card__excerpt { font-size: 17px; -webkit-line-clamp: 3; }

/* Row (imagine stânga) */
.card--row { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 20px; align-items: center; }
.card--row .media { aspect-ratio: 4 / 3; }
.card--row .card__title { font-size: clamp(18px, 1.7vw, 22px); }

/* Numerotat */
.card--numbered { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.card--numbered:first-of-type { border-top: 0; }
.card__num { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px var(--brand); font-variation-settings: "opsz" 144; }
.card--numbered .card__title { font-size: 16.5px; line-height: 1.3; }
.card--numbered .card__body { gap: 6px; }

/* Overlay (text peste imagine) */
.card--overlay { justify-content: flex-end; min-height: 100%; }
.card--overlay .media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: calc(var(--radius) + 4px); }
.card--overlay .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(8, 10, 14, .85) 100%); }
.card--overlay .card__body { position: relative; padding: clamp(20px, 3vw, 32px); color: #fff; pointer-events: none; }
.card--overlay .card__body a { pointer-events: auto; }
.card--overlay .chip { color: #fff; }
.card--overlay .chip::before { background: var(--c); box-shadow: 0 0 0 2px #fff; }
.card--overlay .card__title { font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; line-height: 1.12; }
.card--overlay .meta { color: rgba(255, 255, 255, .8); }
.card--overlay .card__excerpt { color: rgba(255, 255, 255, .85); }

/* Mini */
.card--mini .card__title { font-size: 16px; }

/* Ghid */
.card--guide { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: calc(var(--radius) + 4px); padding: 12px 12px 20px; transition: background-color .2s ease, transform .2s ease; }
.card--guide:hover { background: rgba(255, 255, 255, .08); transform: translateY(-3px); }
.card--guide .card__body { padding: 0 8px; }
.card--guide .card__title { font-size: 22px; }
.card--guide .chip { color: #9fe0cf; }
.card--guide .card__excerpt { color: rgba(255, 255, 255, .72); }
.card--guide .meta { color: rgba(255, 255, 255, .6); }

/* ==========================================================================
   Prima pagină
   ========================================================================== */
.hero {
	display: grid; gap: var(--gap);
	grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr) minmax(0, .95fr);
	padding-top: clamp(24px, 3vw, 40px); padding-bottom: clamp(24px, 3vw, 40px);
}
.hero__second { display: flex; flex-direction: column; gap: var(--gap); }
.hero__second .card__title { font-size: 19px; }
.hero__latest { border-left: 1px solid var(--line); padding-left: var(--gap); }
.hero__latest-title { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding-bottom: 6px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #e0483a; box-shadow: 0 0 0 0 rgba(224, 72, 58, .5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(224, 72, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(224, 72, 58, 0); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

/* Teme */
.topics { display: flex; align-items: center; gap: 16px; padding-block: 18px; border-block: 1px solid var(--line); }
.topics__label { flex: none; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.topics__list { display: flex; gap: 8px; list-style: none; overflow-x: auto; scrollbar-width: none; padding: 2px; flex-wrap: nowrap; }
.topics__list::-webkit-scrollbar { display: none; }
.topic {
	--c: var(--brand);
	display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
	padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
	background: color-mix(in srgb, var(--c) 9%, var(--surface)); color: var(--ink);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent);
	transition: background-color .15s ease, color .15s ease;
}
.topic:hover { background: var(--c); color: #fff; }
.topic__count { font-size: 12px; font-weight: 700; color: var(--c); }
.topic:hover .topic__count { color: rgba(255, 255, 255, .85); }
:root[data-theme="dark"] .topic__count { color: color-mix(in srgb, var(--c) 55%, #fff); }

/* Antet secțiune */
.section-head {
	--c: var(--ink);
	display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
	padding-top: 14px; margin-bottom: 24px; border-top: 3px solid var(--c);
}
.section-head__title { font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; letter-spacing: -.02em; font-variation-settings: "opsz" 144; }
.section-head__more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 650; color: var(--c); white-space: nowrap; }
.section-head__more:hover { gap: 10px; }
.section-head__more .icon { transition: transform .2s ease; }
:root[data-theme="dark"] .section-head__more { color: var(--brand); }

/* Secțiuni pe categorii */
.cat-section { padding-block: clamp(40px, 5vw, 64px) 0; }
.cat-section .section-head { border-top-color: var(--c); }
.cat-section--feature .cat-section__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: repeat(3, auto); gap: 20px var(--gap); }
.cat-section--feature .card--overlay { grid-row: 1 / span 3; min-height: 440px; }
.cat-section--feature .card--row { grid-template-columns: 160px 1fr; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.cat-section--feature .card--row:last-child { border-bottom: 0; padding-bottom: 0; }
.cat-section--feature .card--row .card__title { font-size: 19px; }
.cat-section--grid .cat-section__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.cat-section--grid .card__title { font-size: 18.5px; }

/* ==========================================================================
   Planificator financiar
   ========================================================================== */
.planner {
	--c1: #2f8f78; --c2: #457290; --c3: #5a4f8a; --c4: #c0703a;
	margin-top: clamp(48px, 6vw, 80px);
	padding: clamp(20px, 3.6vw, 44px);
	border-radius: calc(var(--radius) + 10px);
	background:
		radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--brand-2) 14%, transparent) 0, transparent 55%),
		radial-gradient(120% 140% at 0% 100%, color-mix(in srgb, var(--brand-bright) 16%, transparent) 0, transparent 55%),
		var(--surface);
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
	scroll-margin-top: calc(var(--header-h) + 24px);
}
.planner-page__tool .planner { margin-top: clamp(24px, 3vw, 40px); }
.planner-page__content { margin-top: 56px; }
.planner__head { display: grid; gap: 22px; margin-bottom: 26px; }
.planner__title { font-family: var(--font-display); font-size: clamp(26px, 3vw, 38px); font-weight: 700; letter-spacing: -.02em; margin: 8px 0 10px; font-variation-settings: "opsz" 144; }
.planner__lead { color: var(--ink-2); max-width: 70ch; }
.pl-c1 { --c: var(--c1); } .pl-c2 { --c: var(--c2); } .pl-c3 { --c: var(--c3); } .pl-c4 { --c: var(--c4); } .pl-ink { --c: var(--muted); }

/* Tab-uri */
.pl-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; justify-self: start; max-width: 100%; }
.pl-tabs::-webkit-scrollbar { display: none; }
.pl-tab { flex: none; border: 0; background: transparent; padding: 9px 16px; border-radius: 999px; font-weight: 650; font-size: 14.5px; color: var(--ink-2); white-space: nowrap; transition: background-color .15s ease, color .15s ease; }
.pl-tab:hover { color: var(--ink); background: var(--surface-2); }
.pl-tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }

/* Grilă */
.pl-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.pl-grid--wide { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.pl-inputs, .pl-results { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.pl-results > * { min-width: 0; max-width: 100%; }
.pl-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.pl-pair .pl-field__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Câmpuri */
.pl-field { display: grid; gap: 6px; min-width: 0; }
.pl-field__label { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.pl-field__wrap { display: flex; align-items: center; background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 2px 14px; transition: border-color .15s ease, box-shadow .15s ease; }
.pl-field__wrap:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.pl-field__input { flex: 1; width: 100%; min-width: 0; border: 0; background: transparent; color: var(--ink); font-family: var(--font-display); font-size: 22px; font-weight: 700; padding: 8px 0; outline: none; font-variant-numeric: tabular-nums; }
.pl-field__suffix { font-weight: 700; color: var(--muted); font-size: 14px; margin-left: 6px; }
.pl-field__hint { font-size: 12.5px; color: var(--muted); }
.pl-inputs > .pl-field:first-child .pl-field__input { font-size: 30px; }
.pl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-chip { border: 1.5px solid var(--line-strong); background: var(--paper); color: var(--ink-2); padding: 8px 14px; border-radius: 999px; font-weight: 650; font-size: 14px; transition: all .15s ease; }
.pl-chip:hover { border-color: var(--ink); color: var(--ink); }
.pl-chip[aria-checked="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.pl-more { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 0 14px; background: color-mix(in srgb, var(--paper) 60%, transparent); }
.pl-more summary { cursor: pointer; padding: 12px 0; font-weight: 650; font-size: 14.5px; color: var(--brand); list-style: none; }
.pl-more summary::-webkit-details-marker { display: none; }
.pl-more summary::before { content: "+"; display: inline-block; width: 18px; font-weight: 700; }
.pl-more[open] summary::before { content: "–"; }
.pl-more__body { display: grid; gap: 14px; padding-bottom: 14px; }

/* Rezultate: buget */
.pl-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; gap: 3px; background: var(--surface-2); }
.pl-bar__seg { width: 33%; background: var(--c); border-radius: 999px; transition: width .35s cubic-bezier(.2, .8, .2, 1); }
.pl-rows { list-style: none; display: grid; gap: 10px; }
.pl-row { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.pl-row__pct { display: grid; place-items: center; height: 36px; border-radius: 10px; background: var(--c); color: #fff; font-weight: 800; font-size: 14px; }
.pl-row__name { display: grid; font-weight: 700; line-height: 1.3; min-width: 0; }
.pl-row__name small { font-weight: 500; color: var(--muted); font-size: 13px; }
.pl-row__name small.is-over { color: var(--down); font-weight: 600; }
.pl-row__val { font-family: var(--font-display); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* KPI */
.pl-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pl-kpi { display: grid; gap: 4px; align-content: start; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.pl-kpi--main { grid-column: 1 / -1; background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pl-kpi__label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.pl-kpi--main .pl-kpi__label { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.pl-kpi__val { font-family: var(--font-display); font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pl-kpi--main .pl-kpi__val { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; }
.pl-kpi__val.is-bad { color: var(--down); }
.pl-kpi__val.is-ok { color: var(--up); }
.pl-insight { padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--brand) 8%, var(--paper)); border-left: 4px solid var(--brand); color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.pl-insight:empty { display: none; }

/* Grafic */
.pl-chart { position: relative; height: 260px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 8px 6px 0; }
.pl-chart svg { display: block; max-width: 100%; overflow: visible; }
.pl-grid-line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pl-axis { fill: var(--muted); font-size: 11px; font-family: var(--font-sans); }
.pl-line { fill: none; stroke: var(--c); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.pl-line--dash { stroke-dasharray: 5 5; stroke-width: 1.8; }
.pl-area { fill: color-mix(in srgb, var(--c) 14%, transparent); stroke: none; }
.pl-band-area { fill: color-mix(in srgb, var(--c1) 10%, transparent); stroke: none; }
.pl-cursor { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; opacity: .5; }
.pl-hit { fill: transparent; cursor: crosshair; }
.pl-tip { position: absolute; top: 8px; z-index: 2; display: grid; gap: 3px; min-width: 190px; padding: 10px 12px; background: var(--ink); color: var(--paper); border-radius: 10px; font-size: 12.5px; box-shadow: var(--shadow-lg); pointer-events: none; }
.pl-tip[hidden] { display: none; }
.pl-tip strong { font-size: 13px; }
.pl-tip span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.pl-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.pl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pl-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.pl-dot.pl-dash { background: none; border-top: 2px dashed var(--muted); border-radius: 0; height: 0; width: 14px; }
.pl-dot.pl-band { background: color-mix(in srgb, var(--c1) 22%, transparent); }

/* Progres (fond de urgență) */
.pl-progress { height: 16px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.pl-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--c1), var(--c3)); border-radius: 999px; transition: width .35s ease; }

/* Tabel */
.pl-table-wrap summary { cursor: pointer; font-weight: 650; color: var(--brand); padding: 6px 0; }
.pl-table { overflow-x: auto; margin: 8px 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.pl-table table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.pl-table th, .pl-table td { padding: 9px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.pl-table thead th { background: var(--surface-2); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); position: sticky; top: 0; }
.pl-table th:first-child { text-align: left; }
.pl-table tbody tr:last-child > * { border-bottom: 0; font-weight: 700; }
.pl-export { font-size: 14px; padding: 9px 16px; }

.planner__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.planner__foot p { font-size: 13px; color: var(--muted); max-width: 60ch; }

/* ==========================================================================
   Ghiduri — componente interactive
   ========================================================================== */
.g-level { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; color: #fff; background: var(--brand); }
.g-level--1 { background: #2f8f78; } .g-level--2 { background: #457290; } .g-level--3 { background: #5a4f8a; }
.g-level::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.card--guide .g-level { align-self: flex-start; }
.g-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.g-badge { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }

.prose .g-box, .prose .g-check, .prose .g-quiz, .prose .g-tool, .prose .g-faq, .prose .g-series { font-size: 16px; line-height: 1.6; }
.prose .g-box + .g-box { margin-top: 1em; }

/* Casete */
.g-box { --c: var(--brand); margin: 1.8em 0; padding: 18px 22px; border-radius: var(--radius); background: color-mix(in srgb, var(--c) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); }
.g-box--warn { --c: #b7862b; } .g-box--example { --c: #457290; } .g-box--key { --c: #5a4f8a; } .g-box--learn { --c: #1f7a68; }
.g-box__title { font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--c); margin-bottom: 8px !important; }
:root[data-theme="dark"] .g-box__title { color: color-mix(in srgb, var(--c) 55%, #fff); }
.g-box__body > * + * { margin-top: .7em; }
.g-box__body ul, .g-box__body ol { padding-left: 1.2em; }
.g-box--learn .g-box__body ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.g-box--learn .g-box__body li { position: relative; padding-left: 28px; }
.g-box--learn .g-box__body li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; background: var(--c); }

/* Checklist */
.g-check { margin: 2em 0; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.g-check__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.g-check__title { font-weight: 800; font-size: 16px; }
.g-check__count { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--brand); }
.g-check__bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 12px 0 8px; }
.g-check__bar span { display: block; height: 100%; width: 0; background: var(--brand-grad); transition: width .3s ease; }
.prose .g-check__list { list-style: none; padding: 0; display: grid; gap: 2px; margin: 0; }
.prose .g-check__list li + li { margin-top: 0; }
.g-check__list label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 6px; border-radius: 10px; cursor: pointer; }
.g-check__list label:hover { background: var(--surface-2); }
.g-check__list input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); }
.g-check__list input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.g-check__note { font-size: 12.5px; color: var(--muted); margin-top: 8px !important; }
.g-check.is-done { border-color: var(--brand); }
.g-check.is-done .g-check__title::after { content: " — gata! 🎉"; color: var(--brand); }

/* Quiz */
.g-quiz { margin: 2.2em 0; padding: 22px; border-radius: calc(var(--radius) + 4px); background: linear-gradient(160deg, color-mix(in srgb, var(--brand-2) 10%, var(--surface)), var(--surface)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.g-quiz__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.g-quiz__title { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.g-quiz__count { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.g-q { border: 0; margin: 0; padding: 16px 0; border-top: 1px dashed var(--line-strong); min-width: 0; }
.g-q__text { float: left; width: 100%; display: flex; gap: 10px; font-weight: 700; font-size: 16.5px; line-height: 1.45; padding: 0; margin-bottom: 12px; }
.g-q__num { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 13px; }
.g-q__opts { clear: both; display: grid; gap: 8px; }
.g-q__opt { text-align: left; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--paper); color: var(--ink); font-size: 15px; line-height: 1.45; transition: border-color .15s ease, background-color .15s ease; }
.g-q__opt:not(:disabled):hover { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--paper)); }
.g-q__opt:disabled { cursor: default; }
.g-q__opt.is-picked { border-color: var(--ink); font-weight: 700; }
/* Răspunsul ales: evidențiat clar; celelalte variante trec în plan secund. */
.g-quiz[data-mode="score"] .g-q__opt.is-picked { background: var(--brand); border-color: var(--brand); color: var(--paper); box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 28%, transparent); }
.g-quiz[data-mode="score"] .g-q__opt.is-picked::after { content: "✓"; float: right; margin-left: 10px; font-weight: 800; }
.g-q.is-answered .g-q__opt:not(.is-picked):not(.is-correct) { opacity: .5; }
.g-q__opt.is-correct { border-color: var(--up); background: color-mix(in srgb, var(--up) 12%, var(--paper)); }
.g-q__opt.is-picked.is-correct, .g-q__opt.is-incorrect { box-shadow: inset 0 0 0 1.5px currentColor; }
.g-q__opt.is-picked.is-correct { color: var(--up); } .g-q__opt.is-incorrect { color: var(--down); }
.g-q__opt.is-correct::after { content: " ✓"; color: var(--up); font-weight: 800; }
.g-q__opt.is-incorrect { border-color: var(--down); background: color-mix(in srgb, var(--down) 10%, var(--paper)); }
.g-q__opt.is-incorrect::after { content: " ✗"; color: var(--down); font-weight: 800; }
.g-q__exp { margin-top: 10px !important; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); font-size: 14.5px; color: var(--ink-2); }
.g-quiz__result { margin-top: 16px; padding: 18px 20px; border-radius: 14px; background: var(--ink); color: var(--paper); display: grid; gap: 8px; }
.g-quiz__result p { margin: 0 !important; }
.g-quiz__result a.button { justify-self: start; background: var(--paper); color: var(--ink); text-decoration: none; margin-top: 6px; }
.g-res__label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.g-res__big { font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 1.1; }
.g-quiz__reset { margin-top: 12px; border: 0; background: none; color: var(--brand); font-weight: 700; padding: 6px 0; }
.g-alloc { display: flex; height: 30px; border-radius: 8px; overflow: hidden; font-size: 12px; font-weight: 700; }
.g-alloc span { display: grid; place-items: center; white-space: nowrap; overflow: hidden; color: #fff; }
.g-alloc span:first-child { background: #2f8f78; } .g-alloc span:last-child { background: #457290; }

/* Calculatoare în text */
.g-tool { margin: 2.2em 0; padding: 22px; border-radius: calc(var(--radius) + 4px); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.g-tool__head { margin-bottom: 16px; }
.g-tool__title { font-family: var(--font-display); font-size: 21px; font-weight: 700; }
.g-tool__desc { color: var(--muted); font-size: 14.5px; margin-top: 4px !important; }
.g-tool__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.g-tool__fields { display: grid; gap: 12px; }
.g-tool__fields .pl-field__input { font-size: 19px; }
.g-tool--wide .g-tool__grid { grid-template-columns: minmax(0, 1fr); }
.g-tool--wide .g-tool__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-tool--wide .pl-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-tool__out { display: grid; gap: 12px; min-width: 0; }
.g-tool__out .pl-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-tool__out .pl-kpi--main .pl-kpi__val { font-size: clamp(24px, 2.6vw, 32px); }
.g-tool__out p { margin: 0 !important; }
.prose .pl-kpi--main .pl-kpi__val, .prose .g-quiz__result strong { color: var(--paper); }
.prose .pl-kpi__val { color: var(--ink); }
.prose .pl-kpi__val.is-bad { color: var(--down); } .prose .pl-kpi__val.is-ok { color: var(--up); }
.g-split { display: flex; height: 26px; border-radius: 8px; overflow: hidden; gap: 2px; font-size: 11.5px; font-weight: 700; color: #fff; }
.g-split span { display: grid; place-items: center; white-space: nowrap; overflow: hidden; min-width: 2px; }
.g-s1 { background: #2f8f78; } .g-s2 { background: #5a4f8a; } .g-s3 { background: #c0703a; } .g-s4 { background: #457290; } .g-s5 { background: #8a8f9c; }
.prose .g-miles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.prose .g-miles li { margin: 0; display: grid; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13px; color: var(--muted); }
.g-miles strong { font-family: var(--font-display); font-size: 17px; color: var(--ink); }
.g-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.prose .g-table table { display: table; margin: 0; font-size: 14px; }
.g-table th, .g-table td { padding: 8px 12px !important; white-space: nowrap; }
.g-table tr.is-on { background: color-mix(in srgb, var(--brand) 12%, transparent); font-weight: 700; }
.g-tool .is-ok { color: var(--up); font-weight: 700; } .g-tool .is-bad { color: var(--down); font-weight: 700; }
.pl-insight.is-warn { border-left-color: var(--gold); }

/* FAQ */
.g-faq { margin: 0; border-bottom: 1px solid var(--line); }
.g-faq + .g-faq { margin-top: 0 !important; }
.g-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 700; font-size: 17px; }
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 600; transition: transform .2s ease; }
.g-faq[open] summary::after { transform: rotate(45deg); }
.g-faq__body { padding: 0 0 16px; color: var(--ink-2); }
.g-faq__body > * + * { margin-top: .6em; }

/* Seria de ghiduri */
.g-series { padding: 22px; border-radius: var(--radius); background: var(--ink); color: var(--paper); }
.g-series .eyebrow { color: #9fe0cf; margin-bottom: 12px; }
.g-series__list { list-style: none; display: grid; gap: 8px; counter-reset: s; }
.g-series__item a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); transition: background-color .15s ease; }
.g-series__item a:hover { background: rgba(255, 255, 255, .12); }
.g-series__item.is-current a { border-color: #9fe0cf; background: rgba(159, 224, 207, .12); }
.g-series__level { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #9fe0cf; }
.g-series__title { font-family: var(--font-display); font-size: 18px; font-weight: 650; line-height: 1.3; }
.g-series__meta { font-size: 13px; opacity: .65; }
:root[data-theme="dark"] .g-series { background: var(--surface-2); color: var(--ink); }

/* Ghiduri */
.guides {
	margin-top: clamp(56px, 7vw, 96px); padding-block: clamp(48px, 6vw, 80px);
	background:
		radial-gradient(80% 120% at 85% 0%, rgba(101, 93, 144, .35) 0, transparent 60%),
		radial-gradient(70% 100% at 0% 100%, rgba(53, 150, 129, .28) 0, transparent 60%),
		#13151b;
	color: #f1efe9;
}
.guides .eyebrow { color: #9fe0cf; }
.guides__head { max-width: 640px; margin-bottom: 36px; }
.guides__title { font-family: var(--font-display); font-size: clamp(32px, 4vw, 52px); font-weight: 700; letter-spacing: -.025em; margin: 8px 0 12px; font-variation-settings: "opsz" 144; }
.guides__lead { color: rgba(255, 255, 255, .72); font-size: 17px; }
.guides__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.guides__quiz { margin-top: 32px; display: flex; align-items: center; gap: 18px 22px; padding: 22px 26px; border-radius: calc(var(--radius) + 4px); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.guides__quiz-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(159, 224, 207, .14); font-size: 26px; }
.guides__quiz-text { flex: 1; min-width: 0; }
.guides__quiz-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.25; margin-bottom: 4px; }
.guides__quiz-text p:not(.guides__quiz-title) { color: rgba(255, 255, 255, .72); font-size: 15px; }
.guides__quiz-btn { flex: none; background: #fff; color: #14161c; }
.guides__quiz-btn:hover { background: #9fe0cf; color: #14161c; }

/* Fereastră modală */
html.has-modal { overflow: hidden; }
.quiz-modal { width: min(680px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: calc(var(--radius) + 4px); background: var(--surface); color: var(--ink); overflow: auto; overscroll-behavior: contain; box-shadow: 0 24px 80px rgba(0, 0, 0, .35); }
.quiz-modal::backdrop { background: rgba(10, 12, 16, .62); backdrop-filter: blur(3px); }
.quiz-modal .g-quiz { margin: 0; border: 0; box-shadow: none; border-radius: 0; font-size: 16px; line-height: 1.6; }
.quiz-modal .g-quiz__head { padding-right: 48px; }
.quiz-modal .g-quiz__result strong { color: var(--paper); }
.quiz-modal__close { position: absolute; top: 14px; right: 14px; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink); font-size: 24px; line-height: 1; }
.quiz-modal__close:hover { background: var(--ink); color: var(--paper); }

/* Layout cu sidebar */
.layout { display: grid; gap: clamp(32px, 4vw, 56px); padding-block: clamp(40px, 5vw, 64px); }
.layout--sidebar { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.stream__list { display: grid; gap: 28px; }
.stream__list .card--row { padding-bottom: 28px; border-bottom: 1px solid var(--line); grid-template-columns: minmax(140px, 38%) 1fr; }
.stream__list .card--row:last-child { border-bottom: 0; }
.stream__more { margin-top: 32px; }

/* ---------- Sidebar ---------- */
.sidebar__inner { position: sticky; top: calc(var(--sticky-offset, var(--header-h)) + 24px); display: grid; gap: 28px; }
.widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.widget__title { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.widget ul { list-style: none; }
.widget--guides .card--numbered:first-of-type { padding-top: 6px; }
.topic-list { display: grid; }
.topic-list a { --c: var(--brand); display: flex; align-items: center; gap: 10px; padding: 9px 0; font-weight: 550; font-size: 15px; border-bottom: 1px dashed var(--line); }
.topic-list li:last-child a { border-bottom: 0; }
.topic-list a:hover { color: var(--brand); }
.topic-list__count { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 2px 9px; }
.widget--cta { background: var(--brand-grad); color: #fff; border: 0; display: grid; gap: 10px; }
.widget--cta .eyebrow { color: rgba(255, 255, 255, .8); }
.widget--cta__title { font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.2; }
.widget--cta p { color: rgba(255, 255, 255, .88); font-size: 14.5px; }
.widget--cta .button { background: #fff; color: #14161c; justify-self: start; margin-top: 6px; }
.widget--cta .button:hover { background: #14161c; color: #fff; }

/* ==========================================================================
   Listări
   ========================================================================== */
.page-hero {
	--c: var(--brand);
	position: relative; padding-block: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 44px);
	background:
		linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, transparent), transparent),
		var(--paper);
	border-bottom: 1px solid var(--line);
}
.page-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--c); }
.page-hero--plain { background: none; border-bottom: 0; padding-bottom: 8px; }
.page-hero--plain::before { display: none; }
.page-hero__eyebrow { color: var(--c); margin-top: 18px; }
:root[data-theme="dark"] .page-hero__eyebrow { color: color-mix(in srgb, var(--c) 55%, #fff); }
.page-hero__title { font-family: var(--font-display); font-size: clamp(34px, 5vw, 60px); font-weight: 700; letter-spacing: -.025em; margin-top: 6px; font-variation-settings: "opsz" 144; text-wrap: balance; }
.page-hero--plain .page-hero__title { margin-top: 18px; }
.page-hero__desc { margin-top: 12px; max-width: 70ch; color: var(--ink-2); font-size: 17px; }
.page-hero__count { margin-top: 12px; color: var(--muted); font-size: 14px; font-weight: 550; }
.page-hero__search { margin-top: 20px; max-width: 640px; }

.listing__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px var(--gap); }
.listing__grid .card--lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: var(--gap); padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.listing__grid .card--lead .card__title { font-size: clamp(26px, 2.8vw, 36px); }
.search .listing__grid { grid-template-columns: 1fr; }
.search .listing__grid .card { display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: var(--gap); }

.empty { padding: 40px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); display: grid; gap: 12px; }
.empty h2 { font-family: var(--font-display); font-size: 26px; }
.empty .topics__list { flex-wrap: wrap; }

/* Breadcrumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: 13.5px; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; opacity: .5; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--ink-2); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Paginare */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 56px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; font-weight: 650; font-size: 15px; background: var(--surface); border: 1px solid var(--line); }
.pagination a.page-numbers:hover { border-color: var(--ink); }
.pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagination .dots { background: none; border: 0; }

/* ==========================================================================
   Articol
   ========================================================================== */
.article__head { max-width: calc(980px + var(--gutter) * 2); padding-top: clamp(24px, 3vw, 40px); display: grid; gap: 18px; justify-items: start; }
.article__head .chip { margin-top: 8px; }
.article__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 5.2vw, 60px); line-height: 1.05; letter-spacing: -.028em; font-variation-settings: "opsz" 144; text-wrap: balance; }
.article__standfirst { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 62ch; }
.article__bar { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; margin-top: 6px; border-block: 1px solid var(--line); }
.byline { display: flex; align-items: center; gap: 12px; }
.byline__avatar { border-radius: 50%; }
.byline__text { display: grid; gap: 2px; }
.byline__name { font-weight: 650; font-size: 15px; }
.byline__name a:hover { color: var(--brand); }
.byline__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; }
.byline__read { display: inline-flex; align-items: center; gap: 4px; }

.share { display: flex; align-items: center; gap: 6px; }
.share__label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.share__btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); transition: all .15s ease; }
.share__btn:hover { color: #fff; border-color: transparent; }
.share__btn--facebook:hover { background: #1877f2; }
.share__btn--whatsapp:hover { background: #25d366; }
.share__btn--linkedin:hover { background: #0a66c2; }
.share__btn--x:hover { background: #000; }
.share__btn--copy:hover, .share__btn--copy.is-copied { background: var(--brand); color: #fff; }

.article__hero { margin: 28px auto 0; max-width: calc(1200px + var(--gutter) * 2); }
.article__hero-img { width: 100%; max-height: 640px; object-fit: cover; border-radius: calc(var(--radius) + 6px); aspect-ratio: 16 / 9; background: var(--surface-2); }
.article__hero figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); }

.article__layout { max-width: calc(1120px + var(--gutter) * 2); display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); padding-top: clamp(32px, 4vw, 48px); align-items: start; }
.article__main { min-width: 0; max-width: 720px; }
.article__aside, .layout--sidebar > .sidebar, .page-layout > .sidebar { align-self: stretch; } /* coloana ocupă tot rândul, ca sticky să funcționeze */
.article__sticky { position: sticky; top: calc(var(--sticky-offset, var(--header-h)) + 24px); display: grid; gap: 24px; }

/* Cuprins */
.toc { font-size: 14.5px; }
.toc__title { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.toc__list { list-style: none; display: grid; gap: 2px; border-left: 2px solid var(--line); counter-reset: toc; }
.toc__item a { display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); line-height: 1.4; transition: color .15s ease, border-color .15s ease; }
.toc__item a:hover { color: var(--ink); }
.toc__item a.is-active { color: var(--ink); border-left-color: var(--brand); font-weight: 600; }
.toc__item--sub a { padding-left: 30px; font-size: 13.5px; }
.toc--inline { display: none; margin-bottom: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.toc--inline .toc__details { padding: 4px 18px; }
.toc--inline .toc__title { margin: 0; padding: 14px 0; cursor: pointer; list-style: none; }
.toc--inline .toc__title::-webkit-details-marker { display: none; }
.toc--inline .toc__title::after { content: "+"; margin-left: auto; font-size: 20px; font-weight: 400; line-height: 1; }
.toc--inline details[open] .toc__title::after { content: "–"; }
.toc--inline .toc__list { margin-bottom: 16px; }
/* Ghiduri: cuprins și planificator deasupra conținutului, text pe toată lățimea */
.guide-top { max-width: calc(1120px + var(--gutter) * 2); display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; padding-top: clamp(28px, 3.5vw, 40px); }
.toc--top { padding: 22px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); }
.toc--top .toc__list { display: block; columns: 2; column-gap: 36px; border-left: 0; }
.toc--top .toc__item { break-inside: avoid; counter-increment: toc; }
.toc--top .toc__item a { display: flex; gap: 12px; padding: 7px 0; margin: 0; border: 0; color: var(--ink-2); font-size: 15px; }
.toc--top .toc__item a::before { content: counter(toc, decimal-leading-zero); flex: none; min-width: 22px; padding-top: 1px; font-size: 12.5px; font-weight: 800; color: var(--brand); }
.toc--top .toc__item a:hover { color: var(--brand); }
.toc--top .toc__item--sub a { padding-left: 0; font-size: 14px; }
.guide-top__cta { align-content: center; padding: 26px; border-radius: calc(var(--radius) + 4px); }
.guide-top > .guide-top__cta:only-child { grid-column: 1 / -1; }
.article__layout--full { grid-template-columns: minmax(0, 1fr); }
.article__layout--full .article__main { max-width: none; }
.toc__count { background: var(--surface-2); border-radius: 999px; padding: 1px 8px; font-size: 11px; color: var(--muted); letter-spacing: 0; }

/* Proză */
.prose { font-size: 18.5px; line-height: 1.75; color: var(--ink); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.15em; }
.is-article .prose > p:first-child::first-letter {
	float: left; font-family: var(--font-display); font-weight: 700; font-size: 4.2em; line-height: .82;
	margin: .08em .1em 0 0; color: var(--brand); font-variation-settings: "opsz" 144;
}
.prose h2 { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 32px); font-weight: 700; letter-spacing: -.018em; line-height: 1.2; margin-top: 2em; font-variation-settings: "opsz" 96; }
.prose h3 { font-family: var(--font-display); font-size: clamp(21px, 2vw, 24px); font-weight: 650; line-height: 1.3; margin-top: 1.7em; }
.prose h4 { font-size: 18px; font-weight: 700; margin-top: 1.5em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent); transition: text-decoration-color .15s ease; }
.prose a:hover { text-decoration-color: var(--brand); }
.prose strong { font-weight: 700; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .45em; }
.prose ul li::marker { color: var(--brand); }
.prose ol li::marker { color: var(--brand); font-weight: 700; }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--brand); font-family: var(--font-display); font-size: 1.2em; line-height: 1.5; color: var(--ink-2); font-style: italic; }
.prose img, .prose figure { border-radius: var(--radius); }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; display: block; overflow-x: auto; }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.prose .table-wrap table { display: table; margin: 0; }
.prose .md-table th { background: var(--surface-2); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.prose .md-table th:first-child, .prose .md-table td:first-child { padding-left: 18px; }
.prose .md-table td:first-child { font-weight: 650; }
.prose .md-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.prose .md-table tbody tr:last-child td { border-bottom: 0; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); font-weight: 700; }
.prose hr { border: 0; height: 1px; background: var(--line); margin-block: 2.5em; }
.prose code { font-size: .88em; background: var(--surface-2); border-radius: 6px; padding: .15em .4em; }
.prose > br { display: none; }

/* Citește și */
.inline-related { margin: 2em 0; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius-sm); }
.inline-related__label { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; font-family: var(--font-sans); }
.prose .inline-related__link { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; text-decoration: none; color: var(--ink); }
.inline-related__media { position: relative; display: block; width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.inline-related__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.inline-related__media .media__fallback { font-size: 10px; padding: 4px; }
.inline-related__title { font-family: var(--font-display); font-weight: 650; font-size: 19px; line-height: 1.3; }
.inline-related__link:hover .inline-related__title { color: var(--brand); }

/* Subsol articol */
.article__foot { margin-top: 48px; display: grid; gap: 28px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tags a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: 14px; font-weight: 550; }
.tags a:hover { background: var(--ink); color: var(--paper); }
.article__share-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.article__share-end p { font-weight: 650; }
.article__share-end .share__label { display: none; }
.disclaimer { display: grid; gap: 4px; padding: 18px 20px; border-radius: var(--radius); background: color-mix(in srgb, var(--gold) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); font-size: 14.5px; color: var(--ink-2); }
.disclaimer strong { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.author-box { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.author-box__avatar { border-radius: 50%; }
.author-box__name { font-family: var(--font-display); font-size: 22px; margin: 4px 0 6px; }
.author-box p:last-child { color: var(--ink-2); font-size: 15px; }

/* Similare */
.related { padding-block: clamp(48px, 6vw, 80px); margin-top: clamp(40px, 5vw, 64px); background: var(--surface-2); }
.related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }

/* Pagini statice cu bară laterală */
.page-layout { max-width: calc(1120px + var(--gutter) * 2); display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); align-items: start; padding-top: 24px; }
.page-layout .page-main { min-width: 0; max-width: 720px; }
.page-hero--plain .container--wide { max-width: calc(1120px + var(--gutter) * 2); }
.page-thumb { margin: 0 0 32px; }

/* Comentarii */
.comments { padding-block: 48px; }
.comments__title { font-family: var(--font-display); font-size: 26px; margin-bottom: 20px; }
.comments__list { list-style: none; display: grid; gap: 20px; }
.comments__list .children { list-style: none; padding-left: 28px; margin-top: 20px; display: grid; gap: 20px; }
.comment-body { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.comment-meta { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 8px; }
.comment-meta img { border-radius: 50%; }
.comment-metadata { color: var(--muted); }
.comment-form { display: grid; gap: 14px; }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--brand); }

/* 404 */
.notfound { text-align: center; padding-block: clamp(48px, 8vw, 112px) 24px; display: grid; gap: 16px; justify-items: center; }
.notfound__code { font-family: var(--font-display); font-size: clamp(96px, 18vw, 180px); font-weight: 800; line-height: .9; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variation-settings: "opsz" 144; }
.notfound__title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 42px); letter-spacing: -.02em; }
.notfound__lead { color: var(--ink-2); max-width: 52ch; }
.notfound .search-form { width: 100%; max-width: 560px; margin-top: 8px; }
.notfound__topics { flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ==========================================================================
   Subsol
   ========================================================================== */
.footer { margin-top: clamp(56px, 7vw, 96px); background: #101217; color: #c5c3bc; font-size: 15px; }
.related + .footer, .guides + .footer { margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(auto-fit, minmax(160px, 1fr)); gap: 40px; padding-block: 56px 40px; }
.footer__brand { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: #fff; letter-spacing: -.02em; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: brightness(1.35); }
.footer__about p { margin-top: 12px; max-width: 44ch; color: #a9a7a0; }
.footer__social { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 18px; }
.footer__social a { display: inline-block; padding: 6px 12px; border: 1px solid #2c303a; border-radius: 999px; font-size: 13.5px; }
.footer__social a:hover { background: #fff; color: #101217; }
.footer__title { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer__links { list-style: none; display: grid; gap: 8px; }
.footer__links a:hover, .footer .widget a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer .widget { background: none; border: 0; padding: 0; }
.footer .widget__title { color: #fff; border-color: #2c303a; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px 28px; border-top: 1px solid #23262e; font-size: 13.5px; color: #8b8e96; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
	.hero { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
	.hero__latest { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
	.hero__latest-title { grid-column: 1 / -1; }
	.card--numbered:nth-of-type(2) { border-top: 0; }
	.cat-section--grid .cat-section__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.layout--sidebar { grid-template-columns: minmax(0, 1fr) 280px; }
}

@media (max-width: 1024px) {
	.nav { display: none; }
	.masthead__menu { display: inline-grid; }
	.masthead__inner { gap: 12px; }
	.masthead__brand { margin-inline: auto; }
	.masthead__actions { margin-left: 0; }
	.article__layout { grid-template-columns: minmax(0, 1fr); }
	.article__main { margin-inline: auto; }
	.article__aside { display: none; }
	.guide-top { grid-template-columns: minmax(0, 1fr); }
	.guide-top__cta { grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; row-gap: 6px; }
	.guide-top__cta > * { grid-column: 1; }
	.guide-top__cta .button { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin-top: 0; }
	.toc--inline { display: block; }
	.layout--sidebar, .page-layout { grid-template-columns: minmax(0, 1fr); }
	.page-layout .page-main { margin-inline: auto; }
	.sidebar__inner { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
	.guides__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.guides__grid .card:nth-child(3) { display: none; }
	.pl-grid, .pl-grid--wide { grid-template-columns: minmax(0, 1fr); }
	.g-tool__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
	.toc--top { padding: 18px 20px; }
	.toc--top .toc__list { columns: 1; }
	.guide-top__cta { grid-template-columns: minmax(0, 1fr); }
	.guide-top__cta .button { grid-column: 1; grid-row: auto; margin-top: 6px; }
	.guides__quiz { flex-wrap: wrap; align-items: flex-start; padding: 20px; }
	.guides__quiz-icon { width: 44px; height: 44px; font-size: 22px; }
	.guides__quiz-text { flex-basis: calc(100% - 66px); }
	.guides__quiz-btn { width: 100%; }
	:root { --header-h: 60px; }
	.masthead__brand .custom-logo { height: 34px; }
	.topbar__date { display: none; }
	.topbar__inner { justify-content: center; }
	.hero { grid-template-columns: minmax(0, 1fr); padding-top: 16px; }
	.hero__second { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.hero__second .card__title { font-size: 16.5px; }
	.hero__latest { grid-template-columns: minmax(0, 1fr); }
	.card--numbered:nth-of-type(2) { border-top: 1px solid var(--line); }
	.card--lead .card__excerpt { font-size: 16px; }
	.topics { flex-direction: column; align-items: stretch; gap: 10px; margin-inline: 0; }
	.topics__list { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
	.cat-section--feature .cat-section__grid { grid-template-columns: minmax(0, 1fr); }
	.cat-section--feature .card--overlay { grid-row: auto; min-height: 340px; }
	.cat-section--feature .card--row { grid-template-columns: 112px 1fr; gap: 14px; }
	.cat-section--feature .card--row .card__title, .card--row .card__title { font-size: 17px; }
	.cat-section--grid .cat-section__grid { gap: 24px 16px; }
	.cat-section--grid .card__title { font-size: 16.5px; }
	.card--row { grid-template-columns: 112px 1fr; gap: 14px; align-items: start; }
	.stream__list .card--row { grid-template-columns: 112px 1fr; }
	.card--row .card__excerpt { display: none; }
	.guides__grid { grid-template-columns: minmax(0, 1fr); }
	.guides__grid .card:nth-child(3) { display: flex; }
	.listing__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.listing__grid .card--lead { grid-template-columns: minmax(0, 1fr); padding-bottom: 32px; }
	.search .listing__grid .card { grid-template-columns: 112px 1fr; gap: 14px; align-items: start; }
	.related__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.related__grid .card { display: grid; grid-template-columns: 112px 1fr; gap: 14px; }
	.related__grid .card .media { aspect-ratio: 4 / 3; }
	.related__grid .card__title { font-size: 17px; }
	.article__bar { flex-direction: column; align-items: flex-start; }
	.prose { font-size: 17.5px; line-height: 1.72; }
	/* Tabele → carduri pe mobil */
	.prose .table-wrap { border: 0; background: none; overflow: visible; }
	.prose .md-table, .prose .md-table tbody, .prose .md-table tr, .prose .md-table td { display: block; width: 100%; }
	.prose .md-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.prose .md-table tr { background: var(--surface) !important; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 16px; margin-bottom: 12px; }
	.prose .md-table td { border-bottom: 1px dashed var(--line); padding: 10px 0 !important; text-align: left !important; }
	.prose .md-table td:last-child { border-bottom: 0; }
	.prose .md-table td::before { content: attr(data-label); display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
	.prose .md-table td:first-child { font-family: var(--font-display); font-size: 18px; }
	.prose .md-table td:first-child::before { display: none; }
	.article__hero { padding-inline: 0; }
	.article__hero-img { border-radius: 0; }
	.article__hero figcaption { padding-inline: var(--gutter); }
	.author-box { grid-template-columns: 56px 1fr; padding: 20px; }
	.author-box__avatar { width: 56px; height: 56px; }
	.footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
	.footer__about { grid-column: 1 / -1; }
	.search-form__submit { padding: 10px 14px; }
	.planner { padding: 20px 16px; margin-inline: calc(var(--gutter) * -1 + 8px); border-radius: var(--radius); }
	.pl-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pl-kpis .pl-kpi:last-child:nth-child(even) { grid-column: 1 / -1; }
	.pl-row { grid-template-columns: 48px 1fr; }
	.pl-row__val { grid-column: 2; font-size: 20px; }
	.pl-chart { height: 220px; }
	.g-tool__grid { grid-template-columns: minmax(0, 1fr); }
	.g-tool--wide .g-tool__fields, .g-tool--wide .pl-kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.g-tool, .g-quiz, .g-check { padding: 18px 16px; }
	.g-res__big { font-size: 24px; }
	.pl-pair { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 420px) {
	.hero__second { grid-template-columns: minmax(0, 1fr); }
	.hero__second .card { display: grid; grid-template-columns: 112px 1fr; gap: 14px; }
	.hero__second .media { aspect-ratio: 4 / 3; }
	.cat-section--grid .cat-section__grid { grid-template-columns: minmax(0, 1fr); }
	.cat-section--grid .card { display: grid; grid-template-columns: 112px 1fr; gap: 14px; }
	.cat-section--grid .media { aspect-ratio: 4 / 3; }
	.share__label { display: none; }
}

@media print {
	.topbar, .masthead, .drawer, .progress, .article__aside, .share, .related, .footer, .ad, .inline-related, .toc { display: none !important; }
	body { background: #fff; color: #000; }
	.prose { font-size: 12pt; }
}

/* Widget-uri adăugate de utilizator (blocuri) */
.widget :is(h2, h3).wp-block-heading, .widget .wp-block-search__label { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.widget .wp-block-search__inside-wrapper { display: flex; gap: 6px; }
.widget .wp-block-search__input { flex: 1; min-width: 0; padding: 10px 12px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); font: inherit; }
.widget .wp-block-search__button { border: 0; border-radius: var(--radius-sm); background: var(--ink); color: var(--paper); padding: 0 14px; font-weight: 600; }
.widget li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget a:hover { color: var(--brand); }
