/* Articole — list + detail. */

.art-list {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
  font-family: var(--lh-font-sans);
}
.art-detail {
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
  font-family: var(--lh-font-sans);
}

.art-meta {
  display: flex; align-items: center; gap: .35rem;
  font-size: .75rem; color: var(--lh-muted);
  flex-wrap: wrap;
}
.art-meta-dot { color: #cbd5e1; }

.art-cat-chip {
  display: inline-block;
  font-size: .72rem; font-weight: 600;
  padding: .15rem .55rem;
  border-radius: 999px;
  background: rgba(26,84,144,.08);
  color: var(--lh-primary);
  text-decoration: none;
}
.art-cat-chip:hover { background: rgba(26,84,144,.14); }

.art-verified {
  display: inline-block; width: 13px; height: 13px;
  background: #047857; color: #fff;
  border-radius: 50%;
  font-size: 8px; line-height: 13px; text-align: center;
}

/* ── List page head ───────────────────────────────────────────────────── */
.art-list-head { margin-bottom: 1.5rem; }
.art-h1 {
  margin: 0 0 .35rem;
  font-size: 1.9rem;
  letter-spacing: -.02em;
  font-weight: 700;
  font-family: var(--lh-font-serif);
}
.art-lede { margin: 0; color: var(--lh-muted); font-size: .95rem; max-width: 60ch; line-height: 1.5; }

.art-cat-tabs {
  display: flex; flex-wrap: wrap; gap: .3rem;
  padding: 1rem 0 1.5rem;
  border-bottom: 1px solid var(--lh-border);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.art-cat-tabs::-webkit-scrollbar { display: none; }
.art-tab {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .7rem;
  font-size: .8rem;
  color: var(--lh-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: color .12s, background .12s;
}
.art-tab:hover { color: var(--lh-primary); background: var(--lh-accent); }
.art-tab.is-active {
  background: var(--lh-primary);
  color: #fff;
  font-weight: 600;
}
.art-tab-count { font-size: .68rem; opacity: .65; font-variant-numeric: tabular-nums; }
.art-tab.is-active .art-tab-count { opacity: .75; }

/* ── Article feed (single column, text-first) ────────────────────────── */
.art-feed {
  list-style: none;
  margin: 0;
  padding: 0;
}
.art-row {
  padding: 1.65rem 0;
  border-bottom: 1px solid var(--lh-border);
}
.art-row:last-child { border-bottom: 0; }

.art-row-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.art-row-meta {
  display: flex; align-items: center; gap: .4rem;
  font-size: .75rem;
  color: var(--lh-muted);
  flex-wrap: wrap;
  margin-bottom: .45rem;
}
.art-row-meta-dot { color: #cbd5e1; }

.art-row-title {
  margin: 0 0 .35rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.25;
  color: var(--lh-text);
  font-family: var(--lh-font-serif);
  transition: color .12s;
}
.art-row-link:hover .art-row-title { color: var(--lh-primary); }

.art-row-excerpt {
  margin: 0 0 .85rem;
  font-family: var(--lh-font-serif);
  font-size: 1rem;
  color: var(--lh-muted);
  line-height: 1.5;
}

.art-row-byline {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8rem;
  color: var(--lh-text);
}
.art-row-byline img {
  width: 24px; height: 24px;
  border-radius: 50%; object-fit: cover;
  background: var(--lh-accent);
  flex-shrink: 0;
}
.art-row-author-name {
  display: inline-flex; align-items: center; gap: .3rem;
}

/* Featured (1st item) — subtle emphasis, no separate visual treatment */
.art-row.is-featured { padding-top: .75rem; }
.art-row.is-featured .art-row-title { font-size: 1.7rem; line-height: 1.2; letter-spacing: -.015em; }
.art-row.is-featured .art-row-excerpt { font-size: 1.05rem; }

.art-empty {
  background: #fff; border: 1px dashed var(--lh-border);
  border-radius: 12px;
  padding: 3rem 1.5rem; text-align: center;
}
.art-empty p { color: var(--lh-muted); margin: 0 0 1rem; }

/* ── Detail page ──────────────────────────────────────────────────────── */
.art-detail { max-width: 760px; }

.art-crumbs {
  display: flex; align-items: center; gap: .4rem;
  font-size: .8rem; color: var(--lh-muted);
  margin-bottom: 1.25rem; flex-wrap: wrap;
}
.art-crumbs a { color: var(--lh-muted); text-decoration: none; }
.art-crumbs a:hover { color: var(--lh-primary); text-decoration: underline; }
.art-crumb-sep { color: #cbd5e1; }

.art-d-head { margin-bottom: 1.5rem; }
.art-d-title {
  margin: .65rem 0 .75rem;
  font-size: 2rem;
  letter-spacing: -.02em;
  line-height: 1.15;
  font-weight: 700;
}
.art-d-excerpt {
  margin: 0 0 1.5rem;
  font-family: var(--lh-font-serif);
  font-size: 1.1rem;
  color: #374151;
  line-height: 1.55;
}
.art-d-meta {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1.5rem; flex-wrap: wrap;
  padding: 1rem 0;
  border-top: 1px solid var(--lh-border);
  border-bottom: 1px solid var(--lh-border);
}
.art-d-author {
  display: flex; gap: .65rem; align-items: center;
  text-decoration: none; color: inherit;
}
.art-d-author img {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  background: var(--lh-accent);
}
.art-d-author-text { display: flex; flex-direction: column; }
.art-d-author-name {
  font-weight: 600; font-size: .92rem; color: var(--lh-text);
  display: inline-flex; align-items: center; gap: .35rem;
}
.art-d-author-bio { font-size: .75rem; color: var(--lh-muted); }
.art-d-author:hover .art-d-author-name { color: var(--lh-primary); }
.art-d-meta-right {
  font-size: .82rem; color: var(--lh-muted);
  display: flex; align-items: center; gap: .35rem;
}

.art-d-cover {
  margin: 0 0 2rem;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--lh-accent);
}
.art-d-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.art-d-body {
  font-family: var(--lh-font-serif);
  font-size: 1.1rem; line-height: 1.7;
  color: #1f2937;
  margin-bottom: 2rem;
}
.art-d-body p { margin: 0 0 1.1rem; }
.art-d-body p:last-child { margin-bottom: 0; }

.art-d-refs {
  background: var(--lh-accent);
  padding: 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}
.art-d-refs h3 {
  margin: 0 0 .65rem;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--lh-muted);
}
.art-d-refs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.qa-code-chip {
  display: inline-block;
  font-size: .75rem; font-weight: 500;
  padding: .15rem .55rem;
  border-radius: 4px;
  background: #fff;
  color: var(--lh-text);
  text-decoration: none;
  border: 1px solid var(--lh-border);
}
.qa-code-chip:hover { border-color: var(--lh-primary); color: var(--lh-primary); }

.art-d-tags {
  display: flex; flex-wrap: wrap; gap: .35rem;
  padding: 1rem 0;
  border-top: 1px solid var(--lh-border);
  margin-bottom: 2rem;
}
.art-tag {
  font-size: .78rem;
  color: var(--lh-muted);
  background: var(--lh-accent);
  padding: .15rem .55rem;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
}

.art-d-author-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--lh-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}
.art-d-author-card img {
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover;
  background: var(--lh-accent);
}
.art-d-author-eyebrow {
  margin: 0; font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em; font-weight: 700;
  color: var(--lh-muted);
}
.art-d-author-h {
  margin: .25rem 0;
  font-size: 1.15rem;
  letter-spacing: -.01em;
}
.art-d-author-h a { color: var(--lh-text); text-decoration: none; }
.art-d-author-h a:hover { color: var(--lh-primary); }
.art-d-author-tagline { margin: 0 0 .25rem; font-size: .88rem; color: var(--lh-muted); font-family: var(--lh-font-serif); }
.art-d-author-city { margin: 0; font-size: .8rem; color: var(--lh-muted); }

.art-d-related { margin-top: 3rem; }
.art-d-related h2 {
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--lh-muted);
  margin: 0 0 1rem;
}
.art-d-related ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.art-d-related a {
  display: flex; gap: .85rem; align-items: center;
  background: #fff;
  border: 1px solid var(--lh-border);
  border-radius: 8px;
  padding: .65rem;
  text-decoration: none; color: inherit;
  transition: border-color .12s;
}
.art-d-related a:hover { border-color: var(--lh-primary); }
.art-d-related img {
  width: 60px; height: 60px; border-radius: 6px; object-fit: cover; flex-shrink: 0;
  background: var(--lh-accent);
}
.art-d-related h4 {
  margin: 0 0 .15rem;
  font-size: .85rem;
  line-height: 1.3;
  font-weight: 600;
}
.art-d-related span { font-size: .72rem; color: var(--lh-muted); }

/* ── Mobile ──────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .art-list { padding: 1rem 1.1rem 3rem; }
  .art-h1 { font-size: 1.55rem; }
  .art-row { padding: 1.25rem 0; }
  .art-row-title { font-size: 1.15rem; }
  .art-row.is-featured .art-row-title { font-size: 1.4rem; }
  .art-row.is-featured .art-row-excerpt { font-size: .95rem; }
  .art-d-title { font-size: 1.6rem; }
  .art-d-body { font-size: 1rem; }
  .art-d-author-card { grid-template-columns: auto 1fr; }
  .art-d-author-card > .lh-btn { grid-column: 1 / -1; }
}
