/* ============================================================
   HUDDLE — Resurse: lista de articole și pagina de articol.
   Fără imagini: tipografie, spațiu și o grilă curată.
   ============================================================ */

.page-res { --bg-page: #fafbf7; background: var(--bg-page); }
.res-page { padding: 0 var(--gutter); overflow-x: clip; }
.res-page .eyebrow { color: var(--accent-ink); }
.res-page h1 em { color: #3f7424; }

/* ---------- lista ---------- */
.res-hero { max-width: 820px; margin: 0 auto; padding-top: calc(var(--header-h) + clamp(48px, 9vh, 96px)); text-align: center; }
.res-hero h1 { margin-top: 14px; font-size: clamp(40px, 5.4vw, 76px); font-weight: 500; letter-spacing: -.04em; line-height: 1.02; }
.res-hero p { margin: 22px auto 0; max-width: 600px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--text-secondary); }

.res-list { max-width: 1180px; margin: clamp(48px, 8vh, 80px) auto clamp(80px, 12vh, 130px); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: clamp(28px, 5vh, 44px); }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; cursor: pointer;
  font-size: 15px; font-weight: 500; background: #fff; border: 1px solid var(--rule);
  transition: background var(--dur-ui), color var(--dur-ui), border-color var(--dur-ui);
}
.chip small { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); }
.chip:hover { border-color: var(--green-400); }
.chip[aria-pressed="true"] { background: var(--green-800); border-color: var(--green-800); color: #f0f7ea; }
.chip[aria-pressed="true"] small { color: var(--lime-300); }

.res-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.res-card > a {
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: 26px 26px 24px; border-radius: 22px; background: #fff; border: 1px solid var(--rule);
  transition: transform .4s var(--ease-out), box-shadow .4s, border-color .4s;
}
.res-card > a:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 28px 50px -34px rgba(20, 44, 36, .55); }
.res-card > a::after { content: ""; position: absolute; left: 26px; right: 26px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--lime-300); transform: scaleX(.18); transform-origin: left; transition: transform .5s var(--ease-out); }
.res-card > a:hover::after { transform: scaleX(1); }
.res-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--text-secondary); }
.res-tag { color: var(--accent-ink); text-transform: uppercase; letter-spacing: .1em; }
.res-card h3 { margin-top: 16px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.res-card p { margin-top: 12px; font-size: 15px; line-height: 1.55; color: var(--text-secondary); flex: 1; }
.res-more { display: inline-flex; align-items: baseline; gap: 8px; margin-top: 20px; font-size: 15px; font-weight: 600; }
.res-more small { font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--text-secondary); }

/* primul articol, mai mare */
.res-card.is-featured { grid-column: 1 / -1; }
.res-card.is-featured > a { background: var(--green-800); border-color: var(--green-800); color: #f0f7ea; padding: clamp(28px, 4vw, 48px); }
.res-card.is-featured .res-meta, .res-card.is-featured p, .res-card.is-featured .res-more small { color: var(--text-on-dark-muted); }
.res-card.is-featured .res-tag { color: var(--lime-300); }
.res-card.is-featured h3 { max-width: 820px; font-size: clamp(26px, 3vw, 40px); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.res-card.is-featured p { max-width: 680px; font-size: 17px; flex: none; }
.res-card.is-featured .res-more { color: var(--lime-300); }
.res-card[hidden] { display: none; }
.res-empty { margin-top: 24px; text-align: center; color: var(--text-secondary); }

/* ---------- articolul ---------- */
.art { max-width: 1180px; margin: 0 auto; }
.art-head { max-width: 860px; margin: 0 auto; padding-top: calc(var(--header-h) + clamp(40px, 7vh, 80px)); text-align: center; }
.art-crumbs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.art-crumbs a { color: var(--accent-ink); }
.art-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.art-head h1 { margin-top: 18px; font-size: clamp(32px, 4.2vw, 56px); font-weight: 500; letter-spacing: -.035em; line-height: 1.06; text-wrap: balance; }
.art-meta { margin-top: 20px; display: inline-flex; gap: 10px; font-family: var(--font-mono); font-size: 13px; color: var(--text-secondary); }

.art-grid { display: grid; grid-template-columns: 240px minmax(0, 700px); justify-content: center; gap: clamp(32px, 5vw, 72px); margin-top: clamp(40px, 7vh, 72px); }
.art-toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; padding-top: 6px; }
.art-toc ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--rule); }
.art-toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.35; color: var(--text-secondary); transition: color var(--dur-ui), border-color var(--dur-ui); }
.art-toc a:hover { color: var(--text-primary); }
.art-toc a.is-active { color: var(--text-primary); border-left-color: var(--green-400); font-weight: 500; }

/* textul */
.art-body { font-size: 18px; line-height: 1.7; color: #2f4a32; }
.art-body > * + * { margin-top: 1.1em; }
.art-body h2 { margin-top: 2.2em; font-size: clamp(25px, 2.4vw, 32px); font-weight: 600; letter-spacing: -.025em; line-height: 1.18; color: var(--text-primary); scroll-margin-top: calc(var(--header-h) + 20px); }
.art-body h3 { margin-top: 1.8em; font-size: 21px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; color: var(--text-primary); }
.art-body h4 { margin-top: 1.5em; font-size: 18px; font-weight: 600; color: var(--text-primary); }
.art-body h2 + *, .art-body h3 + *, .art-body h4 + * { margin-top: .6em; }
.art-body > :first-child { margin-top: 0; }
.art-body strong { font-weight: 600; color: var(--text-primary); }
.art-body a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.art-body ul, .art-body ol { padding-left: 1.3em; }
.art-body li + li { margin-top: .45em; }
.art-body ul li::marker { color: var(--green-400); }
.art-body blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--lime-300); }

/* invitația de la final */
.art-cta { margin-top: 3em !important; padding: clamp(26px, 4vw, 40px); border-radius: 24px; background: var(--green-800); color: #f0f7ea; }
.art-cta .eyebrow { color: var(--lime-300); }
.art-cta-title { margin-top: 10px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; letter-spacing: -.025em; line-height: 1.15; }
.art-cta-actions { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.art-body .art-cta-link, .art-cta-link { font-size: 15px; font-weight: 500; color: var(--text-on-dark-muted); text-decoration: underline; text-underline-offset: 4px; }
.art-body .art-cta-link:hover, .art-cta-link:hover { color: #fff; }

.art-related { max-width: 1180px; margin: clamp(80px, 12vh, 130px) auto clamp(80px, 12vh, 120px); }
.art-related h2 { margin-bottom: 28px; font-size: clamp(26px, 2.8vw, 36px); font-weight: 500; letter-spacing: -.03em; }

@media (max-width: 1000px) {
  .res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .art-grid { grid-template-columns: minmax(0, 700px); }
  .art-toc { display: none; }
}
@media (max-width: 640px) {
  .res-grid { grid-template-columns: 1fr; }
  .art-body { font-size: 17px; }
  .art-head { text-align: left; }
  .art-crumbs { justify-content: flex-start; }
}

/* notă de actualizare, la începutul unui articol mai vechi */
.art-body .art-note { padding: 14px 18px; border-radius: 14px; background: var(--lime-100); font-size: 16px; line-height: 1.5; color: var(--text-primary); }

/* ---------- pagini legale (termeni, confidențialitate) ---------- */
.art-legal .art-body { font-size: 16.5px; line-height: 1.65; }
.art-legal .art-body h2 { font-size: clamp(22px, 2vw, 27px); }
.art-legal .art-body h3 { font-size: 19px; }
.art-legal .art-body h4 { font-size: 16.5px; }
.art-legal .art-toc { max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.art-legal .art-toc a { padding-top: 5px; padding-bottom: 5px; font-size: 13px; }
.lg-n { display: inline-block; min-width: 2.6em; font-family: var(--font-mono); font-size: .82em; font-weight: 500; color: var(--accent-ink); }
.lg-def strong { font-weight: 600; }
.art-body .lg-alpha { padding-left: 1.6em; }
.lg-table { overflow-x: auto; }
.lg-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; }
.lg-table th, .lg-table td { padding: 9px 14px 9px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.lg-table th { font-weight: 600; color: var(--text-primary); }
.lg-table code { font-size: 13.5px; white-space: nowrap; }
.lg-see { margin-top: 2.4em !important; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--text-secondary); }
