/* Denver Transit Notes — Airbnb-style design */

:root {
  --bg: #f7f7f5;
  --paper: #ffffff;
  --paper-2: #fafaf7;
  --line: #ececea;
  --line-2: #dcdcda;

  --ink: #222222;
  --ink-2: #525049;
  --ink-3: #8a8780;

  /* Welton — soft coral */
  --coral: #e26a4a;
  --coral-soft: #fdeee7;
  --coral-soft-2: #fce4d8;
  --coral-deep: #b94b30;

  /* Colorado Blvd — soft teal */
  --teal: #2a8a8c;
  --teal-soft: #e3f1f0;
  --teal-soft-2: #d2e8e7;
  --teal-deep: #1a6062;

  --good: #4f8a4a;
  --ok: #c08a2a;
  --bad: #b34a44;

  --sans: "Manrope", "Circular Std", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;

  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 6px rgba(0,0,0,0.02);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.03);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--coral); color: white; }

/* ── topbar ─────────────────────────────── */
.topbar {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 30;
  background: rgba(247, 247, 245, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.tb-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--coral), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.logo-text { font-weight: 800; font-size: 16px; letter-spacing: -0.015em; }
.topnav { display: flex; gap: 28px; align-items: center; }
.topnav a {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.15s;
}
.topnav a:hover { color: var(--ink); }
.tb-cta {
  padding: 9px 18px !important;
  border-radius: 999px;
  background: var(--ink);
  color: white !important;
}
.tb-cta:hover { background: black; color: white !important; }

/* ── page shell ─────────────────────────── */
.page {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── hero ───────────────────────────────── */
.hero { padding: 80px 0 64px; }
.eye {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--coral-deep);
  background: var(--coral-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 28px;
  max-width: 960px;
  color: var(--ink);
}
.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 40px;
  max-width: 760px;
}

.ticker-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 28px 32px;
  background: var(--paper);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.tc-eye {
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.tc-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--coral);
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0.3; } }
.tc-clock { display: flex; align-items: baseline; gap: 18px; }
.tc-unit { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.tc-unit span {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.tc-unit label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
}
.tc-target {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 12px;
  font-weight: 500;
}
.tc-right { display: flex; flex-direction: column; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s, box-shadow 0.2s;
  text-align: center;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-coral { background: var(--coral); color: white; }
.btn-coral:hover { background: var(--coral-deep); box-shadow: 0 8px 24px rgba(226, 106, 74, 0.35); }
.btn-teal { background: var(--teal); color: white; }
.btn-teal:hover { background: var(--teal-deep); box-shadow: 0 8px 24px rgba(42, 138, 140, 0.35); }
.btn-lg { padding: 18px 30px; font-size: 15px; }

.quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.quick-cell {
  padding: 24px;
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.quick-cell:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.quick-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.quick-text { font-size: 15px; color: var(--ink); line-height: 1.5; }
.quick-text strong { font-weight: 700; }

/* ── parts ──────────────────────────────── */
.part { margin: 80px 0; }
.part-head {
  margin-bottom: 32px;
  max-width: 820px;
}
.part-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin-bottom: 20px;
}
.badge-coral { background: var(--coral-soft); color: var(--coral-deep); }
.badge-teal { background: var(--teal-soft); color: var(--teal-deep); }
.badge-neutral { background: var(--paper); color: var(--ink-2); box-shadow: var(--shadow-sm); }
.part-head h2 {
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin: 0 0 16px;
}
.part-sub {
  font-size: 18px;
  color: var(--ink-2);
  margin: 0;
  max-width: 740px;
  line-height: 1.55;
}

/* ── cards ──────────────────────────────── */
.card {
  background: var(--paper);
  border-radius: var(--r-xl);
  padding: 36px 40px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-h {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--ink);
}
.card p { margin: 0 0 14px; color: var(--ink-2); }
.card p:last-child { margin-bottom: 0; }
.card-fine { font-size: 14px; color: var(--ink-3); margin-top: 8px; }

sup {
  font-size: 11px;
  font-weight: 800;
  color: var(--coral);
  margin-left: 1px;
  cursor: pointer;
  vertical-align: super;
  line-height: 0;
}
.part-colorado sup { color: var(--teal); }

/* ── kv list ────────────────────────────── */
.kv {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 28px;
  margin-top: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.kv > div { font-size: 14.5px; color: var(--ink); }
.kv span {
  display: block;
  color: var(--ink-3);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

/* ── question boxes ─────────────────────── */
.qbox {
  background: var(--coral-soft);
  border-radius: var(--r);
  padding: 22px 24px;
  margin-bottom: 14px;
}
.part-colorado .qbox { background: var(--teal-soft); }
.qbox-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral-deep);
  background: white;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.part-colorado .qbox-tag { color: var(--teal-deep); }
.qbox-text {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.45;
}
.qbox-answer {
  font-size: 14.5px;
  color: var(--ink-2);
}
.qbox-options {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qbox-options li {
  font-size: 14.5px;
  padding: 12px 16px;
  border-radius: 10px;
  background: white;
  display: flex;
  align-items: center;
  gap: 8px;
}
.qbox-options li.good { border-left: 4px solid var(--good); font-weight: 600; }
.qbox-options li.bad { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--bad); }
.qbox-options li.mute { color: var(--ink-3); }

/* ── reasons ────────────────────────────── */
.reason {
  display: flex;
  gap: 22px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.reason:first-of-type { border-top: none; padding-top: 8px; }
.reason-n {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--coral-soft);
  color: var(--coral-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}
.reason-n.c { background: var(--teal-soft); color: var(--teal-deep); }
.reason h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 6px 0 8px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.reason p { margin: 0; color: var(--ink-2); }

/* ── tables ─────────────────────────────── */
.data {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 14.5px;
  background: var(--paper-2);
  border-radius: var(--r);
  overflow: hidden;
}
.data th, .data td {
  text-align: left;
  vertical-align: top;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.data th {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  background: var(--paper-2);
  border-bottom: 1px solid var(--line-2);
}
.data tbody tr:last-child td { border-bottom: none; }
.data tbody tr:hover { background: rgba(0,0,0,0.015); }
.data td:first-child { color: var(--ink); font-weight: 600; }
.data td { color: var(--ink-2); }
.data td.good { color: var(--good); font-weight: 700; }
.data td.ok { color: var(--ok); font-weight: 700; }
.data td.bad { color: var(--bad); font-weight: 700; }
.data-resp td:first-child {
  font-weight: 800;
  color: var(--coral);
  width: 60px;
}
.data-resp-c td:first-child { color: var(--teal); }

/* ── templates ──────────────────────────── */
.template {
  margin-top: 20px;
  background: var(--coral-soft);
  border-radius: var(--r);
  overflow: hidden;
}
.template-c { background: var(--teal-soft); }
.tp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: rgba(255,255,255,0.5);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.tp-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral-deep);
}
.template-c .tp-label { color: var(--teal-deep); }
.tp-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.tp-copy:hover { background: var(--paper-2); transform: translateY(-1px); }
.tp-copy.copied { background: var(--good); color: white; border-color: var(--good); }
.template p {
  margin: 0;
  padding: 20px 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}

.card-action .btn { margin-top: 24px; }

/* ── references ─────────────────────────── */
.refs-card { padding: 24px 28px; }
.ref-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: ref;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.ref-list li {
  position: relative;
  padding: 16px 0 16px 44px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  counter-increment: ref;
  transition: background 0.4s;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.ref-list li:nth-last-child(-n+2) { border-bottom: none; }
.ref-list li::before {
  content: counter(ref);
  position: absolute;
  left: 0;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-2);
  flex-shrink: 0;
}
.ref-list em { color: var(--ink); font-weight: 600; font-style: italic; }
.ref-list a {
  color: var(--coral-deep);
  text-decoration: underline;
  text-decoration-color: rgba(185, 75, 48, 0.3);
  text-underline-offset: 2px;
  font-weight: 500;
}
.ref-list a:hover { text-decoration-color: var(--coral-deep); }
@media (max-width: 980px) {
  .ref-list li:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .ref-list li:last-child { border-bottom: none; }
}

/* ── footer ─────────────────────────────── */
.foot {
  margin-top: 80px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-3);
  flex-wrap: wrap;
  gap: 12px;
  font-weight: 500;
}
.foot-links { display: flex; gap: 24px; }
.foot-links a { font-weight: 600; }
.foot-links a:hover { color: var(--coral); }

/* ── responsive ─────────────────────────── */
@media (max-width: 980px) {
  .ref-list { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .ticker-card {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 24px;
  }
  .tc-left { width: 100%; }
  .tc-right {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .tc-right .btn {
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    white-space: normal;
  }
  .quick { grid-template-columns: 1fr; }
  .card { padding: 28px 24px; }
  .kv { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .tb-inner { padding: 12px 18px; }
  .topnav { gap: 14px; }
  .topnav a:not(.tb-cta) { display: none; }
  .page { padding: 0 18px; }
  .hero { padding: 48px 0 36px; }
  .hero h1 { font-size: 32px; }
  .lede { font-size: 17px; }
  .ticker-card { padding: 22px; gap: 18px; }
  .tc-clock { gap: 14px; flex-wrap: wrap; }
  .tc-unit span { font-size: 30px; }
  .tc-unit label { font-size: 11px; }
  .tc-right .btn { padding: 15px 18px; font-size: 14.5px; }
  .card { padding: 22px 20px; border-radius: var(--r-lg); }
  .card-h { font-size: 18px; }
  .reason { gap: 14px; }
  .reason-n { width: 36px; height: 36px; font-size: 14px; }
  .reason h3 { font-size: 17px; }
  .data { font-size: 13px; }
  .data th, .data td { padding: 10px 12px; }
  .part-head h2 { font-size: 28px; }
}

/* tighten the survey-question callout buttons stack at narrow widths too */
@media (max-width: 480px) {
  .qbox-options li { font-size: 14px; padding: 10px 12px; }
  .tc-clock { gap: 10px; }
  .tc-unit span { font-size: 26px; }
}

/* references section mobile tuning */
@media (max-width: 600px) {
  .refs-card { padding: 18px 18px 6px; }
  .ref-list li {
    padding: 14px 0 14px 40px;
    font-size: 14px;
    line-height: 1.5;
  }
  .ref-list li::before {
    width: 26px;
    height: 26px;
    top: 14px;
    font-size: 11.5px;
  }
}
