/* Concept article pages — small, additive stylesheet. Loaded AFTER tts.css so
   it inherits the "Listening Room" design tokens (--ink/--paper/--amber/etc.)
   and reuses tts.css's own .lb-* classes for anything that already exists
   there (headings, eyebrows, lead paragraphs, CTA buttons) — this file only
   covers what tts.css genuinely has no class for: article prose, the live
   widget box, and the concepts hub grid. */

body.concept-page {
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-family);
    margin: 0;
    min-height: 100vh;
}

.concept-header {
    max-width: 760px;
    margin: 0 auto;
    padding: 28px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.concept-wordmark {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--paper);
    text-decoration: none;
    letter-spacing: -0.01em;
}
.concept-wordmark:hover { color: var(--amber); }
.concept-back {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--paper-dim);
    text-decoration: none;
    letter-spacing: 0.02em;
}
.concept-back:hover { color: var(--paper); }

main.concept-main { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.concept-article { padding-top: 44px; }
.concept-h1 { max-width: 20ch; }

/* Article prose — tts.css's .lb-lead is sized for a one-paragraph lead, not a
   full article body, so this is its own scale: slightly larger line-height
   for sustained reading, same paper/paper-dim relationship as the rest of the
   site (body text a touch dimmer than headings, exactly like .lb-lead does). */
.concept-body { font-size: 1.05rem; line-height: 1.75; color: var(--paper-dim); max-width: 66ch; }
.concept-body p { margin: 0 0 22px; }
.concept-body p:first-child::first-letter {
    color: var(--amber);
    font-family: var(--font-display);
}

.concept-source {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--paper-dim);
    margin: 10px 0 0;
}
.concept-source strong { color: var(--paper); font-weight: 600; }

/* The widget — visually a step up from plain prose (it's a real product
   surface embedded in an article), so it gets the elevated card treatment
   tts.css already defines via --shadow-card/--card-border, not a new style. */
.concept-widget {
    margin: 56px 0 40px;
    padding: 28px 28px 30px;
    background: var(--panel);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}
.concept-widget .lb-heading { font-size: clamp(1.4rem, 3vw, 1.8rem); }
.concept-widget-status {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--phosphor);
    margin: 14px 0 0;
}
.concept-widget-status.is-error { color: var(--warn-red); }
.concept-widget-result { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--hairline); }
.concept-widget-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--amber);
    margin: 0 0 10px;
}
.concept-widget-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--paper);
    white-space: pre-line;
    margin: 0 0 16px;
}
.concept-widget-cta { font-size: 0.9rem; color: var(--paper-dim); margin: 0; }
.concept-widget-cta a { color: var(--amber); }

.concept-footer {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 24px 60px;
    border-top: 1px solid var(--hairline);
    margin-top: 56px;
}
.concept-footer p { font-family: var(--font-mono); font-size: 0.78rem; color: var(--paper-dim); }
.concept-footer a { color: var(--paper-dim); }

/* ---- Hub (concepts/index.html) --------------------------------------- */
.concept-hub-source { margin: 0 0 44px; }
.concept-hub-book {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--paper);
    margin: 0 0 2px;
}
.concept-hub-author {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--paper-dim);
    margin: 0 0 14px;
}
.concept-hub-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.concept-hub-list a {
    display: block;
    padding: 12px 14px;
    margin: 0 -14px;
    border-radius: 8px;
    color: var(--paper);
    text-decoration: none;
    font-size: 0.98rem;
    transition: background 0.12s ease;
}
.concept-hub-list a:hover { background: var(--panel-raised); color: var(--amber); }
.concept-hub-empty { color: var(--paper-dim); font-size: 0.95rem; padding: 20px 0 40px; }

@media (max-width: 480px) {
    .concept-widget { padding: 22px 18px 24px; }
}
