/* Ingress, Gutters page: the intro, the gutter check panel and the photograph pair, 23 November 2026.
   Loaded after ingress-which.css, ingress-roof-drawing.css, ingress-result-layout.css and ingress-works-between.css.
   Existing tokens only. The panel is the roof panel's markup and classes (.wk) with one modifier, .gc. */

/* ---------- Intro: the lead, then heading left and text right, the drawn example between ---------- */
.gt-sections .split + .split, .gt-sections .gt-figure-row + .split { margin-top: var(--space-6); }
.gt-sections .split > h2 { margin: 0; }
.gt-sections .split > .content { margin: 0; }
.gt-sections .split > .content > p { margin: 0; }
.gt-figure-row { margin-top: var(--space-5); }
/* The example size: the width of one Roof works example frame, under the text column */
.gt-figure { grid-column: 4 / span 4; margin: 0; }
.gt-figure figcaption { margin-top: var(--space-1); color: var(--grey-caption); }
.gt-after { grid-column: 4 / span 9; margin: var(--space-4) 0 0; }

@media (max-width: 1023px) {
  .gt-figure { grid-column: 4 / span 6; }
}
@media (max-width: 639px) {
  .gt-figure, .gt-after { grid-column: 1 / -1; }
  .gt-sections .split + .split, .gt-sections .gt-figure-row + .split { margin-top: var(--space-5); }
}

/* ---------- The gutter check panel: the roof panel as built, with one rule. The drawing area centres its contents,
   which would shrink the long section to the browser's default 300px; it takes the full width of the area. ---------- */
.gc .rd-area svg { width: 100%; }

/* ---------- Photograph pair: two frames side by side at the works pages' 4:3, one caption line beneath ---------- */
.gt-pair { padding: var(--space-8) 0; }
.gt-pair-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.gt-pair-row figure { margin: 0; }
.gt-pair-row .photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gt-pair-cap { margin: var(--space-2) 0 0; color: var(--grey-caption); }
@media (max-width: 639px) {
  .gt-pair { padding: var(--space-7) 0; }
  .gt-pair-row { grid-template-columns: 1fr; gap: var(--space-2); }
}

/* ---------- Gutter check drawing, 23 November 2026: the plan strip beneath the section ---------- */
.rd-section path.gc-tick { stroke: var(--grey-rule); stroke-width: 1; }     /* faint ticks every 15 m along the run */
.rd path.gc-o { fill: var(--paper); }                                       /* outlet circles sit over the bar */
