/* ============================================================
   SITE INFO — the current architecture, honest insides (sip-*)
   Livery nameplate on the details hero, family reskin for the
   tabs/cards, authored-or-empty site content.
   ============================================================ */

body.app-dashboard #section-placement-details {
  --sip-brand: #1f6fd6;
  --sip-brand-2: #1559b0;
  --sip-tint: #eaf2fd;
  --sip-ink: #16233f;
  --sip-slate: #5d6b84;
  --sip-mist: #8a97ad;
  --sip-line: #e9edf4;
  --sip-line-soft: #f1f4f9;
  --sip-ground: #f6f8fc;
  --sip-green: #1a9e54;
  --sip-green-t: #e4f5eb;
  --sip-accent: #7db4f0;
  --sip-sh: 0 1px 2px rgba(20, 33, 64, 0.04), 0 2px 8px rgba(20, 33, 64, 0.05);
  --sip-display: var(--font-application-display);
}

/* ---- livery nameplate ---- */
body.app-dashboard #section-placement-details .sip-plate {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 24px;
  background: linear-gradient(118deg, #081f47, #0b2a5e 55%, #123c86);
}

body.app-dashboard #section-placement-details .sip-plate-photo {
  position: absolute;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.app-dashboard #section-placement-details .sip-plate-scrim {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: linear-gradient(115deg, rgba(8, 31, 71, 0.86) 0%, rgba(11, 42, 94, 0.6) 55%, rgba(18, 72, 158, 0.25) 100%);
}

body.app-dashboard #section-placement-details .sip-plate-hatch {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 2px, rgba(255, 255, 255, 0) 2px 26px);
}

body.app-dashboard #section-placement-details .sip-plate-ghost {
  position: absolute;
  right: 14px;
  bottom: -16px;
  z-index: -1;
  font-family: var(--sip-display);
  font-size: 88px;
  font-weight: 600;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.07);
  line-height: 1;
}

body.app-dashboard #section-placement-details .sip-plate-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

body.app-dashboard #section-placement-details .sip-plate-kicker i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sip-accent);
  flex: none;
}

body.app-dashboard #section-placement-details .sip-plate-name {
  font-family: var(--sip-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: #fff;
  margin: 8px 0 5px;
}

body.app-dashboard #section-placement-details .sip-plate-sub {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

body.app-dashboard #section-placement-details .sip-plate-sep {
  margin: 0 4px;
  opacity: 0.6;
}

body.app-dashboard #section-placement-details .sip-plate-chips {
  display: flex;
  gap: 7px;
  margin-top: 11px;
}

body.app-dashboard #section-placement-details .sip-chip {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

body.app-dashboard #section-placement-details .sip-plate-actions {
  position: absolute;
  right: 22px;
  top: 18px;
  display: flex;
  gap: 8px;
}

body.app-dashboard #section-placement-details .sip-plate-pill {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

body.app-dashboard #section-placement-details .sip-plate-pill:disabled {
  opacity: 0.5;
  cursor: default;
}

/* ---- tabs -> family chips ---- */
body.app-dashboard #section-placement-details .placement-details-tabs {
  display: flex;
  gap: 7px;
  border: 0;
  padding: 16px 0 4px;
  background: none;
}

body.app-dashboard #section-placement-details .placement-subtab {
  border: 1px solid var(--sip-line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--sip-slate);
  cursor: pointer;
  font-family: inherit;
}

body.app-dashboard #section-placement-details .placement-subtab.is-active {
  background: var(--sip-ink);
  border-color: var(--sip-ink);
  color: #fff;
}

/* ---- cards ---- */
body.app-dashboard #section-placement-details .placement-details-tabs-card {
  border: 0;
  background: none;
  box-shadow: none;
  padding: 0;
}

body.app-dashboard #section-placement-details .placement-details-card,
body.app-dashboard #section-placement-details .placement-details-panel {
  border: 1px solid var(--sip-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--sip-sh);
  padding: 16px 20px 17px;
}

body.app-dashboard #section-placement-details .placement-details-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

body.app-dashboard #section-placement-details .placement-details-card-heading h3,
body.app-dashboard #section-placement-details .placement-details-panel-heading h3 {
  font-family: var(--sip-display);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.014em;
  color: var(--sip-ink);
  margin: 0;
}

body.app-dashboard #section-placement-details .placement-details-card-heading p {
  font-size: 12px;
  color: var(--sip-mist);
  margin: 2px 0 0;
}

body.app-dashboard #section-placement-details .placement-details-card-icon {
  display: none;
}

/* ---- day one flagship ---- */
body.app-dashboard #section-placement-details .sip-dayone {
  border-color: #bfe3de;
  background: linear-gradient(180deg, #f2fbf9, #fff 70%);
}

body.app-dashboard #section-placement-details .sip-dayone .placement-details-card-heading h3 {
  color: #0b7a70;
}

/* ---- rows + lists ---- */
body.app-dashboard #section-placement-details .sip-rows {
  display: grid;
  gap: 8px;
  margin: 0;
}

body.app-dashboard #section-placement-details .sip-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 4px 14px;
  align-items: baseline;
}

body.app-dashboard #section-placement-details .sip-row dt {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sip-ink);
}

body.app-dashboard #section-placement-details .sip-row dd {
  font-size: 13px;
  color: var(--sip-slate);
  line-height: 1.5;
  margin: 0;
}

body.app-dashboard #section-placement-details .sip-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

body.app-dashboard #section-placement-details .sip-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--sip-slate);
  line-height: 1.5;
}

body.app-dashboard #section-placement-details .sip-li-main b {
  color: var(--sip-ink);
  font-weight: 700;
}

body.app-dashboard #section-placement-details .sip-tt {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0b7a70;
  border: 1px solid #bfe3de;
  background: #e9f7f5;
  border-radius: 4px;
  padding: 2px 7px;
  white-space: nowrap;
  flex: none;
}

body.app-dashboard #section-placement-details .sip-empty {
  font-size: 12.5px;
  color: var(--sip-mist);
  font-weight: 600;
}

body.app-dashboard #section-placement-details .sip-provenance {
  font-size: 11px;
  color: var(--sip-mist);
  font-weight: 600;
  margin: 12px 0 0;
  border-top: 1px solid var(--sip-line-soft);
  padding-top: 10px;
}

/* ---- induction row ---- */
body.app-dashboard #section-placement-details .sip-induction-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.app-dashboard #section-placement-details .sip-induction-status {
  font-size: 13px;
  font-weight: 500;
  color: var(--sip-slate);
}

body.app-dashboard #section-placement-details .sip-induction-status--done {
  color: var(--sip-green);
}

/* ---- absence ---- */
body.app-dashboard #section-placement-details .sip-absence {
  margin-top: 12px;
}

body.app-dashboard #section-placement-details .sip-absence h3 {
  font-family: var(--sip-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sip-ink);
  margin: 0 0 6px;
}

body.app-dashboard #section-placement-details .sip-absence p {
  font-size: 13px;
  color: var(--sip-slate);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 760px) {
  body.app-dashboard #section-placement-details .sip-plate-actions {
    position: static;
    margin-top: 12px;
  }

  body.app-dashboard #section-placement-details .sip-row {
    grid-template-columns: 1fr;
  }
}

/* The legacy details desktop layout (hero + tabs grid) is retired at every
   width — it remains in the DOM purely as the hidden data backbone that
   renderPlacementDetails binds and the mobile/desktop layers scrape. */
body.app-dashboard #section-placement-details .placement-details-header,
body.app-dashboard #section-placement-details .placement-details-empty,
body.app-dashboard #section-placement-details .placement-details-grid { display: none !important; }

/* ============================================================
   Placement details — "cleaner native" mobile layer (mockup 8
   v2). One identity moment (photo cover), Settings-grammar rows
   below. Desktop (>768px) keeps the existing hero + tabs.
   ============================================================ */
#pd-mobile { display: none; }

@media (max-width: 768px) {
  /* body.app-dashboard prefix: style.css/student-redesign.css pin these with
     body-prefixed !important rules — match their specificity, win on order */
  body.app-dashboard #section-placement-details .placement-details-header,
  body.app-dashboard #section-placement-details .placement-details-grid { display: none !important; }
  body.app-dashboard #section-placement-details #pd-mobile,
  #pd-mobile {
    display: flex; flex-direction: column; gap: 14px;
    /* This drill-down renders its own back header (.pd-back) at the very top of
       the scroll column, so it self-insets under the notch/status bar. On native
       mobile-native.css excludes this section from the generic .app-content inset
       so the two never stack into a double gap. env() is 0 on the desktop/web
       app, leaving a small, harmless top margin. */
    padding-top: calc(env(safe-area-inset-top, 0px) + 8px);
  }

  .pd-back {
    display: inline-flex; align-items: center; gap: 6px;
    font: 600 13px/1 inherit; font-family: inherit;
    color: #5d6b84; background: none; border: 0; padding: 2px 0;
    align-self: flex-start; cursor: pointer;
  }

  /* cover */

  /* stack + cards */
  .pd-tag {
    display: inline-flex; flex: none;
    font-size: 10px; font-weight: 500; letter-spacing: 0.05em;
    text-transform: uppercase; color: #0e9f88; background: #e9f8f3;
    border-radius: 6px; padding: 3px 8px;
  }

  /* ---- placements LIST entry cleanup (the screen that leads here) ---- */
  body.app-dashboard #section-placement .placement-overview-actions { display: none !important; }
  body.app-dashboard #section-placement .placement-tabs {
    display: flex; gap: 8px; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    flex-wrap: nowrap; padding-bottom: 2px;
  }
  body.app-dashboard #section-placement .placement-tabs::-webkit-scrollbar { display: none; }
  body.app-dashboard #section-placement .placement-tab { flex: none; }
}

/* ============================================================
   The legacy placements dashboard stays hidden on phones; the
   start page is the SI2 Placement Portfolio (#sd-root, below).
   body.app-dashboard prefix required: style.css pins these
   blocks with prefixed !important rules.
   ============================================================ */
@media (max-width: 768px) {
  body.app-dashboard #section-placement .placement-overview-shell,
  body.app-dashboard #section-placement .placement-overview-toolbar,
  body.app-dashboard #section-placement .placement-card-grid,
  body.app-dashboard #section-placement .placement-view-panel { display: none !important; }
}

/* ============================================================
   Site info — desktop layers (>768px).
   #sdc-root (on #section-placement-details): the site-guide
             COMPANION — livery hero, authored site knowledge,
             personal rail, sharing the .sd-scope vocabulary.
   The start page (#sd-root) is the SI2 portfolio at every
   width (below). Mobile (≤768px) keeps the drill-down above.
   ============================================================ */
#sdc-root { display: none; }

@media (min-width: 769px) {
  body.app-dashboard #section-placement { background: none; border: 0; box-shadow: none; padding: 0; }
  body.app-dashboard #section-placement-details { background: none; border: 0; box-shadow: none; padding: 0; }
  #sdc-root { display: block; max-width: 1200px; margin-inline: auto; }

  .sdc-back {
    display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px;
    border: 0; background: none; padding: 6px 8px 6px 2px; font-family: inherit;
    font-size: 13px; font-weight: 600; color: #5d6b84; cursor: pointer; border-radius: 8px;
  }
  .sdc-back:hover { color: #16233f; }
  .sdc-back:focus-visible { outline: 2px solid #1f6fd6; outline-offset: 2px; }

  /* ---- hero: the livery nameplate ---- */
  .sd-scope .sd-hero-mono {
    position: absolute; right: 18px; top: 2px; z-index: -2;
    font-size: 150px; font-weight: 600; letter-spacing: -0.04em;
    color: rgba(255, 255, 255, 0.07); line-height: 1; pointer-events: none;
  }
  .sd-scope .sd-kicker {
    display: flex; align-items: center; gap: 8px; margin: 0 0 6px;
    font-size: 11px; font-weight: 500; letter-spacing: 0.14em;
    text-transform: uppercase; color: rgba(255, 255, 255, 0.82);
  }
  .sd-scope .sd-kicker i { width: 9px; height: 9px; border-radius: 50%; background: var(--sd-accent, #7db4f0); }
  .sd-scope .sd-hero-sub { margin: 7px 0 0; font-size: 14.5px; font-weight: 600; color: rgba(255, 255, 255, 0.88); max-width: 70ch; overflow-wrap: anywhere; }

  /* ---- columns ---- */

  /* ---- cards ---- */
  .sd-scope .sd-card {
    background: #fff; border: 1px solid #e9edf4; border-radius: 16px;
    box-shadow: 0 1px 2px rgba(20, 33, 64, 0.04), 0 2px 8px rgba(20, 33, 64, 0.05);
    padding: 18px 20px;
  }
  .sd-scope .sd-card-head { margin-bottom: 6px; }
  .sd-scope .sd-card-head h3 {
    margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: #16233f;
  }
  .sd-scope .sd-card-head p { margin: 3px 0 0; font-size: 12.5px; color: #8a97ad; }
  .sd-scope .sd-body { font-size: 14px; color: #5d6b84; margin: 6px 0 0; line-height: 1.6; overflow-wrap: anywhere; }
  .sd-scope .sd-body.is-empty { color: #8a97ad; }

  /* rows */
  .sd-scope .sd-lrow {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid #f2f5fa; min-height: 50px;
  }
  .sd-scope .sd-lrow:last-of-type { border-bottom: 0; padding-bottom: 4px; }
  .sd-scope .sd-lmain { min-width: 0; flex: 1; }
  .sd-scope .sd-lk {
    font-size: 11px; font-weight: 600; letter-spacing: 0.09em;
    text-transform: uppercase; color: #8a97ad;
  }
  .sd-scope .sd-lv { font-size: 14.5px; font-weight: 600; color: #16233f; margin-top: 1px; overflow-wrap: anywhere; }
  .sd-scope .sd-lm { font-size: 12.5px; color: #8a97ad; margin-top: 1px; overflow-wrap: anywhere; }
  .sd-scope .sd-num {
    width: 26px; height: 26px; border-radius: 50%; flex: none;
    background: rgba(63, 193, 180, 0.14); color: #0b6e63;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  }
  .sd-scope .pd-tag {
    display: inline-flex; flex: none;
    font-size: 10px; font-weight: 500; letter-spacing: 0.05em;
    text-transform: uppercase; color: #0e9f88; background: #e9f8f3;
    border-radius: 6px; padding: 3px 8px;
  }

  /* context + gate */

  /* ---- switcher ---- */
  .sd-scope .sd-quiet-btn {
    display: block; width: 100%; margin-top: 12px; padding: 10px 0 2px;
    border: 0; border-top: 1px solid #f2f5fa; background: none;
    font-family: inherit; font-size: 13px; font-weight: 600; color: #0b4fb3;
    text-align: left; cursor: pointer;
  }
  .sd-scope .sd-quiet-btn:hover { color: #1559b0; text-decoration: underline; }
  .sd-scope .sd-quiet-btn:focus-visible { outline: 2px solid #1f6fd6; outline-offset: 2px; }

  /* ---- supervisor / cohort / notes ---- */

  /* ---- loading / empty / error tenants ---- */
  .sd-scope .sd-skel-hero {
    border-radius: 16px; background: linear-gradient(100deg, #eef2f8 40%, #f7fafd 50%, #eef2f8 60%);
    background-size: 200% 100%; animation: sd-shimmer 1.4s ease-in-out infinite;
  }
  .sd-scope .sd-skel-hero { min-height: 216px; }
  @keyframes sd-shimmer { from { background-position: 180% 0; } to { background-position: -20% 0; } }
  @media (prefers-reduced-motion: reduce) {
    .sd-scope .sd-skel-hero { animation: none; }
  }

  .sd-scope .sd-state-hero {
    position: relative; border-radius: 16px; overflow: hidden; isolation: isolate;
    min-height: 216px; display: flex; flex-direction: column; justify-content: flex-end;
    padding: 24px 28px; background: linear-gradient(118deg, #081f47, #0b2a5e 55%, #123c86);
  }
  .sd-scope .sd-state-hero .sd-hero-mono {
    position: absolute; right: 18px; top: 2px; z-index: 0;
    font-size: 150px; font-weight: 600; letter-spacing: -0.04em;
    color: rgba(255, 255, 255, 0.07); line-height: 1; pointer-events: none;
  }
  .sd-scope .sd-state-copy { position: relative; max-width: 62ch; }
  .sd-scope .sd-state-copy h2 {
    margin: 0; font-family: var(--font-application-display);
    font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.02em;
    color: #fff; line-height: 1.12;
  }
  .sd-scope .sd-state-copy .sd-hero-sub { color: rgba(255, 255, 255, 0.85); font-weight: 500; line-height: 1.55; }
  .sd-scope .sd-state-actions { display: flex; gap: 10px; margin-top: 16px; }
  .sd-scope .sd-state-steps {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px; margin-top: 18px;
  }
  .sd-scope .sd-step { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; }
  .sd-scope .sd-step .sd-num { margin-top: 2px; }

  /* the shared change-request panel sits below the companion page */
  body.app-dashboard #section-placement .placement-change-request-panel { max-width: 980px; margin-inline: auto; margin-top: 18px; }
}

/* small-desktop band (sidebar visible, canvas too narrow for two columns):
   the companion collapses to a single column; the doors stack already is one */
@media (min-width: 769px) and (max-width: 1139px) {
  .sd-scope .sd-state-steps { grid-template-columns: minmax(0, 1fr); }
  /* actions drop from the top corner into the flow below the nameplate copy */
}

/* ============================================================
   Site info START PAGE — SI2 "Placement Portfolio" (#sd-root,
   every width). One placement leads; the rest of the journey
   follows as timetable rows (date column, specialty, hospital).
   Tokens: Today B3.2 and Navigation N1.3; no new colour family.
   Approved design: docs/site-info-design-20261019/DESIGN-SI2.md.
   ============================================================ */
body.app-dashboard #section-placement #sd-root {
  display: block; width: 100%; max-width: 1200px; margin-inline: auto;
}

.si2 {
  --si2-ink: #16233f;
  --si2-text: #1b2740;
  --si2-slate: #5d6b84;
  --si2-faint: #66748b; /* tertiary text: 4.73:1 on white */
  --si2-mist: #8a97ad; /* glyphs and rules only */
  --si2-rule: #dfe4ec;
  --si2-rule-soft: #edf0f5;
  --si2-strong: #16233f;
  --si2-blue: #1f6fd6;
  --si2-blue-ink: #1559b0;
  --si2-tint: #eaf2fd;
  --si2-open-bg: #f6f8fb;
  --si2-warn: #7a4d05;
  --si2-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --si2-font: var(--font-application-ui, "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  container: si2 / inline-size;
  font-family: var(--si2-font);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--si2-text);
  font-variant-numeric: tabular-nums;
}
.si2 ::selection { background: var(--si2-tint); color: #081f47; }
.si2 :where(a, button):focus-visible { outline: 2px solid var(--si2-blue); outline-offset: 3px; }
.si2 .si2-i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.si2 h2, .si2 h3, .si2 p { margin: 0; }
.si2 button { font: inherit; color: inherit; }

/* ------------------------------------------------------------- the lead */
.si2-lead { display: grid; gap: 0; margin: 0; }
.si2-photo { margin: 0; min-width: 0; }
.si2-photo-frame {
  position: relative; overflow: hidden; border-radius: 4px; background: #e9edf3;
  aspect-ratio: 16 / 7.2;
}
.si2-photo-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* the credit sits beneath the photograph (as in SI1), never on it */
.si2 .si2-credit { margin: 6px 0 0; text-align: right; }
.si2 .si2-credit .site-card-credit {
  position: static; margin: 0; padding: 0; max-width: none; border-radius: 0; background: none; backdrop-filter: none;
  font-size: 12px; font-weight: 400; color: var(--si2-faint);
}
.si2 .si2-credit .site-card-credit a { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; padding: 4px 0; }
.si2 .si2-credit .site-card-credit a:focus-visible { outline-color: var(--si2-blue); }
.si2-lead-id { min-width: 0; padding-top: 14px; display: flex; flex-direction: column; gap: 0; }
.si2 .si2-name {
  font-size: 25px; font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; color: var(--si2-ink);
  overflow-wrap: anywhere; text-wrap: balance;
}
.si2 .si2-sub { margin-top: 4px; font-size: 15px; color: var(--si2-slate); overflow-wrap: anywhere; }
.si2 .si2-dateline { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 15px; color: var(--si2-text); }
.si2-dateline b { font-weight: 600; color: var(--si2-blue-ink); }
.si2 .si2-session { margin-top: 10px; display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--si2-slate); }
.si2-session .si2-i { margin-top: 2px; color: var(--si2-faint); }
.si2-session b { font-weight: 600; color: var(--si2-ink); margin-right: 4px; }
.si2-actions { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.si2 .si2-open {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px;
  border: 0; border-radius: 8px; background: var(--si2-ink); color: #fff; text-decoration: none;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color 150ms;
}
.si2 .si2-open:hover { background: #22325a; }
.si2 .si2-open .si2-i { transition: transform 180ms var(--si2-ease); }
.si2 .si2-open:hover .si2-i { transform: translateX(3px); }
.si2-links { display: inline-flex; flex-wrap: wrap; gap: 4px 18px; }
.si2 .si2-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px;
  font-size: 14.5px; font-weight: 600; color: var(--si2-blue-ink); text-decoration: none;
}
.si2 .si2-link:hover span:first-of-type { text-decoration: underline; text-underline-offset: 3px; }
.si2 .si2-link .si2-i { color: var(--si2-blue-ink); }
.si2 .si2-link .si2-ext { width: 13px; height: 13px; margin-left: -2px; color: var(--si2-faint); }
.si2-lead--text .si2-lead-id { padding-top: 4px; }
.si2-lead--text .si2-name { font-size: 28px; }

/* nothing current or upcoming: a plain line, then the history leads */
.si2 .si2-ahead { font-size: 15.5px; color: var(--si2-slate); max-width: 70ch; }
.si2-ahead b { display: block; margin-bottom: 2px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; color: var(--si2-ink); }

/* --------------------------------------------------- sections and rows */
.si2-sect { margin-top: 34px; }
.si2 > .si2-sect--first { margin-top: 0; }
.si2-sect-h {
  display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap;
  padding: 12px 0 10px; border-top: 1px solid var(--si2-strong);
}
.si2-sect-h h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; color: var(--si2-ink); }
.si2-count { font-size: 13.5px; color: var(--si2-faint); }
.si2-also { margin-top: 22px; }
.si2 .si2-also-h { font-size: 13.5px; font-weight: 600; color: var(--si2-slate); padding-bottom: 6px; }
.si2 .si2-tbc-h { padding-top: 18px; }
.si2 .si2-after { padding: 12px 0 2px; border-top: 1px solid var(--si2-rule); font-size: 14.5px; color: var(--si2-slate); }
.si2-list { list-style: none; margin: 0; padding: 0; }
.si2-li, .si2-gap, .si2-turn { border-top: 1px solid var(--si2-rule-soft); }
.si2-list > :first-child { border-top-color: var(--si2-rule); }
.si2-list > .si2-li:last-child { border-bottom: 1px solid var(--si2-rule-soft); }
/* a gap or a year line is ruled off from the row above and leads into the
   row it introduces */
.si2 .si2-list > .si2-gap + .si2-li, .si2 .si2-list > .si2-turn + .si2-li, .si2 .si2-list > .si2-gap + .si2-turn { border-top-color: transparent; }
.si2 .si2-row {
  position: relative; width: 100%; display: grid; grid-template-columns: 76px minmax(0, 1fr) 18px;
  grid-template-areas: "when what chev" "when notes chev"; column-gap: 16px; row-gap: 2px; align-items: center;
  min-height: 56px; padding: 11px 8px 11px 0; border: 0; background: none; color: inherit; text-align: left; text-decoration: none; cursor: pointer;
  transition: background-color 120ms;
}
.si2 .si2-row:hover { background: var(--si2-open-bg); }
/* on the hover fill, tertiary text darkens to slate (4.9:1) */
.si2 .si2-row:hover .si2-when span, .si2 .si2-row:hover .si2-notes { color: var(--si2-slate); }
.si2 .si2-row:focus-visible { outline-offset: -2px; border-radius: 4px; }
.si2-when { grid-area: when; align-self: start; display: flex; flex-direction: column; padding-top: 1px; line-height: 1.25; }
.si2-when b { font-size: 14.5px; font-weight: 600; color: var(--si2-ink); }
.si2-when span { font-size: 13px; color: var(--si2-faint); }
.si2-what { grid-area: what; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px 0; }
.si2-spec { font-size: 16px; font-weight: 600; color: var(--si2-ink); overflow-wrap: anywhere; }
.si2-site { font-size: 14.5px; color: var(--si2-slate); overflow-wrap: anywhere; }
.si2-notes { grid-area: notes; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; font-size: 13px; color: var(--si2-faint); }
.si2-notes:empty { display: none; }
.si2-soon { color: var(--si2-blue-ink); font-weight: 600; }
.si2-overlap { color: var(--si2-warn); font-weight: 600; }
.si2-mark { display: inline-flex; align-items: center; gap: 5px; color: var(--si2-ink); font-weight: 600; }
.si2-mark .si2-guide-i { width: 14px; height: 14px; color: var(--si2-blue-ink); }
.si2 .si2-row .si2-chev { grid-area: chev; width: 16px; height: 16px; color: var(--si2-mist); transition: transform 160ms var(--si2-ease), color 160ms; }
.si2 .si2-row:hover .si2-chev { color: var(--si2-ink); transform: translateX(2px); }
.si2-row--ended .si2-spec { color: var(--si2-slate); }
/* the calendar year turns; a working week or more passes with no placement */
.si2-turn { padding: 10px 0 0; font-size: 13px; font-weight: 600; color: var(--si2-slate); letter-spacing: 0.02em; }
/* a gap: one quiet line in the rows' content column */
.si2-gap { padding: 10px 8px 0 92px; font-size: 13px; line-height: 1.35; color: var(--si2-faint); }
.si2-gap + .si2-turn { padding-top: 6px; }

/* ------------------------------------------------------- previous years */
.si2-year { border-top: 1px solid var(--si2-rule); }
.si2-prev .si2-sect-h + .si2-year { border-top: 0; }
.si2 .si2-year-h { font-size: inherit; font-weight: inherit; }
.si2 .si2-year-btn {
  width: 100%; display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; min-height: 52px; padding: 10px 4px 10px 0;
  border: 0; background: none; text-align: left; cursor: pointer;
}
.si2 .si2-year-btn:hover { background: var(--si2-open-bg); }
.si2 .si2-year-btn:hover .si2-year-m { color: var(--si2-slate); }
.si2-year-t { font-size: 16.5px; font-weight: 600; color: var(--si2-ink); }
.si2-year-m { font-size: 13.5px; color: var(--si2-faint); }
.si2 .si2-down { margin-left: auto; width: 18px; height: 18px; color: var(--si2-slate); transition: transform 220ms var(--si2-ease); }
.is-open > .si2-year-h .si2-down { transform: rotate(180deg); }
.si2-fold { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 260ms var(--si2-ease), opacity 200ms; }
.si2-fold.is-closed { grid-template-rows: 0fr; opacity: 0; }
.si2-fold-in { min-height: 0; overflow: hidden; }
.si2-fold[hidden] { display: none; }
.si2-year .si2-list { margin-bottom: 8px; }

/* --------------------------------------------------------------- states */
.si2-state { display: flex; flex-direction: column; gap: 0; max-width: 70ch; padding-top: 4px; }
.si2.si2-state .si2-sub { margin-top: 6px; }
.si2-steps { list-style: none; margin: 22px 0 0; padding: 0; counter-reset: si2-step; }
.si2-steps li {
  position: relative; display: grid; gap: 2px; padding: 12px 0 12px 40px; border-top: 1px solid var(--si2-rule-soft);
  counter-increment: si2-step;
}
.si2-steps li::before {
  content: counter(si2-step); position: absolute; left: 0; top: 12px; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--si2-ink); display: grid; place-items: center; font-size: 12.5px; font-weight: 600; color: var(--si2-ink);
}
.si2-steps b { font-size: 15px; font-weight: 600; color: var(--si2-ink); }
.si2-steps span { font-size: 14px; color: var(--si2-slate); }
.si2 .si2-link--plain { font-size: 15px; }
.si2-skel { display: flex; flex-direction: column; gap: 12px; }
.si2-skel-lead { display: grid; gap: 14px; }
.si2-skel-photo { display: block; aspect-ratio: 16 / 7.2; border-radius: 4px; background: #eef1f6; }
.si2-skel-id { display: grid; gap: 10px; }
.si2-skel-id i, .si2-skel-row { display: block; height: 14px; border-radius: 4px; background: #eef1f6; }
.si2-skel-id i:nth-child(1) { width: 58%; height: 24px; }
.si2-skel-id i:nth-child(2) { width: 36%; }
.si2-skel-id i:nth-child(3) { width: 46%; }
.si2-skel-rule { display: block; height: 1px; margin-top: 22px; background: var(--si2-rule); }
.si2-skel-row { height: 40px; }

/* --------------------------------------------------------------- widths */
@container si2 (min-width: 620px) {
  .si2-gap { padding-left: 104px; }
  .si2 .si2-row {
    grid-template-columns: 84px minmax(0, 1fr) auto 18px;
    grid-template-areas: "when what notes chev";
    column-gap: 20px; padding-right: 10px;
  }
  .si2-what { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
  .si2-notes { justify-content: flex-end; }
  /* wide rows: the dividers carry the eye across */
  .si2 .si2-list > .si2-li, .si2 .si2-list > .si2-gap, .si2 .si2-list > .si2-turn { border-color: var(--si2-rule); }
  /* the fold's chevron follows the year's details, not the far edge */
  .si2 .si2-year-btn .si2-down { margin-left: 2px; }
  /* between phone and plate: a band of about 4:1, never a wall of photograph */
  .si2-photo-frame { aspect-ratio: auto; height: clamp(170px, 26cqw, 230px); }
  .si2 .si2-name { font-size: 30px; }
  .si2-lead--text .si2-name { font-size: 34px; }
}
@container si2 (min-width: 900px) {
  /* the photograph as a plate, the caption column beside it */
  .si2-lead:not(.si2-lead--text) {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr); column-gap: 36px; align-items: end;
  }
  .si2-lead:not(.si2-lead--text) .si2-photo-frame { aspect-ratio: auto; height: clamp(240px, 25cqw, 300px); }
  .si2-lead:not(.si2-lead--text) .si2-lead-id { padding: 0 0 22px; }
  .si2 .si2-name { font-size: 34px; letter-spacing: -0.024em; }
  .si2-lead--text .si2-name { font-size: 38px; }
  .si2-sect-h h2 { font-size: 23px; }
}
/* narrow phones: the shortcuts keep their words and drop their leading icons
   (the external-link mark stays: it says the link leaves PlacementFlow) */
@container si2 (width < 350px) {
  .si2 .si2-link .si2-i:not(.si2-ext) { display: none; }
}

/* ---------------------------------------------------------------- phones */
@media (max-width: 768px) {
  /* full bleed: out to the page's own gutter */
  .si2 .si2-photo { margin: 0 calc(-1 * var(--pf-page-gutter, 16px)); }
  .si2 .si2-photo-frame { border-radius: 0; }
  .si2 .si2-credit { padding: 0 var(--pf-page-gutter, 16px); }
  /* the phone ratio only while the column is phone-narrow: from 620 the band's
     own height holds (a ratio beside a fixed height would narrow the photo) */
  @container si2 (width < 620px) {
    .si2 .si2-photo-frame { aspect-ratio: 16 / 7.4; }
  }
  .si2-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .si2 .si2-open { justify-content: center; min-height: 48px; }
  .si2-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; }
  .si2 .si2-link {
    justify-content: center; gap: 5px; min-height: 44px; padding: 0 6px; border: 1px solid var(--si2-rule); border-radius: 8px;
    color: var(--si2-ink); font-size: 14px;
  }
  .si2-sect { margin-top: 28px; }
}
@media (max-width: 360px) {
  .si2 .si2-gap { padding-left: 76px; }
  .si2 .si2-name { font-size: 23px; }
  .si2 .si2-row { grid-template-columns: 64px minmax(0, 1fr) 16px; column-gap: 12px; }
}

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) {
  .si2-fold, .si2 .si2-down, .si2 .si2-open .si2-i, .si2 .si2-row .si2-chev { transition: none; }
}
@media (forced-colors: active) {
  .si2-sect-h, .si2-li, .si2-gap, .si2-turn, .si2-year, .si2 .si2-after { border-color: CanvasText; }
  .si2 .si2-list > .si2-gap + .si2-li, .si2 .si2-list > .si2-turn + .si2-li, .si2 .si2-list > .si2-gap + .si2-turn { border-top-color: transparent; }
  .si2-steps li::before { border-color: CanvasText; }
  .si2 .si2-open { border: 1px solid ButtonText; }
  .si2-skel-photo, .si2-skel-id i, .si2-skel-row { border: 1px solid GrayText; }
}

@media (max-width: 768px) {
  body.app-dashboard #section-placement.is-active { display: flex; flex-direction: column; }
  body.app-dashboard #section-placement #sd-root { order: 1; }
  body.app-dashboard #section-placement .placement-change-request-panel { order: 11; }
}

/* ============================================================
   SITE INFO V2 — the generic guide surface (sgv-*)
   Rendered by shared/site-guide-view.js inside the existing
   placement door. ONE stylesheet serves both Site Info layers
   (desktop #sdc-root, mobile #pd-mobile) so a guide cannot look
   like two different features, and it is site-agnostic: nothing
   below names a hospital, a specialty or a year.

   Nothing here carries meaning on its own. Every evidence chip
   ships an icon, visible text and a screen-reader sentence, so
   no state is signalled by colour alone.
   ============================================================ */
.sgv {
  --sgv-ink: var(--pf-ink, #16233f);
  --sgv-ink-2: var(--pf-ink-2, #5d6b84);
  --sgv-ink-3: var(--pf-ink-3, #8a97ad);
  --sgv-line: var(--pf-line, #e9edf4);
  --sgv-line-soft: var(--pf-line-soft, #f2f5fa);
  --sgv-surface: #fff;
  --sgv-canvas: var(--pf-canvas, #fff);
  --sgv-brand: var(--pf-brand, #1f6fd6);
  --sgv-brand-ink: #0b4fb3;
  --sgv-brand-tint: var(--pf-brand-tint, #eaf2fd);
  --sgv-navy-0: #081f47;
  --sgv-navy-1: #0b2a5e;
  --sgv-navy-2: #123c86;
  --sgv-green-ink: #0f6b3a; --sgv-green-tint: #e4f5eb; --sgv-green-line: #bfe3cf;
  --sgv-amber-ink: #7a4d05; --sgv-amber-tint: #fdf3e0; --sgv-amber-line: #f0d9ab;
  --sgv-check-ink: #40506b; --sgv-check-tint: #eef1f6; --sgv-check-line: #dbe2ec;
  --sgv-route-ink: #0b6a76; --sgv-route-tint: #e6f5f7; --sgv-route-line: #bde0e6;
  --sgv-red: #e0493b; --sgv-red-tint: #fdecea;
  --sgv-accent: #7db4f0;
  --sgv-r: 16px; --sgv-r-sm: 10px;
  --sgv-sh: 0 1px 2px rgba(20, 33, 64, .04), 0 2px 8px rgba(20, 33, 64, .05);
  --sgv-rail-w: 312px;
  --sgv-sticky-top: 0px;
  color: var(--sgv-ink);
  font-size: 14px;
  line-height: 1.5;
}
.sgv *, .sgv *::before, .sgv *::after { box-sizing: border-box; }
.sgv h2, .sgv h3, .sgv h4, .sgv h5, .sgv p { margin: 0; }
.sgv ul, .sgv ol { margin: 0; padding: 0; list-style: none; }
.sgv button { cursor: pointer; font: inherit; color: inherit; }
.sgv .sgv-i { display: block; width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sgv-sr, .sgv .sgv-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sgv :focus-visible { outline: 2px solid var(--sgv-brand); outline-offset: 2px; border-radius: 6px; }

/* ---------------------------------------------------------- hero plate */
.sgv-plate {
  position: relative; border-radius: var(--sgv-r); overflow: hidden; isolation: isolate;
  min-height: 196px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px 28px 22px;
  background: linear-gradient(118deg, var(--sgv-navy-0), var(--sgv-navy-1) 55%, var(--sgv-navy-2));
}
.sgv-plate-photo { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: saturate(.85); }
.sgv-plate-scrim { position: absolute; inset: 0; z-index: -2; background: linear-gradient(112deg, rgba(8, 31, 71, .94) 0%, rgba(9, 30, 66, .78) 42%, rgba(10, 30, 64, .46) 100%), linear-gradient(180deg, rgba(8, 20, 45, .1) 0%, rgba(8, 20, 45, .55) 100%); }
.sgv-plate-mono { position: absolute; right: 18px; top: -2px; z-index: -1; font-size: 150px; font-weight: 600; letter-spacing: -.04em; color: rgba(255, 255, 255, .06); line-height: 1; pointer-events: none; }
.sgv-plate-info { position: relative; z-index: 1; min-width: 0; }
.sgv-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .84); }
.sgv-kicker i { width: 9px; height: 9px; border-radius: 50%; background: var(--sgv-accent, #7db4f0); }
.sgv-plate-name { font-size: clamp(22px, 2.4vw, 31px); font-weight: 600; letter-spacing: -.025em; color: #fff; line-height: 1.08; max-width: 26ch; text-shadow: 0 1px 10px rgba(0, 0, 0, .35); }
.sgv-plate-sub { margin-top: 8px; font-size: 14.5px; font-weight: 600; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.sgv-plate-chips { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.sgv-chip { font-size: 11.5px; font-weight: 500; color: #fff; background: rgba(255, 255, 255, .18); border-radius: 999px; padding: 6px 12px; }
.sgv-chip--solid { background: #fff; color: var(--sgv-ink); }
.sgv-chip--amber { background: rgba(253, 230, 175, .95); color: #7c5a10; }
.sgv-chip-btn { border: 0; display: inline-flex; align-items: center; gap: 5px; min-height: 32px; }
.sgv-chip-btn .sgv-i { width: 13px; height: 13px; stroke-width: 2; }
.sgv-chip-btn:hover { background: #fff3cf; }
.sgv-chip-btn:focus-visible { outline-color: #fff; }
.sgv-plate-side { position: absolute; top: 20px; right: 24px; z-index: 1; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.sgv-pill { white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 500; color: #fff; text-decoration: none; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .32); border-radius: 999px; padding: 8px 14px; min-height: 34px; }
.sgv-pill:hover { background: rgba(255, 255, 255, .24); }
.sgv-pill:focus-visible { outline-color: #fff; }
.sgv-credit { position: absolute; right: 12px; bottom: 7px; z-index: 2; font-size: 10.5px; color: rgba(255, 255, 255, .74); }
.sgv-credit a { color: inherit; text-decoration: underline dotted; text-underline-offset: 2px; }

/* ---------------------------------------------------------------- tabs */
.sgv-tabs-wrap { position: sticky; top: var(--sgv-sticky-top); z-index: 40; background: var(--sgv-canvas); margin: 14px 0 0; border-bottom: 1px solid var(--sgv-line); display: flex; align-items: center; gap: 12px; }
.sgv-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; min-width: 0; flex: 1; }
.sgv-tabs::-webkit-scrollbar { display: none; }
.sgv-tab { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; border: 0; background: none; padding: 12px 14px; min-height: 46px; font-size: 13.5px; font-weight: 500; color: var(--sgv-ink-2); border-bottom: 2px solid transparent; }
.sgv-tab .sgv-i { width: 15px; height: 15px; }
.sgv-tab:hover { color: var(--sgv-ink); }
.sgv-tab[aria-selected="true"] { color: var(--sgv-brand-ink); border-bottom-color: var(--sgv-brand); font-weight: 600; }
.sgv-tabs-aside { flex: none; }

/* ------------------------------------------------- host: sign-off progress
   The one personal thing in a guide. It is fed by the host app, not by the
   guide payload, so nothing here names a site, a specialty or a year. */
.sgv-so-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; padding: 1px 6px; border-radius: 999px; background: var(--sgv-line-soft); border: 1px solid var(--sgv-line); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--sgv-ink-2); }
.sgv-tab[aria-selected="true"] .sgv-so-badge { background: var(--sgv-brand-tint); border-color: #cfe0f8; color: var(--sgv-brand-ink); }
.sgv-so-badge.is-done { background: var(--sgv-green-tint); border-color: var(--sgv-green-line); color: var(--sgv-green-ink); }

/* The last thing in its tab, so it keeps the guide footer at a distance: a card
   flush against the footer's provisional-content disclaimer read as if the
   disclaimer described the student's own numbers. */
.sgv-so { margin-bottom: 24px; }
.sgv-so-card { display: block; padding: 18px 20px; border: 1px solid var(--sgv-line); border-radius: var(--sgv-r); background: var(--sgv-surface); box-shadow: var(--sgv-sh); max-width: 520px; }
a.sgv-so-card--link { text-decoration: none; color: inherit; }
a.sgv-so-card--link:hover { border-color: #cfd8e6; background: var(--sgv-line-soft); }
a.sgv-so-card--link:focus-visible { outline: 2px solid var(--sgv-brand); outline-offset: 2px; }
.sgv-so-count { font-size: 19px; font-weight: 600; letter-spacing: -.02em; color: var(--sgv-ink); font-variant-numeric: tabular-nums; }
.sgv-so-note { margin-top: 8px; font-size: 13px; color: var(--sgv-ink-2); }
.sgv-so-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--sgv-brand-ink); }
.sgv-so-go .sgv-i { width: 14px; height: 14px; }

/* A real <progress>. The colour is a second cue, never the only one: the
   count above it and the remainder below it both say the same thing in words. */
.sgv-so-bar { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 8px; margin-top: 12px; border: 0; border-radius: 999px; background: var(--sgv-line-soft); color: var(--sgv-brand); }
.sgv-so-bar::-webkit-progress-bar { background: var(--sgv-line-soft); border-radius: 999px; }
.sgv-so-bar::-webkit-progress-value { background: var(--sgv-brand); border-radius: 999px; }
.sgv-so-bar::-moz-progress-bar { background: var(--sgv-brand); border-radius: 999px; }
.sgv-so-bar.is-done { color: var(--sgv-green-ink); }
.sgv-so-bar.is-done::-webkit-progress-value { background: var(--sgv-green-ink); }
.sgv-so-bar.is-done::-moz-progress-bar { background: var(--sgv-green-ink); }

/* Loading: shape only, and deliberately no number. */
.sgv-so-skel { display: block; border-radius: 6px; background: var(--sgv-line-soft); }
.sgv-so-skel--a { width: 44%; height: 19px; }
.sgv-so-skel--b { width: 100%; height: 8px; margin-top: 12px; border-radius: 999px; }
.sgv-so-skel--c { width: 30%; height: 13px; margin-top: 12px; }

/* ------------------------------------------------------------- columns */
/* A primary tab change lands at the TOP of the new tab's content. That is
   only possible if the page is tall enough to scroll there: a short tab
   (a few collapsed rows) would otherwise be clamped by the browser and open
   with the strip part-way down the screen. Reserving one viewport below the
   sticky strip makes the guarantee hold for every tab, however short. */
.sgv-panels { padding-top: 22px; min-height: calc(100vh - var(--sgv-sticky-top, 0px) - 48px); }
.sgv-panel { min-width: 0; }
.sgv-cols { display: grid; grid-template-columns: minmax(0, 1fr) var(--sgv-rail-w); gap: 26px; align-items: start; }
.sgv-main { min-width: 0; display: flex; flex-direction: column; gap: 30px; }
.sgv-rail { min-width: 0; display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--sgv-sticky-top) + 62px); }

/* -------------------------------------------------------- section types */
.sgv-tab-h h2 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.sgv-tab-intro { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--sgv-ink-2); }
/* The intro's TEXT takes the free space; the chip beside it must not, or it
   stretches into a wide bar. `> span` alone would match both. */
.sgv-tab-intro > span:not(.sgv-st) { flex: 1; min-width: 220px; }
/* A tab's heading and its intro are one unit: the column gap separates
   SECTIONS, so the intro is drawn back up under its own heading. */
.sgv-tab-h + .sgv-tab-intro { margin-top: -20px; line-height: 1.55; }
@media (max-width: 768px) { .sgv-tab-h + .sgv-tab-intro { margin-top: -14px; } }
.sgv-sect { scroll-margin-top: 90px; }
.sgv-sect-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 9px; border-bottom: 1px solid var(--sgv-line); margin-bottom: 16px; }
.sgv-sect-h h3 { font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.sgv-sect-sub { font-size: 13px; color: var(--sgv-ink-2); line-height: 1.55; margin: -4px 0 14px; max-width: 72ch; }
.sgv-block-h { font-size: 12.5px; font-weight: 600; color: var(--sgv-ink-2); margin: 18px 0 8px; }
.sgv-card { background: var(--sgv-surface); border: 1px solid var(--sgv-line); border-radius: var(--sgv-r); box-shadow: var(--sgv-sh); padding: 22px 24px; scroll-margin-top: 90px; }
.sgv-card--feature { border-color: #dbe6f6; }
.sgv-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sgv-card-head h3 { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.sgv-eyebrow { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sgv-ink-3); margin-bottom: 3px; }
.sgv-body { font-size: 13.5px; color: var(--sgv-ink-2); line-height: 1.65; max-width: 72ch; }
.sgv-ver { margin-top: 18px; font-size: 11.5px; color: var(--sgv-ink-3); }
.sgv-guide-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--sgv-ink-3); padding-top: 6px; }

/* ------------------------------------------------------- evidence chips */
.sgv-st { display: inline-flex; align-items: center; gap: 5px; flex: none; font-size: 11px; font-weight: 600; letter-spacing: .01em; border-radius: 999px; padding: 3px 9px; border: 1px solid; }
.sgv-st .sgv-i { width: 12px; height: 12px; stroke-width: 2.2; }
.sgv-st--confirmed { color: var(--sgv-green-ink); background: var(--sgv-green-tint); border-color: var(--sgv-green-line); }
.sgv-st--provisional { color: var(--sgv-amber-ink); background: var(--sgv-amber-tint); border-color: var(--sgv-amber-line); }
.sgv-st--check_current { color: var(--sgv-check-ink); background: var(--sgv-check-tint); border-color: var(--sgv-check-line); }
.sgv-st--route_not_walked { color: var(--sgv-route-ink); background: var(--sgv-route-tint); border-color: var(--sgv-route-line); }

/* ---------------------------------------------------------------- rows */
/* ---- host-fed placement context: the people on this placement, and this
   student's sign-offs. The data is the host's, never the payload's. ---- */
.sgv-host { display: grid; gap: 10px; }
.sgv-host-sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: var(--sgv-ink-2); }
.sgv-host-sum b { font-size: 15px; font-weight: 600; color: var(--sgv-ink); }
.sgv-host-note { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--sgv-ink-2); line-height: 1.5; padding: 10px 12px; border: 1px dashed var(--sgv-line); border-radius: var(--sgv-r-sm); background: var(--sgv-line-soft); }
.sgv-host-note .sgv-i { flex: none; margin-top: 2px; color: var(--sgv-ink-3); }
.sgv-host-skel { height: 44px; border-radius: var(--sgv-r-sm); background: linear-gradient(90deg, var(--sgv-line-soft), var(--sgv-line), var(--sgv-line-soft)); background-size: 200% 100%; animation: sgv-skel 1.2s linear infinite; }
@keyframes sgv-skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sgv-host-skel { animation: none; } }
.sgv-people { display: flex; flex-wrap: wrap; gap: 8px; }
.sgv-person { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px 5px 5px; border: 1px solid var(--sgv-line); border-radius: 999px; background: var(--sgv-surface); font-size: 13px; color: var(--sgv-ink); }
.sgv-av { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; font-size: 11px; font-weight: 600; color: #fff; background: var(--sgv-navy-1); }
.sgv-person--you .sgv-av { background: var(--sgv-brand); }
.sgv-person--link { padding: 0; }
.sgv-person-a { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px 5px 5px; border-radius: 999px; color: inherit; text-decoration: none; }
.sgv-person--link:hover { border-color: var(--sgv-brand); }
.sgv-person--link:hover .sgv-person-a > span:last-child { text-decoration: underline; text-underline-offset: 2px; }
.sgv-person-a:focus-visible { outline: 2px solid var(--sgv-brand); outline-offset: 1px; }
.sgv-so { display: flex; flex-direction: column; }
.sgv-so-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--sgv-line-soft); }
.sgv-so-row:last-child { border-bottom: 0; }
.sgv-so-row--link { padding: 0; }
.sgv-so-a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 0; color: inherit; text-decoration: none; border-radius: var(--sgv-r-sm); }
.sgv-so-a:hover .sgv-so-t { color: var(--sgv-brand-ink); text-decoration: underline; text-underline-offset: 2px; }
.sgv-so-a:focus-visible { outline: 2px solid var(--sgv-brand); outline-offset: 2px; }
.sgv-so-go { display: inline-flex; align-items: center; color: var(--sgv-ink-3); font-size: 18px; line-height: 1; margin-left: 2px; }
.sgv-so-go .sgv-i { width: 16px; height: 16px; }
.sgv-so-a:hover .sgv-so-go { color: var(--sgv-brand-ink); }
.sgv-so-main { min-width: 0; flex: 1; }
.sgv-so-t { font-size: 14px; font-weight: 500; color: var(--sgv-ink); }
.sgv-so-m { font-size: 12.5px; color: var(--sgv-ink-2); margin-top: 2px; line-height: 1.5; }
.sgv-so-side { display: flex; align-items: center; gap: 8px; flex: none; }
.sgv-so-count { font-size: 13px; font-weight: 600; color: var(--sgv-ink); font-variant-numeric: tabular-nums; }
.sgv-so-count.is-done { color: var(--sgv-green-ink); }
.sgv-req { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 3px 8px; border: 1px solid; }
.sgv-req--required { color: var(--sgv-amber-ink); background: var(--sgv-amber-tint); border-color: var(--sgv-amber-line); }
.sgv-req--recommended { color: var(--sgv-brand-ink); background: var(--sgv-brand-tint); border-color: #cfe0f7; }
.sgv-req--optional { color: var(--sgv-check-ink); background: var(--sgv-check-tint); border-color: var(--sgv-check-line); }
.sgv-so-bar { position: relative; height: 6px; border-radius: 999px; background: var(--sgv-line-soft); overflow: hidden; }
.sgv-so-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--sgv-green-ink); }
.sgv-rows { display: flex; flex-direction: column; }
.sgv-row { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--sgv-line-soft); }
.sgv-row:last-child { border-bottom: 0; }
.sgv-row-ic { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--sgv-brand-tint); color: var(--sgv-brand-ink); }
.sgv-row-main { min-width: 0; flex: 1; }
.sgv-row-k { font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--sgv-ink-3); margin-bottom: 3px; }
.sgv-row-v { font-size: 14px; font-weight: 500; color: var(--sgv-ink); }
.sgv-row-m { font-size: 12.5px; color: var(--sgv-ink-2); margin-top: 4px; line-height: 1.6; max-width: 72ch; }
.sgv-row-a { margin-top: 6px; }
.sgv-row-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 500; color: var(--sgv-brand-ink); text-align: left; text-decoration: underline; text-underline-offset: 2px; }
.sgv-rows--pairs .sgv-row { align-items: baseline; }
.sgv-nrow { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--sgv-line-soft); }
.sgv-nrow:last-of-type { border-bottom: 0; }
.sgv-num { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--sgv-brand-tint); color: var(--sgv-brand-ink); font-size: 12px; font-weight: 600; }

/* --------------------------------------------------------------- items */
.sgv-items { display: grid; gap: 18px; }
.sgv-item { display: flex; gap: 12px; }
.sgv-item-ic { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--sgv-line-soft); color: var(--sgv-ink-2); }
.sgv-item-main { min-width: 0; flex: 1; }
.sgv-item-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sgv-item-h b { font-size: 13.5px; font-weight: 600; }
.sgv-item-b { font-size: 13px; color: var(--sgv-ink-2); line-height: 1.65; margin-top: 4px; max-width: 72ch; }

/* ---------------------------------------------------------- checklists */
.sgv-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 12px; }
.sgv-check-h { font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--sgv-ink-3); margin-bottom: 6px; }
.sgv-check li { display: flex; align-items: flex-start; gap: 9px; padding: 4px 0; font-size: 13px; color: var(--sgv-ink-2); }
.sgv-box { width: 15px; height: 15px; flex: none; margin-top: 2px; border: 1.5px solid #c9d3e2; border-radius: 4px; }

/* --------------------------------------------------------------- steps */
.sgv-steps { display: grid; gap: 14px; margin-top: 12px; }
.sgv-step { display: flex; gap: 12px; }
.sgv-step-n { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--sgv-navy-1); color: #fff; font-size: 12.5px; font-weight: 600; }
.sgv-step-main { min-width: 0; flex: 1; }
.sgv-step-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sgv-step-h b { font-size: 14px; font-weight: 600; }
.sgv-step-alt { margin-top: 8px; padding: 9px 12px; border-left: 3px solid var(--sgv-line); background: var(--sgv-line-soft); border-radius: 0 8px 8px 0; }
.sgv-step-alt h5 { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--sgv-ink-3); }
.sgv-step-alt p { font-size: 12.5px; color: var(--sgv-ink-2); margin-top: 3px; line-height: 1.55; }

/* --------------------------------------------------------------- table */
.sgv-table-wrap { overflow-x: auto; border: 1px solid var(--sgv-line); border-radius: var(--sgv-r-sm); }
.sgv-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 460px; }
.sgv-table th { text-align: left; font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--sgv-ink-3); padding: 9px 12px; background: var(--sgv-line-soft); border-bottom: 1px solid var(--sgv-line); }
.sgv-table td { padding: 10px 12px; border-bottom: 1px solid var(--sgv-line-soft); vertical-align: top; color: var(--sgv-ink-2); }
.sgv-table tr:last-child td { border-bottom: 0; }
.sgv-table td small { display: block; font-size: 11.5px; color: var(--sgv-ink-3); margin-top: 2px; }
.sgv-num-col { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ callouts */
.sgv-callout { display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; border-radius: var(--sgv-r-sm); border: 1px solid; font-size: 13px; line-height: 1.55; }
.sgv-callout .sgv-i { margin-top: 2px; }
.sgv-callout--info { background: var(--sgv-line-soft); border-color: var(--sgv-line); color: var(--sgv-ink-2); }
.sgv-callout--warning { background: var(--sgv-amber-tint); border-color: var(--sgv-amber-line); color: var(--sgv-amber-ink); }
.sgv-callout--clinical { background: var(--sgv-red-tint); border-color: #f5c7c1; color: #8c2b20; }
.sgv-callout--admin { background: var(--sgv-brand-tint); border-color: #cfe0f8; color: var(--sgv-brand-ink); }
.sgv-note { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--sgv-ink-2); line-height: 1.55; }
.sgv-note .sgv-i { margin-top: 2px; width: 14px; height: 14px; }

/* ---------------------------------------------------------------- tags */
.sgv-tagset { display: grid; gap: 12px; margin-top: 12px; }
.sgv-taggroup-n { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--sgv-ink-2); margin-bottom: 6px; }
.sgv-taggroup-n i { font-style: normal; font-size: 11px; font-weight: 600; color: var(--sgv-ink-3); background: var(--sgv-line-soft); border-radius: 999px; padding: 1px 7px; }
.sgv-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sgv-tag { font-size: 12px; color: var(--sgv-ink-2); background: var(--sgv-line-soft); border: 1px solid var(--sgv-line); border-radius: 999px; padding: 3px 10px; }

/* ---------------------------------------------------- buttons and links */
.sgv-btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sgv-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 8px 14px; border: 1px solid var(--sgv-line); border-radius: 999px; background: var(--sgv-surface); font-size: 13px; font-weight: 500; color: var(--sgv-ink); text-decoration: none; }
.sgv-btn:hover { border-color: #cfd8e6; background: var(--sgv-line-soft); }
.sgv-btn--sm { min-height: 32px; padding: 6px 12px; font-size: 12.5px; }
.sgv-btn--primary { background: var(--sgv-brand); border-color: var(--sgv-brand); color: #fff; }
.sgv-btn--primary:hover { background: #1559b0; border-color: #1559b0; }
.sgv-quiet { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 6px; border: 0; background: none; font-size: 12.5px; font-weight: 500; color: var(--sgv-brand-ink); text-decoration: none; }
.sgv-quiet.is-muted { color: var(--sgv-ink-3); cursor: default; }
.sgv-tel { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-size: 13px; font-weight: 500; color: var(--sgv-brand-ink); text-decoration: none; white-space: nowrap; }
.sgv-jump { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 4px; }
.sgv-jump button { border: 1px solid var(--sgv-line); border-radius: 999px; background: var(--sgv-surface); padding: 5px 12px; min-height: 30px; font-size: 12.5px; color: var(--sgv-ink-2); }
.sgv-jump button.is-tool { margin-left: auto; color: var(--sgv-brand-ink); font-weight: 600; }

/* --------------------------------------------------------- disclosures */
.sgv-disc { border-top: 1px solid var(--sgv-line-soft); margin-top: 10px; }
.sgv-disc > summary { display: flex; align-items: center; gap: 8px; padding: 10px 0; min-height: 40px; font-size: 13px; font-weight: 500; color: var(--sgv-brand-ink); list-style: none; cursor: pointer; }
.sgv-disc > summary::-webkit-details-marker { display: none; }
.sgv-disc[open] > summary .sgv-i { transform: rotate(180deg); }
.sgv-disc-body { padding-bottom: 12px; }
.sgv-drow { border: 1px solid var(--sgv-line); border-radius: var(--sgv-r-sm); background: var(--sgv-surface); margin-bottom: 12px; scroll-margin-top: 90px; }
.sgv-drow > summary { display: flex; align-items: center; gap: 14px; padding: 16px 20px; min-height: 60px; list-style: none; cursor: pointer; }
.sgv-drow > summary::-webkit-details-marker { display: none; }
.sgv-drow-ic { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--sgv-line-soft); color: var(--sgv-ink-2); }
.sgv-drow-t { min-width: 0; flex: 1; }
.sgv-drow-n { display: block; font-size: 14px; font-weight: 600; }
.sgv-drow-s { display: block; font-size: 12.5px; color: var(--sgv-ink-2); margin-top: 3px; line-height: 1.55; }
.sgv-drow-side { display: flex; align-items: center; gap: 10px; flex: none; }
.sgv-drow-c { color: var(--sgv-ink-3); }
.sgv-drow[open] .sgv-drow-c { transform: rotate(180deg); }
.sgv-drow-body { padding: 18px 20px 20px; border-top: 1px solid var(--sgv-line-soft); margin-top: 0; }
/* Consecutive disclosure rows read as ONE list, not as separate sections:
   the column gap separates sections, so adjacent rows are drawn back to a
   12px rhythm, and the row's own bottom margin is left to non-column hosts. */
.sgv-main > .sgv-drow { margin-bottom: 0; }
.sgv-main > .sgv-drow + .sgv-drow { margin-top: -18px; }

/* ------------------------------------------------------------ explorer */
.sgv-explorer { display: grid; gap: 12px; }
.sgv-search { position: relative; display: flex; align-items: center; }
.sgv-search > .sgv-i { position: absolute; left: 13px; color: var(--sgv-ink-3); pointer-events: none; }
.sgv-search input { width: 100%; height: 44px; border: 1px solid #d8e0ec; border-radius: var(--sgv-r-sm); background: var(--sgv-surface); padding: 0 42px; font-size: 14px; color: var(--sgv-ink); }
.sgv-search input::-webkit-search-cancel-button { display: none; }
.sgv-search-clear { position: absolute; right: 8px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--sgv-ink-3); }
.sgv-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.sgv-cat { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--sgv-line); border-radius: 999px; background: var(--sgv-surface); padding: 6px 13px; min-height: 34px; font-size: 12.5px; font-weight: 500; color: var(--sgv-ink-2); }
.sgv-cat[aria-pressed="true"] { background: var(--sgv-brand-ink); border-color: var(--sgv-brand-ink); color: #fff; }
.sgv-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; border: 1px dashed var(--sgv-line); border-radius: var(--sgv-r-sm); }
.sgv-quick > b { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--sgv-ink-3); margin-right: 4px; }
.sgv-results-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sgv-count { font-size: 12.5px; color: var(--sgv-ink-2); }
.sgv-dests { display: grid; gap: 8px; }
.sgv-dest { display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; padding: 13px 14px; border: 1px solid var(--sgv-line); border-radius: var(--sgv-r-sm); background: var(--sgv-surface); }
.sgv-dest:hover { border-color: #cfd8e6; }
.sgv-dest[aria-expanded="true"] { border-color: var(--sgv-brand); box-shadow: 0 0 0 1px var(--sgv-brand); }
/* a place's details, open under its own row (SI1.1) */
.sgv-dest-item { display: grid; gap: 8px; }
.sgv-dest-more { overflow: hidden; }
.sgv-dest-more-in { padding: 4px 14px 14px 60px; }
.sgv-dest-ic { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--sgv-brand-tint); color: var(--sgv-brand-ink); }
.sgv-dest-main { min-width: 0; flex: 1; }
.sgv-dest-n { display: block; font-size: 14px; font-weight: 600; }
.sgv-dest-n small { display: block; font-size: 12px; font-weight: 400; color: var(--sgv-ink-3); }
.sgv-dest-l { display: block; font-size: 12.5px; color: var(--sgv-ink-2); margin-top: 2px; }
.sgv-dest-p { display: block; font-size: 12.5px; color: var(--sgv-ink-3); margin-top: 2px; }
.sgv-dest-s { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sgv-dest-chev { color: var(--sgv-ink-3); align-self: center; flex: none; }
.sgv-empty { padding: 20px; border: 1px dashed var(--sgv-line); border-radius: var(--sgv-r-sm); font-size: 13px; color: var(--sgv-ink-2); text-align: center; }
.sgv-explorer-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ------------------------------------------------- destination detail */
.sgv-detail-h { display: flex; align-items: flex-start; gap: 11px; }
.sgv-detail-id { min-width: 0; }
.sgv-detail-n { font-size: 15px; font-weight: 600; }
.sgv-detail-l { font-size: 12.5px; color: var(--sgv-ink-2); margin-top: 2px; }
.sgv-detail-p { font-size: 12.5px; color: var(--sgv-ink-3); margin-top: 2px; }
.sgv-vstat { display: grid; gap: 10px; margin: 14px 0; padding: 12px 0; border-top: 1px solid var(--sgv-line-soft); border-bottom: 1px solid var(--sgv-line-soft); }
.sgv-vstat > div { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: center; gap: 8px; }
.sgv-vstat b { font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--sgv-ink-3); }
.sgv-vstat p { grid-column: 1 / -1; font-size: 12.5px; color: var(--sgv-ink-2); line-height: 1.55; }
.sgv-detail-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--sgv-line-soft); }
.sgv-rail-empty { display: flex; align-items: flex-start; gap: 11px; font-size: 13px; color: var(--sgv-ink-2); line-height: 1.55; }

/* ------------------------------------------------------------ the rail */
.sgv-railcard { background: var(--sgv-surface); border: 1px solid var(--sgv-line); border-radius: var(--sgv-r); box-shadow: var(--sgv-sh); padding: 18px 20px; }
.sgv-railcard-h { font-size: 13.5px; font-weight: 600; }
.sgv-railcard-s { font-size: 12px; color: var(--sgv-ink-3); margin-top: 3px; margin-bottom: 10px; line-height: 1.5; }
.sgv-rail-note { font-size: 11.5px; color: var(--sgv-ink-3); margin-top: 10px; line-height: 1.5; }
.sgv-rail-links { display: grid; gap: 2px; }
.sgv-rail-link { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 8px 6px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--sgv-ink); text-decoration: none; }
.sgv-rail-link:hover { background: var(--sgv-line-soft); }
.sgv-contacts { display: grid; gap: 2px; }
.sgv-contact { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--sgv-line-soft); }
.sgv-contact:last-child { border-bottom: 0; }
.sgv-contact-main { min-width: 0; }
.sgv-contact-r { display: block; font-size: 13px; font-weight: 500; }
.sgv-contact-n { display: block; font-size: 11.5px; color: var(--sgv-ink-3); margin-top: 3px; line-height: 1.5; }

/* --------------------------------------------------------- campus plan */
.sgv-cp { display: grid; gap: 16px; }
.sgv-cp-svg { width: 100%; height: auto; background: #f7f9fc; border: 1px solid var(--sgv-line); border-radius: var(--sgv-r-sm); }
.sgv-cp-svg.is-compact { max-height: 260px; }
.sgv-cp-site { fill: #eef3fa; stroke: #dbe4f0; stroke-width: 2; }
.sgv-cp-b { fill: #cfd9e8; stroke: #b3c2d8; stroke-width: 1.5; }
.sgv-cp-b--main { fill: #b9cdf0; stroke: #8fabdd; }
.sgv-cp-b--maternity { fill: #cbe3dc; stroke: #9dc6ba; }
.sgv-cp-b--ed { fill: #f2c9c3; stroke: #dda69d; }
.sgv-cp-b--stmarks { fill: #ded2f0; stroke: #bcaade; }
.sgv-cp-b--carpark { fill: #e3e8ef; stroke: #c3ccd9; }
/* A second NAMED building, where a site has one the map source actually names.
   Warm against the blue main block so the two named footprints are told apart
   at a glance; every UNNAMED footprint keeps the neutral .sgv-cp-b grey, which
   is the visual difference between "we know what this is" and "we do not". */
.sgv-cp-b--annexe { fill: #e8dcc6; stroke: #c9b38b; }
/* A named EDUCATION building (an undergraduate office or teaching centre the
   map source names), distinct from both the main block and an annexe. */
.sgv-cp-b--education { fill: #d3e6c8; stroke: #a9c996; }
.sgv-cp-b[role="button"] { cursor: pointer; }
.sgv-cp-b.is-hl, .sgv-cp-m.is-hl circle, .sgv-cp-m.is-hl rect { stroke: var(--sgv-brand); stroke-width: 3; }
/* A selected MARKER is small, so its ring is heavier than a footprint's. */
.sgv-cp-m.is-hl circle, .sgv-cp-m.is-hl rect { stroke-width: 5; }
.sgv-cp-road { fill: none; stroke: #d7dfea; stroke-width: 7; stroke-linecap: round; }
.sgv-cp-rail { fill: none; stroke: #b9a6d8; stroke-width: 3; stroke-dasharray: 10 6; }
.sgv-cp-path { fill: none; stroke: #c3cddb; stroke-width: 2; stroke-dasharray: 5 5; }
.sgv-cp-pt { fill: #8a97ad; }
.sgv-cp-m circle, .sgv-cp-m rect { fill: var(--sgv-navy-1); stroke: #fff; stroke-width: 2; }
.sgv-cp-m.is-minor circle { fill: #7d8ca6; }
.sgv-cp-m--station circle { fill: #6a4fa8; }
.sgv-cp-m .sgv-cp-core { fill: #fff; stroke: none; }
.sgv-cp-m[role="button"] { cursor: pointer; }
.sgv-cp-t { fill: #fff; font-size: 12px; font-weight: 600; text-anchor: middle; }
.sgv-cp-n line, .sgv-cp-n polygon { stroke: #8a97ad; fill: #8a97ad; stroke-width: 2; }
.sgv-cp-n .sgv-cp-t, .sgv-cp-scale .sgv-cp-t { fill: #5d6b84; font-size: 13px; }
.sgv-cp-scale line { stroke: #5d6b84; stroke-width: 2; }
/* Key swatches carry the SAME colours as the footprints they name. The role
   classes set SVG `fill`, which an HTML swatch ignores, so every swatch used
   to render the neutral grey whatever it was naming. */
.sgv-cp-sw.sgv-cp-b--main { background: #b9cdf0; border-color: #8fabdd; }
.sgv-cp-sw.sgv-cp-b--maternity { background: #cbe3dc; border-color: #9dc6ba; }
.sgv-cp-sw.sgv-cp-b--ed { background: #f2c9c3; border-color: #dda69d; }
.sgv-cp-sw.sgv-cp-b--stmarks { background: #ded2f0; border-color: #bcaade; }
.sgv-cp-sw.sgv-cp-b--carpark { background: #e3e8ef; border-color: #c3ccd9; }
.sgv-cp-sw.sgv-cp-b--annexe { background: #e8dcc6; border-color: #c9b38b; }
.sgv-cp-sw.sgv-cp-b--education { background: #d3e6c8; border-color: #a9c996; }
/* Street names on a plan: quiet, never competing with the footprints. */
.sgv-cp-street { fill: #6f7d96; font-size: 24px; font-weight: 600; letter-spacing: .06em; text-anchor: middle; paint-order: stroke; stroke: #f7f9fc; stroke-width: 4px; stroke-linejoin: round; }
/* The numbered key: every marker that leads somewhere is a real button. */
.sgv-cp-mkey { display: grid; gap: 4px; margin: 12px 0 4px; padding: 0; list-style: none; }
.sgv-cp-mk { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 6px 8px; border: 0; border-radius: 8px; background: none; text-align: left; font-size: 13px; color: var(--sgv-ink); }
button.sgv-cp-mk:hover { background: var(--sgv-line-soft); }
.sgv-cp-mk.is-static { color: var(--sgv-ink-2); }
.sgv-cp-mk-g { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--sgv-navy-1); color: #fff; font-size: 12px; font-weight: 600; }
.sgv-cp-mk-g.is-dot { width: 10px; height: 10px; margin: 0 7px; background: #7d8ca6; }
/* The selected place, in words, above the drawing. */
.sgv-cp-ctx { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; padding: 12px 14px; border: 1px solid #cfe0f8; border-radius: var(--sgv-r-sm); background: var(--sgv-brand-tint); }
.sgv-cp-ctx p { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--sgv-ink-2); min-width: 0; }
.sgv-cp-ctx b { font-size: 14px; color: var(--sgv-ink); }
.sgv-cp-ctx-k { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sgv-brand-ink); }
.sgv-cp-attr a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.sgv-cp-key { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--sgv-ink-2); }
.sgv-cp-key li { display: flex; align-items: center; gap: 6px; }
.sgv-cp-sw { width: 13px; height: 13px; border-radius: 3px; border: 1px solid #b3c2d8; background: #cfd9e8; }
.sgv-cp-note, .sgv-cp-attr { font-size: 11.5px; color: var(--sgv-ink-3); line-height: 1.5; }
.sgv-cp-list { display: grid; gap: 6px; font-size: 12.5px; color: var(--sgv-ink-2); }
.sgv-cp-list li::before { content: "· "; color: var(--sgv-ink-3); }
.sgv-cp-foot { display: grid; gap: 8px; }

/* -------------------------------------------------------------- ladder */
/* The blocks-and-levels ladder: an ORIENTATION schematic, not a floorplan.
   Groups (a block, or a floor) hold levels (a level, or a lift bank); each
   level holds destination cards. No lines join anything — there are no
   routes to draw. */
.sgv-ladder { display: grid; gap: 14px; }
.sgv-lblock { border: 1px solid var(--sgv-line); border-radius: var(--sgv-r-sm); padding: 14px 16px 6px; scroll-margin-top: 12px; }
.sgv-lblock-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sgv-lblock-h h3, .sgv-lblock-h b { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.sgv-lblock-h span { font-size: 11.5px; color: var(--sgv-ink-3); }
.sgv-lblock-note { font-size: 12px; color: var(--sgv-ink-2); margin-top: 4px; line-height: 1.5; max-width: 72ch; }
.sgv-llevel { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--sgv-line-soft); margin-top: 10px; }
.sgv-lblock-note + .sgv-llevel, .sgv-lblock-h + .sgv-llevel { margin-top: 10px; }
.sgv-llevel + .sgv-llevel { margin-top: 0; }
.sgv-llevel-n { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sgv-ink-3); padding-top: 13px; line-height: 1.4; }
.sgv-lnodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.sgv-node { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--sgv-line); border-radius: var(--sgv-r-sm); background: var(--sgv-surface); text-align: left; font-size: 13px; color: var(--sgv-ink); cursor: pointer; }
.sgv-node:hover { border-color: #c9d6ea; background: #fbfcfe; }
.sgv-node-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--sgv-line-soft); color: var(--sgv-ink-2); }
.sgv-node-t { min-width: 0; display: grid; gap: 3px; justify-items: start; }
.sgv-node-n { font-weight: 600; font-size: 13px; line-height: 1.35; }
.sgv-node-p { font-size: 12px; color: var(--sgv-ink-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sgv-node-st { margin-top: 4px; font-size: 10.5px; padding: 2px 8px; }
.sgv-node-sel { font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--sgv-brand-ink); }
.sgv-node.is-selected { border-color: var(--sgv-brand); box-shadow: 0 0 0 3px var(--sgv-brand-tint); background: var(--sgv-surface); }
.sgv-node.is-selected .sgv-node-ic { background: var(--sgv-brand-tint); color: var(--sgv-brand-ink); }
.sgv-cp-list--places { margin-bottom: 12px; }
/* The layout's route caveat is read first; give it room before the groups. */
.sgv-dlg--layout .sgv-dlg-b > .sgv-note { margin-bottom: 16px; }
.sgv-cp-list--places li { line-height: 1.55; max-width: 92ch; }
.sgv-cp-list--places b { color: var(--sgv-ink); }

/* ------------------------------------------------------------- dialogs */
.sgv-dialogs { position: relative; z-index: 3000; }
.sgv-dlg { width: min(680px, calc(100vw - 32px)); max-height: min(84vh, 760px); padding: 0; border: 0; border-radius: var(--sgv-r); background: var(--sgv-surface); color: var(--sgv-ink); box-shadow: 0 12px 40px rgba(20, 33, 64, .22); font-size: 14px; line-height: 1.5; overflow: hidden; display: flex; flex-direction: column; }
.sgv-dlg::backdrop { background: rgba(11, 26, 51, .48); }
.sgv-dlg--layout { width: min(1000px, calc(100vw - 32px)); }
.sgv-dlg *, .sgv-dlg *::before, .sgv-dlg *::after { box-sizing: border-box; }
.sgv-dlg h2, .sgv-dlg h3, .sgv-dlg h4, .sgv-dlg h5, .sgv-dlg p { margin: 0; }
.sgv-dlg ul, .sgv-dlg ol { margin: 0; padding: 0; list-style: none; }
.sgv-dlg button { cursor: pointer; font: inherit; color: inherit; }
.sgv-dlg .sgv-i { display: block; width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sgv-dlg-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 18px 20px 12px; border-bottom: 1px solid var(--sgv-line); }
.sgv-dlg-h h2 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.sgv-dlg-h p { font-size: 13px; color: var(--sgv-ink-2); margin-top: 4px; line-height: 1.55; }
.sgv-dlg-x { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 1px solid var(--sgv-line); border-radius: 50%; background: var(--sgv-surface); color: var(--sgv-ink-2); }
.sgv-dlg-b { padding: 16px 20px 20px; overflow-y: auto; }
.sgv-dlg-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.sgv-dlg-status { font-size: 12.5px; color: var(--sgv-ink-2); }
.sgv-field { display: grid; gap: 5px; margin-bottom: 12px; }
.sgv-field label { font-size: 12px; font-weight: 600; color: var(--sgv-ink-2); }
.sgv-field select, .sgv-field textarea { width: 100%; border: 1px solid #d8e0ec; border-radius: 8px; padding: 9px 11px; font: inherit; font-size: 13.5px; background: var(--sgv-surface); color: var(--sgv-ink); }
.sgv-field textarea { resize: vertical; min-height: 92px; }
.sgv-thanks { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--sgv-ink-2); }
.sgv-facts { display: grid; gap: 6px; margin-top: 14px; }
.sgv-facts li { display: flex; gap: 10px; font-size: 12.5px; align-items: baseline; }
.sgv-facts b { flex: none; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sgv-ink-3); min-width: 128px; }
.sgv-facts span { color: var(--sgv-ink-2); }
.sgv-legend { display: grid; gap: 10px; }
.sgv-legend-h { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sgv-ink-3); margin: 16px 0 8px; padding-top: 12px; border-top: 1px solid var(--sgv-line); }
.sgv-legend li { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 13px; color: var(--sgv-ink-2); line-height: 1.5; }
.sgv-legend li .sgv-st { justify-self: start; }
.sgv-seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--sgv-line); border-radius: 999px; margin-bottom: 14px; }
.sgv-seg button { border: 0; border-radius: 999px; background: none; padding: 6px 14px; min-height: 32px; font-size: 12.5px; font-weight: 500; color: var(--sgv-ink-2); }
.sgv-seg button[aria-selected="true"] { background: var(--sgv-brand-ink); color: #fff; }

/* ------------------------------------------- multi-site placement sites
   One placement taught at several hospitals. Nothing here names a hospital:
   every word and photograph arrives in the payload. */

/* The hero, assignment unknown: each site's own photograph side by side,
   equal panels, thin dividers, under the same navy scrim as any hero. */
.sgv-plate--mosaic { background: var(--sgv-navy-1); min-height: 252px; }
.sgv-plate-mosaic { position: absolute; inset: 0; z-index: -3; display: grid; grid-template-columns: repeat(var(--sgv-mosaic-n, 3), minmax(0, 1fr)); gap: 2px; background: rgba(255, 255, 255, .28); }
.sgv-plate-mosaic[data-sgv-mosaic="2"] { --sgv-mosaic-n: 2; }
.sgv-mosaic-panel { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(135deg, var(--sgv-navy-1), var(--sgv-navy-2)); }
.sgv-mosaic-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; filter: saturate(.85); }
.sgv-mosaic-panel .sgv-site-mono { font-size: 72px; }
/* Darkness where the words are (the lower left), so every building still
   reads above them. */
.sgv-plate--mosaic .sgv-plate-scrim { background: linear-gradient(180deg, rgba(8, 20, 45, .18) 0%, rgba(8, 20, 45, .42) 38%, rgba(8, 24, 56, .9) 100%), linear-gradient(90deg, rgba(8, 31, 71, .55) 0%, rgba(8, 31, 71, .12) 60%, rgba(8, 31, 71, 0) 100%); }
.sgv-plate-note { margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, .86); text-shadow: 0 1px 6px rgba(0, 0, 0, .35); max-width: 46ch; }
/* One compact credit control for several photographs. Closed, a small pill
   in the corner; open, the list joins the hero's flow rather than being
   clipped by it. */
.sgv-credits { position: absolute; right: 12px; bottom: 8px; z-index: 2; font-size: 11px; color: rgba(255, 255, 255, .86); }
.sgv-credits > summary { display: inline-flex; align-items: center; gap: 5px; list-style: none; cursor: pointer; padding: 3px 10px; border-radius: 999px; background: rgba(9, 16, 32, .55); }
.sgv-credits > summary::-webkit-details-marker { display: none; }
.sgv-credits > summary .sgv-i { width: 12px; height: 12px; }
.sgv-credits > summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.sgv-credits[open] { position: relative; right: auto; bottom: auto; z-index: 2; margin-top: 14px; align-self: flex-end; max-width: 100%; }
.sgv-credits ul { margin: 8px 0 0; padding: 10px 12px; list-style: none; display: grid; gap: 6px; border-radius: 10px; background: rgba(9, 16, 32, .72); }
.sgv-credits li { line-height: 1.45; }
.sgv-credits b { font-weight: 600; margin-right: 4px; }
.sgv-credits a { color: inherit; text-decoration: underline dotted; text-underline-offset: 2px; }
.sgv-credits-n { display: block; color: rgba(255, 255, 255, .7); }

/* Photograph frames shared by the cards and the hospital view. A frame whose
   photograph failed shows its monogram, never a broken-image icon. */
.sgv-site-mono { position: absolute; right: 12px; bottom: 2px; font-size: 64px; font-weight: 600; letter-spacing: -.04em; color: rgba(255, 255, 255, .12); line-height: 1; pointer-events: none; }
.sgv-site-credit { position: absolute; top: 8px; right: 10px; z-index: 2; margin: 0; max-width: calc(100% - 20px); font-size: 10.5px; font-weight: 500; line-height: 1.35; color: #fff; background: rgba(9, 16, 32, .55); border-radius: 999px; padding: 2px 9px; overflow-wrap: anywhere; }
.sgv-site-credit a { color: inherit; text-decoration: underline dotted; text-underline-offset: 2px; }
.sgv-site-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--sgv-ink-2); background: var(--sgv-line-soft); border: 1px solid var(--sgv-line); border-radius: 999px; padding: 3px 9px; }
.sgv-site-badge .sgv-i { width: 12px; height: 12px; }
.sgv-site-badge--yours { color: var(--sgv-brand-ink); background: var(--sgv-brand-tint); border-color: #cfe0f8; }

/* The sites section. */
.sgv-sites { display: grid; gap: 14px; min-width: 0; }
.sgv-sites-lead { font-size: 13px; color: var(--sgv-ink-2); line-height: 1.55; }
.sgv-sites-hint { display: none; }
.sgv-sites-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.sgv-sites-cell { display: flex; min-width: 0; }

/* The compact card: image, allocation, name, one sentence, ≤4 chips, one
   action pinned to the foot so every card in a row ends level. */
/* The WHOLE card opens its hospital: its background delegates to the one
   real button in its foot (shared/site-guide-view.js), so the card itself is
   not a second keyboard target and text stays selectable. */
.sgv-sc { position: relative; display: flex; flex-direction: column; width: 100%; min-width: 0; overflow: hidden; cursor: pointer; background: var(--sgv-surface); border: 1px solid var(--sgv-line); border-radius: var(--sgv-r); box-shadow: var(--sgv-sh); transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease; }
.sgv-sc:hover { border-color: #c3d4ec; box-shadow: 0 6px 18px -12px rgba(23, 42, 84, .5), var(--sgv-sh); }
.sgv-sc:active { transform: translateY(1px); }
.sgv-sc:hover .sgv-sc-cta { color: var(--sgv-brand-ink); }
.sgv-sc:hover .sgv-sc-cta span:first-child { text-decoration: underline; text-underline-offset: 2px; }
/* The focus ring belongs to the real action; the card shows it too. */
.sgv-sc:has(.sgv-sc-cta:focus-visible) { border-color: var(--sgv-brand); box-shadow: 0 0 0 2px var(--sgv-brand); }
/* A credit, a link or anything else interactive is clicked for itself. */
.sgv-sc a, .sgv-sc [data-sgv-no-activate] { cursor: auto; }
.sgv-sc a { cursor: pointer; }
.sgv-sc.is-assigned { border-color: #cfe0f8; box-shadow: 0 0 0 1px #cfe0f8, var(--sgv-sh); }
.sgv-sc-media { position: relative; flex: none; height: 132px; overflow: hidden; background: linear-gradient(135deg, var(--sgv-navy-1), var(--sgv-navy-2)); }
.sgv-sc-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--sgv-accent, #7db4f0); }
.sgv-sc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.sgv-sc-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 13px 15px 15px; min-width: 0; }
.sgv-sc-name { margin: 0; font-size: 15.5px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.sgv-sc-role { margin: 0; font-size: 12.5px; color: var(--sgv-ink-2); line-height: 1.5; }
.sgv-sc-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.sgv-sc-chips li { font-size: 11.5px; line-height: 1.3; color: var(--sgv-ink-2); background: var(--sgv-line-soft); border: 1px solid var(--sgv-line); border-radius: 999px; padding: 3px 9px; max-width: 100%; overflow-wrap: anywhere; }
/* A quiet footer cue, not a second content block: a divider, the words and
   a chevron. It is still a real <button>. */
.sgv-sc-cta { display: flex; align-items: center; gap: 6px; width: calc(100% + 30px); margin: auto -15px -15px; padding: 11px 15px; border: 0; border-top: 1px solid var(--sgv-line-soft); border-radius: 0; background: none; font-size: 12.5px; font-weight: 600; color: var(--sgv-ink-2); text-align: left; }
.sgv-sc-cta .sgv-i { margin-left: auto; width: 15px; height: 15px; }
.sgv-sc-cta:hover { background: var(--sgv-line-soft); }
.sgv-sc-cta:focus-visible { outline: 2px solid var(--sgv-brand); outline-offset: -2px; }
.sgv-sc-body > .sgv-sc-chips { margin-bottom: 4px; }
/* The assigned site, drawn wide: photograph beside the words. */
.sgv-sc.is-primary { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.sgv-sc.is-primary .sgv-sc-media { height: auto; min-height: 200px; }

/* The shared cross-site note, said once. */
.sgv-sites-note { display: flex; align-items: flex-start; gap: 9px; flex-wrap: wrap; padding: 11px 13px; border-radius: var(--sgv-r-sm); background: var(--sgv-route-tint); border: 1px solid var(--sgv-route-line); color: var(--sgv-route-ink); font-size: 12.5px; line-height: 1.5; }
.sgv-sites-note > p { flex: 1 1 240px; min-width: 0; margin: 0; }
.sgv-sites-note > .sgv-i { margin-top: 2px; }

.sgv-sites-others h5 { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sgv-ink-3); margin: 4px 0 8px; }
.sgv-sites-others ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sgv-site-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 4px 12px; width: 100%; text-align: left; padding: 11px 14px; border: 1px solid var(--sgv-line); border-radius: var(--sgv-r-sm); background: var(--sgv-surface); }
.sgv-site-row:hover { border-color: #cfd8e6; }
.sgv-site-row-n { font-size: 13.5px; font-weight: 600; }
.sgv-site-row-r { grid-column: 1; grid-row: 2; font-size: 12px; color: var(--sgv-ink-3); line-height: 1.45; }
.sgv-site-row-k { grid-column: 2; grid-row: 1 / span 2; font-size: 11px; font-weight: 600; color: var(--sgv-ink-3); }
.sgv-site-row .sgv-i { grid-column: 3; grid-row: 1 / span 2; color: var(--sgv-ink-3); }

/* The site switch and site grouping (Find a place, Facilities, Help). */
.sgv-site-switch { display: flex; flex-wrap: wrap; gap: 6px; }
.sgv-site-opt.is-yours { font-weight: 600; }
.sgv-site-you { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; color: var(--sgv-brand-ink); background: var(--sgv-brand-tint); border-radius: 999px; padding: 1px 7px; }
.sgv-site-opt[aria-pressed="true"] .sgv-site-you { color: var(--sgv-brand-ink); background: #fff; }
.sgv-site-ctx { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 0; font-size: 12.5px; color: var(--sgv-ink-2); line-height: 1.5; }
.sgv-site-ctx .sgv-i { margin-top: 2px; color: var(--sgv-ink-3); }
.sgv-site-group { display: flex; flex-direction: column; gap: 22px; }
.sgv-site-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sgv-ink-2); }
.sgv-site-h .sgv-i { color: var(--sgv-ink-3); }
.sgv-site-h .sgv-site-you { text-transform: none; letter-spacing: .02em; }
.sgv-site-h--sm { margin: 8px 0 2px; font-size: 11px; }
.sgv-dest-group { display: grid; gap: 8px; }
.sgv-dest-site { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sgv-ink-3); margin-bottom: 2px; }
.sgv-dest-site .sgv-i { width: 11px; height: 11px; }
.sgv-detail-site { font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--sgv-ink-3); margin-bottom: 2px; }

/* The hospital information view: compact photo header, quick facts, then
   First day → What students do here → Getting there → note → actions. */
.sgv-dlg--site { width: min(760px, calc(100vw - 32px)); }
.sgv-sd-head { position: relative; flex: none; height: 208px; overflow: hidden; display: flex; align-items: flex-end; background: linear-gradient(135deg, var(--sgv-navy-1), var(--sgv-navy-2)); color: #fff; }
.sgv-sd-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.sgv-sd-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 20, 45, .15) 0%, rgba(8, 20, 45, .82) 100%); }
.sgv-sd-id { position: relative; z-index: 1; padding: 16px 20px; min-width: 0; display: grid; gap: 4px; justify-items: start; }
.sgv-dlg .sgv-sd-id h2 { font-size: 21px; font-weight: 600; letter-spacing: -.02em; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.sgv-dlg .sgv-sd-op { font-size: 12px; color: rgba(255, 255, 255, .82); }
.sgv-dlg .sgv-sd-role { font-size: 13px; color: rgba(255, 255, 255, .92); max-width: 60ch; line-height: 1.45; }
/* Dialog buttons inherit their colour; this one sits on a photograph, so its
   ink is stated rather than inherited from the header's white text. */
.sgv-dlg .sgv-sd-x { position: absolute; top: 12px; right: 12px; z-index: 3; color: var(--sgv-ink); background: rgba(255, 255, 255, .94); border-color: transparent; }
.sgv-sd-credit { top: auto; bottom: 10px; right: 12px; }
.sgv-sd-id { padding-right: 150px; }
.sgv-sd-b { display: grid; gap: 18px; }
.sgv-sd-ctx { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--sgv-ink-2); }
.sgv-sd-ctx .sgv-i { margin-top: 2px; color: var(--sgv-ink-3); }
.sgv-sd-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 0; }
.sgv-sd-quick > div { padding: 10px 12px; border: 1px solid var(--sgv-line); border-radius: var(--sgv-r-sm); background: var(--sgv-line-soft); min-width: 0; }
.sgv-sd-quick dt { font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--sgv-ink-3); }
.sgv-sd-quick dd { margin: 3px 0 0; font-size: 13px; font-weight: 500; color: var(--sgv-ink); overflow-wrap: anywhere; }
.sgv-sd-sect { display: grid; gap: 10px; }
.sgv-sd-sect > .sgv-st { justify-self: start; }
.sgv-dlg .sgv-sd-h { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sgv-ink-3); padding-top: 12px; border-top: 1px solid var(--sgv-line); }
.sgv-sd-rows { display: grid; gap: 2px; }
.sgv-sd-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--sgv-line-soft); }
.sgv-sd-row:last-child { border-bottom: 0; }
.sgv-sd-row-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--sgv-line-soft); color: var(--sgv-ink-2); }
.sgv-sd-row-main { display: grid; gap: 2px; min-width: 0; }
.sgv-sd-row-k { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sgv-ink-3); }
.sgv-sd-row-v { font-size: 13.5px; color: var(--sgv-ink); line-height: 1.5; }
.sgv-sd-row-m { font-size: 12px; color: var(--sgv-ink-2); line-height: 1.5; }
.sgv-sd-row > .sgv-st { margin-top: 3px; }
.sgv-sd-intro { font-size: 13.5px; color: var(--sgv-ink-2); line-height: 1.6; }
.sgv-sd-chips li { font-size: 12px; }
.sgv-sd-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 14px; border-top: 1px solid var(--sgv-line); }
.sgv-sd-foot { margin: -6px 0 0; }

/* The interactive checklist. */
.sgv-cl { display: grid; gap: 10px; margin-top: 12px; }
.sgv-cl-head { display: grid; gap: 6px; }
.sgv-cl-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sgv-cl-h { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.sgv-cl-progress { font-size: 12.5px; color: var(--sgv-ink-2); }
.sgv-cl-progress b { color: var(--sgv-ink); }
.sgv-cl-bar { height: 5px; border-radius: 999px; background: var(--sgv-line); overflow: hidden; }
.sgv-cl-bar i { display: block; height: 100%; background: var(--sgv-green-ink); border-radius: inherit; transition: width .2s ease; }
.sgv-cl-group { display: grid; gap: 4px; }
.sgv-cl-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.sgv-ck { position: relative; display: flex; align-items: flex-start; gap: 8px; }
.sgv-ck-in { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.sgv-ck label { display: flex; align-items: flex-start; gap: 11px; flex: 1; min-height: 44px; padding: 9px 8px; margin: 0 -8px; border-radius: 8px; cursor: pointer; font-size: 13.5px; color: var(--sgv-ink); line-height: 1.5; }
.sgv-ck label:hover { background: var(--sgv-line-soft); }
.sgv-ck-box { display: grid; place-items: center; flex: none; width: 22px; height: 22px; margin-top: 0; border: 2px solid #9aa9c0; border-radius: 6px; background: var(--sgv-surface); color: transparent; }
.sgv-ck-box .sgv-i { width: 14px; height: 14px; stroke-width: 3; }
.sgv-ck-in:checked + label .sgv-ck-box { background: var(--sgv-green-ink); border-color: var(--sgv-green-ink); color: #fff; }
.sgv-ck-in:checked + label .sgv-ck-t { color: var(--sgv-ink-2); }
.sgv-ck-in:focus-visible + label { outline: 2px solid var(--sgv-brand); outline-offset: 1px; }
.sgv-ck-site { flex: none; align-self: center; font-size: 10.5px; font-weight: 600; color: var(--sgv-ink-3); background: var(--sgv-line-soft); border-radius: 999px; padding: 2px 8px; }
.sgv-cl-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.sgv-cl-note { margin-left: auto; font-size: 11.5px; color: var(--sgv-ink-3); }
.sgv-cl-confirm { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--sgv-ink-2); }
.sgv-cl-info { padding: 10px 12px; border: 1px dashed var(--sgv-line); border-radius: var(--sgv-r-sm); background: var(--sgv-line-soft); font-size: 12.5px; color: var(--sgv-ink-2); }
.sgv-cl-info p { display: flex; gap: 8px; align-items: flex-start; }
.sgv-cl-info ul { margin: 6px 0 0 24px; padding: 0; }

/* Tablet: the rail has folded under; cards go wide rather than squeezing
   three narrow columns. */
@media (min-width: 769px) and (max-width: 1139px) {
  .sgv-sites-grid { grid-template-columns: minmax(0, 1fr); }
  .sgv-sites-cell .sgv-sc { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }
  .sgv-sites-cell .sgv-sc-media { height: auto; min-height: 150px; }
}
/* Phone: one snapping row with the next card peeking, inside its own
   scroller, so the page itself never scrolls sideways. */
@media (max-width: 768px) {
  .sgv-sites-hint { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; color: var(--sgv-ink-3); }
  .sgv-sites-hint .sgv-i { width: 13px; height: 13px; }
  .sgv-sites-grid { display: flex; grid-template-columns: none; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 2px 2px 8px; margin: 0 -2px; scrollbar-width: thin; }
  .sgv-sites-cell { flex: 0 0 84%; scroll-snap-align: start; }
  .sgv-sc-media { height: 120px; }
  .sgv-sc.is-primary { display: flex; }
  .sgv-sc.is-primary .sgv-sc-media { min-height: 0; height: 150px; }
  .sgv-site-row { grid-template-columns: minmax(0, 1fr) auto; }
  .sgv-site-row-k { display: none; }
  .sgv-site-row .sgv-i { grid-column: 2; }
  /* The hospital view is a near-full-height sheet. */
  .sgv-dlg--site { width: 100vw; max-height: 94vh; }
  .sgv-sd-head { height: 176px; }
  .sgv-sd-id { padding-right: 20px; padding-bottom: 34px; }
  .sgv-sd-row { grid-template-columns: 28px minmax(0, 1fr); }
  .sgv-sd-row > .sgv-st { grid-column: 2; justify-self: start; margin-top: 0; }
  .sgv-sd-b { gap: 16px; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
  .sgv-sd-actions .sgv-btn { flex: 1 1 100%; justify-content: center; }
  .sgv-plate--mosaic { min-height: 214px; }
  .sgv-cl-note { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .sgv-cl-bar i { transition: none; }
  .sgv-sc { transition: none; }
  .sgv-sc:active { transform: none; }
}
@media (forced-colors: active) {
  .sgv-sc, .sgv-site-row, .sgv-site-badge, .sgv-sd-quick > div { border: 1px solid CanvasText; }
  .sgv-sc-cta { border-top: 1px solid CanvasText; }
  .sgv-site-credit, .sgv-credits ul, .sgv-credits > summary { background: Canvas; color: CanvasText; border: 1px solid CanvasText; }
  .sgv-plate-mosaic { display: none; }
  .sgv-ck-box { border-color: CanvasText; }
  .sgv-ck-in:checked + label .sgv-ck-box { background: Highlight; border-color: Highlight; color: HighlightText; }
}

/* ------------------------------------------------------- desktop layout */
@media (min-width: 1140px) {
  .sgv-cp { grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr); align-items: start; }
  .sgv-cp--compact { grid-template-columns: minmax(0, 1fr); }
}
/* Between the drawer breakpoint and the two-column one the rail folds under
   the main column rather than squeezing it. */
@media (max-width: 1139px) {
  .sgv-cols { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .sgv-rail { position: static; }
}

/* ------------------------------------------------------------- phone */
@media (max-width: 768px) {
  .sgv { --sgv-r: 14px; }
  .sgv-plate { min-height: 160px; padding: 18px 18px 16px; border-radius: 14px; }
  .sgv-plate-side { position: static; margin-top: 12px; justify-content: flex-start; }
  .sgv-pill { font-size: 12px; padding: 7px 12px; min-height: 32px; }
  .sgv-plate-name { font-size: 22px; }
  .sgv-credit { position: static; margin-top: 10px; text-align: left; }
  .sgv-tabs-wrap { margin-top: 12px; }
  .sgv-tab { padding: 11px 12px; font-size: 13px; }
  /* The badge must not turn the strip into a scroll: it loses its padding and
     keeps only the digits, which stay legible at this size. */
  .sgv-so-badge { min-width: 0; padding: 0; border: 0; background: none; font-size: 11.5px; }
  .sgv-tab[aria-selected="true"] .sgv-so-badge,
  .sgv-so-badge.is-done { background: none; border: 0; }
  .sgv-so-card { max-width: none; padding: 16px; }
  /* No persistent rail on a phone: its modules join the main flow. */
  .sgv-cols { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sgv-rail { position: static; margin-top: 4px; }
  .sgv-card { padding: 18px 18px; }
  .sgv-main { gap: 24px; }
  .sgv-main > .sgv-drow + .sgv-drow { margin-top: -12px; }
  .sgv-drow > summary { padding: 14px 16px; }
  .sgv-drow-body { padding: 16px 16px 18px; }
  .sgv-checks { grid-template-columns: minmax(0, 1fr); }
  .sgv-llevel { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sgv-llevel-n { padding-top: 0; }
  .sgv-lnodes { grid-template-columns: minmax(0, 1fr); }
  .sgv-node { min-height: 56px; }
  .sgv-vstat > div { grid-template-columns: minmax(0, 1fr); }
  .sgv-dlg { width: 100vw; max-width: 100vw; max-height: 88vh; border-radius: 18px 18px 0 0; margin: auto 0 0; }
  /* The destination detail arrives as a bottom sheet rather than a rail. */
  .sgv-dlg--sheet { padding-bottom: env(safe-area-inset-bottom, 0px); }
  .sgv-sheet-grip { width: 40px; height: 4px; border-radius: 999px; background: #d6ddea; margin: 10px auto 2px; }
  .sgv-sheet-b { padding: 8px 18px calc(20px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; }
  .sgv-dlg-h--sheet { padding: 0 0 8px; border-bottom: 0; }
  .sgv-dlg--layout { width: 100vw; }
}

/* The desktop rail sits below the sticky tab strip; the strip itself sits
   below the shell topbar. Both offsets are the shell's, not the guide's. */
@media (min-width: 769px) {
  #sdc-root .sgv { --sgv-sticky-top: 0px; }
}

@media (prefers-reduced-motion: reduce) {
  .sgv-disc[open] > summary .sgv-i,
  .sgv-drow[open] .sgv-drow-c { transform: none; }
}

@media (forced-colors: active) {
  .sgv-st, .sgv-dest, .sgv-drow, .sgv-btn, .sgv-cat, .sgv-railcard, .sgv-card,
  .sgv-so-card, .sgv-so-badge { border: 1px solid CanvasText; }
  .sgv-so-bar { border: 1px solid CanvasText; }
  .sgv-dest[aria-expanded="true"], .sgv-cat[aria-pressed="true"] { outline: 2px solid Highlight; }
  .sgv-plate-scrim, .sgv-plate-photo { display: none; }
  .sgv-plate { background: Canvas; color: CanvasText; border: 1px solid CanvasText; }
  .sgv-plate-name, .sgv-plate-sub, .sgv-kicker, .sgv-credit, .sgv-pill { color: CanvasText; }
}

/* West Middlesex hospital identity: scoped to this guide and its dialogs. */
.sgv[data-sgv-theme="west-middlesex"] {
  --sgv-accent: #6fcfc0;
  --sgv-brand: #1f6fd6; --sgv-brand-ink: #0b4fb3; --sgv-brand-tint: #eaf2fd;
  --sgv-ink: #1b2740; --sgv-ink-2: #5d6b84; --sgv-ink-3: #8a97ad;
  --sgv-line: #e9edf4; --sgv-line-soft: #f2f5fa;
}
.sgv[data-sgv-theme="west-middlesex"] .sgv-drow-ic {
  color: var(--sgv-ink-2); background: var(--sgv-line-soft);
}
.sgv[data-sgv-theme="west-middlesex"] .sgv-cp-b--annexe { fill: #c6bddb; background: #c6bddb; }

/* Accepted placement group host slot. */
.sgv-host { display: grid; gap: 10px; }
.sgv-host-sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: var(--sgv-ink-2); }
.sgv-host-sum b { font-size: 15px; font-weight: 600; color: var(--sgv-ink); }
.sgv-host-note { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--sgv-ink-2); line-height: 1.5; padding: 10px 12px; border: 1px dashed var(--sgv-line); border-radius: var(--sgv-r-sm); background: var(--sgv-line-soft); }
.sgv-host-note .sgv-i { flex: none; margin-top: 2px; color: var(--sgv-ink-3); }
.sgv-host-skel { height: 44px; border-radius: var(--sgv-r-sm); background: linear-gradient(90deg, var(--sgv-line-soft), var(--sgv-line), var(--sgv-line-soft)); background-size: 200% 100%; animation: sgv-skel 1.2s linear infinite; }
@keyframes sgv-skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sgv-host-skel { animation: none; } }
/* The door while its guide is still being asked for, or after the request
   failed: the guide's own plate, then skeleton tabs and panels (or the honest
   failure). Sized like the guide so the guide replaces it in place. */
.sgv-pending-tabs { margin-top: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--sgv-line); }
.sgv-pending-tabs .sgv-host-skel { display: block; height: 34px; max-width: 520px; }
.sgv-pending-panels { display: grid; gap: 12px; padding-top: 18px; }
.sgv-pending-panels .sgv-host-skel { display: block; height: 180px; border-radius: var(--sgv-r); }
.sgv-pending-panels .sgv-host-skel + .sgv-host-skel { height: 120px; }
.sgv-pending-msg { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--sgv-line); border-radius: var(--sgv-r); background: var(--sgv-surface); color: var(--sgv-ink-2); font-size: 14px; line-height: 1.55; }
.sgv-pending-msg p { margin: 0 0 12px; }
.sgv-pending-msg b { color: var(--sgv-ink); font-weight: 600; }
.sgv-pending-retry { font: inherit; font-size: 13.5px; font-weight: 600; color: var(--sgv-ink); background: var(--sgv-surface); border: 1px solid var(--sgv-line); border-radius: 999px; padding: 8px 16px; min-height: 36px; cursor: pointer; }

/* ------------------------------------------------ a door with no guide
   (2026-10-18). The same plate, columns, sections, rows and rail cards as a
   guide; only the pieces a guide never needed are added here — the student's
   own supervisor actions, private notes and a few small chips. Tokens only:
   nothing below introduces a new colour, radius or type size. */
.sgv-door-cols { margin-top: 22px; }
.sgv-door-note > div { min-width: 0; }
.sgv-door-note p + p { margin-top: 6px; }
.sgv-door-note .sgv-btn-row { margin-top: 10px; }
.sgv-door-tag { flex: none; align-self: center; white-space: nowrap; font-size: 11.5px; font-weight: 500; color: var(--sgv-brand-ink); background: var(--sgv-brand-tint); border-radius: 999px; padding: 3px 9px; }
.sgv-door-person { display: flex; align-items: center; gap: 12px; margin: 4px 0 2px; min-width: 0; }
.sgv-door-av { display: grid; place-items: center; width: 36px; height: 36px; flex: none; overflow: hidden; border-radius: 50%; background: var(--sgv-brand-tint); color: var(--sgv-brand-ink); font-size: 13px; font-weight: 600; }
.sgv-door-av img { width: 100%; height: 100%; object-fit: cover; }
.sgv-door-ovl { display: inline-flex; flex: none; }
.sgv-door-ovl span { display: grid; place-items: center; width: 28px; height: 28px; margin-left: -6px; border: 2px solid var(--sgv-surface); border-radius: 50%; background: var(--sgv-navy-1); color: #fff; font-size: 11px; font-weight: 600; }
.sgv-door-ovl span:first-child { margin-left: 0; }
.sgv-door .sgv-body.is-empty { color: var(--sgv-ink-3); }
.sgv-door-notes { display: block; width: 100%; min-height: 92px; padding: 10px 12px; border: 1px solid var(--sgv-line); border-radius: var(--sgv-r-sm); background: var(--sgv-surface); color: var(--sgv-ink); font: inherit; resize: vertical; }
.sgv-door-notes:focus-visible { outline: 2px solid var(--sgv-brand); outline-offset: 1px; }
.sgv-door .sgv-btn[disabled] { opacity: .5; cursor: not-allowed; }
.sgv-door-disclosure > summary { cursor: pointer; font-size: 15px; font-weight: 600; color: var(--sgv-ink); }
.sgv-door-disclosure[open] > summary { margin-bottom: 12px; }
@media (max-width: 768px) {
  .sgv-door-cols { margin-top: 16px; }
}
.sgv-pending-retry:focus-visible { outline: 2px solid #1f6fd6; outline-offset: 2px; }
.sgv-people { display: flex; flex-wrap: wrap; gap: 8px; }
.sgv-person { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px 5px 5px; border: 1px solid var(--sgv-line); border-radius: 999px; background: var(--sgv-surface); font-size: 13px; color: var(--sgv-ink); }
.sgv-av { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; font-size: 11px; font-weight: 600; color: #fff; background: var(--sgv-navy-1); }
.sgv-person--you .sgv-av { background: var(--sgv-brand); }
.sgv-person--link { padding: 0; }
.sgv-person-a { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px 5px 5px; border-radius: 999px; color: inherit; text-decoration: none; }
.sgv-person--link:hover { border-color: var(--sgv-brand); }
.sgv-person--link:hover .sgv-person-a > span:last-child { text-decoration: underline; text-underline-offset: 2px; }
.sgv-person-a:focus-visible { outline: 2px solid var(--sgv-brand); outline-offset: 1px; }

.sds-next-card { position: relative; }
/* ============================================================
   Site info landing cards — the photograph credit. It sits
   beside the card's button (never inside it), top-right over
   the photograph, in the same words as the guide hero's credit.
   ============================================================ */
.site-card-credit {
  position: absolute; top: 12px; right: 14px; z-index: 3; margin: 0;
  max-width: calc(100% - 28px); box-sizing: border-box;
  font-size: 10.5px; font-weight: 500; line-height: 1.35; color: #fff;
  background: rgba(9, 16, 32, 0.52); border-radius: 999px; padding: 3px 10px;
  backdrop-filter: blur(2px); overflow-wrap: anywhere;
}
.site-card-credit a {
  color: inherit; text-decoration: underline dotted; text-underline-offset: 2px;
  display: inline-block; padding: 2px 0;
}
.site-card-credit a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 3px; }
@media (max-width: 768px) {
  .site-card-credit { top: 10px; right: 12px; max-width: calc(100% - 24px); }
}
@media (forced-colors: active) {
  .site-card-credit { background: Canvas; color: CanvasText; border: 1px solid CanvasText; }
}

/* Credit is a sibling of the card link. */
[data-site-media-card] { position: relative; }

/* The interactive checklist. */
.sgv-cl { display: grid; gap: 10px; margin-top: 12px; }
.sgv-cl-head { display: grid; gap: 6px; }
.sgv-cl-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sgv-cl-h { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.sgv-cl-progress { font-size: 12.5px; color: var(--sgv-ink-2); }
.sgv-cl-progress b { color: var(--sgv-ink); }
.sgv-cl-bar { height: 5px; border-radius: 999px; background: var(--sgv-line); overflow: hidden; }
.sgv-cl-bar i { display: block; height: 100%; background: var(--sgv-green-ink); border-radius: inherit; transition: width .2s ease; }
.sgv-cl-group { display: grid; gap: 4px; }
.sgv-cl-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.sgv-ck { position: relative; display: flex; align-items: flex-start; gap: 8px; }
.sgv-ck-in { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.sgv-ck label { display: flex; align-items: flex-start; gap: 11px; flex: 1; min-height: 44px; padding: 9px 8px; margin: 0 -8px; border-radius: 8px; cursor: pointer; font-size: 13.5px; color: var(--sgv-ink); line-height: 1.5; }
.sgv-ck label:hover { background: var(--sgv-line-soft); }
.sgv-ck-box { display: grid; place-items: center; flex: none; width: 22px; height: 22px; margin-top: 0; border: 2px solid #9aa9c0; border-radius: 6px; background: var(--sgv-surface); color: transparent; }
.sgv-ck-box .sgv-i { width: 14px; height: 14px; stroke-width: 3; }
.sgv-ck-in:checked + label .sgv-ck-box { background: var(--sgv-green-ink); border-color: var(--sgv-green-ink); color: #fff; }
.sgv-ck-in:checked + label .sgv-ck-t { color: var(--sgv-ink-2); }
.sgv-ck-in:focus-visible + label { outline: 2px solid var(--sgv-brand); outline-offset: 1px; }
.sgv-ck-site { flex: none; align-self: center; font-size: 10.5px; font-weight: 600; color: var(--sgv-ink-3); background: var(--sgv-line-soft); border-radius: 999px; padding: 2px 8px; }
.sgv-cl-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.sgv-cl-note { margin-left: auto; font-size: 11.5px; color: var(--sgv-ink-3); }
.sgv-cl-confirm { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--sgv-ink-2); }
.sgv-cl-info { padding: 10px 12px; border: 1px dashed var(--sgv-line); border-radius: var(--sgv-r-sm); background: var(--sgv-line-soft); font-size: 12.5px; color: var(--sgv-ink-2); }
.sgv-cl-info p { display: flex; gap: 8px; align-items: flex-start; }
.sgv-cl-info ul { margin: 6px 0 0 24px; padding: 0; }

.sgv-ck-in:disabled + label { cursor: default; opacity: .65; }
/* ============================================================
   Site info landing cards — a MULTI-SITE placement with no
   assigned hospital: each hospital's registered photograph in an
   equal panel, thin dividers, under the card's own scrim. A panel
   whose photograph fails keeps the plate; the others stay.
   ============================================================ */
.site-mosaic {
  position: absolute; inset: 0; z-index: -2;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px;
  background: rgba(255, 255, 255, 0.28);
}
.site-mosaic[data-site-mosaic="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Each panel is its own stacking context, so a card's shared photo rule
   (#sd-root .sds-media img { z-index: -2 }) cannot push a panel's photograph
   behind the panel's own plate. */
.site-mosaic-panel { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(150deg, #123c86, #081f47); }
.site-mosaic-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.pl-hcover .site-mosaic { z-index: 0; }
.pl-hcover .pl-hscrim, .pl-hcover .pl-hinfo { z-index: 1; }
.pl-hcover .pl-hscrim { position: absolute; }
/* Several credits, one compact control: a disclosure in the credit's slot. */
.site-card-credits { padding: 0; background: none; backdrop-filter: none; }
.site-card-credits > summary {
  list-style: none; cursor: pointer; display: inline-block;
  background: rgba(9, 16, 32, 0.52); border-radius: 999px; padding: 3px 10px;
}
.site-card-credits > summary::-webkit-details-marker { display: none; }
.site-card-credits > summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.site-card-credits ul {
  margin: 6px 0 0; padding: 8px 10px; list-style: none; display: grid; gap: 4px;
  background: rgba(9, 16, 32, 0.78); border-radius: 10px; text-align: left;
}
@media (forced-colors: active) {
  .site-mosaic { display: none; }
  .site-card-credits > summary, .site-card-credits ul { background: Canvas; color: CanvasText; border: 1px solid CanvasText; }
}

/* ------------------------------------------------- host: sign-off progress
   The one personal thing in a guide. It is fed by the host app, not by the
   guide payload, so nothing here names a site, a specialty or a year. */
.sgv-so-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; padding: 1px 6px; border-radius: 999px; background: var(--sgv-line-soft); border: 1px solid var(--sgv-line); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--sgv-ink-2); }
.sgv-tab[aria-selected="true"] .sgv-so-badge { background: var(--sgv-brand-tint); border-color: #cfe0f8; color: var(--sgv-brand-ink); }
.sgv-so-badge.is-done { background: var(--sgv-green-tint); border-color: var(--sgv-green-line); color: var(--sgv-green-ink); }

/* The last thing in its tab, so it keeps the guide footer at a distance: a card
   flush against the footer's provisional-content disclaimer read as if the
   disclaimer described the student's own numbers. */
.sgv-so { margin-bottom: 24px; }
.sgv-so-card { display: block; padding: 18px 20px; border: 1px solid var(--sgv-line); border-radius: var(--sgv-r); background: var(--sgv-surface); box-shadow: var(--sgv-sh); max-width: 520px; }
a.sgv-so-card--link { text-decoration: none; color: inherit; }
a.sgv-so-card--link:hover { border-color: #cfd8e6; background: var(--sgv-line-soft); }
a.sgv-so-card--link:focus-visible { outline: 2px solid var(--sgv-brand); outline-offset: 2px; }
.sgv-so-count { font-size: 19px; font-weight: 600; letter-spacing: -.02em; color: var(--sgv-ink); font-variant-numeric: tabular-nums; }
.sgv-so-note { margin-top: 8px; font-size: 13px; color: var(--sgv-ink-2); }
.sgv-so-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--sgv-brand-ink); }
.sgv-so-go .sgv-i { width: 14px; height: 14px; }

/* A real <progress>. The colour is a second cue, never the only one: the
   count above it and the remainder below it both say the same thing in words. */
.sgv-so-bar { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 8px; margin-top: 12px; border: 0; border-radius: 999px; background: var(--sgv-line-soft); color: var(--sgv-brand); }
.sgv-so-bar::-webkit-progress-bar { background: var(--sgv-line-soft); border-radius: 999px; }
.sgv-so-bar::-webkit-progress-value { background: var(--sgv-brand); border-radius: 999px; }
.sgv-so-bar::-moz-progress-bar { background: var(--sgv-brand); border-radius: 999px; }
.sgv-so-bar.is-done { color: var(--sgv-green-ink); }
.sgv-so-bar.is-done::-webkit-progress-value { background: var(--sgv-green-ink); }
.sgv-so-bar.is-done::-moz-progress-bar { background: var(--sgv-green-ink); }

/* Loading: shape only, and deliberately no number. */
.sgv-so-skel { display: block; border-radius: 6px; background: var(--sgv-line-soft); }
.sgv-so-skel--a { width: 44%; height: 19px; }
.sgv-so-skel--b { width: 100%; height: 8px; margin-top: 12px; border-radius: 999px; }
.sgv-so-skel--c { width: 30%; height: 13px; margin-top: 12px; }

@media (max-width: 768px) {
.sgv-so-badge { min-width: 0; padding: 0; border: 0; background: none; font-size: 11.5px; }
.sgv-tab[aria-selected="true"] .sgv-so-badge, .sgv-so-badge.is-done { background: none; border: 0; }
.sgv-so-card { max-width: none; padding: 16px; }
}
@media (forced-colors: active) { .sgv-so-card, .sgv-so-badge, .sgv-so-bar { border: 1px solid CanvasText; } }

/* The hospital layer supplies these tokens for every placement at that site. */
.sgv[data-sgv-theme] .sgv-drow-ic { color: var(--sgv-theme-ink); background: var(--sgv-theme-tint); }
@media (forced-colors: active) {
  .sgv[data-sgv-theme] .sgv-drow-ic { color: CanvasText; background: Canvas; border: 1px solid CanvasText; }
}

/* Current student shell: its fixed phone title bar occupies 44 px. */
@media (max-width: 768px) {
  html.pf-th-on body.app-dashboard .sgv { --sgv-sticky-top: calc(env(safe-area-inset-top, 0px) + 44px); }
  .sgv-tabs-aside { width: 44px; height: 44px; justify-content: center; }
  .sgv-tabs-aside span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

@media (forced-colors: active) {
  .sgv-cp-b, .sgv-cp-site { fill: Canvas; stroke: CanvasText; }
  .sgv-cp-b.is-hl { fill: Canvas; stroke: Highlight; stroke-width: 4; }
  .sgv-cp-b[role="button"]:focus-visible { outline: 3px solid Highlight; }
  .sgv-cp-sw { background: Canvas !important; border-color: CanvasText !important; }
}

/* Generic, unordered placement component summaries. */
.sgv-components { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.sgv-component { border:1px solid var(--sgv-line,#dbe4e9); border-radius:16px; padding:20px; background:var(--sgv-theme-tint,#f3f7fa); min-width:0; }
.sgv-component h4 { font-size:18px; margin:0 0 10px; }
.sgv-component p { line-height:1.65; margin:14px 0; }
.sgv-component-chips { list-style:none; display:flex; flex-wrap:wrap; gap:7px; padding:0; margin:0; }
.sgv-component-chips li { padding:5px 10px; border:1px solid var(--sgv-line,#cbd8df); border-radius:20px; font-size:12px; }
@media(max-width:600px) { .sgv-components { grid-template-columns:1fr; } }
@media(forced-colors:active) { .sgv-component,.sgv-component-chips li { border:1px solid CanvasText; } }

.sgv-component-group { margin:28px 0 12px; padding-top:12px; border-top:1px solid var(--sgv-line); font-size:18px; color:var(--sgv-theme-ink,var(--sgv-ink)); }

/* Optional photographic presentation. The original media file is retained;
   focal points come from the public media record on every surface. */
[data-site-photo-treatment="cover"] {
  object-fit: cover !important; object-position: var(--site-photo-desktop, 50% 50%) !important;
  transform: none !important; filter: none !important;
}
.sgv-plate:has([data-site-photo-treatment="cover"]) { min-height: 270px; padding-bottom: 42px; }
.sgv-plate:has([data-site-photo-treatment="cover"]) .sgv-plate-scrim,
#sd-root .sds-media:has([data-site-photo-treatment="cover"]) .sds-scrim,
.pl-hcover:has([data-site-photo-treatment="cover"]) .pl-hscrim {
  background: linear-gradient(180deg, rgba(8,20,38,.22), rgba(8,20,38,.04) 35%, rgba(8,20,38,.84)),
    linear-gradient(90deg, rgba(8,20,38,.28), transparent 70%);
}
.sgv-plate:has([data-site-photo-treatment="cover"]) .sgv-plate-mono { display: none; }
.sgv-plate:has([data-site-photo-treatment="cover"]) .sgv-pill { background: rgba(8,20,38,.72); }
.sgv-plate:has([data-site-photo-treatment="cover"]) .sgv-kicker { text-shadow: 0 1px 4px #081426; }
.sgv-plate:has([data-site-photo-treatment="cover"]) .sgv-credit { color: #fff; }
@media (max-width: 1024px) {
  [data-site-photo-treatment="cover"] { object-position: var(--site-photo-tablet, 50% 50%) !important; }
}
@media (max-width: 600px) {
  [data-site-photo-treatment="cover"] { object-position: var(--site-photo-phone, 50% 50%) !important; }
  .sgv-plate:has([data-site-photo-treatment="cover"]) { min-height: 310px; padding-bottom: 18px; }
  .sgv-plate:has([data-site-photo-treatment="cover"]) .sgv-credit { position: relative; inset: auto; margin-top: 16px; align-self: flex-start; }
}
@media (forced-colors: active) {
  [data-site-photo-treatment="cover"],
  .sgv-plate:has([data-site-photo-treatment="cover"]) .sgv-plate-scrim,
  #sd-root .sds-media:has([data-site-photo-treatment="cover"]) .sds-scrim,
  .pl-hcover:has([data-site-photo-treatment="cover"]) .pl-hscrim { display: none; }
  .sgv-plate:has([data-site-photo-treatment="cover"]) .sgv-pill { background: ButtonFace; color: ButtonText; }
  .sgv-plate:has([data-site-photo-treatment="cover"]) .sgv-credit { color: CanvasText; }
}

/* Opt-in building explorer: geometry, legend and selected panel share data
   tokens. Destination evidence remains textual and independent of colour. */
[data-building-tone="sage"] { --building-fill: #d5e8df; --building-border: #708d81; }
[data-building-tone="lilac"] { --building-fill: #e3dcef; --building-border: #91809f; }
[data-building-tone="sand"] { --building-fill: #eee0c5; --building-border: #a28c64; }
[data-building-tone="neutral"] { --building-fill: #e4e7eb; --building-border: #8b96a5; }
[data-building-tone="blue"] { --building-fill:#d6e5f2; --building-border:#718ca6; }
[data-building-tone="rose"] { --building-fill:#efdce0; --building-border:#a77882; }
[data-building-tone="mint"] { --building-fill:#d7edeb; --building-border:#6d9995; }
[data-building-tone="slate"] { --building-fill:#d3dce4; --building-border:#687f94; }
[data-building-tone="clay"] { --building-fill:#ead7c9; --building-border:#a1836d; }
.sgv-cp--interactive { gap: 22px; }
.sgv-cp--interactive .sgv-cp-site { fill: #eceff2; stroke: #d5dbe2; }
.sgv-cp--interactive .sgv-cp-svg { display: block; max-height: none; }
.sgv-cp--interactive [data-sgv-building].sgv-cp-b {
  fill: var(--building-fill); stroke: var(--building-border); stroke-width: 2; vector-effect: non-scaling-stroke;
}
.sgv-building-swatch { flex: 0 0 16px; width: 16px; height: 16px; border-radius: 4px; background: var(--building-fill); border: 2px solid var(--building-border); }
.sgv-building-key { display: grid; gap: 4px; margin: 12px 0; padding: 0; list-style: none; }
.sgv-building-key button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; text-align: left; padding: 8px; border: 1px solid transparent; border-radius: 10px; background: transparent; font-size: 13px; color: var(--sgv-ink); }
.sgv-building-key button > span:not(.sgv-building-selected) { flex: 1; }
.sgv-building-selected { font-size: 11px; font-weight: 600; color: #164f94; }
.sgv-building-key button:hover { background: #f0f4f8; border-color: #6b7d93; }
.sgv-cp--interactive .sgv-cp-b[data-sgv-building]:hover { stroke: #334d69; stroke-width: 3; }
.sgv-cp--interactive .sgv-cp-b[data-sgv-building]:focus-visible { stroke: #243f5c; stroke-width: 4; outline: 2px solid #243f5c; outline-offset: 3px; }
.sgv-building-key [aria-pressed="true"] { background: #edf4ff; border-color: #2866b3; }
.sgv-cp--interactive .sgv-cp-b[data-sgv-building][aria-pressed="true"] { fill: #d4e6ff; stroke: #195baa; stroke-width: 4; }
.sgv-building-key [aria-pressed="true"] .sgv-building-swatch { background: #d4e6ff; border-color: #195baa; }
.sgv-building-label { min-height: 42px; display: flex; align-items: center; margin: 0 0 8px; padding: 8px 12px; border: 1px solid var(--sgv-line); border-radius: 10px; background: #f4f7fb; font-size: 12px; color: var(--sgv-ink-2); overflow-wrap: anywhere; }
.sgv-cp-letter { font: 14px sans-serif; fill: var(--sgv-ink); }
.sgv-building-map, .sgv-cp--interactive .sgv-cp-side { min-width: 0; }
.sgv-building-panel { border: 1px solid var(--sgv-line); border-radius: 14px; padding: 16px; background: #fff; overflow-wrap: anywhere; }
.sgv-building-heading > span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #164f94; }
.sgv-building-heading h3 { margin: 5px 0 8px; font-size: 19px; line-height: 1.3; }
.sgv-building-panel h4 { margin: 16px 0 8px; font-size: 13px; }
.sgv-building-panel .sgv-body { margin: 10px 0; }
.sgv-building-places { list-style: none; padding: 0; display: grid; gap: 8px; }
.sgv-building-places button { display: grid; gap: 5px; width: 100%; min-height: 44px; padding: 12px; text-align: left; border: 1px solid var(--sgv-line); border-radius: 10px; background: #f7f9fc; font-size: 13px; color: var(--sgv-ink); }
.sgv-building-places button > span { font-size: 12px; color: var(--sgv-ink-2); }
.sgv-building-places [aria-pressed="true"] { border-color: #2866b3; background: #edf4ff; }
.sgv-building-verdict > p { font-size: 12px; color: var(--sgv-ink-2); }
.sgv-building-verdict .sgv-vstat > div { grid-template-columns: minmax(0, 1fr); }
.sgv-building-verdict .sgv-btn { margin-top: 12px; }
@media (min-width: 1025px) { .sgv-cp--interactive .sgv-cp-svg { max-height: 350px; } }
@media (max-width: 1024px) { .sgv-cp--interactive { grid-template-columns: minmax(0, 1fr); } }
@media (forced-colors: active) {
  .sgv-cp--interactive .sgv-cp-site,
  .sgv-cp--interactive .sgv-cp-b[data-sgv-building] { fill: Canvas; stroke: CanvasText; }
  .sgv-cp--interactive .sgv-cp-b[data-sgv-building][aria-pressed="true"] { fill: Canvas; stroke: Highlight; }
  .sgv-cp--interactive .sgv-cp-b[data-sgv-building]:focus-visible { outline-color: Highlight; }
  .sgv-building-key [aria-pressed="true"], .sgv-building-places [aria-pressed="true"] { border-color: Highlight; outline: 2px solid Highlight; }
  .sgv-building-key .sgv-building-swatch { background: Canvas; border-color: CanvasText; }
  .sgv-building-selected, .sgv-building-heading > span { color: CanvasText; }
}

/* Preserve the accepted live Northwick and shared West Middlesex spacing.
   New hospital templates retain their reviewed roomier presentation.
   Blocks/levels use the shared accessible destination-card contract. */
:where(.sgv[data-sgv-theme="west-middlesex"], .sgv[data-sgv-guide="northwick-park-paediatrics-year5-provisional-v0"]) .sgv-plate { min-height: 176px; padding-top: 20px; padding-right: 24px; padding-bottom: 18px; padding-left: 24px; }
:where(.sgv[data-sgv-theme="west-middlesex"], .sgv[data-sgv-guide="northwick-park-paediatrics-year5-provisional-v0"]) .sgv-plate-sub { margin-top: 6px; }
:where(.sgv[data-sgv-theme="west-middlesex"], .sgv[data-sgv-guide="northwick-park-paediatrics-year5-provisional-v0"]) .sgv-plate-chips { margin-top: 12px; }
:where(.sgv[data-sgv-theme="west-middlesex"], .sgv[data-sgv-guide="northwick-park-paediatrics-year5-provisional-v0"]) .sgv-plate-side { top: 18px; right: 20px; }
:where(.sgv[data-sgv-theme="west-middlesex"], .sgv[data-sgv-guide="northwick-park-paediatrics-year5-provisional-v0"]) .sgv-so { display: revert; flex-direction: revert; }
:where(.sgv[data-sgv-theme="west-middlesex"], .sgv[data-sgv-guide="northwick-park-paediatrics-year5-provisional-v0"]) .sgv-so-go { line-height: revert; margin-left: revert; }
:where(.sgv[data-sgv-theme="west-middlesex"], .sgv[data-sgv-guide="northwick-park-paediatrics-year5-provisional-v0"]) .sgv-so-bar { position: revert; overflow-x: revert; overflow-y: revert; }
:where(.sgv[data-sgv-theme="west-middlesex"], .sgv[data-sgv-guide="northwick-park-paediatrics-year5-provisional-v0"]) .sgv-panels { padding-top: 18px; min-height: revert; }
:where(.sgv[data-sgv-theme="west-middlesex"], .sgv[data-sgv-guide="northwick-park-paediatrics-year5-provisional-v0"]) .sgv-main { row-gap: 22px; column-gap: 22px; }
:where(.sgv[data-sgv-theme="west-middlesex"], .sgv[data-sgv-guide="northwick-park-paediatrics-year5-provisional-v0"]) .sgv-rail { row-gap: 14px; column-gap: 14px; }
:where(.sgv[data-sgv-theme="west-middlesex"], .sgv[data-sgv-guide="northwick-park-paediatrics-year5-provisional-v0"]) .sgv-sect-h { padding-bottom: 6px; margin-bottom: 12px; }
:where(.sgv[data-sgv-theme="west-middlesex"], .sgv[data-sgv-guide="northwick-park-paediatrics-year5-provisional-v0"]) .sgv-sect-sub { margin-bottom: 10px; line-height: revert; margin-top: revert; margin-right: revert; margin-left: revert; max-width: revert; }
:where(.sgv[data-sgv-theme="west-middlesex"], .sgv[data-sgv-guide="northwick-park-paediatrics-year5-provisional-v0"]) .sgv-block-h { margin-top: 14px; margin-bottom: 6px; }
:where(.sgv[data-sgv-theme="west-middlesex"], .sgv[data-sgv-guide="northwick-park-paediatrics-year5-provisional-v0"]) .sgv-card { padding-top: 18px; padding-right: 20px; padding-bottom: 18px; padding-left: 20px; }
:where(.sgv[data-sgv-theme="west-middlesex"], .sgv[data-sgv-guide="northwick-park-paediatrics-year5-provisional-v0"]) .sgv-card-head { margin-bottom: 12px; }
:where(.sgv[data-sgv-theme="west-middlesex"], .sgv[data-sgv-guide="northwick-park-paediatrics-year5-provisional-v0"]) .sgv-body { line-height: 1.6; max-width: revert; }
:where(.sgv[data-sgv-theme="west-middlesex"], .sgv[data-sgv-guide="northwick-park-paediatrics-year5-provisional-v0"]) .sgv-row { row-gap: 12px; column-gap: 12px; padding-top: 11px; padding-bottom: 11px; }
:where(.sgv[data-sgv-theme="west-middlesex"], .sgv[data-sgv-guide="northwick-park-paediatrics-year5-provisional-v0"]) .sgv-row-k { margin-bottom: 2px; }
:where(.sgv[data-sgv-theme="west-middlesex"], .sgv[data-sgv-guide="northwick-park-paediatrics-year5-provisional-v0"]) .sgv-row-m { margin-top: 3px; line-height: 1.55; max-width: revert; }
:where(.sgv[data-sgv-theme="west-middlesex"], .sgv[data-sgv-guide="northwick-park-paediatrics-year5-provisional-v0"]) .sgv-items { row-gap: 12px; column-gap: 12px; }
:where(.sgv[data-sgv-theme="west-middlesex"], .sgv[data-sgv-guide="northwick-park-paediatrics-year5-provisional-v0"]) .sgv-item { row-gap: 10px; column-gap: 10px; }
:where(.sgv[data-sgv-theme="west-middlesex"], .sgv[data-sgv-guide="northwick-park-paediatrics-year5-provisional-v0"]) .sgv-item-b { line-height: 1.6; margin-top: 2px; max-width: revert; }
:where(.sgv[data-sgv-theme="west-middlesex"], .sgv[data-sgv-guide="northwick-park-paediatrics-year5-provisional-v0"]) .sgv-callout { padding-top: 11px; padding-right: 14px; padding-bottom: 11px; padding-left: 14px; }
:where(.sgv[data-sgv-theme="west-middlesex"], .sgv[data-sgv-guide="northwick-park-paediatrics-year5-provisional-v0"]) .sgv-drow { margin-bottom: 8px; }
:where(.sgv[data-sgv-theme="west-middlesex"], .sgv[data-sgv-guide="northwick-park-paediatrics-year5-provisional-v0"]) .sgv-drow > summary { row-gap: 12px; column-gap: 12px; padding-top: 13px; padding-right: 16px; padding-bottom: 13px; padding-left: 16px; min-height: 56px; }
:where(.sgv[data-sgv-theme="west-middlesex"], .sgv[data-sgv-guide="northwick-park-paediatrics-year5-provisional-v0"]) .sgv-drow-s { margin-top: 2px; line-height: 1.5; }
:where(.sgv[data-sgv-theme="west-middlesex"], .sgv[data-sgv-guide="northwick-park-paediatrics-year5-provisional-v0"]) .sgv-drow-body { padding-right: 16px; padding-bottom: 16px; padding-left: 16px; margin-top: 2px; padding-top: 14px; }
:where(.sgv[data-sgv-theme="west-middlesex"], .sgv[data-sgv-guide="northwick-park-paediatrics-year5-provisional-v0"]) .sgv-railcard { padding-top: 15px; padding-right: 16px; padding-bottom: 15px; padding-left: 16px; }
:where(.sgv[data-sgv-theme="west-middlesex"], .sgv[data-sgv-guide="northwick-park-paediatrics-year5-provisional-v0"]) .sgv-railcard-s { margin-top: 2px; margin-bottom: 8px; line-height: revert; }
:where(.sgv[data-sgv-theme="west-middlesex"], .sgv[data-sgv-guide="northwick-park-paediatrics-year5-provisional-v0"]) .sgv-contact { row-gap: 10px; column-gap: 10px; padding-top: 9px; padding-bottom: 9px; }
:where(.sgv[data-sgv-theme="west-middlesex"], .sgv[data-sgv-guide="northwick-park-paediatrics-year5-provisional-v0"]) .sgv-contact-n { margin-top: 1px; line-height: revert; }
@media (max-width: 768px) {
  :where(.sgv[data-sgv-theme="west-middlesex"], .sgv[data-sgv-guide="northwick-park-paediatrics-year5-provisional-v0"]) .sgv-plate { min-height: 150px; padding-top: 16px; padding-right: 16px; padding-bottom: 14px; padding-left: 16px; }
}
@media (max-width: 768px) {
  :where(.sgv[data-sgv-theme="west-middlesex"], .sgv[data-sgv-guide="northwick-park-paediatrics-year5-provisional-v0"]) .sgv-card { padding-top: 15px; padding-right: 16px; padding-bottom: 15px; padding-left: 16px; }
}
:where(.sgv[data-sgv-theme="west-middlesex"], .sgv[data-sgv-guide="northwick-park-paediatrics-year5-provisional-v0"]) .sgv-tab-h + .sgv-tab-intro { margin-top: 0; line-height: revert; }

/* ------------------------------------------------------------------
   Site info SI1 "Clinical Field Guide": the door (approved 19 Oct 2026).
   Every rule is scoped to .si1 (the re-composed door, see app.js) or to the
   two door layers while SI1 is on (html[data-si1]). Tokens are Today
   B3.2's and Navigation N1.3's; nothing here introduces a new colour family.
   ------------------------------------------------------------------ */

.si1 {
  --si1-ink: #16233f;
  --si1-text: #1b2740;
  --si1-slate: #5d6b84;
  --si1-mist: #8a97ad; /* glyphs and rules only: 2.95:1 */
  --si1-faint: #66748b; /* tertiary text: 4.73:1 on white */
  --si1-rule: #dfe4ec;
  --si1-rule-soft: #edf0f5;
  --si1-strong: #16233f;
  --si1-blue: #1f6fd6;
  --si1-blue-ink: #1559b0;
  --si1-tint: #eaf2fd;
  --si1-open-bg: #f6f8fb;
  /* evidence inks: the shipped guide's own (all ≥ 6:1 on white) */
  --si1-ok: var(--sgv-green-ink, #0f6b3a);
  --si1-warn: var(--sgv-amber-ink, #7a4d05);
  --si1-check: var(--sgv-check-ink, #40506b);
  --si1-route: var(--sgv-route-ink, #0b6a76);
  --si1-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --si1-gutter: 16px;
  /* the shipped tokens the content blocks read, quietened */
  --sgv-ink: #1b2740;
  --sgv-ink-2: #5d6b84;
  --sgv-ink-3: #66748b;
  --sgv-line: #dfe4ec;
  --sgv-line-soft: #f2f5f9;
  --sgv-r: 8px;
  --sgv-r-sm: 8px;
  --sgv-sh: none;
  container: si1 / inline-size;
  color: var(--si1-text);
  --si1-font: var(--font-application-ui, "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-family: var(--si1-font);
  font-size: 15.5px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}
/* a themed guide (e.g. West Middlesex) redeclares the shipped tokens on
   .sgv[data-sgv-theme]; SI1's text inks win there too */
.si1.sgv, .si1.sgv[data-sgv-theme] { --sgv-ink-3: #66748b; --sgv-line: #dfe4ec; --sgv-line-soft: #f2f5f9; }
.si1 ::selection { background: var(--si1-tint); color: #081f47; }
.si1 :where(a, button, summary, input, [tabindex]):focus-visible,
html[data-si1] :is(.sdc-back, .pd-back):focus-visible {
  outline: 2px solid var(--si1-blue);
  outline-offset: 3px;
}
.si1 a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.si1 .si1-i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* -------------------------------------------------------- page head */
/* The door is a page inside Site info, and its opening names the place: on
   desktop the shell's page head ("Site info" and its subtitle) stays for
   assistive technology only, as it already does on phones. */
@media (min-width: 769px) {
  html[data-si1] body:has(#section-placement-details.is-active) header.pf-pagehead {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
  }
}

/* The renderer lands a chapter "at once" (behavior: auto), but the shell's
   style.css makes every auto scroll smooth, even under reduced motion (F15).
   On the door the landing is instant, as the renderer intends, and the
   chapter's own fade is the one authored moment. */
html[data-si1]:has(#section-placement-details.is-active) { scroll-behavior: auto; }

/* ---------------------------------------------------------- back line */
html[data-si1] #sdc-root,
html[data-si1] #pd-mobile { --si1-blue: #1f6fd6; }
/* The geometry holds before SI1 relabels the control: a chapter change
   re-renders it, and the shipped landing scroll measures that first frame. */
html[data-si1] :is(#sdc-root > .sdc-back, #pd-mobile > .pd-back) {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  margin: 0 0 10px; padding: 6px 8px 6px 0; min-height: 36px;
  border: 0; background: none; border-radius: 6px;
  font: 600 13.5px/1.2 var(--font-application-ui, "IBM Plex Sans", sans-serif);
  color: var(--si1-slate, #5d6b84); cursor: pointer;
}
html[data-si1] .si1-back:hover { color: #16233f; }
html[data-si1] .si1-back .si1-i { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ----------------------------------------------------------- opening */
.si1-open { position: relative; margin: 0; outline: none; }
.si1-photo { margin: 0; }
.si1-photo-frame {
  position: relative; overflow: hidden; border-radius: 4px; background: #e9edf3;
  aspect-ratio: 16 / 7.4;
}
.si1-photo-frame :is(img, picture) { display: block; width: 100%; height: 100%; }
.si1-photo-frame img {
  position: static; inset: auto; z-index: auto;
  width: 100%; height: 100%; object-fit: cover; filter: none;
}
.si1-photo-frame .sgv-plate-mosaic { position: static; inset: auto; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; height: 100%; z-index: auto; }
.si1-photo-frame .sgv-mosaic-panel { position: relative; overflow: hidden; }
.si1-photo-frame .sgv-mosaic-panel img { position: absolute; inset: 0; }
.si1-credit { margin-top: 6px; font-size: 12px; line-height: 1.4; color: var(--si1-faint); text-align: right; }
.si1-credit .sgv-credit { position: static; margin: 0; padding: 0; background: none; color: inherit; font-size: inherit; text-shadow: none; text-align: inherit; }
.si1-credit a { color: var(--si1-slate); display: inline-block; padding: 5px 0; margin: -5px 0; }
.si1-credit .sgv-credits { position: static; text-align: left; }

.si1-id { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 12px; }
/* No licensed photograph: a text-led nameplate, set in type alone. */
.si1-open--text { padding-top: 6px; }
.si1-open--text .si1-id { margin-top: 0; }
.si1-open--text .si1-name { font-size: 28px; }
.si1-id-main { min-width: 0; }
.si1 .si1-name {
  margin: 0; font-size: 25px; font-weight: 600; line-height: 1.12; letter-spacing: -0.02em;
  color: var(--si1-ink); text-shadow: none; max-width: none; overflow-wrap: anywhere; text-wrap: balance;
}
.si1-sub { margin: 4px 0 0; font-size: 15px; color: var(--si1-slate); overflow-wrap: anywhere; }
.si1-when { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 15px; color: var(--si1-text); }
.si1-when b { font-weight: 600; color: var(--si1-blue-ink); }
.si1-when[data-si1-phase="past"] b { color: var(--si1-slate); }
.si1-when .si1-when-flag { color: var(--si1-warn); font-weight: 600; }
.si1-note { margin: 8px 0 0; font-size: 13.5px; color: var(--si1-slate); max-width: 62ch; }

.si1-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.si1-act {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--si1-rule); border-radius: 8px; background: #fff; color: var(--si1-ink);
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color 150ms, border-color 150ms;
}
.si1-act:hover { background: var(--si1-open-bg); border-color: #cfd6e2; }
.si1-act:active { background: #eef1f6; }
.si1-act .si1-i { color: var(--si1-blue-ink); }
.si1-act .si1-i.si1-ext { width: 13px; height: 13px; margin-left: -3px; color: var(--si1-faint); }

.si1-prov {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "standing facts report";
  align-items: center; gap: 2px 14px;
  margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--si1-rule);
  font-size: 13px; color: var(--si1-slate);
}
.si1-prov > .si1-prov-btn { grid-area: standing; }
.si1-prov > .si1-prov-facts { grid-area: facts; margin: 0; min-width: 0; }
.si1-prov > .si1-report { grid-area: report; justify-self: end; }
.si1-prov:not(:has(.si1-prov-btn)) { grid-template-areas: "facts facts report"; }
.si1 .si1-prov-btn, .si1 .si1-report {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0;
  border: 0; background: none; font: inherit; cursor: pointer;
}
.si1 .si1-prov-btn { color: var(--si1-warn); font-weight: 600; }
.si1 .si1-prov-btn:hover span:first-of-type { text-decoration: underline; text-underline-offset: 3px; }
/* a historical guide's label: the standing's place, not a control */
.si1 .si1-prov-label { cursor: default; }
.si1 .si1-prov-label:hover span:first-of-type { text-decoration: none; }
.si1 .si1-report { color: var(--si1-slate); font-weight: 500; }
.si1 .si1-report:hover { color: var(--si1-ink); }
.si1-report .si1-i, .si1-prov-btn .si1-i { width: 15px; height: 15px; }

/* --------------------------------------------------- body and contents */
/* Narrow: one column. The contents block is a direct child of a BLOCK body,
   so it can stick for the whole length of the guide (a grid row of its own
   height could not). */
.si1-body { display: block; margin-top: 6px; }
.si1-contents {
  min-width: 0; position: sticky; top: var(--sgv-sticky-top, 0px); z-index: 30;
  margin: 0 calc(var(--si1-gutter) * -1); padding: 0 var(--si1-gutter);
  background: #fff; border-bottom: 1px solid var(--si1-rule);
}
.si1-contents-h { display: none; }
.si1-strip { position: static; }
.si1-strip [data-sgv-tabs] {
  position: relative; display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; scroll-padding-inline: 16px;
}
.si1-strip [data-sgv-tabs]::-webkit-scrollbar { display: none; }
.si1-strip [role="tab"]:focus-visible { outline-offset: -3px; }
/* the fade goes once the strip is scrolled to its end */
.si1-contents.is-end::after { opacity: 0; }
.si1-contents::after { transition: opacity 150ms; }
/* narrow: the strip says it scrolls */
.si1-contents::after {
  content: ""; position: absolute; top: 0; bottom: 1px; right: 0; width: 28px; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 85%);
}
.si1-strip [role="tab"] {
  position: relative; flex: none; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px;
  min-height: 48px; justify-content: center; padding: 10px 0; margin: 0;
  border: 0; border-radius: 0; background: none; box-shadow: none;
  font: 500 14.5px/1.2 var(--si1-font); color: var(--si1-slate); text-align: left; cursor: pointer; white-space: nowrap;
}
.si1-strip [role="tab"] > .sgv-i { display: none; }
.si1-strip [role="tab"] > span:first-of-type { font: inherit; }
.si1-strip [role="tab"]:hover { color: var(--si1-ink); }
.si1-strip [role="tab"][aria-selected="true"] { color: var(--si1-ink); font-weight: 600; }
.si1-strip [role="tab"]::after { content: none; }
.si1-strip .sgv-so-badge { margin-left: 0; font-size: 12px; font-weight: 600; color: var(--si1-slate); background: none; border: 0; padding: 0; min-width: 0; }
.si1-tab-d { display: none; }
.si1-ind {
  position: absolute; left: 0; top: 0; pointer-events: none; background: var(--si1-blue);
  transition: transform 220ms var(--si1-ease), width 220ms var(--si1-ease), height 220ms var(--si1-ease);
}
.si1-ind.is-h { bottom: 0; top: auto; height: 2px; }
.si1-ind.is-v { width: 2px; }
.si1-ind.is-still { transition: none; }

/* ------------------------------------------------------ panels, columns */
.si1 .sgv-panels { padding-top: 22px; }
.si1 .sgv-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; align-items: start; }
.si1 .sgv-main { min-width: 0; display: flex; flex-direction: column; gap: 34px; max-width: 70ch; }
.si1 .sgv-panel.is-active.si1-entering { animation: si1-in 170ms var(--si1-ease) both; }
.si1 .sgv-drow-t > .si1-mark-all { margin-top: 2px; }
@keyframes si1-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* chapter opener: one ink rule, the chapter's name */
.si1 .si1-ch-h, .si1 .sgv-tab-h {
  display: block; margin: 0; padding-top: 12px; border-top: 1px solid var(--si1-strong);
}
.si1 .si1-ch-h h2, .si1 .sgv-tab-h h2 { margin: 0; font-size: 23px; font-weight: 600; letter-spacing: -0.018em; line-height: 1.15; color: var(--si1-ink); }
.si1 .sgv-tab-h + .sgv-tab-intro { margin-top: -24px; }
.si1 .sgv-tab-intro {
  display: block; margin: 0; font-size: 15px; color: var(--si1-slate); max-width: 66ch;
}
.si1 .sgv-tab-intro > .sgv-st { display: inline-flex; margin-right: 8px; vertical-align: 1px; }
.si1 .sgv-tab-intro > span:not(.sgv-st) { display: inline; }
.si1 .sgv-tab-intro > .sgv-quiet { display: flex; margin-top: 4px; }
.si1 .si1-return-line { margin: 0 0 -18px; }
.si1 .si1-return, .si1 .si1-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0;
  border: 0; background: none; font: 600 14px/1.3 var(--si1-font); color: var(--si1-blue-ink); cursor: pointer; text-align: left;
}
.si1 .si1-return:hover, .si1 .si1-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.si1-return .si1-i, .si1-link .si1-i { width: 15px; height: 15px; }

/* sections: rules, not boxes */
.si1 :is(.sgv-card, .sgv-card--feature, .sgv-sect) {
  margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; scroll-margin-top: 96px;
}
/* the first chapter's own cards are named by the chapter; elsewhere a card's
   eyebrow ("Injury to you") is part of what it says */
.si1 :is(.si1-route, .si1-sheet) .sgv-eyebrow { display: none; }
.si1 .sgv-eyebrow { margin: 0 0 2px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--si1-slate); }
.si1 .sgv-card-head { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: flex-start; gap: 4px 12px; margin: 0 0 12px; padding: 0 0 8px; border-bottom: 1px solid var(--si1-rule); }
.si1 .sgv-sect-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 12px; padding: 0 0 8px; border-bottom: 1px solid var(--si1-rule); }
.si1 :is(.sgv-card-head, .sgv-sect-h) h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.25; color: var(--si1-ink); }
.si1 .sgv-sect-sub { margin: -4px 0 12px; font-size: 14px; color: var(--si1-slate); max-width: 66ch; }
.si1 .sgv-body, .si1 .sgv-item-b, .si1 .sgv-row-v { color: var(--si1-text); }

/* evidence marks: words with a glyph, never pills */
.si1 .sgv-st {
  display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 0; border: 0; border-radius: 0;
  background: none; font-size: 12px; font-weight: 600; letter-spacing: 0.005em; line-height: 1.3; color: var(--si1-check);
}
.si1 .sgv-st .sgv-i { width: 13px; height: 13px; }
.si1 .sgv-st--confirmed { color: var(--si1-ok); }
.si1 .sgv-st--provisional { color: var(--si1-warn); }
.si1 .sgv-st--check_current, .si1 .sgv-st--check { color: var(--si1-check); }
.si1 .sgv-st--route_not_walked, .si1 .sgv-st--route { color: var(--si1-route); }
/* a route mark that only repeats the list's "No routes walked yet" */
.si1 [data-sgv-results]:has(.sgv-results-h .sgv-st--route_not_walked) .sgv-dest .sgv-st--route_not_walked { display: none; }

/* --------------------------------------------- the first-morning route */
.si1 .si1-route .sgv-steps { display: block; margin: 4px 0 0; padding: 0; list-style: none; }
.si1 .si1-route .sgv-step { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 14px; padding: 0 0 20px; }
.si1 .si1-route .sgv-step::before {
  content: ""; position: absolute; left: 14px; top: 30px; bottom: 2px; width: 2px; background: var(--si1-rule);
}
.si1 .si1-route .sgv-step:last-child { padding-bottom: 4px; }
.si1 .si1-route .sgv-step:last-child::before { display: none; }
.si1 .si1-route .sgv-step-n {
  position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; margin: 0;
  border: 2px solid var(--si1-ink); border-radius: 50%; background: #fff; color: var(--si1-ink);
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.si1 .si1-route .sgv-step:last-child .sgv-step-n { background: var(--si1-ink); color: #fff; }
.si1 .si1-route .sgv-step-main { padding-top: 3px; }
.si1 .si1-route .sgv-step-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.si1 .si1-route .sgv-step-h b { font-size: 16px; font-weight: 600; color: var(--si1-ink); }
.si1 .si1-route .sgv-item-b { margin: 3px 0 0; font-size: 15px; line-height: 1.55; }
.si1 .si1-route .sgv-step-alt { margin-top: 8px; padding: 8px 0 0; border: 0; border-top: 1px dashed var(--si1-rule); border-radius: 0; background: none; font-size: 14px; }
.si1 .si1-route .sgv-step [data-sgv-dest] {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-top: 4px; padding: 0;
  border: 0; border-radius: 0; background: none; box-shadow: none;
  font: 600 14px/1.3 var(--si1-font); color: var(--si1-blue-ink); cursor: pointer;
}
.si1 .si1-route .sgv-step [data-sgv-dest]:hover { text-decoration: underline; text-underline-offset: 4px; }
.si1 .si1-route .sgv-step [data-sgv-dest] .sgv-i { width: 15px; height: 15px; }
.si1 .si1-route > .sgv-btn-row { margin-top: 2px; }

/* a day one published as rows or items: a field sheet */
.si1 .si1-sheet :is(.sgv-rows, .sgv-items) { border-top: 0; }

/* ------------------------------------------------- rows, items, prose */
.si1 .sgv-items, .si1 .sgv-rows { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; border: 0; background: none; }
.si1 :is(.sgv-item, .sgv-row) {
  display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 11px 0;
  border: 0; border-top: 1px solid var(--si1-rule-soft); border-radius: 0; background: none;
}
.si1 :is(.sgv-items, .sgv-rows) > :first-child { border-top: 0; padding-top: 2px; }
.si1 .sgv-item-ic, .si1 .sgv-row-ic { display: none; }
.si1 :is(.sgv-item-main, .sgv-row-main) { min-width: 0; flex: 1; }
.si1 .sgv-item-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.si1 .sgv-item-h b { font-size: 15px; font-weight: 600; color: var(--si1-ink); }
.si1 .sgv-item-b { margin: 2px 0 0; font-size: 15px; line-height: 1.55; }
.si1 .sgv-row-k { margin: 0 0 1px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--si1-slate); text-transform: none; }
.si1 .sgv-row-v { font-size: 15px; font-weight: 500; line-height: 1.5; }
.si1 .sgv-row-m { margin-top: 2px; font-size: 13.5px; color: var(--si1-slate); }
@container si1 (min-width: 620px) {
  .si1 .sgv-rows--pairs .sgv-row-main, .si1 .si1-sheet .sgv-row-main, .si1 .si1-travel .sgv-item-main {
    display: grid; grid-template-columns: 148px minmax(0, 1fr); column-gap: 18px;
  }
  .si1 .si1-travel .sgv-item-h { grid-column: 1; }
  .si1 .si1-travel .sgv-item-b { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
  .si1 .si1-sheet .sgv-row-k, .si1 .sgv-rows--pairs .sgv-row-k { grid-column: 1; padding-top: 1px; }
  .si1 .si1-sheet :is(.sgv-row-v, .sgv-row-m), .si1 .sgv-rows--pairs :is(.sgv-row-v, .sgv-row-m) { grid-column: 2; }
}
.si1 .si1-travel .sgv-item-h b { font-weight: 600; }
.si1 .sgv-nrow { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 0 14px; padding: 12px 0; border-top: 1px solid var(--si1-rule-soft); }
.si1 .sgv-nrow:first-of-type { border-top: 0; padding-top: 2px; }
.si1 .sgv-num {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--si1-ink);
  background: #fff; color: var(--si1-ink); font-size: 12.5px; font-weight: 600;
}
.si1 .sgv-prose p, .si1 .sgv-body { max-width: 66ch; }

.si1 .sgv-callout {
  display: flex; gap: 12px; margin: 0; padding: 12px 14px; border: 1px solid var(--si1-rule); border-radius: 8px;
  background: var(--si1-open-bg); color: var(--si1-text); box-shadow: none;
}
.si1 .sgv-callout--warning, .si1 .sgv-callout--clinical { background: #fdf6ea; border-color: #f0dfbd; }
.si1 .sgv-callout .sgv-i { flex: none; margin-top: 3px; color: var(--si1-slate); }
.si1 .sgv-callout--warning .sgv-i, .si1 .sgv-callout--clinical .sgv-i { color: var(--si1-warn); }

.si1 .sgv-btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.si1 :is(.sgv-btn, .sgv-pill) {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px;
  border: 1px solid var(--si1-rule); border-radius: 8px; background: #fff; box-shadow: none;
  font: 600 13.5px/1.2 var(--si1-font); color: var(--si1-ink); text-decoration: none; cursor: pointer;
}
.si1 :is(.sgv-btn, .sgv-pill):hover { background: var(--si1-open-bg); }
.si1 .sgv-btn--primary { background: var(--si1-ink); border-color: var(--si1-ink); color: #fff; }
.si1 .sgv-btn--primary:hover { background: #081f47; }
.si1 .sgv-quiet { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0; border: 0; background: none; font: 500 13.5px/1.3 var(--si1-font); color: var(--si1-slate); cursor: pointer; }
.si1 .sgv-quiet:hover { color: var(--si1-ink); }
.si1 .sgv-guide-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; padding-top: 10px; border-top: 1px solid var(--si1-rule); font-size: 13.5px; color: var(--si1-slate); }

/* disclosures: a quiet ruled list */
.si1 .sgv-drow { margin: 0; border: 0; border-top: 1px solid var(--si1-rule); border-radius: 0; background: none; box-shadow: none; }
.si1 .sgv-main > .sgv-drow + .sgv-drow { margin-top: -34px; }
.si1 .sgv-main > .sgv-drow:has(+ :not(.sgv-drow)) { border-bottom: 1px solid var(--si1-rule); }
.si1 .sgv-drow > summary {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 2px; cursor: pointer; list-style: none;
}
.si1 .sgv-drow > summary::-webkit-details-marker { display: none; }
.si1 .sgv-drow > summary:hover .sgv-drow-n { color: var(--si1-blue-ink); }
.si1 .sgv-drow-ic { display: none; }
.si1 .sgv-drow-t { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.si1 .sgv-drow-n { font-size: 16px; font-weight: 600; color: var(--si1-ink); letter-spacing: -0.01em; }
.si1 .sgv-drow-s { font-size: 13.5px; color: var(--si1-slate); }
.si1 .sgv-drow-side { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--si1-faint); }
.si1 .sgv-drow-body { padding: 0 2px 18px; border: 0; background: none; }
.si1 .sgv-drow[open] > summary .sgv-drow-c, .si1 .sgv-drow[open] > summary .sgv-i:last-child { transform: rotate(180deg); }
.si1 .si1-travel { border-top: 0; }
.si1 .si1-travel > summary { pointer-events: none; min-height: 0; padding: 0 0 8px; margin-bottom: 4px; border-bottom: 1px solid var(--si1-rule); }
.si1 .si1-travel > summary .sgv-drow-side { display: none; }
.si1 .si1-travel > summary .sgv-drow-n { font-size: 17px; }
.si1 .si1-travel > summary .sgv-drow-t { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
/* "This week": in the margin when there is one, else at the chapter's top */
.si1 .si1-week--margin { display: none; }
.si1 .si1-week--inline { padding-top: 0; border-top: 0; }
@container si1 (min-width: 1040px) {
  .si1 .si1-week--margin { display: block; }
  .si1 .si1-week--inline { display: none; }
}
.si1 .si1-travel > .sgv-drow-body { padding-bottom: 0; }
.si1 .sgv-main > .si1-travel:has(+ :not(.sgv-drow)) { border-bottom: 0; }
.si1 .sgv-main > .si1-travel + .sgv-drow { margin-top: 0; }

/* jump list inside a long chapter */
.si1 .sgv-jump { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; border: 0; background: none; }
.si1 .sgv-jump button { min-height: 32px; padding: 0; border: 0; background: none; font: 500 13.5px/1.3 var(--si1-font); color: var(--si1-blue-ink); cursor: pointer; }
.si1 .sgv-jump button:hover { text-decoration: underline; text-underline-offset: 3px; }
.si1 .sgv-jump .is-tool { color: var(--si1-slate); margin-left: auto; }

/* checklist */
.si1 .sgv-cl { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.si1 .sgv-cl-head { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; }
.si1 .sgv-cl-progress { margin: 0; font-size: 13.5px; color: var(--si1-slate); }
.si1 .sgv-cl-progress b { color: var(--si1-ink); }
.si1 .sgv-cl-bar { flex: 1; max-width: 180px; height: 3px; border-radius: 2px; background: var(--si1-rule-soft); overflow: hidden; }
.si1 .sgv-cl-bar i { display: block; height: 100%; background: var(--si1-ok); border-radius: inherit; transition: width 200ms var(--si1-ease); }
.si1 .sgv-cl-list { margin: 0; padding: 0; list-style: none; }
.si1 .sgv-ck { margin: 0; padding: 0; border: 0; border-top: 1px solid var(--si1-rule-soft); background: none; }
.si1 .sgv-ck:first-child { border-top: 0; }
.si1 .sgv-ck label { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 10px 0; cursor: pointer; }
.si1 .sgv-ck-box { flex: none; width: 20px; height: 20px; margin-top: 1px; border: 2px solid var(--si1-faint); border-radius: 5px; background: #fff; }
.si1 .sgv-ck-in:checked + label .sgv-ck-box { background: var(--si1-ok); border-color: var(--si1-ok); }
.si1 .sgv-ck-in:focus-visible + label .sgv-ck-box { outline: 2px solid var(--si1-blue); outline-offset: 2px; }
.si1 .sgv-ck-t { font-size: 15px; color: var(--si1-text); }
.si1 .sgv-ck-in:checked + label .sgv-ck-t { color: var(--si1-slate); text-decoration: line-through; text-decoration-color: #b3bccb; }
.si1 .sgv-cl-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--si1-rule-soft); }
.si1 .sgv-cl-note { font-size: 12.5px; color: var(--si1-faint); }

/* quick places in the first chapter */
.si1 .si1-place-list { margin: 0; padding: 0; list-style: none; columns: 1; }
.si1 .si1-place-list li { break-inside: avoid; border-top: 1px solid var(--si1-rule-soft); }
.si1 .si1-place-list li:first-child { border-top: 0; }
@container si1 (min-width: 620px) {
  .si1 .si1-place-list { columns: 2; column-gap: 28px; }
  .si1 .si1-place-list li:nth-child(2) { border-top: 0; }
}
.si1 .si1-place {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 0;
  border: 0; border-radius: 0; background: none; box-shadow: none;
  font: 500 15px/1.3 var(--si1-font); color: var(--si1-ink); text-align: left; cursor: pointer;
}
.si1 .si1-place .sgv-i { width: 16px; height: 16px; color: var(--si1-slate); flex: none; }
.si1 .si1-place:hover { color: var(--si1-blue-ink); }
.si1 .si1-place[aria-pressed="true"] { color: var(--si1-blue-ink); font-weight: 600; }
.si1 .si1-place-go { margin-left: auto; color: var(--si1-mist); display: inline-flex; }
.si1 .si1-place-go .si1-i { width: 15px; height: 15px; }
.si1 .si1-places-more { margin: 8px 0 0; }
.si1 .si1-places-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 6px; }

/* the full explorer (Find a place) */
.si1 .sgv-explorer { display: flex; flex-direction: column; gap: 12px; }
.si1 .sgv-search { position: relative; }
.si1 .sgv-search input {
  width: 100%; min-height: 44px; padding: 0 40px 0 42px; border: 1px solid #cfd6e2; border-radius: 8px;
  background: #fff; font: 400 15px/1.3 var(--si1-font); color: var(--si1-ink); box-shadow: none;
}
.si1 .sgv-search input:focus { outline: 2px solid var(--si1-blue); outline-offset: 0; border-color: transparent; }
.si1 .sgv-cats, .si1 .sgv-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.si1 .sgv-quick { align-items: center; padding: 0; border: 0; background: none; }
.si1 .sgv-quick > b { width: 100%; font-size: 12.5px; font-weight: 600; color: var(--si1-slate); letter-spacing: 0.01em; text-transform: none; }
.si1 .sgv-cat {
  min-height: 34px; padding: 0 12px; border: 1px solid var(--si1-rule); border-radius: 8px; background: #fff;
  font: 500 13.5px/1.2 var(--si1-font); color: var(--si1-text); cursor: pointer;
}
.si1 .sgv-cat[aria-pressed="true"] { background: var(--si1-ink); border-color: var(--si1-ink); color: #fff; }
.si1 .sgv-results-h { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding-bottom: 6px; border-bottom: 1px solid var(--si1-rule); }
.si1 .sgv-count { margin: 0; font-size: 13.5px; color: var(--si1-slate); }
.si1 .sgv-dests { display: flex; flex-direction: column; gap: 0; }
.si1 .sgv-dest-group { margin: 14px 0 2px; font-size: 12.5px; font-weight: 600; color: var(--si1-slate); }
.si1 .sgv-dest {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; margin: 0; padding: 12px 2px;
  border: 0; border-bottom: 1px solid var(--si1-rule-soft); border-radius: 0; background: none; box-shadow: none;
  text-align: left; font: inherit; color: inherit; cursor: pointer;
  transition: background-color 150ms;
}
.si1 .sgv-dest:hover { background: var(--si1-open-bg); }
.si1 .sgv-dest-ic { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; background: var(--si1-open-bg); color: var(--si1-slate); }
.si1 .sgv-dest-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.si1 .sgv-dest-n { font-size: 15.5px; font-weight: 600; color: var(--si1-ink); }
.si1 .sgv-dest-l { font-size: 13.5px; color: var(--si1-text); }
.si1 .sgv-dest-p { font-size: 13.5px; color: var(--si1-slate); }
.si1 .sgv-dest-s { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 3px; }
.si1 .sgv-dest-chev { flex: none; align-self: center; color: var(--si1-mist); }
.si1 .sgv-explorer-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }

/* margin notes (the shipped rail) */
.si1 .sgv-rail { position: static; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.si1 .sgv-railcard {
  margin: 0; padding: 10px 0 0; border: 0; border-top: 1px solid var(--si1-rule); border-radius: 0; background: none; box-shadow: none;
}
.si1 .sgv-railcard-h { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--si1-ink); letter-spacing: 0; }
.si1 .sgv-railcard-s, .si1 .sgv-rail-note { font-size: 13px; color: var(--si1-slate); margin: 2px 0 8px; }
.si1 .sgv-railcard .sgv-body { font-size: 14px; color: var(--si1-text); }
.si1 .sgv-rail-links { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.si1 .sgv-rail-link, .si1 .sgv-row-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0;
  border: 0; background: none; font-size: 14px; font-weight: 600; color: var(--si1-blue-ink); text-decoration: none;
}
.si1 .sgv-rail-link:hover, .si1 .sgv-row-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.si1 .sgv-rail-link .sgv-i { color: var(--si1-blue-ink); width: 15px; height: 15px; }
.si1 .si1-week-list { margin: 4px 0 0; padding: 0; list-style: none; }
.si1 .si1-week-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 10px; padding: 7px 0; border-top: 1px solid var(--si1-rule-soft); }
.si1 .si1-week-list li:first-child { border-top: 0; }
.si1 .si1-week-list b { grid-row: 1 / span 2; font-size: 12.5px; font-weight: 600; color: var(--si1-slate); padding-top: 1px; }
.si1-week-t { font-size: 14px; font-weight: 600; color: var(--si1-ink); }
.si1-week-m { grid-column: 2; font-size: 13px; color: var(--si1-slate); }

/* contacts, people, sign-offs */
.si1 .sgv-contacts { display: flex; flex-direction: column; gap: 0; }
.si1 .sgv-contact { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border: 0; border-top: 1px solid var(--si1-rule-soft); background: none; border-radius: 0; }
.si1 .sgv-contact:first-child { border-top: 0; }
/* a contact is its role (the label) and an optional note (the caveat) */
.si1 .sgv-contact-r { font-size: 14px; font-weight: 600; color: var(--si1-ink); }
.si1 .sgv-contact-n { font-size: 13px; font-weight: 400; color: var(--si1-slate); }
.si1 .sgv-rail .sgv-contact { flex-direction: column; gap: 2px; }
.si1 .sgv-rail .sgv-contact :is(.sgv-contact-main, .sgv-contact-r) { width: 100%; }
.si1 .sgv-rail .sgv-contact :is(small, .sgv-row-m, p) { font-weight: 400; font-size: 13px; color: var(--si1-slate); }
.si1 .sgv-rail .sgv-tel { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: 15px; }
.si1 .sgv-tel { font-weight: 600; color: var(--si1-blue-ink); font-variant-numeric: tabular-nums; }
.si1 .sgv-people { gap: 0; }
.si1 .sgv-person { border: 0; border-top: 1px solid var(--si1-rule-soft); border-radius: 0; background: none; padding: 10px 0; }
.si1 .sgv-so-card { border: 1px solid var(--si1-rule); border-radius: 8px; background: #fff; box-shadow: none; max-width: 520px; }
.si1 .sgv-so-card--link:hover { border-color: #c9d2e0; background: var(--si1-open-bg); }
.si1 .sgv-so-bar { accent-color: var(--si1-ok); }
.si1 .sgv-host-note { display: flex; gap: 8px; align-items: flex-start; padding: 10px 0; border: 0; background: none; color: var(--si1-slate); font-size: 14px; }
.si1 .sgv-tag, .si1 .sgv-door-tag, .si1 .sgv-req {
  display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 4px;
  border: 1px solid var(--si1-rule); background: #fff; font-size: 12px; font-weight: 600; color: var(--si1-slate);
}
.si1 .sgv-table-wrap { border: 1px solid var(--si1-rule); border-radius: 8px; overflow-x: auto; }
.si1 .sgv-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.si1 .sgv-table :is(th, td) { padding: 9px 12px; border-bottom: 1px solid var(--si1-rule-soft); text-align: left; vertical-align: top; }
.si1 .sgv-table th { font-weight: 600; color: var(--si1-ink); background: var(--si1-open-bg); }

/* the way on, and the guide's contents at the end of the first chapter */
.si1 .si1-next { margin: 0; }
.si1 .si1-next-btn {
  display: grid; gap: 2px; width: 100%; padding: 14px 0 0; border: 0; border-top: 1px solid var(--si1-strong);
  border-radius: 0; background: none; text-align: left; font: inherit; cursor: pointer;
}
/* one line, "Next: <chapter> →" — no label above the title */
.si1 .si1-next-k { font-weight: 500; color: var(--si1-slate); }
.si1 .si1-next-t { display: inline-flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 600; color: var(--si1-ink); letter-spacing: -0.012em; }
.si1 .si1-next-t .si1-i { color: var(--si1-blue-ink); transition: transform 180ms var(--si1-ease); }
.si1 .si1-next-btn:hover .si1-next-t { color: var(--si1-blue-ink); }
.si1 .si1-next-btn:hover .si1-next-t .si1-i { transform: translateX(3px); }
.si1 .si1-next-d { font-size: 13.5px; color: var(--si1-slate); }
.si1 .si1-toc h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; color: var(--si1-ink); padding-bottom: 8px; border-bottom: 1px solid var(--si1-rule); }
.si1 .si1-toc ul { margin: 0; padding: 0; list-style: none; }
.si1 .si1-toc li { border-bottom: 1px solid var(--si1-rule-soft); }
.si1 .si1-toc-btn {
  display: grid; gap: 1px; width: 100%; min-height: 52px; padding: 10px 0; border: 0; background: none;
  text-align: left; font: inherit; cursor: pointer;
}
.si1 .si1-toc-btn b { font-size: 15.5px; font-weight: 600; color: var(--si1-ink); }
.si1 .si1-toc-btn span { font-size: 13px; color: var(--si1-slate); }
.si1 .si1-toc-btn:hover b { color: var(--si1-blue-ink); }

.si1-colophon { margin-top: 36px; padding-top: 10px; border-top: 1px solid var(--si1-rule); display: flex; flex-direction: column; gap: 2px; }
.si1-colophon .sgv-ver { margin: 0; font-size: 12px; color: var(--si1-faint); text-align: left; }

/* ---------------------------------------------------- the no-guide door */
.si1.sgv-door { display: block; }
.si1 .sgv-door-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; margin-top: 26px; align-items: start; }
.si1 .si1-statement {
  display: flex; gap: 10px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
  font-size: 15.5px; color: var(--si1-text); max-width: 66ch;
}
.si1 .si1-statement > .sgv-i { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--si1-slate); }
.si1 .si1-statement p { margin: 0 0 6px; }
.si1 .si1-statement--lead { padding-top: 12px; border-top: 1px solid var(--si1-strong); max-width: none; }
.si1 .si1-statement > div { max-width: 66ch; }
.si1 .si1-statement .sgv-btn-row { margin-top: 8px; }
.si1 .sgv-door-person { display: flex; align-items: center; gap: 12px; }
.si1 .sgv-door-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #eef2f8; color: var(--si1-ink); font-weight: 600; font-size: 14px; overflow: hidden; }
.si1 .sgv-door-ovl { display: inline-flex; }
.si1 .sgv-door-ovl span { width: 30px; height: 30px; margin-left: -6px; border-radius: 50%; border: 2px solid #fff; background: #eef2f8; color: var(--si1-ink); display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.si1 .sgv-door-ovl span:first-child { margin-left: 0; }
.si1 .sgv-door-notes { width: 100%; min-height: 96px; padding: 10px 12px; border: 1px solid #cfd6e2; border-radius: 8px; font: 400 15px/1.5 var(--si1-font); color: var(--si1-ink); }
.si1 .sgv-door-disclosure { border: 0; border-top: 1px solid var(--si1-rule); padding: 0; background: none; border-radius: 0; box-shadow: none; }
.si1 .sgv-door-disclosure > summary { min-height: 52px; display: flex; align-items: center; font-size: 16px; font-weight: 600; color: var(--si1-ink); cursor: pointer; }

/* ------------------------------------------- loading, failure, nothing */
.si1-skel { display: block; border-radius: 4px; background: linear-gradient(90deg, #eef1f6 0%, #f6f8fb 40%, #eef1f6 80%); background-size: 240% 100%; animation: si1-shimmer 1.4s linear infinite; }
@keyframes si1-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.si1-skel--act { height: 44px; border-radius: 8px; min-width: 104px; }
.si1-skel--line { height: 14px; width: min(420px, 70%); }
.si1-skel--toc { height: 18px; width: 70%; margin: 14px 0; }
.si1-skel--rule { height: 1px; width: 100%; margin-bottom: 14px; background: var(--si1-strong); animation: none; }
.si1-skel--h { height: 24px; width: 44%; margin-bottom: 22px; }
.si1-skel--stop { height: 52px; width: 92%; margin-bottom: 14px; }
.si1-prov--skel { border-top: 1px solid var(--si1-rule); }
.si1-body--skel .si1-contents { display: none; }
.si1.sgv-pending .sgv-pending-msg, .si1 .sgv-pending-msg {
  margin-top: 22px; padding: 14px 0 0; border: 0; border-top: 1px solid var(--si1-strong); border-radius: 0; background: none; box-shadow: none;
  font-size: 15.5px; color: var(--si1-text); max-width: 66ch; text-align: left;
}
.si1 .sgv-pending-msg p { margin: 0 0 12px; }
.si1 .sgv-pending-retry {
  min-height: 44px; padding: 0 16px; border: 1px solid var(--si1-ink); border-radius: 8px; background: var(--si1-ink); color: #fff;
  font: 600 14px/1 var(--si1-font); cursor: pointer;
}
.si1 .sgv-pending-retry:hover { background: #081f47; }
.si1[data-si1-door="no-placement"] { padding-top: 4px; }
.si1[data-si1-door="no-placement"] .sgv-plate { display: none; }
.si1[data-si1-door="no-placement"] .sgv-pending-msg { margin-top: 6px; }

/* ------------------------------------------------- refinement pass (R) */
/* the folded route mark says what it covers */
.si1 .si1-mark-scope { margin-left: 4px; font-weight: 500; color: var(--si1-faint); }
/* the route's shared mark wraps rather than run past the screen; on the
   narrowest phones its scope takes a line of its own, under the mark's words */
.si1 .si1-mark-all { flex: 0 1 auto; flex-wrap: wrap; min-width: 0; row-gap: 2px; }
@container si1 (max-width: 339px) {
  .si1 .si1-mark-all .si1-mark-scope { flex-basis: 100%; margin-left: 17px; }
  .si1 .si1-mark-sep { display: none; }
}
/* a contact whose role is its note's own title */
.si1 .si1-dup { display: none; }
/* the long chapter keeps Expand all; its jump list repeats every topic */
.si1 .si1-jump--tools > button:not(.is-tool) { display: none; }
.si1 .si1-jump--tools { justify-content: flex-end; margin-bottom: -22px; }
/* Find a place: the quick row repeats the list beneath it (the first
   chapter keeps the quick places) */
.si1 .sgv-explorer .sgv-quick { display: none; }
/* Who to ask */
.si1 .si1-ask-list { margin: 2px 0 0; padding: 0; list-style: none; }
.si1 .si1-ask-list li { display: grid; gap: 1px; padding: 8px 0; border-top: 1px solid var(--si1-rule-soft); }
.si1 .si1-ask-list li:first-child { border-top: 0; padding-top: 2px; }
.si1-ask-role { font-size: 13.5px; font-weight: 600; color: var(--si1-ink); }
.si1 .si1-ask .sgv-tel { display: inline-flex; align-items: center; min-height: 36px; font-size: 15px; font-weight: 600; color: var(--si1-blue-ink); text-decoration: none; }
.si1 .si1-ask .sgv-tel:hover { text-decoration: underline; text-underline-offset: 3px; }
.si1-ask-note { font-size: 13px; color: var(--si1-slate); }
.si1 .si1-ask-more { margin: 2px 0 0; }
.si1 .si1-ask--margin { display: none; }
.si1 .si1-ask--inline { padding-top: 10px; }
/* today, in This week */
.si1 .si1-week-list li.is-today b { color: var(--si1-blue-ink); }
.si1 .si1-week-list li.is-today .si1-week-t { color: var(--si1-ink); }
/* the guide's standing on the placement's line (phones); the full line is for wide */
.si1 .si1-inline-prov { display: none; }
/* pinned help, phones only */
.si1-pin { display: none; }
/* the authored day one is a set of answers, not a sequence */
.si1 .si1-sheet .sgv-nrow { grid-template-columns: minmax(0, 1fr); }
.si1 .si1-sheet .sgv-nrow .sgv-num { display: none; }
/* one size for the door's person actions */
.si1 .sgv-door-cols .sgv-railcard :is(.sgv-btn, .sgv-btn--sm) { min-height: 40px; padding: 0 14px; font-size: 13.5px; }
/* the loading chapter is as wide as the chapter it stands for */
.si1-skel-ch { max-width: 70ch; }
/* the place sheet and dialogs: marks in SI1's grammar */
html[data-si1] [data-sgv-dialogs] .sgv-st {
  display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; border-radius: 0; background: none;
  font-size: 12.5px; font-weight: 600;
}
html[data-si1] [data-sgv-dialogs] .sgv-st--confirmed { color: var(--sgv-green-ink, #0f6b3a); }
html[data-si1] [data-sgv-dialogs] .sgv-st--provisional { color: var(--sgv-amber-ink, #7a4d05); }
html[data-si1] [data-sgv-dialogs] :is(.sgv-st--check_current, .sgv-st--check) { color: var(--sgv-check-ink, #40506b); }
html[data-si1] [data-sgv-dialogs] :is(.sgv-st--route_not_walked, .sgv-st--route) { color: var(--sgv-route-ink, #0b6a76); }

@container si1 (min-width: 760px) {
  .si1 .sgv-cat { min-height: 32px; padding: 0 10px; font-size: 13px; }
}
/* wide: the photograph as a plate, its caption column beside it */
@container si1 (min-width: 1040px) {
  .si1-open:not(.si1-open--text) {
    display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
    grid-template-areas: "photo id" "prov prov"; column-gap: 36px; align-items: end;
  }
  .si1-open:not(.si1-open--text) > .si1-photo { grid-area: photo; }
  .si1-open:not(.si1-open--text) > .si1-id { grid-area: id; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin: 0 0 26px; }
  .si1-open:not(.si1-open--text) > .si1-prov { grid-area: prov; }
  .si1-open:not(.si1-open--text) .si1-id-main { flex: none; }
  .si1-open:not(.si1-open--text) .si1-photo-frame { height: 252px; }
  .si1-open:not(.si1-open--text) .si1-actions { justify-content: flex-start; }
  .si1-open:not(.si1-open--text) .si1-when { font-size: 16px; margin-top: 8px; }
  .si1 .si1-ask--margin { display: block; }
  .si1 .si1-ask--inline { display: none; }
}
@media (max-width: 768px) {
  /* the standing rides on the placement's line (it wraps beneath when the
     line is full); evidence detail and Report live in the explanation dialog
     and at each chapter's end. The 44px target overhangs the text above and
     below, so it costs a text line, not a target's height. */
  .si1-open:not(.si1-open--text) > .si1-prov { display: none; }
  .si1 .si1-sub:has(.si1-inline-prov) { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; }
  .si1-open:not(.si1-open--text) .si1-inline-prov { display: inline-flex; min-height: 44px; margin-block: -10px; font-size: 14px; }
  .si1-pin {
    display: inline-flex; align-items: center; gap: 5px; position: absolute; right: 0; top: 0; bottom: 1px; z-index: 2;
    padding: 0 16px 0 14px; border: 0; border-left: 1px solid var(--si1-rule); background: #fff;
    font: 600 14px/1 var(--si1-font); color: var(--si1-ink); cursor: pointer;
  }
  .si1-pin .si1-i { width: 17px; height: 17px; color: var(--si1-blue-ink); }
  .si1-contents { padding-right: 92px; }
  .si1-contents::after { right: 78px; }
}

/* ------------------------------------------------------------ wider */
@container si1 (min-width: 700px) {
  /* about 4.5:1 up to the plate, never the 6:1 strip of rooftops */
  .si1-photo-frame { aspect-ratio: auto; height: clamp(150px, 22cqw, 228px); }
  /* the name keeps its line; the shortcuts drop below it when they would squeeze it */
  .si1-id { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 28px; margin-top: 14px; }
  .si1-id-main { flex: 1 1 420px; }
  .si1-actions { flex: 0 0 auto; }
  .si1 .si1-name { font-size: 30px; }
  .si1-open--text .si1-name { font-size: 36px; letter-spacing: -0.024em; }
  .si1-open--text { padding-top: 18px; }
  .si1-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
  .si1-act { min-height: 38px; }
  @media (pointer: coarse) { .si1-act { min-height: 44px; } }
  .si1-body, .si1-open { --si1-gutter: 0px; }
  .si1-strip { margin: 0; padding: 0; }
  .si1 .sgv-door-cols { gap: 40px; }
}
/* Wherever the contents are the sticky strip (phones and tablets), the strip
   names the open chapter: a guide chapter's heading is kept for assistive
   technology only. The no-guide door has no strip and keeps its title. */
@container si1 (width < 760px) {
  .si1 .sgv-panels .si1-ch-h {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
  }
  .si1 .sgv-panels .sgv-tab-h + .sgv-tab-intro { margin-top: 0; }
}
@container si1 (min-width: 760px) {
  .si1-body { display: grid; grid-template-columns: 188px minmax(0, 1fr); column-gap: 40px; margin-top: 26px; }
  .si1-contents {
    position: sticky; top: calc(var(--sgv-sticky-top, 0px) + 20px); align-self: start; padding: 2px 0 0; margin: 0;
    background: none; border-bottom: 0; z-index: auto;
  }
  .si1-contents::after { content: none; }
  .si1-contents-h { display: block; margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--si1-ink); }
  /* no box: the shipped content-top scroll then subtracts nothing */
  .si1-strip { display: contents; }
  .si1-strip [data-sgv-tabs] { flex-direction: column; gap: 0; overflow: visible; border-left: 1px solid var(--si1-rule); }
  .si1-strip [role="tab"] { white-space: normal; min-height: 0; padding: 8px 0 9px 14px; font-size: 14.5px; }
  .si1-tab-d { display: block; font-size: 12.5px; font-weight: 400; line-height: 1.35; color: var(--si1-faint); white-space: normal; }
  .si1-strip [role="tab"][aria-selected="true"] .si1-tab-d { color: var(--si1-slate); }
  .si1-ind.is-v { left: -1px; }
  .si1 .sgv-panels { padding-top: 0; }
  .si1 .si1-toc { display: none; }
  .si1-body--skel .si1-contents { display: block; }
}
@container si1 (min-width: 1040px) {
  /* both openings, photographed or text-led: the place is the display line */
  .si1 .si1-name { font-size: 36px; letter-spacing: -0.024em; }
  .si1 .sgv-cols { grid-template-columns: minmax(0, 1fr) 236px; column-gap: 44px; }
  .si1 .sgv-rail { position: sticky; top: calc(var(--sgv-sticky-top, 0px) + 20px); }
  .si1 .sgv-door-cols { grid-template-columns: minmax(0, 1fr) 264px; column-gap: 48px; }
  .si1 .sgv-door-cols .sgv-rail { position: sticky; top: 20px; }
}

/* ------------------------------------------------------------ phones */
@media (max-width: 768px) {
  html[data-si1] #pd-mobile { gap: 0; }
  html[data-si1] #pd-mobile > .pd-back { margin: 0 0 8px; min-height: 44px; }
  .si1 .si1-photo { margin: 0 -16px; }
  .si1 .si1-photo-frame { aspect-ratio: 16 / 6.2; }
  .si1 .si1-id { margin-top: 10px; gap: 12px; }
  .si1-prov { grid-template-columns: auto 1fr; grid-template-areas: "standing report" "facts facts"; margin-top: 12px; }
  .si1-prov:not(:has(.si1-prov-btn)) { grid-template-areas: "facts report"; }
  .si1-prov > .si1-prov-facts { font-size: 12.5px; color: var(--si1-faint); }
  /* phone targets: every SI1 control, and the shipped ones it frames, at 44px */
  .si1 :is(.si1-prov-btn, .si1-report, .si1-link, .si1-return) { min-height: 44px; }
  .si1 .si1-route .sgv-step [data-sgv-dest] { min-height: 44px; }
  .si1 .sgv-jump button, .si1 .sgv-quiet { min-height: 44px; }
  .si1 :is(.sgv-btn, .sgv-pill, .sgv-rail-link, .sgv-row-link) { min-height: 44px; }
  .si1 .si1-ask .sgv-tel, .si1 .sgv-rail .sgv-tel { min-height: 44px; }
  .si1 .si1-photo-frame { border-radius: 0; }
  .si1 .si1-credit { padding: 0 16px; }
  .si1 .sgv-main { max-width: none; gap: 30px; }
  .si1 .sgv-main > .sgv-drow + .sgv-drow { margin-top: -30px; }
  .si1 .si1-ch-h h2, .si1 .sgv-tab-h h2 { font-size: 21px; }
  .si1 .sgv-tab-h + .sgv-tab-intro { margin-top: -20px; }
  .si1 .sgv-rail { margin-top: 0; }
  .si1 .sgv-drow-body { padding: 0 0 16px; }
  .si1 .sgv-drow > summary { padding: 12px 0; }
  .si1 .sgv-door-cols { margin-top: 22px; }
  /* filters and quick places as single swipeable lines, not four rows */
  .si1 .sgv-cats, .si1 .sgv-explorer .sgv-quick {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .si1 .sgv-cats::-webkit-scrollbar, .si1 .sgv-explorer .sgv-quick::-webkit-scrollbar { display: none; }
  .si1 :is(.sgv-cats, .sgv-quick) { padding-block: 3px; }
  .si1 :is(.sgv-cats, .sgv-quick).is-end { -webkit-mask-image: none; mask-image: none; }
  .si1 :is(.sgv-cats, .sgv-quick) .sgv-cat:focus-visible { outline-offset: -3px; }
  .si1 .sgv-cat { flex: none; min-height: 44px; font-size: 14px; }
  .si1 .sgv-explorer .sgv-quick > b { display: none; }
}
@media (max-width: 360px) {
  .si1-act .si1-i:not(.si1-ext) { display: none; }
  .si1-act { padding: 0 8px; font-size: 13.5px; }
  .si1 .si1-name { font-size: 23px; }
  .si1-strip [data-sgv-tabs] { gap: 18px; }
}

/* ---------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) {
  .si1 .sgv-panel.is-active.si1-entering { animation: none; }
  .si1-ind { transition: none; }
  .si1-skel { animation: none; }
  .si1 .si1-next-t .si1-i { transition: none; }
  .si1 .sgv-cl-bar i, .si1-contents::after { transition: none; }
}
@media (forced-colors: active) {
  .si1-ind { background: Highlight; }
  .si1 .sgv-st { border: 0; }
  .si1-act, .si1 .sgv-dest { border: 1px solid CanvasText; }
}

/* ------------------------------------------------------------------
   Site info SI1.1 (20 Oct 2026): Find a place opens each place under its
   own row, across the list's width, and Sign-offs says what a placement
   asks for where the record is another system's (Imperial Year 6).
   Scoped like SI1; SI1's tokens only.
   ------------------------------------------------------------------ */

/* Find a place has no detail column now, so its list takes the chapter's
   width; the prose inside an open place keeps a reading measure. */
.si1 .sgv-cols:not(:has(> .sgv-rail)) > .sgv-main:has(.sgv-explorer) { max-width: none; }
@container si1 (min-width: 1040px) {
  .si1 .sgv-cols:not(:has(> .sgv-rail)) { grid-template-columns: minmax(0, 1fr); }
}

/* Each place: one row, and its details beneath it. The row bleeds a little
   into the gutter so its hover and open surfaces frame the text without
   moving it off the column's edge. */
.si1 .sgv-dest-item { position: relative; display: block; margin: 0 -10px; padding: 0 10px; border-radius: 8px; }
.si1 .sgv-dest-item::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 1px; background: var(--si1-rule-soft);
}
.si1 .sgv-dest-item > .sgv-dest { border-bottom: 0; padding: 12px 2px; }
.si1 .sgv-dest-item > .sgv-dest:hover { background: none; }
.si1 .sgv-dest-item:has(> .sgv-dest:hover):not(.is-open) { background: var(--si1-open-bg); }
.si1 .sgv-dest-item > .sgv-dest:focus-visible { outline: 2px solid var(--si1-blue); outline-offset: 2px; border-radius: 6px; }
.si1 .sgv-dest-chev .sgv-i { width: 18px; height: 18px; transition: transform 220ms var(--si1-ease); }
.si1 .sgv-dest[aria-expanded="true"] .sgv-dest-chev { color: var(--si1-blue-ink); }
.si1 .sgv-dest[aria-expanded="true"] .sgv-dest-chev .sgv-i { transform: rotate(180deg); }
.si1 .sgv-dest[aria-expanded="true"] .sgv-dest-n { color: var(--si1-blue-ink); }

/* Open: a quiet surface, one blue edge, and no rule cutting through it. */
.si1 .sgv-dest-item.is-open { background: var(--si1-open-bg); margin-block: 4px; }
.si1 .sgv-dest-item.is-open::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--si1-blue);
}
.si1 .sgv-dest-item.is-open::after,
.si1 .sgv-dest-item:has(+ .sgv-dest-item.is-open)::after { opacity: 0; }

.si1 .sgv-dest-more { overflow: hidden; }
.si1 .sgv-dest-more-in {
  display: flex; flex-direction: column; gap: 14px;
  padding: 0 12px 16px 42px; /* the row's text column: its icon, 28px, and a 12px gap, plus the row's own 2px */
}
.si1 .sgv-dest-more .sgv-dest-desc { margin: 0; font-size: 15px; line-height: 1.6; color: var(--si1-text); max-width: 66ch; }

/* Location and route, side by side: two separate answers, the same weight. */
.si1 .sgv-dest-more .sgv-dest-evidence {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px 28px; margin: 0; padding: 12px 0;
  border-top: 1px solid var(--si1-rule); border-bottom: 1px solid var(--si1-rule);
}
.si1 .sgv-dest-more .sgv-dest-evidence > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.si1 .sgv-dest-more .sgv-dest-evidence b {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--si1-slate);
}
.si1 .sgv-dest-more .sgv-dest-evidence p { flex-basis: 100%; margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--si1-slate); max-width: 60ch; }
@container si1 (min-width: 620px) {
  .si1 .sgv-dest-more .sgv-dest-evidence { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.si1 .sgv-dest-more .sgv-note {
  display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 0; border: 0; background: none;
  font-size: 14px; line-height: 1.55; color: var(--si1-text); max-width: 66ch;
}
.si1 .sgv-dest-more .sgv-note .sgv-i { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--si1-slate); }
.si1 .sgv-dest-more :is(.sgv-items, .sgv-rows) { max-width: 66ch; }
.si1 .sgv-dest-more .sgv-btn-row { margin: 0; }
.si1 .sgv-dest-more .sgv-btn { background: #fff; }
.si1 .sgv-dest-more .sgv-detail-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 18px; margin: 0; padding-top: 6px; border-top: 1px solid var(--si1-rule);
}
.si1 .sgv-dest-more .sgv-dest-close { margin-left: auto; color: var(--si1-ink); font-weight: 600; }
.si1 .sgv-dest-more .sgv-dest-close .sgv-i { width: 15px; height: 15px; }

/* Phones: the details use the row's full width. */
@container si1 (width < 560px) {
  .si1 .sgv-dest-more-in { padding: 0 2px 16px; }
  .si1 .sgv-dest-more .sgv-dest-close { margin-left: 0; }
}

/* ------------------------------------- Sign-offs kept by another system */
.si1 .sgv-so--external .sgv-so-ext { display: flex; flex-direction: column; gap: 14px; max-width: 640px; padding: 18px 20px; }
.si1 .sgv-so-ext-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.si1 .sgv-so-ext-h .sgv-so-count { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; color: var(--si1-ink); }
.si1 .sgv-so-ext-h .sgv-so-sub { flex-basis: 100%; margin: 0; font-size: 14px; color: var(--si1-slate); }
/* the allocation's place on the register, in words: never a pill */
.si1 .sgv-so-phase {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none;
  font-size: 12.5px; font-weight: 600; color: var(--si1-check);
}
.si1 .sgv-so-phase::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; }
.si1 .sgv-so-lists { display: flex; flex-direction: column; }
.si1 .sgv-so-group {
  margin: 12px 0 0; padding: 0 0 6px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--si1-slate);
}
.si1 .sgv-so-group:first-child { margin-top: 0; }
.si1 .sgv-so-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--si1-rule); }
.si1 .sgv-so-item {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: baseline; gap: 2px 12px;
  padding: 10px 0; border-bottom: 1px solid var(--si1-rule-soft);
}
.si1 .sgv-so-item:last-child { border-bottom: 0; }
.si1 .sgv-so-code { font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--si1-slate); white-space: nowrap; }
.si1 .sgv-so-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.si1 .sgv-so-t { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--si1-ink); }
.si1 .sgv-so-m { font-size: 13.5px; line-height: 1.45; color: var(--si1-slate); }
.si1 .sgv-so-n { font-size: 13.5px; font-weight: 600; color: var(--si1-ink); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.si1 .sgv-so-item.is-reference .sgv-so-t, .si1 .sgv-so-item.is-reference .sgv-so-n { color: var(--si1-slate); font-weight: 500; }
.si1 .sgv-so-ext > .sgv-so-note { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--si1-slate); max-width: 64ch; }
.si1 .sgv-so-ext-link {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 2px; white-space: nowrap;
  font-weight: 600; color: var(--si1-blue-ink); text-decoration: none;
}
.si1 .sgv-so-ext-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.si1 .sgv-so-ext-link .sgv-i, .si1 .sgv-so-prov .sgv-i { width: 13px; height: 13px; }
.si1 .sgv-so-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.si1 .sgv-so-action { background: var(--si1-ink); border-color: var(--si1-ink); color: #fff; min-height: 40px; padding: 0 14px; }
.si1 .sgv-so-action:hover { background: #081f47; }
.si1 .sgv-so-action .sgv-i { width: 15px; height: 15px; }
.si1 .sgv-so-action-note { flex: 1 1 220px; font-size: 13px; line-height: 1.45; color: var(--si1-slate); }
.si1 .sgv-so-prov { margin: 0; padding-top: 10px; border-top: 1px solid var(--si1-rule-soft); font-size: 12.5px; color: var(--si1-faint); }
.si1 .sgv-so-prov a { display: inline-flex; align-items: center; gap: 3px; color: inherit; text-underline-offset: 2px; }
@container si1 (width < 480px) {
  .si1 .sgv-so--external .sgv-so-ext { padding: 16px; }
  .si1 .sgv-so-item { grid-template-columns: 42px minmax(0, 1fr); }
  .si1 .sgv-so-n { grid-column: 2; text-align: left; font-weight: 500; color: var(--si1-slate); }
}
@media (max-width: 768px) {
  .si1 .sgv-so-action, .si1 .sgv-dest-more .sgv-detail-foot .sgv-quiet { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .si1 .sgv-dest-chev .sgv-i { transition: none; }
}
@media (forced-colors: active) {
  .si1 .sgv-dest-item.is-open { outline: 1px solid CanvasText; }
  .si1 .sgv-dest-item.is-open::before { background: Highlight; }
  .si1 .sgv-so-action { border: 1px solid ButtonText; }
}
