.household-detail { max-width: 1160px; margin: 0 auto; }
.household-detail .admin-back-link { display: inline-block; margin-bottom: 18px; }
.household-header { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.household-header-info { padding: 28px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.household-title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.household-title h1 { margin: 0; font-size: 28px; letter-spacing: -.5px; overflow-wrap: anywhere; }
.household-readonly { border: 1px solid var(--line); border-radius: 5px; padding: 3px 7px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.household-location { border-left: 1px solid var(--line); min-width: 0; background: var(--surface); }
.household-map { position: relative; aspect-ratio: 5 / 2; display: grid; place-items: center; background: #f1f4f6; color: var(--muted); }
.household-map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.household-location address { padding: 11px 16px; font-style: normal; border-top: 1px solid var(--line); }
.household-detail dl { margin: 0; }
.household-detail dt { color: var(--muted); font-size: 12px; font-weight: 500; }
.household-detail dd { margin: 5px 0 0; overflow-wrap: anywhere; }
.household-detail .household-primary-contact { margin-top: 26px; }
.household-primary-contact dd { font-size: 17px; }
.household-section { margin-top: 28px; }
.household-section h2 { font-size: 18px; margin: 0 0 14px; letter-spacing: 0; }
.household-section h3 { font-size: 13px; margin: 0 0 12px; }
.household-counts { margin: -6px 0 15px; font-size: 13px; }
.household-muted { color: var(--muted); font-size: 12px; font-weight: 400; }
.household-desktop-roster .table { table-layout: fixed; }
.household-desktop-roster th:nth-child(1) { width: 31%; }
.household-desktop-roster th:nth-child(2) { width: 40%; }
.household-desktop-roster th:nth-child(3) { width: 29%; }
.household-desktop-roster .table th, .household-desktop-roster .table td { padding: 15px 12px; vertical-align: top; overflow-wrap: anywhere; }
.household-desktop-roster thead th { font-size: 12px; color: var(--muted); font-weight: 500; }
.household-desktop-roster tbody th { text-transform: none; color: var(--ink); }
.household-person { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.household-person > div { display: grid; gap: 4px; min-width: 0; }
.household-person strong { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.household-avatar { position: relative; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; overflow: hidden; background: #e8edf2; }
.household-avatar img, .household-avatar-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.household-avatar-placeholder svg { width: 100%; height: 100%; fill: #9aa9b9; }
.household-birthday { font-size: 12px; font-weight: 400; color: var(--muted); }
.household-account { display: grid; gap: 5px; }
.household-link-state { display: inline-block; margin-bottom: 5px; font-size: 12px; color: var(--muted); }
.household-user-id { margin-top: 3px; font-size: 11px; color: var(--muted); }
.household-detail code { font-size: 11px; overflow-wrap: anywhere; white-space: normal; }
.household-terms { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; font-size: 12px; }
.household-terms time { flex-basis: 100%; color: var(--muted); }
.household-status { display: inline-block; padding: 3px 9px; border-radius: 16px; font-size: 11px; font-weight: 600; }
.household-status.complete { color: #22633a; background: #e4f4e9; }
.household-status.warning { color: #765014; background: #fff2d2; }
.household-status.muted { color: var(--muted); background: #edf0f3; }
.household-terms-summary { font-size: 12px; font-weight: 500; }
.household-terms-summary.complete { color: #22633a; }
.household-terms-summary.warning { color: #765014; }
.household-terms-summary.muted { color: var(--muted); }
.household-mobile-roster { display: none; }
.household-other-adults { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.household-nonrider summary { display: flex; align-items: center; gap: 12px; }
.household-nonrider { padding: 12px 0; }
.household-chevron { margin-left: auto; font-size: 22px; color: var(--muted); flex: 0 0 auto; }
.household-detail summary { cursor: pointer; list-style: none; }
.household-detail summary::-webkit-details-marker { display: none; }
.household-detail details[open] > summary > .household-chevron { transform: rotate(90deg); }
.household-detail summary:focus-visible, .household-detail a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.household-rider-expanded { padding: 18px 0 0 56px; display: grid; gap: 14px; overflow-wrap: anywhere; }
.household-rider-expanded h3 { margin: 0 0 -8px; font-weight: 600; }
.household-clubs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.household-clubs li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(350px, 1fr); align-items: center; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.household-club-name { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; overflow-wrap: anywhere; }
.household-club-participation { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; }
.household-club-participation dd { font-weight: 600; }
.household-emergency { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.household-record-section { border-top: 1px solid var(--line); padding-top: 20px; }
.household-records summary { display: flex; align-items: center; }
.household-records summary h2 { margin: 0; }
.household-record-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; padding-top: 16px; }
.household-record-grid dd { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.household-record-grid button { font-size: 11px; }
.household-empty { color: var(--muted); padding: 18px 0; border-top: 1px solid var(--line); }
.household-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 760px) {
  .household-detail .admin-back-link { margin-bottom: 14px; }
  .household-header { grid-template-columns: 1fr; border-radius: 10px; }
  .household-header-info { padding: 20px; }
  .household-title { gap: 8px; }
  .household-title h1 { font-size: 23px; }
  .household-detail .household-primary-contact { margin-top: 16px; }
  .household-location { border-left: 0; border-top: 1px solid var(--line); }
  .household-location address { font-size: 12px; padding: 10px 14px; }
  .household-section { margin-top: 24px; }
  .household-desktop-roster { display: none; }
  .household-mobile-roster { display: block; border-top: 1px solid var(--line); }
  .household-mobile-rider { border-bottom: 1px solid var(--line); padding: 15px 0; }
  .household-mobile-rider summary { display: flex; gap: 12px; align-items: center; min-height: 52px; }
  .household-mobile-rider .household-person { flex: 1; }
  .household-emergency { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .household-emergency > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: baseline; gap: 12px; }
  .household-emergency dd { margin: 0; }
  .household-record-grid { grid-template-columns: 1fr; }
  .household-nonrider summary { flex-wrap: wrap; }
  .household-clubs li { grid-template-columns: 1fr; gap: 14px; }
  .household-club-participation { gap: 10px; }
  .household-club-participation dt { min-height: 30px; font-size: 11px; }
  .household-club-participation dd { font-size: 12px; }
}
