/*
 * The blog (/blog/) and the media page (/media/) of ancaienin.ro, 02.12.2026 (Adi).
 * Plain CSS, loaded after site.css only on these pages: no Tailwind classes, so no compile step.
 * Brand (skill brand-anca-ienin): white, sand #E3D9CC, light blue #87B0E8, navy #263354; Martel titles, Open Sans text.
 * The article body is HTML from blog_articole.continut and uses only the .bl-* components below.
 */
:root {
  --bl-navy: #263354; --bl-blue: #87b0e8; --bl-sand: #e3d9cc; --bl-cream: #f7f3ef; --bl-paper: #fbf9f6;
  --bl-text: rgba(38, 51, 84, .86); --bl-muted: rgba(38, 51, 84, .64); --bl-line: rgba(38, 51, 84, .12);
}
.bl-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.bl-narrow { max-width: 760px; margin: 0 auto; }
.bl-serif { font-family: Martel, 'Times New Roman', serif; }

/* breadcrumb, kicker, chips */
.bl-crumbs { font-size: .85rem; color: var(--bl-muted); margin: 0 0 18px; }
.bl-crumbs a { color: var(--bl-muted); text-decoration: none; }
.bl-crumbs a:hover { color: var(--bl-navy); text-decoration: underline; }
.bl-crumbs span { margin: 0 6px; opacity: .6; }
.bl-chip { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--bl-navy); background: rgba(135, 176, 232, .22); padding: 5px 12px; border-radius: 100px; text-decoration: none; }
.bl-chip:hover { background: rgba(135, 176, 232, .38); }

/* article header */
.bl-head { background: linear-gradient(160deg, rgba(227, 217, 204, .45), #fff 55%, rgba(135, 176, 232, .12)); padding: 40px 0 36px; }
.bl-head h1 { font-family: Martel, serif; font-weight: 800; color: var(--bl-navy); font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.22; margin: 14px 0 16px; }
.bl-lead { font-size: 1.15rem; line-height: 1.7; color: var(--bl-text); margin: 0 0 22px; }
.bl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: .88rem; color: var(--bl-muted); }
.bl-meta img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.bl-meta b { color: var(--bl-navy); }
.bl-head .bl-narrow { max-width: 1020px; }
.bl-head h1, .bl-head .bl-lead { max-width: 760px; }
.bl-cover { margin: 28px auto 0; max-width: 960px; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bl-cream); }
.bl-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* layout: content + table of contents */
.bl-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 40px 0 24px; }
@media (min-width: 1024px) { .bl-body { grid-template-columns: minmax(0, 720px) 260px; justify-content: center; } }
.bl-toc { align-self: start; font-size: .9rem; border: 1px solid var(--bl-line); border-radius: 12px; padding: 18px 20px; background: #fff; }
@media (min-width: 1024px) { .bl-toc { position: sticky; top: 104px; order: 2; } }
.bl-toc p { font-weight: 700; color: var(--bl-navy); margin: 0 0 10px; font-family: Martel, serif; }
.bl-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.bl-toc li { counter-increment: t; margin: 7px 0; line-height: 1.4; }
.bl-toc li::before { content: counter(t) '.'; color: var(--bl-blue); font-weight: 700; margin-right: 6px; }
.bl-toc a { color: var(--bl-text); text-decoration: none; }
.bl-toc a:hover { color: var(--bl-navy); text-decoration: underline; }

/* the article text */
.bl-art { color: var(--bl-text); font-size: 1.06rem; line-height: 1.8; }
.bl-art > *:first-child { margin-top: 0; }
.bl-art p { margin: 0 0 1.15rem; }
.bl-art h2 { font-family: Martel, serif; font-weight: 800; color: var(--bl-navy); font-size: 1.55rem; line-height: 1.35;
  margin: 2.6rem 0 1rem; scroll-margin-top: 100px; }
.bl-art h2::after { content: ''; display: block; width: 44px; height: 6px; margin-top: 10px; border-radius: 6px;
  background: radial-gradient(circle at 3px 3px, var(--bl-blue) 3px, transparent 3.5px) 0 0 / 12px 6px repeat-x; }
.bl-art h3 { font-family: Martel, serif; font-weight: 700; color: var(--bl-navy); font-size: 1.2rem; margin: 1.8rem 0 .7rem; }
.bl-art ul, .bl-art ol { margin: 0 0 1.2rem; padding-left: 1.4rem; }
.bl-art ul { list-style: none; padding-left: 0; }
.bl-art ul > li { position: relative; padding-left: 1.5rem; margin: .45rem 0; }
.bl-art ul > li::before { content: ''; position: absolute; left: 2px; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--bl-blue); }
.bl-art ol { list-style: decimal; }
.bl-art ol > li { margin: .45rem 0; padding-left: .3rem; }
.bl-art a { color: var(--bl-navy); text-decoration: underline; text-decoration-color: var(--bl-blue); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.bl-art strong { color: var(--bl-navy); }
.bl-art .bl-marker { background: linear-gradient(transparent 55%, rgba(135, 176, 232, .45) 55%); padding: 0 2px; }
.bl-art blockquote, .bl-quote { font-family: Martel, serif; font-size: 1.2rem; line-height: 1.6; color: var(--bl-navy);
  border-left: 4px solid var(--bl-blue); padding: 6px 0 6px 22px; margin: 2rem 0; font-style: normal; }

/* "Pe scurt" box */
.bl-short { background: var(--bl-cream); border-radius: 16px; padding: 22px 26px; margin: 0 0 2rem; }
.bl-short > p:first-child { font-family: Martel, serif; font-weight: 800; color: var(--bl-navy); margin: 0 0 8px; font-size: 1.05rem; }
.bl-short ul { margin: 0; }

/* callouts: .bl-note (light blue), .bl-medic (when to see a doctor), .bl-practica (how I work, Anca's voice) */
.bl-note, .bl-medic, .bl-practica { border-radius: 14px; padding: 20px 24px; margin: 1.8rem 0; }
.bl-note { background: rgba(135, 176, 232, .14); border: 1px solid rgba(135, 176, 232, .45); }
.bl-medic { background: #fff; border: 2px solid var(--bl-navy); }
.bl-practica { background: linear-gradient(135deg, rgba(227, 217, 204, .55), rgba(247, 243, 239, .9)); border-left: 5px solid var(--bl-sand); }
.bl-note > p:first-child, .bl-medic > p:first-child, .bl-practica > p:first-child { font-weight: 700; color: var(--bl-navy); margin-bottom: .5rem; }
.bl-note > :last-child, .bl-medic > :last-child, .bl-practica > :last-child { margin-bottom: 0; }

/* infographics: <figure class="bl-ig"><svg …/><figcaption>…</figcaption></figure> — always on a light card, even in dark mode */
.bl-ig { margin: 2.2rem 0; background: var(--bl-paper); border: 1px solid var(--bl-line); border-radius: 16px; padding: 18px; }
.bl-ig svg { display: block; width: 100%; height: auto; max-width: 100%; }
.bl-ig figcaption { font-size: .85rem; color: var(--bl-muted); text-align: center; margin-top: 10px; line-height: 1.5; }

/* steps: <ol class="bl-steps"><li><b>Titlu</b> text</li>…</ol> */
.bl-art ol.bl-steps { list-style: none; padding: 0; counter-reset: s; margin: 1.6rem 0 2rem; }
.bl-art ol.bl-steps > li { counter-increment: s; position: relative; padding: 4px 0 18px 64px; margin: 0; }
.bl-art ol.bl-steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--bl-navy); color: #fff; font-family: Martel, serif; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.bl-art ol.bl-steps > li::after { content: ''; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 2px; background: var(--bl-sand); }
.bl-art ol.bl-steps > li:last-child::after { display: none; }
.bl-art ol.bl-steps > li > b { display: block; color: var(--bl-navy); font-family: Martel, serif; font-size: 1.08rem; margin-bottom: 2px; }

/* cards: <div class="bl-cards"><div><b>Titlu</b><p>…</p></div>…</div> */
.bl-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 1.6rem 0 2rem; }
.bl-cards > div { background: #fff; border: 1px solid var(--bl-line); border-radius: 14px; padding: 18px; }
.bl-cards > div > b { display: block; color: var(--bl-navy); font-family: Martel, serif; margin-bottom: 6px; line-height: 1.35; }
.bl-cards > div > p { margin: 0; font-size: .95rem; line-height: 1.6; }

/* two columns: <div class="bl-versus"><div><b>…</b><ul>…</ul></div><div>…</div></div> */
.bl-versus { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 1.6rem 0 2rem; }
@media (min-width: 640px) { .bl-versus { grid-template-columns: 1fr 1fr; } }
.bl-versus > div { border-radius: 14px; padding: 18px 20px; background: var(--bl-cream); }
.bl-versus > div:last-child { background: rgba(135, 176, 232, .16); }
.bl-versus > div > b { display: block; color: var(--bl-navy); font-family: Martel, serif; margin-bottom: 6px; }
.bl-versus ul { margin: 0; }

/* table */
.bl-table { width: 100%; border-collapse: collapse; margin: 1.6rem 0 2rem; font-size: .95rem; }
.bl-table th { text-align: left; background: var(--bl-navy); color: #fff; padding: 10px 12px; font-weight: 600; }
.bl-table td { padding: 10px 12px; border-bottom: 1px solid var(--bl-line); vertical-align: top; }
.bl-table tr:nth-child(even) td { background: var(--bl-paper); }
.bl-tablewrap { overflow-x: auto; }

/* FAQ: <div class="bl-faq"><details><summary>Întrebarea</summary><p>Răspuns</p></details>…</div> */
.bl-faq details { border-bottom: 1px solid var(--bl-line); padding: 14px 0; }
.bl-faq summary { font-weight: 700; color: var(--bl-navy); cursor: pointer; list-style: none; padding-right: 28px; position: relative; }
.bl-faq summary::after { content: '+'; position: absolute; right: 4px; top: -2px; font-size: 1.3rem; color: var(--bl-blue); }
.bl-faq details[open] summary::after { content: '–'; }
.bl-faq details p { margin: 10px 0 0; }

/* after the text: sources, author, CTA, related */
.bl-sources { font-size: .88rem; color: var(--bl-muted); border-top: 1px solid var(--bl-line); margin-top: 2.6rem; padding-top: 18px; }
.bl-sources p:first-child { font-weight: 700; color: var(--bl-navy); margin-bottom: 6px; }
.bl-sources ol { padding-left: 1.2rem; list-style: decimal; }
.bl-sources li { margin: 4px 0; word-break: break-word; }
.bl-sources a { color: var(--bl-muted); }
.bl-author { display: flex; gap: 18px; align-items: flex-start; background: var(--bl-cream); border-radius: 16px; padding: 22px; margin-top: 2rem; }
.bl-author img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.bl-author b { font-family: Martel, serif; color: var(--bl-navy); font-size: 1.1rem; }
.bl-author p { margin: 4px 0 0; font-size: .93rem; line-height: 1.6; color: var(--bl-text); }
.bl-cta { background: var(--bl-navy); color: #fff; border-radius: 18px; padding: 30px; margin: 2.4rem 0 0; }
.bl-cta h2 { font-family: Martel, serif; color: #fff; font-size: 1.45rem; margin: 0 0 10px; line-height: 1.35; }
.bl-cta p { color: rgba(255, 255, 255, .86); margin: 0 0 18px; line-height: 1.7; }
.bl-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--bl-blue); color: var(--bl-navy); font-weight: 700;
  padding: 12px 22px; border-radius: 12px; text-decoration: none; }
.bl-btn:hover { background: #9dbfee; }
.bl-btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .45); }
.bl-related { padding: 48px 0 64px; }
.bl-related h2 { font-family: Martel, serif; color: var(--bl-navy); font-size: 1.5rem; margin: 0 0 20px; }

/* article cards (lists, related) */
.bl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.bl-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bl-line); border-radius: 16px; overflow: hidden;
  text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.bl-card:hover { box-shadow: 0 12px 30px rgba(38, 51, 84, .12); transform: translateY(-2px); }
.bl-card .im { aspect-ratio: 16 / 9; background: var(--bl-cream); overflow: hidden; }
.bl-card .im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-card .tx { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bl-card h3 { font-family: Martel, serif; font-weight: 700; color: var(--bl-navy); font-size: 1.12rem; line-height: 1.4; margin: 0; }
.bl-card p { font-size: .93rem; line-height: 1.6; color: var(--bl-text); margin: 0; }
.bl-card small { color: var(--bl-muted); font-size: .8rem; margin-top: auto; }

/* blog home and category */
.bl-hero { padding: 56px 0 36px; background: linear-gradient(160deg, rgba(227, 217, 204, .5), #fff 60%, rgba(135, 176, 232, .14)); }
.bl-hero h1 { font-family: Martel, serif; font-weight: 800; color: var(--bl-navy); font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.2; margin: 0 0 14px; }
.bl-hero p { font-size: 1.12rem; line-height: 1.7; color: var(--bl-text); max-width: 720px; margin: 0; }
.bl-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.bl-cats a { font-size: .88rem; color: var(--bl-navy); border: 1px solid var(--bl-line); background: #fff; padding: 7px 14px; border-radius: 100px; text-decoration: none; }
.bl-cats a.on, .bl-cats a:hover { background: var(--bl-navy); color: #fff; border-color: var(--bl-navy); }
.bl-list { padding: 40px 0 72px; }
.bl-empty { text-align: center; color: var(--bl-muted); padding: 40px 0; }
.bl-feat { display: grid; grid-template-columns: 1fr; gap: 0; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--bl-line);
  text-decoration: none; color: inherit; margin-bottom: 32px; }
@media (min-width: 860px) { .bl-feat { grid-template-columns: 1.2fr 1fr; } }
.bl-feat .im { aspect-ratio: 16 / 10; background: var(--bl-cream); }
.bl-feat .im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-feat .tx { padding: 30px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.bl-feat h2 { font-family: Martel, serif; font-weight: 800; color: var(--bl-navy); font-size: 1.6rem; line-height: 1.3; margin: 0; }
.bl-feat p { color: var(--bl-text); line-height: 1.7; margin: 0; }

/* media page */
.md-list { display: grid; gap: 20px; padding: 40px 0 72px; }
.md-item { display: grid; grid-template-columns: 1fr; gap: 20px; background: #fff; border: 1px solid var(--bl-line); border-radius: 16px; padding: 22px; }
@media (min-width: 860px) { .md-item.has-video { grid-template-columns: 420px 1fr; } }
.md-item h2 { font-family: Martel, serif; color: var(--bl-navy); font-size: 1.25rem; line-height: 1.4; margin: 6px 0 8px; }
.md-item p { color: var(--bl-text); line-height: 1.7; margin: 0 0 12px; }
.md-item small { color: var(--bl-muted); }
.md-video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; border: 0; padding: 0; cursor: pointer; display: block; width: 100%; }
.md-video img { width: 100%; height: 100%; object-fit: cover; opacity: .88; }
.md-video span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.md-video span i { width: 68px; height: 48px; border-radius: 14px; background: rgba(38, 51, 84, .85); display: flex; align-items: center; justify-content: center; }
.md-video span i::before { content: ''; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; margin-left: 4px; }
.md-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.md-link { color: var(--bl-navy); font-weight: 700; text-decoration: underline; text-decoration-color: var(--bl-blue); text-underline-offset: 3px; }

/* preview banner (admin) */
.bl-preview { position: sticky; top: 0; z-index: 60; background: #fff3cd; color: #5c4400; text-align: center; padding: 10px 16px; font-size: .9rem; border-bottom: 1px solid #e8d48a; }

@media (prefers-color-scheme: dark) {
  :root { --bl-text: rgba(230, 233, 238, .86); --bl-muted: rgba(230, 233, 238, .66); --bl-line: rgba(255, 255, 255, .13); --bl-cream: #23211e; }
  .bl-head, .bl-hero { background: linear-gradient(160deg, #23211e, #16181c 60%, #1b2230); }
  .bl-head h1, .bl-hero h1, .bl-art h2, .bl-art h3, .bl-art strong, .bl-toc p, .bl-card h3, .bl-feat h2, .bl-related h2,
  .bl-cards > div > b, .bl-versus > div > b, .bl-short > p:first-child, .bl-author b, .md-item h2, .bl-faq summary, .bl-crumbs a:hover,
  .bl-meta b, .bl-art ol.bl-steps > li > b, .bl-art blockquote, .bl-quote, .bl-note > p:first-child, .bl-medic > p:first-child,
  .bl-practica > p:first-child, .bl-sources p:first-child { color: #e6e9ee; }
  .bl-art a, .md-link, .bl-chip, .bl-cats a { color: #b9d0f2; }
  .bl-toc, .bl-card, .bl-feat, .bl-cards > div, .md-item, .bl-medic, .bl-cats a { background: #1f2228; }
  .bl-medic { border-color: #87b0e8; }
  .bl-versus > div:last-child, .bl-note { background: rgba(135, 176, 232, .1); }
  .bl-practica { background: #23211e; }
  .bl-table tr:nth-child(even) td { background: #1f2228; }
  .bl-cta { background: #1b2230; border: 1px solid rgba(135, 176, 232, .3); }
  .bl-cats a.on, .bl-cats a:hover { background: #87b0e8; color: #263354; }
  .bl-ig { background: #fbf9f6; }
  .bl-ig figcaption { color: rgba(38, 51, 84, .7); }
  .bl-art ol.bl-steps > li::before { background: #87b0e8; color: #263354; }
  .bl-art ol.bl-steps > li::after { background: #3a3631; }
}
