/* Articles pages. Built on --pf-* tokens; loaded from Layout.astro alongside positronics-site.css. */

/* ---------- Landing ---------- */
.articles-hero { padding: 170px 0 72px; border-top: none; position: relative; }
.articles-hero .wrap { position: relative; }
.articles-hero .lede { margin-top: var(--pf-space-4); }
.article-index { padding: 0 0 112px; border-top: none; }
.article-index .wrap { display: grid; gap: var(--pf-card-gap); }
.entry-card { display: block; text-decoration: none; color: inherit; background: var(--pf-bg-card); border: 0.5px solid var(--pf-border); border-radius: var(--pf-radius-lg); padding: 40px 44px; position: relative; overflow: hidden; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.entry-card::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--pf-cyan); opacity: 0; transition: opacity .25s ease; }
.entry-card:hover { border-color: var(--pf-cyan-border); transform: translateY(-3px); box-shadow: 0 12px 44px var(--pf-cyan-dim); }
.entry-card:hover::after { opacity: 1; }
.entry-card { min-height: 380px; display: grid; grid-template-columns: minmax(0,1fr) 380px; column-gap: 40px; align-items: center; padding: 0; }
.entry-thumb { grid-column: 2; grid-row: 1 / span 4; align-self: stretch; width: 100%; margin: 0; background: var(--pf-bg-surface); min-height: 0; border-left: 0.5px solid var(--pf-border); overflow: hidden; }
.entry-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.entry-card > :not(.entry-thumb) { grid-column: 1; padding-left: 44px; }
.entry-card > .entry-meta { padding-top: 40px; }
.entry-card > .entry-read { padding-bottom: 40px; }
@media (max-width: 1080px) { .entry-card { grid-template-columns: minmax(0,1fr) 300px; min-height: 300px; } }
@media (max-width: 760px) { .entry-card { grid-template-columns: 1fr; row-gap: 20px; min-height: 0; }
  .entry-card > :not(.entry-thumb) { padding-right: 32px; padding-left: 32px; } .entry-thumb { grid-column: 1; grid-row: auto; order: -1; margin: 0; border-left: none; border-bottom: 0.5px solid var(--pf-border); } .entry-thumb { aspect-ratio: 1; width: 100%; } .entry-thumb img { width: 100%; height: 100%; } .entry-card { min-height: 0; } }
.entry-meta { display: flex; align-items: center; gap: 12px; font-family: var(--pf-mono); font-size: 11px; letter-spacing: .08em; color: var(--pf-text-t); text-transform: uppercase; }
.entry-meta .em-tag { color: var(--pf-cyan); background: var(--pf-cyan-dim); border: 1px solid var(--pf-cyan-border); border-radius: var(--pf-radius-pill); padding: 2px 10px; }
.entry-card h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 300; line-height: 1.2; letter-spacing: -0.015em; margin: 16px 0 12px; max-width: 760px; }
.entry-card > p { color: var(--pf-text-s); font-size: var(--t-body); max-width: 680px; }
.entry-read { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-family: var(--pf-mono); font-size: 12px; letter-spacing: .06em; color: var(--pf-cyan); }
.entry-read svg { transition: transform .2s ease; }
.entry-card:hover .entry-read svg { transform: translateX(4px); }
.entry-stub { display: flex; align-items: center; justify-content: space-between; gap: var(--pf-space-6); border: 1px dashed var(--pf-border-md); border-radius: var(--pf-radius-lg); padding: 22px 44px; color: var(--pf-text-t); font-family: var(--pf-mono); font-size: 12px; letter-spacing: .06em; flex-wrap: wrap; }
.entry-stub a { color: var(--pf-text-s); text-decoration: none; border-bottom: 1px solid var(--pf-border-md); transition: color .15s ease, border-color .15s ease; }
.entry-stub a:hover { color: var(--pf-cyan); border-color: var(--pf-cyan); }

/* ---------- Article hero ---------- */
.article-hero { padding: 168px 0 0; border-top: none; position: relative; }
.article-hero .wrap { position: relative; max-width: 900px; }
.a-kicker { display: flex; align-items: center; gap: 12px; font-family: var(--pf-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--pf-text-t); flex-wrap: wrap; }
.a-kicker .em-tag { color: var(--pf-cyan); background: var(--pf-cyan-dim); border: 1px solid var(--pf-cyan-border); border-radius: var(--pf-radius-pill); padding: 2px 10px; }
.a-kicker a { color: var(--pf-text-s); text-decoration: none; }
.a-kicker a:hover { color: var(--pf-cyan); }
.a-title { font-size: clamp(34px, 4.6vw, 58px); font-weight: 200; line-height: 1.1; letter-spacing: -0.02em; margin: 24px 0 20px; text-wrap: pretty; color: var(--pf-cyan); }
.a-dek { color: var(--pf-text-s); font-size: 19px; line-height: 1.6; max-width: 700px; }
.a-byline { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 40px; padding: 16px 0; border-top: 0.5px solid var(--pf-border); border-bottom: 0.5px solid var(--pf-border); font-family: var(--pf-mono); font-size: 12px; letter-spacing: .04em; color: var(--pf-text-s); }
.a-byline .b-sep { color: var(--pf-text-t); }
.a-byline .b-live { display: inline-flex; align-items: center; gap: 8px; }
.a-byline .b-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pf-green); box-shadow: 0 0 0 3px var(--pf-green-dim); }

/* ---------- Article body ---------- */
.article-body { padding: 72px 0 104px; border-top: none; }
.article-body.theme-white .prose { --a-body: #3a4450; }
.prose { --a-body: #b6c0ca; max-width: 720px; margin: 0 auto; font-size: 17.5px; line-height: 1.8; }
.prose p { margin: 0 0 26px; color: var(--a-body); text-wrap: pretty; }
.prose p strong { color: var(--pf-text-p); font-weight: 500; }
.prose em { color: var(--pf-text-p); font-style: italic; }
.prose h2 { font-size: 27px; font-weight: 400; line-height: 1.3; letter-spacing: -0.01em; color: var(--pf-text-p); margin: 68px 0 24px; padding-top: 30px; border-top: 0.5px solid var(--pf-border); }
.prose h2::before { content: ""; display: block; width: 56px; height: 8px; margin-bottom: 14px; background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="56" height="8" viewBox="0 0 56 8"><line x1="0" y1="4" x2="46" y2="4" stroke="%2300a9e8" stroke-width="2"/><circle cx="51" cy="4" r="3.25" fill="none" stroke="%2300a9e8" stroke-width="1.5"/></svg>') no-repeat; }
.pullquote { margin: 46px 0; padding-left: 28px; border-left: 2px solid var(--pf-cyan); font-size: 25px; font-weight: 300; line-height: 1.45; letter-spacing: -0.01em; color: var(--pf-text-p); text-wrap: pretty; }

/* Interrogation list */
.qa { list-style: none; display: grid; gap: 10px; margin: 6px 0 30px; padding: 0; }
.qa li { background: var(--pf-bg-card); border: 0.5px solid var(--pf-border); border-radius: var(--pf-radius-card); padding: 18px 22px; display: grid; grid-template-columns: 40px 1fr; gap: 16px; transition: border-color .2s ease; }
.qa li:hover { border-color: var(--pf-cyan-border); }
.qa .qn { font-family: var(--pf-mono); font-size: 12px; color: var(--pf-cyan); padding-top: 3px; }
.qa .qq { font-size: 16px; font-weight: 500; color: var(--pf-text-p); }
.qa .qv { font-size: 14.5px; color: var(--pf-text-s); margin-top: 5px; line-height: 1.6; }

/* Dead vs live answer */
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pf-card-gap); margin: 30px 0; }
@media (max-width: 720px) { .answers { grid-template-columns: 1fr; } }
.ans { background: var(--pf-bg-card); border: 0.5px solid var(--pf-border); border-left: 3px solid; border-radius: var(--pf-radius-card); padding: 22px 24px; }
.ans-dead { border-left-color: var(--pf-red); }
.ans-live { border-left-color: var(--pf-green); }
.ans-tag { display: inline-block; font-family: var(--pf-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; border-radius: var(--pf-radius-pill); padding: 3px 10px; margin-bottom: 14px; }
.ans-dead .ans-tag { color: var(--pf-red); background: var(--pf-red-dim); }
.ans-live .ans-tag { color: var(--pf-green); background: var(--pf-green-dim); }
.ans p { font-size: 15px; line-height: 1.7; color: var(--a-body); margin: 0; }
.ans-verdict { font-family: var(--pf-mono); font-size: 12px; letter-spacing: .04em; margin-top: 14px; padding-top: 12px; border-top: 0.5px solid var(--pf-border); }
.ans-dead .ans-verdict { color: var(--pf-red); }
.ans-live .ans-verdict { color: var(--pf-green); }

/* The Monday slide */
.slide-lines { counter-reset: sl; list-style: none; margin: 26px 0 30px; padding: 0; background: var(--pf-bg-card); border: 0.5px solid var(--pf-border); border-radius: var(--pf-radius-card); overflow: hidden; }
.slide-lines li { counter-increment: sl; display: flex; gap: 18px; align-items: baseline; padding: 14px 22px; font-size: 15.5px; color: var(--pf-text-p); }
.slide-lines li + li { border-top: 0.5px solid var(--pf-border); }
.slide-lines li::before { content: "0" counter(sl); font-family: var(--pf-mono); font-size: 12px; color: var(--pf-cyan); flex: none; }

/* Survey stats */
.survey { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pf-card-gap); margin: 30px 0; }
@media (max-width: 680px) { .survey { grid-template-columns: 1fr; } }
.sv { background: var(--pf-bg-card); border: 0.5px solid var(--pf-border); border-radius: var(--pf-radius-card); padding: 20px 22px; }
.sv-num { font-family: var(--pf-mono); font-size: 30px; font-weight: 500; color: var(--pf-cyan); font-variant-numeric: tabular-nums; line-height: 1; }
.sv-num .sv-den { font-size: 14px; color: var(--pf-text-t); font-weight: 400; margin-left: 4px; }
.sv-bar { height: 3px; border-radius: 2px; background: var(--pf-border-md); margin: 14px 0 12px; overflow: hidden; }
.sv-bar i { display: block; height: 100%; width: var(--w); background: var(--pf-cyan); border-radius: 2px; }
.sv p { font-size: 14px; color: var(--pf-text-s); margin: 0; line-height: 1.55; }
.sv-note { font-family: var(--pf-mono); font-size: 12px; letter-spacing: .04em; color: var(--pf-text-t); margin: -8px 0 26px; }

/* Article footer nav */
.a-footer { max-width: 720px; margin: 64px auto 0; padding-top: 24px; border-top: 0.5px solid var(--pf-border); display: flex; justify-content: space-between; align-items: center; gap: var(--pf-space-6); flex-wrap: wrap; }
.a-footer a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--pf-mono); font-size: 12px; letter-spacing: .06em; color: var(--pf-text-s); text-decoration: none; transition: color .15s ease; }
.a-footer a:hover { color: var(--pf-cyan); }
.a-share { font-family: var(--pf-mono); font-size: 12px; color: var(--pf-text-t); }

/* Default link colors inside prose */
.prose a { color: var(--pf-cyan); text-decoration: none; border-bottom: 1px solid var(--pf-cyan-border); }
.prose a:hover { color: var(--pf-cyan-dark); border-color: var(--pf-cyan); }
a { color: var(--pf-cyan); }
a:hover { color: var(--pf-cyan-dark); }

/* E2: cheerful-tile strip */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 6px 0 30px; }
@media (max-width: 680px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile { background: var(--pf-bg-card); border: 0.5px solid var(--pf-border); border-radius: var(--pf-radius-card); padding: 14px 16px; display: grid; gap: 8px; }
.tile .t-label { font-size: 13px; color: var(--pf-text-s); }
.tile .t-val { display: inline-flex; align-items: center; gap: 7px; font-family: var(--pf-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--pf-green); }
.tile .t-val::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pf-green); box-shadow: 0 0 0 3px var(--pf-green-dim); }
/* qa variant without the Q number column */
.qa.plain li { grid-template-columns: 1fr; }
/* single full-width live answer */
.answers.single { grid-template-columns: 1fr; }

/* Article figures */
.a-fig { margin: 38px 0; background: var(--pf-bg-card); border: 0.5px solid var(--pf-border); border-radius: var(--pf-radius-card); padding: 26px 26px 18px; }
.a-fig svg { display: block; width: 100%; height: auto; }
.a-fig figcaption { margin-top: 14px; padding-top: 12px; border-top: 0.5px solid var(--pf-border); font-family: var(--pf-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--pf-text-t); }

/* ---------- Hero artwork ---------- */
.article-hero.has-art { overflow: hidden; padding: 168px 0 64px; }
.article-hero.has-art .hero-grid-bg { opacity: .5; }
.article-hero.has-art .wrap { max-width: 1240px; position: static; }
.a-hero-grid { display: grid; grid-template-columns: minmax(0, 56%); }
.a-hero-copy .a-dek { max-width: 560px; }
.a-hero-copy .a-byline { margin-top: 32px; }
.a-hero-art { position: absolute; top: 0; right: 0; bottom: 0; width: 44%; margin: 0; border-left: 0.5px solid var(--pf-border); }
.a-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; border-radius: 0; }
@media (max-width: 900px) {
  .article-hero.has-art { padding-top: 120px; }
  .article-hero.has-art .wrap { position: relative; }
  .a-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .a-hero-art { position: relative; width: 100%; border-left: none; border-top: 0.5px solid var(--pf-border); margin-top: 36px; aspect-ratio: 16 / 9; }
}
