/*
 * 435 Alliance — v13 recreation/places/events/announcements extension
 *
 * Loads alongside site-v13.css. Adds component styles for:
 *   - breadcrumbs
 *   - quick facts strip
 *   - per-type hero variants
 *   - map card slot
 *   - faq accordion
 *   - mentioned-on footer
 *   - last-updated stamp
 *   - whats-happening strip + sidebar
 *   - announcement card
 *   - lane filter chips
 *   - leaf article body
 *
 * No legacy v12 alias references. All var names are v13-native.
 */

/* breadcrumbs */
.breadcrumbs {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--pad) 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-fog);
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.breadcrumbs li + li::before {
  content: "›";
  color: var(--sandstone);
  font-family: var(--display);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: var(--sandstone);
}

.breadcrumbs li:last-child {
  color: var(--ink);
}

/* leaf hero — shared spine */
.leaf-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--pad) 48px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  border-bottom: 2px solid var(--ink);
  position: relative;
}

.leaf-hero-meta {
  grid-column: 1 / 4;
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray-fog);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.leaf-hero-meta > div {
  position: relative;
  padding-left: 14px;
}

.leaf-hero-meta > div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  background: var(--sandstone);
}

.leaf-hero-meta span {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.leaf-hero-main {
  grid-column: 4 / 13;
  display: flex;
  flex-direction: column;
}

.leaf-hero-tag {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 0 0 24px;
  color: var(--sandstone);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.leaf-hero-tag::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--sandstone);
}

.leaf-hero-tag::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule-strong);
}

.leaf-hero h1 {
  margin: 0 0 24px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(48px, 7.6vw, 124px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  font-optical-sizing: auto;
}

.leaf-hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--sandstone);
}

.leaf-hero-sub {
  max-width: 720px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 28px;
}

.leaf-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* per-type hero accents (subtle background tints to differentiate type) */
.leaf-hero[data-type="hiking-trail"]::after,
.leaf-hero[data-type="climbing-area"]::after,
.leaf-hero[data-type="canyoneering-route"]::after {
  content: "";
  position: absolute;
  inset: 0 0 0 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 80% 10%, rgba(177, 77, 42, 0.05), transparent 55%);
  z-index: -1;
}

.leaf-hero[data-type="water-recreation"]::after {
  content: "";
  position: absolute;
  inset: 0 0 0 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 80% 10%, rgba(111, 121, 98, 0.08), transparent 55%);
  z-index: -1;
}

.leaf-hero[data-type="event"]::after {
  content: "";
  position: absolute;
  inset: 0 0 0 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 80% 10%, rgba(213, 106, 63, 0.08), transparent 55%);
  z-index: -1;
}

/* leaf body shell */
.leaf-body {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px var(--pad) 96px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
}

.leaf-aside {
  grid-column: 1 / 4;
  align-self: start;
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.leaf-main {
  grid-column: 4 / 11;
  max-width: 820px;
}

.leaf-main h2 {
  margin: 36px 0 18px;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  font-optical-sizing: auto;
}

.leaf-main h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--sandstone);
}

.leaf-main h2:first-child {
  margin-top: 0;
}

.leaf-main h3 {
  margin: 28px 0 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.leaf-main p,
.leaf-main li {
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.78;
}

.leaf-main ul {
  padding-left: 22px;
  overflow-wrap: anywhere;
}

.leaf-main a {
  color: var(--sandstone);
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease;
}

.leaf-main a:hover {
  border-bottom-color: var(--sandstone);
}

/* quick facts strip */
.quick-facts {
  background: var(--paper-warm);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 6px 0;
}

.quick-facts dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
}

.quick-facts > dl > div {
  padding: 18px 22px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.quick-facts > dl > div:nth-child(2n) {
  border-right: 0;
}

.quick-facts > dl > div:nth-last-child(-n+2) {
  border-bottom: 0;
}

.quick-facts dt {
  margin: 0 0 6px;
  color: var(--sandstone);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-facts dd {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* difficulty pill */
.q-difficulty {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.q-difficulty[data-d="easy"]      { background: #dde6cd; border-color: var(--sage-deep); color: var(--sage-deep); }
.q-difficulty[data-d="moderate"]  { background: #f2e3c2; border-color: #8a6a2a; color: #5b4316; }
.q-difficulty[data-d="hard"]      { background: #f1d3c1; border-color: var(--sandstone); color: var(--sandstone-deep); }
.q-difficulty[data-d="expert"]    { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* map card */
.map-card {
  background: var(--paper-warm);
  border: 1px solid var(--rule-strong);
  padding: 18px 18px 16px;
}

.map-card h4 {
  margin: 0 0 10px;
  color: var(--sandstone);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-card .map-coords {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mid);
  margin: 0 0 12px;
}

.map-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--sandstone);
}

.map-card a:hover {
  color: var(--sandstone-deep);
}

/* mentioned-on footer */
.mentioned-on {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--pad);
  border-top: 2px solid var(--ink);
}

.mentioned-on h3 {
  margin: 0 0 22px;
  color: var(--sandstone);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mentioned-on ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}

.mentioned-on li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  padding-right: 22px;
}

.mentioned-on li:nth-child(3n) { border-right: 0; }
.mentioned-on li:last-child    { border-bottom: 0; }

.mentioned-on li a {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mentioned-on .mention-kicker {
  color: var(--sandstone);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mentioned-on .mention-title {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.mentioned-on a:hover .mention-title { color: var(--sandstone); }

/* faq accordion */
.faq {
  margin: 32px 0 0;
  padding: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.faq h2 {
  margin: 24px 0 18px !important;
  border-top: 0 !important;
  padding-top: 0 !important;
}

.faq dl {
  margin: 0;
}

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

.faq details:last-child {
  border-bottom: 0;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0 22px 32px;
  position: relative;
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 22px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--sandstone);
  transition: transform 0.22s ease;
}

.faq details[open] summary::before {
  content: "−";
  transform: rotate(0deg);
}

.faq .faq-a {
  padding: 0 0 22px 32px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
}

/* last-updated stamp */
.last-updated {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--pad);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray-fog);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-top: 1px solid var(--rule);
}

.last-updated b {
  color: var(--sandstone);
  font-weight: 500;
}

/* whats happening — homepage strip */
.whats-happening {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px var(--pad);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}

.whats-happening h3 {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sandstone);
}

.whats-happening h3 b {
  display: block;
  margin-top: 6px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
}

.wh-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.wh-item {
  padding: 0 24px;
  border-right: 1px solid var(--rule);
}

.wh-item:last-child { border-right: 0; }
.wh-item:first-child { padding-left: 0; }

.wh-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-fog);
}

.wh-kicker .wh-cat {
  padding: 2px 8px;
  background: var(--bone);
  color: var(--ink-soft);
}

.wh-kicker .wh-cat[data-sev="warning"]  { background: #f1d3c1; color: var(--sandstone-deep); }
.wh-kicker .wh-cat[data-sev="urgent"]   { background: var(--sandstone); color: var(--paper); }

.wh-item h4 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.wh-item p {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.wh-item a {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--sandstone);
  letter-spacing: 0.04em;
}

.wh-item a:hover { color: var(--sandstone-deep); }

/* whats happening — sidebar (place page, trade page) */
.wh-sidebar {
  background: var(--paper-warm);
  border: 1px solid var(--rule-strong);
  padding: 18px 18px 14px;
}

.wh-sidebar h4 {
  margin: 0 0 14px;
  color: var(--sandstone);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wh-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wh-sidebar li {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.wh-sidebar li:last-child { border-bottom: 0; }

.wh-sidebar a {
  display: block;
}

.wh-sidebar .wh-side-cat {
  display: block;
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-fog);
}

.wh-sidebar .wh-side-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.wh-sidebar a:hover .wh-side-title { color: var(--sandstone); }

/* announcement card (used on /announcements/ index) */
.announcement-card {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  margin: 0 0 -2px;
  padding: 26px 0;
  display: grid;
  grid-template-columns: 200px 1fr 160px;
  gap: 24px;
  align-items: start;
}

.announcement-card .ac-stamp {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-fog);
}

.announcement-card .ac-stamp b {
  display: block;
  margin-bottom: 6px;
  color: var(--sandstone);
  font-weight: 500;
}

.announcement-card .ac-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 8px;
}

.announcement-card .ac-summary {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}

.announcement-card .ac-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-fog);
  text-align: right;
}

.announcement-card.expired {
  opacity: 0.55;
}

.announcement-card.expired .ac-title {
  text-decoration: line-through;
}

/* lane filter chips on index pages */
.lane-filters {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.lane-filters span.label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-fog);
  margin-right: 8px;
}

.lane-filter {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--rule-strong);
  background: transparent;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mid);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.lane-filter:hover {
  border-color: var(--sandstone);
  color: var(--sandstone);
}

.lane-filter[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* lane index card grid */
.lane-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 96px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
  border-left: 1px solid var(--rule);
}

.lane-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: transparent;
  transition: background 0.22s ease;
}

.lane-card:hover {
  background: var(--paper-warm);
}

.lane-card .lc-stamp {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-fog);
}

.lane-card .lc-stamp b {
  color: var(--sandstone);
  font-weight: 500;
}

.lane-card h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.lane-card p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 16px;
}

.lane-card .lc-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-fog);
}

.lane-card .lc-foot a {
  color: var(--sandstone);
  font-weight: 500;
}

/* hub cards (for /recreation/, /places/, /events/) */
.hub-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 96px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 2px solid var(--ink);
  border-left: 1px solid var(--rule);
}

.hub-card {
  display: flex;
  flex-direction: column;
  padding: 36px 32px 28px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  min-height: 260px;
  background: transparent;
  transition: background 0.22s ease;
}

.hub-card:hover { background: var(--paper-warm); }

.hub-card .hc-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sandstone);
  margin: 0 0 10px;
}

.hub-card h3 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 36px;
  line-height: 1.04;
  letter-spacing: -0.022em;
}

.hub-card p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 22px;
}

.hub-card .hc-foot {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sandstone);
}

/* leaf-action buttons (per leaf hero) */
.btn-link-out {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-link-out::after {
  content: "↗";
  font-size: 14px;
}

/* expired notice on archived announcement leaf */
.expired-banner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--pad);
  background: var(--paper-deep);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mid);
  border-bottom: 1px solid var(--rule-strong);
}

.expired-banner b {
  color: var(--sandstone);
  font-weight: 500;
}

/* responsive */
@media (max-width: 900px) {
  .leaf-hero,
  .leaf-body,
  .whats-happening,
  .lane-grid,
  .hub-grid {
    display: block;
  }

  .leaf-hero {
    padding-top: 36px;
  }

  .leaf-hero-meta { margin-top: 28px; gap: 16px; }
  .leaf-hero-main { display: block; }

  .leaf-hero h1 {
    font-size: clamp(40px, 12vw, 72px);
  }

  .leaf-aside { position: static; }
  .leaf-main  { max-width: none; }

  .quick-facts dl { grid-template-columns: 1fr; }
  .quick-facts > dl > div { border-right: 0; }

  .mentioned-on ul {
    grid-template-columns: 1fr;
    border-top: 0;
  }
  .mentioned-on li {
    border-right: 0;
    padding-right: 0;
  }

  .wh-list { display: block; }
  .wh-item {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
  .wh-item:last-child { border-bottom: 0; }

  .announcement-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .announcement-card .ac-meta { text-align: left; }

  .lane-grid,
  .hub-grid {
    border-left: 0;
  }
  .lane-card,
  .hub-card {
    border-right: 0;
  }

  .hub-card h3 { font-size: 28px; }

  .breadcrumbs ol { gap: 6px; font-size: 10px; }
}
