/* Shared styles for the season pages (this-season.html, summer.html).
 *
 * These rules used to be duplicated in a <style> block inside each season
 * page. They live here so the destination card — including its disclosure
 * behaviour — is defined once and both pages inherit it.
 *
 * Loaded after assets/css/site.css, which supplies the design tokens.
 */

/* ---------- page intro ---------- */

.season-intro {
  padding: clamp(4.5rem, 10vw, 8rem) 0 4rem;
  background:
    radial-gradient(circle at 85% 10%, rgba(77, 197, 230, 0.28), transparent 26%),
    linear-gradient(135deg, #0c2d50, #0a5b77 110%, #0b1831);
}

.season-intro h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3rem, 9vw, 5.8rem);
  letter-spacing: -0.04em;
}

.season-intro__lede {
  max-width: 48rem;
  margin: 1.35rem 0 0;
  color: #d7e9ee;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
}

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

/* ---------- route overview ---------- */

.route-overview {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: linear-gradient(145deg, rgba(77, 197, 230, 0.12), rgba(16, 40, 74, 0.78));
}

.route-overview__note {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.route-list {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: route;
  scroll-margin-top: 5.75rem;
}

/* The route list takes focus programmatically when "Back to route" is used, so
   it is not a tab stop and does not need a ring of its own. Keyboard focus
   rings elsewhere are untouched. */
.route-list:focus:not(:focus-visible) {
  outline: none;
}

.route-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(178, 220, 235, 0.13);
  border-radius: 0.45rem;
  background: rgba(6, 19, 38, 0.38);
  font-weight: 700;
}

.route-list li::before {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
  place-items: center;
  border: 1px solid rgba(154, 231, 244, 0.55);
  border-radius: 50%;
  color: var(--ocean-light);
  content: counter(route);
  counter-increment: route;
  font-size: 0.72rem;
}

.route-list a {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 2.75rem;
  align-items: center;
  margin: -0.55rem -0.7rem -0.55rem 0;
  padding: 0.55rem 0.7rem;
  border-radius: 0.45rem;
  color: inherit;
  text-decoration: none;
}

.route-list li:hover {
  border-color: var(--ocean);
}

.route-list a:hover,
.route-list a:focus-visible {
  color: var(--ocean-light);
}

/* Summer page: the three explanatory notes under the route list. */
.season-notes {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.season-note {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(154, 231, 244, 0.22);
  border-radius: 0.55rem;
  background: rgba(6, 19, 38, 0.4);
}

.season-note strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--foam);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.season-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- destination guides ---------- */

/* align-items: start is load-bearing. Grid items stretch to the row height by
   default, so opening one card's disclosure would drag every sibling in the
   same row taller and leave them padded with dead space. */
.guide-grid {
  display: grid;
  align-items: start;
  gap: 1.25rem;
}

.guide-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: rgba(13, 38, 69, 0.72);
  scroll-margin-top: 5.75rem;
}

.guide-card:focus-visible {
  outline: 3px solid var(--ocean-light);
  outline-offset: 3px;
}

.guide-card__media {
  position: relative;
  margin: 0;
}

.guide-card__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  background: rgba(10, 42, 75, 0.86);
  object-fit: cover;
}

/* The Wikimedia photographs are licensed CC BY / CC BY-SA, so this credit has
   to stay wherever the image appears. It sits on the image deliberately, above
   the disclosure, and must not be moved inside it. */
.guide-card__credit {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0.4rem 0.7rem;
  background: linear-gradient(transparent, rgba(4, 14, 28, 0.88));
  color: #c8dce7;
  font-size: 0.7rem;
  line-height: 1.4;
}

.guide-card__credit a {
  color: #e2f3f9;
}

.guide-card__body {
  padding: 1.3rem;
  overflow-wrap: break-word;
}

.guide-card h3 {
  margin: 0;
  font-size: 1.7rem;
}

.guide-card p {
  color: var(--muted);
}

.guide-card__eyebrow {
  margin: 0 0 0.45rem !important;
  color: var(--ocean-light) !important;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.15rem 0 0;
}

.guide-card__action {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.95rem;
  border: 1px solid rgba(154, 231, 244, 0.45);
  border-radius: 0.4rem;
  background: rgba(77, 197, 230, 0.14);
  color: var(--foam);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.guide-card__action:hover,
.guide-card__action:focus-visible {
  border-color: var(--ocean);
  background: rgba(77, 197, 230, 0.26);
}

.guide-card__action-icon {
  flex: none;
  color: var(--ocean-light);
  font-size: 0.75rem;
}

.guide-card__action--map {
  border-color: var(--line);
  background: rgba(6, 19, 38, 0.45);
}

.guide-card__action--map:hover,
.guide-card__action--map:focus-visible {
  border-color: var(--ocean-light);
  background: rgba(77, 197, 230, 0.16);
}

.guide-card__subhead {
  margin: 1.6rem 0 0.6rem;
  color: var(--ocean-light);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.activity-slots {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-slots li {
  border-left: 2px solid var(--ocean);
  background: rgba(6, 19, 38, 0.35);
}

.activity-slots a {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.6rem 0.7rem;
  color: #d7e9ee;
  font-size: 0.9rem;
  line-height: 1.45;
  text-decoration: none;
}

.activity-slots a:hover,
.activity-slots a:focus-visible {
  background: rgba(77, 197, 230, 0.14);
  color: var(--foam);
}

.activity-slots__icon {
  flex: none;
  color: var(--ocean-light);
  font-size: 0.7rem;
}

.guide-card__optional {
  margin-top: 1.25rem;
  padding: 0.8rem;
  border: 1px solid rgba(154, 231, 244, 0.22);
  border-radius: 0.45rem;
  background: rgba(77, 197, 230, 0.08);
}

.guide-card__optional + .guide-card__optional {
  margin-top: 0.7rem;
}

.guide-card__optional strong {
  display: block;
  color: var(--foam);
}

.guide-card__optional p {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
}

.guide-card__optional--highlight {
  border-color: rgba(154, 231, 244, 0.45);
  background: rgba(77, 197, 230, 0.17);
}

/* ---------- native disclosure ----------
 *
 * <details>/<summary> does the whole job: keyboard operation, the
 * expanded/collapsed announcement, and find-in-page expansion in Chrome and
 * Safari all come free. Nothing here re-implements any of that; the styling
 * only removes the default triangle and gives the summary a control-like
 * affordance. Do not replace this with a scripted toggle.
 */

.guide-card__more {
  margin-top: 0.7rem;
}

.guide-card__disclosure {
  display: flex;
  width: 100%;
  min-height: 2.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(154, 231, 244, 0.45);
  border-radius: 0.4rem;
  background: rgba(77, 197, 230, 0.14);
  color: var(--foam);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

/* Remove the default disclosure triangle in every engine. */
.guide-card__disclosure::-webkit-details-marker {
  display: none;
}

.guide-card__disclosure::marker {
  content: "";
}

.guide-card__disclosure:hover {
  border-color: var(--ocean);
  background: rgba(77, 197, 230, 0.26);
}

/* site.css already supplies the global :focus-visible outline; this keeps the
   summary's fill in step with it so the control reads as focused, not just
   outlined. */
.guide-card__disclosure:focus-visible {
  border-color: var(--ocean);
  background: rgba(77, 197, 230, 0.26);
}

.guide-card__disclosure-hint {
  font-weight: 700;
  opacity: 0.78;
}

.guide-card__disclosure-open {
  display: none;
}

.guide-card__more[open] .guide-card__disclosure-open {
  display: inline;
}

.guide-card__more[open] .guide-card__disclosure-closed {
  display: none;
}

.guide-card__disclosure-icon {
  flex: none;
  color: var(--ocean-light);
  transition: transform 0.18s ease;
}

.guide-card__more[open] .guide-card__disclosure-icon {
  transform: rotate(180deg);
}

.guide-card__more-body {
  padding-top: 0.35rem;
}

.guide-card__more-body .guide-card__actions {
  margin-top: 0.9rem;
}

.guide-fallback {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: rgba(6, 19, 38, 0.38);
  color: var(--muted);
}

/* ---------- back to route ----------
 *
 * Small-screen only. The collapsed grid is still a long scroll on a phone, and
 * the route list at the top is the page's index; this returns to it without
 * turning the layout into an app shell. Hidden until the route list has
 * scrolled away, and removed from the tab order while hidden.
 */

.route-return {
  position: fixed;
  z-index: 30;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(154, 231, 244, 0.5);
  border-radius: 999px;
  background: rgba(6, 19, 38, 0.95);
  color: var(--foam);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 0.6rem 1.6rem rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;
}

.route-return.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.route-return:hover,
.route-return:focus-visible {
  border-color: var(--ocean);
  background: rgba(16, 40, 74, 0.98);
}

.route-return__icon {
  color: var(--ocean-light);
}

/* ---------- join callout ---------- */

.join-callout {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(154, 231, 244, 0.32);
  border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(77, 197, 230, 0.16), rgba(16, 40, 74, 0.86));
}

.join-callout h2 {
  max-width: none;
}

.join-callout p {
  max-width: 44rem;
  color: #d5e7ed;
}

/* ---------- responsive ---------- */

@media (min-width: 44rem) {
  .route-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  /* The route list is always in reach on wider screens. */
  .route-return {
    display: none;
  }
}

@media (min-width: 70rem) {
  .route-overview {
    padding: 2rem;
  }

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

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