/*
 * Brandingul KidsLife pentru partea publică, după Figma „Kids-like website design”
 * (frame-ul 189:3882; docs/superpowers/specs/2026-11-01-blog-layout-figma-design.md).
 *
 * Fonturile sunt găzduite pe site (licență SIL OFL 1.1, în assets/fonts/):
 * fără fonturi, imagini sau scripturi externe (spec 003 FR-026, research R9/R11).
 * Contrast pentru text:
 *   --ink    #232122 pe --fundal ≈ 15:1
 *   --indigo #4618AF pe alb ≈ 10:1; --liliac pe --indigo ≈ 8:1
 *   --muted  #6a5a8a pe alb ≈ 6.1:1, pe --fundal ≈ 5.7:1 (AA)
 *   --violet-curios #A94DF8 pe alb ≈ 4.1:1: sub AA pentru text mic; în header
 *           marchează doar linkul curent (cum cere Figma), dublat de aria-current
 */
@font-face { font-family: "Parkinsans"; font-style: normal; font-weight: 500; font-display: swap;
    src: url("../fonts/parkinsans-latin-ext-500-normal-NTYPDOC.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Parkinsans"; font-style: normal; font-weight: 500; font-display: swap;
    src: url("../fonts/parkinsans-latin-500-normal-bng8Boj.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: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap;
    src: url("../fonts/montserrat-latin-ext-500-normal-KnXLd3M.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap;
    src: url("../fonts/montserrat-latin-500-normal-D-3FhVU.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: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap;
    src: url("../fonts/montserrat-latin-ext-700-normal-ZYshf6k.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap;
    src: url("../fonts/montserrat-latin-700-normal-CWLvpJ0.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 {
    /* Culorile din Figma (variabilele fișierului de design). */
    --violet-curios: #a94df8;
    --liliac: #f1e1fe;
    --fundal: #fbf5ff;
    --indigo: #4618af;
    --cer-noaptea: #0f0525;
    --pruna: #231034;
    --lavanda: #e0d8f2;
    --vata: #ff77b5;
    --indigo-light: #baa8e1;
    --indigo-light-2: #9378d1;
    --grey-1: #232122;

    /* Numele folosite de restul foilor de stil, mapate pe culorile din Figma. */
    --bg1: var(--fundal);
    --bg2: #fff;
    --deep: var(--indigo);
    --violet: var(--violet-curios);
    --ink: var(--grey-1);
    --muted: #6a5a8a;
    --badge: var(--liliac);
    --line: var(--lavanda);
    --shadow: 0 20px 50px rgba(70, 24, 175, .10);
    --shadow-sm: 0 8px 24px rgba(70, 24, 175, .08);
    --radius: 35px;
    --radius-sm: 18px;

    --font-heading: "Parkinsans", "Trebuchet MS", system-ui, sans-serif;
    --font-body: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font: var(--font-body);
    --wrap: 1296px;
    --prose: 967px;
    --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.45;
    color: var(--ink);
    background: var(--fundal);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 500; }
strong, b { font-weight: 700; }

a { color: var(--deep); text-underline-offset: .18em; }
a:hover { color: var(--violet); }

:focus-visible {
    outline: 3px solid var(--violet);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: var(--gutter);
    top: -100px;
    z-index: 10;
    padding: 10px 16px;
    background: var(--deep);
    color: #fff;
    border-radius: 999px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---- Header & footer ---------------------------------------------------- */

/* Figma 189:3883: pastilă albă, logo în stânga, meniul centrat. */
.site-header {
    width: 100%;
    max-width: calc(var(--wrap) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 18px var(--gutter) 0;
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 16px 36px;
    min-height: 70px;
    padding: 14px 18px 14px 36px;
    background: #fff;
    border-radius: 70px;
}

.site-logo { flex: none; display: block; }
.site-logo img { width: 141px; height: auto; }

.site-nav {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 36px;
    /* Echilibrează logo-ul, ca meniul să fie centrat pe pastilă (Figma). */
    margin-right: 141px;
}
.site-nav a {
    color: #000;
    font-size: .875rem;
    line-height: 1.45;
    text-decoration: none;
}
.site-nav a:hover { color: var(--indigo); text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--violet-curios); font-weight: 700; }

/* Mobilul nu e proiectat încă: meniul trece sub logo, fără scroll orizontal. */
@media (max-width: 899px) {
    .site-header__inner { flex-direction: column; border-radius: 35px; padding: 14px 18px; }
    .site-nav { margin-right: 0; gap: 8px 24px; }
}

.site-main {
    flex: 1;
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 32px var(--gutter) 56px;
}

/* Figma 189:4220: blocul mov, cu contact + newsletter, logo + linkuri, rândul legal. */
.site-footer {
    width: 100%;
    max-width: calc(var(--wrap) + 2 * var(--gutter));
    margin: 0 auto;
    margin-top: 72px;
    padding: 0 var(--gutter) 18px;
}

.site-footer__inner {
    padding: 72px 36px 36px;
    border-radius: var(--radius);
    background: var(--indigo);
    color: #fff;
}

.site-footer a { color: inherit; }
.site-footer a:hover { color: var(--liliac); }
.site-footer h2 { margin: 0; }

.site-footer__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 36px;
    padding-bottom: 72px;
}

.site-footer__contact { flex: 0 1 367px; color: var(--liliac); }
.site-footer__contact-title { font-size: 1.75rem; line-height: 1.2857; color: var(--liliac); }
.site-footer__contact-title span { display: block; font-family: var(--font-body); font-size: 1.125rem; line-height: 1.45; }
.site-footer__contact-list { display: grid; gap: 18px; margin: 18px 0 0; padding: 0; list-style: none; }
.site-footer__contact-list li { display: flex; gap: 9px; align-items: flex-start; }
.site-footer__contact-list img { flex: none; }

.site-footer__newsletter { flex: 0 1 494px; }

.site-footer__middle {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 36px;
    padding-bottom: 54px;
    border-bottom: 1px solid var(--indigo-light-2);
}
.site-footer__brand img { width: 219px; height: auto; }
.site-footer__brand p { max-width: 220px; margin: 18px 0 0; font-family: var(--font-heading); font-size: 1.3125rem; line-height: 1.4286; }

.site-footer__column h2 { font-family: var(--font-body); font-weight: 700; font-size: 1.125rem; line-height: 1.45; }
.site-footer__links { display: grid; gap: 18px; margin: 18px 0 0; padding: 0; list-style: none; }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 0;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}
.site-footer__legal li { padding: 0 18px; }
.site-footer__legal li + li { border-left: 1px solid #fff; }
.site-footer__legal [hidden] { display: none; }
.site-footer .consent-settings { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.site-footer .consent-settings:hover { color: var(--liliac); text-decoration: underline; }

@media (max-width: 899px) {
    .site-footer__inner { padding: 36px 18px 24px; }
    .site-footer__top { padding-bottom: 36px; }
}

/* ---- Componente comune -------------------------------------------------- */

.card {
    background: var(--bg2);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Eticheta din Figma (189:4134): pastilă cu contur indigo. */
.badge {
    display: inline-block;
    padding: 5px 18px;
    border: 1px solid var(--indigo);
    border-radius: 54px;
    background: transparent;
    color: var(--indigo);
    font-size: .875rem;
    line-height: 1.45;
    text-decoration: none;
}
a.badge:hover { background: var(--indigo); color: #fff; }

/* Butonul mic din Figma: pastilă lila cu săgeată într-un cerc. */
.pill-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 6px 6px 28px;
    border-radius: 108px;
    background: var(--liliac);
    color: var(--indigo);
    font-size: 1rem;
    line-height: 1.45;
    text-decoration: none;
}
.pill-button:hover { background: var(--lavanda); color: var(--indigo); }
.pill-button__arrow { display: inline-flex; padding: 10px; border-radius: 67px; background: var(--fundal); }
.pill-button--sm { gap: 10px; padding: 4px 4px 4px 18px; font-size: .75rem; }
.pill-button--sm .pill-button__arrow { padding: 9px 9.5px; }

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    font-size: .9rem;
}
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--violet); }
.breadcrumb [aria-current] { color: var(--ink); }

.meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    color: var(--muted);
    font-size: .92rem;
}

/* ---- Intro (pagini de listă) -------------------------------------------- */

.hero {
    position: relative;
    padding: 36px 28px;
    margin-bottom: 32px;
    text-align: center;
    overflow: hidden;
}
.hero h1 {
    margin: 12px 0 8px;
    font-size: clamp(1.8rem, 5.5vw, 2.6rem);
    line-height: 1.15;
    color: var(--deep);
}
.hero p { max-width: 60ch; margin: 0 auto; color: var(--muted); }
.hero::before, .hero::after {
    content: "✦";
    position: absolute;
    color: var(--violet);
    opacity: .45;
    font-size: 1.6rem;
}
.hero::before { top: 18px; left: 7%; }
.hero::after { bottom: 16px; right: 8%; content: "✧"; }

.topics {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}
.topics a {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--bg2);
    box-shadow: var(--shadow-sm);
    font-weight: 700;
    font-size: .92rem;
    text-decoration: none;
}
.topics a[aria-current="page"] { background: var(--deep); color: #fff; }

/* ---- Grila de articole --------------------------------------------------- */

.post-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(90, 40, 160, .2); }
.post-card__media { aspect-ratio: 16 / 10; background: var(--badge); }
/* Fără copertă: casa din logo pe fundal lila, în loc de un dreptunghi gol. */
.post-card__media--empty { background: var(--badge) url("../images/favicon-NSgLNGK.svg") center / 72px no-repeat; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.post-card__title { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.post-card__title a { color: var(--deep); text-decoration: none; }
/* Tot cardul e clicabil, dar linkul rămâne unul singur (titlul). */
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card__excerpt { margin: 0; color: var(--muted); }
.post-card .badge { position: relative; z-index: 1; align-self: flex-start; }
.post-card .meta { margin-top: auto; }

.empty { padding: 32px 24px; text-align: center; color: var(--muted); }

/* ---- Paginare ------------------------------------------------------------ */

.pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--bg2);
    box-shadow: var(--shadow-sm);
    font-weight: 700;
    text-decoration: none;
}
.pagination [aria-current="page"] { background: var(--deep); color: #fff; }

/* ---- Articol (Figma 189:3882) ------------------------------------------ */

.article { max-width: var(--wrap); margin: 0 auto; }

.article__header { max-width: 639px; margin: 0 auto; padding: 86px 0 0; text-align: center; }
.article__header h1 {
    margin: 18px 0 36px;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    line-height: 1.2222;
    color: var(--indigo);
}

.byline {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: .75rem;
    line-height: 1.45;
    color: var(--grey-1);
}
.byline a { color: inherit; text-decoration: none; }
.byline a:hover { text-decoration: underline; }

.avatar {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}
.avatar--initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--violet), var(--deep));
    color: #fff;
    font-weight: 700;
}
.avatar--sm { width: 36px; height: 36px; font-size: .8rem; }
.avatar--md { width: 72px; height: 72px; font-size: 1.5rem; }
.avatar--author { width: 88px; height: 88px; font-size: 1.8rem; }
.avatar--lg { width: 120px; height: 120px; font-size: 2.4rem; }

.article__cover { margin: 72px 0 0; }
.article__cover img { width: 100%; border-radius: 36px; aspect-ratio: auto; }

.article__layout {
    display: grid;
    grid-template-columns: 311px minmax(0, 967px);
    gap: 18px;
    align-items: start;
    margin-top: 36px;
}
.article__layout--single { grid-template-columns: minmax(0, 967px); justify-content: center; }

/* Cuprinsul (189:3941): rămâne vizibil la derulare. */
.toc {
    position: sticky;
    top: 18px;
    padding: 24px 18px 36px;
    border-radius: 36px;
    background: #fff;
}
.toc h2 { margin: 0 0 18px; font-size: 1.3125rem; line-height: 1.4286; color: var(--indigo); }
.toc ul { margin: 0; padding: 0; list-style: none; }
.toc a {
    display: block;
    padding: 8px 0 8px 9px;
    border-left: 2px solid var(--liliac);
    color: var(--cer-noaptea);
    font-size: 1.125rem;
    line-height: 1.45;
    text-decoration: none;
}
.toc a:hover, .toc a:focus-visible { border-left-color: var(--violet-curios); color: var(--indigo); }

.article__main { min-width: 0; }

/* „Pe scurt” (189:3952): rezumatul articolului. */
.summary { margin: 0 0 36px; padding: 36px; border-radius: 36px; background: var(--liliac); }
.summary h2 { margin: 0 0 18px; font-size: 1.3125rem; line-height: 1.4286; color: var(--indigo); }
.summary p { margin: 0; color: var(--cer-noaptea); font-size: 1.125rem; line-height: 1.45; }

/* Paginile statice (spec 004): același card și aceeași tipografie ca articolul. */
.page { max-width: 820px; margin: 0 auto; padding: 28px 28px 32px; }
.page__title {
    max-width: var(--prose);
    margin: 0 auto 18px;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    line-height: 1.18;
    color: var(--deep);
}

/* Conținutul din editor: doar H2–H4, paragrafe, liste, citate, tabele, imagini. */
.prose { max-width: var(--prose); margin: 0 auto; color: var(--cer-noaptea); font-size: 1.125rem; line-height: 1.45; }
.prose > * + * { margin-top: 18px; }
.prose h2, .prose h3, .prose h4 { color: var(--indigo); margin: 36px 0 18px; scroll-margin-top: 18px; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 1.75rem); line-height: 1.2857; }
.prose h3 { font-size: 1.3125rem; line-height: 1.4286; }
.prose h4 { font-size: 1.125rem; line-height: 1.45; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose ul { padding-left: 27px; }
.prose li + li { margin-top: 9px; }
/* Lista numerotată (189:3963): numărul într-un cerc violet. */
.prose ol { padding: 0; list-style: none; counter-reset: pas; }
.prose ol > li {
    position: relative;
    min-height: 46px;
    padding-left: 64px;
    counter-increment: pas;
}
.prose ol > li + li { margin-top: 36px; }
.prose ol > li::before {
    content: counter(pas);
    position: absolute;
    top: 0;
    left: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 52px;
    background: var(--violet-curios);
    color: var(--fundal);
}
.prose ol > li > :first-child { margin-top: 0; }
/* Citatul (189:4024): bară violet, textul ca titlu; ultimul paragraf e autorul. */
.prose blockquote {
    margin: 36px 0;
    padding: 4px 0 4px 18px;
    border-left: 4px solid var(--violet-curios);
}
.prose blockquote p { margin: 0; font-family: var(--font-heading); font-size: 1.75rem; line-height: 1.2857; color: var(--indigo); }
.prose blockquote p + p:last-child { margin-top: 9px; font-family: var(--font-body); font-size: 1.125rem; line-height: 1.45; color: var(--cer-noaptea); }
.prose picture, .prose img { margin: 36px auto; border-radius: 36px; }
.prose hr { border: 0; border-top: 1px solid var(--lavanda); margin: 36px 0; }
/* Un tabel lat derulează singur, nu toată pagina (fără scroll orizontal la 320 px). */
.prose .table-scroll { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--badge); color: var(--deep); }


/* ---- Autor (189:4037, 189:4027, 189:4040) ------------------------------- */

.author-box { margin: 36px 0 0; }
.author-box__bio { margin: 0; padding-bottom: 36px; border-bottom: 1px solid var(--lavanda); color: var(--cer-noaptea); font-size: 1.125rem; line-height: 1.45; }
.author-box__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 36px; }
.author-box__who { display: flex; align-items: center; gap: 9px; }
.author-box h2 { margin: 0; font-size: 1.3125rem; line-height: 1.4286; }
.author-box h2 a { color: var(--indigo); text-decoration: none; }
.author-box__meta { margin: 4px 0 0; color: var(--grey-1); font-size: .75rem; line-height: 1.45; }

.profile { text-align: center; }
.profile .avatar--lg { margin: 0 auto 12px; }
.profile__job { margin: 0; color: var(--muted); font-weight: 700; }
.profile__bio { max-width: var(--prose); margin: 18px auto 0; text-align: left; color: var(--ink); }
.profile__links { display: flex; justify-content: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }

.section-title { margin: 36px 0 18px; text-align: center; color: var(--deep); }

/* ---- Din aceeași temă (189:4184, 189:4114): carusel CSS, fără JS -------- */

.related { max-width: var(--wrap); margin: 104px auto 0; }
.related > h2 { margin: 0 0 36px; font-size: clamp(1.75rem, 4vw, 2.25rem); line-height: 1.2222; color: var(--indigo); }
.related__list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(420px, 85%);
    gap: 18px;
    margin: 0;
    padding: 0 0 18px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
}
.related__list > li { scroll-snap-align: start; }

.post-card--compact { border-radius: 18px; box-shadow: none; }
.post-card--compact .post-card__media { aspect-ratio: 420 / 220; }
.post-card--compact .post-card__body { gap: 9px; padding: 18px; }
.post-card--compact .badge { text-transform: uppercase; }
.post-card--compact .post-card__title { font-size: 1.3125rem; line-height: 1.4286; }
.post-card--compact .post-card__title a { color: var(--pruna); }
.post-card--compact .pill-button { align-self: flex-start; margin-top: auto; }

/* ---- Previzualizare (doar admin) ------------------------------------------ */

.preview-banner {
    max-width: var(--wrap);
    margin: 16px auto 0;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    background: #fff4d6;
    color: #5c4300;
    font-weight: 700;
    text-align: center;
}

/* ---- Erori --------------------------------------------------------------- */

.error-page { max-width: 560px; margin: 24px auto; padding: 40px 28px; text-align: center; }
.error-page h1 { color: var(--deep); font-size: clamp(1.6rem, 5vw, 2.1rem); margin: 12px 0; }
.error-page p { color: var(--muted); }
.button {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 24px;
    border-radius: 999px;
    background: var(--deep);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}
.button:hover { background: var(--violet); color: #fff; }

/* Mobilul nu e proiectat încă: o coloană, cuprinsul deasupra conținutului. */
@media (max-width: 899px) {
    .article__header { padding-top: 36px; }
    .article__cover { margin-top: 36px; }
    .article__layout { grid-template-columns: minmax(0, 1fr); }
    .toc { position: static; }
}

/* ---- Mobil îngust -------------------------------------------------------- */

@media (max-width: 480px) {
    .site-main { padding-top: 20px; }
    .hero { padding: 28px 18px; }
    .summary { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
