/* Ascend with Ang — buttons, pills, cards, chips, nav, checkboxes, dots. */

/* --- Pill buttons (spec §3): uppercase, letterspaced, thin arrow --- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 500;
  text-transform: uppercase; letter-spacing: .16em; font-size: 12px;
  border: 0; border-radius: var(--radius-pill); cursor: pointer;
  padding: 15px 26px; width: 100%;
  transition: transform .12s ease, opacity .12s ease;
}
.pill:active { transform: scale(.98); }
.pill[disabled] { opacity: .5; cursor: not-allowed; }
.pill .arrow { font-weight: 400; letter-spacing: 0; }

.pill-sage  { background: var(--sage);  color: var(--text); }
.pill-olive { background: var(--olive); color: #fff; }
.pill-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }

.linkish {
  background: none; border: 0; cursor: pointer;
  color: var(--muted); font-family: var(--font-body); font-size: 14px;
  text-decoration: underline; text-underline-offset: 3px;
}

/* --- Cards + rows --- */
.card { background: var(--surface); border-radius: var(--radius-lg); padding: 18px; }
.card-2 { background: var(--surface-2); border-radius: var(--radius-lg); padding: 18px; }
.rule { height: 1px; background: var(--border); border: 0; margin: 0; }

.list-row {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.thumb { width: 56px; height: 56px; border-radius: var(--radius); background: var(--stone) center/cover no-repeat; flex: 0 0 auto; object-fit: cover; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--stone); object-fit: cover; }

/* --- Quick tiles (Home) --- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tile {
  background: var(--surface-2); border: 0; border-radius: var(--radius);
  padding: 14px 6px; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer;
}
.tile .label { color: var(--text); font-size: 10px; }

/* --- Filter chips (spec §3) --- */
.chips { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; border: 0; cursor: pointer;
  background: var(--surface-2); color: var(--text);
  border-radius: var(--radius-pill); padding: 8px 16px; font-size: 13px; font-weight: 400;
}
.chip[aria-selected="true"] { background: var(--sage-deep); color: #fff; }

/* --- Checkbox (consent) --- */
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: 0 0 auto; accent-color: var(--olive); margin-top: 2px; }
.check span { font-size: 14px; line-height: 1.45; }

/* --- Progress line --- */
.progress { height: 4px; background: var(--surface-2); border-radius: var(--radius-pill); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--sage-deep); }

/* --- Onboarding dots --- */
.dots { display: flex; gap: 7px; justify-content: center; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--stone); }
.dots i.on { background: var(--moss); width: 22px; border-radius: var(--radius-pill); }

/* --- Status pill --- */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: var(--radius-pill); }
.status.green { background: var(--green-pale); color: var(--green); }
.status.amber { background: var(--amber-pale); color: var(--amber); }
.status.red   { background: var(--red-pale);   color: var(--red); }

/* --- Mini menu / modal (Phase 1 interim drawer) --- */
.modal-wrap { position: fixed; inset: 0; z-index: 80; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(47,48,44,.38); }
.mini-menu {
  position: absolute; top: 0; left: 0; bottom: 0; width: 82%; max-width: 360px;
  background: var(--surface); padding: calc(20px + var(--safe-top)) var(--gutter) calc(24px + var(--safe-bottom));
  display: flex; flex-direction: column; box-shadow: 4px 0 24px rgba(0,0,0,.12);
}
.mini-menu-head { display: flex; align-items: center; justify-content: space-between; }
.mini-menu .pill { margin-top: auto; }

/* --- Bottom nav (5 items) --- */
.bottom-nav {
  position: sticky; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 8px 4px calc(8px + var(--safe-bottom));
}
.nav-item {
  background: none; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--faint); font-size: 10px; font-weight: 500;
}
.nav-item svg { width: 24px; height: 24px; }
.nav-item[aria-current="page"] { color: var(--moss); }
