/* StewardWell — shared visual polish. Loaded AFTER each page's inline <style>,
   so these rules win at equal specificity. One place for buttons, fields,
   panels and form rows, so every page reads the same.
   Status tags (.live, .pill) stay rounded on purpose: round = a label,
   squared = something you can press. */

/* ---------- buttons ---------- */
.btn, .give, .login button.primary, .pcamp button {
  border-radius: 9px;
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  line-height: 1.2; text-decoration: none;
  transition: background .12s, border-color .12s, box-shadow .12s, color .12s;
}
.btn { min-height: 36px; padding: 8px 16px; font-size: 13px; font-weight: 700; letter-spacing: .005em;
  box-shadow: 0 1px 0 rgba(10,54,44,.18); }
.btn.ghost { box-shadow: 0 1px 0 rgba(26,36,34,.04); border-color: #CFDAD5; }
.btn.ghost:hover { background: #F4F8F6; }
.btn.small { min-height: 30px; padding: 5px 12px; font-size: 12px; }
.btn.danger, .btn.ghost.danger { color: #B42318; }
.btn.ghost.danger:hover, .btn.ghost[style*="B42318"]:hover { border-color: #E4A59E; background: #FEF3F2; color: #B42318; }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn:focus-visible, .give:focus-visible, .freq button:focus-visible, .amounts button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; }
.give, .pcamp button { display: flex; width: 100%; }
.give { border-radius: 12px; }
.user-actions button { border-radius: 8px; min-height: 30px; }

/* ---------- fields ---------- */
input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]), select {
  min-height: 38px; border-radius: 8px; border-color: #CFDAD5; }
input:not([type=checkbox]):not([type=radio]):focus, select:focus, textarea:focus {
  outline: 3px solid var(--soft); outline-offset: 0; border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: #93A29D; }
input[type=color] { border-radius: 8px; border: 1px solid #CFDAD5; background: #fff; cursor: pointer; }
.search { border-radius: 10px; }

/* ---------- form grids: roomier cells, actions on their own row ---------- */
.newform { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 16px; }
.form { gap: 14px 16px; }
.newform > div:has(> .btn), .form > div:has(> .btn) {
  grid-column: 1 / -1; flex-wrap: wrap; padding-top: 12px; margin-top: 2px; border-top: 1px solid var(--line); }
.form .span2 { grid-column: span 2; }
@media (max-width: 860px) { .form .span2 { grid-column: 1 / -1; } }

/* ---------- blocks ---------- */
.panel, .tile, .ccard, .pcard { box-shadow: 0 1px 2px rgba(26,36,34,.04); }
.panel { padding: 20px 22px; }
.panel h2 { font-size: 15.5px; letter-spacing: -0.005em; }
.main-head h1 { letter-spacing: -0.02em; }
th { font-weight: 700; background: #FAFCFB; }
tbody tr:hover td { background: #FAFCFB; }

/* ---------- public giving page ---------- */
.freq { grid-template-columns: repeat(3, 1fr) !important; gap: 8px; }
.freq button { border-radius: 9px; padding: 11px 4px; font-size: 13.5px; white-space: nowrap; min-height: 42px; }
.amounts button { border-radius: 9px; min-height: 46px; }
.freq button:hover, .amounts button:hover { border-color: var(--accent); }
.freq button.active, .amounts button.active { box-shadow: inset 0 0 0 1px var(--accent); }

/* selects render 2px taller than inputs with the same padding; pin them so labels line up */
.newform select, .form select, .rowform select { height: 38px; padding-top: 0; padding-bottom: 0; }
