/* Secțiunea „Articole” (29 octombrie 2026). Folosește variabilele de culoare ale site-ului și tema întunecată. */
.article-page { padding-block: 34px 72px; }
.article-wrap { max-width: 760px; }
.article-head { margin-bottom: 26px; }
.article-head h1, .articles-hero h1 { max-width: 760px; margin: 14px 0 14px; font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -.035em; font-weight: 650; color: #203758; }
.article-meta { margin: 0; color: #5d6470; font-size: 15px; }
.article-lead { font-size: 19px; line-height: 1.6; color: #39404b; max-width: 680px; }
.article-toc { margin: 0 0 34px; padding: 18px 22px; background: #fff; border: 1px solid #d7dce4; border-left: 4px solid #c44711; }
.article-toc strong { display: block; margin-bottom: 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #45619b; }
.article-toc ol { margin: 0; padding-left: 20px; }
.article-toc li { margin: 4px 0; }
.article-toc a { display: inline-flex; align-items: center; vertical-align: top; min-height: 28px; color: #203758; font-weight: 600; text-underline-offset: 3px; }
.article-body { font-size: 17px; line-height: 1.7; color: #2b313b; }
.article-body p, .article-body ul, .article-body ol { max-width: 700px; }
.article-body h2 { margin: 46px 0 14px; font-size: clamp(25px, 3.2vw, 31px); line-height: 1.2; letter-spacing: -.02em; color: #203758; scroll-margin-top: 90px; }
.article-body h3 { margin: 30px 0 10px; font-size: 20px; color: #203758; }
.article-body li { margin: 6px 0; }
.article-body a { color: #203758; font-weight: 600; text-underline-offset: 3px; }
.article-body em { font-style: italic; }
.article-body del { color: #74585a; }
.article-note { font-size: 14px !important; color: #5d6470; border-left: 3px solid #d7dce4; padding-left: 12px; }
.article-table { margin: 18px 0 24px; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #d7dce4; background: #fff; }
.article-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.article-table th, .article-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #e3e7ee; }
.article-table th { background: #eef1f6; color: #203758; font-weight: 700; font-size: 14px; }
.article-table tr:last-child td { border-bottom: 0; }
.article-cta { margin: 48px 0 34px; padding: 28px 30px; background: #fff; border: 1px solid #d7dce4; border-left: 5px solid #c44711; }
.article-cta h2 { margin: 0 0 8px; font-size: 24px; color: #203758; }
.article-cta p { margin: 0 0 18px; color: #39404b; font-size: 16px; line-height: 1.6; }
.article-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.article-cta-actions a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid #c44711; }
.article-cta-actions a.primary { background: #c44711; color: #fff; }
.article-cta-actions a.primary:hover { background: #a93c0d; }
.article-cta-actions a.secondary { background: #fff; color: #a93c0d; }
.article-sources { padding-top: 22px; border-top: 1px solid #d7dce4; font-size: 14px; line-height: 1.6; color: #4a515c; }
.article-sources h2, .article-related h2 { font-size: 18px; margin: 0 0 10px; color: #203758; }
.article-sources ul { padding-left: 18px; margin: 0; }
.article-sources li { margin: 6px 0; }
.article-sources a { color: #203758; }
.article-related { margin-top: 34px; }
.article-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.article-cards a { display: flex; flex-direction: column; height: 100%; padding: 20px 22px; background: #fff; border: 1px solid #d7dce4; border-top: 3px solid #c44711; color: #203758; text-decoration: none; box-sizing: border-box; cursor: pointer; box-shadow: 0 1px 2px rgba(20, 30, 50, .06); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.article-cards a::after { content: "Citește articolul \2192"; display: inline-flex; align-items: center; margin-top: auto; padding-top: 16px; color: #b5410f; font-weight: 700; font-size: 15px; transition: transform .18s ease; }
.article-cards a:hover, .article-cards a:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20, 30, 50, .12); border-color: #b9c2d0; border-top-color: #a93c0d; }
.article-cards a:hover strong, .article-cards a:focus-visible strong { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.article-cards a:hover::after, .article-cards a:focus-visible::after { transform: translateX(4px); }
.article-cards a:active { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .article-cards a, .article-cards a::after { transition: none; } .article-cards a:hover, .article-cards a:hover::after { transform: none; } }
.article-cards strong { display: block; font-size: 19px; line-height: 1.3; margin-bottom: 8px; }
.article-cards span { display: block; color: #4a515c; font-size: 15px; line-height: 1.55; }
.article-cards small { display: block; margin-top: 12px; color: #5d6470; font-size: 13px; }
.article-cards-single { grid-template-columns: minmax(0, 440px); }
html[lang="en"] .article-cards a::after { content: "Read the article \2192"; }
html[lang="ru"] .article-cards a::after { content: "Читать статью \2192"; }
.articles-hero { margin-bottom: 30px; max-width: 760px; }
.articles-hero p { font-size: 18px; line-height: 1.6; color: #39404b; }
.home-articles { padding-block: 64px 8px; }
.home-articles .section-heading { margin: 10px 0 22px; }
.home-articles-more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 18px; color: #203758; font-weight: 700; text-underline-offset: 4px; }
.grammar-article-link { margin: 34px 0 0; padding: 18px 22px; background: #fff; border: 1px solid #d7dce4; border-left: 4px solid #c44711; font-size: 16px; }
.grammar-article-link a { color: #203758; font-weight: 700; text-underline-offset: 3px; }
:focus-visible { outline-offset: 3px; }

html[data-theme="dark"] .article-head h1, html[data-theme="dark"] .articles-hero h1, html[data-theme="dark"] .article-body h2, html[data-theme="dark"] .article-body h3,
html[data-theme="dark"] .article-cta h2, html[data-theme="dark"] .article-sources h2, html[data-theme="dark"] .article-related h2 { color: #edf2f8; }
html[data-theme="dark"] .article-meta, html[data-theme="dark"] .article-note, html[data-theme="dark"] .article-cards small { color: #bec7d5; }
html[data-theme="dark"] .article-lead, html[data-theme="dark"] .article-body, html[data-theme="dark"] .article-cta p, html[data-theme="dark"] .articles-hero p,
html[data-theme="dark"] .article-sources, html[data-theme="dark"] .article-cards span { color: #d9e0ea; }
html[data-theme="dark"] .article-toc, html[data-theme="dark"] .article-table, html[data-theme="dark"] .article-cta, html[data-theme="dark"] .article-cards a,
html[data-theme="dark"] .grammar-article-link { background: #1b2029; border-color: #394457; }
html[data-theme="dark"] .article-toc, html[data-theme="dark"] .article-cta, html[data-theme="dark"] .grammar-article-link { border-left-color: #ff9860; }
html[data-theme="dark"] .article-cards a { border-top-color: #ff9860; color: #edf2f8; }
html[data-theme="dark"] .article-cards a::after { color: #ffb48a; }
html[data-theme="dark"] .article-cards a:hover, html[data-theme="dark"] .article-cards a:focus-visible { border-color: #56637a; border-top-color: #ffb48a; background: #212734; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
html[data-theme="dark"] .article-toc strong { color: #a9c0ec; }
html[data-theme="dark"] .article-toc a, html[data-theme="dark"] .article-body a, html[data-theme="dark"] .article-sources a, html[data-theme="dark"] .home-articles-more,
html[data-theme="dark"] .grammar-article-link a { color: #c6d9f7; }
html[data-theme="dark"] .article-table th { background: #222c3c; color: #edf2f8; }
html[data-theme="dark"] .article-table th, html[data-theme="dark"] .article-table td { border-bottom-color: #2c3546; }
html[data-theme="dark"] .article-cta-actions a.secondary { background: #1b2029; color: #ffb48a; border-color: #ff9860; }
html[data-theme="dark"] .article-sources { border-top-color: #394457; }
html[data-theme="dark"] .article-body del { color: #c9a9a9; }

@media (max-width: 600px) {
  .article-page { padding-block: 22px 56px; }
  .article-body { font-size: 16px; }
  .article-lead { font-size: 17px; }
  .article-cta { padding: 22px 20px; }
  .article-cta-actions a { width: 100%; justify-content: center; }
}
