/* crisis-resources.css - the /crisis-resources page only.

   The constraint that shapes every rule here: someone reaching this page in
   acute distress, on an old phone, on rural cellular, at night, must be able
   to act in one tap. So:

   - Every number is a real tel: or sms: link, and each one is its own block
     with a large hit area, well past the WCAG 2.2 target size of 24 by 24 CSS
     pixels and past the 44px this design system uses for a primary action.
   - Nothing here depends on JavaScript. There is no script on this page at
     all: it is a list of links.
   - It is legible at 320px without horizontal scroll, which is what an old
     Android in this county actually is.
   - Nothing is red and nothing flashes. Alarm coloring on a page read by
     somebody already frightened is not urgency, it is noise. */

.crisis-list {
    list-style: none;
    display: grid;
    gap: var(--space-4);
    max-width: var(--measure);
    margin-top: var(--space-5);
}

.crisis-list li {
    max-width: none;
    background-color: var(--bg-raised);
    border: 1px solid var(--rule);
    border-radius: var(--radius-card);
    padding: var(--space-4) var(--space-5);
}

.crisis-list h3 {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-body);
    font-weight: 600;
}

.crisis-list p {
    margin-top: var(--space-2);
    font-size: var(--fs-small);
    color: var(--ink-muted);
}

/* The number itself. A block-level link with a real minimum height, so the
   whole line is the target rather than the eight characters of the number. */
.crisis-number {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: var(--space-2);
    font-size: var(--fs-h3);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* The local community mental health offices. A plain list of four places and
   four numbers; the same tap-target rule applies. */
.crisis-offices {
    list-style: none;
    display: grid;
    gap: var(--space-3);
    max-width: var(--measure);
    margin-top: var(--space-4);
}

.crisis-offices li {
    max-width: none;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-3);
    padding-block: var(--space-2);
    border-bottom: 1px solid var(--rule);
}

.crisis-offices a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
