/* Hangar page (/hangar/, /tr/hangar/). Loaded after site.css, product.css and motion.css, on these two pages only.
   Structure and copy: pazarlama/tasarim/07_hangar_ux.md. Visual system: 03_marka.md + 09_hangar_gorsel.md (round 2:
   tasarim/qc/HANGAR_RAPOR.md). Rules kept here: cells are not cards (no box, no shadow); bar segments are Ink, never the
   accent; chips have radius 8 and are not pills; "FPV ready" is plain text; nothing is hidden at load; no hover zoom;
   the accent marks only the primary action and the selected state. Everything new is prefixed hg-.
   Roster rules are scoped to the roster root (.hg) and the still hero frame is figure.screen.hg-stage, because the
   motion module's bench (hangar-motion.css, scoped to .hg-bench) uses several of the same class names.
   The hero and the roster use subgrid (Safari 16, Chrome 117, Firefox 71); without it both fall back to plain stacks. */

/* ================= Hero (Night): the bench is the stage ================= */
/* This file owns the BOX of the stage and where the bench's parts sit; the motion module (hangar-motion.css, copied
   unedited) fills whatever box .hg-stage is given and covers it with the scene. Contract (08 §9, 09 §8): the bench's
   direct children are .hg-stage, .hg-capbar, .hg-tag, .hg-pick (and the plan pane as a sibling only without script). */
.hg-hero { overflow-x: clip; padding-block: var(--s7) var(--s7); }
.hg-hero h1 { max-width: 12ch; font-size: clamp(2.4rem, 3.6vw, 3.25rem); margin-bottom: var(--s4); }
.hg-hero .lead { max-width: 38ch; margin-bottom: var(--s5); }
.hg-hero .pp-hero-grid { gap: var(--s6) var(--s7); align-items: start;
  --hg-gap: var(--s7); --hg-wrap: min(100vw - 2 * var(--edge), var(--wrap)); --hg-left: calc((var(--hg-wrap) - var(--hg-gap)) / 3);
  --hg-stage-w: calc(var(--hg-wrap) - var(--hg-left) - var(--hg-gap));       /* the second column, inside the page */
  /* as tall as the first screen allows, never flatter than 2:1. At 1440 x 900 this is 888 x 690: the aircraft is about
     600 px wide. That is a touch squarer than the 4:3 the module covers without cropping, so a wingtip can leave the
     frame by about 25 px at the two broadside angles. */
  --hg-stage-h: max(clamp(380px, var(--hg-stage-w) * .777, min(700px, 100vh - 210px)), var(--hg-stage-w) * .5); }
@supports (height: 100svh) { .hg-hero .pp-hero-grid { --hg-stage-h: max(clamp(380px, var(--hg-stage-w) * .777, min(700px, 100svh - 210px)), var(--hg-stage-w) * .5); } }
.hg-hero .hg-bench { min-width: 0; }
.hg-bench .hg-pick li + li { margin-top: 0; }                    /* site.css base rule the module never met */
.screen.hg-stage > picture { aspect-ratio: 1640 / 880; background: #1B2330; }
.screen.hg-stage img { width: 100%; height: 100%; object-fit: cover; }
.screen.hg-stage figcaption { color: var(--muted); }

@media (min-width: 1000px) {
  .hg-hero .pp-hero-grid { display: grid; grid-template-columns: var(--hg-left) minmax(0, 1fr); column-gap: var(--hg-gap); row-gap: 0; }
  .hg-hero .hg-hero-copy { grid-column: 1; grid-row: 1; }
  .hg-hero .hg-bench, .screen.hg-stage { grid-column: 2; grid-row: 1; }
  .hg-hero .hg-bench .hg-stage { aspect-ratio: auto; height: var(--hg-stage-h); }
}
@supports (grid-template-rows: subgrid) {
  /* The bench spans the whole hero grid as a subgrid, so its parts can sit in either column; the copy shares the grid. */
  @media (min-width: 1000px) {
    .hg-hero .pp-hero-grid:has(> .hg-bench) { grid-template-rows: auto auto auto 1fr; }
    .hg-hero .pp-hero-grid:has(> .hg-bench) > .hg-hero-copy { position: relative; z-index: 2; }
    /* a subgrid cannot also be a query container: the module's container query (summary stacks under 520 px) is
       replaced by the explicit placements below */
    .hg-hero .hg-bench { grid-column: 1 / -1; grid-row: 1 / -1; display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid; align-items: start; container-type: normal; }
    .hg-hero .hg-bench > .hg-stage { grid-column: 2; grid-row: 1 / -1; }
    .hg-hero .hg-bench > .hg-capbar { grid-column: 2; grid-row: 1 / -1; margin-top: calc(var(--hg-stage-h) + var(--s3)); }
    .hg-hero .hg-bench > .hg-plan { grid-column: 2; grid-row: 1 / -1; margin-top: calc(var(--hg-stage-h) + var(--s8)); }   /* only without script */
  }
  /* 1181 and up: the summary and the stage list sit under the copy, so the frame has the whole right side */
  @media (min-width: 1181px) {
    .hg-hero .hg-bench > .hg-tag { grid-column: 1; grid-row: 2; grid-template-columns: minmax(0, 1fr); margin-top: var(--s6); padding-top: var(--s5); }
    /* up to three aircraft share one line of the narrow column, thumb above the name: a long name ("Eğitim uçağı",
       "Savaş uçağı") has the whole width of its button and the thumb keeps its size; more than three wrap */
    .hg-hero .hg-bench > .hg-pick { grid-column: 1; grid-row: 3; display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); }
    .hg-hero .hg-bench > .hg-pick a { display: flex; flex-direction: column; justify-content: center; gap: 4px; height: auto; min-height: 68px; padding: 6px 4px; font-size: 13px; line-height: 1.2; text-align: center; white-space: nowrap; }
  }
  /* 1000 to 1180: copy beside the frame, the summary as one strip under both (no dead band beside the copy) */
  @media (min-width: 1000px) and (max-width: 1180px) {
    .hg-hero .hg-bench > .hg-stage, .hg-hero .hg-bench > .hg-capbar, .hg-hero .hg-bench > .hg-plan { grid-row: 1; }
    .hg-hero .hg-bench > .hg-tag { grid-column: 1 / -1; grid-row: 2; margin-top: var(--s5); }
    .hg-hero .hg-bench > .hg-pick { grid-column: 1 / -1; grid-row: 3; }
  }
}
@media (max-width: 999px) {
  .hg-hero .pp-hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .hg-hero h1 { max-width: 18ch; }
  .hg-hero .lead { max-width: 52ch; }
}
@media (max-width: 760px) {
  /* Phones: headline, short words, the Buy button, then the bench (site rule: the visual comes after the action; the
     button is in the first screen at 320 x 568 and 375 x 667) */
  .hg-hero { padding-block: var(--s5) var(--s6); }
  .hg-hero h1 { margin-bottom: var(--s3); }
  .hg-hero .lead { font-size: 1rem; line-height: 1.5; margin-bottom: var(--s4); }
  .hg-hero .hg-hero-copy .buy { margin-top: 0; }
  .screen.hg-stage > picture { aspect-ratio: 1220 / 880; }
  /* the aircraft buttons: one row of three with the thumb above the name (the module wraps them 2 + 1) */
  .hg-hero .hg-bench > .hg-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hg-hero .hg-bench > .hg-pick a { flex-direction: column; justify-content: center; gap: 4px; height: auto; min-height: 72px; padding: 6px 4px; font-size: 13px; line-height: 1.2; text-align: center; }
  /* four figures sit 2 x 2 (the site rule that widens the last one is for five) */
  .hg-specs dl > div:last-child { grid-column: auto; }
}

/* the bench summary uses the roster's bars (the module draws them in the text colour) */
.hg-hero .hg-bench .hg-seg i { width: 18px; height: 6px; border-radius: 3px; background: rgba(220, 230, 245, .18); }
.hg-hero .hg-bench .hg-seg b { border-radius: 3px; background: var(--accent); }

/* ================= Roster ================= */
.hg-roster { padding-block: var(--s8) var(--s8); }
.hg-roster .sec-split { margin-bottom: var(--s6); }

/* ---------- Every aircraft to one scale ---------- */
.hg-lineup { margin: 0; color: var(--text); }
.hg-lu { display: none; width: 100%; height: auto; overflow: visible; }
/* phone: the whole fleet in one row at one scale, swiped sideways (a wall of 40+ silhouettes is too tall) */
.hg-lu-n { display: block; width: auto; max-width: none; }
@media (max-width: 699.98px) {
  .hg-lineup { overflow-x: auto; overscroll-behavior-x: contain; margin-inline: calc(-1 * var(--edge)); padding: 4px var(--edge) 8px; scrollbar-width: thin; }
  /* ten class chips would wrap to four lines: one row, swiped like the lineup */
  .hg nav.hg-chips { flex: 1 1 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; margin-inline: calc(-1 * var(--edge)); padding: 2px var(--edge) 6px; scrollbar-width: none; }
  .hg nav.hg-chips ul { flex-wrap: nowrap; }
  .hg nav.hg-chips .hg-chip { white-space: nowrap; }
}
@media (min-width: 700px) { .hg-lu-n { display: none; } .hg-lu-m { display: block; max-width: 780px; } }
@media (min-width: 1100px) { .hg-lu-m { display: none; } .hg-lu-w { display: block; } }
.hg-lu a { color: inherit; text-decoration: none; }
.hg-lu use { fill: currentColor; transition: fill var(--d-ui) var(--ease-land); }
.hg-lu a:hover use, .hg-lu a:focus-visible use { fill: var(--accent); }
.hg-lu a:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.hg-lineup .hg-s-line path, .hg-lineup .hg-s-line circle { fill: none; stroke: currentColor; stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.hg-lu text { font-family: var(--font); text-anchor: middle; }
.hg-lu-name { fill: var(--text); font-weight: 500; }
.hg-lu-span, .hg-lu-scale { fill: var(--muted); font-variant-numeric: tabular-nums; }
.hg-lu .hg-lu-scale { text-anchor: start; dominant-baseline: text-after-edge; }
.hg-lu-bar { fill: none; stroke: var(--muted); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.hg-lineup-cap { margin: var(--s3) 0 0; max-width: 72ch; }

/* ---------- Where to start ---------- */
.hg-start { margin: 0 0 var(--s6); padding: var(--s5); border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); display: grid; gap: var(--s3) var(--s5); }
.hg-start-h { margin: 0; font-size: 1.3rem; line-height: 1.3; font-weight: 600; }
.hg-path { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4) var(--s5); }
.hg-path li { margin: 0; }
.hg-step { display: block; margin-bottom: 2px; font-size: 14px; line-height: 1.4; color: var(--accent); font-weight: 500; }
.hg-path p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--text-2); }
.hg-path p + p { margin-top: 2px; }
/* on touch screens every link of the path is a 44 px target */
@media (pointer: coarse), (max-width: 760px) {
  .hg-path p + p { margin-top: 0; }
  .hg-path a { display: inline-flex; align-items: center; min-height: 44px; }
  .hg .hg-more summary, .hg .hg-tobench { min-height: 44px; }
  .hg .hg-chip { min-height: 44px; }
  .hg .hg-panel-x { width: 44px; height: 44px; }
}
.hg-path a { color: var(--text); font-weight: 500; }
@media (min-width: 761px) { .hg-path { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .hg-start { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); } }

/* ---------- Class chips: links that jump; the script turns them into a filter ---------- */
.hg .hg-filter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s5); margin-bottom: var(--s5); }
.hg .hg-chips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.hg .hg-chips li { margin: 0; }
.hg .hg-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px var(--s3); border: 1px solid var(--line-strong); border-radius: 12px;
  font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--text); text-decoration: none; background: rgba(255, 255, 255, .06);
  transition: background-color var(--d-ui) var(--ease-land), border-color var(--d-ui) var(--ease-land); }
.hg .hg-chip span { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.hg .hg-chip:hover { background: rgba(255, 255, 255, .12); }
.hg .hg-chip[aria-current="true"] { background: var(--step); border-color: var(--accent); }
.hg .hg-status { margin: 0; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }

/* ---------- The list: four across, a hairline above every row, no boxes. Order on screen = order in the page. ---------- */
.hg .hg-list { --hg-rule: var(--line); list-style: none; margin: 0 -1px; padding: 1px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 20px; overflow-x: clip; }
.hg .hg-item { position: relative; margin: 0 0 20px; padding: 8px 8px 10px; min-width: 0; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.hg .hg-item + .hg-item { margin-top: 0; }
.hg .hg-item > :not(.hg-pic) { padding-inline: 10px; }
/* the rule above a row runs to the right edge of the list from every cell (solid colour, so overlaps do not darken) */
.hg .hg-item[hidden] { display: none; }
@supports (grid-template-rows: subgrid) {
  @media (min-width: 761px) {
    /* each cell is a subgrid of seven lines: picture, class, name, one-liner, bars, figures, Details. Cells of one row
       share those lines, so a class label or a two-line description in one cell cannot push its neighbours out of line */
    .hg .hg-item { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; }
    .hg .hg-item > .hg-pic { grid-row: 1; } .hg .hg-item > .hg-class { grid-row: 2; } .hg .hg-item > .hg-name { grid-row: 3; }
    .hg .hg-item > .hg-line { grid-row: 4; } .hg .hg-item > .hg-bars { grid-row: 5; } .hg .hg-item > .hg-key { grid-row: 6; } .hg .hg-item > .hg-act { grid-row: 7; }
  }
}

.hg .hg-pic { margin: 0 0 var(--s4); aspect-ratio: 3 / 2; border-radius: var(--r-sm); overflow: hidden; background: #7F7A75; }   /* the workshop room's average colour (seq/framing.json), shown until the picture arrives */
.hg .hg-pic picture, .hg .hg-pic img { display: block; width: 100%; height: 100%; }
.hg .hg-pic img { object-fit: cover; }
.hg .hg-item.is-open > .hg-pic, .hg .hg-item:target > .hg-pic, .hg .hg-kinrow li:target > .hg-pic { box-shadow: 0 0 0 2px var(--accent); }
.hg .hg-class { margin: 0; font-size: 14px; line-height: 1.4; color: var(--accent); font-weight: 500; }
.hg .hg-name { margin: 0 0 4px; font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.hg .hg-line { margin: 0; font-size: 15px; line-height: 1.45; color: var(--text-2); }

/* Three ratings, five segments each: the app's own bars */
.hg .hg-bars { margin: var(--s4) 0 0; display: grid; gap: 6px; align-content: start; }
.hg .hg-bars > div { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.hg .hg-bars dt { font-size: 14px; line-height: 1.4; color: var(--text-2); font-weight: 400; }
.hg .hg-bars dd { margin: 0; }
.hg .hg-seg { display: flex; gap: 3px; }
.hg .hg-seg i { display: block; width: 18px; height: 6px; border-radius: 3px; background: rgba(220, 230, 245, .18); }
.hg .hg-seg i.on { background: var(--accent); }

.hg .hg-key { margin: var(--s3) 0 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 var(--s3); font-size: 14px; line-height: 1.5; color: var(--text-2); font-variant-numeric: tabular-nums; }
.hg .hg-fpv { color: var(--accent); }

/* Details (a native disclosure) and the link to the bench */
.hg .hg-act { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--s3); margin-top: 2px; }
.hg .hg-more[open] { flex-basis: 100%; }
.hg .hg-more summary { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; margin-left: -2px; padding: 2px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--text); border-radius: var(--r-xs); }
.hg .hg-more summary::-webkit-details-marker { display: none; }
.hg .hg-more summary .i { width: 16px; height: 16px; color: var(--muted); transition: transform var(--d-ui) var(--ease-land); }
.hg .hg-more[open] summary .i { transform: rotate(180deg); }
.hg .hg-more summary:hover, .hg .hg-tobench:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.hg .hg-tobench { display: inline-flex; align-items: center; min-height: 36px; font-size: 14px; font-weight: 500; color: var(--text); text-decoration: none; }

/* The sheet: the dimensioned drawing and the rows the app shows. In the cell (no script, phones) it stacks. */
.hg .hg-sheet { padding: var(--s2) 0 var(--s3); display: grid; gap: var(--s4); }
.hg .hg-draw { margin: 0; }
.hg .hg-draw figcaption { margin-top: var(--s2); font-size: 13px; line-height: 1.45; color: var(--muted); }
.hg .hg-spec { margin: 0; border-top: 1px solid var(--line); }
.hg .hg-spec > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s3); padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
.hg .hg-spec dt { color: var(--muted); font-weight: 400; }
.hg .hg-spec dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; }
.hg .hg-note { margin: var(--s2) 0 0; font-size: 14px; line-height: 1.45; color: var(--text-2); }

/* Drawings in the bench's drawing language: paper lines on Night, in both themes */
.hg .hg-draw-svg { display: block; width: 100%; height: auto; border-radius: var(--r-md); background: var(--fb-night); box-shadow: 0 0 0 1px var(--line-strong); }
.hg .hg-d-line path { fill: none; stroke: #EEF2F7; stroke-width: 1.4px; stroke-linejoin: round; stroke-linecap: round; }
.hg .hg-d-thin path, .hg .hg-d-thin circle { fill: none; stroke: #B2BDCB; stroke-width: 1px; stroke-linejoin: round; }
.hg .hg-d-dim { fill: none; stroke: #8C9AAE; stroke-width: 1px; }
.hg .hg-d-fig { fill: #EEF2F7; font-family: var(--font); font-weight: 500; font-variant-numeric: tabular-nums; text-anchor: middle; dominant-baseline: hanging; }
.hg .hg-pic.is-draw { background: var(--fb-night); }
.hg .hg-pic.is-draw .hg-draw-svg { height: 100%; border-radius: 0; box-shadow: none; }

/* ---------- The open sheet on wide screens: one panel under the row of the cell it belongs to ---------- */
/* The script moves the sheet into this <li>, placed after the last cell of that row: no cell changes place, and the
   order on screen stays the order in the page. Without the script the sheet opens inside its cell. */
.hg .hg-panel { grid-column: 1 / -1; margin: 0; display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--d-state) var(--ease-land); }
.hg .hg-panel.is-open { grid-template-rows: 1fr; }
.hg .hg-panel-in { min-height: 0; overflow: hidden; }
.hg .hg-panel-box { position: relative; margin: 0 0 20px; padding: var(--s5) var(--s6) var(--s5) var(--s5); border-radius: var(--r-lg); background: var(--raised); box-shadow: 0 0 0 1px var(--line-strong); }
.hg .hg-sheet-head { display: none; }
.hg .hg-panel .hg-sheet-head { display: block; }
.hg .hg-panel-name { margin: 0 var(--s8) 2px 0; font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.15; font-weight: 500; font-stretch: var(--wide); letter-spacing: -0.02em; }
.hg .hg-panel-line { margin: 0 var(--s8) var(--s4) 0; font-size: 16px; color: var(--text-2); }
.hg .hg-panel-x { position: absolute; top: var(--s3); right: var(--s3); display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: var(--r-sm); background: none; color: var(--text-2); cursor: pointer; }
.hg .hg-panel-x:hover { background: var(--bg); color: var(--text); }
.hg .hg-panel .hg-sheet { padding: 0; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s6); align-items: start; }
.hg .hg-panel .hg-spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s6); border-top: 0; }
.hg .hg-panel .hg-spec > div { grid-template-columns: 112px minmax(0, 1fr); padding: 9px 0; border-top: 1px solid var(--line); border-bottom: 0; }
.hg .hg-panel .hg-note { margin-top: var(--s3); }
.hg .hg-panel .hg-tobench { margin-top: var(--s2); }
@media (max-width: 999px) { .hg .hg-panel .hg-sheet { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .hg .hg-panel { transition: none; } }

/* ---------- Same handling, different airframe (07 §4.6, ruling R4): compact entries after the aircraft they follow ---------- */
.hg .hg-kinrow { position: relative; grid-column: 1 / -1; margin: 0; padding: var(--s5) 0 var(--s5); }
.hg .hg-kinrow::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; border-top: 1px solid var(--hg-rule); }
.hg .hg-kinrow[hidden] { display: none; }
.hg .hg-kin-h { margin: 0 0 var(--s4); font-size: 14px; color: var(--muted); }
.hg .hg-kinrow ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); }
.hg .hg-kinrow li { margin: 0; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s3); align-items: start; scroll-margin-top: calc(var(--header-h) + 16px); }
.hg .hg-kinrow li[hidden] { display: none; }
.hg .hg-kinrow .hg-pic { margin: 0; border-radius: var(--r-sm); }
.hg .hg-kinrow .hg-name { font-size: 16px; margin: 0 0 2px; }
.hg .hg-kinrow .hg-line { font-size: 13px; line-height: 1.4; }
.hg .hg-kinrow .hg-key { margin-top: 4px; font-size: 13px; display: block; }
.hg .hg-kinrow .hg-d-fig { display: none; }
/* On wide screens the entries sit beside the aircraft they follow: that aircraft starts a row, the entries take the rest
   of it. (No dense packing anywhere: the order on screen is the order in the page.) */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 761px) {
    .hg .hg-item:has(+ .hg-kinrow:not([hidden])) { grid-column: 1; }
    .hg .hg-kinrow { grid-column: 2 / -1; grid-row: span 7; padding-top: var(--s5); }
    /* Up to six entries are shorter than a cell, so the block takes no part in sizing the cell's seven lines (a spanning
       block otherwise stretches the empty class line of its neighbour). A longer block sizes the row as usual. */
    .hg .hg-kinrow:not(.is-long) { height: 0; padding-bottom: 0; overflow: visible; }
    .hg .hg-kinrow::before { left: calc(-1 * var(--s5)); }
    .hg .hg-kinrow ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
  }
  @media (min-width: 761px) and (max-width: 1099px) { .hg .hg-kinrow ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
}

/* ---------- Breakpoints ---------- */
@media (max-width: 1099px) { .hg .hg-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hg .hg-kinrow ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  /* Phone: one compact row per aircraft; picture left, words right, bars across */
  .hg-roster { padding-block: var(--s8) var(--s7); }
  .hg .hg-list { grid-template-columns: minmax(0, 1fr); }
  .hg .hg-item { margin-bottom: 12px; padding: 10px 10px var(--s2); display: grid; grid-template-columns: 132px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: var(--s4); align-items: start; }
  .hg .hg-item > :not(.hg-pic) { padding-inline: 0; }
  .hg .hg-item > .hg-pic { grid-column: 1; grid-row: 1 / span 3; margin: 0; border-radius: var(--r-sm); }
  .hg .hg-item > .hg-class, .hg .hg-item > .hg-name, .hg .hg-item > .hg-line { grid-column: 2; }
  .hg .hg-item > .hg-bars, .hg .hg-item > .hg-key, .hg .hg-item > .hg-act { grid-column: 1 / -1; }
  .hg .hg-pic.is-draw .hg-d-fig { display: none; }
  .hg .hg-sheet .hg-d-fig { font-size: 19px; }            /* the sheet's drawing is about two thirds of its design size here: 12.5 px on screen */
  .hg .hg-name { font-size: 18px; }
  .hg .hg-bars { grid-template-columns: repeat(3, auto); justify-content: space-between; gap: var(--s2) var(--s3); margin-top: var(--s4); }
  .hg .hg-bars > div { justify-content: flex-start; gap: var(--s2); }
  .hg .hg-bars dt { font-size: 13px; }
  .hg .hg-seg i { width: 10px; }
  .hg .hg-key { font-size: 13px; }
  .hg .hg-more summary, .hg .hg-tobench { min-height: 44px; }
  .hg .hg-kinrow { padding: var(--s4) 0 var(--s5); }
  .hg .hg-kinrow ul { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .hg .hg-chip { min-height: 44px; }
  .hg .hg-status { flex-basis: 100%; }
  /* the class chips stay under the header while the long list scrolls */
  .hg .hg-filter { position: sticky; top: calc(var(--header-h) + 1px); z-index: 5; margin-inline: calc(-1 * var(--edge)); padding: var(--s2) var(--edge); background: var(--bg); border-bottom: 1px solid var(--line); }
  .hg .hg-item { scroll-margin-top: calc(var(--header-h) + 112px); }
}
@media (max-width: 360px) {
  .hg .hg-item { grid-template-columns: 104px minmax(0, 1fr); column-gap: var(--s3); }
  .hg .hg-bars > div { display: grid; gap: 4px; }
  .hg .hg-kinrow li { grid-template-columns: 72px minmax(0, 1fr); }
}

/* ================= "What the three bars tell you" (Night) ================= */
.hg-kv { margin-top: var(--s5); }
.hg-kv + p { margin-top: var(--s5); max-width: 44ch; }

/* ================= Make it yours + good to know: one band, two halves ================= */
.hg-own .pp-split > div > h2 { margin-bottom: var(--s5); }
.hg-own .xlist li:first-child { border-top: 1px solid var(--line); }
/* a catalogue page runs a tighter band rhythm than the other product pages (ruling: at most six screens at 1440 x 900) */
@media (min-width: 761px) { .hg-hero ~ section.hg-roster { padding-block: var(--s8); } .hg-hero ~ section.hg-bars-band, .hg-hero ~ section.hg-own { padding-block: 80px; } .hg-hero ~ section.pp-related.hg-more-band { padding-block: var(--s8) 80px; } }

/* ================= Every aircraft to one scale: its own band after the roster (22 Nov redesign) ================= */
.hg-scale .hg-lineup { padding: var(--s6) var(--s5); border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 699.98px) { .hg-scale .hg-lineup { margin-inline: 0; padding: var(--s4); } }
