@charset "UTF-8";
/*
 * OptimizareSite, caseta de raspuns si sursele.
 *
 * Caseta de răspuns, punctele cheie, cuprinsul, linia de prospețime și lista
 * de surse. Toate folosesc variabilele definite în osite-palette.css.
 */

/* --------------------------------------------------------------
   1. Blocul de deschidere
   -------------------------------------------------------------- */

.osite-brief {
	display: grid;
	gap: 1.5rem;
	margin: 0 0 2.25rem;
	padding: 1.5rem clamp(1.1rem, 3vw, 1.75rem);
	background-color: var(--osite-paper-sunken, #f4f4f2);
	border-inline-start: 3px solid var(--osite-accent, #2d5b8a);
	border-radius: 0 3px 3px 0;
}

@media (min-width: 860px) {
	/* Cuprinsul trece în dreapta când există și răspuns, și cuprins. */
	.osite-brief:has(.osite-brief__answer):has(.osite-brief__toc) {
		grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
		column-gap: clamp(1.75rem, 4vw, 3rem);
	}

	.osite-brief:has(.osite-brief__answer):has(.osite-brief__toc) .osite-brief__toc {
		grid-row: 1 / span 2;
		grid-column: 2;
		border-inline-start: 1px solid var(--osite-rule-strong, #d0d3d6);
		padding-inline-start: clamp(1.25rem, 3vw, 2rem);
	}
}

.osite-brief__label {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--osite-ink-muted, #6b7076);
	margin: 0 0 0.6rem;
	line-height: 1.3;
}

/*
 * Când eticheta este chiar întrebarea articolului, o tratăm ca text, nu ca
 * micro-titlu. O frază întreagă în majuscule mici se citește greu.
 */
.osite-brief__label--question {
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-transform: none;
	color: var(--osite-ink, #1f2328);
	margin-bottom: 0.5rem;
	line-height: 1.35;
	max-width: 46ch;
}

/*
 * Răspunsul e setat mai mare decât textul curent. Un cititor grăbit trebuie
 * să îl vadă fără să caute, iar mărimea marchează că e concluzia, nu o
 * introducere.
 */
.osite-brief__text {
	font-size: clamp(1.02rem, 1.5vw, 1.18rem);
	line-height: 1.6;
	color: var(--osite-ink, #1f2328);
	margin: 0;
	max-width: 62ch;
	text-wrap: pretty;
}

.osite-brief__points ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

.osite-brief__points li {
	position: relative;
	padding-inline-start: 1.15rem;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--osite-ink-soft, #45494e);
}

.osite-brief__points li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0.62em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--osite-accent, #2d5b8a);
}

/* --------------------------------------------------------------
   2. Cuprins
   -------------------------------------------------------------- */

.osite-brief__toc ol {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: osite-toc;
	display: grid;
	gap: 0.32rem;
}

.osite-toc__item {
	font-size: 0.9rem;
	line-height: 1.42;
}

.osite-toc__item--h3 {
	padding-inline-start: 1rem;
	font-size: 0.85rem;
}

.osite-brief__toc a {
	color: var(--osite-ink-soft, #45494e);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 160ms ease, border-color 160ms ease;
}

.osite-brief__toc a:hover,
.osite-brief__toc a:focus-visible {
	color: var(--osite-accent, #2d5b8a);
	border-bottom-color: currentColor;
}

/*
 * Ancora nu trebuie să ducă subtitlul exact sub bara fixă de navigare.
 * Valoarea acoperă bara plus un pic de aer.
 */
.entry-content :is(h2, h3)[id] {
	scroll-margin-top: 84px;
}

/* --------------------------------------------------------------
   3. Prospețime
   -------------------------------------------------------------- */

.osite-freshness {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.1rem;
	margin: 0 0 1.5rem;
	font-size: 0.8125rem;
	color: var(--osite-ink-muted, #6b7076);
	font-variant-numeric: tabular-nums;
}

.osite-freshness__item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.osite-freshness__item + .osite-freshness__item::before {
	content: "";
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.6;
	margin-inline-end: 0.35rem;
}

/* --------------------------------------------------------------
   4. Surse
   -------------------------------------------------------------- */

.osite-sources {
	margin: 2.5rem 0 0;
	padding-top: 1.4rem;
	border-top: 2px solid var(--osite-rule-strong, #d0d3d6);
}

.osite-sources__title {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--osite-ink-muted, #6b7076);
	margin: 0 0 0.75rem;
}

.osite-sources__list {
	margin: 0;
	padding-inline-start: 1.3rem;
	display: grid;
	gap: 0.42rem;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--osite-ink-soft, #45494e);
}

.osite-sources__list a {
	color: var(--osite-ink-soft, #45494e);
	text-decoration: underline;
	text-decoration-color: var(--osite-rule-strong, #d0d3d6);
	text-underline-offset: 3px;
	overflow-wrap: anywhere;
}

.osite-sources__list a:hover,
.osite-sources__list a:focus-visible {
	color: var(--osite-accent, #2d5b8a);
	text-decoration-color: currentColor;
}

/* --------------------------------------------------------------
   5. Lizibilitatea corpului de articol
   -------------------------------------------------------------- */

.entry-content p {
	text-wrap: pretty;
}

.entry-content > p,
.entry-content > ul,
.entry-content > ol {
	max-width: 68ch;
}

.entry-content h2 {
	margin-top: 2.4em;
	letter-spacing: -0.018em;
}

.entry-content h3 {
	margin-top: 1.9em;
	letter-spacing: -0.012em;
}

/* --------------------------------------------------------------
   6. Preferințe și tipar
   -------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.osite-brief__toc a {
		transition: none;
	}

	html {
		scroll-behavior: auto;
	}
}

@media print {
	.osite-brief__toc {
		display: none;
	}

	.osite-brief {
		border: 1px solid #999;
		background: none;
	}

	.osite-sources__list a::after {
		content: " (" attr(href) ")";
		font-size: 0.85em;
		word-break: break-all;
	}
}
