/* Same-Day Access Simulator (2026-11-17). Uses the tokens in css/site.css.
   Grid states: own doctor = navy, another doctor = teal, empty = dashed teal, couldn't get in = sand. */

.tag { display: inline-block; font: 700 .75rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--teal-deep); background: #fff; border: 1px solid var(--teal); border-radius: 999px; padding: .35rem .65rem; vertical-align: middle; }
.linkish { background: none; border: 0; padding: .25rem; font: 500 var(--step--1) var(--sans); color: var(--navy); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 .85rem/1 var(--sans); flex: none; }
.avatar.sm { width: 22px; height: 22px; font-size: .7rem; margin-right: .45rem; vertical-align: middle; }
.avatar.walk { background: var(--teal); color: var(--navy); }
.sim-h4 { font: 700 var(--step--1)/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.sim-h4 span { text-transform: none; letter-spacing: 0; font-weight: 500; margin-left: .35rem; }
.sim-h4:focus { outline: none; }
.sim-h4:focus-visible { outline: 3px solid var(--teal-deep); }
.sub-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .75rem; }

/* ---------- Hero and clinic ---------- */
.sim-hero h1 { max-width: 20ch; }
.clinic-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: 1.25rem; }
.clinic-head h2 { margin: 0; }
.clinic-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.clinic-q { font-family: var(--serif); font-size: var(--step-1); color: var(--navy); }
.doctors { list-style: none; margin: 0; padding: 1.25rem; display: grid; gap: .6rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.doctors li { display: flex; align-items: center; gap: .75rem; font-weight: 700; color: var(--navy); }
.measure-title { margin-top: 2rem; }
.measure { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.measure li { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 10px; padding: 1rem; font-size: .95rem; }
.measure strong { display: block; margin-bottom: .25rem; }
.sim-how { margin-top: 1.5rem; max-width: 52rem; }
.sim-how summary, .how-panel summary, .tri-table summary { cursor: pointer; font-weight: 700; color: var(--navy); min-height: 44px; display: flex; align-items: center; gap: .4rem; }
.sim-how p { margin-top: .5rem; }
@media (max-width: 880px) { .clinic-grid { grid-template-columns: 1fr; } .measure { grid-template-columns: repeat(2, minmax(0, 1fr)); } .doctors { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); } }

/* ---------- Stepper ---------- */
.sim-section { padding-top: 0; }
.stepper { position: sticky; top: 72px; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); margin-bottom: clamp(2rem, 5vw, 3rem); }
.stepper-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; padding-top: .6rem; padding-bottom: .6rem; }
.step-count, .step-part { margin: 0; font-weight: 700; color: var(--navy); font-size: .95rem; }
.step-part { margin-left: auto; color: var(--teal-deep); }
.step-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .3rem; }
.step-btn { width: 40px; height: 40px; border-radius: 8px; border: 2px solid var(--line); background: #fff; color: var(--navy); font: 700 1rem var(--sans); cursor: pointer; position: relative; }
.step-btn:hover { background: var(--wash); }
.step-btn.ran::after { content: ''; position: absolute; right: 3px; top: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.step-btn[aria-current="step"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.step-divider { width: 1px; height: 26px; background: var(--line); margin: 0 .35rem; }
@media (max-width: 520px) {
  .stepper-inner { gap: .35rem .75rem; }
  .step-list { order: 3; flex-basis: 100%; justify-content: space-between; }
  .step-btn { width: 38px; height: 38px; }
}

.part-title { font-size: var(--step-2); }

/* ---------- Scenario ---------- */
.scenario { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 12px; padding: clamp(1.1rem, 3vw, 2rem); box-shadow: 0 18px 40px -28px rgba(14, 54, 105, .4); }
.scn-kicker { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; font-weight: 700; color: var(--teal-deep); margin: 0 0 .5rem; font-size: .95rem; }
.scn-title { font-size: var(--step-2); margin-bottom: .5rem; }
.scn-title:focus { outline: none; }
.scn-setup { font-size: 1.05rem; max-width: 60ch; }

.sim-panel { display: grid; gap: 1.5rem; }
.sim-panel [hidden] { display: none !important; }
.sim-plan { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.plan-wrap { overflow-x: auto; }
.plan-table { border-collapse: collapse; width: 100%; max-width: 640px; font-variant-numeric: tabular-nums; }
.plan-table th, .plan-table td { padding: .45rem .6rem; border-bottom: 1px solid var(--line); text-align: center; }
.plan-table th[scope="row"] { text-align: left; font-weight: 500; color: var(--navy); white-space: nowrap; }
.plan-table thead th { font-size: var(--step--1); color: var(--muted); font-weight: 700; }
.plan-table thead th:first-child { text-align: left; }
.plan-table td { font-weight: 700; color: var(--navy); }
.plan-table tfoot th, .plan-table tfoot td { border-top: 2px solid var(--navy); border-bottom: 0; font-weight: 700; color: var(--navy); }
.plan-table .walk-row th, .plan-table .walk-row td { background: var(--wash); }
.day-switch { display: none; gap: .25rem; }
.day-switch button { min-width: 44px; min-height: 36px; padding: .3rem .5rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--navy); font: 700 .85rem var(--sans); cursor: pointer; }
.day-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.week-days { display: flex; margin-bottom: .75rem; }
@media (max-width: 640px) {
  .js-plan-days { display: flex; }
  .plan-table[data-day="0"] .dc:not(.d0), .plan-table[data-day="1"] .dc:not(.d1), .plan-table[data-day="2"] .dc:not(.d2),
  .plan-table[data-day="3"] .dc:not(.d3), .plan-table[data-day="4"] .dc:not(.d4) { display: none; }
  .plan-table td, .plan-table thead th.dc { text-align: right; }
}

.sim-pre { display: grid; gap: 1rem; }
.guess label { font-weight: 700; color: var(--navy); display: block; margin-bottom: .35rem; }
.guess-row { display: flex; align-items: center; gap: 1rem; max-width: 420px; }
.guess-row input { flex: 1; accent-color: var(--navy); min-height: 44px; }
.guess-row output { font: 700 1.2rem var(--sans); color: var(--navy); min-width: 3.2em; }
.choice { border: 1px solid var(--line); border-radius: 10px; padding: .75rem 1rem 1rem; margin: 0; display: grid; gap: .35rem; }
.choice legend { font-weight: 700; color: var(--navy); padding: 0 .35rem; }
.choice label { display: flex; align-items: center; gap: .6rem; min-height: 40px; cursor: pointer; }
.choice input { width: 20px; height: 20px; accent-color: var(--navy); flex: none; }

/* ---------- Output: first week + year ---------- */
.sim-out { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.25rem); border-top: 1px solid var(--line); padding-top: 1.25rem; align-items: start; }
.sim-out[hidden] { display: none; }
@media (max-width: 960px) { .sim-out { grid-template-columns: 1fr; } }

.week-ctrl { display: flex; flex-wrap: wrap; gap: .35rem; }
.ctl { min-height: 36px; padding: .3rem .7rem; border: 1px solid var(--navy); border-radius: 6px; background: #fff; color: var(--navy); font: 700 .85rem var(--sans); cursor: pointer; }
.ctl:hover { background: var(--wash); }

.grid-box { background: var(--wash); border-radius: 10px; padding: .75rem .6rem .6rem; }
.wgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; align-items: start; }
.wgrid.walkin { grid-template-columns: repeat(5, minmax(0, .62fr)) minmax(0, 2fr); }
.gcol { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.ghead { display: grid; justify-items: center; text-align: center; gap: .15rem; }
.gname { font-size: .75rem; font-weight: 700; color: var(--navy); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gask { font-size: .72rem; color: var(--ink); white-space: nowrap; }
.gbooked { background: #fff; border: 1px solid var(--line); border-radius: 4px; font-size: .66rem; color: var(--muted); text-align: center; padding: .1rem 0; white-space: nowrap; overflow: hidden; }
.gbooked.full { padding: 1.2rem 0; background: rgba(255, 255, 255, .7); }
.gstack { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.gwalk .gstack { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cell { height: 22px; border-radius: 4px; display: grid; place-items: center; font: 700 .62rem/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; overflow: hidden; }
.cell[data-s="open"] { background: rgba(255, 255, 255, .55); border: 1px solid rgba(14, 54, 105, .1); }
.cell[data-s="own"] { background: var(--navy); color: #fff; }
.cell[data-s="shared"], .cell[data-s="walk"] { background: var(--teal); color: var(--navy); }
.cell[data-s="empty"] { background: #fff; border: 2px dashed var(--teal); color: var(--teal-deep); }
.gtray { min-height: 1.2rem; }
.dots { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; }
.dots i, .legend .tok { width: 10px; height: 10px; border-radius: 50%; background: var(--sand); border: 1px solid var(--sand-ink); display: inline-block; }
.away-n { display: block; text-align: center; font-size: .68rem; line-height: 1.25; color: var(--sand-ink); font-weight: 700; margin-top: .2rem; }
.clinic-tray { margin-top: .6rem; padding-top: .5rem; border-top: 1px dashed rgba(14, 54, 105, .2); display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; }
.clinic-tray[hidden] { display: none; }
.clinic-tray .dots { justify-content: flex-start; }
.clinic-tray .away-n { display: inline; margin: 0; font-size: .8rem; }
.ct-label { font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.day-summary { margin: .6rem 0 .4rem; font-weight: 700; color: var(--navy); min-height: 1.6em; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .8rem; color: var(--ink); }
.legend li { display: flex; align-items: center; gap: .35rem; }
.legend li[hidden] { display: none; }
.sw { width: 16px; height: 12px; border-radius: 3px; display: inline-block; }
.sw[data-s="own"] { background: var(--navy); }
.sw[data-s="shared"] { background: var(--teal); }
.sw[data-s="empty"] { background: #fff; border: 2px dashed var(--teal); }

@media (prefers-reduced-motion: no-preference) {
  .cell.drop, .dots i.drop { animation: sim-drop .28s cubic-bezier(.2, .7, .2, 1) both; }
  .cell.glide { animation: sim-glide .45s cubic-bezier(.2, .7, .2, 1) both; }
  .cell.settle { animation: fadein .3s ease-out both; }
}
@keyframes sim-drop { from { transform: translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sim-glide { from { transform: translateX(-28px); opacity: 0; } to { transform: none; opacity: 1; } }

.week-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; }
.week-strip[hidden] { display: none; }
.mini { min-width: 0; }
.mini-day { font-weight: 700; color: var(--navy); margin: 0 0 .3rem; font-size: .9rem; }
.mini-sum { font-size: .8rem; margin: .35rem 0 0; }
.mini .grid-box { padding: .5rem .35rem .4rem; }
.mini .wgrid { gap: .2rem; }
.mini .cell { height: 9px; font-size: 0; border-width: 1px; border-radius: 2px; }
.mini .gname, .mini .gbooked { display: none; }
.mini .avatar { width: 18px; height: 18px; font-size: .6rem; }
.mini .gask { font-size: .6rem; }
.mini .dots i { width: 6px; height: 6px; }
.mini .away-n { font-size: .58rem; }

/* Year cards */
.year-wait { margin: 0; }
.year-body[hidden] { display: none; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.rcard { background: rgba(122, 193, 211, .22); border-radius: 10px; padding: .9rem 1rem 1rem; display: flex; flex-direction: column; min-width: 0; }
.rcard h5 { margin: 0 0 .25rem; font: 700 .85rem/1.25 var(--sans); color: var(--navy); }
.rv { margin: 0; font: 400 clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem)/1.1 var(--serif); color: var(--navy); font-variant-numeric: tabular-nums; }
.rsub { margin: .2rem 0 .5rem; font-size: .82rem; line-height: 1.35; color: var(--ink); }
.rmean { margin: 0 0 .4rem; font-size: .82rem; line-height: 1.35; color: var(--muted); }
.rarrow { margin: auto 0 0; font-size: .82rem; font-weight: 700; color: var(--navy); min-height: 1.2em; }
.rarrow b { font-size: .75rem; }
.forces { list-style: none; margin: .75rem 0 0; padding: .6rem .85rem; border: 1px solid var(--line); border-radius: 10px; display: grid; gap: .3rem; font-size: .88rem; }
.forces li { display: flex; gap: .5rem; align-items: baseline; }
.f-dir { color: var(--navy); font-size: .7rem; }
.how-panel { margin-top: .5rem; font-size: .92rem; }
.how-panel ul { margin: .25rem 0 .5rem; padding-left: 1.1rem; }
.how-panel li { margin-bottom: .3rem; }
.rdetail { margin: .75rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.rdetail div { border-left: 3px solid var(--teal); padding-left: .6rem; }
.rdetail dt { font-size: .75rem; line-height: 1.3; color: var(--muted); }
.rdetail dd { margin: .1rem 0 0; font-weight: 700; color: var(--navy); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .rcard { padding: .75rem .7rem .85rem; } .rdetail { grid-template-columns: 1fr; } }

/* What happened, lesson */
.sim-after { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.sim-after[hidden] { display: none; }
.story { display: grid; gap: 1rem; }
.what p { margin: .4rem 0 0; font-size: 1.05rem; }
.lesson { margin: 0; font: 400 var(--step-1)/1.35 var(--serif); color: var(--navy); border-left: 4px solid var(--navy); padding: .2rem 0 .2rem 1rem; max-width: 46rem; }
.after-actions { margin-top: 1.25rem; }
.extra { margin-top: .5rem; }
.extra .sim-h4 { margin-bottom: .5rem; }
.doc-strip, .menu-table { border-collapse: collapse; width: 100%; max-width: 560px; font-size: .95rem; font-variant-numeric: tabular-nums; }
.doc-strip th, .doc-strip td, .menu-table th, .menu-table td { padding: .45rem .5rem; border-bottom: 1px solid var(--line); text-align: left; }
.doc-strip thead th, .menu-table thead th { font-size: .8rem; color: var(--muted); }
.doc-strip th[scope="row"], .menu-table th[scope="row"] { font-weight: 500; color: var(--navy); white-space: nowrap; }
.doc-strip td { font-weight: 700; color: var(--navy); white-space: nowrap; }
.bar { display: inline-block; vertical-align: middle; width: clamp(40px, 12vw, 120px); height: 10px; background: var(--wash); border-radius: 3px; margin-right: .45rem; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--navy); }
.bar.alt span { background: var(--teal); }
@media (max-width: 420px) { .doc-strip .avatar { display: none; } }

/* ---------- Scoreboard ---------- */
.score-block { margin-top: clamp(2rem, 5vw, 3rem); }
.score-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.score-head h3 { margin-bottom: .5rem; }
.score-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.score-table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .92rem; font-variant-numeric: tabular-nums; }
.score-table th, .score-table td { padding: .6rem .75rem; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.score-table th:first-child { text-align: left; position: sticky; left: 0; background: #fff; }
.score-table thead th { font-size: .78rem; color: var(--muted); font-weight: 700; white-space: normal; vertical-align: bottom; }
.score-table tbody th { color: var(--navy); font-weight: 700; }
.score-table td.best { background: rgba(122, 193, 211, .3); color: var(--navy); font-weight: 700; }
.score-table tr.current th { box-shadow: inset 4px 0 0 var(--navy); }
.score-table.compact { min-width: 0; }
.score-empty { margin: 0; }

/* ---------- Grocery store vs. bank ---------- */
.pool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1rem, 4vw, 2.5rem); align-items: center; background: var(--wash); border-radius: 12px; padding: clamp(1rem, 3vw, 1.75rem); margin-bottom: 1.5rem; }
.pool[hidden] { display: none; }
.pool-stage { position: relative; height: 210px; max-width: 420px; }
.reg { position: absolute; top: 0; transform: translateX(-50%); width: 15%; height: 30px; border-radius: 6px; background: var(--navy); color: #fff; font: 700 .7rem/30px var(--sans); text-align: center; text-transform: uppercase; letter-spacing: .04em; }
.pool-stage[data-state="five"] .reg.idle { background: #fff; color: var(--teal-deep); border: 2px dashed var(--teal); line-height: 26px; }
.pool-stage[data-state="one"] .reg.idle { font-size: 0; }
.ptok { position: absolute; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--teal); border: 2px solid var(--navy); left: var(--x5); top: var(--y5); }
.pool-stage[data-state="one"] .ptok { left: var(--x1); top: var(--y1); }
@media (prefers-reduced-motion: no-preference) { .ptok { transition: left .9s cubic-bezier(.4, 0, .2, 1), top .9s cubic-bezier(.4, 0, .2, 1); } }
.pool-toggle { display: flex; gap: .35rem; margin-bottom: .75rem; }
.pool-toggle button { min-height: 40px; padding: .4rem .9rem; border: 1px solid var(--navy); border-radius: 6px; background: #fff; color: var(--navy); font: 700 .9rem var(--sans); cursor: pointer; }
.pool-toggle button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.pool-copy p { margin: 0; }
@media (max-width: 760px) { .pool { grid-template-columns: 1fr; } }

/* ---------- Pick two ---------- */
.tri-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.tri-layout .ticks strong { display: block; }
.tri-close { margin-top: 1.5rem; font: 400 var(--step-1)/1.35 var(--serif); color: var(--navy); }
.tri-figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem 1rem 1rem; }
.tri { max-width: 460px; margin: 0 auto; }
.tri-label { margin: 0; font-size: .85rem; line-height: 1.3; color: var(--ink); max-width: 15rem; }
.tri-a { text-align: center; margin: 0 auto .35rem; }
.tri-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: .25rem; }
.tri-c { text-align: right; }
.tri-svg { width: 100%; height: auto; display: block; overflow: visible; }
.tri-grid polygon { fill: none; stroke: var(--line); stroke-width: 1; }
.tri-grid polygon.outer { stroke: rgba(14, 54, 105, .35); stroke-width: 1.5; fill: rgba(238, 247, 249, .6); }
.tri-grid line { stroke: var(--line); stroke-width: 1; }
.tri-grid text { font: 500 9px var(--sans); fill: var(--muted); }
.tri-shapes .past { fill: rgba(122, 193, 211, .07); stroke: var(--teal); stroke-width: 1.25; }
.tri-shapes .now { fill: rgba(14, 54, 105, .16); stroke: var(--navy); stroke-width: 2.5; stroke-linejoin: round; }
.tri-shapes circle { fill: var(--navy); }
@media (prefers-reduced-motion: no-preference) { .tri-shapes .now { animation: fadein .5s ease-out both; } }
.tri-figure figcaption { margin-top: .75rem; }
.tri-empty { margin: 0 0 .25rem; }
.tri-table .score-table { margin-top: .5rem; font-size: .85rem; }
.tri-table .score-table th, .tri-table .score-table td { padding: .4rem .5rem; white-space: normal; }
@media (max-width: 880px) { .tri-layout { grid-template-columns: 1fr; } }

/* ---------- Sandbox ---------- */
.sandbox { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.sb-controls { display: grid; gap: 1rem; position: sticky; top: 96px; }
.sb-controls .field { margin: 0; }
.range-field input { width: 100%; accent-color: var(--navy); min-height: 44px; }
.range-field output { display: block; font-weight: 700; color: var(--navy); }
.range-ticks { display: flex; justify-content: space-between; font-size: .7rem; color: var(--muted); margin-top: .15rem; }
#sb-panel { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 12px; padding: clamp(1rem, 3vw, 1.75rem); }
#sb-panel .sim-plan { border-top: 0; padding-top: 0; }
#sb-panel .sim-out { grid-template-columns: 1fr; }
@media (max-width: 880px) { .sandbox { grid-template-columns: 1fr; } .sb-controls { position: static; } }

.takeaways { margin-top: 2rem; }

.sim-section .scenario, .sim-section .pool, .sim-out, .sim-after, .score-block { scroll-margin-top: 140px; }
.choice[hidden], .sb-controls [hidden] { display: none !important; }
.gask b { font-weight: inherit; }
@media (max-width: 640px) {
  .wgrid.walkin { grid-template-columns: repeat(5, minmax(0, .45fr)) minmax(0, 2fr); gap: .3rem; }
  .wgrid.walkin .gcol:not(.gwalk) .gname, .wgrid.walkin .gcol:not(.gwalk) .gask-w { display: none; }
  .wgrid.walkin .gbooked.full { font-size: .62rem; line-height: 1; writing-mode: vertical-rl; transform: rotate(180deg); padding: .5rem 0; display: flex; align-items: center; justify-content: center; }
  .wgrid.walkin .gwalk .cell { font-size: .55rem; letter-spacing: .02em; }
}

/* ---------- 2026-11-17 restructure: faces, the problem, panel discussion ---------- */
.face { width: 30px; height: 30px; border-radius: 50%; display: inline-block; flex: none; background: var(--wash); }
.face.sm { width: 24px; height: 24px; margin-right: .45rem; vertical-align: middle; }
.mini .face { width: 18px; height: 18px; }
.rcard h4 { margin: 0 0 .25rem; font: 700 .85rem/1.25 var(--sans); color: var(--navy); }
.cards { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.step-btn.wide { width: auto; padding: 0 .7rem; }
.lesson span { display: block; font: 700 .75rem/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: .2rem; }

.problem-sec h2 { max-width: 30ch; }
.tradeoff { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); margin-top: 2rem; max-width: 52rem; }
.to-card { margin: 0; background: var(--wash); border-radius: 12px; padding: 1.25rem 1.25rem 1rem; display: flex; flex-direction: column; gap: .75rem; }
.to-card figcaption { font-size: 1.05rem; color: var(--ink); }
.to-card figcaption strong { display: block; font-family: var(--serif); font-weight: 400; font-size: var(--step-1); color: var(--navy); margin-bottom: .1rem; }
.to-slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.to-slots .cell { height: 28px; }
.to-away { margin: 0; }
.to-away .dots { justify-content: flex-start; gap: 5px; }
.to-away .dots i { width: 18px; height: 18px; }
.to-note { margin: auto 0 0; font-size: .9rem; font-weight: 700; color: var(--navy); }
@media (max-width: 640px) { .tradeoff { grid-template-columns: 1fr; } }

.clinic-pic { margin: 0; }
.clinic-pic img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.doctors { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; background: none; border: 0; }
.doctors li { display: flex; flex-direction: column; align-items: center; gap: .5rem; font-weight: 700; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem .5rem .85rem; }
.doctors img { width: 96px; height: 96px; border-radius: 50%; }
.clinic-q { margin-top: 1.75rem; }
.measure { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 880px) { .doctors { grid-template-columns: repeat(3, minmax(0, 1fr)); } .measure { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .doctors { grid-template-columns: repeat(2, minmax(0, 1fr)); } .doctors img { width: 80px; height: 80px; } }

.panel-disc { margin-top: clamp(3rem, 7vw, 5rem); padding-top: clamp(2rem, 5vw, 3rem); border-top: 1px solid var(--line); }
.panel-disc .ticks strong { display: block; }
.pc-figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem; }
.pc-figure figcaption { margin-bottom: .75rem; }
.pc-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pc-table th, .pc-table td { padding: .5rem .35rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pc-table tbody th { text-align: left; font-weight: 400; width: 38%; }
.pc-name { display: block; font-weight: 700; color: var(--navy); font-size: .9rem; }
.pc-sub { display: block; font-size: .75rem; line-height: 1.3; color: var(--muted); }
.pc-barcell { position: relative; }
.pc-bar { display: block; height: 14px; background: var(--navy); border-radius: 3px; }
.pc-bar.alt { background: var(--teal-deep); }
.pc-val { display: block; font-weight: 700; color: var(--navy); font-size: .85rem; margin-top: .15rem; }
.pc-delta { text-align: right; white-space: nowrap; font-weight: 700; color: var(--navy); font-size: .85rem; width: 5.5rem; }

.sb-details > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: 1rem 1.25rem; border: 2px solid var(--navy); border-radius: 12px; background: var(--wash); }
.sb-details > summary::-webkit-details-marker { display: none; }
.sb-details > summary::after { content: '+'; margin-left: auto; font: 700 1.5rem/1 var(--sans); color: var(--navy); }
.sb-details[open] > summary::after { content: '\2212'; }
.sb-sum-title { font-family: var(--serif); font-size: var(--step-2); color: var(--navy); }
.sb-details[open] .sandbox { margin-top: 1.5rem; }
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } .rcard { display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; align-items: baseline; } .rcard h4, .rcard .rmean, .rcard .rarrow { grid-column: 1 / -1; } .rcard .rsub { margin: 0; } }
@media (max-width: 420px) { .doctors { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; } .doctors li { padding: .7rem .25rem .6rem; font-size: .85rem; } .doctors img { width: 64px; height: 64px; } }
.pool.pool-note { display: block; border-left: 4px solid var(--teal); border-radius: 0 12px 12px 0; } .pool.pool-note[hidden] { display: none; } .pool-note p { margin: 0; font: 400 var(--step-1)/1.4 var(--serif); color: var(--navy); }

/* Closing section: request more information form */
.cta-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.cta-alt { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.cta-form-panel { background: #fff; border-radius: 12px; padding: clamp(1.25rem, 3vw, 1.75rem); color: var(--ink); }
.cta-form-panel .btn { width: 100%; margin-top: .25rem; }
.cta-form-panel .btn[disabled] { opacity: .6; cursor: wait; }
.cta-form-panel textarea::placeholder { color: var(--muted); }
.form-error { margin: .75rem 0 0; color: var(--sand-ink); font-weight: 700; font-size: .95rem; }
.form-thanks h3 { color: var(--navy); }
.form-thanks p { color: var(--ink); margin: 0; }
.form-thanks:focus { outline: none; }
.cta-form-panel [hidden] { display: none !important; }
@media (max-width: 880px) { .cta-grid { grid-template-columns: 1fr; } }
.section-navy .cta-form-panel .btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.section-navy .cta-form-panel .btn-primary:hover { background: var(--ink); border-color: var(--ink); }
.section-navy .cta-form-panel .form-error { color: var(--sand-ink); }
.section-navy .cta-form-panel .form-thanks p { color: var(--ink); }
.section-navy .cta-form-panel .form-thanks h3 { color: var(--navy); }
.section-navy .cta-form-panel :focus-visible { outline-color: var(--teal-deep); }

/* 2026-11-17: named scenarios, scenario list, trade-off bars */
.step-btn { width: auto; min-width: 40px; padding: 0 .65rem; display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; }
.step-btn .snum { font-weight: 700; }
.step-btn .sname { font-weight: 500; white-space: nowrap; }
.step-btn[aria-current="step"] .sname { font-weight: 700; }
.step-list { flex-wrap: wrap; }
@media (max-width: 900px) {
  .step-btn:not([aria-current="step"]) .snum + .sname { display: none; }
}
@media (max-width: 520px) {
  .step-list { justify-content: flex-start; gap: .3rem; }
  .step-btn { height: 36px; padding: 0 .55rem; font-size: .85rem; }
}

.scn-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.scn-list a { display: block; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1rem; text-decoration: none; color: var(--ink); font-size: .95rem; }
.scn-list a:hover { border-color: var(--teal); background: #fff; color: var(--ink); }
.scn-list .sl-num { display: inline-block; font: 700 .75rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--navy); border-radius: 999px; padding: .3rem .6rem; margin-bottom: .5rem; }
.scn-list strong { display: block; margin-bottom: .2rem; font-size: 1.05rem; }
.scn-list span:last-child { display: block; }
@media (max-width: 880px) { .scn-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .scn-list { grid-template-columns: 1fr; } }

.to-figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem; }
.to-figure figcaption { margin-bottom: .75rem; }
.to-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; table-layout: fixed; }
.to-table th, .to-table td { padding: .55rem .4rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.to-table thead th { font-size: .78rem; color: var(--muted); font-weight: 700; }
.to-table thead th:first-child { width: 30%; }
.to-table tbody th { font-size: .88rem; color: var(--navy); font-weight: 700; }
.tb-track { display: block; height: 12px; background: var(--wash); border-radius: 3px; overflow: hidden; }
.tb-bar { display: block; height: 100%; border-radius: 3px; }
.tb-bar.a { background: var(--navy); }
.tb-bar.u { background: var(--teal); }
.tb-bar.c { background: var(--teal-deep); }
.tb-val { display: block; font-size: .8rem; font-weight: 700; color: var(--navy); margin-top: .15rem; }
.to-cap { margin: .75rem 0 0; }
@media (max-width: 520px) { .to-table thead th:first-child { width: 34%; } .to-table th, .to-table td { padding: .5rem .25rem; } .to-table thead th { font-size: .7rem; } }
@media (max-width: 520px) {
  .stepper-inner { flex-wrap: nowrap; gap: .5rem; }
  .step-count { flex: none; font-size: .85rem; }
  .step-list { order: 0; flex: 1 1 auto; flex-basis: auto; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px; }
  .step-list::-webkit-scrollbar { display: none; }
  .step-list li { flex: none; }
}
.run-all-row { margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; } .run-all-row span { font-size: .95rem; color: var(--ink); }
