/* view.php page styles, and the protocol document inside print.php (the
   print book and the offline app load this sheet too).
   Page frame: view.php sits in the shared .page-shell (1400px) with the
   .doc-topbar above a .doc-card capped at 1100px (includes/styles.css,
   where .proto-card / .proto-header alias the card and its head band),
   so the readable measure lives on the document while the back pill and
   Print / Offline app pills line up with every other page. */

/* print.php's document card (the print book and the offline app; view.php
   uses .doc-card). The shared alias in styles.css gives it the structure,
   white paper and the dark near-black recipe; it keeps its own 1px
   hairline, 18px corners and deeper shadow here. print.php's own print
   sheet squares it off on paper. */
.proto-card {
    border: 1px solid rgba(30, 58, 95, 0.18);
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.12),
                0 2px 8px rgba(15, 23, 42, 0.06);
}

/* Back-to-top — fades in after the reader is well into the document.
   Navy chrome in both themes; a light rim keeps it visible on the
   dark page. The focus ring is the global one (drawn on the page, not
   the chrome gold, which fails on light surfaces); a focused button
   shows even while it is otherwise hidden. */
.proto-backtop {
    position: fixed;
    right: 1.25rem;
    bottom: 1.5rem;
    z-index: 900;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: var(--brand-navy-3);
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--elev-3);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, filter 0.15s ease;
}
.proto-backtop.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.proto-backtop:focus-visible {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}
.proto-backtop:hover { filter: brightness(1.25); }
[data-theme="dark"] .proto-backtop { border-color: var(--frame-listing); }
/* Reduced motion: the button fades in place instead of sliding up. */
@media (prefers-reduced-motion: reduce) {
    .proto-backtop {
        transform: none;
        transition: opacity 0.2s ease, filter 0.15s ease;
    }
}

/* Smooth in-page jumps for the #N cross-links, with enough scroll
   margin that a jumped-to card lands below the site navbar. Smooth only
   when the visitor hasn't asked for reduced motion; this sheet loads after
   styles.css, so an unguarded rule would beat its reduce-motion reset. */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
.proto-group[id] { scroll-margin-top: calc(var(--proto-nav-offset, 76px) + 56px); }

/* Header — the document card's navy head band (.doc-card-head /
   .proto-header in styles.css). Protocol number sits centered above the
   title as a deliberate pill badge.
   Clinical field-guide typography: the document header uses the site's
   Inter stack at heavy weights with tight tracking — reads as a modern
   clinical reference rather than the old typewriter Courier look. */
.proto-header-number {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--brand-navy-3);
    background: rgba(255, 255, 255, 0.94);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    margin-bottom: 0.65rem;
}

.proto-header-title {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0;
}

.proto-header-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-gold);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-top: 0.55rem;
    border-bottom: 1px solid rgba(217, 179, 128, 0.65);
    display: inline-block;
    padding-bottom: 3px;
}

/* Cert legend — key under the header naming the provider levels this
   protocol covers, in the same fill/label colours as the per-block
   strips (inline --cert-bg / --cert-fg from PROTOCOL_CERT_LEVELS in
   render-blocks.php). Replaces the old, unused .proto-cert-bar. */
.proto-cert-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.75rem;
    padding: 0.65rem 2rem;
    background: var(--neutral-bg, #F5F7FA);
    border-bottom: 1px solid var(--border-soft, #D4E1EC);
}
.proto-cert-legend-label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.proto-cert-legend-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.proto-cert-chip {
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    background-color: var(--cert-bg, #6b7280);
    color: var(--cert-fg, #fff);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.25;
    white-space: nowrap;
}
.proto-cert-chip abbr { text-decoration: none; cursor: help; }
.proto-cert-legend-hint {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* Block content area */
.proto-blocks {
    padding: 0;
}

/* Section Header — larger and more prominent so it reads as a real
   division between phases of the protocol rather than an inline tag.
   Padding lives on the inner <h2> rather than the parent so the cert
   band (first-child) can fill the full outer width. */
.proto-section-header {
    background: linear-gradient(180deg, #f8fafc, #eef2f7);
    border-bottom: 2px solid #cbd5e1;
    border-left: 6px solid #1e3a5f; /* color overridden per-block inline */
    margin-top: 1.25rem;
    overflow: hidden;
    text-align: center;
}
.proto-section-header:first-child { margin-top: 0; }

[data-theme="dark"] .proto-section-header {
    background: #1e293b;
    border-bottom-color: #475569;
}

.proto-section-header h2 {
    margin: 0;
    padding: 1.5rem 2rem 1.2rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
}

/* Decision — full wraparound border in the navy accent so the card
   reads as a single framed unit rather than a panel with a colored
   tab on one side. */
.proto-decision {
    margin: 1rem 2rem;
    border: 2px solid #1e3a5f;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

[data-theme="dark"] .proto-decision {
    background: #1e293b;
    border-color: #cbd5e1;
}

.proto-decision-question {
    padding: 1rem 1.35rem;
    background: #eef2f7;
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.5;
    color: #1e3a5f;
}

[data-theme="dark"] .proto-decision-question {
    background: #0f1e33;
    color: #93c5fd;
}

/* Rich-text children (Quill output). Reset default paragraph margins so
   the question reads as one block, and tame list spacing to fit inside
   the decision header strip. */
.proto-decision-question > :first-child { margin-top: 0; }
.proto-decision-question > :last-child  { margin-bottom: 0; }
.proto-decision-question p { margin: 0 0 0.4rem; }
.proto-decision-question ul,
.proto-decision-question ol { margin: 0.15rem 0 0.35rem; padding-left: 1.5rem; }
.proto-decision-question li { margin: 0.1rem 0; font-weight: 600; }
/* The question's paragraphs, list items and bold runs read in the body
   text colour, not the navy / light-blue box colour (the legacy
   readability battery did this before view.php took body.fl-v2; the
   battery still does it in print.php). */
.proto-decision-question :is(p, ul, ol, li, strong, b) { color: var(--text-primary); }
.proto-decision-question a { color: var(--primary-soft); text-decoration: underline; }
.proto-decision-question h1 { font-size: 1.4rem; font-weight: 800; margin: 0.35rem 0 0.3rem; line-height: 1.25; }
.proto-decision-question h2 { font-size: 1.2rem; font-weight: 800; margin: 0.3rem 0 0.25rem; line-height: 1.3; }
.proto-decision-question h3 { font-size: 1.05rem; font-weight: 800; margin: 0.25rem 0 0.2rem; line-height: 1.35; }

/* Quill alignment classes (default = left = no class). Applied to any
   block element inside rich-text fields (info-box content, decision
   question, etc.). */
.ql-align-center { text-align: center; }
.ql-align-right  { text-align: right; }
.ql-align-justify { text-align: justify; }

/* Quill indentation levels (editor indent buttons). 2em per step keeps
   deep indents usable on phone-width cards. */
.ql-indent-1 { padding-left: 2em; }
.ql-indent-2 { padding-left: 4em; }
.ql-indent-3 { padding-left: 6em; }
.ql-indent-4 { padding-left: 8em; }
.ql-indent-5 { padding-left: 10em; }
.ql-indent-6 { padding-left: 12em; }
.ql-indent-7 { padding-left: 14em; }
.ql-indent-8 { padding-left: 16em; }

/* Images pasted from the media library: never wider than the card. */
.proto-info-content img,
.proto-decision-question img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0.5rem 0;
}

.proto-decision-branches {
    display: flex;
    flex-direction: column;
}

.proto-branch {
    flex: 1;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.proto-branch-yes {
    border-bottom: 1px solid #e5e7eb;
    background: #f0fdf4; /* very light green */
}

.proto-branch-no {
    background: #fef2f2; /* very light red */
}

[data-theme="dark"] .proto-branch-yes {
    border-bottom-color: #374151;
    background: color-mix(in srgb, #22c55e 10%, transparent);
}

[data-theme="dark"] .proto-branch-no {
    background: color-mix(in srgb, #ef4444 10%, transparent);
}

/* Linkable branches: identical visuals to static ones at rest (color
   inherits so the green/red washes stay) — the affordance is entirely in
   the mouseover / press states and the native tooltip. The click is
   intercepted by page script for smooth scrolling. */
a.proto-branch { color: inherit; text-decoration: none; }
a.proto-branch-link {
    cursor: pointer;
    transition: filter 0.12s ease, box-shadow 0.12s ease, transform 0.08s ease;
}
a.proto-branch-link:hover {
    filter: brightness(0.94);
    box-shadow: inset 3px 0 0 rgba(30, 58, 95, 0.45);
}
a.proto-branch-link:active {
    transform: scale(0.985);
    filter: brightness(0.9);
}
a.proto-branch-link:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: -2px;
}
[data-theme="dark"] a.proto-branch-link:hover {
    filter: brightness(1.25);
    box-shadow: inset 3px 0 0 rgba(160, 180, 220, 0.5);
}
[data-theme="dark"] a.proto-branch-link:active { filter: brightness(1.35); }
/* Flash ring on the card a branch jump lands on: a double pulse to
   catch the eye, then a thick glowing ring that holds before fading. */
.proto-card-flash { animation: protoCardFlash 3s ease; }
@keyframes protoCardFlash {
    0%   { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.95), 0 0 26px 8px rgba(220, 38, 38, 0.45); }
    12%  { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.45), 0 0 12px 3px rgba(220, 38, 38, 0.2); }
    24%, 70% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.95), 0 0 26px 8px rgba(220, 38, 38, 0.45); }
    100% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0), 0 0 26px 8px rgba(220, 38, 38, 0); }
}
[data-theme="dark"] .proto-card-flash { animation-name: protoCardFlashDark; }
@keyframes protoCardFlashDark {
    0%   { box-shadow: 0 0 0 6px rgba(248, 113, 113, 0.95), 0 0 26px 8px rgba(248, 113, 113, 0.4); }
    12%  { box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.45), 0 0 12px 3px rgba(248, 113, 113, 0.18); }
    24%, 70% { box-shadow: 0 0 0 6px rgba(248, 113, 113, 0.95), 0 0 26px 8px rgba(248, 113, 113, 0.4); }
    100% { box-shadow: 0 0 0 6px rgba(248, 113, 113, 0), 0 0 26px 8px rgba(248, 113, 113, 0); }
}

.proto-branch-label {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 5px;
    flex-shrink: 0;
    letter-spacing: 0.04em;
}

.proto-branch-yes .proto-branch-label {
    background: #dcfce7;
    color: #166534;
}

[data-theme="dark"] .proto-branch-yes .proto-branch-label {
    background: #14532d;
    color: #86efac;
}

.proto-branch-no .proto-branch-label {
    background: #fef2f2;
    color: #991b1b;
}

[data-theme="dark"] .proto-branch-no .proto-branch-label {
    background: #7f1d1d;
    color: #fca5a5;
}

.proto-branch-target {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text-primary);
}

/* Info Box. Padding lives on .proto-info-title / .proto-info-content
   rather than the parent so the cert band (rendered first) can fill
   the full outer width. overflow:hidden clips the band to the
   rounded corners. Each style gets a uniform 2px wraparound border
   in its accent color so the card reads as a framed unit. */
.proto-info-box {
    margin: 1rem 2rem;
    border-radius: 8px;
    /* Same frame as the decision block: navy in light mode, light grey
       in dark (set below) — the per-style identity lives in the interior
       tint and title color instead of the border. */
    border: 2px solid #1e3a5f;
    overflow: hidden;
}
[data-theme="dark"] .proto-info-box {
    border-color: #cbd5e1;
}

/* Each info-box style carries its own accent so the three kinds scan
   differently at a glance: Info = clinical blue, Highlight = caution
   amber, Reference = neutral slate. The 2px wraparound frame is shared
   with the decision/group blocks so the page still reads as one
   family — only the accent color and interior tint change. */
.proto-info-box.info-style-info {
    background: #eff6ff;
}
.proto-info-box.info-style-info .proto-info-title { color: #1e40af; }

[data-theme="dark"] .proto-info-box.info-style-info {
    background: #14263f;
}
[data-theme="dark"] .proto-info-box.info-style-info .proto-info-title { color: #93c5fd; }

.proto-info-box.info-style-reference {
    background: #f8fafc;
}
.proto-info-box.info-style-reference .proto-info-title { color: #334155; }

[data-theme="dark"] .proto-info-box.info-style-reference {
    background: #1f2937;
}
[data-theme="dark"] .proto-info-box.info-style-reference .proto-info-title { color: #cbd5e1; }

.proto-info-box.info-style-highlight {
    background: #fffbeb;
}
.proto-info-box.info-style-highlight .proto-info-title { color: #92400e; }

[data-theme="dark"] .proto-info-box.info-style-highlight {
    background: #451a03;
}
[data-theme="dark"] .proto-info-box.info-style-highlight .proto-info-title { color: #fcd34d; }

/* Four styles added for the NCPP book. Same 2px shared frame; the
   identity is the interior tint plus a colored left rail so the kind
   scans at a glance even inside a group card:
     contra  = red, contraindications / do-not / warnings
     peds    = purple, pediatric-specific content
     alert   = green, alert criteria (cardiac / stroke / trauma / sepsis)
     consult = orange, base contact / physician consult required */
.proto-info-box.info-style-contra  { background: #fef2f2; box-shadow: inset 6px 0 0 #dc2626; }
.proto-info-box.info-style-contra  .proto-info-title { color: #991b1b; }
.proto-info-box.info-style-peds    { background: #f5f3ff; box-shadow: inset 6px 0 0 #7c3aed; }
.proto-info-box.info-style-peds    .proto-info-title { color: #5b21b6; }
.proto-info-box.info-style-alert   { background: #ecfdf5; box-shadow: inset 6px 0 0 #059669; }
.proto-info-box.info-style-alert   .proto-info-title { color: #065f46; }
.proto-info-box.info-style-consult { background: #fff7ed; box-shadow: inset 6px 0 0 #ea580c; }
.proto-info-box.info-style-consult .proto-info-title { color: #9a3412; }
[data-theme="dark"] .proto-info-box.info-style-contra  { background: #3b0d0d; box-shadow: inset 6px 0 0 #ef4444; }
[data-theme="dark"] .proto-info-box.info-style-contra  .proto-info-title { color: #fca5a5; }
[data-theme="dark"] .proto-info-box.info-style-peds    { background: #2e1065; box-shadow: inset 6px 0 0 #a78bfa; }
[data-theme="dark"] .proto-info-box.info-style-peds    .proto-info-title { color: #c4b5fd; }
[data-theme="dark"] .proto-info-box.info-style-alert   { background: #052e1c; box-shadow: inset 6px 0 0 #34d399; }
[data-theme="dark"] .proto-info-box.info-style-alert   .proto-info-title { color: #6ee7b7; }
[data-theme="dark"] .proto-info-box.info-style-consult { background: #431407; box-shadow: inset 6px 0 0 #fb923c; }
[data-theme="dark"] .proto-info-box.info-style-consult .proto-info-title { color: #fdba74; }
/* The rail survives inside a group card, where the tint is muted. */
.proto-group .proto-info-box.info-style-contra  { background: rgba(220, 38, 38, 0.07); }
.proto-group .proto-info-box.info-style-peds    { background: rgba(124, 58, 237, 0.07); }
.proto-group .proto-info-box.info-style-alert   { background: rgba(5, 150, 105, 0.08); }
.proto-group .proto-info-box.info-style-consult { background: rgba(234, 88, 12, 0.08); }

/* Inside a group card the info box drops its own frame and tint — the
   group already provides the border and surface, and the doubled
   bright border + mismatched panel read as a box-within-a-box. The
   style accent survives on the title color. Root-level info boxes
   (outside groups) keep the full framed treatment. */
.proto-group .proto-info-box {
    background: rgba(255, 255, 255, 0.5);
}
[data-theme="dark"] .proto-group .proto-info-box {
    background: rgba(255, 255, 255, 0.05);
}

/* Tighter side gutters inside a group card — the card frame already
   bounds the content, so the root-level 2rem margins read as wasted
   width in here. */
.proto-group .proto-info-box,
.proto-group .proto-decision {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
}

.proto-info-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.4;
    padding: 1rem 1.25rem 0;
    margin: 0 0 0.55rem;
}
.proto-info-title:last-child {
    /* Title with no content below: include bottom padding too. */
    padding-bottom: 1rem;
    margin-bottom: 0;
}

.proto-info-content {
    font-size: 1.08rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.75;
    padding: 0 1.25rem 1rem;
}
/* No title above (label left empty): the content is the first thing in
   the box and needs the top padding the title normally provides. */
.proto-info-content:first-child { padding-top: 1rem; }
/* Rich-text children (Quill output: <p>, <ul>, <ol>, <strong>, <em>, <a>).
   Reset Quill's default <p> margins so paragraphs flow naturally inside
   the info-box callout, and indent lists so the bullets/numbers sit
   visibly inside the panel rather than pinned to the left edge. */
.proto-info-content > :first-child { margin-top: 0; }
.proto-info-content > :last-child  { margin-bottom: 0; }
.proto-info-content p { margin: 0 0 0.5rem; }
.proto-info-content ul,
.proto-info-content ol { margin: 0.25rem 0 0.5rem; padding-left: 1.5rem; }
.proto-info-content li { margin: 0.15rem 0; }
.proto-info-content a { color: var(--primary-soft); text-decoration: underline; }
/* Header levels from Quill's [{ header: [1,2,3] }] toolbar. */
.proto-info-content h1 { font-size: 1.45rem; font-weight: 800; color: var(--text-primary); margin: 0.6rem 0 0.4rem; line-height: 1.25; }
.proto-info-content h2 { font-size: 1.25rem; font-weight: 800; color: var(--text-primary); margin: 0.55rem 0 0.35rem; line-height: 1.3; }
.proto-info-content h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin: 0.5rem 0 0.3rem; line-height: 1.35; }

/* Per-block cert badges — render as a full-width band across the top
   of the parent block, each pill taking an equal share of the row.
   Reads as a colored header bar that immediately tells the viewer
   which provider levels the block applies to. A small bottom margin
   lifts the block content off the band so the title/question isn't
   crammed against the color strip. Each segment now prints its level
   abbreviation, so the band wraps rather than clip on a narrow phone. */
.proto-block-certs {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 0 0.5rem;
    padding: 0;
}
/* Decision blocks butt the question header right up against the cert
   band — the question's own background reads as a continuation of the
   chrome, no separator gap needed. */
.proto-decision .proto-block-certs { margin-bottom: 0; }

.proto-block-cert-pill {
    /* Equal shares, but never narrower than the abbreviation. */
    flex: 1 1 0;
    min-width: max-content;
    padding: 0.15rem 0.35rem;
    border: 0;
    border-radius: 0;
    /* Fill + paired label colour from PROTOCOL_CERT_LEVELS
       (render-blocks.php), passed inline as --cert-bg / --cert-fg. */
    background-color: var(--cert-bg, #6b7280);
    color: var(--cert-fg, #fff);
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.04em;
    text-align: center;
    white-space: nowrap;
    /* Thin separator between adjacent pills so the band doesn't read
       as a single smear when two cert colors are close. */
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.25);
}
.proto-block-cert-pill:last-child { box-shadow: none; }

/* All three host blocks now keep their inner padding on inner
   elements (.proto-info-title / .proto-info-content / h2 / etc.)
   so the band naturally fills the full outer width as a normal
   flex container — no negative margins, no width:100% gymnastics. */

/* Footer */
.proto-footer {
    padding: 1rem 2rem;
    background: #f8fafc;
    border-top: 2px solid #e2e8f0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

[data-theme="dark"] .proto-footer {
    background: #1e293b;
    border-top-color: #334155;
}

/* Print. The document card's own print rules (top bar hidden, black
   rule, fills kept) are with .doc-card in styles.css; view.php flips
   to the light theme for the print. */
@media print {
    html, body { background: #fff !important; }
    /* Hide site chrome: the sticky header / navbar wrapper, the global
       footer, the admin edit cog and back-to-top. Keep just the
       protocol document. */
    .sticky-header, .site-footer, .admin-edit-cog,
    .proto-backtop { display: none !important; }

    /* No drop shadows or glows on paper (view.php's document only;
       print.php's compact sheet does its own). The info-box colour
       rails are inset shadows that carry meaning, so they still print. */
    .doc-card :is(.proto-group, .proto-group-num, .proto-header-number, .proto-or-divider span) {
        box-shadow: none;
    }

    /* Cert strips carry their abbreviation now; print.php's compact
       sheet pins the segment to a 0.45rem colour bar, so let the
       segment size to its text (child selector outranks that rule). */
    .proto-block-certs > .proto-block-cert-pill {
        height: auto;
        font-size: 0.55rem;
        padding: 0.05rem 0.25rem;
    }
    .proto-cert-legend { padding: 0.35rem 1rem; }
}

/* Responsive — tablet/phone tier. Priorities: reclaim horizontal space
   for the content (narrow block margins), keep body text at a fully
   readable size, and make every interactive surface comfortably
   tappable. */
@media (max-width: 768px) {
    .proto-header-title { font-size: 1.3rem; letter-spacing: 0.02em; }
    .proto-header-subtitle { font-size: 0.75rem; letter-spacing: 0.12em; }
    .proto-backtop { right: 0.85rem; bottom: 1rem; }

    .proto-section-header h2 {
        padding: 1rem 1rem 0.85rem;
        font-size: 1.05rem;
        letter-spacing: 0.06em;
    }

    /* Blocks hug the card edges — 2rem side gutters on a phone wasted
       a third of the screen. */
    .proto-decision { margin: 0.6rem 0.6rem; }
    .proto-info-box { margin: 0.6rem 0.6rem; }
    .proto-group { margin: 1.25rem 0.4rem; border-width: 3px; }
    .proto-footer { padding: 0.75rem 1rem; }

    .proto-info-title { padding: 0.85rem 1rem 0; font-size: 1.1rem; }
    .proto-info-content { padding: 0 1rem 0.85rem; font-size: 1.05rem; line-height: 1.7; }

    .proto-decision-question { padding: 0.85rem 1rem; font-size: 1.1rem; }
    .proto-branch { padding: 0.9rem 1rem; }
    .proto-branch-target { font-size: 1.02rem; }

    /* Cert legend: tighter gutters to match the phone block margins. */
    .proto-cert-legend { padding: 0.55rem 1rem; }

    /* Group header: number + title stay left-justified; long labels
       wrap naturally beside the badge. */
    .proto-group-header {
        gap: 0.5rem;
        padding: 0.55rem 0.75rem;
        flex-wrap: wrap;
    }
    .proto-group-label {
        text-align: left;
        font-size: 1rem;
    }

    .proto-arrow-down { font-size: 2rem; padding: 0.3rem 0; }
    .proto-or-divider span { font-size: 0.82rem; padding: 0.24rem 0.75rem; }
    .proto-or-divider::before, .proto-or-divider::after { flex-basis: 2.25rem; }
}

/* Small phones — squeeze the last chrome out of the way of the text. */
@media (max-width: 420px) {
    .proto-header-title { font-size: 1.15rem; }
    .proto-decision,
    .proto-info-box { margin: 0.5rem 0.4rem; }
    .proto-group { margin: 0.75rem 0.25rem; border-radius: 10px; }
}

/* ============================================================
   Group cards (.proto-group) + down-arrow blocks. A group visually
   wraps a run of sibling blocks (everything from a card_start to
   the next card_start / end) so a protocol can reference "go to
   #X". The number badge in the corner is the anchor the prose can
   point at. Down-arrow blocks insert a flow indicator between
   sibling blocks (or between groups).
   Named .proto-group rather than .proto-card to avoid colliding
   with .proto-card (print.php's name for the document card).
   ============================================================ */
.proto-group {
    position: relative;
    margin: 1.75rem 1.25rem;
    border: 4px solid #1e3a5f;
    border-radius: 16px;
    transition: box-shadow 0.2s ease;
    /* Slate tint sits a step darker than the document body so the
       group outlines clearly as a distinct surface. */
    background: #d4dde9;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.14),
                inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.proto-group:hover {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
[data-theme="dark"] .proto-group {
    /* The document wrapper sits on a near-black surface; the group
       needs to read distinct against it. Darker navy-slate +
       primary-tinted border gives clear lift. */
    background: #0f1c33;
    border-color: color-mix(in srgb, var(--primary-soft) 45%, #475569);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
[data-theme="dark"] .proto-group:hover {
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.7),
                inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Group header bar: number badge + title, left-justified. */
.proto-group-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0.8rem 1.1rem;
    background: linear-gradient(135deg, #1e3a5f, #2c4f7c);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
[data-theme="dark"] .proto-group-header {
    background: linear-gradient(135deg, #2c4f7c, #3a6299);
    border-bottom-color: rgba(255, 255, 255, 0.18);
}

.proto-group-num {
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.8rem;
    border-radius: 999px;
    background: #ffffff;
    color: #1e3a5f;
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: -0.01em;
}

.proto-group-label {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.02em;
    line-height: 1.35;
    text-align: left;
}

/* Cross-card "go to #X" anchor. JS rewrites bare #N text into one
   of these when N matches a numbered card on the page. Reads as a
   subtle inline pill in the primary color so the link is obvious
   but doesn't dominate the surrounding step/note. */
.proto-card-ref {
    display: inline-block;
    padding: 0.05rem 0.4rem;
    margin: 0 0.05rem;
    background: color-mix(in srgb, var(--primary-soft) 12%, transparent);
    color: var(--primary-soft);
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85em;
    text-decoration: none;
    border: 1px solid color-mix(in srgb, var(--primary-soft) 30%, transparent);
    transition: background 0.15s ease, border-color 0.15s ease;
}
.proto-card-ref:hover,
.proto-card-ref:focus {
    background: color-mix(in srgb, var(--primary-soft) 22%, transparent);
    border-color: var(--primary-soft);
    color: var(--primary-soft);
    text-decoration: none;
}
/* Brief highlight when a card is the scroll target. CSS-only,
   triggered by the :target pseudo-class — no JS animation needed. */
.proto-group:target {
    animation: proto-group-flash 1.6s ease-out;
}
@keyframes proto-group-flash {
    0%, 30% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-soft) 35%, transparent); }
    100% { box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7); }
}

.proto-group-body {
    padding: 0.25rem 0 0.5rem;
}
/* Section header as the first child sits flush against the card-number
   bar — drop its own top margin too. Inner-card section headers don't
   need the divider line at the bottom when they're the last child. */
.proto-group-body > .proto-section-header:first-child {
    margin-top: 0;
}
.proto-group-body > .proto-section-header:last-child {
    border-bottom: none;
}

/* Down arrow — wide red flow indicator between siblings or cards. */
.proto-arrow-down {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.65rem 0;
    color: #dc2626;
    font-size: 2.75rem;
    filter: drop-shadow(0 2px 4px rgba(220, 38, 38, 0.3));
    line-height: 1;
}
.proto-arrow-down i { display: inline-block; }
[data-theme="dark"] .proto-arrow-down {
    color: #f87171;
}

/* Education-only disclaimer banner (admin toggle) — shown on the
   viewer, the printable book, and every screen of the offline app. */
/* Edition mark under the header: New / Updated pill and what changed. */
.proto-change {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin: 0 0 0.75rem;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid var(--border-medium);
    border-left-width: 4px;
    border-left-color: var(--info-fill, #2E5C8A);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.45;
}
.proto-change.is-new { border-left-color: var(--success-fill, #1E7345); }
.proto-change > span:last-child { flex: 1 1 16rem; }
@media print {
    .proto-change { background: #fff; color: #000; border-color: #000; }
}

.proto-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: #fef3c7;
    border: 1.5px solid #f59e0b;
    border-left-width: 4px;
    border-radius: 10px;
    color: #92400e;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.45;
    padding: 0.65rem 0.9rem;
    margin: 0 0 1rem;
}
.proto-disclaimer i { font-size: 1.05rem; flex-shrink: 0; margin-top: 0.05rem; }
[data-theme="dark"] .proto-disclaimer {
    background: color-mix(in srgb, #f59e0b 12%, transparent);
    border-color: #b45309;
    color: #fcd34d;
}
@media print {
    .proto-disclaimer { background: #fff; color: #000; border-color: #000; }
}

/* OR / THEN dividers — bold path markers between siblings or cards
   (or_divider and then_divider share this class), same red flow language
   as the down arrow: a pill flanked by rule lines. */
.proto-or-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.45rem 0;
}
.proto-or-divider::before,
.proto-or-divider::after {
    content: "";
    flex: 0 0 3.5rem;
    height: 3px;
    border-radius: 2px;
    background: #dc2626;
    opacity: 0.55;
}
.proto-or-divider span {
    background: #dc2626;
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    padding: 0.3rem 0.95rem;
    border-radius: 999px;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}
[data-theme="dark"] .proto-or-divider::before,
[data-theme="dark"] .proto-or-divider::after { background: #f87171; }
[data-theme="dark"] .proto-or-divider span { background: #b91c1c; }

/* ============ Data table block ============
   Same border language as decisions/info boxes (2px navy, light grey in
   dark mode); navy header row; zebra body; scrolls sideways on narrow
   screens instead of ever widening the card. */
.proto-table-block { margin: 1rem 1.25rem; }
.proto-group .proto-table-block { margin: 0.75rem 1rem; }
.proto-table-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.45rem;
}
.proto-table-scroll {
    overflow-x: auto;
    border: 2px solid #1e3a5f;
    border-radius: 10px;
}
.proto-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}
.proto-table th {
    background: #1e3a5f;
    color: #fff;
    font-weight: 800;
    text-align: left;
    padding: 0.55rem 0.85rem;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.proto-table td {
    padding: 0.5rem 0.85rem;
    border-top: 1px solid rgba(30, 58, 95, 0.22);
    color: var(--text-primary);
    line-height: 1.5;
    vertical-align: top;
}
.proto-table tbody tr:nth-child(even) { background: rgba(30, 58, 95, 0.06); }

[data-theme="dark"] .proto-table-scroll { border-color: #cbd5e1; }
[data-theme="dark"] .proto-table th { background: #1c2c47; color: #cbd5e1; }
[data-theme="dark"] .proto-table td { border-top-color: rgba(203, 213, 225, 0.22); }
[data-theme="dark"] .proto-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.04); }

@media (max-width: 768px) {
    .proto-table-block { margin: 0.75rem 0.6rem; }
    .proto-table { font-size: 0.88rem; }
    .proto-table th { padding: 0.4rem 0.55rem; font-size: 0.8rem; }
    .proto-table td { padding: 0.35rem 0.55rem; }
}

@media print {
    .proto-table-block { page-break-inside: avoid; margin: 0.4rem 0.75rem; }
    .proto-table-title { font-size: 0.88rem; margin-bottom: 0.2rem; }
    .proto-table-scroll { border-width: 1.5px; border-radius: 0; }
    .proto-table { font-size: 0.75rem; }
    .proto-table th { padding: 0.22rem 0.45rem; font-size: 0.7rem; }
    .proto-table td { padding: 0.2rem 0.45rem; }
    .proto-table th, .proto-table tbody tr:nth-child(even) {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* ============ List markers: per-indent delineation + chosen styles ====
   Quill stores nested lists FLAT: one <ol>/<ul> whose <li>s carry
   ql-indent-N classes. Browser markers would number indented items as
   part of the parent sequence, so markers are drawn here with CSS
   counters instead — each indent level keeps its own counter and its
   own marker style (1. -> a. -> i., and bullets cycle dot -> circle ->
   square), matching what the editor shows.
   A creator-chosen style (the editor's List style dropdown, stored as
   ql-liststyle-*) overrides the automatic per-level marker. */
.proto-info-content ol, .proto-decision-question ol,
.proto-info-content ul, .proto-decision-question ul {
    list-style: none;
    counter-reset: pl-0 pl-1 pl-2 pl-3;
}
.proto-info-content li::before, .proto-decision-question li::before {
    display: inline-block;
    white-space: nowrap;
    width: 1.5em;
    margin-left: -1.5em;
    margin-right: 0.35em;
    text-align: right;
    /* Brand-red markers — numbers, letters, and bullets alike stand out
       from the body text. Every marker variant below only changes
       `content`, so this one rule colors them all. */
    color: #c0392b;
    font-weight: 700;
}
[data-theme="dark"] .proto-info-content li::before,
[data-theme="dark"] .proto-decision-question li::before { color: #f87171; }

/* Numbered: counter per indent level; each item resets deeper levels. */
.proto-info-content ol li, .proto-decision-question ol li {
    counter-increment: pl-0;
    counter-reset: pl-1 pl-2 pl-3;
}
.proto-info-content ol li::before, .proto-decision-question ol li::before { content: counter(pl-0, decimal) '.'; }
.proto-info-content ol li.ql-indent-1, .proto-decision-question ol li.ql-indent-1 {
    counter-increment: pl-1;
    counter-reset: pl-2 pl-3;
}
.proto-info-content ol li.ql-indent-1::before, .proto-decision-question ol li.ql-indent-1::before { content: counter(pl-1, lower-alpha) '.'; }
.proto-info-content ol li.ql-indent-2, .proto-decision-question ol li.ql-indent-2 {
    counter-increment: pl-2;
    counter-reset: pl-3;
}
.proto-info-content ol li.ql-indent-2::before, .proto-decision-question ol li.ql-indent-2::before { content: counter(pl-2, lower-roman) '.'; }
.proto-info-content ol li.ql-indent-3, .proto-decision-question ol li.ql-indent-3 {
    counter-increment: pl-3;
    counter-reset: none;
}
.proto-info-content ol li.ql-indent-3::before, .proto-decision-question ol li.ql-indent-3::before { content: counter(pl-3, decimal) '.'; }

/* Bulleted: marker cycles by indent level. */
.proto-info-content ul li::before, .proto-decision-question ul li::before { content: '\2022'; }
.proto-info-content ul li.ql-indent-1::before, .proto-decision-question ul li.ql-indent-1::before { content: '\25E6'; }
.proto-info-content ul li.ql-indent-2::before, .proto-decision-question ul li.ql-indent-2::before { content: '\25AA'; }
.proto-info-content ul li.ql-indent-3::before, .proto-decision-question ul li.ql-indent-3::before { content: '\2022'; }

/* Creator-chosen styles override the automatic level marker.
   Numbered styles use whichever counter belongs to the item's level. */
.proto-info-content ol li.ql-liststyle-decimal::before, .proto-decision-question ol li.ql-liststyle-decimal::before { content: counter(pl-0, decimal) '.'; }
.proto-info-content ol li.ql-liststyle-alpha::before, .proto-decision-question ol li.ql-liststyle-alpha::before { content: counter(pl-0, lower-alpha) '.'; }
.proto-info-content ol li.ql-liststyle-roman::before, .proto-decision-question ol li.ql-liststyle-roman::before { content: counter(pl-0, lower-roman) '.'; }
.proto-info-content ol li.ql-indent-1.ql-liststyle-decimal::before, .proto-decision-question ol li.ql-indent-1.ql-liststyle-decimal::before { content: counter(pl-1, decimal) '.'; }
.proto-info-content ol li.ql-indent-1.ql-liststyle-alpha::before, .proto-decision-question ol li.ql-indent-1.ql-liststyle-alpha::before { content: counter(pl-1, lower-alpha) '.'; }
.proto-info-content ol li.ql-indent-1.ql-liststyle-roman::before, .proto-decision-question ol li.ql-indent-1.ql-liststyle-roman::before { content: counter(pl-1, lower-roman) '.'; }
.proto-info-content ol li.ql-indent-2.ql-liststyle-decimal::before, .proto-decision-question ol li.ql-indent-2.ql-liststyle-decimal::before { content: counter(pl-2, decimal) '.'; }
.proto-info-content ol li.ql-indent-2.ql-liststyle-alpha::before, .proto-decision-question ol li.ql-indent-2.ql-liststyle-alpha::before { content: counter(pl-2, lower-alpha) '.'; }
.proto-info-content ol li.ql-indent-2.ql-liststyle-roman::before, .proto-decision-question ol li.ql-indent-2.ql-liststyle-roman::before { content: counter(pl-2, lower-roman) '.'; }
.proto-info-content ol li.ql-indent-3.ql-liststyle-decimal::before, .proto-decision-question ol li.ql-indent-3.ql-liststyle-decimal::before { content: counter(pl-3, decimal) '.'; }
.proto-info-content ol li.ql-indent-3.ql-liststyle-alpha::before, .proto-decision-question ol li.ql-indent-3.ql-liststyle-alpha::before { content: counter(pl-3, lower-alpha) '.'; }
.proto-info-content ol li.ql-indent-3.ql-liststyle-roman::before, .proto-decision-question ol li.ql-indent-3.ql-liststyle-roman::before { content: counter(pl-3, lower-roman) '.'; }

/* Bullet style choices apply at any indent level (declared after the
   indent rules so they win the cascade at equal specificity). */
.proto-info-content ul li.ql-liststyle-disc::before, .proto-decision-question ul li.ql-liststyle-disc::before,
.proto-info-content ul li.ql-indent-1.ql-liststyle-disc::before, .proto-decision-question ul li.ql-indent-1.ql-liststyle-disc::before,
.proto-info-content ul li.ql-indent-2.ql-liststyle-disc::before, .proto-decision-question ul li.ql-indent-2.ql-liststyle-disc::before,
.proto-info-content ul li.ql-indent-3.ql-liststyle-disc::before, .proto-decision-question ul li.ql-indent-3.ql-liststyle-disc::before { content: '\2022'; }
.proto-info-content ul li.ql-liststyle-circle::before, .proto-decision-question ul li.ql-liststyle-circle::before,
.proto-info-content ul li.ql-indent-1.ql-liststyle-circle::before, .proto-decision-question ul li.ql-indent-1.ql-liststyle-circle::before,
.proto-info-content ul li.ql-indent-2.ql-liststyle-circle::before, .proto-decision-question ul li.ql-indent-2.ql-liststyle-circle::before,
.proto-info-content ul li.ql-indent-3.ql-liststyle-circle::before, .proto-decision-question ul li.ql-indent-3.ql-liststyle-circle::before { content: '\25E6'; }
.proto-info-content ul li.ql-liststyle-square::before, .proto-decision-question ul li.ql-liststyle-square::before,
.proto-info-content ul li.ql-indent-1.ql-liststyle-square::before, .proto-decision-question ul li.ql-indent-1.ql-liststyle-square::before,
.proto-info-content ul li.ql-indent-2.ql-liststyle-square::before, .proto-decision-question ul li.ql-indent-2.ql-liststyle-square::before,
.proto-info-content ul li.ql-indent-3.ql-liststyle-square::before, .proto-decision-question ul li.ql-indent-3.ql-liststyle-square::before { content: '\25AA'; }
.proto-info-content ul li.ql-liststyle-dash::before, .proto-decision-question ul li.ql-liststyle-dash::before,
.proto-info-content ul li.ql-indent-1.ql-liststyle-dash::before, .proto-decision-question ul li.ql-indent-1.ql-liststyle-dash::before,
.proto-info-content ul li.ql-indent-2.ql-liststyle-dash::before, .proto-decision-question ul li.ql-indent-2.ql-liststyle-dash::before,
.proto-info-content ul li.ql-indent-3.ql-liststyle-dash::before, .proto-decision-question ul li.ql-indent-3.ql-liststyle-dash::before { content: '\2013'; }

/* Single "Lists" button era: bullets are a chosen STYLE, so they can sit
   on <ol> items; and legacy <ul> items can carry numbered styles. Both
   directions render here. Counter ladders for <ul> mirror the <ol> ones
   so numbered styles count correctly under either element. */
.proto-info-content ul li, .proto-decision-question ul li {
    counter-increment: pl-0;
    counter-reset: pl-1 pl-2 pl-3;
}
.proto-info-content ul li.ql-indent-1, .proto-decision-question ul li.ql-indent-1 {
    counter-increment: pl-1;
    counter-reset: pl-2 pl-3;
}
.proto-info-content ul li.ql-indent-2, .proto-decision-question ul li.ql-indent-2 {
    counter-increment: pl-2;
    counter-reset: pl-3;
}
.proto-info-content ul li.ql-indent-3, .proto-decision-question ul li.ql-indent-3 {
    counter-increment: pl-3;
    counter-reset: none;
}

/* Bullet styles under <ol> (ties with the auto indent rules resolve to
   these because they come later). */
.proto-info-content ol li.ql-liststyle-disc::before, .proto-decision-question ol li.ql-liststyle-disc::before,
.proto-info-content ol li.ql-indent-1.ql-liststyle-disc::before, .proto-decision-question ol li.ql-indent-1.ql-liststyle-disc::before,
.proto-info-content ol li.ql-indent-2.ql-liststyle-disc::before, .proto-decision-question ol li.ql-indent-2.ql-liststyle-disc::before,
.proto-info-content ol li.ql-indent-3.ql-liststyle-disc::before, .proto-decision-question ol li.ql-indent-3.ql-liststyle-disc::before { content: '\2022'; }
.proto-info-content ol li.ql-liststyle-circle::before, .proto-decision-question ol li.ql-liststyle-circle::before,
.proto-info-content ol li.ql-indent-1.ql-liststyle-circle::before, .proto-decision-question ol li.ql-indent-1.ql-liststyle-circle::before,
.proto-info-content ol li.ql-indent-2.ql-liststyle-circle::before, .proto-decision-question ol li.ql-indent-2.ql-liststyle-circle::before,
.proto-info-content ol li.ql-indent-3.ql-liststyle-circle::before, .proto-decision-question ol li.ql-indent-3.ql-liststyle-circle::before { content: '\25E6'; }
.proto-info-content ol li.ql-liststyle-square::before, .proto-decision-question ol li.ql-liststyle-square::before,
.proto-info-content ol li.ql-indent-1.ql-liststyle-square::before, .proto-decision-question ol li.ql-indent-1.ql-liststyle-square::before,
.proto-info-content ol li.ql-indent-2.ql-liststyle-square::before, .proto-decision-question ol li.ql-indent-2.ql-liststyle-square::before,
.proto-info-content ol li.ql-indent-3.ql-liststyle-square::before, .proto-decision-question ol li.ql-indent-3.ql-liststyle-square::before { content: '\25AA'; }
.proto-info-content ol li.ql-liststyle-dash::before, .proto-decision-question ol li.ql-liststyle-dash::before,
.proto-info-content ol li.ql-indent-1.ql-liststyle-dash::before, .proto-decision-question ol li.ql-indent-1.ql-liststyle-dash::before,
.proto-info-content ol li.ql-indent-2.ql-liststyle-dash::before, .proto-decision-question ol li.ql-indent-2.ql-liststyle-dash::before,
.proto-info-content ol li.ql-indent-3.ql-liststyle-dash::before, .proto-decision-question ol li.ql-indent-3.ql-liststyle-dash::before { content: '\2013'; }

/* Numbered styles under legacy <ul>. */
.proto-info-content ul li.ql-liststyle-decimal::before, .proto-decision-question ul li.ql-liststyle-decimal::before { content: counter(pl-0, decimal) '.'; }
.proto-info-content ul li.ql-liststyle-alpha::before, .proto-decision-question ul li.ql-liststyle-alpha::before { content: counter(pl-0, lower-alpha) '.'; }
.proto-info-content ul li.ql-liststyle-roman::before, .proto-decision-question ul li.ql-liststyle-roman::before { content: counter(pl-0, lower-roman) '.'; }
.proto-info-content ul li.ql-indent-1.ql-liststyle-decimal::before, .proto-decision-question ul li.ql-indent-1.ql-liststyle-decimal::before { content: counter(pl-1, decimal) '.'; }
.proto-info-content ul li.ql-indent-1.ql-liststyle-alpha::before, .proto-decision-question ul li.ql-indent-1.ql-liststyle-alpha::before { content: counter(pl-1, lower-alpha) '.'; }
.proto-info-content ul li.ql-indent-1.ql-liststyle-roman::before, .proto-decision-question ul li.ql-indent-1.ql-liststyle-roman::before { content: counter(pl-1, lower-roman) '.'; }
.proto-info-content ul li.ql-indent-2.ql-liststyle-decimal::before, .proto-decision-question ul li.ql-indent-2.ql-liststyle-decimal::before { content: counter(pl-2, decimal) '.'; }
.proto-info-content ul li.ql-indent-2.ql-liststyle-alpha::before, .proto-decision-question ul li.ql-indent-2.ql-liststyle-alpha::before { content: counter(pl-2, lower-alpha) '.'; }
.proto-info-content ul li.ql-indent-2.ql-liststyle-roman::before, .proto-decision-question ul li.ql-indent-2.ql-liststyle-roman::before { content: counter(pl-2, lower-roman) '.'; }
.proto-info-content ul li.ql-indent-3.ql-liststyle-decimal::before, .proto-decision-question ul li.ql-indent-3.ql-liststyle-decimal::before { content: counter(pl-3, decimal) '.'; }
.proto-info-content ul li.ql-indent-3.ql-liststyle-alpha::before, .proto-decision-question ul li.ql-indent-3.ql-liststyle-alpha::before { content: counter(pl-3, lower-alpha) '.'; }
.proto-info-content ul li.ql-indent-3.ql-liststyle-roman::before, .proto-decision-question ul li.ql-indent-3.ql-liststyle-roman::before { content: counter(pl-3, lower-roman) '.'; }
