/* aCo Health — dark theme, matched to the aCo app family */
* { 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: filled pills, never blue, never underlined ---------- */
.pill {
  font-family: Arial, sans-serif;
  font-size: 14px;
  background: #22364a;
  color: #e8eef5;
  border: 1px solid #3a5878;
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
}
.pill:hover { background: #2b4761; text-decoration: none; }
.pill:focus-visible { outline: 2px solid #f5c542; outline-offset: 2px; }
.pill.primary { background: #7a4a21; border-color: #d9903f; color: #fff; }
.pill.primary:hover { background: #8f5727; }
.nav-pill.active { background: #3a2d5f; border-color: #9a7bd0; color: #fff; }

/* ---------- header ---------- */
/* header chrome comes from the shared .aco-shell-header block at the end of this file */
.section-nav { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; max-width: 100%; margin-top: 12px; padding-bottom: 2px; }
.section-nav::-webkit-scrollbar { display: none; }
.section-nav > * { flex: 0 0 auto; }

/* ---------- main ---------- */
main#view { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 16px 14px 28px; }
.section-title { font-size: 19px; margin: 4px 0 12px; color: #fff; }
.card-list { display: flex; flex-direction: column; gap: 10px; }
.card {
  background: #122335;
  border: 1px solid #22364a;
  border-radius: 12px;
  padding: 12px 14px;
}
.card-top { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.card-name { font-size: 16px; font-weight: bold; color: #fff; }
.card-when { font-size: 14px; color: #f5c542; margin-top: 3px; }
.card-line { font-size: 14px; color: #cfe0ee; margin-top: 3px; line-height: 1.45; }
.card-note { font-size: 13.5px; color: #9db4c8; margin-top: 6px; line-height: 1.5; }
.chip {
  font-size: 12px; font-weight: bold; border-radius: 999px; padding: 3px 10px;
  background: #22364a; color: #cfe0ee; border: 1px solid #3a5878; white-space: nowrap;
}
.chip.critical { background: #5f2430; border-color: #e5534b; color: #ffd9d6; }
.chip.days { background: #14352b; border-color: #2f7d5b; color: #b9ecd4; }
.stub-note { font-size: 13px; color: #9db4c8; margin-top: 14px; line-height: 1.5; }
.empty-note { font-size: 14px; color: #9db4c8; }

/* ---------- notes form ---------- */
.note-form { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.note-label { font-size: 14px; font-weight: bold; color: #fff; }
.note-form textarea {
  font-family: Arial, sans-serif; font-size: 14px; line-height: 1.5;
  background: #0e1e2e; color: #e8eef5; border: 1px solid #3a5878; border-radius: 10px;
  padding: 10px 12px; width: 100%; resize: vertical;
}
.note-form textarea:focus-visible { outline: 2px solid #f5c542; outline-offset: 1px; }
.note-form .pill { align-self: flex-start; }
.note-del { margin-top: 8px; font-size: 13px; padding: 5px 14px; }

/* ---------- footer credit ---------- */
#site-footer {
  border-top: 1px solid #22364a;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #9db4c8;
}
.foot-credit { display: flex; align-items: center; gap: 8px; }
#site-footer a { color: #cfe0ee; text-decoration: none; }
#site-footer a:hover, #site-footer a:focus { text-decoration: none; }
#site-footer img { display: block; }
.foot-copy { color: #9db4c8; }

/* ---------- 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; }
