:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  color: #e6e9e1;
  background: #081820;
  font-synthesis: none;
  --muted: #9bafb3;
  --amber: #e8ba7b;
  --line: #81989935;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--amber);
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #f4d19d;
  outline-offset: 5px;
}
main {
  max-width: 1800px;
  margin: auto;
}
.masthead {
  margin: 0 4.5%;
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.wordmark {
  display: inline-block;
  min-height: 44px;
  padding: 14px 0 14px 54px;
  background: url("./atlas-schooner-star.svg") left center / 44px 44px no-repeat;
  letter-spacing: 0.16em;
  font-size: 12px;
  line-height: 16px;
}
.wordmark span {
  color: #6d878c;
  margin: 0 12px;
}
.masthead > a:last-child {
  color: var(--muted);
}
.intro {
  padding: 42px 4.5% 30px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.19em;
  color: var(--amber);
  font-weight: 400;
  margin: 0 0 15px;
}
h1 {
  font:
    normal clamp(40px, 4.5vw, 78px) / 1.05 Georgia,
    serif;
  letter-spacing: -0.04em;
  margin: 0;
}
h1 em {
  font-weight: 400;
  color: #c6d4cf;
}
h2 {
  font:
    normal 32px/1.15 Georgia,
    serif;
  letter-spacing: -0.02em;
}
.dek {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
  max-width: 300px;
}
.atlas {
  margin: 0 2%;
  border: 1px solid var(--line);
  background: #0a1c25;
  position: relative;
}
.map-topline {
  position: absolute;
  z-index: 1;
  top: 22px;
  left: 28px;
  right: 28px;
  display: flex;
  justify-content: space-between;
  letter-spacing: 0.15em;
  font-size: 12px;
  color: #a4b6b9;
  pointer-events: none;
}
.map-topline span:last-child {
  margin-right: 28px;
}
.atlas-body {
  display: flex;
}
.map-stage {
  flex: 1;
  min-width: 0;
  height: clamp(460px, 48vw, 740px);
  position: relative;
  overflow: hidden;
}
.wreck-log {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: #081820;
  /* The map sets the height; the list scrolls inside it. */
  contain: size;
}
.log-head {
  padding: 20px 20px 12px;
  border-bottom: 1px solid var(--line);
}
.log-head .eyebrow {
  margin: 0 0 6px;
}
.log-head span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
#log-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin: 0;
  padding: 6px 0;
  list-style: none;
}
#log-list button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 4px 16px 4px 20px;
  background: transparent;
  border: 0;
  color: #c6d1cd;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
}
#log-list .name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#log-list .yr {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
/* Flags keep their own proportions at one height; a thin dark edge keeps white fields visible. */
img.flag {
  height: 11px;
  width: auto;
  flex-shrink: 0;
  border-radius: 1px;
  box-shadow: 0 0 0 1px #0000004d;
}
img.flag[hidden] {
  display: none;
}
#log-list i,
.log-key i {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--amber);
}
#log-list .unplaced i,
.log-key .hollow {
  background: transparent;
  border: 1px solid #849da5;
}
#log-list .unplaced .name {
  color: #a9b9bc;
}
/* New names glow gold for a moment; --heat runs from 1 to 0, set each frame from the clock.
   Only the map pings turn red. */
#log-list button {
  --heat: 0;
  background: rgb(232 186 123 / calc(var(--heat) * 0.1));
  color: color-mix(in srgb, #fff1cf calc(var(--heat) * 100%), #c6d1cd);
}
#log-list .yr {
  color: color-mix(in srgb, #e8ba7b calc(var(--heat) * 100%), #9bafb3);
}
.legend .new {
  background: #f0483a;
  box-shadow: 0 0 8px #f0483a88;
}
#log-list button:hover .name {
  color: var(--amber);
}
.log-key {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  padding: 12px 20px 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: #b6c3c3;
}
.log-key span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.log-key .flag-note {
  color: var(--muted);
  line-height: 1.5;
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}
.map-note {
  position: absolute;
  left: 28px;
  bottom: 25px;
  font:
    italic 19px/1.6 Georgia,
    serif;
  color: #c2cfca;
  pointer-events: none;
}
.map-note span {
  font:
    12px Arial,
    sans-serif;
  color: #9aafb4;
}
.explore {
  position: absolute;
  right: 26px;
  bottom: 28px;
  background: #0b2029e8;
  border: 1px solid #78919477;
  color: #dbe4df;
  padding: 13px 17px;
  font-size: 13px;
}
.explore span {
  margin-left: 20px;
  color: var(--amber);
}
.legend {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 28px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: #b6c3c3;
  flex-wrap: wrap;
}
.legend > span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.legend-note {
  margin-left: auto;
  color: #849da5;
  font-size: 12px;
}
.legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}
.dot {
  background: var(--amber);
  border-radius: 100%;
  box-shadow: 0 0 8px #edb36666;
}
.ring {
  border: 1px solid var(--amber);
  border-radius: 100%;
}
.legend .diamond {
  width: 7px;
  height: 7px;
  background: var(--amber);
  transform: rotate(45deg);
  box-shadow: 0 0 6px #edb36666;
}
.legend .area {
  width: 15px;
  height: 15px;
  border: 1px dashed var(--amber);
  border-radius: 100%;
}
.legend button.event {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid #e8ba7b88;
  color: #f1cf9c;
  font-size: 12px;
}
.legend button.event[hidden] {
  display: none;
}
.legend .burst {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.map-style {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 28px 16px;
  font-size: 12px;
  color: #b6c3c3;
}
.map-style[hidden] {
  display: none;
}
.map-style span {
  margin-right: 4px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.map-style button {
  min-height: 32px;
  padding: 5px 11px;
  background: transparent;
  border: 1px solid #58737a;
  color: #dbe5de;
  font-size: 12px;
}
.map-style button[aria-pressed="true"] {
  border-color: var(--amber);
  background: #1a2f36;
  color: #fff1cf;
}
.filters[hidden] {
  display: none;
}
.filter-note {
  margin: -6px 0 0;
  padding: 0 28px 16px;
  font-size: 12px;
  color: #b6c3c3;
}
.filter-note[hidden] {
  display: none;
}
.timeline {
  padding: 27px 4.5% 30px;
}
.time-heading {
  display: flex;
  align-items: center;
  gap: 44px;
}
.year-wrap {
  display: flex;
  flex-direction: column;
}
.year-wrap .eyebrow {
  font-size: 12px;
  margin: 0 0 4px;
  color: var(--muted);
}
#year {
  font:
    normal 69px/0.98 Georgia,
    serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
  color: #f1cf9c;
}
.count-wrap {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  padding-left: 35px;
}
.count-wrap strong {
  font-size: 31px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.count-wrap span,
.coverage > span {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.count-wrap .unplaced {
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.coverage {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  text-align: right;
}
.coverage strong {
  font-size: 22px;
  font-weight: 400;
}
.coverage strong span {
  color: #93a9ae;
}
.coverage strong b {
  font-weight: 400;
}
.coverage a {
  font-size: 12px;
  color: var(--amber);
  margin-top: 10px;
}
.transport {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 25px;
}
.transport button {
  min-height: 44px;
  border: 0;
}
.primary {
  background: var(--amber);
  color: #10212a;
  min-width: 108px;
  padding: 12px 22px;
}
.replay {
  background: transparent;
  color: #b2c0c1;
  font-size: 18px;
  padding: 8px;
}
.replay span {
  font-size: 12px;
  margin-left: 4px;
}
.track {
  flex: 1;
  padding-top: 17px;
  min-width: 0;
}
input[type="range"] {
  width: 100%;
  display: block;
  margin: 0;
  height: 6px;
  appearance: none;
  background: linear-gradient(
    to right,
    var(--amber) var(--progress, 0%),
    #37505b var(--progress, 0%)
  );
  border-radius: 0;
  cursor: pointer;
  touch-action: pan-y;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border: 2px solid #f3d4a5;
  border-radius: 50%;
  background: #ebbd7c;
  box-shadow: 0 0 12px #d9ab6840;
}
input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--amber);
  border: 1px solid #f3d4a5;
  border-radius: 50%;
}
.ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  color: #8fa6ad;
  font-size: 12px;
}
.ticks span:nth-child(2) {
  margin-left: 6%;
}
#play-state {
  font-size: 12px;
  color: var(--muted);
  min-width: 118px;
  text-align: right;
}
.busiest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 22px;
}
.busiest[hidden] {
  display: none;
}
.busiest .eyebrow {
  margin: 0;
  color: var(--muted);
}
#busiest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#busiest-list button {
  min-height: 36px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--line);
  color: #dbe4df;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
#busiest-list button:hover {
  border-color: var(--amber);
}
.busiest p {
  width: 100%;
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
#motion-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.about {
  border-top: 1px solid var(--line);
  margin: 10px 4.5% 0;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1.3fr;
  gap: 55px;
}
.about h2 {
  margin: 0;
  color: #d7e0d9;
}
.about p:not(.eyebrow) {
  font-size: 14px;
  color: #9fb1b5;
  line-height: 1.8;
  margin: 0 0 16px;
}
.about strong {
  color: #d2ddd9;
  font-weight: 400;
}
.method-link {
  font-size: 13px;
  color: var(--amber);
}
footer {
  margin: 0 4.5%;
  padding: 25px 0 34px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 25px;
  color: #839ca5;
  font-size: 12px;
  line-height: 1.8;
}
footer p {
  margin: 0;
}
footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
footer p:last-child {
  text-align: right;
  letter-spacing: 0.1em;
  font-size: 12px;
}
footer p span {
  font:
    italic 16px Georgia,
    serif;
  letter-spacing: 0;
  color: #a9babd;
}
.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;
}
.skip {
  position: fixed;
  top: -100px;
  z-index: 10;
  background: var(--amber);
  color: #10212a;
  padding: 14px;
}
.skip:focus {
  top: 5px;
}
#loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  background: #091c25;
  color: #d1c9b7;
  font:
    22px Georgia,
    serif;
  padding: 30px;
  text-align: center;
  line-height: 1.5;
}
#loading[hidden] {
  display: none;
}
#loading button {
  margin: 16px auto;
  padding: 10px 20px;
  background: var(--amber);
  color: #10212a;
  border: 0;
}
#hover {
  position: absolute;
  left: 25px;
  top: 56px;
  background: #06151eee;
  border: 1px solid #b5915d88;
  padding: 12px 16px;
  font-size: 13px;
  color: #e7cb9f;
  pointer-events: none;
  max-width: 320px;
  line-height: 1.5;
}
dialog {
  width: min(1000px, calc(100% - 32px));
  max-height: 90svh;
  padding: 28px;
  border: 1px solid #76929477;
  background: #0c202a;
  color: #dbe5de;
}
dialog::backdrop {
  background: #020b10b8;
  backdrop-filter: blur(4px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-head .eyebrow {
  margin: 0;
}
.dialog-head button {
  background: transparent;
  border: 0;
  color: #dbe5de;
  font-size: 20px;
  padding: 10px;
}
dialog h2 {
  margin: 12px 0;
}
#detail-context {
  color: #a9b9bc;
  font-size: 14px;
  line-height: 1.6;
}
#event-note {
  margin: 4px 0 8px;
  padding: 12px 14px;
  background: #1a2a2e;
  border-left: 2px solid #91a8ad;
  font-size: 13px;
  line-height: 1.6;
  color: #dbe5de;
}
#event-catalogue p {
  margin: 0 0 10px;
}
#event-nearby {
  background: transparent;
  border: 1px solid #78919477;
  color: var(--amber);
  padding: 10px 12px;
  font-size: 13px;
}
dialog label {
  display: block;
  font-size: 13px;
  margin: 20px 0 8px;
}
input[type="search"] {
  width: 100%;
  padding: 12px;
  background: #071820;
  color: #e5e9de;
  border: 1px solid #6f898f;
  font-size: 16px;
}
#results {
  font-size: 12px;
  color: var(--muted);
}
.record-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 25px;
  min-height: 280px;
}
#record-list {
  max-height: 350px;
  overflow: auto;
}
#record-list button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  background: transparent;
  color: #d6e1db;
  border: 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
}
#record-list button[aria-pressed="true"] {
  background: #23404a;
  border-left: 2px solid var(--amber);
}
#record-list small {
  display: block;
  color: #a9bec3;
  font-size: 12px;
}
#record-detail {
  padding: 20px;
  background: #132c35;
  border-top: 2px solid var(--amber);
  align-self: start;
}
#record-detail h3 {
  font:
    24px/1.2 Georgia,
    serif;
  margin: 0 0 16px;
}
#record-detail p {
  font-size: 14px;
  line-height: 1.6;
  margin: 12px 0;
  color: #c1ceca;
}
#record-detail .uncertainty {
  font-size: 13px;
  color: #ebc891;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
#record-detail dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9cafb4;
  margin-top: 14px;
}
#record-detail dd {
  font-size: 15px;
  margin: 6px 0;
  line-height: 1.5;
}
#record-detail dd img.flag,
#event-ships img.flag {
  height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
}
#event-ships img.flag {
  margin-left: 2px;
}
#record-detail dd a {
  color: var(--amber);
  font-size: 13px;
}
#record-detail dd small {
  color: #9cafb4;
  font-size: 12px;
}
#event-ships {
  margin: 0 0 10px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
}
.pagination button {
  background: transparent;
  border: 1px solid var(--line);
  padding: 12px;
  color: #dbe5de;
}
button {
  border-radius: 2px;
}
::selection {
  background: #8b693c;
  color: white;
}
@media (min-width: 1600px) {
  .map-stage {
    height: 750px;
  }
}
@media (max-width: 1100px) {
  /* Narrower screens keep the whole map width; the log sits below it. */
  .atlas-body {
    flex-direction: column;
  }
  .map-stage {
    flex: none;
  }
  .wreck-log {
    width: auto;
    height: 320px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .log-head {
    padding: 14px 16px 10px;
  }
  .log-key {
    padding: 10px 16px;
  }
  .log-key .flag-note {
    font-size: 11px;
  }
}
@media (max-width: 850px) {
  .intro {
    display: block;
    padding-top: 30px;
  }
  .dek {
    margin-top: 20px;
    max-width: none;
    font-size: 13px;
  }
  .dek br {
    display: none;
  }
  .map-stage {
    height: 500px;
  }
  .legend {
    gap: 15px;
    font-size: 12px;
  }
  .legend-note {
    width: 100%;
    margin-left: 0;
  }
  .about {
    gap: 28px;
    grid-template-columns: 1fr 1fr;
  }
  .about > div:first-child {
    grid-column: 1/-1;
  }
  .about h2 br {
    display: none;
  }
  .transport {
    gap: 13px;
  }
  #play-state {
    display: none;
  }
  .coverage strong {
    font-size: 18px;
  }
  .time-heading {
    gap: 24px;
  }
}
@media (max-width: 520px) {
  .masthead {
    padding: 20px 0;
    font-size: 12px;
  }
  .wordmark {
    font-size: 12px;
    letter-spacing: 0.1em;
  }
  .wordmark span {
    margin: 0 4px;
  }
  .wordmark {
    max-width: 190px;
  }
  .masthead > a:last-child {
    max-width: 88px;
    text-align: right;
  }
  .intro {
    padding: 27px 6% 24px;
  }
  h1 {
    font-size: 43px;
    line-height: 1.03;
    max-width: 340px;
  }
  h1 em {
    display: block;
  }
  .eyebrow {
    font-size: 12px;
  }
  .dek {
    font-size: 13px;
    line-height: 1.7;
    max-width: 290px;
  }
  .atlas {
    margin: 0 3%;
  }
  .map-stage {
    height: 400px;
  }
  .map-topline {
    left: 14px;
    right: 14px;
    top: 16px;
    font-size: 12px;
  }
  .map-topline span:last-child {
    display: none;
  }
  .map-note {
    display: none;
  }
  .explore {
    bottom: 14px;
    right: 14px;
    padding: 11px 14px;
  }
  .legend {
    padding: 14px;
    gap: 13px 16px;
    font-size: 12px;
  }
  .legend-note {
    font-size: 12px;
  }
  .timeline {
    padding: 24px 6%;
  }
  .time-heading {
    gap: 20px;
    align-items: start;
    flex-wrap: wrap;
  }
  #year {
    font-size: 63px;
  }
  .count-wrap {
    padding-left: 20px;
    margin-top: 10px;
  }
  .count-wrap strong {
    font-size: 28px;
  }
  .count-wrap span {
    font-size: 12px;
  }
  .coverage {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    text-align: left;
    margin: 0;
  }
  .coverage strong {
    font-size: 15px;
  }
  .coverage > span {
    font-size: 12px;
    margin: 0;
  }
  .coverage a {
    margin: 0;
    font-size: 12px;
  }
  .transport {
    flex-wrap: wrap;
    margin-top: 18px;
    gap: 8px;
  }
  .primary {
    min-width: 95px;
  }
  .replay span {
    display: none;
  }
  .track {
    margin-left: 8px;
  }
  input[type="range"] {
    height: 8px;
  }
  input[type="range"]::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
  }
  .about {
    padding-top: 30px;
    display: block;
    margin: 0 6%;
  }
  .about > div {
    margin-bottom: 24px;
  }
  .about h2 {
    font-size: 29px;
  }
  .about p:not(.eyebrow) {
    font-size: 14px;
  }
  footer {
    margin: 0 6%;
    display: block;
    font-size: 12px;
  }
  footer p:last-child {
    text-align: left;
    margin-top: 22px;
  }
  dialog {
    padding: 20px;
    width: calc(100% - 20px);
    max-height: 94svh;
  }
  .record-layout {
    display: flex;
    flex-direction: column-reverse;
    gap: 15px;
  }
  #record-list {
    max-height: 230px;
  }
  #record-detail {
    width: 100%;
  }
  dialog h2 {
    font-size: 28px;
  }
  #hover {
    left: 14px;
    right: 14px;
    max-width: none;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@media (max-width: 380px) {
  .ticks span:nth-child(2),
  .ticks span:nth-child(4) {
    display: none;
  }
}

/* Readable editorial copy and controls at every viewport. */
.about p:not(.eyebrow) {
  font-size: 16px;
}
.dek {
  font-size: 14px;
}
.legend {
  font-size: 12px;
}
.explore,
.masthead > a:last-child,
.method-link {
  font-size: 14px;
}
.map-topline {
  font-size: 12px;
}
.count-wrap span,
.coverage > span {
  font-size: 12px;
}
.ticks {
  font-size: 12px;
}
@media (max-width: 520px) {
  .wordmark {
    font-size: 12px;
    max-width: 210px;
  }
  .masthead > a:last-child {
    font-size: 12px;
  }
  .dek {
    font-size: 14px;
  }
  .legend {
    font-size: 12px;
  }
  .map-topline {
    font-size: 10px;
  }
  .coverage strong {
    font-size: 16px;
  }
}

/* atlas control dock: essential playback controls stay attached above the map */
.timeline.docked {
  display: grid;
  grid-template-columns: 108px 48px minmax(150px, 0.72fr) minmax(270px, 1.55fr) minmax(220px, 0.9fr);
  grid-template-rows: auto auto;
  gap: 5px 18px;
  align-items: center;
  margin: 0;
  padding: 15px 28px 17px;
  border-bottom: 1px solid var(--line);
  background: #0b2028;
}
.timeline.docked .time-heading,
.timeline.docked .transport { display: contents; }
.timeline.docked .year-wrap { grid-column: 3; grid-row: 1; min-width: 0; }
.timeline.docked .year-wrap .eyebrow { margin-bottom: 3px; }
.timeline.docked #year,
.timeline.docked #day-clock,
.timeline.docked #race-clock { font-size: clamp(30px, 2.8vw, 43px); line-height: 0.95; white-space: nowrap; }
.timeline.docked .count-wrap {
  grid-column: 3;
  grid-row: 2;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  padding: 0;
  border: 0;
}
.timeline.docked .count-wrap strong { font-size: 18px; }
.timeline.docked .count-wrap span { margin: 0; }
.timeline.docked .coverage {
  grid-column: 5;
  grid-row: 1 / 3;
  align-self: center;
  margin: 0;
  max-width: none;
}
.timeline.docked .coverage strong { font-size: 18px; }
.timeline.docked .primary {
  grid-column: 1;
  grid-row: 1 / 3;
  min-width: 108px;
  min-height: 46px;
}
.timeline.docked .replay {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 44px;
  min-height: 44px;
  padding: 7px;
  border: 1px solid #58737a;
}
.timeline.docked .replay span { display: none; }
.timeline.docked .track {
  grid-column: 4;
  grid-row: 1;
  width: 100%;
  padding-top: 10px;
}
.timeline.docked #clock-state,
.timeline.docked #play-state,
.timeline.docked #race-state {
  grid-column: 4;
  grid-row: 2;
  min-width: 0;
  text-align: left;
}
.timeline.docked > .small,
.timeline.docked > #clock-note {
  grid-column: 1 / -1;
  margin: 6px 0 0;
}
.timeline.docked > .to-top { display: none; }

@media (max-width: 1000px) {
  .timeline.docked { display: block; padding: 16px 20px 18px; }
  .timeline.docked .time-heading { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
  .timeline.docked .transport { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 14px; }
  .timeline.docked .year-wrap { min-width: 145px; }
  .timeline.docked .count-wrap { padding-left: 20px; border-left: 1px solid var(--line); }
  .timeline.docked .coverage { width: 100%; padding-top: 10px; border-top: 1px solid var(--line); text-align: left; }
  .timeline.docked .track { flex: 1 1 320px; order: 3; padding-top: 8px; }
  .timeline.docked #clock-state,
  .timeline.docked #play-state,
  .timeline.docked #race-state { margin-left: auto; text-align: right; }
}

@media (max-width: 560px) {
  .timeline.docked { padding: 14px 16px 16px; }
  .timeline.docked .time-heading { align-items: flex-start; gap: 10px 16px; }
  .timeline.docked .year-wrap { min-width: 130px; }
  .timeline.docked #year,
  .timeline.docked #day-clock,
  .timeline.docked #race-clock { font-size: 36px; }
  .timeline.docked .count-wrap { padding-left: 16px; }
  .timeline.docked .coverage strong { font-size: 16px; }
  .timeline.docked .transport { margin-top: 12px; }
  .timeline.docked .primary { min-width: 92px; min-height: 44px; }
  .timeline.docked .track { flex-basis: 100%; margin: 0; }
}
