/* aCo Finances — dark theme, plain-English money dashboard */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Arial, sans-serif;
  background: #0b1622;
  color: #e8eef5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- buttons & links: filled pills, never blue link text, never underlined ---------- */
a { color: #e8eef5; text-decoration: none; }
.foot-link {
  background: #22364a;
  border: 1px solid #3a5878;
  border-radius: 999px;
  padding: 2px 10px;
  display: inline-block;
}
.foot-link:hover { background: #2b4761; }

/* ---------- header ---------- */
/* header chrome comes from the shared .aco-shell-header block at the end of this file */
.asof { font-size: 13px; color: #9fb4c8; margin-top: 8px; }

/* ---------- layout ---------- */
#main {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 14px 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card {
  background: #101f30;
  border: 1px solid #2b4761;
  border-radius: 12px;
  padding: 14px 16px;
}
.card h2 {
  margin: 0 0 10px;
  font-size: 17px;
  color: #fff;
  border-bottom: 1px solid #2b4761;
  padding-bottom: 8px;
}

/* ---------- rows ---------- */
.row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #1b2f45;
}
.row:last-child { border-bottom: none; }
.row .label { font-size: 15px; }
.row .sub { display: block; font-size: 12.5px; color: #9fb4c8; margin-top: 2px; }
.row .amount { font-size: 15px; font-weight: bold; white-space: nowrap; }
.row.total { border-top: 2px solid #3a5878; margin-top: 4px; padding-top: 10px; }
.row.total .label, .row.total .amount { font-size: 16.5px; }
.big-total { font-size: 22px; font-weight: bold; color: #fff; }
.flag {
  background: #5f2430;
  border: 1px solid #e5534b;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 10px;
  font-size: 14.5px;
}
.flag .amount { color: #ffb4ac; font-weight: bold; }
.note { font-size: 13.5px; color: #cfe0ee; padding: 5px 0; line-height: 1.45; }
.note .when { color: #f5c542; font-weight: bold; }

/* ---------- footer ---------- */
#siteFooter {
  padding: 14px 16px 20px;
  text-align: center;
  font-size: 13px;
  color: #9fb4c8;
}

/* ---------- shared aCo shell: header + footer (identical on every aCo site) ---------- */
.aco-shell-header {
  font-family: Arial, sans-serif;
  background: #04131d;
  border-bottom: 1px solid #22364a;
  padding: 12px 16px 10px;
}
.shell-top { display: flex; align-items: center; gap: 10px; }
.shell-brand {
  display: inline-flex; align-items: center; gap: 7px;
  color: #fff; text-decoration: none;
  font-weight: bold; font-size: 15px;
}
.shell-brand:hover { text-decoration: none; }
.shell-mark { display: block; border-radius: 4px; }
.shell-title { margin: 0; font-size: 22px; font-weight: bold; color: #fff; }
.shell-nav {
  display: flex; gap: 6px; margin-top: 10px;
  flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; max-width: 100%; padding-bottom: 2px;
}
.shell-nav::-webkit-scrollbar { display: none; }
.shell-nav > * { flex: 0 0 auto; }
.shell-pill {
  display: inline-block; background: #22364a; color: #e8eef5;
  border: 1px solid #3a5878; border-radius: 999px; padding: 6px 14px;
  font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.shell-pill:hover { background: #2b4761; text-decoration: none; }
.shell-pill.is-active { background: #3a2d5f; border-color: #9a7bd0; color: #fff; }
.aco-shell-footer {
  font-family: Arial, sans-serif;
  border-top: 1px solid #22364a;
  padding: 14px 16px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center; font-size: 13px; color: #9db4c8;
}
.aco-shell-footer .foot-credit { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.aco-shell-footer a { color: #cfe0ee; text-decoration: none; }
.aco-shell-footer a:hover { text-decoration: none; }
.aco-shell-footer img { display: block; }
.foot-sites { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 100%; }
.foot-copy { color: #7e97ad; }
