/* Workbook print + screen styles */
.wb-display { font-family: 'Orbitron', sans-serif; font-weight: 700; letter-spacing: -0.025em; text-transform: uppercase; }
.wb-mono { font-family: 'JetBrains Mono', monospace; font-weight: 500; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #666; }

html, body { margin: 0; padding: 0; background: #4A5350; font-family: 'Space Grotesk', system-ui, sans-serif; color: #0F1419; }

.wb-chrome {
	background: #0F1419; color: #FFF;
	padding: 12px 24px;
	display: flex; align-items: center; justify-content: space-between;
	position: sticky; top: 0; z-index: 10;
}
.wb-chrome__back { color: #E5E900; text-decoration: none; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.12em; }
.wb-chrome__hint { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.14em; color: rgba(255,255,255,0.7); text-transform: uppercase; }

.wb-doc { max-width: 8.5in; margin: 24px auto; }
.wb-page {
	background: #FFF; color: #0F1419;
	width: 8.5in; min-height: 11in;
	padding: 0.55in 0.55in 0.85in;
	position: relative;
	box-shadow: 0 24px 48px -16px rgba(0,0,0,0.4);
	margin-bottom: 24px;
	box-sizing: border-box;
	overflow: hidden;
}
.wb-cover { padding-top: 0.6in; }

.wb-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid #ccc; }
.wb-header__meta { text-align: right; }
.wb-header__meta span { color: #999; }

.wb-cover__hero { display: grid; grid-template-columns: 1fr 220px; gap: 32px; margin-top: 36px; align-items: center; }
.wb-cover__cat { font-size: 10px; letter-spacing: 0.16em; font-weight: 700; }
.wb-cover h1 { font-size: 56px; margin: 8px 0 0; }
.wb-cover__tag { margin-top: 12px; font-size: 14px; color: #444; font-style: italic; }
.wb-cover__intro { margin-top: 18px; font-size: 12.5px; line-height: 1.55; color: #222; max-width: 460px; }

.wb-facts {
	margin-top: 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
	padding: 14px 0; border-top: 2px solid #000; border-bottom: 2px solid #000;
}
.wb-facts strong { font-size: 12px; font-weight: 700; color: #000; }

.wb-section { margin-top: 28px; }
.wb-section__label { font-size: 10px; letter-spacing: 0.16em; font-weight: 700; margin-bottom: 12px; }

.wb-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; row-gap: 20px; }
.wb-line { margin-top: 4px; border-bottom: 1px solid #000; height: 18px; }
.wb-sigline { margin-top: 14px; border-bottom: 1.5px solid #000; height: 36px; }

.wb-note { padding: 14px 16px; border: 1px solid #000; border-radius: 4px; margin-top: 28px; }
.wb-note--yellow { background: #FFFCE5; }
.wb-note p { margin: 6px 0 0; font-size: 12px; color: #222; }
.wb-dot { height: 14px; border-bottom: 1px dotted #999; margin-top: 8px; }

.wb-process { padding: 0; margin: 0; list-style: none; font-size: 12px; color: #222; }
.wb-process li { display: flex; gap: 10px; padding: 5px 0; }
.wb-process li::before {
	content: counter(p) "."; counter-increment: p;
	flex: 0 0 22px; font-weight: 700; color: #018FA6;
}
.wb-process { counter-reset: p; }

.wb-grouphead { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid #000; margin-top: 24px; }
.wb-grouphead h2 { font-size: 22px; margin: 2px 0 0; }
.wb-grouphead__count { margin-left: auto; font-size: 9px; color: #666; }

.wb-reqs { padding: 0; margin: 20px 0 0; list-style: none; display: grid; gap: 14px; }
.wb-reqs li { display: flex; gap: 14px; align-items: flex-start; break-inside: avoid; }
.wb-checkbox { flex: 0 0 24px; height: 24px; border: 2px solid #0F1419; border-radius: 4px; margin-top: 1px; }
.wb-req__body { flex: 1; font-size: 12.5px; line-height: 1.55; color: #0F1419; }
.wb-req__num { font-weight: 700; color: #018FA6; margin-right: 6px; }
.wb-req__notes { margin-top: 8px; }
.wb-req__initial { flex: 0 0 80px; border-left: 1px solid #ddd; padding-left: 12px; }
.wb-req__initial .wb-mono { font-size: 8px; color: #999; }
.wb-req__initial .wb-line { margin-top: 18px; }

.wb-body { margin-top: 16px; font-size: 12.5px; line-height: 1.6; color: #222; }
.wb-sigs { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.wb-trainerbox { margin-top: 36px; padding: 14px; background: #0F1419; color: #FFF; border-radius: 6px; }
.wb-trainerbox .wb-mono { color: #E5E900; }
.wb-trainerbox strong { color: #E5E900; }
.wb-trainerbox > div:last-child { margin-top: 8px; font-size: 12.5px; line-height: 1.55; }

.wb-pagefoot {
	position: absolute; bottom: 0.4in; left: 0.55in; right: 0.55in;
	display: flex; justify-content: space-between; align-items: center;
	padding-top: 6px; border-top: 1px solid #999;
	font-family: 'JetBrains Mono', monospace; font-size: 9px; color: #666;
	letter-spacing: 0.1em; text-transform: uppercase;
}

@page { size: letter; margin: 0; }
@media print {
	html, body { background: #FFF !important; margin: 0; padding: 0; }
	.wb-chrome { display: none !important; }
	.wb-doc { max-width: none; margin: 0; }
	.wb-page { width: 8.5in; min-height: 11in; margin: 0; box-shadow: none; page-break-after: always; }
	.wb-page:last-child { page-break-after: auto; }
	* { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}

/* ─── Workbook mobile view ────────────────────────────── */
@media screen and (max-width: 900px) {
    .wb-chrome {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 16px;
    }
    .wb-doc {
        margin: 12px auto;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .wb-page {
        width: 100%;
        min-height: auto;
        padding: 24px 20px 48px;
        box-sizing: border-box;
    }
    .wb-cover__hero { grid-template-columns: 1fr; gap: 20px; }
    .wb-cover h1 { font-size: 36px; }
    .wb-facts { grid-template-columns: 1fr 1fr; gap: 10px; }
    .wb-fields { grid-template-columns: 1fr; }
    .wb-sigs { grid-template-columns: 1fr; }
    .wb-pagefoot { position: static; margin-top: 24px; border-top: 1px solid #ccc; padding-top: 10px; }
    .wb-req__initial { display: none; }
    .wb-reqs li { flex-direction: column; gap: 8px; }
    .wb-checkbox { flex: 0 0 28px; width: 28px; }
}
