/* /learn/ chrome - articles and the hub.
 *
 * Extracted from templates/tob-article.html on 2026-09-09. It used to be a
 * <style> block inlined into every generated page, which is how the other
 * top-level pages (ai-stance, faq, privacy, terms) still do it. That is fine
 * for a page you edit by hand: you are already in the file. It is wrong for
 * /learn/, because this lane emits a page a week and a restyle would mean
 * editing every article ever written. 141 lines were 27% of the first
 * article's bytes.
 *
 * Depends on /styles.css for --color-*, --font-*, and the .nav/.footer
 * chrome. Load it second; on its own it renders unstyled prose.
 *
 * Room Selector's /learn/ solved this the same way, with article.css. */

/* .learn- prefix, mirroring the .ai- convention on ai-stance.html.
   This is prose chrome, not a fixed layout like the AI-stance page's
   ledger/figure - the article body is arbitrary HTML from the writer, so
   the rules below have to hold up for whatever mix of headings,
   paragraphs, and the worked-example callout it produces. */
.learn-container {
    --rule: rgba(184, 197, 214, 0.12);
    --panel: rgba(26, 31, 58, 0.5);
    max-width: 720px;
    margin: 0 auto;
    padding: 120px 20px 80px;
}
.learn-breadcrumb {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--color-stardust);
    margin-bottom: 22px;
}
.learn-breadcrumb a { color: var(--color-stardust); text-decoration: none; }
.learn-breadcrumb a:hover { color: var(--color-celestial-gold); }
.learn-breadcrumb span.sep { margin: 0 8px; opacity: 0.5; }
.learn-breadcrumb span.current { color: var(--color-celestial-light); }

.learn-eyebrow {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.72rem;
    color: var(--color-celestial-gold);
    font-weight: 600;
}
.learn-container h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    line-height: 1.1;
    margin: 18px 0;
    color: var(--color-celestial-light);
}
.learn-lede {
    font-size: 1.2rem;
    color: var(--color-stardust);
    margin: 26px 0 44px;
    max-width: 56ch;
}
.learn-lede em { color: var(--color-celestial-light); font-style: italic; }

/* Prose inside the article body. No fixed section count - a query answer
   is as long as the situation needs, so these are element rules rather
   than the numbered .ai-section blocks the stance page uses. */
.learn-body h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.5rem, 3.2vw, 1.9rem);
    line-height: 1.2;
    text-wrap: balance;
    color: var(--color-celestial-light);
    margin: 48px 0 14px;
    padding-top: 40px;
    border-top: 1px solid var(--rule);
}
.learn-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.learn-body h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-celestial-light);
    margin: 24px 0 8px;
}
.learn-body p {
    font-size: 1.06rem;
    line-height: 1.7;
    color: var(--color-stardust);
    max-width: 62ch;
    margin: 14px 0;
}
.learn-body strong { color: var(--color-celestial-light); font-weight: 600; }
.learn-body em { color: var(--color-celestial-light); font-style: italic; }
.learn-body a { color: var(--color-celestial-gold); text-decoration: underline; text-underline-offset: 2px; }
.learn-body a:hover { filter: brightness(1.1); }
.learn-body ul, .learn-body ol {
    margin: 14px 0;
    padding-left: 1.3em;
    color: var(--color-stardust);
    max-width: 62ch;
}
.learn-body li { margin: 6px 0; line-height: 1.6; }
.learn-body blockquote {
    margin: 18px 0;
    padding: 18px 22px;
    border-left: 3px solid var(--color-celestial-gold);
    background: var(--panel);
    border-radius: 0 12px 12px 0;
    color: var(--color-celestial-light);
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-style: italic;
}

/* The worked example is the one thing this spine requires that a
   plain paragraph can't carry - a labeled block so it reads as an
   artifact, not just more prose. */
.example {
    margin: 22px 0;
    padding: 22px 24px;
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: 14px;
}
.example .label {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.7rem;
    color: var(--color-celestial-gold);
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}
.example p { margin: 8px 0; }
.example .line {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--color-celestial-light);
    font-style: italic;
}
.example .note { font-size: 0.94rem; color: var(--color-stardust); }

.learn-body .product-note {
    margin-top: 34px;
    padding: 22px 24px;
    border: 1px solid rgba(244, 196, 48, 0.2);
    border-radius: 14px;
    background: var(--panel);
}

@media (max-width: 640px) {
    .learn-container { padding: 100px 20px 60px; }
}
    

/* Hub only: the index card list. */
/* Hub-only: the card list. Same tokens as the article chrome above. */
.learn-index { list-style: none; padding: 0; margin: 40px 0 0; }
.learn-index li { margin-bottom: 18px; }
.learn-card {
    display: block;
    padding: 22px 24px;
    border: 1px solid var(--rule);
    border-radius: 14px;
    background: var(--panel);
    text-decoration: none;
}
.learn-card:hover { border-color: rgba(244, 196, 48, 0.35); }
.learn-card-title {
    display: block;
    font-family: var(--font-display);
    font-size: 1.32rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-celestial-light);
    margin-bottom: 8px;
}
.learn-card-blurb {
    display: block;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-stardust);
}
    
