/* ==========================================================================
   The document body inside the public reader.
   The board carries the summary; this is where the text has to read well.
   Full-width sections separated by rules, one clear heading per chapter, and
   room for whatever formatting the candidate applied.
   ========================================================================== */

/* The reader caps its own stage; a document rendered without the rail still
   needs a measure of its own. */
.mp-reading .mp-document {
    max-width: 74ch;
}

.mp-document .manifesto-chapter {
    padding-top: 2.25rem;
    margin-top: 2.25rem;
    border-top: 1px solid rgba(11, 22, 19, 0.12);
}

.mp-document .manifesto-chapter:first-child {
    padding-top: 0;
    margin-top: 0;
    border-top: 0;
}

.manifesto-chapter-title {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin: 0 0 1.25rem;
    color: #0b1613;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.manifesto-chapter-number {
    flex: none;
    color: #12b76a;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

/* ---------- the colour code ----------
   Each answer sits in its own soft panel, tinted for the question it answers:
   amber is the problem, green the promise, blue the plan, violet the result.

   The panel is plain - no stripe down the edge, no border anywhere. The tint is
   the whole card, and the label carries the word as well as the colour, because
   colour on its own is not something everyone can see. */
.manifesto-chapter-block {
    --prompt-accent: #334155;

    margin-bottom: 1.1rem;
    padding: 1rem 1.2rem;
    border-radius: 0.9rem;

    /* Flat hex, a few points off white. No alpha, no rgba(): what is written here
       is exactly what is painted, whatever the card sits on. The coloured dot and
       word above each answer carry the signal; this is only a hint of a field. */
    background: #fdfdfe;
}

.manifesto-chapter-block:last-child {
    margin-bottom: 0;
}

.manifesto-chapter-block.is-problem {
    --prompt-accent: #b45309;
    background: #fefdfb;
}

.manifesto-chapter-block.is-commitment {
    --prompt-accent: #15803d;
    background: #fbfdfc;
}

.manifesto-chapter-block.is-implementation {
    --prompt-accent: #1d4ed8;
    background: #fbfcfe;
}

.manifesto-chapter-block.is-outcomes {
    --prompt-accent: #6d28d9;
    background: #fdfbfe;
}

.manifesto-chapter-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.6rem;
    color: var(--prompt-accent);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.manifesto-chapter-label::before {
    content: "";
    flex: none;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--prompt-accent);
}

/* ---------- prose ---------- */
.manifesto-chapter p {
    margin: 0 0 1.1rem;
    color: #2f3a35;
    font-size: 1rem;
    line-height: 1.78;
}

.manifesto-chapter p:last-child {
    margin-bottom: 0;
}

/* The candidate's first paragraph of a chapter carries a little more weight. */
.manifesto-chapter-block:first-of-type p:first-of-type {
    color: #16211d;
    font-size: 1rem;
    line-height: 1.7;
}

.manifesto-chapter ul,
.manifesto-chapter ol {
    margin: 0 0 1.1rem;
    padding-left: 1.4rem;
}

.manifesto-chapter ul { list-style: disc; }
.manifesto-chapter ol { list-style: decimal; }

.manifesto-chapter li {
    margin-bottom: 0.4rem;
    color: #2f3a35;
    font-size: 1rem;
    line-height: 1.72;
}

.manifesto-chapter strong {
    color: #0b1613;
    font-weight: 800;
}

.manifesto-chapter blockquote {
    margin: 1.75rem 0;
    padding: 0.35rem 0 0.35rem 1.25rem;
    border-left: 3px solid #12b76a;
    color: #26332e;
    font-size: 1rem;
    font-style: italic;
    line-height: 1.7;
}

/* Sub-headings the candidate adds. The question label is also an h3, so it is
   excluded by class rather than by position. */
.manifesto-chapter-block h3:not(.manifesto-chapter-label),
.manifesto-chapter > h3:not(.manifesto-chapter-label) {
    margin: 1.9rem 0 0.6rem;
    color: #0b1613;
    font-size: clamp(1.18rem, 2.1vw, 1.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.3;
}

.manifesto-chapter-block h4,
.manifesto-chapter > h4 {
    margin: 1.6rem 0 0.5rem;
    color: #0b1613;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.35;
}

.manifesto-chapter a {
    color: #0f766e;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.manifesto-chapter-figure {
    margin: 1.75rem 0 0;
}

.manifesto-chapter-figure img {
    display: block;
    width: 100%;
    border-radius: 0.85rem;
}

.manifesto-empty {
    color: #64756d;
    line-height: 1.7;
}