:root {
  --presentation-ink: #152124;
  --presentation-paper: #f8f7f2;
  --presentation-line: #d8d8cf;
  --presentation-teal: #146e70;
  --presentation-copper: #ac552d;
  --presentation-amber: #dd902a;
  --presentation-muted: #657276;
  --presentation-panel: #fff;
}

.marker-presentation-site {
  margin: 0;
  color: var(--presentation-ink);
  background: var(--presentation-paper);
  font-family: "Manrope", "Source Sans 3", sans-serif;
}

.marker-presentation-site *,
.marker-presentation-site *::before,
.marker-presentation-site *::after {
  box-sizing: border-box;
}

.marker-presentation-skip {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 12px 16px;
  color: #fff;
  background: var(--presentation-ink);
  border-radius: 8px;
  transform: translateY(-160%);
}

.marker-presentation-skip:focus {
  transform: translateY(0);
}

.marker-presentation-site a:focus-visible,
.marker-presentation-site button:focus-visible,
.marker-presentation-site summary:focus-visible {
  outline: 3px solid var(--presentation-amber);
  outline-offset: 4px;
}

.marker-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.marker-presentation {
  position: relative;
  min-height: 100vh;
  overflow: clip;
  border-top: 1px solid var(--presentation-line);
}

.marker-presentation-underlay {
  position: fixed;
  z-index: 0;
  top: 132px;
  right: 0;
  bottom: 0;
  width: min(45vw, 650px);
  opacity: 0.075;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 55%);
}

.marker-presentation-underlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.marker-presentation-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 38px 0 90px;
}

.marker-presentation-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 28px;
}

.marker-presentation-identity {
  display: flex;
  align-items: flex-start;
  gap: 26px;
}

.marker-presentation-mark {
  min-width: max-content;
  padding-top: 4px;
  color: var(--presentation-copper);
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.marker-presentation-identity p,
.marker-presentation-tools > p {
  margin: 0 0 5px;
  color: var(--presentation-muted);
  font-family: "DM Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marker-presentation-identity h1 {
  margin: 0;
  color: var(--presentation-ink);
  font-size: clamp(1.35rem, 2.6vw, 2.2rem);
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.marker-presentation-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}

.marker-presentation-tools > p {
  margin: 0;
  text-align: right;
}

.marker-presentation-tools > p span {
  display: block;
  color: var(--presentation-copper);
}

.marker-presentation-about {
  position: static;
}

.marker-presentation-about > summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 17px;
  color: #fff;
  background: var(--presentation-ink);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  list-style: none;
}

.marker-presentation-about > summary::-webkit-details-marker,
.marker-presentation-item summary::-webkit-details-marker {
  display: none;
}

.marker-presentation-intro {
  width: min(760px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--presentation-line);
  border-bottom: 1px solid var(--presentation-line);
}

.marker-presentation-intro > p {
  margin: 0;
  color: var(--presentation-muted);
  font-size: 0.9rem;
}

.marker-presentation-key {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 13px;
}

.marker-presentation-key span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--presentation-muted);
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.marker-presentation-key span::before {
  width: 7px;
  height: 7px;
  content: "";
  background: currentColor;
  border-radius: 50%;
}

.marker-presentation-key .is-yallourn {
  color: var(--presentation-teal);
}

.marker-presentation-key .is-aviation {
  color: var(--presentation-amber);
}

.marker-presentation-key .is-project {
  color: var(--presentation-copper);
}

.marker-presentation-timeline {
  width: min(760px, 100%);
}

.marker-presentation-timeline ol {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.marker-presentation-timeline ol::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 111px;
  width: 1px;
  content: "";
  background: var(--presentation-line);
}

.marker-presentation-item {
  border-bottom: 1px solid var(--presentation-line);
}

.marker-presentation-item details {
  position: static;
}

.marker-presentation-item summary {
  min-height: 108px;
  display: grid;
  grid-template-columns: 88px 22px minmax(0, 1fr) 34px;
  gap: 13px;
  align-items: center;
  padding: 21px 0;
  cursor: pointer;
  list-style: none;
}

.marker-presentation-item summary:hover .marker-presentation-row-copy strong {
  color: var(--presentation-teal);
}

.marker-presentation-item summary time {
  color: var(--presentation-ink);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: right;
}

.marker-presentation-node {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  margin: auto;
  background: var(--presentation-paper);
  border: 3px solid var(--presentation-teal);
  border-radius: 50%;
}

.marker-presentation-item.is-aviation .marker-presentation-node {
  border-color: var(--presentation-amber);
}

.marker-presentation-item.is-project .marker-presentation-node {
  border-color: var(--presentation-copper);
}

.marker-presentation-row-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.marker-presentation-row-copy > span {
  color: var(--presentation-muted);
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marker-presentation-row-copy strong {
  color: var(--presentation-ink);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  letter-spacing: -0.025em;
  line-height: 1.25;
  transition: color 150ms ease;
}

.marker-presentation-open {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--presentation-ink);
  border: 1px solid var(--presentation-line);
  border-radius: 50%;
  font-size: 0.82rem;
}

.marker-presentation-item details[open] > summary {
  background: rgba(20, 110, 112, 0.055);
}

.marker-presentation-reveal {
  display: none;
}

details[open] > .marker-presentation-reveal {
  display: block;
}

body > .marker-presentation-reveal.is-page-overlay {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: block;
  pointer-events: none;
}

body > .marker-presentation-reveal.is-page-overlay .marker-presentation-window,
body > .marker-presentation-reveal.is-page-overlay .marker-presentation-backdrop {
  pointer-events: auto;
}

body > .marker-presentation-reveal.is-page-overlay .marker-presentation-backdrop {
  position: fixed;
  z-index: 55;
  inset: 0;
  display: block;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.marker-presentation-backdrop {
  display: none;
}

.marker-presentation-window {
  position: fixed;
  z-index: 60;
  top: 152px;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 24px;
  width: min(440px, calc(100vw - 48px));
  padding: 28px 30px 34px;
  overflow-y: auto;
  color: var(--presentation-ink);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--presentation-line);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(15, 27, 30, 0.2);
  backdrop-filter: blur(16px);
}

.marker-presentation-window > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--presentation-line);
}

.marker-presentation-window > header p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--presentation-muted);
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.marker-presentation-window > header p span:first-child {
  color: var(--presentation-copper);
}

.marker-presentation-window > header button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: var(--presentation-ink);
  background: transparent;
  border: 1px solid var(--presentation-line);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
}

.marker-presentation-window > header button span {
  font-size: 1.2rem;
}

.marker-presentation-window h2 {
  margin: 28px 0 16px;
  color: var(--presentation-ink);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  letter-spacing: -0.05em;
  line-height: 1.04;
}

#presentation-marker-time-1920-flight-title,
#flight-marker-time-1920-flight-title {
  font-size: clamp(1.45rem, 2vw, 1.6rem);
}

#presentation-marker-time-1920-sec-title,
#flight-marker-time-1920-sec-title {
  font-size: clamp(1.6rem, 2.2vw, 1.8rem);
}

.marker-presentation-window h3 {
  margin: 0 0 14px;
  color: var(--presentation-ink);
  font-size: 1.05rem;
  line-height: 1.25;
}

.marker-presentation-summary {
  color: var(--presentation-ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
}

.marker-presentation-window > p:not(.marker-presentation-summary),
.marker-presentation-detail-list {
  color: var(--presentation-muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.marker-presentation-detail-list {
  margin: 22px 0 0;
  padding-left: 19px;
}

.marker-presentation-detail-list li + li {
  margin-top: 8px;
}

.marker-presentation-action {
  margin: 24px 0 0;
}

.marker-presentation-action div {
  padding: 13px 0;
  border-top: 1px solid var(--presentation-line);
}

.marker-presentation-action dt,
.marker-presentation-section-label,
.marker-presentation-sources strong,
.marker-presentation-stage span,
.marker-presentation-status strong {
  display: block;
  margin-bottom: 5px;
  color: var(--presentation-copper);
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marker-presentation-action dd {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
}

.marker-presentation-status,
.marker-presentation-caution {
  padding: 14px 16px;
  color: #6c321d;
  background: #f7e9df;
  border-left: 3px solid var(--presentation-copper);
  font-size: 0.78rem;
  line-height: 1.55;
}

.marker-presentation-report {
  margin-top: 26px;
  padding: 20px;
  background: #f0eee7;
  border-radius: 12px;
}

.marker-presentation-report ul {
  margin: 0;
  padding-left: 18px;
  color: var(--presentation-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.marker-presentation-report li + li {
  margin-top: 7px;
}

.marker-presentation-action-link,
.marker-presentation-window-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
  padding: 11px 15px;
  color: #fff;
  background: var(--presentation-ink);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
}

.marker-presentation-action-link span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.65rem;
}

.marker-presentation-sources {
  margin: 24px 0 0;
  padding-top: 18px;
  color: var(--presentation-muted);
  border-top: 1px solid var(--presentation-line);
  font-size: 0.68rem;
  line-height: 1.55;
}

.marker-presentation-sources a {
  color: var(--presentation-teal);
}

.marker-presentation-sources small {
  font-size: inherit;
}

.marker-presentation-about-image {
  margin: 22px -12px 0;
}

.marker-presentation-about-image img {
  width: 100%;
  height: 180px;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

.marker-presentation-about-image figcaption {
  margin: 6px 4px 0;
  color: var(--presentation-muted);
  font-size: 0.62rem;
}

.marker-presentation-waypoint-image img {
  height: auto;
  object-fit: contain;
}

.marker-presentation-waypoint-image figcaption span {
  display: block;
}

.marker-presentation-waypoint-image figcaption span + span {
  margin-top: 3px;
}

.marker-presentation-narrative {
  margin-top: 22px;
}

.marker-presentation-narrative p {
  margin: 0;
  color: var(--presentation-ink);
  font-size: 0.86rem;
  line-height: 1.7;
}

.marker-presentation-narrative p + p {
  margin-top: 16px;
}

.marker-presentation-strapline {
  color: var(--presentation-teal);
  font-family: "DM Mono", monospace;
  font-size: 0.82rem;
}

.marker-presentation-stage {
  margin: 22px 0;
  padding: 15px 17px;
  background: #e8f1ef;
  border-radius: 10px;
}

.marker-presentation-stage strong {
  font-size: 0.9rem;
}

.marker-presentation-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px max(24px, calc((100% - 1180px) / 2));
  color: rgba(255, 255, 255, 0.72);
  background: var(--presentation-ink);
  font-size: 0.72rem;
}

.marker-presentation-footer p,
.marker-presentation-footer a {
  margin: 0;
}

.marker-presentation-footer p:first-child {
  color: #fff;
  font-family: "DM Mono", monospace;
  letter-spacing: 0.08em;
}

.marker-presentation-footer a {
  color: #fff;
}

@media (max-width: 940px) {
  .marker-presentation-underlay {
    display: none;
  }

  .marker-presentation-window {
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    max-height: min(82vh, 720px);
  }

  body > .marker-presentation-reveal.is-page-overlay .marker-presentation-backdrop,
  .marker-presentation-backdrop {
    background: rgba(15, 27, 30, 0.42);
  }
}

@media (max-width: 680px) {
  .marker-presentation-inner {
    width: calc(100% - 28px);
    padding-top: 24px;
  }

  .marker-presentation-heading,
  .marker-presentation-identity,
  .marker-presentation-intro,
  .marker-presentation-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .marker-presentation-heading {
    gap: 20px;
  }

  .marker-presentation-identity {
    gap: 10px;
  }

  .marker-presentation-tools {
    width: 100%;
    justify-content: space-between;
  }

  .marker-presentation-tools > p {
    text-align: left;
  }

  .marker-presentation-key {
    justify-content: flex-start;
  }

  .marker-presentation-timeline ol::before {
    left: 10px;
  }

  .marker-presentation-item summary {
    min-height: 102px;
    grid-template-columns: 20px minmax(0, 1fr) 32px;
    gap: 13px;
    padding: 20px 0;
  }

  .marker-presentation-item summary time {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
  }

  .marker-presentation-node {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .marker-presentation-row-copy {
    grid-column: 2;
    grid-row: 2;
  }

  .marker-presentation-open {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .marker-presentation-window {
    padding: 22px 20px 28px;
  }

  .marker-presentation-footer {
    padding-block: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marker-presentation-row-copy strong {
    transition: none;
  }
}
