.wb {
  --wb-ink: #16374c;
  --wb-blue: #115f96;
  --wb-copy: #405a6a;
  --wb-line: #cbdbe3;
  color: var(--wb-ink);
  font-family: Inter, sans-serif;
}
.wb *, .wb *::before, .wb *::after { box-sizing: border-box; }
.wb button, .wb select { font: inherit; color: inherit; }
.wb button { cursor: pointer; background: transparent; border:0; }
.wb :focus-visible { outline: 2px solid #1879b2; outline-offset: 3px; position: relative; z-index: 2; }
.wb h3, .wb dt, .wb-case-label, .wb-marker, .wb-proof span { font-family: Inter, sans-serif; }
.wb-catalogue {
  display: grid;
  grid-template-columns: minmax(235px, 33%) minmax(0,1fr);
  border:0;
  border-radius:0;
  background: linear-gradient(125deg, #fff 35%, #f5f9fb);
}
.wb-list { background: #f4f8fa; border-radius:0; padding: 12px 0; border:0; }
.wb-list button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; text-align: left; gap: 10px;
  position: relative; padding: 12px clamp(16px,2vw,30px); min-height: 52px; color: var(--wb-copy);
  font-size: clamp(.95rem,1.2vw,1.12rem); line-height: 1.3; transition: color .2s, background-color .2s;
}
.wb-list button svg { flex-shrink: 0; opacity: 0; transform: translateX(-3px); transition: opacity .2s, transform .2s; }
.wb-list button:hover { color: var(--wb-blue); }
.wb-list button[aria-selected=true] { color: var(--wb-blue); font-weight: 600; background: #e3eff6; box-shadow:none; }
.wb-list button[aria-selected=true] svg { opacity: 1; transform: none; }
.wb-picker { display: none; }
.wb-detail { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px,4vw,62px); }
.wb-detail h3, .wb-trace-detail h3 { margin: 0; font-size: clamp(1.55rem,2.7vw,2.65rem); font-weight: 500; letter-spacing: -.05em; line-height: 1.12; color: var(--wb-ink); }
.wb .wb-intro, .wb-reading p, .wb-facts dd { font-size: clamp(1rem,1.26vw,1.13rem); line-height: 1.48; margin: .7em 0 0; color: var(--wb-copy); max-width: 64ch; }
.wb-facts { margin: 22px 0 14px; }
.wb-facts div { display: grid; grid-template-columns: minmax(110px,28%) 1fr; gap: 18px; border:0; padding: 14px 0; }
.wb-facts dt, .wb-proof span { font-size: .83rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.5; }
.wb-facts dd { margin: 0; font-size: 1rem; }
.wb .wb-action { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0; font-weight: 650; color: var(--wb-blue); }

.wb-case { border:0; padding-block: clamp(18px,2.6vw,34px); }
.wb-case-header { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.wb-case-label { font-size: 1.04rem; font-weight: 600; }
.wb-routes { display: inline-flex; padding: 3px; border:0; border-radius:0; background: #edf4f7; }
.wb-routes button { min-height: 36px; padding: 5px 15px; border-radius:0; color: var(--wb-copy); font-size: .94rem; }
.wb-routes button[aria-pressed=true] { background: #fff; color: var(--wb-blue); box-shadow: 0 1px 4px #1e536024; font-weight: 650; }
.wb-track { display: grid; grid-template-columns: repeat(var(--wb-steps),minmax(0,1fr)); margin: clamp(24px,4vw,54px) 0 clamp(20px,3vw,38px); }
.wb-track button { position: relative; text-align: left; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; font-size: 1rem; color: var(--wb-copy); padding: 0 4px; }
.wb-track button::before { content: ''; position: absolute; left: 42px; right: -2px; top: 17px; height: 1px; background: var(--wb-line); }
.wb-track button:last-child::before { display: none; }
.wb-marker { display: grid; place-items: center; width: 35px; height: 35px; font-size: .72rem; font-variant-numeric: tabular-nums; border:0; border-radius:0; background: #fff; transition: color .24s, background-color .24s; }
.wb-track button[aria-selected=true] { color: var(--wb-blue); font-weight: 650; }
.wb-track button[aria-selected=true] .wb-marker { background: var(--wb-blue); color: white; border:0; }
.wb-trace-detail { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: clamp(18px,4vw,56px); padding: clamp(22px,3.6vw,44px); border-radius:0; background: #edf5f9; border:0; }
.wb-trace-detail h3 { font-size: clamp(1.42rem,2.2vw,2rem); }
.wb-proof { align-self: center; display: grid; gap: 7px; padding-left: clamp(18px,3vw,36px); border:0; }
.wb-proof span { color: var(--wb-blue); }
.wb-proof strong { font-weight: 500; line-height: 1.4; font-size: 1.1rem; }
@media (prefers-reduced-motion:no-preference) {
  .wb-detail-inner, .wb-reading { animation: wb-show .28s ease-out both; }
  @keyframes wb-show { from { opacity: .55; transform: translateY(3px); } }
}
@media (max-width:720px) {
  .wb-catalogue { display: block; }
  .wb-list { display: none; }
  .wb-picker { display: flex; flex-direction: column; gap: 4px; border:0; background: #eff5f8; border-radius:0; padding: 14px 20px; font-size: .82rem; }
  .wb-picker select { width: 100%; min-height: 36px; font-size: 1.02rem; font-weight: 600; border:0; background: transparent; color: var(--wb-blue); padding: 0; }
  .wb-detail { padding: 25px 20px 16px; }
  .wb-facts div { display: block; }
  .wb-facts dd { margin-top: .35rem; }
  .wb-track { column-gap: 0; }
  .wb-track button { font-size: .84rem; align-items: center; text-align: center; padding: 0; }
  .wb-track button::before { display:none; }
  .wb-trace-detail { grid-template-columns: 1fr; }
  .wb-proof { padding: 14px 0 0; border:0; border:0; }
}
@media (max-width:460px) {
  .wb-case-header { align-items: flex-start; flex-direction: column; }
  .wb-track { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px 0; }
  .wb-track button:nth-child(3n)::before { display: none; }
}
@media (prefers-reduced-motion:reduce) { .wb * { transition: none !important; } }

.wb .wb-routes { max-width:100%; }
.wb .wb-routes button { min-height:44px; white-space:normal; }
.wb :is(.wb-reading,.wb-detail,.wb-proof,.wb-facts dd,.wb-track button) { min-width:0; overflow-wrap:break-word; }
@media (max-width:460px) {
  .wb .wb-routes { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; }
  .wb .wb-routes button { padding-inline:6px; }
  .wb .wb-track:has(> button:nth-child(4):last-child) { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
