/* =============================================================
   DEVOS REVISTA — hero.css
   Deschiderea rubricilor, etichetelor, autorilor, căutării și
   paginilor — pe alb, ca o pagină de revistă: titlu mare navy în
   stânga, „cel mai citit” din rubrică în dreapta, ca fotografie
   încadrată cu legendă.
   ============================================================= */

.dr-hero {
	padding-block: clamp(36px, 5vw, 72px) clamp(32px, 4.5vw, 60px);
	background: var(--paper);
	color: var(--ink);
	border-bottom: 1px solid var(--rule);
}

.dr-hero .dr-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	column-gap: clamp(32px, 5vw, 80px);
}
.dr-hero .dr-wrap > * { grid-column: 1; min-width: 0; }
@media (min-width: 900px) {
	.dr-hero.has-media .dr-wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
	.dr-hero.has-media .dr-hero__media { grid-column: 2; grid-row: 1 / span 12; }
}
.dr-hero .dr-wrap > *:not(.dr-hero__media) { max-width: 760px; }

/* Firul de navigare */
.dr-hero__crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
	font: 700 .68rem/1.2 var(--f-brand);
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--muted);
}
.dr-hero__crumbs a { color: var(--olive-ink); }
.dr-hero__crumbs a:hover { color: var(--navy); }
.dr-hero__crumbs span[aria-hidden] { color: var(--rule-2); }

/* Eticheta „Rubrica”: firul de navigare o spune deja */
.dr-hero .dr-hero__crumbs ~ .dr-eyebrow,
.dr-hero .dr-archive-head__author .dr-eyebrow { display: none; }

.dr-hero .dr-archive-head__title {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	font: 800 clamp(2.2rem, 5vw, 4rem)/1.03 var(--f-brand);
	letter-spacing: -.04em;
	color: var(--navy);
	text-wrap: balance;
}
/* Bara în gradient — ecoul barei din marcă */
.dr-hero .dr-archive-head__title::before {
	content: '';
	flex: none;
	width: 6px;
	height: .82em;
	margin-top: .14em;
	background: var(--grad-v);
}
.dr-hero .dr-archive-head__author .dr-archive-head__title::before { display: none; }

.dr-hero .dr-archive-head__desc,
.dr-hero .dr-archive-head__role {
	margin-top: 16px;
	font: 400 clamp(1.02rem, 1.3vw, 1.15rem)/1.6 var(--f-ui);
	color: var(--ink-2);
}
.dr-hero .dr-archive-head__desc p { margin: 0; }

.dr-hero__count {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 20px 0 0;
	font: 700 .7rem/1 var(--f-brand);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--muted);
}
.dr-hero__count::before { content: ''; width: 18px; height: 2px; background: var(--grad); }

.dr-hero .dr-subcats { margin-top: 22px; }

/* „Cel mai citit” din rubrică: fotografie încadrată + legendă */
.dr-hero__media { display: block; align-self: center; margin-top: 28px; }
@media (min-width: 900px) { .dr-hero__media { margin-top: 0; } }
.dr-hero__img {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--paper-2);
}
.dr-hero__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .6, .2, 1); }
a.dr-hero__media:hover .dr-hero__img img { transform: scale(1.03); }
.dr-hero__caption {
	display: block;
	margin-top: 12px;
	padding-left: 12px;
	border-left: 3px solid var(--lime);
	font: 700 .95rem/1.35 var(--f-brand);
	letter-spacing: -.01em;
	color: var(--navy);
	transition: color var(--ease);
}
.dr-hero__caption em {
	display: block;
	margin-bottom: 4px;
	font: 700 .62rem/1 var(--f-brand);
	font-style: normal;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--olive-ink);
}
a.dr-hero__media:hover .dr-hero__caption { color: var(--olive-ink); }

/* Autor */
.dr-hero .dr-archive-head__author .dr-avatar { box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--lime); }

/* Pagini și listă: spațiu după deschidere */
.dr-hero--page + .dr-wrap .dr-prose--page { margin-top: clamp(24px, 3vw, 36px); }
.dr-hero + .dr-archive { padding-top: clamp(32px, 4vw, 52px); }

/* Textul — un bloc, centrat vertical față de fotografie */
.dr-hero .dr-wrap > .dr-hero__text { max-width: 760px; }
@media (min-width: 900px) {
	.dr-hero.has-media .dr-wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; }
	.dr-hero.has-media .dr-hero__media { grid-column: 2; grid-row: 1; }
	.dr-hero.has-media .dr-hero__text { grid-column: 1; grid-row: 1; }
}
.dr-hero__img { aspect-ratio: 16 / 10; }

/* =============================================================
   VARIANTA COMPACTĂ — esența sunt articolele
   ============================================================= */
.dr-hero { padding-block: clamp(22px, 2.6vw, 34px) clamp(18px, 2.2vw, 28px); }
.dr-hero .dr-wrap { display: block; }
.dr-hero__media { display: none; }

.dr-hero__text {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "crumbs crumbs" "title count" "desc desc" "subs subs";
	align-items: end;
	column-gap: 24px;
	max-width: none !important;
}
.dr-hero__crumbs { grid-area: crumbs; margin-bottom: 10px; }
.dr-hero .dr-archive-head__title { grid-area: title; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.08; gap: 14px; }
.dr-hero .dr-archive-head__title::before { width: 5px; }
.dr-hero__count { grid-area: count; margin: 0 0 .45em; white-space: nowrap; }
.dr-hero .dr-archive-head__desc { grid-area: desc; margin-top: 8px; max-width: 760px; font-size: 1rem; }
.dr-hero .dr-subcats { grid-area: subs; margin-top: 14px; }

/* Autor: avatar mic, pe un rând cu numele */
.dr-hero .dr-archive-head__author { gap: 18px; }
.dr-hero .dr-archive-head__author .dr-avatar { width: 64px !important; height: 64px !important; font-size: 22px !important; }
.dr-hero .dr-archive-head__author .dr-archive-head__title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.dr-hero .dr-archive-head__author .dr-archive-head__desc { font-size: .95rem; }

/* Căutare: câmpul compact */
.dr-hero .dr-archive-head__search { margin-top: 14px; max-width: 640px; }
.dr-hero .dr-archive-head__count { margin-top: 6px; }

.dr-hero--page { padding-block: clamp(22px, 2.6vw, 34px) clamp(18px, 2.2vw, 28px); }
.dr-hero + .dr-archive { padding-top: clamp(24px, 3vw, 36px); }
@media (max-width: 600px) {
	.dr-hero__text { grid-template-columns: 1fr; grid-template-areas: "crumbs" "title" "count" "desc" "subs"; }
	.dr-hero__count { margin-top: 10px; }
}
