/* Walk Tall Elevation Awards - site styles (one family: Rubik) */
:root {
  --alpine: #1e4e79;
  --alpine-deep: #163c5e;
  --alpine-tint: #e3ecf4;
  --snow: #f7fafc;
  --sunrise: #f28c28;
  --sunrise-text: #b35a00;
  --sunrise-light: #fbb978;
  --granite: #2d3748;
  --granite-soft: #4a5568;
  --rock-line: rgba(30, 78, 121, 0.2);

  /* post-template vocabulary */
  --gold: #f28c28;
  --steel: #4a5568;
  --navy: #1e4e79;
  --violet: #1e4e79;
  --line: rgba(30, 78, 121, 0.2);
  --panel: #ffffff;
  --bg: #f7fafc;
  --white: #ffffff;
  --white-soft: rgba(255, 255, 255, 0.86);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--snow);
  color: var(--granite);
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4, h5 { font-family: "Rubik", system-ui, sans-serif; color: var(--alpine); line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 500; }
p { margin: 0 0 1em; }
a { color: var(--alpine); text-underline-offset: 3px; }
a:hover { color: var(--alpine-deep); }
:focus-visible { outline: 3px solid var(--sunrise); outline-offset: 3px; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--alpine); color: #fff; padding: 10px 16px; z-index: 500; }
.skip-link:focus { top: 10px; color: #fff; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container.slim { max-width: 780px; }

.basebar { background: var(--snow); border-bottom: 2px solid var(--alpine); position: relative; z-index: 200; }
.basebar-row { max-width: 1120px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; }
.peakmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--alpine); font-weight: 700; font-size: 1.12rem; line-height: 1.15; }
.peakmark svg { width: 40px; height: 40px; flex: none; }
.peakmark small { display: block; font-weight: 400; font-size: 0.8rem; color: var(--granite-soft); margin-top: 2px; }
.basebar-nav { display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; }
.basebar-nav > a, .basebar-nav .nav-cats-toggle { color: var(--granite); text-decoration: none; font-weight: 500; font-size: 0.98rem; padding: 6px 0; }
.basebar-nav > a:hover, .basebar-nav .nav-cats-toggle:hover { color: var(--alpine); text-decoration: underline; }
.basebar-nav a.nav-cta { background: var(--sunrise); color: var(--granite); padding: 9px 18px; border-radius: 4px; font-weight: 700; }
.basebar-nav a.nav-cta:hover { background: var(--alpine); color: #fff; text-decoration: none; }

.btn { display: inline-block; background: var(--sunrise); color: var(--granite); font-weight: 700; text-decoration: none; padding: 13px 24px; border-radius: 4px; border: 2px solid var(--sunrise); font-size: 1rem; line-height: 1.3; cursor: pointer; font-family: inherit; }
.btn:hover { background: var(--alpine); border-color: var(--alpine); color: #fff; }
.btn-line { background: transparent; color: var(--alpine); border-color: var(--alpine); }
.btn-line:hover { background: var(--alpine); color: #fff; }
.hero .btn-line, .section-dark .btn-line, .section-black .btn-line { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.hero .btn-line:hover, .section-dark .btn-line:hover, .section-black .btn-line:hover { background: #fff; color: var(--alpine); border-color: #fff; }
.hero .btn:not(.btn-line):hover, .section-dark .btn:not(.btn-line):hover { background: #fff; border-color: #fff; color: var(--alpine); }
.kicker { display: block; font-size: 0.95rem; font-weight: 500; color: var(--sunrise-text); margin: 0 0 10px; }
.meta { font-size: 0.86rem; color: var(--granite-soft); }
.sub { font-size: 1.15rem; color: var(--granite-soft); max-width: 40em; }
.win-badge { display: inline-block; background: var(--sunrise); color: var(--granite); font-weight: 700; font-size: 0.85rem; padding: 5px 12px; border-radius: 3px; margin-bottom: 16px; }

.section { padding: 76px 0; position: relative; }
.section-light { background: #ffffff; border-top: 1px solid var(--rock-line); border-bottom: 1px solid var(--rock-line); }
.section-topo { background: var(--snow) url("/basecamp/contours-light.svg?v=1") center / 1200px auto repeat; }
.section-dark, .section-black, .hero, .hero-inner {
  --line: rgba(255, 255, 255, 0.24);
  --panel: #173f63;
  --bg: #1e4e79;
  --violet: #fbb978;
  --steel: rgba(255, 255, 255, 0.78);
}
.section-dark { background: var(--alpine) url("/basecamp/contours-dark.svg?v=1") center / 1200px auto repeat; color: var(--white-soft); }
.section-black { background: var(--alpine-deep); color: var(--white-soft); --bg: #163c5e; --panel: #12324f; }
.section-dark h2, .section-dark h3, .section-black h2, .section-black h3 { color: #fff; }
.section-dark p, .section-black p { color: var(--white-soft); }
.section-dark a:not(.btn), .section-black a:not(.btn) { color: var(--sunrise-light); }
.section-dark .kicker, .section-black .kicker, .hero .kicker, .hero-inner .kicker { color: var(--sunrise-light); }
.section-dark .meta, .section-black .meta { color: rgba(255, 255, 255, 0.75); }
.section-intro { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.section-intro p { color: var(--granite-soft); }
.section-dark .section-intro p { color: var(--white-soft); }
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { max-width: 620px; margin: 0 auto 26px; }

.hero, .hero-inner { background: var(--alpine) url("/basecamp/contours-dark.svg?v=1") center / 1200px auto repeat; color: #fff; position: relative; }
.hero { padding: 84px 0 76px; }
.hero-inner { padding: 64px 0 56px; border-bottom: 6px solid var(--sunrise); }
.hero h1, .hero-inner h1, .hero h2, .hero-inner h2 { color: #fff; }
.hero p, .hero-inner p { color: var(--white-soft); }
.hero .sub, .hero-inner .sub { color: var(--white-soft); }
.hero-inner > :not(.container) { box-sizing: content-box; max-width: 1072px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.hero-inner h1 { max-width: 20em; }
.award-hero { text-align: center; }
.award-hero .sub { margin-left: auto; margin-right: auto; }

.cat-list { max-width: 860px; margin: 0 auto; padding: 0 24px; display: grid; gap: 14px; }
.cat-item { display: block; background: #fff; border: 1px solid var(--rock-line); border-radius: 6px; padding: 20px 24px; text-decoration: none; color: var(--granite); }
.cat-item:hover { border-color: var(--alpine); box-shadow: 0 3px 0 var(--sunrise); }
.cat-item h3 { color: var(--alpine); margin-bottom: 4px; font-size: 1.1rem; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-grid h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.profile-chart { margin: 0; }
.profile-chart svg { display: block; width: 100%; height: auto; }
.profile-chart figcaption { font-size: 0.88rem; margin-top: 10px; }
.hero .profile-chart figcaption { color: rgba(255, 255, 255, 0.78); }
.profile-chart.on-light { background: #fff; border: 1px solid var(--rock-line); border-radius: 6px; padding: 18px; }
.profile-chart.on-light figcaption { color: var(--granite-soft); }

.alt-mark { display: none; }
@media (min-width: 1260px) {
  .alt-mark {
    display: flex; align-items: center; gap: 8px;
    position: absolute; top: 80px; left: calc(50% - 620px);
    writing-mode: vertical-rl; transform: rotate(180deg);
    font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--alpine);
  }
  .alt-mark::after { content: ""; width: 1px; height: 64px; background: var(--alpine); opacity: 0.5; }
  .alt-mark b { font-weight: 700; color: var(--sunrise-text); }
  .section-dark .alt-mark, .hero .alt-mark { color: rgba(255, 255, 255, 0.85); }
  .section-dark .alt-mark b, .hero .alt-mark b { color: var(--sunrise-light); }
  .section-dark .alt-mark::after, .hero .alt-mark::after { background: #fff; }
}

.field-notes { max-width: 720px; }
.field-notes h2 { margin-top: 1.6em; font-size: 1.55rem; }
.field-notes h2:first-child { margin-top: 0; }
.field-notes p, .field-notes li { color: var(--granite); }
.split-notes { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.trail-facts { background: #fff; border: 1px solid var(--rock-line); border-radius: 6px; padding: 24px 26px; margin: 0; }
.trail-facts h3 { margin-bottom: 14px; }
.trail-facts dl { margin: 0; }
.trail-facts dt { font-weight: 700; color: var(--alpine); }
.trail-facts dd { margin: 0 0 14px; color: var(--granite-soft); font-size: 0.96rem; }
.trail-facts dd:last-child { margin-bottom: 0; }

.route-set { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.route-card { background: #fff; border: 1px solid var(--rock-line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.route-card .route-line { background: var(--alpine); padding: 14px 18px 10px; }
.route-card .route-line svg { display: block; width: 100%; height: auto; max-height: 72px; }
.route-card .route-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.route-card h3 { color: var(--alpine); font-weight: 700; font-size: 1.15rem; margin-bottom: 8px; }
.route-card p { color: var(--granite-soft); font-size: 0.97rem; }
.route-card .route-link { margin-top: auto; font-weight: 500; }
.route-card.is-long .route-body p:last-child { margin-bottom: 0; }

.pitch-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; border-top: 2px solid var(--alpine); }
.pitch-list li { padding: 22px 22px 22px 0; border-bottom: 1px solid var(--rock-line); }
.pitch-list li + li { padding-left: 22px; border-left: 1px solid var(--rock-line); }
.pitch-list h3 { font-weight: 700; margin-bottom: 4px; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.pitch-list h3 span { font-weight: 500; font-size: 0.9rem; color: var(--sunrise-text); white-space: nowrap; }
.pitch-list p { font-size: 0.97rem; color: var(--granite-soft); margin: 0; }
.section-dark .pitch-list { border-top-color: var(--sunrise); }
.section-dark .pitch-list li { border-color: rgba(255, 255, 255, 0.22); }
.section-dark .pitch-list h3 span { color: var(--sunrise-light); }

.route-log { background: #fff; border: 1px solid var(--rock-line); border-radius: 6px; padding: 26px 28px; color: var(--granite); }
.route-log h3 { font-weight: 700; color: var(--alpine); margin-bottom: 6px; }
.route-log .invented { display: inline-block; margin-top: 2px; font-size: 0.82rem; font-weight: 500; color: var(--sunrise-text); border: 1px solid var(--sunrise-text); border-radius: 3px; padding: 2px 8px; margin-bottom: 12px; }
.route-log p { color: var(--granite-soft); font-size: 0.97rem; }
.route-log table { width: 100%; border-collapse: collapse; margin: 16px 0 14px; font-size: 0.97rem; }
.route-log th, .route-log td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--rock-line); vertical-align: middle; }
.route-log thead th { font-weight: 500; font-size: 0.84rem; color: var(--granite-soft); border-bottom: 2px solid var(--alpine); }
.route-log td.pts, .route-log th.pts { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.route-log tfoot td, .route-log tfoot th { font-weight: 700; color: var(--alpine); border-bottom: 0; padding-top: 12px; }
.score-bar { display: block; height: 8px; background: var(--alpine-tint); border-radius: 2px; min-width: 70px; }
.score-bar i { display: block; height: 100%; background: var(--alpine); border-radius: 2px; }
.log-result { margin: 0; font-weight: 500; color: var(--granite); }
.log-result strong { color: var(--alpine); }
.score-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }

.camp-bands { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.camp-bands li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: start; background: #fff; border: 1px solid var(--rock-line); border-radius: 6px; padding: 16px 18px; }
.camp-bands .band-range { font-weight: 700; font-size: 1.15rem; color: var(--alpine); font-variant-numeric: tabular-nums; }
.camp-bands h3 { font-weight: 700; margin-bottom: 4px; }
.camp-bands p { margin: 0; color: var(--granite-soft); font-size: 0.97rem; }
.camp-bands .is-summit { border-color: var(--sunrise); box-shadow: inset 0 0 0 1px var(--sunrise); }
.camp-bands .not-placed { background: transparent; border-style: dashed; }

.trail-steps { list-style: none; counter-reset: leg; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.trail-steps li { counter-increment: leg; position: relative; padding-top: 54px; }
.trail-steps li::before { content: counter(leg); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--alpine); color: #fff; font-weight: 700; display: grid; place-items: center; }
.trail-steps li::after { content: ""; position: absolute; top: 19px; left: 50px; right: -14px; border-top: 2px dashed var(--rock-line); }
.trail-steps li:last-child::after { display: none; }
.trail-steps h3 { font-weight: 700; }
.trail-steps p { color: var(--granite-soft); font-size: 0.97rem; margin: 0; }

.trail-questions { max-width: 760px; }
.trail-questions h3 { font-weight: 700; margin: 26px 0 6px; }
.trail-questions h3:first-child { margin-top: 0; }
.trail-questions p { color: var(--granite-soft); }

.nom-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.nom-form { background: #fff; border: 1px solid var(--rock-line); border-radius: 6px; padding: 28px; display: grid; gap: 18px; }
.nom-form label { display: block; font-weight: 500; color: var(--alpine); margin-bottom: 6px; }
.nom-form .hint { display: block; font-weight: 400; font-size: 0.88rem; color: var(--granite-soft); margin-top: 2px; }
.nom-form input, .nom-form select, .nom-form textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--granite); background: var(--snow); border: 1px solid #8fa5ba; border-radius: 4px; padding: 11px 12px; }
.nom-form input:focus, .nom-form select:focus, .nom-form textarea:focus { outline: 3px solid var(--sunrise); outline-offset: 1px; border-color: var(--alpine); }
.nom-form textarea { min-height: 150px; resize: vertical; }
.nom-form .form-note { font-size: 0.9rem; color: var(--granite-soft); margin: 0; }

.lost-trail { text-align: left; }

.groundline { background: var(--alpine-deep) url("/basecamp/contours-dark.svg?v=1") center / 1200px auto repeat; color: rgba(255, 255, 255, 0.84); padding: 56px 0 26px; font-size: 0.96rem; }
.groundline-cols { max-width: 1120px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.groundline .peakmark { color: #fff; }
.groundline .peakmark small { color: rgba(255, 255, 255, 0.75); }
.groundline p { margin: 14px 0 0; max-width: 30em; color: rgba(255, 255, 255, 0.84); }
.groundline h2 { color: #fff; font-size: 1rem; font-weight: 700; margin: 6px 0 12px; }
.groundline ul { list-style: none; margin: 0; padding: 0; }
.groundline li { margin: 0 0 8px; }
.groundline a { color: #fff; text-decoration: none; }
.groundline a:hover { color: var(--sunrise-light); text-decoration: underline; }
.groundline-base { max-width: 1120px; margin: 40px auto 0; padding: 18px 24px 0; border-top: 1px solid rgba(255, 255, 255, 0.2); font-size: 0.86rem; color: rgba(255, 255, 255, 0.72); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.groundline-base a { color: var(--sunrise-light); }

@media (max-width: 960px) {
  .hero-grid, .split-notes, .score-split, .nom-layout { grid-template-columns: 1fr; gap: 36px; }
  .groundline-cols { grid-template-columns: 1fr 1fr; }
  .groundline-cols > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container, .basebar-row { padding-left: 16px; padding-right: 16px; }
  .hero-inner > :not(.container) { padding-left: 16px; padding-right: 16px; }
  .cat-list { padding: 0 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 56px 0; }
  .hero-inner { padding: 46px 0 40px; }
  .basebar-row { padding-top: 12px; padding-bottom: 12px; }
  .basebar-nav { gap: 4px 18px; width: 100%; }
  .peakmark { font-size: 1rem; }
  .peakmark svg { width: 34px; height: 34px; }
  .pitch-list li, .pitch-list li + li { padding: 18px 0; border-left: 0; }
  .route-log { padding: 20px 16px; }
  .camp-bands li { grid-template-columns: 1fr; gap: 4px; }
  .trail-steps li::after { display: none; }
  .nom-form { padding: 20px 16px; }
  .groundline-cols { grid-template-columns: 1fr; padding: 0 16px; }
  .groundline-base { padding-left: 16px; padding-right: 16px; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.route-set { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.route-card.open-route { background: transparent; border: 2px dashed rgba(30, 78, 121, 0.45); }
.route-card.open-route .route-body { justify-content: center; }
@media (max-width: 960px) { .route-set { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .route-set { grid-template-columns: 1fr; } }
.container.field-notes, .container.trail-questions { max-width: 1120px; }
.container.field-notes > *, .container.trail-questions > * { max-width: 720px; }
.groundline-base { max-width: none; margin: 40px max(24px, calc((100% - 1072px) / 2)) 0; padding: 18px 0 0; }
@media (max-width: 640px) { .groundline-base { margin-left: 16px; margin-right: 16px; padding-left: 0; padding-right: 0; } }
