/* ============================================================
   Trail Conditions — Info tab
   Info sections, status guide, how-it-works steps,
   rain-scale demo, donate button.
   ============================================================ */

/* ── Info tab ────────────────────────────────────────────── */
.info-section {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 1.25rem;
  margin-bottom: 0.75rem;
}
.info-section h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--forest);
  margin-bottom: 0.6rem;
}
.info-section p {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.info-section p:last-child { margin-bottom: 0; }

.info-link { color: var(--forest); font-weight: 500; text-decoration: none; }
.info-link:hover { text-decoration: underline; }

.status-guide { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.25rem; }
.sg-row { display: flex; align-items: flex-start; gap: 0.75rem; }
.sg-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.22rem 0.65rem;
  border-radius: 100px;
  white-space: nowrap;
  min-width: 100px;
  justify-content: center;
}
.sg-pill .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.sg-open    { background: var(--green-lt);  color: var(--green);  }
.sg-open    .dot { background: var(--green); }
.sg-caution { background: var(--amber-lt);  color: var(--amber);  }
.sg-caution .dot { background: var(--amber); }
.sg-wet     { background: var(--orange-lt); color: var(--orange); }
.sg-wet     .dot { background: var(--orange); }
.sg-rain    { background: var(--blue-lt);   color: var(--blue);   }
.sg-rain    .dot { background: var(--blue); }
.sg-closed  { background: #fdf0f0;          color: var(--red);    }
.sg-closed  .dot { background: var(--red); }
.sg-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.5; padding-top: 0.15rem; }

.how-steps { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.25rem; }
.how-step { display: flex; gap: 0.75rem; align-items: flex-start; }
.how-num {
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: var(--forest);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}
.how-text { font-size: 0.85rem; color: var(--text); line-height: 1.5; }
.how-text strong { color: var(--forest); }

.rain-demo { margin-top: 0.75rem; }
.rain-demo-scale { margin-bottom: 0.9rem; }
.rain-demo-gradient {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(to right, rgb(200,228,244), rgb(14,80,144));
}
.rain-demo-scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.3rem;
}
.rain-demo-examples {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  text-align: center;
}
.rain-demo-ex { display: flex; flex-direction: column; align-items: center; }
.rain-demo-bar-wrap {
  height: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 0.3rem;
}
.rain-demo-bar { width: 20px; border-radius: 2px 2px 0 0; }
.rain-demo-amt { font-size: 0.8rem; font-weight: 600; color: var(--text); }
.rain-demo-lbl { font-size: 0.7rem; color: var(--muted); margin-top: 0.15rem; line-height: 1.3; }
.rain-demo-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.75rem;
  margin-bottom: 0;
  line-height: 1.5;
}

.donate-wrap { margin-top: 0.75rem; }
.donate-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--forest);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.65rem 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.12s;
}
.donate-btn:hover { opacity: 0.88; }
.donate-inactive {
  display: none;
  margin-left: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}
