/* USA 2026 trip site. One world: a printed park brochure laid over a full-screen map. Overpass (a Highway Gothic cousin) throughout. */

:root {
  --ink: #161616;
  --ink-2: #2b2b2b;
  --paper: #ffffff;
  --paper-2: #f2f3ef;
  --paper-3: #e6e8e2;
  --text: #1c1c1a;
  --muted: #5d605a;
  --rule: #d6d8d1;
  --brown: #6e3f1c;
  --green: #22573a;
  --green-ink: #e9f1e6;
  --route: #c0392b;
  --flight: #1d4b72;
  --focus: #c0392b;
  --font: "Overpass", "Helvetica Neue", Arial, sans-serif;
  --radius: 4px;
  --shadow: 0 14px 36px -12px rgba(22, 22, 22, 0.45), 0 2px 8px -2px rgba(22, 22, 22, 0.3);
  --panel-w: 440px;
  --gutter: 16px;
  --sheet-full: 88dvh;
  --sheet-offset: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--paper-2);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  font-feature-settings: "kern" 1, "liga" 1;
}

::selection {
  background: var(--brown);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

/* The map is the page */
.map {
  position: fixed;
  inset: 0;
  background: var(--paper-2);
}

.map-fallback {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 3;
  margin: 0;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--muted);
  box-shadow: var(--shadow);
}

/* MapLibre tweaks */
.maplibregl-ctrl-attrib {
  font-family: var(--font);
  font-size: 10px;
}

.maplibregl-ctrl-top-right {
  z-index: 4;
}

.maplibregl-ctrl-group button:focus-visible {
  outline: 3px solid var(--focus);
}

.maplibregl-popup-content {
  font-family: var(--font);
  padding: 10px 12px 10px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.maplibregl-popup-close-button {
  font-size: 18px;
  padding: 2px 6px;
}

.popup-name {
  font-weight: 600;
  line-height: 1.25;
  margin-right: 14px;
}

.popup-where {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 2px 0 8px;
}

.map-journey-ctrl button {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  width: auto !important;
  height: 34px !important;
  padding: 0 12px 0 10px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.map-journey-ctrl .icon {
  width: 16px;
  height: 16px;
}

/* The black band */
.band {
  background: var(--ink);
  color: #fff;
  padding: 14px 16px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px 16px;
  border-bottom: 5px solid var(--brown);
}

.band-title {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.band-meta {
  font-size: 0.82rem;
  line-height: 1.3;
  color: #d9d9d4;
}

.band-meta strong {
  color: #fff;
  font-weight: 600;
}

/* The panel: a sheet on phones, a column on wide screens */
.panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  height: var(--sheet-full);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: 12px 12px 0 0;
  box-shadow: var(--shadow);
  transform: translateY(var(--sheet-offset));
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.panel.is-dragging {
  transition: none;
}

.sheet-handle {
  flex: none;
  display: grid;
  place-items: center;
  height: 24px;
  border: 0;
  background: var(--paper);
  border-radius: 12px 12px 0 0;
  touch-action: none;
}

.sheet-grip {
  width: 44px;
  height: 5px;
  border-radius: 3px;
  background: var(--paper-3);
}

.panel-band {
  flex: none;
}

.panel-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-padding-top: 8px; /* the reading band starts here */
  scrollbar-width: thin;
  scrollbar-color: var(--paper-3) transparent;
}

@media (prefers-reduced-motion: no-preference) {
  .panel-body {
    scroll-behavior: smooth;
  }
}

.panel-body:focus-visible {
  outline-offset: -3px;
}

/* Buttons and notices */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px 7px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1;
  text-decoration: none;
  transition: background-color 160ms ease-out, color 160ms ease-out;
}

.btn:hover {
  background: var(--ink);
  color: #fff;
}

.btn-fill {
  background: var(--ink);
  color: #fff;
}

.btn-fill:hover {
  background: var(--brown);
  border-color: var(--brown);
}

.btn-quiet {
  border-color: var(--rule);
  font-weight: 400;
}

.btn-quiet:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.notice {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--paper-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: 0.95rem;
}

/* Day strip: a plain row of the panel above the scroller (sticky inside the scroller punched a hole in the map canvas). */
.daystrip {
  flex: none;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.daystrip ol {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding: 6px 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.daystrip ol::-webkit-scrollbar {
  display: none;
}

.daystrip a {
  display: block;
  padding: 6px 7px 4px;
  min-width: 42px;
  text-align: center;
  text-decoration: none;
  line-height: 1.1;
  color: var(--ink-2);
  border-bottom: 3px solid transparent;
  transition: border-color 160ms ease-out, background-color 160ms ease-out;
}

.daystrip a:hover {
  background: var(--paper-2);
}

.daystrip a small {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.daystrip a span {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.daystrip a[aria-current="true"] {
  border-bottom-color: var(--brown);
  color: var(--ink);
}

.daystrip .chip-journey {
  display: grid;
  place-items: center;
  min-width: 42px;
}

.daystrip .chip-journey .icon {
  width: 20px;
  height: 20px;
}

.daystrip .month {
  display: flex;
  align-items: center;
  padding: 0 8px 0 4px;
  margin-right: 2px;
  border-right: 1px solid var(--rule);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown);
}

/* Views */
.view {
  padding: 20px 16px 32px;
}

.lede {
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1.3;
  max-width: 34ch;
  text-wrap: balance;
}

.headline {
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.headline b,
.totals-prose b {
  font-weight: 800;
  font-size: 1.15em;
  font-variant-numeric: tabular-nums;
}

.headline b {
  color: var(--ink);
}

.journey-start {
  margin-top: 18px;
}

.loading-days {
  margin-top: 24px;
  color: var(--muted);
}

/* Steps list on the journey view */
.steps {
  margin-top: 24px;
  border-top: 1px solid var(--rule);
}

.step {
  border-bottom: 1px solid var(--rule);
}

.step a {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 2px 12px;
  align-items: center;
  padding: 10px 4px 9px 0;
  text-decoration: none;
  transition: background-color 140ms ease-out;
}

.step a:hover {
  background: var(--paper-2);
}

.step-date {
  grid-row: span 2;
  color: var(--brown);
  font-weight: 600;
  font-size: 0.7rem;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-left: 4px;
  white-space: nowrap;
}

.step-date span {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.step-title {
  font-weight: 600;
  line-height: 1.25;
}

.step-sub {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.82rem;
}

.step-count {
  grid-row: span 2;
  color: var(--muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
  line-height: 1.2;
}

.step-count b {
  display: block;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}

/* Day view */
.day-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: -4px 0 18px;
}

.day-nav .btn {
  padding: 7px 10px 6px;
}

.day-nav-step {
  display: inline-flex;
  gap: 4px;
}

.day-date {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--brown);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.day-date .day-n {
  color: var(--muted);
  font-weight: 400;
}

.day-title {
  font-size: 1.8rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-top: 6px;
  text-wrap: balance;
}

/* Focus is moved here by script for screen readers; a heading is not a control, so no ring. */
.day-title:focus,
.day-title:focus-visible {
  outline: none;
}

.day-facts {
  margin-top: 14px;
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.fact {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.fact .icon {
  margin-top: 0.2em;
  color: var(--muted);
}

.fact-wx .icon {
  color: var(--flight);
}

.flights {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.flight {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  padding: 10px 12px 8px;
  background: var(--paper-2);
  border-radius: var(--radius);
  font-size: 0.92rem;
}

.flight .icon {
  grid-row: span 2;
  color: var(--flight);
  margin-top: 0.15em;
}

.flight-line {
  font-weight: 600;
}

.flight-sub {
  color: var(--muted);
  font-size: 0.85rem;
}

.section-label {
  margin-top: 26px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.section-label + .grid {
  margin-top: 10px;
}

.spots {
  margin-top: 8px;
  display: grid;
  gap: 4px;
}

.spot {
  padding: 8px 0 6px;
}

.spot + .spot,
.spot + .onway,
.onway + .spot {
  border-top: 1px solid var(--paper-3);
}

.onway {
  padding: 10px 0 8px;
}

.onway .section-label {
  margin-top: 0;
}

.spot-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.spot-head.is-active .spot-n {
  background: var(--ink);
}

.spot-n {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brown);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  align-self: center;
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
  transition: background-color 160ms ease-out;
}

.spot-where {
  display: inline-block;
  margin-left: 8px;
  white-space: nowrap;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.88rem;
}

.spot .grid {
  margin-top: 10px;
}

.spot:has(.grid) {
  padding-bottom: 14px;
}

.quiet {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.day-end {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Photo grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.grid-lead > :first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-3);
  border-radius: 2px;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 240ms ease-out;
}

.thumb img.is-loaded {
  opacity: 1;
}

.thumb:focus-visible {
  outline-offset: -3px;
}

.thumb.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid var(--brown);
  border-radius: 2px;
  pointer-events: none;
}

.thumb-video {
  position: absolute;
  left: 6px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px 2px 5px;
  background: rgba(22, 22, 22, 0.78);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 2px;
}

.thumb-video .icon {
  width: 0.9em;
  height: 0.9em;
  fill: currentColor;
  stroke: none;
}

/* Totals */
.totals {
  margin: 28px -16px 0;
  background: var(--green);
  color: var(--green-ink);
  padding: 28px 16px 30px;
}

.totals h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: #fff;
}

.totals-prose {
  margin-top: 14px;
  font-size: 1.1rem;
  line-height: 1.55;
  font-weight: 300;
  max-width: 48ch;
}

.totals-prose b {
  color: #fff;
}

.records {
  margin-top: 20px;
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 16px;
}

.records li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  line-height: 1.3;
}

.records .icon {
  color: #cfe3c9;
  margin-top: 0.15em;
}

.records a {
  color: #fff;
  font-weight: 600;
}

.records small {
  display: block;
  color: #cfe3c9;
  font-size: 0.85rem;
}

.totals h3 {
  margin-top: 24px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #cfe3c9;
}

.states {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.states li {
  padding: 5px 9px 3px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

.cities {
  margin-top: 8px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Pacific inset and key */
.pacific {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 4px 14px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--ink-2);
}

.pacific h3 {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.pacific svg {
  width: 96px;
  height: 55px;
}

.pacific ul {
  display: grid;
  gap: 6px;
}

.pacific li {
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.pacific b {
  display: block;
  font-weight: 600;
  line-height: 1.2;
}

.pacific-note {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.8rem;
}

.map-legend {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.map-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.key {
  width: 22px;
  height: 10px;
  flex: none;
}

.key-road {
  border-top: 3px solid var(--route);
  height: 0;
}

.key-flight {
  border-top: 3px dashed var(--flight);
  height: 0;
}

.key-stop {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--ink);
}

.key-spot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brown);
  border: 1.5px solid #fff;
  box-shadow: 0 0 0 1px var(--brown);
}

.key-photo {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(135deg, #8da3b8, #c9a27a);
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.site-foot {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Viewer */
.viewer {
  border: 0;
  padding: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  background: #0d0d0d;
  color: #fff;
  font-family: var(--font);
  overflow: hidden;
}

.viewer::backdrop {
  background: #0d0d0d;
}

.viewer-inner {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
}

/* The photo fills the stage box and is letterboxed inside it, so portrait and landscape both fit whole. */
.viewer-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.viewer-stage img,
.viewer-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  transition: opacity 200ms ease-out;
}

.viewer-stage img.is-loading {
  opacity: 0.35;
}

.viewer-stage video {
  background: #000;
}

/* Photo card on the map */
.card-popup .maplibregl-popup-content {
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card-popup .maplibregl-popup-tip {
  border-top-color: var(--paper);
}

.card {
  width: var(--card-w, 320px);
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  outline: none;
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: var(--ar, 3 / 4);
  max-height: var(--card-media-max, 440px);
  background: #111;
}

.card-media img,
.card-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  background: #111;
}

.card-media img.is-thumb {
  filter: saturate(0.95);
}

.card-meta {
  padding: 10px 12px 6px;
  display: grid;
  gap: 2px;
  line-height: 1.3;
}

.card-caption {
  font-size: 0.95rem;
}

.card-caption:empty,
.card-note:empty {
  display: none;
}

.card-where {
  font-weight: 600;
  font-size: 0.95rem;
}

.card-when,
.card-note {
  color: var(--muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px 6px;
  border-top: 1px solid var(--paper-3);
}

.card-btn {
  width: 40px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  border-radius: var(--radius);
  color: var(--ink);
  transition: background-color 140ms ease-out;
}

.card-btn:hover {
  background: var(--paper-2);
}

.card-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.card-btn .icon {
  width: 20px;
  height: 20px;
}

.card-btn.card-play .icon {
  fill: currentColor;
  stroke: none;
}

.card-btn[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.card-count {
  flex: 1;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 1023px) {
  .card {
    --card-w: 280px;
  }

  /* Narrower buttons leave the counter room to stay on one line. */
  .card-btn {
    width: 36px;
  }
}

.viewer-meta {
  padding: 12px 64px 16px 16px;
  display: grid;
  gap: 4px;
  background: #0d0d0d;
  border-top: 1px solid #262626;
  min-height: 72px;
}

.viewer-caption {
  font-size: 1rem;
  line-height: 1.4;
}

.viewer-caption:empty {
  display: none;
}

.viewer-where {
  color: #b7b7b2;
  font-size: 0.88rem;
}

.viewer-where a {
  color: #fff;
  font-weight: 600;
}

.viewer-count {
  color: #8b8b86;
  font-variant-numeric: tabular-nums;
}

.viewer-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(22, 22, 22, 0.72);
  color: #fff;
  z-index: 2;
  transition: background-color 160ms ease-out;
}

.viewer-btn:hover {
  background: rgba(60, 60, 60, 0.9);
}

.viewer-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.viewer-btn .icon {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.viewer-close {
  top: 10px;
  right: 10px;
}

.viewer-prev,
.viewer-next {
  bottom: 14px;
  right: 10px;
}

.viewer-prev {
  right: 62px;
}

@media (min-width: 720px) {
  .viewer-prev,
  .viewer-next {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }

  .viewer-prev {
    left: 12px;
    right: auto;
  }

  .viewer-next {
    right: 12px;
  }

  .viewer-meta {
    padding: 14px 24px 18px;
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .viewer-caption {
    grid-column: 1 / -1;
  }
}

/* Tablets: wider sheet content */
@media (min-width: 600px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Wide screens: the panel becomes a column on the left */
@media (min-width: 1024px) {
  .panel {
    left: var(--gutter);
    right: auto;
    top: var(--gutter);
    bottom: var(--gutter);
    width: var(--panel-w);
    height: auto;
    border-radius: 6px;
    transform: none;
    transition: none;
  }

  .sheet-handle {
    display: none;
  }

  .band {
    padding: 18px 20px 14px;
    border-radius: 6px 6px 0 0;
  }

  .band-title {
    font-size: 2.2rem;
  }

  .view {
    padding: 22px 20px 36px;
  }

  .daystrip ol {
    padding: 6px 16px;
  }

  .totals {
    margin: 28px -20px 0;
    padding: 30px 20px 32px;
  }

  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .map-fallback {
    left: calc(var(--panel-w) + var(--gutter) * 2);
    right: auto;
    max-width: 420px;
  }
}

@media (min-width: 1440px) {
  :root {
    --panel-w: 480px;
    --gutter: 20px;
  }

  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
