/* Rush Community First Responders, rcfr.ie */

:root {
  --brand: #004899;
  --brand-dark: #003570;
  --red: #c8102e;
  --ink: #1a1d21;
  --muted: #5a6470;
  --line: #e2e6ea;
  --bg: #ffffff;
  --panel: #f5f7f9;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

/* Header */

.masthead { text-align: center; padding-top: 8px; }

.masthead img {
  width: 150px;
  max-width: 60%;
  height: auto;
}

h1 {
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 20px 0 8px;
  color: var(--brand);
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.15rem;
  margin: 36px 0 10px;
  color: var(--brand);
}

h3 {
  font-size: 1rem;
  margin: 24px 0 6px;
  color: var(--ink);
}

.lede {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 4px;
  max-width: 30em;
}

p { margin: 0 0 14px; }

a { color: var(--brand); }

/* Emergency notice */

.emergency {
  border-left: 4px solid var(--red);
  background: #fff5f6;
  padding: 12px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 26px 0;
  font-size: 0.95rem;
}

.emergency strong { color: var(--red); }

/* Buttons */

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0;
}

.btn {
  display: block;
  text-align: center;
  padding: 15px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--brand);
  color: var(--brand);
  background: #fff;
  transition: background 0.15s, color 0.15s;
}

.btn:hover { background: var(--panel); }

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover { background: var(--brand-dark); }

.btn-red {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.btn-red:hover { background: #a20d24; }

/* Amount grid */

.amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0 8px;
}

.amounts .btn { padding: 14px 6px; }

.amounts-monthly { grid-template-columns: repeat(2, 1fr); }

.amount-custom { margin-top: 10px; }

/* Panels & detail rows */

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 16px 0;
}

dl.bank {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  font-size: 0.97rem;
}

dl.bank dt { color: var(--muted); }

dl.bank dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

dl.bank dd span {
  flex: 1 1 auto;
  min-width: 0;
  word-break: break-word;
}

.copy-btn {
  flex: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.copy-btn:hover { background: var(--panel); border-color: var(--brand); }

.copy-btn.copied {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* Map embed */

.map-embed {
  display: block;
  width: 100%;
  height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 20px 0;
}

/* Lists */

ul.plain {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

ul.plain li {
  border-bottom: 1px solid var(--line);
}

ul.plain li:last-child { border-bottom: 0; }

ul.plain a.row {
  display: block;
  padding: 13px 0;
  text-decoration: none;
  color: inherit;
}

ul.plain .place { font-weight: 600; display: block; }

ul.plain .sub { color: var(--brand); font-size: 0.9rem; }

ul.plain a.row:hover .place { text-decoration: underline; }

ol.bullets, ul.bullets { padding-left: 20px; margin: 12px 0; }

ol.bullets li, ul.bullets li { margin-bottom: 8px; padding-left: 4px; }

/* Back link */

.back {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 0.95rem;
  text-decoration: none;
}

.back:hover { text-decoration: underline; }

/* Footer */

footer {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.7;
}

footer a { color: var(--muted); }

.footer-links { margin-bottom: 10px; }

.footer-links a { margin: 0 8px; }

@media (min-width: 560px) {
  body { font-size: 18px; }
  h1 { font-size: 1.9rem; }
}
