.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.visual { position: relative; border: 1px solid #dce0d5; background: #f1f2e9; overflow: hidden; border-radius: 4px 4px 0 0; }
.visual svg { display: block; width: 100%; height: auto; }
.map-frame { background: #edf1eb; }
.map-svg { max-height: 530px; }
.map-water { fill: #e2eeeb; stroke: #c6d6d0; stroke-width: 1; }
.map-land { fill: #d3d8c7; stroke: #9fae9b; stroke-width: .9; stroke-linejoin: round; }
.graticule { stroke: #c9dbd5; stroke-width: 1; }
.equator { stroke: #bacfc5; stroke-width: 1.1; stroke-dasharray: 4 5; }
.coordinate-label { fill: #7c918b; font: 12px Georgia, serif; }
.land-label { fill: #667960; font-size: 19px; letter-spacing: 3px; }
.ocean-label { fill: #7f9f98; font-size: 20px; letter-spacing: 5px; }
.route-underlay { stroke: #fffefa; stroke-width: 7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map-route { stroke: var(--red); stroke-width: 3.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map-pin circle { fill: var(--red); stroke: #fffdf4; stroke-width: 3; }
.map-pin.current circle { stroke-width: 4; }
.pin-number { fill: white; font: bold 15px Arial, sans-serif; }
.pin-label { fill: #324c4b; font-size: 19px; font-weight: bold; paint-order: stroke; stroke: #edf1eb; stroke-width: 5px; stroke-linejoin: round; }
.north-line { stroke: #6b8075; stroke-width: 1.3; }
.north-arrow { fill: #6b8075; }
.north-label { fill: #5b756c; font-size: 16px; }
.map-note { fill: #6f827a; font-size: 13px; letter-spacing: 1px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 9px 22px; list-style: none; padding: 13px 25px; margin: 0; border-top: 1px solid #d5ded2; }
.map-legend li { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #4d685e; }
.map-legend li span { background: var(--red); color: white; border-radius: 50%; width: 17px; height: 17px; text-align: center; font: 11px/17px Arial, sans-serif; }
.step-detail {
  display: flex; gap: 19px; align-items: flex-start; padding: 20px 25px; background: var(--white);
  border: 1px solid #dce0d5; border-top: 0; border-radius: 0 0 4px 4px; min-height: 105px;
}
.detail-number { font: 33px Georgia, serif; line-height: 1.2; color: var(--red); min-width: 39px; }
.detail-content h3 { font-size: 12px; color: var(--teal); font-weight: 600; margin-bottom: 4px; }
.detail-content p { font-size: 18px; line-height: 1.8; }
.detail-content .step-empty { font-size: 14px; color: var(--muted); padding-top: 6px; }
.sequence { padding: 34px 29px; list-style: none; margin: 0; min-height: 330px; display: grid; gap: 22px; align-items: stretch; }
.sequence-item { background: var(--white); padding: 23px 20px; position: relative; border: 1px solid #d9ded2; border-radius: 3px; min-width: 0; }
.sequence-number { display: block; font: 30px Georgia, serif; color: var(--gold); line-height: 1.2; margin-bottom: 20px; }
.sequence-item h3 { font-size: 18px; line-height: 1.75; margin-bottom: 12px; overflow-wrap: anywhere; }
.sequence-item p { font-size: 13px; line-height: 1.95; color: #60726b; }
.sequence-item.current { border-color: #839d8c; box-shadow: inset 0 3px 0 var(--teal); }
.sequence-item.unrevealed { border: 1px dashed #cbd4c5; background: transparent; }
.unrevealed .sequence-number { color: #a7b4a4; }
.pending-line { display: block; background: #dde3d7; width: 76%; height: 6px; margin: 12px 0; border-radius: 1px; }
.pending-line.short { width: 49%; }
.sequence-compare { grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sequence-compare:has(.sequence-item:nth-child(4)) { grid-template-columns: repeat(2, 1fr); }
.sequence-compare .sequence-item { border-top: 4px solid #99b6a5; }
.sequence-compare .sequence-item:nth-child(2n) { border-top-color: #b9a46b; }
.sequence-compare .sequence-item:nth-child(3n) { border-top-color: #b78872; }
.sequence-compare .sequence-number { font-size: 22px; margin-bottom: 15px; }
.sequence-flow { grid-template-columns: repeat(3, 1fr); gap: 28px; align-content: center; }
.sequence-flow:has(.sequence-item:nth-child(4)) { grid-template-columns: 1fr; gap: 26px; }
.sequence-flow:has(.sequence-item:nth-child(4)) .sequence-item { display: grid; grid-template-columns: 50px 1fr; gap: 4px 20px; padding: 19px 24px; }
.sequence-flow:has(.sequence-item:nth-child(4)) .sequence-number { grid-row: 1 / 3; margin-bottom: 0; }
.sequence-flow:has(.sequence-item:nth-child(4)) h3 { margin-bottom: 0; }
.sequence-flow:has(.sequence-item:nth-child(4)) p { grid-column: 2; }
.sequence-flow .sequence-item:not(:last-child)::after {
  content: "→"; color: #8a9f8e; position: absolute; right: -26px; top: 50%; transform: translateY(-50%); font-size: 23px; font-weight: normal;
}
.sequence-flow:has(.sequence-item:nth-child(4)) .sequence-item:not(:last-child)::after {
  content: "↓"; right: auto; left: 50%; top: auto; bottom: -32px; transform: none;
}
.sequence-timeline { display: flex; flex-direction: column; gap: 0; padding: 25px 42px; }
.sequence-timeline .sequence-item { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 17px 0 23px 67px; min-height: 95px; }
.sequence-timeline .sequence-item:not(:last-child)::before { content: ""; width: 1px; position: absolute; left: 20px; top: 38px; bottom: -37px; background: #bacbb9; }
.sequence-timeline .sequence-number {
  position: absolute; left: 0; top: 17px; font-size: 21px; background: #f1f2e9;
  border: 1px solid #cbd6c5; border-radius: 50%; width: 41px; height: 41px; display: grid; place-items: center;
}
.sequence-timeline .revealed .sequence-number { color: var(--white); background: var(--teal); border-color: var(--teal); }
.sequence-timeline h3 { font-size: 19px; margin: 0 0 3px; }
.sequence-timeline p { font-size: 14px; }
.sequence-timeline .pending-line { max-width: 170px; margin: 13px 0; }
.network-svg { max-height: 450px; }
.network-line { stroke: #8ea797; stroke-width: 2; }
.network-pending-line { stroke: #d2dccd; stroke-width: 1.5; stroke-dasharray: 4 5; }
.network-hub { fill: var(--teal); }
.network-hub-title { fill: #fffef7; font-size: 20px; font-weight: bold; }
.network-node rect { fill: #f1f2e9; stroke: #c8d3c4; stroke-width: 1.5; stroke-dasharray: 4 4; }
.network-node.revealed rect { fill: var(--white); stroke: #b6c7b5; stroke-dasharray: none; }
.network-node.current rect { stroke: var(--teal); stroke-width: 2.5; }
.network-label { fill: var(--ink); font-size: 19px; font-weight: bold; }
.network-number { fill: var(--gold); font: 16px Georgia, serif; }
.network-placeholder { stroke: #d5dece; stroke-width: 5; }
.network-mobile { display: none; }
.projecting .map-frame { --project-map-font: clamp(24px, calc(80px - 5.2vh), 40px); }
.projecting .map-svg { height: max(310px, calc(100dvh - 430px)); max-height: none; }
.projecting .pin-label { font-size: var(--project-map-font); transform: translateX(14px); }
.projecting .pin-label-1 { text-anchor: start; transform: translateX(58px); }
.projecting .pin-number {
  font-size: var(--project-map-font); dominant-baseline: central; transform: translateY(-5px);
}
.projecting .map-pin circle { r: calc(var(--project-map-font) * .75); }
.projecting .land-label, .projecting .ocean-label { font-size: var(--project-map-font); }
.projecting .map-legend { padding: 9px 18px; gap: 8px 22px; }
.projecting .map-legend li { font-size: 18px; }
.projecting .map-legend li span { width: 25px; height: 25px; font-size: 18px; line-height: 25px; }
.projecting .detail-content h3 { font-size: 18px; }
.projecting .network-svg { max-height: max(310px, 40vh); }
.projecting .sequence-item h3 { font-size: 22px; }
.projecting .sequence-item p { font-size: 16px; }
@media (max-width: 1050px) {
  .sequence { padding: 28px 23px; }
  .sequence-compare { gap: 11px; }
  .sequence-item { padding: 21px 15px; }
  .sequence-item h3 { font-size: 16px; }
  .sequence-item p { font-size: 12px; }
}
@media (max-width: 520px) {
  .map-svg { min-height: 310px; }
  .map-legend { padding: 12px 15px; gap: 8px 15px; }
  .pin-label { font-size: 24px; }
  .step-detail { padding: 17px 16px; gap: 13px; min-height: 111px; }
  .detail-number { font-size: 28px; min-width: 32px; }
  .detail-content p { font-size: 16px; }
  .detail-content h3 { font-size: 11px; }
  .sequence { padding: 23px 19px; }
  .sequence-compare, .sequence-compare:has(.sequence-item:nth-child(4)) { grid-template-columns: 1fr; gap: 12px; }
  .sequence-item { padding: 17px 19px; }
  .sequence-item h3 { font-size: 18px; margin-bottom: 7px; }
  .sequence-item p { font-size: 14px; }
  .sequence-number, .sequence-compare .sequence-number { font-size: 20px; margin-bottom: 10px; }
  .sequence-item.unrevealed { min-height: 100px; }
  .sequence-item.unrevealed .pending-line { max-width: 150px; }
  .sequence-flow, .sequence-flow:has(.sequence-item:nth-child(4)) { grid-template-columns: 1fr; gap: 27px; }
  .sequence-flow:has(.sequence-item:nth-child(4)) .sequence-item { display: block; padding: 17px 19px; }
  .sequence-flow:has(.sequence-item:nth-child(4)) .sequence-number { margin-bottom: 10px; }
  .sequence-flow .sequence-item:not(:last-child)::after,
  .sequence-flow:has(.sequence-item:nth-child(4)) .sequence-item:not(:last-child)::after {
    content: "↓"; right: auto; left: calc(50% - 6px); top: auto; bottom: -33px; transform: none;
  }
  .sequence-timeline { padding: 20px 17px; }
  .sequence-timeline .sequence-item { padding-left: 55px; }
  .sequence-timeline .sequence-item.unrevealed { min-height: 93px; }
  .network-svg { display: none !important; }
  .network-mobile { display: block; padding: 25px 22px; }
  .network-mobile-hub { padding: 16px; border-radius: 3px; background: var(--teal); color: white; font-size: 17px; text-align: center; }
  .network-mobile-items { margin: 0 0 0 23px; padding: 18px 0 0 22px; list-style: none; border-left: 1px solid #a6b9a6; }
  .network-mobile-items li { position: relative; padding: 14px; margin-bottom: 12px; border: 1px solid #b8c9b7; background: var(--white); font-size: 16px; }
  .network-mobile-items li::before { content: ""; width: 22px; position: absolute; top: 50%; left: -23px; height: 1px; background: #a6b9a6; }
}
@media print {
  .sequence { min-height: 0; padding: 15px; }
  .sequence-item { padding: 13px; }
  .sequence-item h3 { font-size: 12pt; }
  .sequence-item p { font-size: 9pt; }
  .step-detail { min-height: 0; padding: 13px 18px; }
}
