@scope (body:not([data-peak-mvp])) {
:scope {
  --canvas: #f5f1e7;
  --paper: #fffcf5;
  --ink: #252b24;
  --muted: #566052;
  --line: #dbd6c8;
  --forest: #24352b;
  --forest-deep: #1a2720;
  --forest-text: #e0e8dc;
  --gold: #f4be6c;
  --amber: #9a420f;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
:scope { scroll-behavior: smooth; scroll-padding-top: 20px; }
:scope {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; line-height: 1; }
h1 { font-size: clamp(3.3rem, 8vw, 6.75rem); font-weight: 800; letter-spacing: -.03em; text-transform: uppercase; }
h2 { font-size: 2.25rem; font-weight: 700; }
h3 { font-size: 1.45rem; font-weight: 700; }
a { color: var(--forest); text-underline-offset: .24em; }
a:hover { text-decoration-thickness: .13em; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 3; padding: 8px 16px; left: 16px; top: -80px; background: var(--paper); }
.skip-link:focus { top: 8px; }
.site-head { border-bottom: 1px solid var(--line); }
.site-nav, .footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-nav { min-height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; white-space: nowrap; font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: .008em; }
.wordmark b { font-weight: 600; }
.brand-glyph { width: 24px; height: 24px; display: inline-block; background: var(--forest); clip-path: polygon(0 100%, 45% 20%, 58% 46%, 71% 24%, 100% 100%, 66% 100%, 45% 62%, 24% 100%); }
.site-nav nav { display: flex; align-items: stretch; gap: 24px; }
.site-nav nav a { display: grid; min-height: 67px; place-items: center; padding: 0 4px; border-top: 3px solid transparent; border-bottom: 3px solid transparent; text-decoration: none; font-size: .875rem; font-weight: 700; }
.site-nav nav a:hover, .site-nav nav a[aria-current] { border-bottom-color: var(--amber); }
.today-head, .calendar-head { padding: 40px 0 28px; }
.today-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.today-head p, .calendar-head p { margin-top: 8px; color: var(--muted); font-size: clamp(1rem, 3vw, 1.2rem); }
.reset-clock { border-left: 3px solid var(--amber); flex: none; padding: 3px 0 3px 18px; min-width: 220px; display: grid; }
.overline { font-size: .75rem; font-weight: 700; letter-spacing: .095em; text-transform: uppercase; }
.reset-clock strong { font: 700 2.22rem/1.1 var(--display); margin: 2px 0; font-variant-numeric: tabular-nums; }
.reset-clock time { color: var(--muted); font-size: .875rem; }
.today-board { display: grid; grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr); gap: 16px; align-items: stretch; }
.route-board, .calendar-board { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); overflow: hidden; }
.route-board { padding: 24px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-heading p { margin-top: 4px; font-size: .875rem; color: var(--muted); }
.panel-heading a { flex: none; font-size: .875rem; font-weight: 700; }
.map-id { border: 1px solid var(--line); padding: 3px 9px; border-radius: 5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: .875rem; }
.stage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 18px 0 0; padding: 0; list-style: none; gap: 8px; }
.stage { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-height: 92px; }
.stage-number { color: var(--amber); display: block; font-weight: 700; font-size: .75rem; letter-spacing: .07em; margin-bottom: 2px; }
.stage-name { display: block; line-height: 1; font: 700 1.55rem/1.05 var(--display); }
.stage-variant { color: var(--muted); display: block; font-size: .8125rem; margin-top: 3px; }
.tomb-panel { position: relative; isolation: isolate; overflow: hidden; background: var(--forest-deep); border-radius: 12px; padding: 24px; color: var(--canvas); }
.tomb-panel .overline { color: var(--gold); }
.tomb-panel h2 { margin: 10px 0 6px; font-size: clamp(2rem, 5vw, 3rem); max-width: 22ch; }
.tomb-panel p { color: var(--forest-text); font-size: .875rem; max-width: 42ch; }
.tomb-glyph { position: absolute; right: -21px; top: -22px; width: 146px; height: 130px; z-index: -1; background: repeating-linear-gradient(130deg, var(--forest) 0 1px, transparent 1px 7px); clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 27%); }
.tomb-next { display: grid; gap: 2px; margin-top: 18px; padding: 12px 0 0; border-top: 1px solid var(--forest); }
.tomb-next strong { font-size: 1.04rem; color: var(--canvas); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; border-radius: 6px; padding: 7px 14px; border: 1px solid transparent; font-size: .875rem; font-weight: 700; }
.button-gold { color: var(--forest-deep); background: var(--gold); text-decoration: none; margin-top: 16px; }
.button-gold:focus-visible { outline-color: var(--gold); }
.button-gold:hover { text-decoration: underline; }
.button-outline { color: var(--forest); background: var(--paper); border-color: var(--line); }
.button-outline:not(:disabled):hover { border-color: var(--forest); }
.ahead { margin-top: 28px; }
.ahead-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; gap: 12px; padding: 0; margin: 12px 0 0; }
.ahead-card { padding: 12px 16px; border-top: 2px solid var(--line); background: var(--paper); border-radius: 0 0 8px 8px; }
.ahead-card time { display: block; font-size: .8125rem; color: var(--muted); }
.ahead-card strong { display: block; margin-top: 4px; font: 700 1.35rem/1.15 var(--display); }
.status { display: inline-block; border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; color: var(--muted); font-size: .75rem; line-height: 1.45; font-weight: 700; white-space: nowrap; }
.status[data-state="open"] { border-color: var(--amber); color: var(--amber); background: var(--paper); }
.ahead-card .status { margin-top: 8px; }
.reading { border-top: 1px solid var(--line); margin: 36px 0 48px; padding-top: 10px; max-width: 78ch; }
.reading h2 { margin-top: 26px; }
.reading h3 { margin-top: 14px; }
.reading p, .reading ul { margin: 8px 0 0; color: var(--muted); }
.reading details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.reading summary { min-height: 30px; cursor: pointer; font-weight: 700; }
.data-notice { border: 1px solid var(--amber); border-radius: 6px; background: var(--paper); padding: 12px 16px; margin-bottom: 12px; }
.site-foot { border-top: 1px solid var(--line); margin-top: 24px; }
.footer-grid { padding-block: 20px; }
.footer-grid p { color: var(--muted); font-size: .875rem; }
.footer-grid>a:last-child { white-space: nowrap; font-size: .875rem; }
.calendar-board > .panel-heading, .calendar-controls, .calendar-pages { padding: 16px 24px; }
.calendar-controls { display: grid; grid-template-columns: minmax(135px, 1fr) minmax(145px, 1fr) auto; align-items: end; gap: 12px; border-block: 1px solid var(--line); }
.calendar-controls label { font-size: .875rem; font-weight: 700; display: grid; gap: 4px; }
.calendar-controls select, .calendar-controls input { width: 100%; min-width: 0; min-height: 44px; padding: 6px 10px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; }
.calendar-status { padding: 12px 24px; color: var(--muted); font-size: .875rem; }
.calendar-list { list-style: none; padding: 0; margin: 0; }
.calendar-entry { display: grid; grid-template-columns: minmax(125px, 1fr) minmax(120px, 2.1fr) auto; align-items: start; gap: 12px; padding: 14px 24px; border-top: 1px solid var(--line); }
.calendar-entry time { font-size: .875rem; font-weight: 700; }
.calendar-entry small { display: block; color: var(--muted); }
.calendar-entry details { min-width: 0; }
.calendar-entry summary { cursor: pointer; font-weight: 700; }
.calendar-entry details p { margin-top: 5px; color: var(--muted); font-size: .875rem; }
.calendar-entry[data-focus="true"] { border-left: 3px solid var(--amber); padding-left: 21px; }
.calendar-pages { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--line); }
.calendar-pages span { color: var(--muted); font-size: .875rem; }
@media (max-width: 800px) {
  .wrap { width: min(1120px, calc(100% - 32px)); }
  .today-head { padding: 32px 0 24px; }
  .today-board { grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr); gap: 10px; }
  .route-board, .tomb-panel { padding: 16px; }
  .stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 590px) {
  .site-nav { min-height: 56px; gap: 8px; }
  .site-nav nav { gap: 8px; }
  .site-nav nav a { min-height: 55px; font-size: .8125rem; }
  .wordmark { font-size: 22px; }
  .brand-glyph { width: 20px; height: 20px; }
  .today-head { display: grid; gap: 14px; }
  .calendar-head { padding: 26px 0 20px; }
  .reset-clock { display: grid; align-items: baseline; grid-template-columns: 1fr auto; column-gap: 8px; padding-left: 12px; }
  .reset-clock time { grid-column: 1 / -1; }
  .today-board, .ahead-grid { grid-template-columns: 1fr; }
  .stage-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stage { padding: 8px; min-height: 82px; }
  .stage-name { font-size: 1.3rem; }
  .stage-variant { font-size: .75rem; }
  .ahead-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: center; }
  .ahead-card strong { grid-row: 2; }
  .ahead-card .status { grid-column: 2; grid-row: 1 / 3; margin: 0; }
  .calendar-board > .panel-heading, .calendar-controls, .calendar-pages { padding: 12px; }
  .calendar-controls { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .calendar-controls .button { justify-self: start; }
  .calendar-status { padding: 8px 12px; }
  .calendar-entry { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; padding: 12px; }
  .calendar-entry[data-focus="true"] { padding-left: 9px; }
  .calendar-entry details { grid-column: 1 / -1; grid-row: 2; }
  .calendar-entry .status { justify-self: end; }
  .footer-grid { align-items: start; flex-direction: column; gap: 6px; }
}
@media (max-width: 360px) {
  .stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav nav a { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) { :scope { scroll-behavior: auto; } }

.wordmark { font-family: "DM Sans", Arial, sans-serif; font-size: 20px; letter-spacing: -.05em; }
.today-head h1 { font-size: clamp(3.3rem, 7vw, 5.4rem); }
.route-locations { display: inline-block; margin-top: 12px; font-size: .875rem; font-weight: 700; }
.survey, .rotation-compare { margin-top: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); overflow: hidden; }
.location-page .survey { margin-top: 0; }
.survey-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 18px 24px 12px; }
.survey-head p, .survey-status, .survey-source { font-size: .875rem; color: var(--muted); }
.survey-head p { margin-top: 4px; }
.survey-more { flex: none; font-weight: 700; font-size: .875rem; padding-top: 4px; }
.location-page .survey-more { display: none; }
.survey-controls { display: flex; flex-wrap: wrap; gap: 8px 12px; padding: 0 24px 12px; }
.survey-controls label { display: grid; min-width: 145px; gap: 4px; font-size: .875rem; font-weight: 700; }
.survey-controls select, .survey-controls input { min-height: 44px; max-width: 100%; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); padding: 4px 8px; }
.survey-status, .survey-source { padding: 8px 24px; }
.survey-:scope { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(220px, 1fr); border-block: 1px solid var(--line); }
.survey-figure { min-width: 0; margin: 0; padding: 14px 20px; background: var(--forest-deep); color: var(--forest-text); }
.plot-label, .plot-axis { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .75rem; font-weight: 700; }
.plot-label { margin-bottom: 8px; }
.plot-label span { letter-spacing: .07em; color: var(--gold); }
.plot-axis { margin: 6px 0; }
.survey-figure figcaption { font-size: .75rem; }
.survey-plot { position: relative; aspect-ratio: 16 / 9; min-height: 155px; border: 1px solid var(--forest-text); background: linear-gradient(to right, var(--forest) 1px, transparent 1px), linear-gradient(to bottom, var(--forest) 1px, transparent 1px); background-size: 11.11% 16.67%; }
.survey-dot { position: absolute; z-index: 1; width: 26px; height: 26px; display: grid; place-items: center; transform: translate(-50%, -50%); border: 1px solid var(--forest-deep); border-radius: 50%; background: var(--gold); color: var(--forest-deep); font-size: 12px; font-weight: 700; line-height: 1; }
.survey-dot[data-active="true"] { z-index: 2; outline: 2px solid var(--paper); outline-offset: 1px; }
.survey-dot[data-kind="luggage"], .survey-dot[data-kind="tower"] { background: var(--paper); }
.survey-dot[data-kind="wildlife"] { background: var(--forest-text); }
.survey-dot[data-kind="tomb"] { border-radius: 5px; }
.survey-list { display: flex; flex-direction: column; min-width: 0; padding: 12px; }
.survey-list>p { font-size: .875rem; font-weight: 700; margin: 0 0 8px; }
.survey-list ol { list-style: none; padding: 0; margin: 0; max-height: 330px; overflow: auto; }
.survey-list button { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink); font-size: .8125rem; }
.survey-list button[aria-pressed="true"] { color: var(--amber); font-weight: 700; }
.survey-list button small { color: var(--muted); }
.rotation-compare { margin: 0 0 16px; padding: 16px 24px; }
.compare-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); list-style: none; padding: 0; margin: 12px 0 0; gap: 8px; }
.compare-grid li { border-top: 2px solid var(--line); padding: 8px 2px; }
.compare-grid li[data-changed="true"] { border-top-color: var(--amber); }
.compare-grid strong { display: block; font: 700 1.4rem/1.15 var(--display); }
.compare-grid small { color: var(--muted); font-size: .8125rem; }
@media (max-width: 690px) {
  .survey-:scope { grid-template-columns: 1fr; }
  .survey-head { flex-wrap: wrap; padding: 12px 16px; }
  .survey-controls, .survey-status, .survey-source { padding-inline: 16px; }
  .survey-figure { padding: 12px 18px; }
  .survey-list ol { max-height: 230px; }
  .compare-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .rotation-compare { padding: 12px; }
}
@media (max-width: 420px) {
  .site-nav nav { gap: 3px; }
  .site-nav nav a { font-size: .75rem; }
  .wordmark { font-size: 18px; }
  .survey-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .survey-controls label { min-width: 0; }
  .survey-date { grid-column: 1/-1; }
}

.tomb-today-link { display: inline-block; margin-top: 8px; color: var(--gold); font-size: .875rem; }
.tomb-today-link:focus-visible { outline-color: var(--gold); }
.record-totals { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 10px 0; list-style: none; font-size: .8125rem; }
.record-totals li { background: var(--paper); border: 1px solid var(--line); border-radius: 5px; padding: 2px 8px; }
.survey-totals, .survey-missing { margin: 0 24px 10px; }
.survey-missing { font-size: .875rem; font-weight: 700; }
.plot-scroll { overflow: auto; max-height: min(400px, 54vh); border: 1px solid var(--forest-text); }
.survey-plot { border: 0; transform-origin: top left; }
.plot-controls { display: flex; gap: 4px; }
.plot-controls button { min-width: 44px; min-height: 44px; padding: 3px 6px; border: 1px solid var(--forest-text); border-radius: 4px; background: var(--forest); color: var(--paper); }
.plot-controls button:focus-visible { outline-color: var(--gold); }
#survey-share, #survey-copy { font-size: .8125rem; font-weight: 700; margin-bottom: 6px; align-self: flex-start; }
#survey-share { min-height: 28px; }
#survey-copy { min-height: 44px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--canvas); color: var(--ink); }
#survey-share-status:empty { display: none; }
@media (max-width: 690px) {
  .survey-totals, .survey-missing { margin-inline: 16px; }
}
@media (max-width: 420px) {
  .site-nav { flex-wrap: wrap; gap: 0; }
  .site-nav nav { gap: 5px; }
  .site-nav nav a { min-height: 44px; }
}

}
/* Public rotation and Tomb pages */
[data-peak-public] .launch-answer {
  padding: clamp(1rem, 5vw, 3.25rem) 0 1.5rem;
}
[data-peak-public] .launch-answer h1,
[data-peak-public] .launch-legal h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  text-transform: none;
}
[data-peak-public] .launch-today {
  --launch-border: rgba(224, 232, 220, .25);
  display: grid;
  gap: .45rem;
  margin-top: 1rem;
  padding: clamp(.85rem, 3vw, 1.5rem);
  color: var(--forest-text);
  background: var(--forest-deep);
  border: 1px solid var(--launch-border);
  border-radius: 12px;
}
[data-peak-public] .launch-map-date { font-size: .875rem; }
[data-peak-public] .launch-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45em;
  font-size: clamp(1.35rem, 3vw, 2rem);
}
[data-peak-public] .launch-summary .status { font-size: .875rem; }
[data-peak-public] .launch-summary .status:not([data-state="open"]) {
  color: var(--forest-text);
  border-color: var(--launch-border);
}
[data-peak-public] .launch-stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .45rem;
  list-style-position: inside;
  padding: 0;
  margin: .3rem 0;
}
[data-peak-public] .launch-stages li {
  border-top: 1px solid var(--launch-border);
  padding: .45rem .25rem;
  font-weight: 600;
}
[data-peak-public] .launch-stages li::marker { color: var(--gold); }
[data-peak-public] .launch-reset,
[data-peak-public] .launch-note { font-size: .9375rem; }
[data-peak-public] #launch-clock { color: var(--gold); margin-inline-start: .35em; }
[data-peak-public] .launch-next-tomb { margin-top: .8rem; font-weight: 600; }
[data-peak-public] .launch-table-wrap { overflow-x: auto; }
[data-peak-public] .launch-table { width: 100%; border-collapse: collapse; text-align: left; }
[data-peak-public] .launch-table :is(th, td) {
  padding: .65rem .7rem;
  border-bottom: 1px solid var(--line);
}
[data-peak-public] .launch-table th[scope="row"] { min-width: 7rem; }
[data-peak-public] .launch-table .status { white-space: nowrap; }
[data-peak-public] .launch-faq summary { cursor: pointer; font-weight: 600; padding-block: .5rem; }
[data-peak-public] .launch-legal { min-height: 50vh; padding-block: 2rem; }
[data-peak-public] .launch-legal .reading { margin-top: 1rem; }
[data-peak-public] .launch-footer nav { display: flex; gap: .3rem 1rem; flex-wrap: wrap; }
@media (max-width: 570px) {
  [data-peak-public] .launch-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [data-peak-public] .launch-table :is(th,td) { padding: .5rem .35rem; font-size: .875rem; }
  [data-peak-public] .launch-table th[scope="row"] { min-width: 4rem; }
  [data-peak-public] .launch-table .status { white-space: normal; }
}
