/* MSDS (Safety Data Sheet) — feature styles (msds-) layered on mds.css.
   The page reads like an actual SDS document (issue #39): ONE column of numbered sections on a
   narrow sheet instead of the mds-cards grid. The sections still carry the .mds-card /
   .mds-card__head primitive classes — they are what the render-parity extractor keys off — so
   everything below is a feature-scoped override of the card look, never a change to the system. */

/* The sheet: a single column at document width; the gap separates the sixteen GHS sections, which
   are ALWAYS all there (issue #55) — a section without data shows .msds-section__empty. */
.msds-sheet {
    display: flex;
    flex-direction: column;
    gap: var(--mds-space-6);
    max-width: 860px;
}

/* Section head, GHS-style: the "SECTION n" kicker, the title below it, one rule under both. */
.msds-section__head {
    margin-bottom: var(--mds-space-3);
    padding-bottom: var(--mds-space-2);
    border-bottom: 2px solid var(--mds-line);
}

.msds-section__kicker {
    margin: 0 0 var(--mds-space-0-5);
    color: var(--mds-muted);
    font-size: var(--mds-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* The title IS the card head (the fact-carrying class), so the card look — accent rule, icon row,
   flex layout — is overridden here into a document heading. Scoped to .msds-section, so every
   other view's cards are untouched. */
.msds-section .mds-card__head {
    display: block;
    margin: 0;
    padding: 0;
    border-bottom: none;
    color: var(--mds-title);
    font-size: var(--mds-text-lg);
    font-weight: 600;
    line-height: 1.3;
}

/* The stub body of a section MIRACLE has no data for: one quiet muted line, so an empty chapter
   reads as "nothing known" and never as loud as a chapter that carries content. */
.msds-section__empty {
    margin: 0;
    color: var(--mds-muted);
    font-size: var(--mds-text-sm);
}

/* A merged section (GHS 2, GHS 8) keeps each legacy block as a sub-block with its own heading —
   muted and small so it stays clearly below the section head in the hierarchy. */
.msds-subsection + .msds-subsection {
    margin-top: var(--mds-space-5);
    padding-top: var(--mds-space-3);
    border-top: 1px solid var(--mds-line);
}

/* A label, not a heading: the block content brings its own bold lead sentences, so an ordinary
   bold sub-heading would read WEAKER than the prose under it. Muted + semi-bold keeps it a quiet
   block marker instead of a competing headline.

   It must also stay TELLABLE APART from the section kicker above it (#55 review): uppercase xs/700
   letter-spaced made the two levels look nearly identical. The kicker keeps that treatment - it is
   the document's "SECTION n" stamp - and the sub-block label is sentence case at sm, so size, case
   and letter-spacing all separate the two levels. The rule above the block does the rest. */
.msds-subsection__title {
    margin: 0 0 var(--mds-space-2);
    color: var(--mds-muted);
    font-size: var(--mds-text-sm);
    font-weight: 600;
    letter-spacing: 0;
}

/* Prose is capped at a readable measure instead of running the full sheet width — the PPE
   disclaimer is prose too, so it follows the same measure instead of stretching the sheet. */
.msds-prose,
.msds-section .mds-disclaimer {
    max-width: var(--mds-measure);
}

/* PPE: the cargo's hazard label belongs to the wear instruction below it — tighten the vertical
   rhythm so the two read as one block. */
.msds-ppe .msds-ppe__label {
    margin-bottom: var(--mds-space-1);
}

.msds-ppe .msds-ppe__wear {
    margin-top: 0;
    color: var(--mds-text);
}
