/* ============================================================
   Taper — /articles (the journal)
   Rendered by the articlesHttp Cloud Function. Builds on style.css
   tokens; only article and listing layout lives here.
   ============================================================ */

.article-page, .listing { padding: 7rem 0 4rem; }

/* ---------------- Article ---------------- */
.a-crumb { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.9rem; }
.a-crumb a { color: var(--text-muted); text-decoration: none; }
.a-crumb a:last-child { color: var(--neon); }
.a-crumb a:hover { color: var(--text); }

.a-title { font-size: clamp(2rem, 6vw, 3.2rem); margin-bottom: 0.9rem; }
.a-meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.8rem; }

.a-answer { background: var(--surface); border-left: 3px solid var(--neon); border-radius: 12px; padding: 1.1rem 1.3rem; margin-bottom: 2.2rem; color: var(--text); }
.a-answer-label { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--neon); margin-bottom: 0.35rem; }
.a-answer p { margin: 0; }

.a-body h2 { font-size: clamp(1.15rem, 2.6vw, 1.45rem); margin: 2.2rem 0 0.8rem; }
.a-body p, .a-body ul { margin-bottom: 1.05rem; }
.a-body ul { padding-left: 1.3rem; }
.a-body li { margin-bottom: 0.35rem; }
.a-body a, .a-sources a { color: var(--neon); text-underline-offset: 3px; }
.a-body strong { color: var(--text); }

.a-app-card { display: flex; gap: 1.1rem; align-items: center; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 1rem; margin: 2.2rem 0; }
.a-app-card img { width: 76px; height: 136px; object-fit: cover; border-radius: 12px; border: 1px solid var(--hairline); flex: none; }
.a-app-card b { display: block; color: var(--text); margin-bottom: 0.2rem; }
.a-app-card p { margin: 0 0 0.5rem; color: var(--text-body); font-size: 0.95rem; }
.a-app-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.9rem; font-weight: 600; }
.a-app-links a { color: var(--neon); text-decoration: none; }

.a-faq { margin-top: 2.6rem; }
.a-faq h2 { font-size: clamp(1.15rem, 2.6vw, 1.45rem); margin-bottom: 0.6rem; }
.a-faq-item { border-top: 1px solid var(--hairline); padding: 1rem 0; }
.a-faq-item h3 { text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-stretch: normal; font-size: 1rem; margin-bottom: 0.35rem; }
.a-faq-item p { margin: 0; }

.a-sources { margin-top: 2rem; font-size: 0.9rem; color: var(--text-muted); }
.a-sources h2 { font-size: 0.85rem; letter-spacing: 0.12em; margin-bottom: 0.5rem; color: var(--text-muted); }
.a-sources ol { padding-left: 1.2rem; }

.a-end { background: var(--surface); border-radius: var(--radius-lg); padding: 2rem 1.5rem; text-align: center; margin: 3rem 0 2.5rem; }
.a-end h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: 0.5rem; }
.a-end p { margin-bottom: 1.2rem; }

.a-related h2 { font-size: 1rem; margin-bottom: 0.9rem; }
.a-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.9rem; }

.a-disclaimer { margin-top: 2.5rem; font-size: 0.82rem; color: var(--text-muted); }

/* ---------------- Cards (index + related) ---------------- */
.l-card { display: block; background: var(--surface); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; transition: background .2s ease; }
.l-card:hover { background: var(--surface-raised); }
.l-card img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }
.l-card-body { padding: 0.9rem 1rem 1.1rem; }
.l-card h3 { text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-stretch: normal; font-size: 1rem; margin-bottom: 0.3rem; }
.l-card small { color: var(--text-muted); font-size: 0.82rem; }

/* ---------------- Listing ---------------- */
.l-eyebrow { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--neon); margin-bottom: 0.7rem; }
.listing h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 0.9rem; }
.l-lede { color: var(--text-muted); max-width: 40rem; margin-bottom: 1.8rem; }

.l-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.l-chips a { border: 1px solid var(--hairline); border-radius: 999px; padding: 0.4rem 0.9rem; font-size: 0.85rem; color: var(--text-body); text-decoration: none; }
.l-chips a:hover { border-color: var(--text-muted); }
.l-chips a[aria-current="page"] { background: var(--neon); border-color: var(--neon); color: var(--on-neon); font-weight: 600; }

.l-featured { display: grid; grid-template-columns: 1.3fr 1fr; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1.8rem; text-decoration: none; color: inherit; }
.l-featured img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1200 / 630; }
.l-featured-body { padding: 1.6rem; display: flex; flex-direction: column; justify-content: center; }
.l-tag { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--neon); margin-bottom: 0.5rem; }
.l-featured h2 { font-size: clamp(1.2rem, 2.6vw, 1.6rem); margin-bottom: 0.6rem; }
.l-featured p { color: var(--text-muted); margin: 0; }

.l-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.l-empty { color: var(--text-muted); }
.l-pager { display: flex; justify-content: space-between; margin-top: 2rem; }
.l-pager a { color: var(--neon); text-decoration: none; font-weight: 600; }

/* ---------------- Sticky download bar ---------------- */
body.has-sticky { padding-bottom: 88px; }
.sticky-get { position: fixed; z-index: 40; left: 50%; bottom: 12px; transform: translateX(-50%); width: calc(100% - 24px); max-width: 520px; display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.75rem; background: var(--surface-raised); border: 1px solid #3a3a37; border-radius: 16px; text-decoration: none; color: inherit; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.sticky-icon { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.sticky-text { display: flex; flex-direction: column; line-height: 1.2; }
.sticky-text b { color: var(--text); font-size: 0.95rem; }
.sticky-text span { color: var(--text-muted); font-size: 0.8rem; }
.sticky-btn { margin-left: auto; background: var(--neon); color: var(--on-neon); font-weight: 700; font-size: 0.85rem; padding: 0.45rem 1.1rem; border-radius: 999px; }

@media (max-width: 900px) {
    .l-featured { grid-template-columns: 1fr; }
    .l-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .l-grid { grid-template-columns: 1fr; }
    .a-app-card img { width: 60px; height: 108px; }
}
