/* Intent and rules: docs/features/handbook.md (read before changing). */
/* The Handbook (/team/handbook/, 2026-11-27): a reading page. One column, text at a size to read in a driveway,
   the team app's own colours (team.css). Phone first: nothing scrolls sideways at 320px with text at 125%. */
.hb-main { max-width: 760px; }
.hb-main h1 { font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1.15; margin: 4px 0 0; text-wrap: balance; overflow-wrap: anywhere; }
.hb-main h1:focus { outline: none; }
.hb-main section, .hb-main article { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hb-main section[hidden], .hb-main article[hidden] { display: none; }
.hb-lede { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.hb-eyebrow { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); }
.hb-small { font-size: 13px; }

/* The list */
.hb-progress { gap: 10px; }
.hb-progress-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.hb-progress-top .muted { font-size: 13px; }
.hb-track { height: 8px; border-radius: 999px; background: var(--bone); overflow: hidden; }
.hb-fill { height: 100%; width: 0; border-radius: 999px; background: var(--green); }
.hb-search input { min-height: 46px; font-size: 16px; }
.hb-menu a { align-items: center; padding-left: 14px; }
.hb-menu .status { flex-shrink: 0; }
.hb-num { flex: 0 0 22px; text-align: right; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hb-team-link { align-self: flex-start; }
@media (max-width: 420px) {
  .hb-menu a { flex-wrap: wrap; }
  .hb-menu .status { margin-left: 34px; }
}

/* One part */
.hb-changed { margin: 0; padding: 10px 14px; border-radius: 10px; background: rgba(229, 177, 46, 0.15); color: #F2C95C; font-weight: 500; }
.hb-cards { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hb-card { gap: 12px; font-size: 15px; line-height: 1.6; }
.hb-card h2 { margin: 0; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); }
.hb-card p { margin: 0; overflow-wrap: anywhere; }
.hb-card a { color: var(--gold-deep); }
.hb-ul, .hb-check, .hb-no, .hb-steps { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.hb-ul { padding-left: 20px; }
.hb-check, .hb-no, .hb-steps { list-style: none; padding: 0; }
.hb-check li, .hb-no li, .hb-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; }
.hb-check li::before { content: ''; width: 16px; height: 16px; margin-top: 4px; border: 1.5px solid var(--line-strong); border-radius: 4px; }
.hb-no li { color: var(--ink-2); }
.hb-no li::before { content: '\00d7'; color: var(--danger); font-weight: 600; font-size: 18px; line-height: 1.3; }
.hb-steps { counter-reset: hb-step; }
.hb-steps li { counter-increment: hb-step; }
.hb-steps li::before {
  content: counter(hb-step); width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-wash); border: 1px solid var(--gold-edge); color: var(--gold-deep); font-size: 13px; font-weight: 600;
}
.hb-kv { margin: 0; display: grid; grid-template-columns: minmax(96px, 150px) minmax(0, 1fr); gap: 8px 14px; }
.hb-kv dt { color: var(--muted); font-size: 13px; padding-top: 2px; }
.hb-kv dd { margin: 0; }
.hb-sms-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.hb-sms-label { font-size: 12px; color: var(--muted); }
.hb-sms { max-width: 92%; padding: 10px 14px; font-size: 14px; background: var(--gold-wash); border: 1px solid var(--gold-edge); border-radius: 16px 16px 4px 16px; }
.hb-say { padding: 4px 0 4px 12px; border-left: 3px solid var(--blue); color: var(--ink-2); }
.hb-warn { padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(240, 106, 106, 0.45); background: rgba(240, 106, 106, 0.08); color: var(--ink-2); }
.hb-foot { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.hb-foot p { margin: 0; font-size: 13px; }
.hb-foot-row { display: flex; flex-wrap: wrap; gap: 10px; }
.hb-foot-row > * { flex: 1 1 200px; min-height: 48px; }
.hb-foot-row a.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; }
#hb-read:disabled { background: transparent; border-color: rgba(63, 185, 107, 0.5); color: var(--green); opacity: 1; cursor: default; }

/* Team (owners) */
.hb-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.hb-person { gap: 8px; }
.hb-person.off { opacity: 0.7; }
.hb-person p { margin: 0; }
.hb-person-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hb-person-who { display: grid; gap: 2px; min-width: 0; }
.hb-person-who b { font-size: 16px; overflow-wrap: anywhere; }
.hb-person-who .muted { font-size: 13px; overflow-wrap: anywhere; }
.hb-person-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.hb-add h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 21px; }
.hb-add .field input { min-height: 46px; font-size: 16px; }
@media (max-width: 520px) {
  .hb-main h1 { font-size: 27px; }
  .hb-kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .hb-kv dt { padding-top: 8px; }
}
/* A first or new password, shown once. */
.hb-pass { gap: 12px; border-color: var(--gold-edge); }
.hb-pass:focus { outline: none; }
.hb-pass p { margin: 0; }
.hb-pass code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 20px; font-weight: 600; letter-spacing: 0.04em; color: var(--gold-deep); overflow-wrap: anywhere; user-select: all; }
.hb-pass #hb-pass-username { font-weight: 600; overflow-wrap: anywhere; user-select: all; }
