/* ============================================================
   infra.css: the Rufen Infrastructure look (services/infrastructure.html,
   and later the four service pages).

   The third pillar has its own look, so a visitor can tell which side of
   Rufen they're on. Engineering: white, blueprint grid, electric blue and
   orange, particles. Marketing: Mediterranean glass. Infrastructure:
   graphite and lime (Mars, 21 Nov 2026), like a rack cabinet with a status
   light: a dot grid instead of lines, flat cards with a crisp edge, and
   data moving along wires instead of particles.

   Scoped to body.pillar-infra. The header keeps Rufen's own tokens (as on
   Marketing), because its drop-downs and phone drawer are white panels.
   ============================================================ */

body.pillar-infra {
  --inf-ink: #1f2937;          /* graphite */
  --inf-ink-deep: #111827;
  --inf-ink-2: #374151;
  --inf-lime: #84cc16;         /* the status light */
  --inf-lime-deep: #4d7c0f;    /* lime that reads as text on white */
  --inf-lime-soft: rgba(132, 204, 22, 0.16);
  --inf-tint: #f3f4f6;         /* a quiet graphite tint for fills */
  --inf-line: rgba(31, 41, 55, 0.14);
  --inf-line-strong: rgba(31, 41, 55, 0.32);
}

/* The page, footer and the info panels (moved to <body> when opened) read
   the graphite tokens */
body.pillar-infra main,
body.pillar-infra footer,
body.pillar-infra .footer-bottom-bar,
body.pillar-infra > .web-modal {
  --accent-blue: var(--inf-ink);
  --grad-primary: linear-gradient(135deg, var(--inf-ink-deep) 0%, var(--inf-ink-2) 100%);
  --glass-border: var(--inf-line);
  --glass-border-hover: var(--inf-line-strong);
}

/* ---- Background: a patch-panel dot grid, no colour orbs ---- */
body.pillar-infra .tech-grid {
  background-size: 22px 22px;
  background-image: radial-gradient(rgba(31, 41, 55, 0.11) 1px, transparent 1.3px);
}
body.pillar-infra .glow-orb { display: none; }

/* ---- Cards: rack units. Flat white, crisp 1px edge, tighter corners ---- */
body.pillar-infra main .glass-card {
  background: #fff;
  border: 1px solid var(--inf-line);
  border-radius: 10px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.04), 0 10px 24px -18px rgba(17, 24, 39, 0.35);
}
body.pillar-infra main .glass-card:hover {
  border-color: var(--inf-line-strong);
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.04), 0 16px 32px -18px rgba(17, 24, 39, 0.45);
}

/* ---- The status light ---- */
body.pillar-infra .indicator-dot.dot-blue {
  background: var(--inf-lime);
  box-shadow: 0 0 0 3px var(--inf-lime-soft), 0 0 8px var(--inf-lime);
}
@media (prefers-reduced-motion: no-preference) {
  body.pillar-infra .indicator-dot.dot-blue { animation: infLed 2.4s ease-in-out infinite; }
}
@keyframes infLed { 50% { box-shadow: 0 0 0 5px rgba(132, 204, 22, 0.08), 0 0 4px var(--inf-lime); } }

body.pillar-infra .service-hero-badge {
  border-color: var(--inf-line-strong);
  color: var(--inf-ink);
  background: #fff;
}

/* Status-line eyebrow above a section title: "● 4 SERVICES · ALL ONLINE" */
.inf-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--inf-line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--inf-ink-2);
}
.inf-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--inf-lime);
  box-shadow: 0 0 6px var(--inf-lime);
}
@media (prefers-reduced-motion: no-preference) {
  .inf-status::before { animation: infBlink 2.4s ease-in-out infinite; }
}
@keyframes infBlink { 50% { opacity: 0.35; } }

/* ---- Buttons and links ---- */
body.pillar-infra main .btn-primary,
body.pillar-infra > .web-modal .btn-primary {
  box-shadow: 0 8px 20px -10px rgba(17, 24, 39, 0.6);
}
body.pillar-infra main .btn-primary:hover,
body.pillar-infra > .web-modal .btn-primary:hover {
  box-shadow: 0 0 0 3px var(--inf-lime-soft), 0 10px 22px -10px rgba(17, 24, 39, 0.6);
}
body.pillar-infra main .btn-secondary { border-color: var(--inf-line-strong); color: var(--inf-ink); }
body.pillar-infra main .btn-secondary:hover { border-color: var(--inf-ink); }
body.pillar-infra > .web-modal .web-infra-more { color: var(--inf-ink); text-decoration: underline; text-decoration-color: var(--inf-lime); text-decoration-thickness: 2px; text-underline-offset: 4px; }
body.pillar-infra > .web-modal .web-infra-more:hover { color: var(--inf-ink-deep); }

/* ---- The cable spine ----------------------------------------------------
   A cable runs down the left margin, joining the page's sections like ports
   on a patch panel. It lights up as you scroll, with packets running along
   the lit part, and each port lights lime as the cable reaches it.
   Built by infra.js from main > section[data-port]; desktop only. */
body.pillar-infra main { position: relative; }
/* The spine box is 2px wide at the cable's x; its layers overhang it. */
.inf-spine {
  position: absolute;
  left: calc((100% - 1200px) / 2 + 4px);
  width: 2px;
  z-index: 1;
  pointer-events: none;
  display: none;
}
@media (min-width: 1240px) { .inf-spine.is-ready { display: block; } }
/* The cable fades in from the hero */
.inf-spine-track,
.inf-spine-lit {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 120px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 120px);
}
.inf-spine-track {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, var(--inf-line-strong) 0 5px, transparent 5px 10px);
}
/* The lit part: 14px wide so packets aren't clipped; clipped from the bottom by --p */
.inf-spine-lit {
  position: absolute; top: 0; bottom: 0; left: -6px; width: 14px;
  clip-path: inset(0 0 calc((1 - var(--p, 0)) * 100%) 0);
}
.inf-spine-lit::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 6px; width: 2px;
  background: var(--inf-ink);
  box-shadow: 0 0 6px rgba(132, 204, 22, 0.45);
}
.inf-spine-pk {
  position: absolute; left: 4px; top: 0;
  width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: var(--inf-lime);
  box-shadow: 0 0 8px var(--inf-lime);
}
.inf-spine-pk.is-data { background: #ff6b00; box-shadow: 0 0 8px rgba(255, 107, 0, 0.7); }
@media (prefers-reduced-motion: no-preference) {
  .inf-spine-pk { animation: infSpineDown 7s linear infinite; }
  .inf-spine-pk:nth-child(2) { animation-delay: -2.3s; }
  .inf-spine-pk:nth-child(3) { animation-delay: -4.6s; animation-duration: 9s; }
}
@media (prefers-reduced-motion: reduce) { .inf-spine-pk { display: none; } }
@keyframes infSpineDown { from { top: 0; } to { top: 100%; } }

/* A port on the cable, level with each section's heading */
.inf-port {
  position: absolute; left: -6px;
  width: 14px; height: 14px; margin-top: -7px;
  border-radius: 4px;
  background: #fff;
  border: 2px solid var(--inf-line-strong);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.inf-port::after {
  content: attr(data-label);
  position: absolute; right: 16px; bottom: 6px;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--font-mono); font-size: 0.58rem; font-weight: 600; letter-spacing: 0.14em;
  white-space: nowrap; color: var(--text-muted);
  transition: color 0.35s ease;
}

.inf-port.is-lit {
  background: var(--inf-lime);
  border-color: var(--inf-lime-deep);
  box-shadow: 0 0 0 4px var(--inf-lime-soft), 0 0 10px rgba(132, 204, 22, 0.6);
}
.inf-port.is-lit::after { color: var(--inf-ink); }

/* ---- The contact card's 0s and 1s, muted further on Infrastructure (Mars,
   21 Nov 2026). The rain itself is drawn by app.js for every page; this
   only turns it down here (site default 0.24). ---- */
body.pillar-infra .contact-card .matrix-rain { opacity: 0.13; }

/* ===========================================================================
   Lighter dressing (Mars, 21 Nov 2026: "I don't like heavy card dressing …
   and minimum pill element usage"). Only what needs a container keeps one:
   the fault console, the timeline table, the address check and the contact
   card. Everything else sits open on the page. Labels are text, not pills.
   =========================================================================== */

/* Cards that remain: a hairline, no drop shadow */
body.pillar-infra main .glass-card,
body.pillar-infra main .glass-card:hover { box-shadow: none; transform: none; }

/* Status labels and the hero badge: plain mono text with the lime light */
.inf-status { padding: 0; border: 0; border-radius: 0; background: none; }
body.pillar-infra .service-hero-badge { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }

/* Service pages: "What you get" as an open list, not boxed cards */
body.pillar-infra main .ip-feature { background: none; border: 0; border-radius: 0; padding: 18px 4px 0; border-top: 1px solid var(--inf-line); }
body.pillar-infra main .ip-feature:hover { transform: none; }
body.pillar-infra main .ip-feature::before { display: none; }

/* Service pages: "Good to know" as a plain list */
body.pillar-infra main .ip-notes { background: none; border: 0; padding: 0; }
body.pillar-infra main .ip-notes::before { display: none; }

/* Service pages: "How we look after it" sits open on the page, not as a dark slab */
body.pillar-infra main .esb-showcase { background: none; border: 0; box-shadow: none; padding-left: 0; padding-right: 0; }
body.pillar-infra main .esb-showcase h2,
body.pillar-infra main .esb-showcase .esb-feature strong { color: var(--text-primary); }
body.pillar-infra main .esb-showcase .esb-desc,
body.pillar-infra main .esb-showcase .esb-feature p { color: var(--text-secondary); }
body.pillar-infra main .esb-showcase .esb-feature i,
body.pillar-infra main .esb-showcase .esb-label { color: var(--inf-ink); }
body.pillar-infra main .esb-showcase .esb-feature i { color: var(--inf-lime-deep); }
body.pillar-infra main .esb-tag { display: none; }

/* Questions: a ruled list instead of a stack of boxes */
body.pillar-infra main .sp-faq details { background: none; border: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--inf-line); }
body.pillar-infra main .sp-faq details:first-of-type { border-top: 1px solid var(--inf-line); }

/* Works well with: open columns, no boxes */
body.pillar-infra main .sp-related a { background: none; border: 0; border-radius: 0; box-shadow: none; padding-left: 0; padding-right: 0; border-top: 2px solid var(--inf-ink); }
body.pillar-infra main .sp-related a:hover { transform: none; border-top-color: var(--inf-lime); }

/* ===== Dark mode (html[data-theme="dark"]): Infrastructure pillar, shared look =====
   Design: docs/plans/dark-mode-design-system.md. Surfaces/lines/text/accents are the --dk-*, --stage-*, --win-* and *-text tokens
   of styles.css. Infrastructure = Engineering surfaces + a lime accent. Light mode is untouched by everything below.
   Equal-specificity rule: every selector starts with :root[data-theme="dark"] (+2 classes), so it out-ranks the light rules here and the
   inline <style> of services/infrastructure.html. State rules are always one class heavier than their rest rule. */

/* ---- tokens local to Infrastructure (OKLCH in comments) ---- */
:root[data-theme="dark"] body.pillar-infra{
  --inf-lime:var(--lime-text);                 /* #b2dc69 oklch(84% 0.151 126): every var(--inf-lime) dot, bar, port and wire is now the soft lime, never #84cc16 */
  --inf-lime-soft:rgba(178,220,105,.14);
  --tm-bar:#28254c;     /* oklch(28.9% 0.070 285)  the mock of Microsoft Teams stays purple (design system d) */
  --tm-ink:#9d99ed;     /* oklch(72% 0.121 285)    purple accent text/lines: 6.74 on s2, 5.94 on s3, 5.63 on the bar */
  --tm-fill:#5b5fc7;    /* Teams purple fill, white ink 5.38 */
  --tm-out:#183d86;     /* oklch(38% 0.13 262) outgoing bubble, ink #eef3ff 9.2 */
  --tm-out-ink:#eef3ff;
  --dm-ok:#01764c; --dm-info:#147175; --dm-alert:#a8353a; --dm-warn:#946903;   /* status badges, white ink 5.68 / 5.76 / 6.49 / 4.91 */
  --dm-tile:rgba(150,175,230,.10);             /* a quiet tile on any s2 to s4 surface */
  --dm-lime-tile:rgba(178,220,105,.12);        /* lime-tinted icon tile */
  --dm-lime-ring:rgba(178,220,105,.32);
}

/* ---- page background and hero ---- */
:root[data-theme="dark"] body.pillar-infra .tech-grid{ background-image:radial-gradient(rgba(150,175,230,.12) 1px, transparent 1.3px); }
:root[data-theme="dark"] body.pillar-infra .service-hero-badge,
:root[data-theme="dark"] body.pillar-infra .service-hero-badge span{ color:var(--text-primary); }
/* the status light: flat ring, no glow; the breathing animation stays (its keyframe had a glow baked in) */
:root[data-theme="dark"] body.pillar-infra .indicator-dot.dot-blue{ background:var(--inf-lime); box-shadow:0 0 0 3px var(--inf-lime-soft); }
:root[data-theme="dark"] .inf-status::before{ box-shadow:0 0 0 2px var(--inf-lime-soft); }
@media (prefers-reduced-motion: no-preference){
  @keyframes infLedDark{ 50%{ box-shadow:0 0 0 5px rgba(178,220,105,.06); } }
  :root[data-theme="dark"] body.pillar-infra .indicator-dot.dot-blue{ animation-name:infLedDark; }
}

/* ---- the cable spine: flat, no glow ---- */
:root[data-theme="dark"] .inf-spine-lit::before{ background:var(--text-secondary); box-shadow:none; }
:root[data-theme="dark"] .inf-spine-pk{ background:var(--lime-text); box-shadow:0 0 0 2px rgba(178,220,105,.28); }
:root[data-theme="dark"] .inf-spine-pk.is-data{ background:var(--orange-text); box-shadow:0 0 0 2px rgba(243,157,94,.28); }
:root[data-theme="dark"] .inf-port{ background:var(--dk-canvas); border-color:var(--dk-line-3); }
:root[data-theme="dark"] .inf-port.is-lit{ background:var(--lime-text); border-color:var(--lime-text); box-shadow:0 0 0 3px var(--inf-lime-soft); }

/* ---- "What you get" / "Works well with" / FAQ stay open on the page, exactly as in light ---- */
:root[data-theme="dark"] body.pillar-infra main .sp-faq details{ background:none; }
:root[data-theme="dark"] body.pillar-infra main .sp-related a{ background:none; border-top-color:var(--dk-line-3); }
:root[data-theme="dark"] body.pillar-infra main .sp-related a:hover{ background:none; border-top-color:var(--lime-text); }
:root[data-theme="dark"] body.pillar-infra main .sp-related-icon{ color:var(--orange-text); }
:root[data-theme="dark"] body.pillar-infra main .sp-related-more{ color:var(--lime-text); }
:root[data-theme="dark"] body.pillar-infra main .esb-showcase .esb-feature i{ color:var(--lime-text); }

/* ---- lime-on-graphite icon tiles: --inf-ink flips to near-white, so the tile becomes a lime-tinted tile ---- */
:root[data-theme="dark"] .inf-nbn-ico,
:root[data-theme="dark"] .ir-detail-ico,
:root[data-theme="dark"] .hs-item[aria-selected="true"] svg,
:root[data-theme="dark"] .hr-verbs li svg{ background:var(--dm-lime-tile); color:var(--lime-text); box-shadow:inset 0 0 0 1px var(--dm-lime-ring); }

/* ---- Overview: the puzzle (infrastructure.html) ---- */
:root[data-theme="dark"] .inf-pz-shape{ fill:var(--dk-s2); }
:root[data-theme="dark"] .inf-pz-p1 .inf-pz-shape,
:root[data-theme="dark"] .inf-pz-p4 .inf-pz-shape{ fill:var(--dk-s1); }
/* hover, keyboard focus and "its panel is open": a lit piece (s4, lime edge), never a white one */
:root[data-theme="dark"] .inf-pz-piece:hover .inf-pz-shape,
:root[data-theme="dark"] .inf-pz-piece:focus-visible .inf-pz-shape,
:root[data-theme="dark"] .inf-pz-piece.is-active .inf-pz-shape{ fill:var(--dk-s4); stroke:var(--lime-text); }
:root[data-theme="dark"] .inf-pz-piece:hover .inf-pz-name,
:root[data-theme="dark"] .inf-pz-piece:focus-visible .inf-pz-name,
:root[data-theme="dark"] .inf-pz-piece.is-active .inf-pz-name{ fill:var(--text-primary); }
:root[data-theme="dark"] .inf-pz-piece:hover .inf-pz-ico,
:root[data-theme="dark"] .inf-pz-piece:focus-visible .inf-pz-ico,
:root[data-theme="dark"] .inf-pz-piece.is-active .inf-pz-ico{ stroke:var(--lime-text); }
:root[data-theme="dark"] .inf-pz-piece:focus-visible .inf-pz-shape{ stroke:var(--dk-focus); }
:root[data-theme="dark"] .inf-pz.is-done .inf-pz-piece:hover{ filter:none; }
:root[data-theme="dark"] .inf-band-pz path{ fill:var(--inf-tint); stroke:var(--dk-line-3); }
:root[data-theme="dark"] .inf-band-pz path.is-on{ fill:rgba(178,220,105,.28); stroke:var(--lime-text); }

/* ---- Overview: how long it takes (the speed bars: --inf-ink would be a near-white bar, so quiet slate; the fast ones stay lime) ---- */
:root[data-theme="dark"] body.pillar-infra .inf-prov-bar i{ background:var(--dk-control); }
:root[data-theme="dark"] body.pillar-infra .inf-prov-row.is-fast .inf-prov-bar i{ background:var(--lime-text); }
:root[data-theme="dark"] body.pillar-infra .inf-prov-row.is-fast .inf-prov-bar i{ box-shadow:none; }
:root[data-theme="dark"] body.pillar-infra .inf-prov ul{ background:var(--dk-line-2); }   /* the 1px gaps between tiles read as lines on the s1 rows */

/* ---- Overview: the address check ---- */
:root[data-theme="dark"] .inf-nbn-form input[name="address"]{ background:var(--surface-sunken); border-color:var(--dk-control); color:var(--text-primary); }
:root[data-theme="dark"] .inf-nbn-form input[name="address"]::placeholder{ color:var(--dk-placeholder); }
:root[data-theme="dark"] .inf-nbn-form input[name="address"]:focus{ border-color:var(--lime-text); outline:2px solid var(--dk-focus); outline-offset:0; box-shadow:none; }
:root[data-theme="dark"] .inf-nbn-out{ background:var(--dk-s2); box-shadow:inset 0 0 0 1px var(--dk-line-2); }
:root[data-theme="dark"] .inf-nbn-wait::before{ box-shadow:0 0 0 2px var(--inf-lime-soft); }
:root[data-theme="dark"] .inf-nbn-picks button{ background:var(--dk-s2); border-color:var(--dk-line-3); color:var(--text-primary); }
:root[data-theme="dark"] .inf-nbn-picks button:hover{ background:var(--dk-s3); border-color:var(--lime-text); }
:root[data-theme="dark"] .inf-nbn-picks button:focus-visible{ border-color:var(--lime-text); outline:2px solid var(--dk-focus); outline-offset:2px; }
:root[data-theme="dark"] .inf-nbn-err{ color:var(--red-text); }
:root[data-theme="dark"] .inf-nbn-led{ background:var(--text-muted); }
:root[data-theme="dark"] .inf-nbn-res.is-available .inf-nbn-led{ background:var(--lime-text); box-shadow:0 0 0 2px var(--inf-lime-soft); }
:root[data-theme="dark"] .inf-nbn-res.is-coming .inf-nbn-led{ background:var(--amber-text); box-shadow:0 0 0 2px rgba(248,198,85,.25); }
:root[data-theme="dark"] .inf-nbn-res.is-unavailable .inf-nbn-led{ background:var(--red-text); }

/* ---- Overview: FAQ filter ---- */
:root[data-theme="dark"] .inf-faq-chip[aria-pressed="true"] svg{ color:var(--lime-text); }

/* ---- Overview: the hero network diagram (inline SVG, brand-saturated strokes become tints) ---- */
:root[data-theme="dark"] .inf-hero-art :is(.ih-card,.ih-cloud){ fill:var(--dk-s2); }
:root[data-theme="dark"] .inf-hero-art .ih-card:not([style]){ stroke:var(--dk-line-3); }
:root[data-theme="dark"] .inf-hero-art .ih-cloud{ stroke:var(--orange-text); }
:root[data-theme="dark"] .inf-hero-art .ih-big{ fill:var(--orange-text); }
:root[data-theme="dark"] .inf-hero-art .ih-data{ stroke:var(--orange-text); }
:root[data-theme="dark"] .inf-hero-art .ih-voice{ stroke:var(--green-text); }
:root[data-theme="dark"] .inf-hero-art .ih-pd{ fill:var(--orange-text); }
:root[data-theme="dark"] .inf-hero-art .ih-pv{ fill:var(--green-text); }
:root[data-theme="dark"] .inf-hero-art .ih-alert{ fill:var(--red-text); }
:root[data-theme="dark"] .inf-hero-art .ih-link{ stroke:#6c7e9d; }
/* inline style attributes beat every rule: !important on that one property only (these are generated/hand-written in infrastructure.html) */
:root[data-theme="dark"] .inf-hero-art [style*="color:#10b981"]{ color:var(--green-text) !important; }
:root[data-theme="dark"] .inf-hero-art [style*="color:#ff6b00"]{ color:var(--orange-text) !important; }
:root[data-theme="dark"] .inf-hero-art [style*="stroke:#10b981"]{ stroke:var(--green-text) !important; }
:root[data-theme="dark"] .inf-hero-art [style*="stroke:#ff6b00"]{ stroke:var(--orange-text) !important; }
:root[data-theme="dark"] .inf-hero-art [style*="fill:#ff6b00"]{ fill:var(--orange-text) !important; }
/* keyframes with a baked-in light colour need dark twins (an animated colour beats any static rule) */
@media (prefers-reduced-motion: no-preference){
  @keyframes ihFailLinkDark{ 0%,48%,78%,100%{ stroke:#6c7e9d; } 52%,74%{ stroke:var(--red-text); } }
  @keyframes ihFailCpeDark{ 0%,48%,78%,100%{ stroke:var(--dk-line-3); } 52%,74%{ stroke:var(--red-text); } }
  :root[data-theme="dark"] .ih-fail-link{ animation-name:ihDash, ihFailLinkDark; }
  :root[data-theme="dark"] .ih-fail-cpe{ animation-name:ihFailCpeDark; }
}

/* ---- Overview: "A fault, start to finish" (#inf-flow). Shell, plates and states come from styles.css; these are the colours and the
        stage-opacity fix. The 38% resting opacity is 2.9:1 on a stage, so in dark it rests at .78 (every text 4.5:1 or better). ---- */
@media (min-width:901px){ :root[data-theme="dark"] .inf-stage{ opacity:.78; } }
:root[data-theme="dark"] :is(.inf-stage.is-active,.inf-stage.is-done){ opacity:1; }
:root[data-theme="dark"] .inf-flow{ color:var(--text-secondary); }
:root[data-theme="dark"] .inf-flow-live{ color:var(--lime-text); }
:root[data-theme="dark"] .inf-flow-live::before{ background:var(--lime-text); box-shadow:0 0 0 2px rgba(178,220,105,.40); }
:root[data-theme="dark"] .inf-flow-clock{ color:var(--text-primary); }
:root[data-theme="dark"] .inf-flow-wire{ background:repeating-linear-gradient(90deg,rgba(150,175,230,.28) 0 6px,transparent 6px 12px); }
:root[data-theme="dark"] .inf-flow-wire-lit{ background:var(--lime-text); box-shadow:none; }
:root[data-theme="dark"] .inf-flow-pk{ background:var(--red-text); box-shadow:none; }
:root[data-theme="dark"] .inf-flow.is-resolved .inf-flow-pk{ background:var(--lime-text); box-shadow:none; }
:root[data-theme="dark"] .inf-stage-ico{ color:var(--text-secondary); }
:root[data-theme="dark"] .inf-stage.is-active .inf-stage-ico{ background:var(--stage-plate-hi); border-color:var(--lime-text); color:var(--lime-text); box-shadow:0 0 0 1px rgba(178,220,105,.40); }
:root[data-theme="dark"] .inf-stage.is-done .inf-stage-ico{ background:var(--lime-text); border-color:var(--lime-text); color:#0b0f17; box-shadow:none; }
:root[data-theme="dark"] .inf-stage-head h3{ color:var(--text-primary); }
:root[data-theme="dark"] .inf-stage-lead{ color:var(--text-secondary); }
:root[data-theme="dark"] .inf-stage.is-active .inf-stage-body{ border-color:var(--lime-text); }
:root[data-theme="dark"] .inf-term{ color:var(--text-secondary); }
:root[data-theme="dark"] .inf-term .is-cmd{ color:var(--text-secondary); }
:root[data-theme="dark"] .inf-term .is-ok{ color:var(--lime-text); }
:root[data-theme="dark"] .inf-flow-stat{ border-right-color:var(--dk-edge); border-bottom-color:var(--dk-edge); }
:root[data-theme="dark"] .inf-flow-stat strong{ color:var(--lime-text); }
:root[data-theme="dark"] .inf-flow-stat .is-open{ color:var(--red-text); }
:root[data-theme="dark"] .inf-flow-foot{ border-top-color:var(--dk-edge); }
:root[data-theme="dark"] .inf-flow-bar{ border-bottom-color:var(--dk-edge); }
@media (prefers-reduced-motion: no-preference){
  /* the inf-flow-live dot and the status LED breathe with an opacity keyframe (no colour baked in): nothing to twin */
}

/* ---- Info panels (opened from the puzzle, moved to <body>): the standard panel = styles.css (.web-modal-card s3, edge, inset top light).
        Only the page-local ink in infrastructure.html (#0f172a / #475569) is restated here. ---- */
:root[data-theme="dark"] body.pillar-infra > .web-modal .inf-pp-name,
:root[data-theme="dark"] body.pillar-infra > .web-modal .inf-pp-list strong{ color:var(--text-primary); }
:root[data-theme="dark"] body.pillar-infra > .web-modal .inf-pp-list small{ color:var(--text-secondary); }
:root[data-theme="dark"] body.pillar-infra > .web-modal .inf-pp-list li{ border-top-color:var(--dk-line-2); }
:root[data-theme="dark"] body.pillar-infra > .web-modal .inf-pp-ico{ background:var(--dm-lime-tile); color:var(--lime-text); }
:root[data-theme="dark"] body.pillar-infra > .web-modal .inf-pp-top .web-infra-tag{ background:none; color:var(--text-muted); box-shadow:none; border:0; padding:0; border-radius:0; }   /* websites.css dark makes it an orange pill with an orange inset ring; light = plain muted mono text, so no fill, no ring, no border */
:root[data-theme="dark"] body.pillar-infra > .web-modal .web-infra-list svg{ color:var(--lime-text); }
:root[data-theme="dark"] body.pillar-infra > .web-modal .web-infra-more{ color:var(--text-primary); }
:root[data-theme="dark"] body.pillar-infra > .web-modal .web-modal-x:focus-visible{ outline-color:var(--dk-focus); }

/* ===================== Infrastructure pages on phones (Mars, 26 Nov): what worked on the Engineering pages =====================
   body.pillar-infra only. Desktop unchanged.
   1. One background: sections drop their own fills, so the page background runs behind every section.
   2. Every section holds at least one screen, content centred, the same 48px spacing.
      The hero and one-line strips (.rep-proof) keep their own sizes. */
@media (max-width: 767px) {
  body.pillar-infra main section.service-section:not(.service-hero) {
    background: transparent !important; box-shadow: none !important; border-top: 0 !important; border-bottom: 0 !important;
  }
  body.pillar-infra main > section:not(.service-hero):not(.rep-proof) {
    min-height: calc(100vh - 96px); min-height: calc(100svh - 96px);
    display: flex; flex-direction: column; justify-content: center;
    padding-top: 48px !important; padding-bottom: 48px !important;
  }
  body.pillar-infra main > section:not(.service-hero):not(.rep-proof) > .container { width: 100%; }
  body.pillar-infra main > section .section-header { margin-bottom: 24px; }
}

/* ===================== Phones: Infrastructure review (Mars, 26 Nov) =====================
   1. Heroes line up like the rest of the site: badge, heading (its own height, no 140px box), the page's
      network diagram, the line under it, then the buttons. The diagram used to sit under the buttons, so
      every hero ran past the first screen.
   2. "Tap any part of the network", not "Point at" (no pointer on a phone).
   3. The mini puzzle at the top of each panel reads in dark: the other pieces on a raised tile, this
      service's piece solid lime. */
.inf-say-tap { display: none; }
@media (max-width: 767px) {
  body.pillar-infra .service-hero .split-hero-container-reverse { flex-direction: column !important; align-items: center; gap: 0 !important; }
  body.pillar-infra .service-hero .hero-copy-left { display: contents; }
  body.pillar-infra .service-hero .service-hero-badge { order: 1; margin: 0 0 20px !important; }
  body.pillar-infra .service-hero .service-hero-title { order: 2; min-height: 0 !important; margin: 0 0 16px !important; }
  body.pillar-infra .service-hero .service-hero-title > span[style*="visibility: hidden"] { display: block !important; }
  body.pillar-infra .service-hero .service-hero-title > span[id*="typewriter"] { position: absolute !important; display: block !important; }
  body.pillar-infra .service-hero :is(.inf-hero-art, .ip-hero-art) { order: 3; width: 100%; max-width: 260px; margin: 0 auto 18px; }
  body.pillar-infra .service-hero .inf-hero-cap { margin-top: 6px; }
  body.pillar-infra .service-hero .service-hero-sub { order: 4; min-height: 0 !important; margin: 0 0 22px !important; }
  body.pillar-infra .service-hero .service-hero-actions { order: 5; }
  .inf-say-point { display: none; }
  .inf-say-tap { display: inline; }
}
:root[data-theme="dark"] .inf-band-pz path { fill: var(--dk-s4); stroke: var(--dk-edge); }
:root[data-theme="dark"] .inf-band-pz path.is-on { fill: var(--lime-text); stroke: var(--lime-text); }
/* Phones (Mars, 26 Nov): the four plan tabs on Internet & mobile ran past the card's edge ("Fibre" was cut);
   they sit two by two, the GST note under each name. */
@media (max-width: 767px) {
  body.pillar-infra .ip-price-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; padding: 0 14px; }
  body.pillar-infra .ip-price-tab { padding: 12px 2px 10px; font-size: 0.95rem; text-align: left; }
}
/* Phones (Mars, 26 Nov), Infrastructure overview:
   1. "A fault, start to finish": the four stages play one at a time in one spot (the stage running now;
      before it starts the first, once it's fixed the last) instead of four stacked cards over a thousand
      pixels tall. Reduced motion shows all four (the script never lights them).
   2. How long it takes: each row is one line (service, then how long) with its bar under it; caveats stay. */
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  body.pillar-infra .inf-flow-stages { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
  body.pillar-infra .inf-flow-stages > .inf-stage { grid-area: 1 / 1; visibility: hidden; opacity: 0 !important; }
  body.pillar-infra .inf-flow-stages > .inf-stage.is-active,
  body.pillar-infra .inf-flow-stages:not(:has(.is-active, .is-done)) > .inf-stage:nth-child(1 of .inf-stage),
  body.pillar-infra .inf-flow-stages:not(:has(.is-active)):has(.is-done) > .inf-stage:nth-last-child(1 of .inf-stage) { visibility: visible; opacity: 1 !important; }
}
@media (max-width: 767px) {
  body.pillar-infra .inf-prov-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; padding-top: 12px; padding-bottom: 12px; }
  body.pillar-infra .inf-prov-row > .inf-prov-top { grid-column: 1; grid-row: 1; margin: 0; }
  body.pillar-infra .inf-prov-row > .inf-prov-when { grid-column: 2; grid-row: 1; text-align: right; font-size: 0.72rem; margin: 0; }
  body.pillar-infra .inf-prov-row > .inf-prov-bar { grid-column: 1 / -1; margin: 0; }
  body.pillar-infra .inf-prov-row > small { grid-column: 1 / -1; font-size: 0.78rem; line-height: 1.45; }   /* the caveats (porting times, fibre build) stay */
}
@media (max-width: 767px) {
  body.pillar-infra .inf-flow-foot { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  body.pillar-infra .inf-flow-stat { padding: 10px 10px !important; border-right: 1px solid rgba(148, 163, 184, 0.12) !important; border-bottom: 0 !important; }
  body.pillar-infra .inf-flow-stat:last-child { border-right: 0 !important; }
  body.pillar-infra .inf-flow-stat span { font-size: 0.55rem; }
}

/* Phones (Mars, 26 Nov, second pass): the hero is one screen and the buttons always sit above the bottom bar.
   The hero is a column one screen tall; the network diagram takes whatever room is left between the heading
   and the line under it (150 to 300px), so a long line under the heading shrinks the diagram, not the buttons
   off the screen. A very short screen lets the hero grow rather than overlap. */
@media (max-width: 767px) {
  body.pillar-infra .service-hero { display: flex; flex-direction: column; align-items: stretch; min-height: 100svh; padding-top: 88px !important; padding-bottom: 56px !important; box-sizing: border-box; }
  body.pillar-infra .service-hero .service-hero-badge { margin-bottom: 14px !important; }
  body.pillar-infra .service-hero > .container { flex: 1 1 auto; display: flex; flex-direction: column; }
  body.pillar-infra .service-hero .split-hero-container-reverse { flex: 1 1 auto; min-height: 0; justify-content: flex-start; }
  body.pillar-infra .service-hero :is(.inf-hero-art, .ip-hero-art) {
    flex: 1 1 0; min-height: 110px; max-height: 300px; max-width: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0 auto 16px;
  }
  body.pillar-infra .service-hero :is(.inf-hero-art > svg, .ip-hero-art > svg) { flex: 1 1 0; min-height: 0; width: auto !important; height: 100% !important; max-width: 100%; }
  body.pillar-infra .service-hero .inf-hero-cap { flex: none; margin: 4px 0 0; font-size: 0.6rem; min-height: 0; }
}

/* The puzzle (Overview): no square focus ring around a piece. After a panel closes, focus goes back to the
   piece and the phone drew the browser's square ring over it; the piece's own outline shows focus instead. */
.inf-pz-piece, .inf-pz-piece:focus, .inf-pz-piece:focus-visible, .ih-hit:focus, .ih-hit:focus-visible { outline: none !important; -webkit-tap-highlight-color: transparent; }
.inf-pz svg:focus, .inf-pz svg:focus-visible { outline: none; }

/* ===================== Phones: Infrastructure, third pass (Mars, 26 Nov) =====================
   1. Heroes: less text, bigger picture. The line under the heading is left out on phones (the heading and
      the diagram say it), so the diagram gets up to 360px.
   2. The address field on the Overview was squashed to 21px tall; it's a full-size field.
   3. Plan tables fit the card: Plan, Speed and Per month, nothing cut off at the edge.
   4. Pickers (Business communications, Hosting): one pinned bar with arrows, the option's name and dots.
   5. "Good to know" folds behind its heading; tap to open.
   6. Live consoles drop the empty space they kept for log lines; the reception console keeps the queue,
      the call and the chat (directory, favourites and calendar are desktop extras). */
.inf-pick { display: none; }
@media (max-width: 767px) {
  body.pillar-infra .service-hero .service-hero-sub { display: none !important; }
  body.pillar-infra .service-hero :is(.inf-hero-art, .ip-hero-art) { max-height: 360px; min-height: 150px; margin-bottom: 20px; }
  body.pillar-infra .service-hero .service-hero-title { margin-bottom: 12px !important; }

  body.pillar-infra .inf-nbn-form input[name="address"] { flex: none !important; height: 48px !important; width: 100%; }

  body.pillar-infra .ip-panel-table table:not(.ip-facts) { min-width: 0 !important; width: 100%; table-layout: fixed; }
  body.pillar-infra .ip-panel-table table:not(.ip-facts) :is(th, td) { padding: 10px 8px !important; font-size: 0.8rem; white-space: normal !important; }
  body.pillar-infra .ip-panel-table table:not(.ip-facts) :is(th, td):last-child { text-align: right; }

  body.pillar-infra .inf-pick {
    display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; align-items: center; gap: 6px;
    position: sticky; top: 60px; z-index: 6; margin: 0 -16px 14px; padding: 8px 16px;
    background: color-mix(in srgb, var(--bg-primary, #fff) 94%, transparent);
  }
  :root[data-theme="dark"] body.pillar-infra .inf-pick { background: var(--dk-header-solid, #01061b); }
  body.pillar-infra .inf-pick-arrow {
    display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 50%; cursor: pointer;
    border: 1px solid var(--inf-line-strong, rgba(15, 23, 42, 0.14)); background: transparent; color: var(--text-primary);
  }
  body.pillar-infra .inf-pick-arrow svg { width: 16px; height: 16px; }
  body.pillar-infra .inf-pick-name { text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--text-primary); }
  body.pillar-infra .inf-pick-name small { display: block; margin-top: 2px; font-family: var(--font-body); font-weight: 400; font-size: 0.78rem; line-height: 1.4; color: var(--text-secondary); }
  body.pillar-infra .inf-pick-dots { grid-column: 1 / -1; display: flex; justify-content: center; gap: 5px; }
  body.pillar-infra .inf-pick-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--text-muted, #94a3b8); opacity: 0.4; transition: width .25s ease, opacity .25s ease; }
  body.pillar-infra .inf-pick-dots i.is-on { width: 14px; border-radius: 3px; opacity: 1; background: var(--lime-text, #84cc16); }
  body.pillar-infra :is(.kp-tabs, .hs-tabs).is-paged {
    position: absolute !important; width: 1px !important; height: 1px !important; margin: 0 !important; padding: 0 !important;
    overflow: hidden !important; clip-path: inset(50%); border: 0 !important;
  }

  body.pillar-infra .ip-notes.is-fold h3 { display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding: 6px 0; }
  body.pillar-infra .ip-notes.is-fold h3::after { content: ""; width: 7px; height: 7px; margin-right: 4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .25s ease; }
  body.pillar-infra .ip-notes.is-fold.is-open h3::after { transform: rotate(-135deg) translateY(-2px); }
  body.pillar-infra .ip-notes.is-fold:not(.is-open) > :not(h3) { display: none !important; }

  body.pillar-infra .ip-log { min-height: 0 !important; }
  body.pillar-infra #ac-console :is(.ac-dir, .ac-favs, .ac-cal) { display: none !important; }
}

/* Phones (Mars, 26 Nov), Infrastructure, fourth pass:
   1. "When the internet plays up": each today / with us pair is one card, today small and quiet, with us
      in bold under it (labelled), instead of loose paragraphs with small arrows between them.
   2. Plans: the fine print under each table folds behind "Prices and terms" (infra.js).
   3. The rack: each unit shows its name only (the line under it is in the details), so the whole rack
      and the picked unit's details fit together. */
@media (max-width: 767px) {
  body.pillar-infra .experience-compare .compare-head { display: none !important; }
  body.pillar-infra .experience-compare .compare-row {
    display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 8px !important;
    margin: 0 0 10px !important; padding: 14px 16px !important; border-radius: 12px;
    border: 1px solid var(--inf-line-strong, rgba(15, 23, 42, 0.12)); background: var(--inf-tint, rgba(15, 23, 42, 0.03));
  }
  :root[data-theme="dark"] body.pillar-infra .experience-compare .compare-row { background: var(--dk-s2); border-color: var(--dk-line-2); }
  body.pillar-infra .experience-compare .compare-arrow { display: none !important; }
  body.pillar-infra .experience-compare :is(.compare-old, .compare-new) { display: block; padding: 0 !important; margin: 0 !important; text-align: left !important; }
  body.pillar-infra .experience-compare .compare-old { font-size: 0.84rem !important; line-height: 1.5; color: var(--text-muted) !important; }
  body.pillar-infra .experience-compare .compare-new { font-size: 0.92rem !important; line-height: 1.45; font-weight: 600; color: var(--text-primary) !important; }
  body.pillar-infra .experience-compare :is(.compare-old, .compare-new)::before {
    display: block; margin-bottom: 3px; font: 600 0.6rem/1.2 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase;
  }
  body.pillar-infra .experience-compare .compare-old::before { content: "Today"; color: var(--text-muted); }
  body.pillar-infra .experience-compare .compare-new::before { content: "With us"; color: var(--inf-lime-deep, #4d7c0f); }
  :root[data-theme="dark"] body.pillar-infra .experience-compare .compare-new::before { color: var(--lime-text); }

  body.pillar-infra .ip-fine-btn {
    display: flex; align-items: center; justify-content: space-between; width: 100%; margin: 12px 0 0; padding: 10px 2px;
    border: 0; border-top: 1px solid var(--inf-line, rgba(15, 23, 42, 0.08)); background: none; cursor: pointer;
    font: 600 0.7rem/1.2 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-secondary);
  }
  body.pillar-infra .ip-fine-btn::after { content: ""; width: 7px; height: 7px; margin-right: 4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .25s ease; }
  body.pillar-infra .ip-fine-btn[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-2px); }
  body.pillar-infra .ip-fine-btn[aria-expanded="false"] + .ip-prices-note { display: none; }

  body.pillar-infra .ir-unit { min-height: 46px !important; padding: 8px 12px !important; gap: 10px !important; }
  body.pillar-infra .ir-unit .ir-name small { display: none !important; }
}
.ip-fine-btn { display: none; }
