/* ============================================
   Hydraulics section — hub /hydraulic-equipment and the drive calculator (v2)
   Loaded after pneu.css and auto.css: reuses the hero (pnh, auh), task picker (aut), photo tiles (aud),
   rail (pns), code decoder (pnd), calculator shell (aur), case cards (auc), order steps (pno).
   Behaviour: js/pneu.js + js/hydro.js.
   ============================================ */

/* ---------------- catalogue: a row of three tiles between the big pair and the four small ones ---------------- */
.aud-t{ grid-column: span 4; min-height: 320px; }
.aud-t .aud-name{ font-size: clamp(20px, 1.8vw, 25px); }
@media (max-width: 1100px){ .aud-t{ grid-column: span 6; } .aud-t:nth-of-type(5){ grid-column: 1 / -1; } }
@media (max-width: 620px){ .aud-t, .aud-t:nth-of-type(5){ grid-column: 1 / -1; min-height: 280px; } }

/* ---------------- hero: longer values in the facts row ---------------- */
.hyh .pnh-fact dd{ font-size: min(clamp(20px, 2.1vw, 31px), 2.9cqi); }
@media (max-width: 900px){ .hyh .pnh-fact dd{ font-size: clamp(19px, 5.4cqi, 28px); } }

/* ---------------- decoder: eight parts of the station code ---------------- */
.hyd .pnd-list{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hyd .pnd-code{ flex-wrap: wrap; }
@media (max-width: 1100px){ .hyd .pnd-list{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px){ .hyd .pnd-list{ grid-template-columns: minmax(0, 1fr); } }

/* ---------------- drive calculator (shell — .aur from auto.css) ---------------- */
.hyc .aur-f select{
  width: 100%; height: 50px; padding: 0 40px 0 14px; border-radius: 12px; border: 1.5px solid rgba(10,10,12,.12);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%230a0a0c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  font: 700 17px/1 'Unbounded', var(--font-display); letter-spacing: -.02em; color: var(--ink); transition: border-color .2s, background-color .2s;
}
.hyc .aur-f select:focus{ outline: none; border-color: var(--accent); background-color: #fff; }
.hyc .aur-f select:disabled{ opacity: .45; cursor: default; }
.hyc-presets{ padding-top: 18px; border-top: 1px solid rgba(10,10,12,.08); }
.hyc-presets p{ font: 600 14px/1.3 var(--font-display); color: var(--ink); }
.hyc-presets > div{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hyc-presets button{
  display: grid; gap: 5px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid rgba(10,10,12,.12); background: transparent; color: var(--ink);
  font: 600 14px/1.2 var(--font-display); text-align: left; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.hyc-presets button small{ font: 500 12px/1.3 var(--font-body); color: var(--muted); transition: color .2s; }
.hyc-press button{ justify-items: center; padding: 0; height: 46px; align-content: center; font: 700 15px/1 'Unbounded', var(--font-display); letter-spacing: -.02em; }
.hyc-presets button.is-on{ background: var(--ink); border-color: var(--ink); color: #fff; }
.hyc-presets button.is-on small{ color: rgba(255,255,255,.6); }
.hyc-presets button:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine){ .hyc-presets button:not(.is-on):hover{ border-color: var(--accent); } }
/* formulas sit at the bottom of the input card and take up the height left next to the result card */
.hyc-how{ margin: 0; align-self: end; display: grid; gap: 7px; padding-top: 18px; border-top: 1px solid rgba(10,10,12,.08); }
.hyc-how dt{ margin-bottom: 3px; font: 600 14px/1.3 var(--font-display); color: var(--ink); }
.hyc-how dd{ margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.hyc-how b{ min-width: 172px; font: 600 14px/1.3 var(--font-display); letter-spacing: 0; color: var(--ink); white-space: nowrap; }
@media (min-width: 981px){
  .hyc .aur-in{ grid-template-rows: repeat(3, auto) 1fr; }
}
.hyc-rows [hidden]{ display: none; }
.hyc-rows dd{ white-space: normal; text-align: right; flex: 0 1 auto; }
.hyc-rows dd a{ color: var(--accent-2); border-bottom: 1px solid rgba(255,122,61,.4); font: 600 14.5px/1.3 var(--font-display); letter-spacing: 0; transition: color .2s, border-color .2s; }
@media (hover: hover) and (pointer: fine){ .hyc-rows dd a:hover{ color: #fff; border-color: #fff; } }
@media (max-width: 760px){ .hyc-presets > div{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px){ .hyc-rows dd{ text-align: left; } }

/* ---------------- reverse engineering ---------------- */
.hyr-grid{ display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px clamp(28px, 5vw, 80px); align-items: center; }
.hyr-copy .sh-lead{ max-width: 56ch; }
.hyr-copy .sh-lead + .sh-lead{ margin-top: 12px; }
.hyr-sets{ margin: 26px 0 28px; display: grid; gap: 16px; }
.hyr-sets dt{ font: 600 12px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.hyr-sets dd{ margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hyr-sets span{ display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 9px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05);
  font: 600 13.5px/1 var(--font-display); color: #fff; white-space: nowrap; }
.hyr-media{ position: relative; margin: 0; }
.hyr-media img{ display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 26px; }
.hyr-media figcaption{ position: absolute; left: 14px; bottom: 14px; padding: 8px 12px; border-radius: 10px; background: rgba(10,10,12,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font: 600 12.5px/1 var(--font-display); color: #fff; }
.hyr-steps{ counter-reset: hyr; margin-top: clamp(36px, 6vh, 64px); }
.hyr-steps li{ counter-increment: hyr; }
.hyr-steps h3::before{ content: counter(hyr) ". "; color: var(--accent-2); }
@media (max-width: 900px){ .hyr-grid{ grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce){
  .hyc .aur-f select, .hyc-presets button, .hyc-presets button small, .hyc-rows dd a{ transition: none; }
}

/* phones: every formula on its own line, the explanation under it */
@media (max-width: 480px){ .hyc-how b{ min-width: 100%; } }

/* station pages: "other stations" links in two groups — by pressure, by drive and purpose (2026-10-26) */
.lnx-group{ margin: 26px 0 0; font: 600 12px/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.lnx-group + .lnx{ margin-top: 12px; }
