/* =============================================================
   Continuous View — document rendering styles

   Generated HTML structure:
     h1                   — document title
     h2–h6.cw-item-Section — section headings (depth-driven level)
     div.cw-item-*        — step blocks
       h6                 — optional step title
       (rich HTML content)
   ============================================================= */

/* ---- Optional wrapper ---- */
.continuous-view {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #1a1a1a;
    max-width: 720px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

/* ---- Links (all depths) ---- */
.continuous-view a {
    color: #0060c0;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.continuous-view a:hover,
.continuous-view a:focus {
    color: #003d80;
    border-bottom-color: #003d80;
    outline: none;
}

.continuous-view a:visited {
    color: #003d80;
}

.continuous-view a:active {
    color: #003d80;
}

/* ---- Document title ---- */
.continuous-view > h1,
h1.cw-item-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    color: #1a1a1a;
}

/* ---- Section headings ---- */
h2.cw-item-Section {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.75rem 0 0.75rem;
    color: #1a1a1a;
}

h3.cw-item-Section {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1.4rem 0 0.5rem;
    color: #1a1a1a;
}

h4.cw-item-Section,
h5.cw-item-Section,
h6.cw-item-Section {
    font-size: 1rem;
    font-weight: 700;
    margin: 1.1rem 0 0.4rem;
    color: #1a1a1a;
}

/* ---- Images inside any step block ---- */
[class^="cw-item-"] img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0.5rem 0;
    border-radius: 4px;
}

/* ---- Lists inside step blocks ---- */
[class^="cw-item-"] ul,
[class^="cw-item-"] ol {
    padding-left: 1.4rem;
    margin: 0.4rem 0;
}

[class^="cw-item-"] li {
    margin-bottom: 0.25rem;
}

/* ---- Paragraphs inside step blocks ---- */
[class^="cw-item-"] p {
    margin: 0.3rem 0 0.6rem;
}

/* ============================================================
   Default step block types
   (Info, Note, Step, Action, Definition)
   ============================================================ */

.cw-item-Info,
.cw-item-Note,
.cw-item-Step,
.cw-item-Action,
.cw-item-Definition,
.cw-item-Video,
.cw-item-Graphic {
    margin: 0.5rem 0 0.75rem;
}

/* Step title (h6 inside any default step block) */
.cw-item-Info > h6,
.cw-item-Note > h6,
.cw-item-Step > h6,
.cw-item-Action > h6,
.cw-item-Definition > h6,
.cw-item-Video > h6,
.cw-item-Graphic > h6 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: #1a1a1a;
}

/* ============================================================
   Caution block
   — orange border card with circle-exclamation icon + label
   ============================================================ */

.cw-item-Caution {
    position: relative;
    padding: 0.75rem 1rem 0.75rem 72px;
    min-height: 64px;
    border: 2px solid #E87722;
    border-radius: 8px;
    margin: 0.75rem 0;
    background: #FFFAF2;
    box-sizing: border-box;
}

/* Icon + "Caution" label badge — absolutely positioned left column */
.cw-item-Caution::before {
    content: "Caution";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 64px;
    padding-top: 32px; /* pushes label text below the 24px icon */
    /* Circle exclamation icon (orange) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E87722' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Ccircle cx='12' cy='16' r='1' fill='%23E87722' stroke='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 26px 26px;
    color: #E87722;
    font-size: 0.65rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

/* Optional title inside Caution */
.cw-item-Caution > h6 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: #1a1a1a;
}

/* ============================================================
   Warning block
   — red border card with triangle-exclamation icon + label
   ============================================================ */

.cw-item-Warning {
    position: relative;
    padding: 0.75rem 1rem 0.75rem 72px;
    min-height: 64px;
    border: 2px solid #D94F4F;
    border-radius: 8px;
    margin: 0.75rem 0;
    background: #FDF6F6;
    box-sizing: border-box;
}

/* Icon + "Warning" label badge — absolutely positioned left column */
.cw-item-Warning::before {
    content: "Warning";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 64px;
    padding-top: 32px; /* pushes label text below the 24px icon */
    /* Triangle exclamation icon (red) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D94F4F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Ccircle cx='12' cy='17' r='1' fill='%23D94F4F' stroke='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 26px 26px;
    color: #D94F4F;
    font-size: 0.65rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

/* Optional title inside Warning */
.cw-item-Warning > h6 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: #1a1a1a;
}
