.hello { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #dfe7f8; border-radius: 18px; padding: 22px 26px; margin-bottom: 18px; position: relative; overflow: hidden; }
.hello::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,207,90,.2), transparent 70%); }
.hello h1 { color: #fff; font-size: 24px; font-weight: 800; }
.hello p { margin: 4px 0 0; color: #c6d3ee; font-size: 14.5px; }
.hello .pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.hello .pill.ok { background: rgba(111,227,165,.16); color: #9ff0c4; }
.hello .pill.neutral { background: rgba(255,255,255,.1); color: #dfe7f8; }
.hello .act { display: flex; gap: 10px; position: relative; z-index: 1; flex-wrap: wrap; }
.btn-glass { background: rgba(255,255,255,.1); color: #fff; }

/* service and job cards */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 14px; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.svc .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-600); }
.svc .ic svg { width: 21px; height: 21px; }
.svc h3 { font-size: 16px; }
.svc p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.svc .bd { flex: 1; }
.svc small { color: var(--ink-3); font-size: 12.5px; }
.svc .ft { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.t-health .ic { background: #fdecef; color: #c8324a; } .t-family .ic { background: #fff4d6; color: #9a6400; }
.t-work .ic { background: #e6f5ec; color: #1f8a52; } .t-mentor .ic { background: #ece9fb; color: #5b45c4; } .t-safety .ic { background: #e3f4f2; color: #0f7a6b; }
.theme-h { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 26px 0 12px; }
.theme-h:first-child { margin-top: 0; }
.tchips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tchips button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font: 600 13.5px var(--body); color: var(--navy-900); cursor: pointer; }
.tchips button.on { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.meta-line { display: flex; flex-wrap: wrap; gap: 6px; }

/* get help form */
.fs { font-size: 16px; margin: 26px 0 12px; }
.fs:first-child { margin-top: 0; }
.fs .muted { font: 500 13px var(--body); }
.help-cats { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.help-cats .choice span { display: flex; gap: 10px; align-items: flex-start; }
.help-cats i { color: var(--blue-600); flex-shrink: 0; margin-top: 1px; }
.help-cats i svg { width: 20px; height: 20px; display: block; }
.help-cats em { font-style: normal; }
.prescreen { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 4px; margin-bottom: 8px; }
.prescreen h4 { font-size: 14px; margin-bottom: 12px; }
.consent { background: var(--sand); border: 1px solid #efe1bd; border-radius: 12px; padding: 14px 16px; font-size: 13.5px; color: #4d4129; margin: 8px 0 16px; }
.consent ul { margin: 6px 0 12px; padding-left: 18px; }
.err-line { color: var(--bad); font-size: 12.5px; font-weight: 600; margin: -6px 0 12px; }
.ref { display: inline-block; font: 700 15px var(--body); letter-spacing: .04em; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; margin: 6px 0 18px; }
.side-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-content: start; }
.side-stack .card h3 { font-size: 15.5px; margin-bottom: 8px; }
.side-stack .card p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* lists, messages, articles */
.art { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; color: inherit; }
.art:last-child { border-bottom: 0; }
.art .th { width: 64px; height: 48px; border-radius: 10px; flex-shrink: 0; }
.art b { display: block; font-size: 14px; color: var(--navy-900); line-height: 1.3; }
.art small { color: var(--ok); font-weight: 600; font-size: 12px; }
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.art-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.art-card .th { height: 92px; }
.art-card div { padding: 14px 16px 16px; display: grid; gap: 6px; }
.art-card b { color: var(--navy-900); font-size: 15px; line-height: 1.3; }
.art-card small { color: var(--ok); font-weight: 600; font-size: 12px; }
.art-card .tag { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.msg { display: flex; gap: 12px; align-items: flex-start; padding: 14px 4px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.msg:hover { background: #fafcff; }
.msg .unread { width: 9px; height: 9px; border-radius: 50%; background: var(--blue-600); margin-top: 7px; flex-shrink: 0; }
.msg .read { width: 9px; flex-shrink: 0; }
.msg .tx { flex: 1; min-width: 0; }
.msg b { display: block; color: var(--navy-900); font-size: 14.5px; }
.msg p { margin: 2px 0 0; color: var(--ink-2); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg time { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.list .ic.priv { background: #ece9fb; color: #5b45c4; }
.list .ic svg { width: 19px; height: 19px; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.quick a { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; text-decoration: none; color: var(--navy-900); font-weight: 600; font-size: 13.5px; background: #fff; }
.quick a:hover { border-color: var(--blue-600); background: var(--blue-100); }
.quick svg { width: 18px; height: 18px; color: var(--blue-600); flex-shrink: 0; }
.crisis { font-size: 13px; color: var(--ink-2); margin: 0; }
.crisis b { color: var(--bad); }
.card.navy-card { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); border: 0; color: #dfe7f8; }
.card.navy-card h3 { color: #fff; }
.card.navy-card p { color: #c6d3ee; }

/* request drawer */
.thread { display: grid; gap: 10px; margin-bottom: 12px; }
.bubble { background: var(--bg-soft); border-radius: 12px; padding: 10px 12px; font-size: 14px; max-width: 88%; }
.bubble small { display: block; color: var(--ink-3); font-size: 12px; margin-bottom: 2px; font-weight: 600; }
.bubble.me { background: var(--blue-100); justify-self: end; }
.q { margin-bottom: 18px; }
.q p { font-weight: 600; margin: 0 0 8px; font-size: 14.5px; color: var(--navy-900); }
.q .chips { margin: 0; }
.q .chips .choice span { font-size: 13px; padding: 7px 12px; }

/* clubs, listing, registry card */
.listing { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 10px; align-content: start; }
.listing h3 { font-size: 17px; font-weight: 800; }
.listing .join { background: var(--sand); border-radius: 10px; padding: 9px 11px; font-size: 13.5px; color: #5a4a26; }
.listing .ver { font-size: 13px; color: var(--ok); font-weight: 600; white-space: nowrap; }
.club-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.club-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.club-card h3 { font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.cc-top { display: flex; justify-content: space-between; align-items: center; gap: 6px 10px; flex-wrap: wrap; }
.cc-meta { display: grid; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
.cc-meta span { display: flex; gap: 8px; align-items: flex-start; }
.cc-meta svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--ink-3); }
.cc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); }
.cc-foot .small { white-space: nowrap; }
.rcard { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #dfe7f8; border-radius: 18px; padding: 20px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.rcard img { width: 120px; filter: none; }
.rcard b { color: #fff; font-size: 18px; display: block; margin-top: 12px; }
.rcard small { display: block; font-size: 12.5px; color: #c6d3ee; }
.rcard .qrw { background: #fff; border-radius: 12px; padding: 8px; }
.rcard .qrw svg { width: 104px; height: 104px; display: block; }
.qr { display: grid; place-items: center; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; width: 240px; margin: 0 auto 14px; }
.items td input, .items td select { padding: 8px 10px; font-size: 14px; }
.items td { padding: 6px; }
.total-row { display: flex; justify-content: flex-end; gap: 18px; font-size: 15px; padding: 12px 6px 0; }
.total-row b { font-variant-numeric: tabular-nums; font-size: 17px; color: var(--navy-900); }
.people { display: grid; gap: 8px; }
.people div { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.people small { display: block; color: var(--ink-3); font-size: 12.5px; }

/* accessibility settings */
@media (max-width: 640px) {
  .hello { padding: 18px; } .quick { grid-template-columns: 1fr; } .rcard { grid-template-columns: 1fr; justify-items: center; text-align: center; } .rcard .qrw { justify-self: center; }
  #ov-reqs li, #ov-recs li { flex-wrap: wrap; row-gap: 8px; }
  #ov-reqs .tx, #ov-recs .tx { flex: 1 1 calc(100% - 52px); }
  #ov-reqs .tx + *, #ov-recs .tx + * { margin-left: 50px; }
}

/* ---- Men in Motion: the signed-in portal --------------------------------
   This sheet is loaded by EVERY signed-in page, because the sidebar and top
   bar are drawn on every one of them. Chrome rules belong here, never in a
   page sheet: chrome styled in a sheet only some pages load renders unstyled
   on the rest, silently (autism-social-service hit that three times). */

/* Unbuilt destinations: dimmed and labelled, not links to nowhere. */
.sidebar .nav.soon { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: var(--ink-3); font-weight: 600; font-size: 14.5px; opacity: .62; cursor: default; }
.sidebar .nav.soon svg { width: 19px; height: 19px; flex-shrink: 0; }
.sidebar .nav.soon i { margin-left: auto; font-style: normal; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; }
.sidebar .signout { margin-top: 6px; }
.sidebar .signout .btn-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.sidebar .signout svg { width: 15px; height: 15px; }
.hello .pill.warn { background: rgba(255,207,90,.18); color: #ffd98a; }
.hello .pill.bad { background: rgba(255,120,110,.18); color: #ffb3ab; }

/* The registry record. */
.facts { display: grid; grid-template-columns: minmax(130px, 34%) 1fr; gap: 10px 16px; margin: 0; font-size: 14px; }
.facts dt { color: var(--ink-3); font-weight: 600; }
.facts dd { margin: 0; color: var(--navy-900); overflow-wrap: anywhere; }
@media (max-width: 640px) {
  /* Label above value on a phone: side by side, an email address broke mid-word. */
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 10px; }
  .facts dd:last-child { margin-bottom: 0; }
}

/* The drawer's own close button. app.js toggles the sidebar from any .menu-btn, and
   the top bar's one is underneath the open drawer. Shown only where .menu-btn is. */
.sidebar .sb-close { position: absolute; top: 25px; right: 14px; }

/* Can / cannot yet lists. */
.can { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.can li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.can svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.can li.y svg { color: var(--ok); }
.can li.n { color: var(--ink-3); }
.can li.n svg { color: var(--ink-3); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

/* ---- Club registration: the rail's club group, invitations, /dashboard/club
   (views/partials/portal-shell.php, views/dashboard.php, views/dashboard-club.php).
   Colours are tokens only; every text colour here is ≥ 4.5:1 on its ground. */
.sidebar .grp-club { overflow-wrap: anywhere; line-height: 1.4; }

/* An invitation to be a club's second representative (dashboard). */
.card.invite { margin-bottom: 18px; border-color: #cddcfb; box-shadow: inset 4px 0 0 var(--blue-600); }
.invite .inv-say { margin: 0 0 6px; font-size: 15px; color: var(--ink); }
.invite .inv-meta { margin: 0 0 14px; }
.inv-wait { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 14px; color: var(--warn); font-weight: 600; }
.inv-wait svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }
.inv-act { display: flex; flex-wrap: wrap; gap: 10px; }
.inv-act .btn { white-space: normal; }
.confirm-step { background: var(--bg-soft); border: 1px solid var(--line-strong); border-radius: 12px; padding: 14px 16px; margin-top: 4px; }
.confirm-step p { margin: 0 0 12px; font-size: 14px; color: var(--ink); }
.confirm-step:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 2px; }
.act-err, .inv-err { margin-top: 12px; }

/* /dashboard/club */
.club-flash { margin-bottom: 18px; }
.club-flash:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 2px; }
/* .club-app prefixes: `.side-stack .card p` (above) would otherwise win. */
.club-app .side-stack > * { min-width: 0; }
.club-app .card-head { flex-wrap: wrap; }
.club-app .pill { white-space: normal; }
.club-app .card p.club-next { margin: 0 0 16px; font-size: 14.5px; color: var(--ink-2); }
.club-reason { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; font-size: 14px; }
.club-reason b { color: var(--navy-900); }
.club-app .card .club-reason p { margin: 4px 0 0; color: var(--ink); overflow-wrap: anywhere; }
.club-app .card .club-reason p.club-note, .club-app .card .club-recog p.club-note { color: var(--ink-2); margin: 0; }
.club-recog { margin: 0 0 16px; display: grid; gap: 10px; justify-items: start; }
.club-recog .pill { white-space: normal; }
.soon-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.soon-item { display: inline-flex; align-items: center; gap: 8px; border: 1px dashed var(--line-strong); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; color: var(--ink-3); cursor: default; }
.soon-item i { font-style: normal; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.club-act { margin-top: 16px; }
.club-app .card .club-act p.small { margin: 8px 0 0; font-size: 13px; color: var(--ink-3); }
.club-app .card .confirm-step p { margin: 0 0 12px; font-size: 14px; color: var(--ink); }
.club-act .btn { white-space: normal; }

/* Representatives. Own classes: `.people div` (above) styles EVERY div inside it. */
.reps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.reps > li { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.reps .rep-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px 12px; flex-wrap: wrap; }
.reps .who { min-width: 0; font-size: 14px; }
.reps .who b { display: block; color: var(--navy-900); overflow-wrap: anywhere; }
.reps .who small { display: block; color: var(--ink-3); font-size: 12.5px; overflow-wrap: anywhere; }
.reps .pill { white-space: normal; }
.reps .club-act { margin-top: 10px; }
.reinvite { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.reinvite h3 { font-size: 15px; margin-bottom: 4px; }
.club-app .card .reinvite > p { margin: 0 0 14px; font-size: 13px; color: var(--ink-3); }
.reinvite .btn { white-space: normal; }

/* Documents. */
.club-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.club-docs li { display: flex; gap: 12px; align-items: flex-start; }
.club-docs .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--blue-100); color: var(--blue-600); }
.club-docs .ic svg { width: 18px; height: 18px; }
.club-docs div { min-width: 0; }
.club-docs a { font-weight: 700; font-size: 14.5px; overflow-wrap: anywhere; }
.club-docs small { display: block; color: var(--ink-3); font-size: 12.5px; }

/* Timeline: the shared .timeline, with an icon in the done dots. */
.club-tl .dot svg { width: 14px; height: 14px; }
.club-tl small { display: block; overflow-wrap: anywhere; }
.club-draft p { margin: 0 0 16px; color: var(--ink-2); }
.club-app .card .club-docs small, .club-app .card .reps small { margin: 0; }
@media (max-width: 640px) {
  .page-h .pill { white-space: normal; }
  .card.invite { padding: 18px; }
}
.club-soon { margin: -4px 0 16px; }

/* ---- Slice 3 wiring (2026-10-25): the application he serves, his last
   application, his help requests, the desk's questions. Tokens only; every
   text colour ≥ 4.5:1 on its ground. */

/* Rail: the co-representative item (two lines) — views/partials/portal-shell.php. */
.sidebar a.nav.nav-2 { align-items: flex-start; }
.sidebar a.nav.nav-2 svg { margin-top: 1px; }
.sidebar a.nav.nav-2 > span { display: grid; min-width: 0; line-height: 1.3; overflow-wrap: anywhere; }
.sidebar a.nav.nav-2 small { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.sidebar a.nav.nav-2.active small { color: inherit; }

/* Dashboard: the line for the application he serves. */
.can li.serving > span { min-width: 0; }
.can li.serving small { display: block; color: var(--ink-3); font-size: 12.5px; }

/* Dashboard: his last refused or withdrawn application. */
.card.club-last { margin-bottom: 18px; box-shadow: inset 4px 0 0 var(--line-strong); }
.club-last .card-head { flex-wrap: wrap; }
.club-last .pill { white-space: normal; }
.club-last .last-say { margin: 0 0 12px; font-size: 14.5px; color: var(--ink); overflow-wrap: anywhere; }
.club-last p.last-how { margin: 10px 0 0; }
.club-last .btn { white-space: normal; }

/* Dashboard: his help requests (a reference and "new reply" — nothing else). */
.help-mine .card-head { flex-wrap: wrap; }
.help-mine .hr-list { margin: -6px 0 6px; }
.help-mine .hr-list li { border-bottom: 0; }
.side-stack .card.help-mine p.hr-note { margin: 0 0 12px; font-size: 13px; color: var(--ink-3); }

/* /dashboard/club: "Questions from the Men’s Desk". */
.asks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.asks > li { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.asks > li.ask-open { background: var(--sand); box-shadow: inset 4px 0 0 var(--gold-600); }
.club-asks .ask-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px 12px; flex-wrap: wrap; margin-bottom: 4px; }
.club-asks .ask-head h3 { font-size: 15px; margin: 0; }
.club-asks .pill { white-space: normal; }
.club-app .card p.ask-meta { margin: 0 0 10px; font-size: 13px; color: var(--ink-3); }
.ask-q { margin: 0 0 14px; padding: 10px 14px; border-left: 3px solid var(--line-strong); background: var(--bg-soft); border-radius: 0 10px 10px 0; font-size: 14.5px; color: var(--ink); overflow-wrap: anywhere; }
.ask-form .field { margin-bottom: 14px; }
.ask-form .drop small { overflow-wrap: anywhere; }
.ask-form .drop b { overflow-wrap: anywhere; }
.ask-form .btn { white-space: normal; }
.ask-form .act-err { margin: 0 0 12px; }
.ask-ans { background: var(--ok-bg); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.ask-ans b { color: var(--ok); }
.club-app .card .ask-ans p { margin: 4px 0 0; color: var(--ink); overflow-wrap: anywhere; }
.club-app .card p.ask-wait { margin: 0; color: var(--ink-2); }
