/* style.css, part 9 of 13: the article under the editor.
   A contiguous range of the pre-M7 style.css, linked from index.html in
   source order so the cascade is unchanged; see src/tokens.css. */

/* ============================================================
   THE ARTICLE UNDER THE EDITOR — added 2026-08-16.

   index.html's own comment above .tool-article says why the block exists
   (marketing/research/R5-search-and-seo.md §4, PLAYBOOK-2026-08-16.md §3A #3).
   This is only how it looks, and it is deliberately the smallest sheet that
   could do the job: no new colours, no new fonts, no new tokens. Every value
   below is either an existing custom property or a step on the type scale the
   sidebar already uses — .stack-section .section-title is --fs-lg at
   --fw-strong on --font-display, and the three heading sizes here bracket it.
   (This sentence used to read "1.02rem Fredoka 600". All three numbers were
   true when it was written and none of them is now: the ladder landed on
   2026-08-16 and Fredoka never loaded here at all. A comment describing type
   in literals is a second copy of the stylesheet and it drifts like one.)

   IT SITS ON A LAYER ABOVE #app (z-index 1 against its 0) so it scrolls OVER
   the fixed editor rather than under it, and it is OPAQUE for the same reason:
   a translucent article would show the 3D viewport moving behind the text.

   ONE COLUMN, CENTRED, 46rem. Long-form text is read at 60-75 characters a
   line and the editor's own panel is 400-460px; 46rem is that measure at this
   font size and it needs no breakpoint of its own, because `width: min()`
   shrinks before any media query would fire. There is no rule in here that a
   viewport width can change, which is what keeps this block out of the reflow
   and tap-target measurements the editor above has to pass.

   NO EMOJI, unlike the editor. This is the half of the page a stranger reads
   before they have decided to trust the app, and the register in
   docs/SITE-CLAIMS.md governs every claim in it.
   ============================================================ */
.tool-article {
    position: relative;
    z-index: 1;
    background: var(--card-bg);
    border-top: 1px solid var(--border-card);
    /* The reading column, and the room around it. clamp() rather than a media
       query: at 320px the side padding is 1.15rem and the text still has 18rem
       of measure, which is what tests/reflow-320 asks of everything else. */
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.15rem, 4vw, 2.5rem)
             clamp(2.5rem, 6vw, 4rem);
}
.tool-article > article {
    width: min(46rem, 100%);
    margin: 0 auto;
    color: var(--text-primary);
    font-size: var(--fs-base);
    line-height: var(--lh-base);
}
.tool-article h2,
.tool-article h3 {
    font-family: var(--font-heading);
}
.tool-article h4 {
    font-family: var(--font-display);
    font-weight: var(--fw-strong);
    color: var(--text-primary);
    line-height: var(--lh-tight);
}
.tool-article h2 {
    font-size: 1.45rem;
    margin: 0 0 0.9rem;
}
.tool-article h3 {
    font-size: var(--fs-lg);
    margin: 2rem 0 0.6rem;
    /* The one piece of decoration in the sheet: a short accent rule over each
       section, so the article reads as parts rather than as one slab. It is
       DECORATIVE colour on a decorative surface and never carries meaning —
       --accent-color is a fill in this palette and may not be a `color:`. */
    padding-top: 0.9rem;
    border-top: 2px solid var(--border-color);
}
.tool-article h4 {
    font-size: var(--fs-base);
    margin: 1.15rem 0 0.25rem;
}
.tool-article p {
    margin: 0 0 0.8rem;
    overflow-wrap: anywhere;
}
.tool-article .art-lead {
    font-size: var(--fs-base);
    color: var(--text-secondary);
}
.tool-article strong { font-weight: 700; }
/* A LINK IN A SENTENCE IS STILL A TAP TARGET. Measured, not anticipated:
   tests/reflow-320.html went red the first time this article was in the tree —
   "no interactive target under 24 px — 2: a 103x17, a 128x16" — because an
   inline <a> is only as tall as its own text, and 0.95rem of text is 17 px.
   SC 2.5.8 does carry a "target in a sentence" exception; the gate does not
   implement one, and it is right not to: an exception a scanner has to judge
   is an exception that gets argued for. inline-block plus a floor grows the
   BOX and leaves the sentence exactly the size it was — a bigger font would
   have been the other way round. */
.tool-article a {
    display: inline-block;
    min-height: 24px;
    color: var(--accent-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.tool-article a:hover { text-decoration-thickness: 2px; }

/* The FAQ. A definition list, styled the way the app's own info notes style
   theirs (.in-term / .in-detail near the foot of this file): the question is
   the thing you scan for, so it is heavier and in the readable pink, and the
   answer is ordinary body text one indent in. */
.tool-article .art-faq {
    margin: 0.6rem 0 0;
}
.tool-article .art-faq dt {
    margin-top: 1.15rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-base);
    color: var(--accent-text);
}
.tool-article .art-faq dt:first-child { margin-top: 0; }
.tool-article .art-faq dd {
    margin: var(--space-hug) 0 0;
    overflow-wrap: anywhere;
}
.tool-article .art-more {
    margin-top: 2rem;
    padding-top: 1.1rem;
    border-top: 2px solid var(--border-color);
}
.tool-article .art-brand {
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--text-secondary);
}
