/* Shared styles for every Off Road Ouray page. Dark navy, amber accent, rounded type. */
:root {
  --bg: #0e0e0e;
  --surface: #1a1a1a;
  --surface-2: #262626;
  --ink: #f2f2f2;
  --ink-2: #d2d2d2;
  --muted: #9a9a9a;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #ffd21f;
  --accent-ink: #1d1505;
  --accent-soft: rgba(255, 210, 31, 0.14);
  --radius: 8px;
  --corner: 8px;
  --card-bg: linear-gradient(180deg, #242424 0%, #1a1a1a 62%);   /* soft top light, matched to the reference cards */
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --hdr: 72px;
  --gutter: 48px;
  --max: 1240px;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;

  --st-open: #5fd08f;    --st-open-bg: rgba(95, 208, 143, 0.14);
  --st-caution: #ff8a3d; --st-caution-bg: rgba(255, 138, 61, 0.15);   /* deeper orange, so it never reads as the amber accent */
  --st-closed: #ff6b5e;  --st-closed-bg: rgba(255, 107, 94, 0.15);
  --st-unknown: #a6a6a6; --st-unknown-bg: rgba(163, 173, 186, 0.14);
  --st-season: #8fbce6;  --st-season-bg: rgba(143, 188, 230, 0.14);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Public Sans', system-ui, sans-serif; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; line-height: 1.55;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }
h1, h2, h3, .display { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: .01em; line-height: .98; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--hdr);
  display: flex; align-items: center; gap: 32px; padding: 0 var(--gutter);
  background: rgba(14, 14, 14, 0.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); color: var(--ink);
}
.site-header.fixed { position: fixed; left: 0; right: 0; }
.site-header.dark { background: rgba(0, 0, 0, 0.78); }
.site-header.over { position: absolute; left: 0; right: 0; background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,0)); border-bottom-color: transparent; backdrop-filter: none; }
.brand-link { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: 900 24px var(--display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.brand-link .logo { display: flex; align-items: center; gap: 7px; }
.brand-link .logo-mark { display: block; height: 26px; width: auto; }
.brand-link .logo-word { display: block; height: 21.8px; width: auto; }
@media (max-width: 860px) { .brand-link .logo-word { height: 16px; } }
.site-nav { display: flex; gap: 6px; margin-left: auto; }
.site-nav a {
  padding: 9px 16px; border-radius: 8px; color: inherit; text-decoration: none;
  font: 800 18px var(--display); text-transform: uppercase; letter-spacing: .06em; opacity: .8;
}
.site-nav a:hover { opacity: 1; background: rgba(255,255,255,.08); }
.site-nav a[aria-current="page"] { opacity: 1; color: var(--accent); }
.menu-btn { display: none; margin-left: auto; border: 1px solid rgba(255,255,255,.2); background: none; color: inherit; border-radius: 8px; padding: 8px 16px; font: 800 16px var(--display); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }

.sample-banner {
  padding: 10px var(--gutter); background: #1a1a1a; color: var(--muted);
  border-bottom: 1px solid var(--line); font-size: 13px; text-align: center;
}
.sample-banner strong { color: var(--accent); }

/* ---- Layout ---- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section.block { padding: 80px 0; }
section.block + section.block { padding-top: 0; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
h1.page-title { margin: 12px 0 0; font-size: clamp(48px, 6.5vw, 88px); }
.lede { margin: 18px 0 0; max-width: 38em; font-size: 18px; color: var(--ink-2); }
h2.section-title { margin: 0 0 8px; font-size: 40px; }
.section-sub { margin: 0 0 32px; color: var(--muted); }
.page-head { padding: 72px 0 48px; }

/* Photo hero used on Plan a trip and About */
.photo-head { position: relative; min-height: 440px; display: flex; align-items: flex-end; background: #0a0a0a center / cover no-repeat; }
.photo-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,14,14,.15) 0%, rgba(14,14,14,.35) 45%, var(--bg) 100%); }
.photo-head .wrap { position: relative; z-index: 1; width: 100%; padding-top: calc(var(--hdr) + 56px); padding-bottom: 48px; }
.photo-credit { font-size: 12px; color: var(--muted); }
.photo-credit a { color: var(--muted); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 8px;
  font: 600 15px 'Public Sans', system-ui, sans-serif; text-decoration: none; cursor: pointer;
  border: 1px solid rgba(255,255,255,.16); color: var(--ink); background: transparent;
}
.btn:hover { background: rgba(255,255,255,.06); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #ffde55; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Status pill ---- */
.status-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 6px; border-radius: 999px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.status-pill .ico { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: #121212; font-size: 11px; font-weight: 800; }
.status-open    { color: var(--st-open);    background: linear-gradient(var(--st-open-bg), var(--st-open-bg)), #141414; }
.status-caution { color: var(--st-caution); background: linear-gradient(var(--st-caution-bg), var(--st-caution-bg)), #141414; }
.status-closed  { color: var(--st-closed);  background: linear-gradient(var(--st-closed-bg), var(--st-closed-bg)), #141414; }
.status-unknown { color: var(--st-unknown); background: linear-gradient(var(--st-unknown-bg), var(--st-unknown-bg)), #141414; }
.status-season  { color: var(--st-season);  background: linear-gradient(var(--st-season-bg), var(--st-season-bg)), #141414; }
.status-open .ico { background: var(--st-open); }
.status-caution .ico { background: var(--st-caution); }
.status-closed .ico { background: var(--st-closed); }
.status-unknown .ico { background: var(--st-unknown); }
.status-season .ico { background: var(--st-season); }
.sample-tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: #262626; padding: 3px 8px; border-radius: 6px; }

/* ---- Trail board rows ---- */
.board { background: var(--card-bg); border-radius: var(--radius); overflow: hidden; }
.trail-row {
  display: grid; grid-template-columns: 88px minmax(180px, 1.2fr) 190px minmax(0, 2fr) 20px; gap: 24px; align-items: center;
  padding: 18px 28px; border-top: 1px solid var(--line); color: inherit; text-decoration: none;
}
.trail-row:first-child { border-top: 0; }
.trail-row { position: relative; }
/* Only the name is the link (clear link text for search), but its tap area covers the whole row. */
.tr-link { color: inherit; text-decoration: none; }
.tr-link::after { content: ""; position: absolute; inset: 0; }
.tr-link:focus-visible { outline: none; } .trail-row:has(.tr-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
.trail-row:hover { background: var(--surface-2); }
.tr-thumb { width: 88px; height: 60px; display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.tr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tr-thumb svg { width: 100%; height: 100%; padding: 8px; }
.tr-name { display: grid; gap: 2px; }
.tr-title { display: flex; align-items: center; gap: 10px; font: 800 22px var(--display); text-transform: uppercase; letter-spacing: .02em; }
.tr-meta { color: var(--muted); font-size: 13px; padding-left: 25px; }
.tr-reason { color: var(--muted); font-size: 15px; }
.tr-go { color: var(--muted); font-size: 24px; line-height: 1; }
.board-empty { padding: 48px; text-align: center; color: var(--muted); }

/* ---- Weather card (full size on trail pages, compact widget on the homepage) ---- */
.wx { background: var(--card-bg); border-radius: var(--radius); padding: 28px 32px; }
.wx-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.wx-headline { margin-top: 8px; font: 600 19px 'Public Sans', system-ui, sans-serif; line-height: 1.35; max-width: 30em; }
.wx-loading .wx-headline { color: var(--muted); font-weight: 500; }
.wx-facts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.wx-chart { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; height: 108px; margin-top: 26px; }
.wx-col { display: grid; grid-template-rows: 1fr 22px; }
.wx-col.past { opacity: .35; }
.wx-bar-wrap { display: flex; align-items: flex-end; border-bottom: 1px solid var(--line); }
.wx-bar { width: 100%; border-radius: 4px 4px 0 0; }
.risk-low { background: #383838; }
.risk-mod { background: #ffd21f; }
.risk-high { background: #ff6b3d; }
.wx-hr { font-size: 12px; color: var(--muted); padding-top: 6px; white-space: nowrap; }
.wx-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.wx-key span { display: inline-flex; align-items: center; gap: 6px; }
.wx-key i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.wx-src { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.wx-src a { color: var(--ink-2); }

.wx.compact { padding: 20px 22px 18px; background: rgba(26, 26, 26, 0.86); backdrop-filter: blur(14px); border-radius: var(--radius); }
.wx.compact .wx-headline { font-size: 15px; margin-top: 6px; }
.wx.compact .wx-facts { font-size: 13px; gap: 4px 14px; margin-top: 6px; }
.wx.compact .wx-chart { height: 40px; gap: 3px; margin-top: 14px; }
.wx.compact .wx-col { grid-template-rows: 1fr 16px; }
.wx.compact .wx-hr { font-size: 12px; padding-top: 3px; }
.wx.compact .wx-key { display: none; }
.wx.compact .wx-src { margin-top: 10px; padding-top: 10px; font-size: 12px; }

/* ---- How to get there ---- */
.access { list-style: none; margin: 0; padding: 0; }
.access li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.access li:first-child { border-top: 0; padding-top: 0; }
.a-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.a-name { margin-top: 4px; font-weight: 600; font-size: 17px; }
.a-coord { margin-top: 2px; font-size: 13px; color: var(--muted); }
.a-dir { flex: none; padding: 9px 16px; font-size: 14px; }
.trailer { margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.trailer p { margin: 8px 0 0; color: var(--ink-2); line-height: 1.6; }
.a-src { margin-top: 10px; font-size: 12px; color: var(--muted); }
.a-src a { color: var(--ink-2); }

/* ---- Footer ---- */
.site-footer { margin-top: 56px; border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 13px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.site-footer strong { color: var(--ink); }
.site-footer a { color: var(--ink-2); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: flex-end; align-content: start; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); }
.site-footer .foot-links { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); grid-template-columns: 1fr 1fr; }
.foot-links div { display: flex; flex-wrap: wrap; gap: 6px 18px; align-content: start; }
.foot-links b { width: 100%; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.foot-toggle { all: unset; display: block; width: 100%; pointer-events: none; }  /* a plain heading on desktop; a show/hide button on phones */
.foot-links a { color: var(--muted); text-decoration: none; } .foot-links a:hover { color: var(--ink); }

.diff-icon { flex: none; vertical-align: -2px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }

@media (max-width: 860px) {
  :root { --gutter: 20px; --hdr: 60px; }
  .site-nav {
    display: none; position: absolute; top: var(--hdr); left: 0; right: 0; flex-direction: column; gap: 0;
    padding: 8px 12px 16px; background: #131313; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav.open::after { content: ""; position: fixed; inset: var(--hdr) 0 0; z-index: -1; background: rgba(0, 0, 0, .6); }
  .site-nav a { padding: 14px 12px; font-size: 17px; border-radius: 10px; }
  .menu-btn { display: inline-flex; align-items: center; min-height: 44px; }
  /* Phones: every button at least 44px tall, and small text links get a taller tap area without moving the text. */
  .btn { min-height: 44px; }
  .brand-link { padding: 9px 0; }
  p a, li a:not([class]), figcaption a, .src a, .a-src a, .photo-credit a, .hero-credit a, .crumbs a, .wx a { padding-block: 10px; }
  section.block { padding: 56px 0; }
  .page-head { padding: 48px 0 32px; }
  .photo-head { min-height: 340px; }
  .lede { font-size: 16px; }
  .trail-row { grid-template-columns: 64px minmax(0, 1fr); gap: 6px 14px; padding: 16px 18px; align-items: start; }
  .tr-thumb { width: 64px; height: 64px; grid-row: span 3; }
  .tr-go { display: none; }
  .tr-status, .tr-reason { grid-column: 2; }
  .tr-reason { font-size: 14px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }  /* full note is on the trail page */
  .tr-meta { padding-left: 0; }
  .wx { padding: 22px 20px; }
  .wx-headline { font-size: 19px; }
  .wx-chart { gap: 3px; height: 92px; }
  .wx-hr { font-size: 12px; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 20px; }
  .site-footer nav { justify-content: flex-start; row-gap: 0; }
  .site-footer nav a, .foot-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .foot-links div { row-gap: 0; }
  .foot-toggle { display: flex; align-items: center; justify-content: space-between; min-height: 44px; pointer-events: auto; cursor: pointer; }
  .foot-toggle b { width: auto; margin: 0; }
  .foot-toggle::after { content: "Show ▾"; font-size: 14px; color: var(--muted); white-space: nowrap; }
  .foot-toggle[aria-expanded="true"]::after { content: "Hide ▴"; }
  .foot-links div:not(.open) > a { display: none; }
  .site-footer .foot-links { gap: 0; }
}
