@layer components {
  .main-nav .nav-current { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
  .event-navigation { background: var(--warm); border-bottom: 1px solid var(--line); }
  .event-navigation .wrap { display: flex; align-items: center; gap: 34px; }
  .event-navigation-label { font-size: .65rem; font-weight: 600; letter-spacing: .12em; color: var(--muted); margin-right: auto; }
  .event-navigation a { display: flex; align-items: center; min-height: 58px; font-size: .9rem; border-bottom: 3px solid transparent; }
  .event-navigation a[aria-current] { color: var(--forest); border-bottom-color: var(--orange); font-weight: 600; }
  .event-hero { padding-block: 42px 54px; }
  .event-hero-grid { display: grid; grid-template-columns: 1.18fr 1fr; align-items: center; gap: clamp(32px, 6vw, 90px); }
  .event-hero h1 { color: var(--forest); font-size: clamp(2.7rem, 4.4vw, 4.5rem); line-height: 1.06; }
  .event-hero .eyebrow { color: var(--muted); }
  .event-hero p:not(.eyebrow) { color: var(--muted); margin-top: 25px; }
  .event-hero .quiet-link { margin-top: 22px; }
  .event-hero-photo { margin: 0; position: relative; }
  .event-hero-photo img { width: 100%; height: 440px; object-fit: cover; border-radius: 85px 4px 4px 4px; }
  .event-hero-photo figcaption { position: absolute; bottom: 20px; left: -20px; padding: 12px 20px; background: var(--apricot); color: var(--ink); font-size: .8rem; font-weight: 600; transform: rotate(-3deg); }
  .editorial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 7vw, 110px); }
  .editorial-grid h2 { margin-bottom: 26px; }
  .editorial-grid p:not(.eyebrow), .reading-copy p { color: var(--muted); }
  .reading-copy p { font-size: 1.06rem; }
  .warm-section { background: var(--warm); }
  .pause-visual { padding-block: 20px; }
  .pause-ring { width: min(100%, 330px); aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--forest) 0 75%, var(--apricot) 75% 100%); display: grid; place-items: center; margin-inline: auto; transform: rotate(-90deg); }
  .pause-ring > div { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 80%; height: 80%; border-radius: 50%; background: var(--warm); transform: rotate(90deg); }
  .pause-ring strong { color: var(--forest); font-size: 3.6rem; letter-spacing: -.04em; line-height: 1.2; }
  .pause-ring span { font-size: .7rem; letter-spacing: .15em; }
  .pause-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 24px; font-size: .78rem; }
  .pause-legend span { display: flex; align-items: center; gap: 8px; }
  .pause-legend i { width: 11px; height: 11px; border-radius: 50%; background: var(--forest); }
  .pause-legend span:last-child i { background: var(--apricot); }
  .direction-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 7vw, 110px); }
  .direction-layout h2 { margin-bottom: 24px; }
  .direction-layout > div > p:not(.eyebrow) { color: var(--muted); }
  .direction-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .direction-tiles > div { padding: 26px 18px; border: 1px solid var(--line); background: var(--warm); border-radius: var(--radius); }
  .direction-tiles strong, .direction-tiles small { display: block; }
  .direction-tiles > div > span { display: block; color: var(--forest); font-size: 3rem; line-height: 1; margin-bottom: 20px; }
  .direction-tiles p { font-size: .82rem; margin-top: 8px; }
  .direction-tiles small { margin-top: 12px; font-size: .73rem; color: var(--muted); }
  .final-yard-note { margin-top: 20px; padding: 20px 24px; border-left: 3px solid var(--orange); background: var(--warm); }
  .final-yard-note > strong { font-size: .7rem; letter-spacing: .08em; }
  .final-yard-note p { font-size: .9rem; margin-top: 10px; color: var(--muted); }
  .scoring-section { background: var(--forest); color: var(--paper); }
  .scoring-section .eyebrow { color: var(--apricot); }
  .scoring-section .reading-copy p { color: var(--paper); }
  .scoring-section .text-link { color: var(--paper); border-color: var(--paper); }
  .event-next { padding-block: 50px; background: var(--warm); border-top: 1px solid var(--line); }
  .event-next-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
  .event-next h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
  .event-next .eyebrow { margin-bottom: 12px; }
  .event-next-inner > div:last-child { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
  .button-forest { color: var(--paper); background: var(--forest); }
  .button-forest:hover { background: var(--ink); }
  .comparison-scroll { width: 100%; overflow-x: auto; margin-top: 30px; }
  .comparison-table, .distance-table { width: 100%; border-collapse: collapse; }
  .comparison-table { min-width: 620px; }
  .comparison-table caption, .distance-table caption { text-align: left; color: var(--muted); font-size: .8rem; margin-bottom: 15px; }
  .comparison-table th, .comparison-table td, .distance-table th, .distance-table td { padding: 20px 18px; border-bottom: 1px solid var(--line); text-align: left; }
  .comparison-table thead, .distance-table thead { background: var(--forest); color: var(--paper); }
  .comparison-table tbody th, .distance-table tbody th { font-weight: 600; color: var(--forest); }
  .comparison-table tbody tr:nth-child(even) { background: var(--warm); }
  .event-inline-photo img { width: 100%; height: 420px; object-fit: cover; border-radius: 4px 4px 85px 4px; }
  .route-data-badge { font-size: .75rem; padding: 7px 13px; border: 1px solid var(--line); white-space: nowrap; color: var(--muted); }
  .route-view-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; margin-bottom: 18px; }
  .route-view-controls button { min-height: 48px; border: 1px solid var(--forest); border-radius: var(--radius); padding: 10px 18px; font-size: .85rem; background: none; color: var(--forest); }
  .route-view-controls button[aria-pressed=true] { background: var(--forest); color: var(--paper); }
  .track-figure { margin: 0; }
  #route-map { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  #route-map svg, #route-profile svg { display: block; width: 100%; height: auto; }
  .track-figure figcaption { font-size: .78rem; color: var(--muted); margin-top: 14px; }
  .map-background { fill: var(--warm); }
  .map-grid-line { stroke: var(--line); stroke-width: 1; fill: none; }
  .map-trail-shadow { stroke: var(--paper); stroke-width: 13; fill: none; stroke-linecap: round; stroke-linejoin: round; }
  .map-trail { stroke: var(--forest); stroke-width: 5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
  .map-direction { stroke: var(--orange); stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
  .map-start { fill: var(--orange); stroke: var(--paper); stroke-width: 3; }
  .map-label { fill: var(--forest); font-family: var(--font); font-size: 16px; font-weight: 600; paint-order: stroke; stroke: var(--warm); stroke-width: 5px; stroke-linejoin: round; }
  .map-small-label { fill: var(--muted); font-family: var(--font); font-size: 14px; }
  .map-north, .map-scale { stroke: var(--forest); stroke-width: 2; fill: none; }
  .track-legend { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 20px; color: var(--muted); font-size: .8rem; }
  .track-legend > span { display: flex; align-items: center; gap: 9px; }
  .track-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
  .track-line { width: 23px; height: 3px; background: var(--forest); }
  .elevation-heading { margin-block: 46px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px; }
  .elevation-heading h3 { font-size: 1.5rem; }
  .elevation-heading span { font-size: .75rem; color: var(--muted); }
  #route-profile { border-bottom: 1px solid var(--line); }
  .profile-grid { stroke: var(--line); stroke-width: 1; }
  .profile-area { fill: var(--turquoise); fill-opacity: .15; }
  .profile-line { fill: none; stroke: var(--forest); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
  .profile-label { fill: var(--muted); font-family: var(--font); font-size: 14px; }
  .route-download { display: flex; align-items: center; gap: 30px; margin-top: 28px; }
  .route-download .button { flex-shrink: 0; }
  .route-download p { font-size: .8rem; color: var(--muted); max-width: 560px; }
  .full-schedule dt { font-size: 1.3rem; }
  .yard-timeline { list-style: none; padding: 0; margin: 0; max-width: 950px; margin-inline: auto; }
  .yard-timeline > li { position: relative; display: grid; grid-template-columns: 105px 24px 1fr; gap: 20px; padding-block: 0 30px; }
  .yard-timeline > li::before { content: ''; position: absolute; left: 136px; top: 15px; bottom: -15px; width: 1px; background: var(--line); }
  .yard-timeline > li:last-child::before { display: none; }
  .yard-timeline time { font-size: 1.8rem; font-weight: 600; line-height: 1.3; color: var(--forest); padding-top: 20px; }
  .timeline-node { z-index: 1; margin-top: 32px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--warm); background: var(--forest); justify-self: center; }
  .timeline-content { padding: 22px 26px; border-bottom: 1px solid var(--line); }
  .timeline-content > div { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; }
  .timeline-content h3 { font-size: 1.5rem; }
  .timeline-content p { font-size: .9rem; color: var(--forest); margin-top: 10px; }
  .timeline-content small { display: block; font-size: .78rem; color: var(--muted); margin-top: 6px; }
  .timeline-badge { font-size: .65rem; padding: 5px 10px; background: var(--apricot); border-radius: 2px; }
  .timeline-highlight .timeline-content { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
  .timeline-highlight .timeline-node { background: var(--orange); }
  .finish-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .finish-panels article { padding: 26px 22px; border: 1px solid var(--line); background: var(--warm); }
  .finish-panels h3 { color: var(--forest); font-size: 2rem; }
  .finish-panels h3 span { display: block; font-weight: 400; font-size: .8rem; letter-spacing: 0; margin-top: 10px; color: var(--muted); }
  .finish-panels p:not(.eyebrow) { font-size: .9rem; margin-top: 20px; }
  .finish-panels small { font-size: .72rem; color: var(--muted); }
}
@layer responsive {
  @media (max-width: 950px) {
    .event-hero-grid { gap: 32px; }
    .event-hero-photo img { height: 420px; }
    .event-hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.5rem); }
    .finish-panels { grid-template-columns: 1fr; }
    .route-download { align-items: flex-start; flex-direction: column; gap: 18px; }
  }
  @media (max-width: 680px) {
    .event-navigation .wrap { gap: 24px; overflow-x: auto; width: 100%; padding-inline: var(--gutter); }
    .event-navigation-label { display: none; }
    .event-navigation a { white-space: nowrap; min-height: 54px; font-size: .85rem; }
    .event-hero { padding-block: 32px 40px; }
    .event-hero-grid, .editorial-grid, .direction-layout { grid-template-columns: 1fr; }
    .event-hero h1 { font-size: clamp(2.4rem, 8.4vw, 3.5rem); }
    .event-hero p:not(.eyebrow) { margin-top: 22px; }
    .event-hero-photo { margin-top: 10px; padding-bottom: 14px; }
    .event-hero-photo img { height: 300px; border-top-left-radius: 65px; }
    .event-hero-photo figcaption { left: 10px; bottom: 0; font-size: .72rem; }
    .editorial-grid { gap: 20px; }
    .reading-copy p { font-size: 1rem; }
    .editorial-grid h2 { margin-bottom: 10px; }
    .direction-layout { gap: 28px; }
    .direction-tiles > div { padding: 22px 16px; }
    .direction-tiles strong { font-size: .9rem; }
    .direction-tiles p { font-size: .75rem; }
    .direction-tiles small { font-size: .66rem; }
    .event-next-inner { align-items: flex-start; flex-direction: column; gap: 26px; }
    .event-inline-photo img { height: 300px; border-bottom-right-radius: 65px; }
    .distance-table th, .distance-table td { padding: 15px 10px; font-size: .9rem; }
    .route-data-badge { white-space: normal; max-width: 135px; text-align: center; font-size: .65rem; }
    .route-view-controls { gap: 8px; }
    .route-view-controls button { flex: 1 1 140px; font-size: .75rem; padding-inline: 10px; }
    .track-legend { gap: 15px; font-size: .7rem; }
    #route-map svg { min-height: 275px; }
    .map-label { font-size: 30px; }
    .map-small-label, .profile-label { font-size: 28px; }
    .route-download .button { font-size: .8rem; }
    .full-schedule dt { font-size: 1.1rem; }
    .yard-timeline > li { grid-template-columns: 68px 16px 1fr; gap: 10px; padding-bottom: 20px; }
    .yard-timeline > li::before { left: 85px; }
    .yard-timeline time { font-size: 1.35rem; padding-top: 24px; }
    .timeline-node { width: 12px; height: 12px; }
    .timeline-content { padding: 20px 14px; }
    .timeline-content h3 { font-size: 1.25rem; }
    .timeline-content p { font-size: .8rem; }
    .timeline-content small { font-size: .7rem; }
    .timeline-badge { font-size: .58rem; }
    .finish-panels { grid-template-columns: 1fr 1fr; gap: 12px; }
    .finish-panels article { padding: 20px 14px; }
    .finish-panels h3 { font-size: 1.7rem; }
    .finish-panels p:not(.eyebrow) { font-size: .8rem; }
  }
  @media (max-width: 360px) {
    .event-hero h1 { font-size: 2.1rem; }
    .event-navigation .wrap { gap: 20px; }
    .finish-panels { grid-template-columns: 1fr; }
    .direction-tiles { gap: 10px; }
    .direction-tiles > div { padding-inline: 12px; }
  }
}
