/* vis.css: the site's visuals, drawn at build from its own data (docs/SPEC_20261005_visuals-site_v1.md). Registry rules:
   square, rules and rows, navy for what the reader can trust, gold only for "you" on a chart, figures in mono.
   Bars are SVG stretched to their column; numbers and labels are HTML beside them. */
.rg .vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.rg .vis{display:flex;flex-direction:column;gap:12px;border-top:2px solid var(--ink);padding-top:14px;min-width:0}
.rg .vis-h{font-size:16px;font-weight:600;color:var(--ink);margin:0}
.rg .vis-line{font-size:14px;line-height:1.6;display:flex;align-items:baseline;gap:0}
.rg .vis-src{display:flex;flex-wrap:wrap;gap:4px 14px}
.rg .vis .note{font-size:13px}
/* horizontal bars */
.rg .hbars{display:flex;flex-direction:column}
.rg .hb-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.7fr);gap:6px 20px;align-items:center;padding:10px 0;border-bottom:1px solid var(--rule)}
.rg .hb-axis{border-bottom:0;padding:2px 0 0}
.rg .hb-l{font-size:14px;line-height:1.45;display:flex;flex-direction:column}
.rg .hb-sub{font-size:12px;color:var(--slate)}
.rg .hb-items{display:flex;flex-direction:column;gap:6px;min-width:0}
.rg .hb-item{display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:10px;align-items:center}
.rg .hb-item.lettered{grid-template-columns:14px minmax(0,1fr) 92px}
.rg .hb-k{font-size:12px;color:var(--slate);text-align:center}
.rg .hb-v{font-size:13px;text-align:right;line-height:1.3}
.rg .hb-none{font-size:13px;color:var(--slate)}
.rg .vbar{display:block;width:100%;height:12px}
.rg .vis .axis{display:flex;justify-content:space-between;font-size:11px;color:var(--slate)}
.rg .trk{fill:#EEF1F5}
.rg .bar-a,.rg .tick{fill:var(--navy)}
.rg .bar-b{fill:var(--slate)}
.rg .bar-cn{fill:var(--gold)}
.rg .brk{fill:var(--white)}
.rg .hist .base{stroke:var(--ink);stroke-width:1}
.rg .sw{display:inline-block;width:10px;height:10px;margin-right:8px;flex:none;align-self:center}
.rg .sw-a{background:var(--navy)}.rg .sw-b{background:var(--slate)}.rg .sw-cn{background:var(--gold)}
.rg .legend{display:flex;flex-wrap:wrap;gap:6px 20px;font-size:13px;color:var(--slate)}
.rg .legend span{display:inline-flex;align-items:center}
@media (max-width:640px){.rg .hb-row{grid-template-columns:minmax(0,1fr)}.rg .hb-axis .hb-l{display:none}}
/* the histogram */
.rg .hist{position:relative;height:150px;margin-top:26px}
.rg .hist svg{display:block;width:100%;height:100%}
.rg .cn-mark{position:absolute;top:-24px;transform:translateX(-50%);font-size:11px;white-space:nowrap;color:var(--ink);background:var(--white);padding:0 4px;border:1px solid var(--ink)}
/* the stage journey and the booking flow */
.rg .journey{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));border-top:2px solid var(--ink)}
.rg .journey>li{position:relative;display:flex;flex-direction:column;gap:8px;padding:20px 14px 20px 0;min-width:0}
.rg .journey>li::before{content:"";position:absolute;top:43px;left:48px;right:0;height:2px;background:var(--navy)}
.rg .journey>li:last-child::before{display:none}
.rg .j-ico{position:relative;z-index:1;display:inline-grid;place-items:center;width:48px;height:48px;border:1px solid var(--navy);background:var(--white);color:var(--navy)}
.rg .j-no{font-size:12px;color:var(--slate)}
.rg .j-name{font-size:15px;font-weight:600;line-height:1.35}
.rg .j-steps{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--slate)}
.rg .j-steps svg{display:block;max-width:100%}
.rg .flow .j-name{font-weight:500}
@media (max-width:900px){
  .rg .journey{grid-template-columns:minmax(0,1fr)}
  .rg .journey>li{display:grid;grid-template-columns:48px 28px minmax(0,1fr);gap:4px 12px;align-items:center;padding:12px 0}
  .rg .journey>li::before{top:60px;bottom:-12px;left:23px;right:auto;width:2px;height:auto}
  .rg .j-steps{grid-column:3;flex-direction:row;align-items:center;gap:10px}
}
.rg .vis-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(440px,100%),1fr));gap:40px 56px;align-items:start}
/* program icons on the route board and the services index */
.rg .pico{display:inline-grid;place-items:center;width:40px;height:40px;border:1px solid var(--rule);color:var(--navy);background:var(--white);flex:none;transition:background .15s,color .15s,border-color .15s}
.rg a.route-row:hover .pico,.rg a.svc-row:hover .pico{background:var(--navy);border-color:var(--navy);color:var(--white)}
.rg .with-ico{display:flex;gap:14px;align-items:center;min-width:0}
