/* Gas spring: drawing 3 next to the calculator (desktop >= 900 px). Mockup 2026-10.
   Below 900 px nothing changes: the side figure is not rendered at all. Only --gd-* tokens. */
.gs-geo-side { display: none; }
@media (min-width: 900px) {
  .container.gs-wide { max-width: var(--gd-wrap); }            /* 1120 px, as site.css */
  #tool.gs-tool { display: grid; grid-template-columns: minmax(0, 1fr) clamp(440px, 38vw, 520px); column-gap: 1.5rem; align-items: start; }
  #tool.gs-tool > * { grid-column: 1; min-width: 0; }
  #tool.gs-tool > .gs-geo-side { display: flex; flex-direction: column; grid-column: 2; grid-row: 1 / span 20;
    position: sticky; top: 16px; max-height: calc(100vh - 32px); margin: 0; }
  .gs-geo-side svg { display: block; width: 100%; height: auto; max-height: calc(100vh - 32px - 5.5rem); border-radius: var(--gd-radius); border: 1px solid var(--gd-border); }
  .gs-geo-side figcaption { margin-top: .5rem; font-size: .85rem; color: var(--gd-muted-strong); }
  #tool .gs-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #tool .gs-charts { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) and (max-width: 1099px) {
  #tool .gs-fields, #tool .gs-charts { grid-template-columns: minmax(0, 1fr); }
}
/* highlight: colour + thicker strokes + framed soft background (not colour alone) */
#geo3 .geo { cursor: pointer; }
#geo3 .geo-halo { fill: var(--gd-ok-bg); stroke: var(--gd-accent); stroke-width: 1.5; opacity: 0; }
#geo3 .geo.is-on .geo-halo { opacity: 1; }
#geo3 .geo.is-on text, #geo3 .geo.is-on tspan { fill: var(--gd-ok-text); font-weight: 800; }
#geo3 .geo.is-on .t { stroke: var(--gd-accent); stroke-width: 3.2; }
#geo3 .geo.is-on circle { stroke-width: 3; }
@media (prefers-reduced-motion: no-preference) {
  #geo3 .geo-halo { transition: opacity .15s ease-out; }
  #geo3 .t { transition: stroke-width .15s ease-out; }
}
/* the field that drives the highlight gets the same soft frame */
@media (min-width: 900px) {
  .gs-field.is-geo-on { outline: 1.5px solid var(--gd-accent); outline-offset: 4px; border-radius: 6px; background: var(--gd-ok-bg); }
}

/* Kilgore 20-10-2026: from 900 px hide the second copy of drawing 3 (it sits sticky next to the tool). */
@media (min-width: 900px) { figure[data-slot="drawing-3"] { display: none; } }

/* Kilgore 20-10-2026: Bereken above the fold at 1366x768. Spacing only, no text change; >= 900 px only. */
@media (min-width: 900px) {
  header { position: relative; padding-top: 12px; padding-bottom: 12px; }
  header .site-lang { position: absolute; top: 12px; right: 24px; margin: 0; }
  header .gd-brand-mark { margin-bottom: .2rem; }
  header h1 { margin: .1rem 0 .2rem; }
  header > p { margin: 0; }
  .container.gs-wide { margin-top: 12px; }
  #tool.gs-tool { padding: 16px 20px; }
  #tool .lead { font-size: .95rem; line-height: 1.45; margin: 0 0 .4rem; }
  #tool .gs-coords { font-size: .8rem; line-height: 1.4; margin: 0 0 .4rem; }
  #tool .gs-form .gs-fields { gap: .45rem 1rem; margin: .4rem 0 .6rem; }
  #tool .gs-field > label:not(.gs-radio), #tool .gs-n legend { min-height: 0; margin-bottom: .15rem; line-height: 1.3; }
  #tool .gs-field .gs-hint-s { font-size: .78rem; line-height: 1.35; margin: .2rem 0 0; }
}
@media (min-width: 900px) {
  #tool.gs-tool { grid-template-columns: minmax(0, 1fr) clamp(400px, 32vw, 440px); }
  .gs-sec-tool > .gs-sec-h { margin: 0 0 .4rem; }
  header h1 { font-size: 1.6rem; line-height: 1.2; }
  #tool .gs-field { display: flex; flex-direction: column; }
  #tool fieldset.gs-field { display: block; }
  #tool .gs-field > label:not(.gs-radio) { flex: 1 0 auto; }
  #tool .gs-field:has(.gs-hint-s) > label:not(.gs-radio) { flex: 0 0 auto; }
  #tool .gs-field > .gs-hint-s { flex: 1 0 auto; }
}
@media (min-width: 900px) {
  header .gd-brand-mark { display: inline-flex; align-items: center; margin: 0 1rem 0 0; vertical-align: middle; }
  header h1 { display: inline; vertical-align: middle; margin: 0; }
  header > p { margin-top: .25rem; }
  #tool .lead { font-size: .92rem; }
  #tool .gs-coords { font-size: .78rem; }
}
@media (min-width: 1280px) { .container.gs-wide { max-width: 1240px; } }
@media (min-width: 900px) {
  header { padding-top: 8px; padding-bottom: 8px; }
  header .site-lang { top: 8px; }
  .gs-sec-tool > .gs-sec-h { font-size: 1.2rem; margin: 0 0 .3rem; }
  #tool.gs-tool { padding: 12px 20px; }
  #tool .gs-form .gs-fields { gap: .3rem 1rem; margin: .25rem 0 .5rem; }
  #tool .gs-field > label:not(.gs-radio), #tool .gs-n legend { margin-bottom: .1rem; }
}
