/* Brick 02: editorial integration for the unchanged Step 01 VAWT solver.
   All geometry, themes, header, menu and footer are inherited from the Warlock 2025 site. */
.nb-rotor-page{--r-rule:color-mix(in srgb,var(--text-color) 25%,transparent);--r-wash:color-mix(in srgb,var(--page-background-color) 92%,var(--text-color) 8%);--r-wash2:color-mix(in srgb,var(--page-background-color) 96%,var(--text-color) 4%);--r-ink:var(--text-color);color:var(--r-ink)}
.nb-rotor-page [hidden]{display:none!important}
.nb-rotor-page .nb-rotor-intro{padding:0 0 18px}.nb-rotor-page .nb-lead-col{min-height:clamp(480px,50vw,790px)}
.nb-rotor-page .title-row h1{margin:.55em 0 .25em}
.nb-rotor-page .nb-rotor-feature svg{display:block;max-width:94%;width:230px;height:auto;margin:5px auto;flex:1}
.nb-rotor-page .nb-rotor-feature{background-image:var(--linear-gradient-ar)}
.nb-rotor-page .nb-rotor-feature .nb-side-caption{font-size:clamp(.63rem,.85vw,.95rem);line-height:1.35}
.nb-rotor-page .rotor-hero-copy{margin-top:1.3rem}
.nb-rotor-page .rotor-hero-copy h2{font:500 clamp(1.3rem,2vw,2rem)/1.15 Georgia,serif;margin:0 0 .65rem}
.nb-rotor-page .rotor-hero-copy p{font-size:.97rem;max-width:58ch}
.nb-rotor-page .rotor-dimensions{display:flex;flex-wrap:wrap;gap:12px;margin:17px 0 13px}
.nb-rotor-page .rotor-dimensions span{display:flex;flex:1;min-width:105px;flex-direction:column;padding:10px 12px;border:1px solid var(--r-rule);background:var(--r-wash2);font-size:.72rem}
.nb-rotor-page .rotor-dimensions strong{font:500 clamp(1.15rem,2.2vw,1.8rem)/1.2 Georgia,serif}
.nb-rotor-page .rotor-hero-copy>a{font-size:.85rem}.nb-rotor-page .nb-intro-foot{font-size:.86rem;margin:1.2rem 0}
.nb-rotor-page .nb-rotor-section{padding:clamp(18px,3vw,46px)}
.nb-rotor-page .nb-rotor-workbench{display:grid;grid-template-columns:minmax(0,38.2114fr) minmax(0,61.7886fr);gap:clamp(13px,2vw,28px);align-items:start}
.nb-rotor-page .nb-rotor-workbench>*{min-width:0}
.nb-rotor-page .inputs,.nb-rotor-page .nb-rotor-visual,.nb-rotor-page .plot-panel,.nb-rotor-page .metric,.nb-rotor-page .methodology,.nb-rotor-page .provenance,.nb-rotor-page .source-details{border:1px solid var(--r-rule);background:var(--r-wash2);border-radius:9px;padding:clamp(14px,2vw,27px);min-width:0}
.nb-rotor-page .panel-title,.nb-rotor-page .nb-panel-head h3{font:500 1.5rem/1.2 Georgia,serif;margin:.2rem 0 1.2rem}
.nb-rotor-page .panel-title>span{font:750 .75rem Arial,sans-serif;letter-spacing:.12em;margin-right:.6rem}
.nb-rotor-page .field-label{display:block;font-size:.85rem;font-weight:750;margin:14px 0 7px}
.nb-rotor-page .dataset-select{display:block;width:100%;max-width:100%;padding:12px;border:1px solid var(--r-rule);border-radius:5px;color:var(--r-ink);background:var(--r-wash2);font-size:.92rem}
.nb-rotor-page .helper{font-size:.78rem;line-height:1.5;opacity:.85;margin:8px 0 14px}
.nb-rotor-page .seg{display:flex;gap:6px;flex-wrap:wrap}
.nb-rotor-page .seg-button{flex:1;min-width:90px;min-height:42px;padding:10px 8px;border:1px solid var(--r-rule);border-radius:5px;color:var(--r-ink);background:var(--r-wash2);cursor:pointer;font-weight:600}
.nb-rotor-page .seg-button.active{background:var(--r-ink);color:var(--page-background-color);border-color:var(--r-ink)}
.nb-rotor-page .seg-button:disabled,.nb-rotor-page input:disabled{opacity:.5}
.nb-rotor-page .slider-header{display:flex;justify-content:space-between;align-items:center;gap:5px}.nb-rotor-page .slider-header output{font-size:1.4rem;font-weight:600}
.nb-rotor-page input[type="range"]{width:100%;accent-color:var(--r-ink)}.nb-rotor-page .slider-labels{display:flex;justify-content:space-between;font-size:.77rem;opacity:.75}
.nb-rotor-page .micro-card{border-top:1px solid var(--r-rule);margin-top:18px;padding:15px 0 3px}.nb-rotor-page .micro-label{font-size:.7rem;font-weight:700;letter-spacing:.12em}.nb-rotor-page .micro-value{font:500 1.4rem Georgia,serif;margin:4px 0 13px}.nb-rotor-page .micro-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.nb-rotor-page .micro-grid>div{display:flex;flex-direction:column;border-bottom:1px solid var(--r-rule);padding-bottom:8px;font-size:.74rem}.nb-rotor-page .micro-grid strong{font-size:.92rem}
.nb-rotor-page .toggle-row{display:flex;gap:9px;align-items:flex-start;font-size:.82rem;line-height:1.35;margin:15px 0}.nb-rotor-page .toggle-row input{width:17px;height:17px;flex:none;accent-color:var(--r-ink)}
.nb-rotor-page .divider{height:1px;background:var(--r-rule);margin:17px 0}.nb-rotor-page .download-link{display:block;padding:12px;border:1px solid var(--r-rule);border-radius:5px;text-decoration:none;font-weight:700;font-size:.86rem}.nb-rotor-page .data-links{font-size:.78rem;line-height:1.7;margin-top:12px;overflow-wrap:anywhere}
.nb-rotor-page .nb-rotor-visual{background:var(--r-wash)}.nb-rotor-page .nb-panel-head h3{margin:.6rem 0 1rem}
.nb-rotor-page .sketch-panel{padding:8px;border-top:1px solid var(--r-rule)}.nb-rotor-page .sketch-header{display:flex;flex-wrap:wrap;gap:6px;justify-content:space-between;font-size:.76rem}.nb-rotor-page .sketch-header span{font-size:.7rem;opacity:.8}
.nb-rotor-page .step01-views{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.nb-rotor-page .step01-mini-view,.nb-rotor-page .step01-section{background:var(--r-wash2);padding:9px;border:1px solid var(--r-rule);border-radius:7px;min-width:0}
.nb-rotor-page .step01-mini-view svg{display:block;width:100%;height:auto;max-height:220px;margin:auto}.nb-rotor-page .step01-view-label{text-align:center;font-size:.75rem;font-weight:750;line-height:1.5;letter-spacing:.045em}
.nb-rotor-page .step01-section{margin-top:13px}.nb-rotor-page .step01-section svg{max-width:390px;width:100%;height:auto;display:block;margin:auto}.nb-rotor-page .sketch-note,.nb-rotor-page .sketch-disclaimer{text-align:center;font-size:.77rem;margin:13px 0 4px}.nb-rotor-page .sketch-disclaimer{font-size:.72rem;opacity:.8}
.nb-rotor-page .plot-panel{background:var(--r-wash2);padding:clamp(12px,2vw,24px)}.nb-rotor-page .plot-heading{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px}.nb-rotor-page .plot-heading h2{font:500 clamp(1.15rem,2vw,1.8rem)/1.2 Georgia,serif;margin:.3rem 0 0}.nb-rotor-page .plot-tag{font:750 .73rem/1.35 Arial,sans-serif;letter-spacing:.07em;text-transform:uppercase;border:1px solid var(--r-rule);padding:8px;border-radius:5px;max-width:100%}.nb-rotor-page .eyebrow{font-size:.68rem;letter-spacing:.13em;font-weight:700}.nb-rotor-page .plot{height:clamp(330px,41vw,490px);width:100%;background:white;border:1px solid #ddd;max-width:100%}
.nb-rotor-page .legend-note,.nb-rotor-page .range-note{font-size:.83rem;line-height:1.5;margin:13px 0 0}.nb-rotor-page .range-note{border-top:1px solid var(--r-rule);padding-top:12px}.nb-rotor-page .legend-dot{display:inline-block;background:#0a8b79;border-radius:100%;width:7px;height:7px;margin-right:6px}
.nb-rotor-page .study-display-note{font-size:.84rem;padding:11px;margin:12px 0;border-left:3px solid currentColor;background:var(--r-wash)}.nb-rotor-page .study-display-switch{display:flex;gap:8px;align-items:center;font-size:.87rem;margin-top:14px}
.nb-rotor-page .metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin:14px 0 0}.nb-rotor-page .metric{padding:14px}.nb-rotor-page .metric-title{font-size:.69rem;font-weight:700;letter-spacing:.09em;line-height:1.3;min-height:35px}.nb-rotor-page .metric-number{font:500 clamp(1.6rem,3vw,2.8rem)/1.1 Georgia,serif;margin:7px 0}.nb-rotor-page .metric-foot{font-size:.75rem;line-height:1.5;opacity:.8}
.nb-rotor-page .nb-evidence-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.nb-rotor-page .method-step{display:grid;grid-template-columns:26px 1fr;gap:5px;margin:14px 0}.nb-rotor-page .method-step .index{font-family:Georgia,serif;font-style:italic;font-size:1.3rem}.nb-rotor-page .method-step p{font-size:.84rem;line-height:1.6;margin:.5rem 0}.nb-rotor-page .formula{padding:10px;margin:8px 0;border:1px solid var(--r-rule);background:var(--r-wash);font-size:.88rem;white-space:normal;overflow-wrap:anywhere}.nb-rotor-page .source-list>div{border-bottom:1px solid var(--r-rule);display:flex;flex-direction:column;gap:3px;padding:0 0 11px;margin:12px 0}.nb-rotor-page .source-list small{font-size:.71rem;letter-spacing:.1em}.nb-rotor-page .source-list strong{font-size:.96rem}.nb-rotor-page .source-list span,.nb-rotor-page .source-list a{font-size:.83rem}.nb-rotor-page .caution{border-left:3px solid currentColor;padding:10px 12px;background:var(--r-wash);margin:14px 0}.nb-rotor-page .caution strong{font-size:.76rem;letter-spacing:.08em}.nb-rotor-page .caution p{font-size:.81rem;line-height:1.55;margin:6px 0 0}
.nb-rotor-page .source-details{margin-top:14px}.nb-rotor-page .source-details summary{font-size:1.05rem;font-weight:700;cursor:pointer}.nb-rotor-page .source-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}.nb-rotor-page .source-gallery figure{margin:0;min-width:0}.nb-rotor-page .source-gallery img{width:100%;display:block;height:auto;object-fit:contain;max-height:320px;background:white}.nb-rotor-page .source-gallery figcaption{font-size:.76rem;line-height:1.4;margin-top:6px}
.nb-rotor-page .nb-step-trail{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px}.nb-rotor-page .nb-step-trail a{font-weight:700}.nb-rotor-page .nb-pending{font-size:.85rem;opacity:.8}.nb-rotor-page .nb-source-note,.nb-rotor-page .nb-final-note{font-size:.88rem;line-height:1.6;margin:18px 0 0}
.nb-rotor-page button:focus-visible,.nb-rotor-page a:focus-visible,.nb-rotor-page select:focus-visible{outline:3px solid currentColor;outline-offset:2px}
@media(max-width:850px){.nb-rotor-page .nb-rotor-workbench{grid-template-columns:1fr}.nb-rotor-page .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.nb-rotor-page .nb-evidence-grid{grid-template-columns:1fr}}
@media(max-width:600px){.nb-rotor-page .nb-lead-col{padding:0 0 16px;min-height:0}.nb-rotor-page .nb-rotor-intro #viewonmobile{padding:1.15rem}.nb-rotor-page .nb-rotor-section{padding:1.15rem}.nb-rotor-page .plot{height:360px}.nb-rotor-page .nb-rotor-workbench{gap:12px}.nb-rotor-page .nb-step-trail{align-items:flex-start;flex-direction:column}}
@media(max-width:480px){.nb-rotor-page .golden2{float:none;width:100%;aspect-ratio:auto;display:grid;grid-template-columns:38.2114% 61.7886%}.nb-rotor-page .golden2a,.nb-rotor-page .golden2b{float:none;width:100%;aspect-ratio:auto;min-height:100px;padding:5px}.nb-rotor-page .golden3{float:none;width:100%;aspect-ratio:auto;min-height:215px;padding:5px}.nb-rotor-page .golden4{float:none;width:100%;padding:5px}.nb-rotor-page .nb-rotor-feature svg{max-height:154px;width:210px}.nb-rotor-page .nb-rotor-feature .nb-side-caption{font-size:13px}.nb-rotor-page .nb-rotor-section .nb-section-head h2{font-size:clamp(1.5rem,7vw,2.1rem)}.nb-rotor-page .metrics{gap:8px}.nb-rotor-page .metric{padding:10px}.nb-rotor-page .metric-title{font-size:.64rem;min-height:43px}.nb-rotor-page .metric-number{font-size:1.6rem}.nb-rotor-page .step01-views{grid-template-columns:1fr 1fr;gap:5px}.nb-rotor-page .source-gallery{grid-template-columns:1fr}.nb-rotor-page .plot-heading{display:block}.nb-rotor-page .plot-tag{display:inline-block;margin:10px 0}}

/* Brick 02 polish: HAL9000 desktop/mobile screenshot review.
   Preserve the inherited golden page grid and original solver; these are
   Step 01 presentation-only refinements for narrow viewports. */
@media (max-width: 600px) {
  .nb-rotor-page .plot { height: 420px; }
  .nb-rotor-page .inputs .field-label { font-size: .91rem; }
  .nb-rotor-page .inputs .helper,
  .nb-rotor-page .data-links,
  .nb-rotor-page .sketch-note,
  .nb-rotor-page .sketch-disclaimer { font-size: .82rem; line-height: 1.5; }
  .nb-rotor-page .dataset-select,
  .nb-rotor-page .seg-button,
  .nb-rotor-page .download-link { min-height: 44px; }
  .nb-rotor-page .metric-title { font-size: .72rem; line-height: 1.35; }
  .nb-rotor-page .metric-foot { font-size: .80rem; }
  .nb-rotor-page .legend-note,
  .nb-rotor-page .range-note { font-size: .88rem; }
}
@media (max-width: 480px) {
  /* Full-width schematics, rather than two miniature side-by-side drawings. */
  .nb-rotor-page .step01-views { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .nb-rotor-page .step01-mini-view { padding: 12px; }
  .nb-rotor-page .step01-mini-view svg { width: min(100%, 350px); max-height: 235px; }
  .nb-rotor-page .step01-view-label { font-size: .85rem; }
  .nb-rotor-page .metric { padding: 12px; }
  .nb-rotor-page .metric-title { min-height: 40px; }
  .nb-rotor-page .metric-number { font-size: 1.85rem; }
  .nb-rotor-page .plot { height: 440px; }
  .nb-rotor-page .plot-tag { font-size: .76rem; }
}


/* Brick 02 live workbench: one unchanged Plotly graph beside the controls.
   On phones the slider ends the Watanabe controls, immediately followed by
   the original graph. No duplicate sliders, graphs or numerical models. */
.nb-rotor-page .nb-rotor-live-workbench { align-items: start; }
.nb-rotor-page .nb-rotor-live-workbench .plot-panel { min-width: 0; }
.nb-rotor-page .nb-rotor-live-workbench .inputs { min-width: 0; }
.nb-rotor-page .nb-rotor-live-workbench .chord-section {
  margin-top: 18px;
  padding: 12px 0 0;
  border-top: 1px solid var(--r-rule);
}
.nb-rotor-page .nb-rotor-live-workbench .chord-section .field-label { margin-top: 0; }
.nb-rotor-page .nb-rotor-export { display: flex; gap: 10px 24px; flex-wrap: wrap; align-items: center; margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--r-rule); }
.nb-rotor-page .nb-rotor-export .divider { display: none; }
.nb-rotor-page .nb-rotor-export .download-link { width: max-content; max-width: 100%; }
.nb-rotor-page .nb-rotor-export .data-links { margin: 0; flex: 1 1 280px; }
.nb-rotor-page .nb-rotor-visual { max-width: 100%; }
@media(min-width:851px) {
  /* Put the slider within the chart's visible height on desktop. The DOM order
     stays slider-last on phones so it leads directly into the stacked plot. */
  .nb-rotor-page #watanabeControls { display: flex; flex-direction: column; }
  .nb-rotor-page #watanabeControls > .chord-section { order: 1; }
  .nb-rotor-page #watanabeControls > .micro-card,
  .nb-rotor-page #watanabeControls > .toggle-row { order: 2; }
}
@media(max-width:850px) {
  .nb-rotor-page .nb-rotor-live-workbench { gap: 12px; }
  .nb-rotor-page .nb-rotor-live-workbench .plot-panel { margin-top: 0; }
}
@media(max-width:480px) {
  .nb-rotor-page .nb-rotor-export .download-link { width: 100%; }
  .nb-rotor-page .nb-rotor-live-workbench .chord-section { margin-bottom: 0; }
  .nb-rotor-page .nb-rotor-live-workbench .plot { height: 440px; }
}
