/* COMPONENTS — Cloud Hardening Guide
   Class inventory: 01-RESEARCH.md Pattern 5
   Hex values: reference css/main.css COLOR PALETTE comment block
   Section markers: CHROME (Plan 04) at top, CONTENT (Plan 05) appended below
*/

/* ===== CHROME (Plan 04) ===== */

/* -------------------------------------------------------------------------
   .site-header — glossy navy header bar
   Gradient: #3a4a6b -> #2a3a58 (canonical "Glossy header" from main.css)
   Gloss overlay via ::before pseudo-element (RESEARCH.md Pattern 3)
   ------------------------------------------------------------------------- */
.site-header {
    padding: 12px 24px;
    color: #fff;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.5);
    position: relative;
    border-bottom: 1px solid #2a3a58;
    background-color: #3a4a6b;
    background-image: -webkit-linear-gradient(top, #3a4a6b 0%, #2a3a58 100%);
    background-image:    -moz-linear-gradient(top, #3a4a6b 0%, #2a3a58 100%);
    background-image:         linear-gradient(to bottom, #3a4a6b 0%, #2a3a58 100%);
    -webkit-box-shadow: 0 2px 4px rgba(0,0,0,0.2);
       -moz-box-shadow: 0 2px 4px rgba(0,0,0,0.2);
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.site-header::after {
    content: "";
    display: table;
    clear: both;
}

.site-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    pointer-events: none;
    background-image: -webkit-linear-gradient(top, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.04) 100%);
    background-image:    -moz-linear-gradient(top, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.04) 100%);
    background-image:         linear-gradient(to bottom, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.04) 100%);
}

.site-header .logo {
    float: left;
    font: bold 18px/1 "PT Sans", sans-serif;
    color: #fff;
    text-decoration: none;
}

/* -------------------------------------------------------------------------
   .nav-primary — top nav (uppercase, slightly tracked, inline-block tabs)
   ------------------------------------------------------------------------- */
.nav-primary {
    float: right;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-primary li {
    display: inline-block;
    margin-left: 4px;
}

.nav-primary a {
    display: inline-block;
    padding: 6px 14px;
    color: #d6dde8;
    text-decoration: none;
    font: 600 13px/1 "Open Sans", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 3px;
}

.nav-primary a:hover {
    background: rgba(255,255,255,0.10);
    color: #fff;
}

.nav-primary a.active {
    background: rgba(0,0,0,0.25);
    color: #fff;
    -webkit-box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
       -moz-box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
            box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}

/* -------------------------------------------------------------------------
   .breadcrumb — subtle gray bar below header, " > " separators
   ------------------------------------------------------------------------- */
.breadcrumb {
    list-style: none;
    margin: 0;
    padding: 12px 24px;
    background: #e4e9ef;
    border-bottom: 1px solid #c8cdd6;
    font: 12px/1 "Open Sans", sans-serif;
    color: #666666;
}

.breadcrumb li {
    display: inline;
}

.breadcrumb li + li::before {
    content: " > ";
    color: #666666;
    padding: 0 6px;
}

.breadcrumb a {
    color: #1a5bb8;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* -------------------------------------------------------------------------
   .sidebar — visual layer (positional float/width already in main.css)
   Sticky scroll (RESEARCH.md Open Question #2 recommendation)
   Inset right-edge shadow → "carved-in" panel feel
   ------------------------------------------------------------------------- */
.sidebar {
    background: #e4e9ef;
    border-right: 1px solid #c0c8d0;
    min-height: calc(100vh - 60px);
    padding: 0;
    position: sticky;
    top: 0;
    -webkit-box-shadow: inset -3px 0 6px rgba(0,0,0,0.06);
       -moz-box-shadow: inset -3px 0 6px rgba(0,0,0,0.06);
            box-shadow: inset -3px 0 6px rgba(0,0,0,0.06);
}

.sidebar .toc-section-title {
    padding: 8px 12px;
    font: bold 11px/1 "Open Sans", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666666;
    border-bottom: 1px solid #c8cdd6;
    border-top: 1px solid rgba(255,255,255,0.8);
    background-color: #dde2e8; /* no-prefix-needed */
    background-image: -webkit-linear-gradient(top, #dde2e8 0%, #d4d9e0 100%);
    background-image:    -moz-linear-gradient(top, #dde2e8 0%, #d4d9e0 100%);
    background-image:         linear-gradient(to bottom, #dde2e8 0%, #d4d9e0 100%);
}

.sidebar .toc {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.sidebar .toc li {
    display: block;
}

.sidebar .toc a {
    display: block;
    padding: 4px 12px 4px 16px;
    color: #333333;
    text-decoration: none;
    font: 13px/1.4 "PT Serif", Georgia, serif;
    border-left: 3px solid transparent;
}

.sidebar .toc a:hover {
    background: rgba(0,0,0,0.04);
    color: #1a5bb8;
}

.sidebar .toc a.active {
    background: rgba(58,125,201,0.10);
    border-left-color: #3a7dc9;
    color: #1a5bb8;
    font-weight: 600;
}

.sidebar .toc ul ul {
    padding-left: 12px;
    font-size: 12px;
}

/* -------------------------------------------------------------------------
   .btn — beveled buttons (RESEARCH.md Code Examples; STACK.md CSS Approach)
   Multi-stop gradient (light-top → mid → hard 1px line at 50/51% → dark)
   creates the signature 2010-2012 "glassy bevel" effect.
   ------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 8px 18px;
    font: bold 13px/1 "Open Sans", sans-serif;
    border-radius: 4px;
    border: 1px solid;
    cursor: pointer;
    text-decoration: none;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.35);
    color: #ffffff;
}

/* .btn-primary — cornflower blue, 4-stop bevel */
.btn-primary {
    background-color: #3a7dc9;
    background-image: -webkit-linear-gradient(top, #5094d8 0%, #3a7dc9 50%, #2d6db8 51%, #1f5aa8 100%);
    background-image:    -moz-linear-gradient(top, #5094d8 0%, #3a7dc9 50%, #2d6db8 51%, #1f5aa8 100%);
    background-image:         linear-gradient(to bottom, #5094d8 0%, #3a7dc9 50%, #2d6db8 51%, #1f5aa8 100%);
    border-color: #1a5298;
    color: #ffffff;
    -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 2px 4px rgba(0,0,0,0.3);
       -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 2px 4px rgba(0,0,0,0.3);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 2px 4px rgba(0,0,0,0.3);
}

.btn-primary:hover {
    background-color: #5094d8;
    background-image: -webkit-linear-gradient(top, #5094d8 0%, #3a7dc9 50%, #2d6db8 51%, #1f5aa8 100%);
    background-image:    -moz-linear-gradient(top, #5094d8 0%, #3a7dc9 50%, #2d6db8 51%, #1f5aa8 100%);
    background-image:         linear-gradient(to bottom, #5094d8 0%, #3a7dc9 50%, #2d6db8 51%, #1f5aa8 100%);
}

.btn-primary:active {
    -webkit-box-shadow: inset 0 2px 4px rgba(0,0,0,0.25);
       -moz-box-shadow: inset 0 2px 4px rgba(0,0,0,0.25);
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.25);
}

/* .btn-secondary — neutral gray bevel, dark text + light text-shadow */
.btn-secondary {
    background-color: #dddddd;
    background-image: -webkit-linear-gradient(top, #f4f4f4 0%, #dddddd 50%, #d4d9e0 51%, #c8cdd6 100%);
    background-image:    -moz-linear-gradient(top, #f4f4f4 0%, #dddddd 50%, #d4d9e0 51%, #c8cdd6 100%);
    background-image:         linear-gradient(to bottom, #f4f4f4 0%, #dddddd 50%, #d4d9e0 51%, #c8cdd6 100%);
    border-color: #c8cdd6;
    color: #333333;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
    -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 1px 2px rgba(0,0,0,0.15);
       -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 1px 2px rgba(0,0,0,0.15);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 1px 2px rgba(0,0,0,0.15);
}

.btn-secondary:hover {
    background-color: #f9f9f9;
    background-image: -webkit-linear-gradient(top, #f9f9f9 0%, #f4f4f4 50%, #dddddd 51%, #d4d9e0 100%);
    background-image:    -moz-linear-gradient(top, #f9f9f9 0%, #f4f4f4 50%, #dddddd 51%, #d4d9e0 100%);
    background-image:         linear-gradient(to bottom, #f9f9f9 0%, #f4f4f4 50%, #dddddd 51%, #d4d9e0 100%);
}

.btn-secondary:active {
    -webkit-box-shadow: inset 0 2px 4px rgba(0,0,0,0.15);
       -moz-box-shadow: inset 0 2px 4px rgba(0,0,0,0.15);
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.15);
}


/* ===== CONTENT (Plan 05) ===== */

/* -------------------------------------------------------------------------
   Severity tags (DS-07 three-channel: icon + label + color)
   ------------------------------------------------------------------------- */
.sev {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font: bold 11px/1 'Open Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: 1px solid;
}
.sev-icon  { margin-right: 4px; }
.sev-label { /* inline; styling inherited from .sev */ }

.sev-critical {
    background: #f8d7da;
    color: #7d1a23;
    border-color: #c0392b;
}
.sev-high {
    background: #ffe4cc;
    color: #8a4400;
    border-color: #e07a1e;
}
.sev-medium {
    background: #fff3cd;
    color: #7a5a00;
    border-color: #e6a817;
}
.sev-low {
    background: #e4eaf0;
    color: #3a4a5a;
    border-color: #8a99a8;
}

/* -------------------------------------------------------------------------
   Control type pill (PREVENTIVE / DETECTIVE / RESPONSIVE)
   ------------------------------------------------------------------------- */
.control-type {
    display: inline-block;
    padding: 2px 6px;
    font: 600 10px/1 'Open Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666666;
    background: #ececf0;
    border: 1px solid #c8cdd6;
    border-radius: 2px;
}

/* -------------------------------------------------------------------------
   Control box — wraps every control per STD-01
   ------------------------------------------------------------------------- */
.control-box {
    position: relative;
    margin: 24px 0;
    padding: 16px 20px;
    background: #f9f9f9;
    border: 1px solid #c8cdd6;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 2px 4px rgba(0,0,0,0.06), 0 1px 0 rgba(255,255,255,0.9);
       -moz-box-shadow: inset 0 2px 4px rgba(0,0,0,0.06), 0 1px 0 rgba(255,255,255,0.9);
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.06), 0 1px 0 rgba(255,255,255,0.9);
}
.control-box .control-id {
    display: inline-block;
    font: 12px/1 'Courier New', monospace;
    color: #666666;
    margin-right: 8px;
}
.control-box .control-title {
    display: inline;
    font: bold 18px/1.3 'PT Sans', sans-serif;
    color: #2a3a58;
    margin: 0;
}

/* -------------------------------------------------------------------------
   Threat model callout (red-left-rail, neutral fill)
   ------------------------------------------------------------------------- */
.threat-model {
    margin: 16px 0;
    padding: 12px 16px;
    background: #f5f5f5;
    border: 1px solid #c8cdd6;
    border-left: 4px solid #c0392b;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 2px 4px rgba(0,0,0,0.08);
       -moz-box-shadow: inset 0 2px 4px rgba(0,0,0,0.08);
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.08);
}
.threat-model .label {
    display: block;
    font: bold 11px/1 'Open Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #7d1a23;
    margin-bottom: 4px;
}
.threat-model p {
    margin: 0 0 8px 0;
    font: 13px/1.5 'PT Serif', Georgia, serif;
}

/* -------------------------------------------------------------------------
   Common misconfiguration callout (warning palette)
   ------------------------------------------------------------------------- */
.misconfiguration {
    margin: 16px 0;
    padding: 12px 16px;
    background: #fff3cd;
    border: 1px solid #e6a817;
    border-left: 4px solid #e6a817;
    border-radius: 4px;
    color: #7a5a00;
    font: 13px/1.5 'PT Serif', Georgia, serif;
    -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
       -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
.misconfiguration .label {
    display: block;
    font: bold 11px/1 'Open Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #7a5a00;
    margin-bottom: 4px;
}

/* -------------------------------------------------------------------------
   Generic callout aliases (semantic flexibility for authors)
   ------------------------------------------------------------------------- */
.callout-warning {
    margin: 12px 0;
    padding: 10px 14px;
    background: #fff3cd;
    border: 1px solid #e6a817;
    border-radius: 3px;
    color: #7a5a00;
}
.callout-danger {
    margin: 12px 0;
    padding: 10px 14px;
    background: #f8d7da;
    border: 1px solid #c0392b;
    border-radius: 3px;
    color: #7d1a23;
}
.callout-info {
    margin: 12px 0;
    padding: 10px 14px;
    background: #e4eaf0;
    border: 1px solid #8a99a8;
    border-radius: 3px;
    color: #3a4a5a;
}

/* -------------------------------------------------------------------------
   Cross-provider equivalence pill (AWS/Azure/GCP/OCI link chip)
   ------------------------------------------------------------------------- */
.equivalence-link {
    display: inline-block;
    padding: 4px 10px;
    margin: 4px 4px 4px 0;
    background: #f4f4f4;
    border: 1px solid #c8cdd6;
    border-radius: 12px;
    font: 11px/1 'Open Sans', sans-serif;
    color: #1a5bb8;
    text-decoration: none;
}
.equivalence-link:hover {
    background: #e4e9ef;
    color: #c0392b;
}

/* -------------------------------------------------------------------------
   Real-world incident callout (Snowflake / Capital One / etc.)
   ------------------------------------------------------------------------- */
.incident-callout {
    margin: 16px 0;
    padding: 14px 18px;
    background: #f5f5f5;
    border: 1px solid #c8cdd6;
    border-left: 4px solid #551a8b;
    border-radius: 4px;
}
.incident-callout .label {
    font: bold 11px/1 'Open Sans', sans-serif;
    text-transform: uppercase;
    color: #551a8b;
}
.incident-callout p {
    margin: 6px 0 0 0;
    font: italic 13px/1.5 Lora, Georgia, serif;
}

/* -------------------------------------------------------------------------
   Compliance table (per-control mapping, STD-02)
   ------------------------------------------------------------------------- */
.compliance-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font: 12px/1.4 'Open Sans', sans-serif;
}
.compliance-table th {
    background: #e4e9ef;
    color: #2a3a58;
    font-weight: bold;
    text-align: left;
    padding: 6px 10px;
    border: 1px solid #c8cdd6;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 11px;
}
.compliance-table td {
    padding: 6px 10px;
    border: 1px solid #c8cdd6;
    color: #333333;
    background: #ffffff;
}
.compliance-table tr:nth-child(even) td {
    background: #f9f9f9;
}

/* -------------------------------------------------------------------------
   Compliance badges (inline framework chips)
   ------------------------------------------------------------------------- */
.compliance-badges {
    margin: 6px 0;
    font-size: 0;
}
.compliance-badges .badge {
    display: inline-block;
    font: bold 10px/1 'Open Sans', sans-serif;
    padding: 3px 7px;
    margin-right: 4px;
    border-radius: 2px;
    text-transform: uppercase;
}
.badge-cis {
    background: #e4eaf0;
    color: #2a3a58;
    border: 1px solid #8a99a8;
}
.badge-nist {
    background: #fff3cd;
    color: #7a5a00;
    border: 1px solid #e6a817;
}
.badge-iso {
    background: #e4e9ef;
    color: #666666;
    border: 1px solid #c8cdd6;
}

/* -------------------------------------------------------------------------
   Last reviewed stamp (footer <time>)
   ------------------------------------------------------------------------- */
.last-reviewed {
    display: inline-block;
    font: italic 11px/1 Lora, Georgia, serif;
    color: #666666;
}

/* -------------------------------------------------------------------------
   Code block (wraps <pre><code>)
   ------------------------------------------------------------------------- */
.code-block {
    background: #f4f4f4;
    border: 1px solid #c8cdd6;
    border-radius: 3px;
    padding: 12px 14px;
    margin: 12px 0;
    overflow-x: auto;
    position: relative;
    -webkit-box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
       -moz-box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
            box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
}
.code-block code {
    font: 12px/1.5 'Courier New', Courier, monospace;
    color: #333333;
    white-space: pre;
}
.code-block .code-lang {
    position: absolute;
    top: 0;
    right: 0;
    padding: 2px 8px;
    font: 600 10px/1 'Open Sans', sans-serif;
    color: #666666;
    background: #e4e9ef;
    border-left: 1px solid #c8cdd6;
    border-bottom: 1px solid #c8cdd6;
    text-transform: uppercase;
}

/* -------------------------------------------------------------------------
   Image placeholder (RESEARCH.md + PITFALLS A-13)
   ------------------------------------------------------------------------- */
.img-placeholder {
    margin: 16px 0;
    text-align: center;
}
.img-placeholder .img-placeholder-box {
    display: block;
    padding: 80px 16px;
    background: #f4f4f4;
    border: 2px dashed #999999;
    color: #666666;
    font: italic 13px Lora, Georgia, serif;
}
.img-placeholder figcaption {
    margin-top: 8px;
    font: italic 12px Lora, Georgia, serif;
    color: #666666;
}

/* -------------------------------------------------------------------------
   Top-of-page audit checklist (Unicode ballot box, print-safe)
   ------------------------------------------------------------------------- */
.checklist {
    list-style: none;
    margin: 16px 0;
    padding: 12px 16px;
    background: #f9f9f9;
    border: 1px solid #c8cdd6;
    border-radius: 4px;
}
.checklist li {
    position: relative;
    padding-left: 24px;
    margin: 4px 0;
    font: 13px/1.5 'PT Serif', Georgia, serif;
}
.checklist li::before {
    content: "\2610";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 16px;
    color: #666666;
}

/* -------------------------------------------------------------------------
   Clearfix utility (legacy float containment)
   ------------------------------------------------------------------------- */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ============================================================
   SEARCH UI (Phase 11 — DS-05 lock revised 28 -> 33 classes)
   Added: 2026-05-23
   See STATE.md decision log for justification (Plan 11-01).
   Hex literals: every value below already declared in css/main.css
   COLOR PALETTE block (palette-singleton lint enforced).
   ============================================================ */

.search-form {
    float: right;
    margin: 6px 12px 0 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
}

.search-form .search-input-label {
    display: inline-block;
    margin-right: 6px;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.5);
}

.search-input {
    display: inline-block;
    width: 200px;
    padding: 4px 8px;
    border: 1px solid #3a4a6b;
    background: #f5f5f5;
    -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
       -moz-box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
            box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #333333;
}

.search-form button {
    display: inline-block;
    margin-left: 4px;
    padding: 4px 10px;
    border: 1px solid #1a5298;
    background-color: #3a7dc9;
    background-image: -webkit-linear-gradient(top, #5094d8 0%, #3a7dc9 50%, #2d6db8 51%, #1f5aa8 100%);
    background-image:    -moz-linear-gradient(top, #5094d8 0%, #3a7dc9 50%, #2d6db8 51%, #1f5aa8 100%);
    background-image:         linear-gradient(to bottom, #5094d8 0%, #3a7dc9 50%, #2d6db8 51%, #1f5aa8 100%);
    -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
       -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.search-results {
    list-style: none;
    margin: 16px 0;
    padding: 0;
}

.search-result {
    margin: 0 0 18px 0;
    padding: 12px 14px;
    border: 1px solid #dde2e8;
    border-left: 4px solid #3a4a6b;
    background: #ffffff;
    -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.08);
       -moz-box-shadow: 0 1px 2px rgba(0,0,0,0.08);
            box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.search-result a {
    font-family: 'PT Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1a5bb8;
    text-decoration: none;
}

.search-result a:hover { text-decoration: underline; color: #c0392b; }

.search-result .search-breadcrumb {
    margin: 2px 0 6px 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    color: #666666;
}

.search-snippet {
    margin: 6px 0 0 0;
    font-family: 'PT Serif', serif;
    font-size: 13px;
    line-height: 1.45;
    color: #333333;
}

.search-snippet mark {
    background: #fff3cd;
    padding: 0 2px;
    font-weight: 600;
}

/* -------------------------------------------------------------------------
   .copy-btn — skeuomorphic copy-to-clipboard button (CODE-03/04)
   Positioned absolute top-right of pre.code-block (parent position:relative
   is set at runtime by code-enhance.js — do NOT set in CSS to avoid print
   layout side-effects).
   DS-05 class #34 — added Phase 12 (decision log: 2026-05-24).
   ------------------------------------------------------------------------- */
.copy-btn {
    position: absolute;
    top: 6px;
    right: 8px;
    padding: 2px 8px;
    border: 1px solid #3a4a6b;
    background-color: #e8edf3;
    background-image: -webkit-linear-gradient(top, #f0f4f8 0%, #d8dfe8 100%);
    background-image:    -moz-linear-gradient(top, #f0f4f8 0%, #d8dfe8 100%);
    background-image:         linear-gradient(to bottom, #f0f4f8 0%, #d8dfe8 100%);
    -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.15);
       -moz-box-shadow: 0 1px 2px rgba(0,0,0,0.15);
            box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    font: 600 11px/1 "Open Sans", sans-serif;
    color: #3a4a6b;
    cursor: pointer;
    border-radius: 2px;
    /* z-index keeps button above highlighted spans */
    z-index: 1;
}

/* .copy-btn.copied — "Copied!" state (CODE-04)
   DS-05 class #35 — added Phase 12 (decision log: 2026-05-24). */
.copy-btn.copied {
    color: #2e7d32;
    border-color: #2e7d32;
    background-color: #e8f5e9;
    background-image: -webkit-linear-gradient(top, #f1f8e9 0%, #dcedc8 100%);
    background-image:    -moz-linear-gradient(top, #f1f8e9 0%, #dcedc8 100%);
    background-image:         linear-gradient(to bottom, #f1f8e9 0%, #dcedc8 100%);
}

/* -------------------------------------------------------------------------
   .detection-runbook — DS-05 class #36 — added Phase 19 W0 (DET-01).
   Single new top-level class wrapping per-control Detection subsections.
   Child <h4>/<ul>/<ol>/<pre> are styled via DESCENDANT selectors only —
   no .log-signals / .response-steps top-level additions (that would triple
   DS-05 lock pressure 35 → 38 with three decision-log entries).
   Backed by W0 gate G19.2 enforcing presence of exactly one
   <section class="detection-runbook"> inside every matrix-mapped
   <article class="control-box"> across the 265-record corpus.
   Print stylesheet page-break-inside list extended at css/print.css.
   ------------------------------------------------------------------------- */
.detection-runbook {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-left: 3px solid #4a7d68;
    background-color: #f7faf8;
}
.detection-runbook h4 {
    margin: 1rem 0 0.4rem 0;
    font-size: 1.05rem;
    font-weight: 600;
}
.detection-runbook h4:first-child {
    margin-top: 0;
}
.detection-runbook ul,
.detection-runbook ol {
    margin: 0.4rem 0 0.75rem 1.25rem;
}
.detection-runbook pre {
    margin: 0.5rem 0 0.75rem 0;
}
.detection-runbook a {
    word-break: break-word;
}
