/* ==========================================================================
   ingoing-inspection.html: the five-step rail (a horizontal rail on desktop, stacked on a phone), the inspection
   panel's rooms, notes and thumbnails, and print (the "what to record" checklist only, on one A4 page).
   Everything else is the guide kit (pages/_guide.css). Flat colour, the mark's slanted stroke as the rail marker.
   ========================================================================== */

/* ---------------------------------------------------------------- the five steps */
html body .gd-article ol.ii-rail {
  position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 22px;
  margin: 34px 0 30px; padding: 0; list-style: none;
}
html body .gd-article ol.ii-rail::before {   /* the rail: one flat line through the markers */
  content: ""; position: absolute; left: 18px; right: calc((100% - 88px) / 5 - 18px); top: 17px; height: 2px; border-radius: 2px; background: #cfe2f4;
}
html body .ii-step { position: relative; margin: 0; padding: 0; }
html body .ii-num {
  position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; margin: 0 0 18px;
  border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--gd-blue);
  color: var(--gd-blue); font: 650 13px/1 var(--font-display); font-variant-numeric: tabular-nums;
}
html body .ii-step:last-child .ii-num { background: var(--gd-blue); color: #fff; box-shadow: none; }
html body .gd-article .ii-step h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
html body .gd-article .ii-step p { margin: 0; color: var(--gd-text); font-size: 15px; line-height: 1.58; }

@media (max-width: 900px) {
  html body .gd-article ol.ii-rail { grid-template-columns: minmax(0, 1fr); gap: 0; margin: 28px 0 26px; }
  html body .gd-article ol.ii-rail::before { left: 17px; right: auto; top: 18px; bottom: 18px; width: 2px; height: auto; }
  html body .ii-step { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 0 18px; padding-bottom: 22px; }
  html body .ii-step:last-child { padding-bottom: 0; }
  html body .ii-num { grid-row: 1 / span 2; margin: 0; }
  html body .gd-article .ii-step h3 { margin: 6px 0 4px; }
  html body .gd-article .ii-step p { font-size: 16px; }
}

/* ---------------------------------------------------------------- the inspection panel */
html body .gd-app ul.ii-rooms { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 4px; padding: 0; list-style: none; }
html body .gd-app ul.ii-rooms li {
  margin: 0; padding: 5px 10px; border-radius: 999px; background: #f1f5fa; color: #3f5470; font: 600 12px/1.2 var(--font-sans); white-space: nowrap;
}
html body .gd-app ul.ii-rooms li.is-on { background: var(--gd-ink); color: #fff; }
html body .gd-app-label.ii-gap { margin-top: 16px !important; }
html body .gd-app p.ii-who { margin: -4px 0 12px !important; color: var(--gd-text); font: 500 13px/1.4 var(--font-sans) !important; }
html body .ii-note {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 10px; padding: 12px;
  border-radius: 12px; background: #f6f9fd; box-shadow: inset 0 0 0 1px rgba(16, 45, 73, .07);
}
html body .ii-note b { display: block; color: var(--gd-ink); font: 600 13.5px/1.4 var(--font-sans); }
html body .ii-note small { display: block; margin-top: 3px; color: var(--gd-mute); font: 500 12px/1.35 var(--font-sans); }
html body .ii-thumbs { display: flex; gap: 6px; }
html body .ii-thumbs svg { display: block; width: 48px; height: 36px; }
html body .ii-thumbs svg { border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(16, 45, 73, .08); }
html body .ii-thumbs .ii-w { fill: #e9f0f7; }
html body .ii-thumbs .ii-f { fill: #c9d9ea; }
html body .ii-thumbs .ii-o { fill: #fff; stroke: #9db8d5; stroke-width: 1.2; }
html body .ii-thumbs .ii-l { fill: none; stroke: #a9c1da; stroke-width: 1; }
html body .ii-thumbs .ii-mark { fill: none; stroke: var(--gd-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html body .ii-result { padding: 12px 14px 4px; border-radius: 12px; background: #f6f9fd; box-shadow: inset 0 0 0 1px rgba(16, 45, 73, .07); }
html body .ii-result .gd-chip { margin-bottom: 8px; }
html body .ii-result .gd-app-row:first-of-type { border-top: 0; }
@media (max-width: 420px) {
  html body .ii-note { grid-template-columns: minmax(0, 1fr); }
  html body .gd-app-person small { white-space: normal; }
}

/* ---------------------------------------------------------------- the refund table: keep each section reference on one line */
@media (min-width: 641px) { html body .ii-refund td[data-label="Section"] { white-space: nowrap; } }

/* ---------------------------------------------------------------- the closing band's plan link */
html body #closing.gd-cta p a { color: #fff; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(214, 238, 255, .55); }
html body #closing.gd-cta p a:hover { text-decoration-color: #fff; }

/* ---------------------------------------------------------------- print: the checklist alone, on one A4 page */
@media print {
  @page { size: A4; margin: 16mm; }
  html body .gd-open, html body .gd-toc, html body .gd-cta, html body .v6-foot-band,
  html body .gd-article > .gd-sec:not(#record) { display: none !important; }
  html, html body, html body main, html body .gd-page, html body .gd-body, html body .gd-article, html body #record {
    background: #fff !important; background-image: none !important; box-shadow: none !important;
  }
  html body main::before, html body main::after, html body .gd-page::before, html body .gd-page::after { display: none !important; }
  html body .gd-body { padding: 0 !important; }
  html body #record { margin: 0 !important; }
  html body #record > p:last-child { display: none; }
  html body .gd-article h2::before { display: none; }
  html body .gd-article h2 { padding-left: 0 !important; font-size: 22pt; }
  html body .gd-article { font-size: 11.5pt; line-height: 1.5; }
  html body .gd-article ul.gd-checklist > li { padding-top: 10pt; padding-bottom: 10pt; break-inside: avoid; }
  html body .gd-article ul.gd-checklist > li::before { top: 12pt; box-shadow: inset 0 0 0 1.5px #000; }
  html body .gd-article ul.gd-checklist > li span { color: #333; }
}
