.world-workspace {
  flex: 1 1 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(265px, 25vw, 360px);
  gap: 16px;
}
.world-map {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #afa98c;
  background: #e8e2cb;
  isolation: isolate;
}
.world-map > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.world-marker {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%);
  gap: 3px;
  color: #26392e;
}
.world-marker strong {
  font: 700 clamp(15px, 1.5vw, 22px)/1.25 var(--serif);
  background: #fbf1d9f5;
  border: 1px solid #958763;
  padding: 3px 9px;
  white-space: nowrap;
  box-shadow: 0 2px 5px #43422a28;
}
.world-dot {
  height: 11px;
  width: 11px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid #f8ebc8;
  box-shadow: 0 1px 3px #293a2b;
}
.world-marker.selected strong {
  background: var(--red);
  color: #fff2d7;
  border-color: var(--red);
}
.world-marker.selected .world-dot {
  background: var(--red);
  outline: 1px solid var(--red);
}
.world-caption {
  position: absolute;
  bottom: 8px;
  left: 10px;
  background: #f4efddd9;
  color: #354437;
  padding: 1px 6px;
  font-size: 12px;
}
.volume-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: clamp(6px, 1.6dvh, 18px);
  border: 1px solid var(--hair);
  border-top: 3px solid var(--teal);
  padding: clamp(12px, 2.15vw, 32px);
  background: var(--panel);
}
.volume-panel h2 {
  font-size: clamp(26px, 3.5vw, 45px);
  line-height: 1.16;
}
.field-label,
.jump-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--dim);
}
.field-label select,
.jump-label select,
.catalog-filter,
.reader-area-select {
  min-width: 0;
  max-width: 100%;
  border: 1px solid #c7c7b8;
  background: var(--panel);
  color: var(--teal);
  padding: 5px 8px;
  font: 15px/1.4 var(--sans);
  border-radius: 2px;
}
.field-label select {
  flex: 1 1 0;
  width: 0;
}
.volume-summary {
  font-size: 15px;
  color: var(--dim);
  line-height: 1.72;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}
.volume-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.world-groups {
  flex: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 10px;
  border: 1px solid var(--hair);
  background: var(--panel);
}
.world-group {
  border-right: 1px solid var(--hair);
  padding: 9px 2px;
  text-align: center;
  font: 700 18px/1.35 var(--serif);
  white-space: nowrap;
}
.world-group:last-child {
  border: 0;
}
.world-group.selected {
  background: #e4ebdc;
  box-shadow: inset 0 -3px var(--teal);
  color: var(--teal);
}
.sea-record {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: min(70%, 330px);
  padding: 9px 15px;
  display: flex;
  flex-direction: column;
  background: #f8f1def2;
  border-left: 3px solid var(--red);
  pointer-events: none;
}
.sea-record small,
.sea-record span {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.45;
}
.sea-record strong {
  font-family: var(--serif);
  font-size: 22px;
}
.marker.many:not(:hover):not(:focus-visible):not([aria-pressed="true"])
  .pin-name {
  display: none;
}
.marker.many .point {
  width: 10px;
  height: 10px;
}
.itinerary .route-list {
  grid-template-columns: repeat(var(--stops, 9), minmax(0, 1fr));
}
.itinerary .route-stop span,
.itinerary .route-stop small,
.map-peek strong,
.card-txt strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.itinerary .station-select.long-route {
  display: inline-block;
  max-width: 50%;
  border: 1px solid var(--hair);
  color: var(--teal);
  background: var(--panel);
  font: 14px var(--sans);
}
.reader-topline .reader-area {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--dim);
  font-size: 13px;
  min-width: 0;
}
.reader-topline .reader-area-select {
  display: block;
  width: min(30vw, 190px);
  max-width: 100%;
  font-size: 14px;
}
.reader-topline .passage-picker {
  max-width: 40%;
}
.reader-nav a,
.reader-nav h2 {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.sheet-flow .jump-label {
  margin-top: 12px;
}
.jump-label select {
  flex: 1 1 0;
  width: 0;
}
.result {
  min-width: 0;
}
.result strong,
.result span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.result span {
  flex: none;
  max-width: 47%;
}
.catalog-filter {
  margin-left: auto;
  font-size: 14px;
}
.product-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 730px) and (max-aspect-ratio: 1/1) {
  .world-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 6px;
  }
  .volume-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 9px;
    padding: 8px 10px;
  }
  .volume-panel .kicker,
  .volume-panel h2 {
    display: none;
  }
  .volume-summary {
    grid-column: 1/-1;
    line-height: 1.4;
    font-size: 13px;
    -webkit-line-clamp: 2;
  }
  .volume-actions {
    grid-column: 1/-1;
  }
  .volume-actions .primary-action {
    padding: 4px 9px;
  }
  .world-group {
    font-size: 14px;
    padding: 7px 0;
  }
  .world-groups {
    margin-top: 6px;
  }
  .field-label {
    font-size: 12px;
    gap: 4px;
  }
  .field-label select {
    font-size: 13px;
    padding: 4px 2px;
  }
  .world-marker strong {
    font-size: 14px;
    padding: 2px 6px;
  }
}
@media (max-width: 620px) {
  .reader-area span {
    display: none;
  }
  .reader-topline {
    gap: 4px;
  }
  .reader-topline .reader-area-select {
    max-width: 27vw;
    font-size: 12px;
    padding: 4px 2px;
  }
  .reader-topline .source-link {
    font-size: 11px;
  }
  .catalog-filter {
    padding: 3px 4px;
    font-size: 13px;
    max-width: 32%;
  }
  .sea-record {
    left: 6px;
    bottom: 6px;
    padding: 5px 8px;
    width: 60%;
  }
  .sea-record strong {
    font-size: 18px;
  }
}
@media (max-height: 550px) {
  .volume-panel {
    padding: 7px 10px;
    gap: 4px;
  }
  .volume-panel .kicker {
    display: none;
  }
  .volume-panel h2 {
    font-size: 22px;
  }
  .volume-summary {
    -webkit-line-clamp: 1;
    font-size: 13px;
  }
  .world-workspace {
    gap: 7px;
  }
  .world-groups {
    margin-top: 4px;
  }
  .world-group {
    font-size: 15px;
    padding: 4px 0;
  }
  .volume-actions .primary-action {
    padding: 3px 8px;
  }
  .field-label select {
    padding-block: 2px;
  }
}
@media (max-height: 420px) and (min-aspect-ratio: 1/1) {
  .volume-panel h2,
  .volume-summary {
    display: none;
  }
  .world-workspace {
    grid-template-columns: minmax(0, 1fr) 218px;
  }
}
.sea-index {
  position: absolute;
  left: 12px;
  top: 12px;
  max-width: calc(100% - 24px);
  padding: 5px 8px 7px;
  background: #f8f1def2;
  border-top: 2px solid var(--teal);
}
.sea-index small {
  font: 12px var(--sans);
  color: var(--dim);
}
.sea-index > div,
.sea-relations {
  display: flex;
  gap: 6px;
  align-items: center;
}
.sea-index > div {
  margin-top: 3px;
}
.sea-stop,
.sea-bearing {
  min-width: 0;
  max-width: 15em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font: 600 15px/1.5 var(--serif);
  border-bottom: 1px solid #8f9c88;
}
.sea-stop.current {
  color: var(--red);
  border-color: var(--red);
}
.sea-bearing {
  pointer-events: auto;
  font-size: 13px;
  color: var(--teal);
}
.sea-record span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reader-topline .passage-picker.long-passage {
  display: block;
  min-width: 0;
  max-width: min(22vw, 170px);
}
.reader-topline h2 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-title h2 {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 620px) {
  .reader-topline .passage-picker.long-passage {
    max-width: 37%;
  }
  .sea-index {
    left: 6px;
    top: 6px;
  }
  .sea-stop {
    max-width: 5.8em;
    font-size: 13px;
  }
  .sea-record {
    max-width: calc(100% - 95px);
  }
}
@media (max-height: 440px) and (min-aspect-ratio: 1/1) {
  .sea-index {
    top: 4px;
    left: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 1px 4px;
  }
  .sea-index > div {
    margin: 0;
  }
  .sea-record {
    left: 5px;
    bottom: 4px;
    width: auto;
    max-width: 65%;
    padding: 2px 6px;
  }
  .sea-record > small,
  .sea-record > span {
    display: none;
  }
  .sea-record strong {
    font-size: 14px;
    line-height: 1.1;
  }
}
.bearing-plot {
  position: absolute;
  top: 19%;
  bottom: 25%;
  left: 8%;
  right: 8%;
  pointer-events: none;
}
.bearing-plot svg {
  position: absolute;
  width: 100%;
  height: 100%;
}
.bearing-plot path {
  fill: none;
  stroke: #8d412b;
  stroke-width: 2.7;
  stroke-dasharray: 5 4;
  vector-effect: non-scaling-stroke;
}
.bearing-pin {
  position: absolute;
  pointer-events: auto;
  transform: translate(-50%, -5px);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 3px;
  max-width: 48%;
}
.bearing-pin i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #fff0c5;
  background: var(--teal);
  box-shadow: 0 0 0 1px #54664e;
}
.bearing-pin strong {
  padding: 1px 7px;
  background: #fcf0d9ed;
  font: 700 clamp(14px, 1.3vw, 19px)/1.3 var(--serif);
  color: #243f35;
  white-space: nowrap;
}
.bearing-pin.current i,
.bearing-pin.current strong {
  background: var(--red);
  color: #fbf2d7;
}
@media (max-height: 440px) and (min-aspect-ratio: 1/1) {
  .bearing-plot {
    display: none;
  }
}
.water-detail h3 {
  margin: 0;
  font: 700 21px/1.4 var(--serif);
}
.water-detail blockquote {
  margin: 6px 0;
  color: var(--ink);
  font: 17px/1.6 var(--serif);
}
.water-detail .jump-label {
  margin-top: 8px;
}
@media (max-width: 420px) {
  .map-tabs {
    gap: 10px;
  }
}
.atlas-grid .map-prose {
  flex: 1 1 0;
  min-height: 0;
}
.station-pages {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  font: 11px/1 var(--sans);
  color: var(--dim);
  white-space: nowrap;
}
.station-pages[hidden] {
  display: none;
}
.station-pages button {
  padding: 0 4px;
  min-width: 21px;
  height: 23px;
  line-height: 1;
  font-size: 19px;
  border: 1px solid var(--hair);
  background: var(--panel);
  color: var(--teal);
}
.station-pages button:disabled {
  opacity: 0.4;
}
.atlas-grid .is-paged {
  display: block;
  column-count: 1;
  column-fill: auto;
  column-gap: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.is-paged .map-summary,
.is-paged .water-detail {
  display: contents;
}
.is-paged .map-plate-preview {
  display: none;
}
.is-paged p,
.is-paged blockquote {
  widows: 1;
  orphans: 1;
}
.reader-topline .script-toggle {
  flex: none;
  padding: 3px 7px;
  border: 1px solid var(--hair);
  background: var(--panel);
  color: var(--teal);
  font: 13px/1.4 var(--sans);
  border-radius: 2px;
}
.reader-topline .script-toggle[aria-pressed="true"] {
  border-color: var(--teal);
  background: #e9eddc;
}
.reader-topline .source-link {
  white-space: nowrap;
  flex: none;
}
@media (max-width: 480px) {
  .reader-topline .script-toggle {
    font-size: 11px;
    padding: 4px 3px;
  }
  .reader-topline .reader-area-select {
    max-width: 24vw;
  }
  .reader-topline .passage-picker.long-passage {
    max-width: 30%;
  }
}
