/* HB3D Hydrostatics workspace page (preview). Uses the HB3D UI v1.0 tokens from styles.css. */
.hydro-hero { display: block; padding: 2rem 1.2rem 1.8rem; }
.hydro-hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin: 0.2rem 0 0.9rem; }
.hydro-hero .lede { max-width: 46rem; }
.ws-head { display: inline-flex; align-items: center; gap: 0.55rem; margin-bottom: 0.9rem; color: var(--text2); font-size: 0.78rem; font-weight: 500; }
.ws-head i { width: 8px; height: 8px; border-radius: 2px; background: #2DD4BF; box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.13); }
.ws-head kbd { font-family: var(--mono); color: var(--text3); font-size: 0.72rem; }
.video-card { padding: 0.6rem; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-panel); overflow: hidden; background: var(--viewport); border: 1px solid var(--hairline); }
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: var(--viewport); }
.video-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; padding: 0.6rem 0.4rem 0.2rem; color: var(--text3); font-size: 0.78rem; }
.video-meta b { color: var(--text2); font-weight: 600; }
.hydro-grid { display: grid; gap: 0.9rem; }
.hydro-grid article { padding: 1.15rem; display: grid; gap: 0.55rem; align-content: start; }
.hydro-grid p, .hydro-grid li { color: var(--text2); font-size: 0.94rem; }
.hydro-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.4rem; }
.hydro-grid li { position: relative; padding-left: 1.2rem; }
.hydro-grid li::before { content: ""; position: absolute; left: 0.1rem; top: 0.62em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.hydro-grid .is-soon li::before { background: var(--warning); }
.soon-pill { justify-self: start; padding: 0.2rem 0.6rem; border-radius: var(--r-chip); border: 1px solid var(--strong); color: var(--warning); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.formulas { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.formulas li { display: grid; gap: 0.15rem; padding: 0.7rem 0.85rem; border-radius: var(--r-panel); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--hairline); }
.formulas code { font-family: var(--mono); font-size: 1rem; color: var(--text1); }
.formulas span { color: var(--text3); font-size: 0.84rem; }
.hydro-note { margin-top: 1rem; color: var(--text3); font-size: 0.84rem; }
.nav-panel a[aria-current="page"] { color: var(--text1); background: rgba(255, 255, 255, 0.08); }
/* workspace switcher link (index page) */
.ws-switch a { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 30px; padding: 0.25rem 0.75rem; border-radius: var(--r-button); color: var(--text2); font-size: 0.78rem; font-weight: 500; text-decoration: none; transition: background-color 0.08s, color 0.08s; }
.ws-switch a:hover { background: rgba(255, 255, 255, 0.06); color: var(--text1); }
.ws-switch a i { width: 6px; height: 6px; border-radius: 2px; background: #2DD4BF; }
@media (min-width: 860px) {
  .hydro-hero { padding: 2.4rem 2rem 2.2rem; }
  .hydro-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) { .hydro-grid.three { grid-template-columns: repeat(3, 1fr); } }

.video-meta { align-items: center; }
.mix-switch { display: inline-flex; gap: 2px; padding: 3px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--hairline); border-radius: 9px; }
.mix-switch button { min-height: 28px; padding: 0.2rem 0.7rem; border: 0; border-radius: var(--r-button); background: transparent; color: var(--text2); font: inherit; font-size: 0.76rem; font-weight: 500; cursor: pointer; }
.mix-switch button:hover { background: rgba(255, 255, 255, 0.06); color: var(--text1); }
.mix-switch button.is-on { background: rgba(255, 255, 255, 0.10); color: var(--text1); box-shadow: var(--inner-highlight); }
