/* Brick 32 · Step 05 read-only EM braking study. Uses shared notebook tokens/themes. */
.nb-step05-page [hidden]{display:none!important}
.nb-step05-page .nb-step05-intro{padding:0 0 18px}
.nb-step05-page .nb-lead-col{min-height:clamp(425px,42vw,620px)}
.nb-step05-page .nb-step05-lead{font-size:clamp(.9rem,1.12vw,1.08rem);line-height:1.65;max-width:62ch}
.nb-step05-page .nb-step05-hero-boundary{border-left:3px solid var(--nb-ink);background:var(--nb-wash);padding:11px 14px;margin:20px 0;font-size:.82rem;line-height:1.52;max-width:65ch}
.nb-step05-page .nb-step05-symbol svg{width:100%;max-height:155px;color:var(--text-color)}
.nb-step05-page .nb-step05-section{padding:clamp(18px,3vw,48px)}
.nb-step05-page .nb-step05-grid{display:grid;grid-template-columns:minmax(240px,31%) minmax(0,1fr);align-items:start;gap:clamp(14px,2vw,28px)}
.nb-step05-page .nb-step05-controls{min-width:0;background:var(--nb-wash);border:1px solid var(--nb-rule);border-radius:8px;padding:clamp(15px,1.8vw,23px);display:flex;flex-direction:column}
.nb-step05-page .nb-step05-control-head{display:flex;flex-direction:column;gap:7px;padding-bottom:13px;border-bottom:1px solid var(--nb-rule)}
.nb-step05-page .nb-step05-control-head strong{font:500 1.45rem Georgia,serif}
.nb-step05-page .nb-step05-wind-reading{margin:16px 0 3px;display:flex;align-items:baseline;gap:10px;cursor:pointer}
.nb-step05-page .nb-step05-wind-reading output{font:500 clamp(2.6rem,4vw,4.5rem)/1.1 Georgia,serif;letter-spacing:-.06em;font-variant-numeric:tabular-nums}
.nb-step05-page .nb-step05-wind-reading span{font:600 1rem 'Segoe UI',Arial,sans-serif}
.nb-step05-page #brakeInspectWind{width:100%;min-height:32px;accent-color:var(--text-color);cursor:pointer;margin:10px 0 0}
.nb-step05-page .nb-step05-ends{display:flex;justify-content:space-between;font-size:.73rem;opacity:.85}
.nb-step05-page .nb-step05-small{font-size:.77rem;line-height:1.5;margin:11px 0 3px;opacity:.85}
.nb-step05-page .nb-step05-selection{display:flex;flex-direction:column;gap:5px;border-top:1px solid var(--nb-rule);margin-top:18px;padding-top:18px;min-width:0}
.nb-step05-page .nb-step05-selection strong{font:600 .94rem/1.4 'Segoe UI',Arial,sans-serif;overflow-wrap:anywhere}
.nb-step05-page .nb-step05-selection small{font:.76rem/1.55 'Segoe UI',Arial,sans-serif;overflow-wrap:anywhere}
.nb-step05-page .nb-step05-selection a{font:.78rem/1.5 'Segoe UI',Arial,sans-serif;align-self:flex-start;color:var(--text-color);font-weight:700}
.nb-step05-page .nb-step05-details,.nb-step05-page .nb-step05-notes{border:1px solid var(--nb-rule);border-radius:6px;background:var(--page-background-color);font-size:.79rem;line-height:1.6}
.nb-step05-page .nb-step05-details{margin-top:19px;padding:0 13px}
.nb-step05-page .nb-step05-details summary,.nb-step05-page .nb-step05-notes summary{font-weight:700;cursor:pointer;padding:12px 3px}
.nb-step05-page .nb-step05-details p{margin:10px 0 14px}
.nb-step05-page .nb-step05-fieldset{display:grid;gap:12px;padding:6px 0}
.nb-step05-page .nb-step05-fieldset label{font:600 .75rem/1.45 'Segoe UI',Arial,sans-serif}
.nb-step05-page .nb-step05-fieldset input{display:block;margin-top:5px;width:100%;min-width:0;min-height:42px;background:var(--page-background-color);color:var(--text-color);border:1px solid var(--nb-rule);border-radius:5px;padding:7px 9px;font-size:.9rem}
.nb-step05-page .nb-step05-results{min-width:0;border:1px solid var(--nb-rule);border-radius:8px;padding:clamp(13px,1.8vw,22px);background:var(--nb-wash)}
.nb-step05-page .nb-step05-chart-top{display:flex;justify-content:space-between;align-items:start;gap:8px 18px;flex-wrap:wrap}
.nb-step05-page .nb-step05-chart-top h3{font:500 clamp(1.24rem,2.25vw,2.25rem)/1.17 Georgia,serif;letter-spacing:-.02em;margin:8px 0 11px}
.nb-step05-page .nb-step05-chart-top label{font-size:.77rem;display:flex;align-items:center;gap:7px;margin-top:5px;cursor:pointer}
.nb-step05-page .nb-step05-chart-top input{width:18px;height:18px;accent-color:var(--text-color)}
.nb-step05-page .nb-step05-legend{display:flex;gap:8px 22px;align-items:center;flex-wrap:wrap;font-size:.75rem;line-height:1.4;margin:5px 0 10px}
.nb-step05-page .nb-step05-legend span{display:flex;align-items:center;gap:6px}
.nb-step05-page .nb-step05-legend i{flex:none;display:block;width:23px;height:3px}
.nb-step05-page .nb-step05-line-drive{background:var(--nb-brake-drive,#168775)}
.nb-step05-page .nb-step05-line-brake{background:repeating-linear-gradient(90deg,var(--nb-brake-whatif,#b47b40) 0 6px,transparent 6px 10px)}
.nb-step05-page .nb-step05-legend i.nb-step05-point{width:10px;height:10px;border:2px solid var(--text-color);border-radius:50%;background:transparent}
.nb-step05-page .nb-step05-chart{min-height:430px;width:100%;border:1px solid var(--nb-rule);border-radius:6px;overflow:hidden;background:var(--page-background-color)}
.nb-step05-page .nb-step05-caption{font-size:.76rem;line-height:1.5;margin:9px 1px 0;opacity:.89}
.nb-step05-page .nb-step05-error{padding:10px 12px;border:1px solid currentColor;border-radius:5px;margin:12px 0;font-size:.82rem}
.nb-step05-page .nb-step05-readings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 13px;margin:12px 0 8px}
.nb-step05-page .nb-step05-readings>div{display:flex;flex-direction:column;gap:3px;padding:10px 2px;border-top:1px solid var(--nb-rule);min-width:0}
.nb-step05-page .nb-step05-readings strong{font:600 .72rem/1.4 'Segoe UI',Arial,sans-serif}
.nb-step05-page .nb-step05-readings span{font:500 .94rem/1.4 'Segoe UI',Arial,sans-serif;overflow-wrap:anywhere}
.nb-step05-page .nb-step05-conclusion{border-left:3px solid var(--nb-ink);padding:10px 13px;background:var(--page-background-color);font-size:.85rem;line-height:1.6;margin:13px 0 0}
.nb-step05-page .nb-step05-notes{margin:17px 0 0;padding:0 16px;background:var(--nb-wash)}
.nb-step05-page .nb-step05-notes p{font-size:.83rem;line-height:1.67;margin:8px 0 15px;max-width:100ch}
.nb-step05-page .nb-step05-trail{display:flex;justify-content:space-between;gap:13px;flex-wrap:wrap;padding-top:17px;margin-top:22px;border-top:1px solid var(--nb-rule);font-size:.87rem}
.nb-step05-page .nb-step05-trail a{color:var(--text-color)}
.nb-step05-page .nb-step05-trail span{opacity:.7}
.nb-step05-page input:focus-visible,.nb-step05-page a:focus-visible,.nb-step05-page summary:focus-visible{outline:3px solid currentColor;outline-offset:3px}
@media(max-width:890px){.nb-step05-page .nb-step05-grid{grid-template-columns:minmax(0,1fr)}.nb-step05-page .nb-step05-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px}.nb-step05-page .nb-step05-control-head,.nb-step05-page .nb-step05-wind-reading,.nb-step05-page #brakeInspectWind,.nb-step05-page .nb-step05-ends,.nb-step05-page .nb-step05-small{grid-column:1/-1}.nb-step05-page .nb-step05-selection{margin-top:14px}.nb-step05-page .nb-step05-details{grid-column:1/-1}}
@media(max-width:600px){.nb-step05-page .nb-lead-col{min-height:0;padding-bottom:18px}.nb-step05-page .nb-step05-controls{display:flex}.nb-step05-page .nb-step05-section{padding:15px}.nb-step05-page .nb-step05-chart{min-height:340px}.nb-step05-page .nb-step05-results{padding:12px}.nb-step05-page .nb-step05-readings{grid-template-columns:minmax(0,1fr)}.nb-step05-page .nb-step05-chart-top h3{font-size:1.28rem}}

/* Visible but compact safety screening, without displacing the comparison chart. */
.nb-step05-page .nb-step05-screening{font-weight:700;font-size:.78rem;line-height:1.55;border-left:4px solid #ad6139;background:var(--page-background-color);padding:10px 12px;margin:12px 0}
.nb-step05-page .nb-step05-chart.is-unavailable{min-height:156px;display:grid;place-items:center;padding:20px}
.nb-step05-page .nb-step05-chart.is-unavailable p{font:500 .93rem/1.5 Georgia,serif;opacity:.8;text-align:center;margin:0}

/* Brick 33 · Beaufort-coloured comparative wind ramp; Brick 34 extends Step 05 to B12. */
.nb-step05-page .nb-step05-beaufort{display:grid;grid-template-columns:1fr auto;gap:4px 10px;align-items:baseline;margin:17px 0 11px;padding:12px 13px;border-left:3px solid var(--nb-beaufort-colour,#398ca8);background:var(--page-background-color);border-radius:3px}
.nb-step05-page .nb-step05-beaufort .nb-small-cap{grid-column:1/-1}
.nb-step05-page .nb-step05-beaufort strong{font:600 1.06rem/1.3 'Segoe UI',Arial,sans-serif}
.nb-step05-page .nb-step05-beaufort small{font:.72rem/1.5 'Segoe UI',Arial,sans-serif;opacity:.82}
.nb-step05-page .nb-step05-ramp-actions{display:flex;gap:9px;flex-wrap:wrap;margin:2px 0 13px}
.nb-step05-page .nb-step05-ramp-actions button{cursor:pointer;min-height:42px;border:1px solid var(--nb-rule);padding:9px 13px;border-radius:5px;background:var(--page-background-color);color:var(--text-color);font:600 .82rem/1.4 'Segoe UI',Arial,sans-serif}
.nb-step05-page #brakeRampToggle{background:var(--nb-ink);color:var(--page-background-color);border-color:var(--nb-ink);flex:1}
.nb-step05-page .nb-step05-switch{display:flex;gap:9px;align-items:center;font:500 .77rem/1.4 'Segoe UI',Arial,sans-serif;margin:4px 0 14px;cursor:pointer}
.nb-step05-page .nb-step05-switch input{width:18px;height:18px;accent-color:var(--text-color)}
.nb-step05-page .nb-step05-scale{display:flex;flex-direction:column;gap:5px;font:600 .75rem/1.4 'Segoe UI',Arial,sans-serif}
.nb-step05-page .nb-step05-scale select{max-width:100%;min-width:0;width:100%;border:1px solid var(--nb-rule);border-radius:5px;padding:10px 8px;background:var(--page-background-color);color:var(--text-color);font:500 .8rem 'Segoe UI',Arial,sans-serif}
.nb-step05-page .nb-step05-trail-key{display:flex;align-items:center;flex-wrap:wrap;gap:5px 12px;margin:4px 0 10px;min-height:24px}
.nb-step05-page .nb-step05-trail-key [role=listitem]{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font:600 .7rem/1.45 'Segoe UI',Arial,sans-serif}
.nb-step05-page .nb-step05-trail-key i{width:14px;height:3px;display:inline-block;background:var(--nb-trail-colour);border-radius:2px}
.nb-step05-page .nb-step05-trail-key .is-current{border-bottom:1px solid currentColor}
.nb-step05-page .nb-step05-trail-key:empty{display:none}
.nb-step05-page button:focus-visible,.nb-step05-page select:focus-visible{outline:3px solid currentColor;outline-offset:3px}
.nb-step05-page .nb-step05-wind-warning{font-weight:600;border-left-color:#b06940}
@media(max-width:890px){.nb-step05-page .nb-step05-beaufort,.nb-step05-page .nb-step05-ramp-actions,.nb-step05-page .nb-step05-switch,.nb-step05-page .nb-step05-scale{grid-column:1/-1}}
@media(max-width:600px){.nb-step05-page .nb-step05-beaufort{grid-template-columns:1fr}.nb-step05-page .nb-step05-beaufort strong,.nb-step05-page .nb-step05-beaufort small{grid-column:1}}

/* Brick 35: opt-in extended Beaufort 13–17, with original 32.7 m/s default. */
.nb-step05-page .nb-step05-extended{display:flex;align-items:center;margin:9px 0 14px;padding:10px 12px;border:1px solid var(--nb-rule);border-radius:5px;background:var(--page-background-color);font-weight:650}
.nb-step05-page .nb-step05-extended input{accent-color:var(--nb-ink);margin-right:9px;flex-shrink:0}
