/* ==========================================================================
   FindMeACaregiver — design system
   Navy ink + terracotta clay on warm sand. Fraunces for display, Plus Jakarta
   Sans for UI. Warm and human but serious — this is a trust-driven product.
   ========================================================================== */

:root {
    /* Minimum height of any standalone control (ticket #43: 48px minimum).
       At the 18px root, 2.7rem renders as 48.6px. Inline text links are exempt. */
    --tap-min: 2.7rem;

    /* Ink */
    --ink: #1A2238;
    --ink-700: #2E3A57;
    --ink-500: #5A6580;
    --ink-400: #808AA0;

    /* Clay — accent for links, emphasis, saved states */
    --clay: #A85432;
    --clay-600: #8E4526;
    --clay-tint: #F7EBE3;

    /* Sage — positive/available signals */
    --sage: #4F6F52;
    --sage-tint: #E9F0E8;

    /* Light tint of the navy, for icon tiles and the Trust & Safety banner */
    --navy-tint: #E6EBF5;

    /* Surfaces */
    --sand: #FBF8F3;
    --sand-2: #F4EEE4;
    --white: #FFFFFF;
    --line: #E7DDD0;
    --line-strong: #D8CBB9;

    --danger: #A0342A;
    --danger-tint: #F9E9E6;

    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-full: 999px;

    --shadow-sm: 0 1px 2px rgba(26, 34, 56, .05), 0 1px 3px rgba(26, 34, 56, .04);
    --shadow-md: 0 6px 16px -4px rgba(26, 34, 56, .09);
    --shadow-lg: 0 20px 44px -16px rgba(26, 34, 56, .20);

    --font-display: "Fraunces", Georgia, serif;
    --font-ui: "Plus Jakarta Sans", -apple-system, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    /* 18px root, not the browser's 16px: many family members using the site are
       seniors. Everything sized in rem (text, buttons, spacing) scales with
       it, and it still respects a visitor's own larger browser setting
       because it is a percentage, not a fixed pixel size. */
    font-size: 112.5%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-ui);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--sand);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0;
}

p {
    margin: 0;
}

a {
    color: var(--clay);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

a:hover {
    color: var(--clay-600);
}

img {
    max-width: 100%;
}

:focus-visible {
    outline: 2px solid var(--clay);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ============================ Layout ============================ */

.fmac-main {
    flex: 1;
}

.fmac-page {
    /* A flat max-width (680px, then 860px) can only ever be "right" for one
       screen size — on a genuinely wide desktop monitor it still reads as a
       thin column with a lot of dead space either side (flagged twice now:
       081726 on the demo call, 082026 rehearsing the walkthrough video).
       Scaling with the viewport instead of a fixed number fixes it at every
       size, not just the one screen it was tuned against. Long-form text
       inside (.fmac-card-text) keeps its own reading-width cap below, so
       prose doesn't just stretch to fill the extra room this creates. */
    max-width: min(94vw, 1440px);
    margin: 0 auto;
    padding: 3.5rem 1.5rem 5rem;
}

.fmac-page-wide {
    max-width: min(94vw, 1440px);
}

.fmac-page-head {
    margin-bottom: 2rem;
}

.fmac-page-head h1 {
    font-size: clamp(1.9rem, 4vw, 2.4rem);
}

.fmac-page-head p {
    margin-top: 0.6rem;
    color: var(--ink-500);
    max-width: 54ch;
}

.fmac-eyebrow {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--clay);
    margin-bottom: 0.75rem;
}

/* ============================ Nav ============================ */

.fmac-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    /* Padding grows with the viewport so the logo and links sit on the same
       1440px column as page content instead of hugging the screen edges on a
       wide monitor (desktop alignment was flagged in the 2026-10-04 review). */
    padding: 1rem max(1.5rem, calc((100% - 1440px) / 2 + 1.5rem));
    background: var(--sand);
    border-bottom: 1px solid var(--line);
}

.fmac-logo {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    min-height: var(--tap-min);
}

.fmac-logo-tm {
    align-self: flex-start;
    margin: 0.55rem 0 0 0.15rem;
    font: 700 0.6rem/1 var(--font-ui);
    letter-spacing: 0.02em;
    color: var(--ink-500);
}

.fmac-logo img {
    display: block;
    height: 2.1rem;
    width: auto;
    max-width: 100%;
}

.fmac-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.35rem;
    margin-top: 1rem;
    margin-left: -0.6rem;
}

.fmac-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    min-height: var(--tap-min);
    color: var(--white);
}

.fmac-footer-social a:hover {
    opacity: 0.8;
}

.fmac-nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 1rem;
}

.fmac-nav-links a:not(.fmac-btn) {
    color: var(--ink-700);
    text-decoration: none;
    font-weight: 500;
    /* Generous hit area for older hands: at least 48px tall. */
    padding: 0.55rem 0.2rem;
    display: inline-flex;
    align-items: center;
    min-height: var(--tap-min);
}

.fmac-nav-links a:not(.fmac-btn):hover {
    color: var(--clay);
}

.fmac-nav-links form {
    display: inline-flex;
}

.fmac-nav-divider {
    width: 1px;
    height: 20px;
    background: var(--line-strong);
}

/* Nav wraps onto multiple lines below ~900px for roles with a longer link
   list (agency/family), which strands this divider alone at the end of the
   first line instead of between the links and the user block it's meant to
   separate — purely decorative, so hiding it once nothing reliably sits on
   both sides is simpler than a breakpoint tuned per role's item count. */
@media (max-width: 900px) {
    .fmac-nav-divider {
        display: none;
    }
}

.fmac-nav-user {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}

.fmac-nav-user .fmac-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
}

.fmac-nav-account {
    position: relative;
}

.fmac-nav-account summary {
    list-style: none;
    cursor: pointer;
    min-height: var(--tap-min);
}

.fmac-nav-account summary::-webkit-details-marker {
    display: none;
}

.fmac-nav-account-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.6rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    min-width: 170px;
    padding: 0.85rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    z-index: 20;
}

.fmac-nav-account-menu a {
    color: var(--ink-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
}

.fmac-nav-account-menu a:hover {
    color: var(--clay);
}

/* ============================ Footer ============================ */

.fmac-footer {
    --footer-line: rgba(255, 255, 255, 0.2);
    background: var(--ink);
    color: var(--white);
    padding: 3rem max(1.5rem, calc((100% - 1440px) / 2 + 1.5rem)) 2rem;
}

.fmac-footer-grid {
    display: grid;
    grid-template-columns: 1.15fr 1.2fr 0.85fr 1fr 1.45fr;
    gap: 1.25rem;
}

/* The logo keeps its proportions when the brand column is narrow (a fixed
   height with a capped width would squash it). */
.fmac-footer-brand {
    min-width: 0;
}

.fmac-footer-brand .fmac-logo {
    max-width: 100%;
}

.fmac-footer-brand .fmac-logo img {
    height: auto;
    max-height: 2.1rem;
    width: auto;
    max-width: 100%;
    min-width: 0;
}

/* Keep the TM clear of the column divider on desktop. */
@media (min-width: 801px) {
    .fmac-footer-brand {
        padding-right: 0.4rem;
    }
}

.fmac-footer-brand p {
    margin-top: 0.75rem;
    max-width: 30ch;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
}

.fmac-footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.fmac-footer-col h2 {
    white-space: nowrap;
    margin-bottom: 0.4rem;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fmac-footer-shield {
    flex: none;
}

.fmac-footer-col a {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap-min);
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.84);
    text-decoration: none;
    font-size: 0.9rem;
}

.fmac-footer-col a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Thin vertical dividers between the link columns (desktop only) and tighter
   links, as in the client's footer mockup. */
@media (min-width: 801px) {
    .fmac-footer-col {
        padding-left: 1.5rem;
        border-left: 1px solid var(--footer-line);
    }
    .fmac-footer-col a {
        min-height: 2.2rem;
        padding: 0.25rem 0;
    }
}

/* White version of the dark logo artwork on the navy footer. */
.fmac-footer-brand .fmac-logo img {
    filter: brightness(0) invert(1);
}
.fmac-footer-brand .fmac-logo-tm {
    color: rgba(255, 255, 255, 0.8);
}

.fmac-footer a:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 3px;
}

.fmac-footer-legal {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--footer-line);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
}

@media (max-width: 800px) {
    .fmac-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .fmac-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .fmac-footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================ Buttons ============================ */

.fmac-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.72rem 1.5rem;
    /* 48px minimum touch/click target (WCAG 2.2 target size, and kinder to
       older hands). */
    min-height: 3rem;
    border-radius: var(--r-full);
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid transparent;
    white-space: nowrap;
}

.fmac-btn-primary {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
}

.fmac-btn-primary:hover {
    background: #121A2C;
    color: var(--white);
}

.fmac-btn-outline {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--ink);
}

.fmac-btn-outline:hover {
    border-color: var(--ink);
    color: var(--ink);
    background: var(--white);
}

.fmac-btn-clay {
    background: var(--clay);
    border-color: var(--clay);
    color: var(--white);
}

.fmac-btn-clay:hover {
    background: var(--clay-600);
    color: var(--white);
}

.fmac-btn-small {
    padding: 0.45rem 1.1rem;
    min-height: var(--tap-min);
    font-size: 0.92rem;
    border-width: 1px;
}

.fmac-btn-lg {
    padding: 0.9rem 2rem;
    min-height: 3.5rem;
    font-size: 1.1rem;
}

.fmac-btn-block {
    width: 100%;
}

/* ============================ Chips ============================ */

.fmac-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.7rem;
}

.fmac-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.7rem;
    border-radius: var(--r-full);
    background: var(--sand-2);
    border: 1px solid var(--line);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-700);
}

.fmac-chip-sage {
    background: var(--sage-tint);
    border-color: transparent;
    color: var(--sage);
}

.fmac-chip-clay {
    background: var(--clay-tint);
    border-color: transparent;
    color: var(--clay-600);
}

.fmac-chip-danger {
    background: var(--danger-tint);
    border-color: transparent;
    color: var(--danger);
}

/* ============================ Avatar ============================ */

.fmac-avatar {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--ink);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    overflow: hidden;
}

/* Caregiver detail page — the single page most about this one person, so the
   avatar (photo, or an initial in its place) reads bigger than the search-
   card / nav-chip sizes above. */
.fmac-avatar-lg {
    width: 104px;
    height: 104px;
    font-size: 2.4rem;
}

.fmac-page-head-with-avatar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* ============================ Messages ============================ */

.fmac-messages {
    list-style: none;
    max-width: 680px;
    margin: 1.5rem auto 0;
    padding: 0 1.5rem;
}

.fmac-messages li {
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 3px solid var(--sage);
    border-radius: var(--r-sm);
    padding: 0.8rem 1rem;
    margin-bottom: 0.6rem;
    font-size: 0.92rem;
    box-shadow: var(--shadow-sm);
}

/* Popups (static/js/messages.js adds .is-toast; without it the list above is used as is). */
.fmac-messages.is-toast {
    position: fixed;
    z-index: 1000;
    /* Below the navbar, so it never covers the menu. */
    top: 6rem;
    right: 1rem;
    width: min(26rem, calc(100vw - 2rem));
    max-width: none;
    margin: 0;
    padding: 0;
    pointer-events: none;
}
.fmac-messages.is-toast li {
    position: relative;
    pointer-events: auto;
    padding-right: 2.6rem;
    box-shadow: var(--shadow-lg);
}
@media (prefers-reduced-motion: no-preference) {
    .fmac-messages.is-toast li { animation: fmac-toast-in 0.2s ease-out; }
}
.fmac-messages.is-toast li.is-leaving {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.fmac-messages li.warning {
    border-left-color: #B7791F;
}
.fmac-messages li.error {
    border-left-color: var(--danger);
    background: var(--danger-tint);
}
.fmac-toast-close {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink-500);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}
.fmac-toast-close:hover,
.fmac-toast-close:focus-visible {
    background: var(--sand-2);
    color: var(--ink);
}
@keyframes fmac-toast-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
}
@media (max-width: 640px) {
    .fmac-messages.is-toast { top: 4.75rem; right: 0.75rem; left: 0.75rem; width: auto; }
}

/* ============================ Cards ============================ */

.fmac-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

/* ============================ Forms ============================ */

.fmac-form {
    display: block;
}

.fmac-form p,
.fmac-field {
    margin: 0 0 1.35rem;
}

.fmac-form label,
.fmac-field-label {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink-700);
    margin-bottom: 0.4rem;
}

.fmac-form input[type="text"],
.fmac-form input[type="email"],
.fmac-form input[type="password"],
.fmac-form input[type="number"],
.fmac-form input[type="date"],
.fmac-form input[type="url"],
.fmac-form input[type="tel"],
.fmac-form select,
.fmac-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
}

/* Number fields: no browser spinner arrows (they look like a different app).
   Typing works as before, and the up/down arrow keys still step the value. */
.fmac-form input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}
.fmac-form input[type="number"]::-webkit-inner-spin-button,
.fmac-form input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Date fields (caregiver "Date available to start"): the browser's own date
   control, but sized and framed like every other field. Without this it fell
   back to a small monospace box with a black border. */
.fmac-form input[type="date"] {
    min-height: var(--tap-min);
    color-scheme: light;
    -webkit-appearance: none;
    appearance: none;
}
.fmac-form input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
}
.fmac-form input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Show/hide button on password fields (static/js/password_toggle.js) */
.fmac-pw {
    position: relative;
}

.fmac-form .fmac-pw input {
    padding-right: 4.5rem;
}

.fmac-pw-toggle {
    position: absolute;
    top: 50%;
    right: 0.4rem;
    transform: translateY(-50%);
    min-height: 2.2rem;
    padding: 0 0.7rem;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--clay);
    background: transparent;
    border: 0;
    border-radius: var(--r-sm);
    cursor: pointer;
}

.fmac-pw-toggle:hover {
    color: var(--clay-600);
    background: var(--clay-tint);
}

.fmac-form input::placeholder,
.fmac-form textarea::placeholder {
    color: var(--ink-400);
}

.fmac-form input:focus,
.fmac-form select:focus,
.fmac-form textarea:focus {
    /* The global :focus-visible outline (top of file) is the real keyboard
       indicator — this border tint is additive, not a replacement. An
       `outline: none` here used to suppress that outline sitewide on every
       form field, which is exactly what :focus-visible exists to guarantee. */
    border-color: var(--ink);
}

.fmac-form textarea {
    min-height: 6.5rem;
    resize: vertical;
    line-height: 1.6;
}

.fmac-form input[type="file"] {
    width: 100%;
    font-size: 0.88rem;
    color: var(--ink-500);
    padding: 0.6rem 0;
}

.fmac-form input[type="file"]::file-selector-button {
    margin-right: 0.9rem;
    padding: 0.5rem 1rem;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
    background: var(--sand-2);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-full);
    cursor: pointer;
}

/* Help text + errors */

.fmac-form .helptext {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--ink-500);
}

.fmac-form .helptext ul {
    margin: 0.3rem 0 0;
    padding-left: 1.1rem;
}

.fmac-form .errorlist {
    list-style: none;
    margin: 0 0 0.5rem;
    padding: 0;
}

.fmac-form .errorlist li {
    padding: 0.5rem 0.75rem;
    background: var(--danger-tint);
    border-radius: var(--r-sm);
    color: var(--danger);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Single checkboxes (open_to_live_in, remember me, etc.) */

.fmac-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--white);
    margin-bottom: 0.7rem;
}

.fmac-check input[type="checkbox"] {
    margin: 0.2rem 0 0;
    width: 17px;
    height: 17px;
    accent-color: var(--ink);
    flex: none;
}

.fmac-check label {
    margin: 0;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
}

/* Multi-checkbox grids (languages, available days). Django renders these as
   nested divs or a ul depending on version, so cover both. */

.fmac-check-grid > div,
.fmac-check-grid > ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.fmac-check-grid div div,
.fmac-check-grid li {
    margin: 0;
}

.fmac-check-grid label {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    padding: 0.55rem 1rem;
    min-height: var(--tap-min);
    border: 1.5px solid var(--line);
    border-radius: var(--r-full);
    background: var(--white);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-700);
    cursor: pointer;
}

.fmac-check-grid label:hover {
    border-color: var(--line-strong);
}

.fmac-check-grid input[type="checkbox"],
.fmac-check-grid input[type="radio"] {
    /* Big enough to hit and see, and always clear of the label text. */
    width: 22px;
    height: 22px;
    flex: none;
    margin: 0;
    accent-color: var(--ink);
}

/* Dense variant — 20 skill options in a filter bar need to read as one block,
   not dominate the page above the results. */
.fmac-check-grid-compact > div,
.fmac-check-grid-compact > ul {
    gap: 0.35rem;
}

.fmac-check-grid-compact label {
    padding: 0.4rem 0.85rem;
    min-height: var(--tap-min);
    font-size: 0.9rem;
}

.fmac-check-grid-compact input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

/* Skill checkboxes grouped into small categories (Personal care, Medical,
   Household, Companionship) instead of one 20-item alphabetical wall — cuts
   "read every option to find the one I want" down to "read one group." */
.fmac-skill-group {
    margin-bottom: 1.1rem;
}

.fmac-skill-group:last-child {
    margin-bottom: 0;
}

.fmac-skill-group-label {
    font-family: var(--font-ui);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-500);
    margin: 0 0 0.5rem;
}

.fmac-skill-group-compact {
    margin-bottom: 0.7rem;
}

.fmac-skill-group-compact .fmac-skill-group-label {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

/* Cards used for list rows (job postings, applications, applicants) */

.fmac-item-card {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.4rem 1.6rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
}

.fmac-item-card + .fmac-item-card {
    margin-top: 0.9rem;
}

.fmac-item-body h3 {
    font-size: 1.1rem;
}

.fmac-item-body h3 a {
    color: var(--ink);
    text-decoration: none;
}

.fmac-item-body h3 a:hover {
    color: var(--clay);
}

.fmac-item-meta {
    margin-top: 0.25rem;
    font-size: 0.88rem;
    color: var(--ink-500);
}

.fmac-item-note {
    margin-top: 0.6rem;
    font-size: 0.88rem;
    color: var(--ink-700);
    font-style: italic;
}

.fmac-item-side {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
}

.fmac-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.fmac-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.fmac-status-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.fmac-card-text {
    margin-top: 1.4rem;
    color: var(--ink-700);
    /* Bios, job descriptions, requirements — long-form prose. Capped so it
       doesn't stretch to the wider .fmac-page's full new width. */
    max-width: 68ch;
}

.fmac-card-subhead {
    font-size: 1.05rem;
    margin-top: 1.6rem;
    margin-bottom: 0.5rem;
}

.fmac-status-form select {
    padding: 0.5rem 0.7rem;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
}

.fmac-note {
    font-size: 0.88rem;
    color: var(--ink-500);
    font-style: italic;
}

/* Form sections — used by the long caregiver profile form */

.fmac-fieldset {
    border: none;
    margin: 0 0 2.5rem;
    padding: 0;
}

.fmac-fieldset:last-of-type {
    margin-bottom: 1.5rem;
}

/* Job posting wizard step indicator — see job_posting_wizard.js. Plain
   list markup so it degrades to a readable outline with JS disabled. */
.fmac-wizard-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    list-style: none;
    margin: 0 0 2rem;
    padding: 0 0 1.2rem;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-400);
}

.fmac-wizard-steps li {
    cursor: pointer;
}

.fmac-wizard-steps li.is-active {
    color: var(--clay);
}

.fmac-fieldset legend {
    display: block;
    width: 100%;
    padding: 0 0 0.9rem;
    margin-bottom: 1.4rem;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
}

.fmac-field-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.fmac-field-row > .fmac-field {
    flex: 1 1 220px;
}

.fmac-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

/* ============================ Auth screens ============================ */

.fmac-auth {
    max-width: 460px;
    margin: 0 auto;
    padding: 4rem 1.5rem 5rem;
}

.fmac-auth-wide {
    max-width: 1320px;
}

.fmac-auth-head {
    text-align: center;
    margin-bottom: 1.8rem;
}

.fmac-auth-head h1 {
    font-size: 2rem;
}

.fmac-auth-head p {
    margin-top: 0.5rem;
    color: var(--ink-500);
}

.fmac-auth-foot {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--ink-500);
}

.fmac-auth-wide .fmac-auth-head {
    margin-bottom: 3.25rem;
}

.fmac-auth-wide .fmac-auth-head h1 {
    font-size: clamp(2.3rem, 5vw, 3.2rem);
}

.fmac-auth-wide .fmac-auth-head p {
    font-size: 1.15rem;
}

.fmac-auth-wide .fmac-auth-foot {
    margin-top: 2.25rem;
    font-size: 0.95rem;
}

/* Role choice cards */

.fmac-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.75rem;
}

/* Caregiver on the left, a slim divider, then agency + family on the right. */
.fmac-choice-split {
    display: grid;
    grid-template-columns: 1fr 2px 2fr;
    gap: 2rem;
    align-items: stretch;
}

.fmac-choice-split .fmac-choice-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.fmac-choice-divider {
    background: var(--line-strong);
    width: 2px;
    border-radius: 2px;
}

.fmac-choice-split .fmac-choice-side-title {
    margin: 0 0 1.5rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    color: var(--clay);
}

@media (max-width: 900px) {
    .fmac-choice-split {
        grid-template-columns: 1fr;
    }

    .fmac-choice-divider {
        width: auto;
        height: 2px;
    }
}

.fmac-choice-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.9rem;
    min-height: 320px;
    padding: 3.5rem 2.75rem;
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: var(--r-lg);
    text-decoration: none;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.fmac-choice-card:hover {
    border-color: var(--ink);
    color: var(--ink);
    box-shadow: var(--shadow-md);
}

.fmac-choice-icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: var(--r-lg);
    background: var(--sand-2);
    color: var(--clay);
}

.fmac-choice-icon svg {
    width: 40px;
    height: 40px;
}

.fmac-choice-card h2 {
    font-size: 1.9rem;
    margin-bottom: 0.6rem;
}

.fmac-choice-card p {
    font-size: 1.12rem;
    line-height: 1.55;
    color: var(--ink-500);
}

/* Phones: the three role choices must fit on one screen without scrolling.
   The big desktop cards (320px tall, 84px icon) become compact rows: icon, title
   and description, arrow. The page header shrinks too (its 2.3rem title also
   overflowed a 375px screen and was clipped on the right). */
@media (max-width: 700px) {
    .fmac-auth {
        padding: 1.5rem 1.25rem 2.5rem;
    }
    .fmac-auth-wide .fmac-auth-head {
        margin-bottom: 1.25rem;
    }
    .fmac-auth-wide .fmac-auth-head h1 {
        font-size: 1.75rem;
        overflow-wrap: break-word;
    }
    .fmac-auth-wide .fmac-auth-head p {
        font-size: 1rem;
    }
    .fmac-auth-wide .fmac-auth-foot {
        margin-top: 1.25rem;
    }

    .fmac-choice-split {
        gap: 0.9rem;
    }
    .fmac-choice-split .fmac-choice-grid {
        gap: 0.75rem;
    }
    .fmac-choice-split .fmac-choice-side-title {
        margin: 0 0 0.6rem;
        font-size: 0.8rem;
    }
    .fmac-choice-divider {
        height: 1px;
    }

    .fmac-choice-card {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        min-height: 0;
        padding: 1rem 1.1rem;
    }
    .fmac-choice-icon {
        width: 52px;
        height: 52px;
        border-radius: var(--r-md);
    }
    .fmac-choice-icon svg {
        width: 26px;
        height: 26px;
    }
    .fmac-choice-card h2 {
        font-size: 1.15rem;
        margin-bottom: 0.15rem;
    }
    .fmac-choice-card p {
        font-size: 0.92rem;
        line-height: 1.35;
    }
    .fmac-choice-card::after {
        content: "\2192";
        margin-left: auto;
        padding-left: 0.25rem;
        font-size: 1.35rem;
        line-height: 1;
        color: var(--clay);
    }
}

/* ============================ Search ============================ */

.fmac-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    /* Top-aligned, so a field that grows (a dropdown with its "Other" box open)
       does not push the others down and stagger the labels. */
    align-items: flex-start;
    padding: 1.4rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.fmac-filter-field {
    flex: 1 1 220px;
}

.fmac-filter-field label,
.fmac-filter-field .fmac-filter-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-500);
    margin-bottom: 0.4rem;
}

.fmac-filter-field input,
.fmac-filter-field select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
}

/* Native select chrome is the one thing in the filter bar that doesn't match
   the rest of the system, so draw our own chevron. */
.fmac-filter-field select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.4rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23808AA0' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    cursor: pointer;
}

.fmac-filter-field input:focus,
.fmac-filter-field select:focus {
    border-color: var(--ink);
}

/* A filter that needs its own row — the skills grid is 20 options wide. */
.fmac-filter-field-wide {
    flex: 1 1 100%;
}

.fmac-filter-field-wide .fmac-note {
    margin: -0.15rem 0 0.55rem;
}

.fmac-filter-actions {
    display: flex;
    gap: 0.6rem;
    flex: none;
}

.fmac-result-count {
    font-size: 0.9rem;
    color: var(--ink-500);
    margin-bottom: 1rem;
}

.fmac-results {
    display: grid;
    /* minmax(0, 1fr), not the implicit `auto` track: an auto track grows to its
       widest child's min-content and pushed cards past the screen edge on a
       phone once the base text size went up. */
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
}

.fmac-result-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.4rem 1.6rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
}

.fmac-result-body {
    flex: 1 1 auto;
    min-width: 0;
}

.fmac-result-body h3 {
    font-size: 1.15rem;
}

.fmac-result-meta {
    margin-top: 0.2rem;
    font-size: 0.9rem;
    color: var(--ink-500);
}

.fmac-result-bio {
    margin-top: 0.6rem;
    font-size: 0.9rem;
    color: var(--ink-700);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fmac-result-side {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.7rem;
    text-align: right;
}

.fmac-rate {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
}

.fmac-rate span {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ink-500);
}

.fmac-empty {
    padding: 3.5rem 2rem;
    text-align: center;
    background: var(--white);
    border: 1px dashed var(--line-strong);
    border-radius: var(--r-md);
}

.fmac-empty h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.fmac-empty p {
    color: var(--ink-500);
    font-size: 0.92rem;
}

/* ==================== Matching & notifications (W5-7) ==================== */

/* Title and tier badge share a line — the badge is the first thing to read
   after the name, not an afterthought below it. */
.fmac-match-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.fmac-match-head h3 {
    font-size: 1.1rem;
}

/* Match strength. Deliberately not the generic chip colours: clay already
   means "accent / money / saved", so reusing it for a tier would collide.
   Colour weight descends with rank, and the dot goes hollow at the bottom,
   so the three read as one scale rather than three unrelated categories. */
.fmac-tier {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.24rem 0.7rem 0.24rem 0.6rem;
    border-radius: var(--r-full);
    border: 1px solid transparent;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.fmac-tier::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex: none;
}

.fmac-tier-strong {
    background: var(--sage-tint);
    color: var(--sage);
}

.fmac-tier-good {
    background: var(--sand-2);
    border-color: var(--line);
    color: var(--ink-700);
}

.fmac-tier-possible {
    background: transparent;
    border-color: var(--line);
    color: var(--ink-400);
}

.fmac-tier-possible::before {
    background: transparent;
    box-shadow: inset 0 0 0 1.5px currentColor;
}

/* Why something matched. Four reasons on one run-on line is unreadable, so
   they become a scannable two-column list that collapses on narrow screens. */
.fmac-match-reasons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.22rem 1.4rem;
    margin: 0.7rem 0 0;
    padding: 0;
    list-style: none;
}

.fmac-match-reasons li {
    position: relative;
    padding-left: 1rem;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--ink-500);
}

.fmac-match-reasons li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--line-strong);
}

/* An already-applied match stays in the list, flagged rather than removed. */
.fmac-poster-tag {
    display: inline-flex;
    align-items: center;
    margin-right: 0.4rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--r-full);
    background: var(--sand-2);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-700);
}

.fmac-poster-tag-agency {
    background: var(--ink);
    color: var(--white);
}

.fmac-match-flag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: var(--r-full);
    background: var(--clay-tint);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--clay-600);
}

/* Explanatory banner above a result list (closed posting, incomplete profile). */
.fmac-banner {
    display: flex;
    gap: 0.7rem;
    padding: 0.9rem 1.1rem;
    margin-bottom: 1.25rem;
    background: var(--clay-tint);
    border: 1px solid transparent;
    border-radius: var(--r-md);
    font-size: 0.9rem;
    color: var(--ink-700);
}

.fmac-banner svg {
    flex: none;
    margin-top: 0.15rem;
    color: var(--clay-600);
}

.fmac-banner a {
    font-weight: 600;
}

/* Unconfirmed-email notice under the nav, with its resend button. */
.fmac-verify-banner {
    max-width: 680px;
    margin: 1rem auto 0;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Skills block on the caregiver detail page. */
.fmac-skills-note {
    margin-top: 0.15rem;
    font-size: 0.85rem;
    color: var(--ink-400);
}

/* ============================ Home ============================ */

.fmac-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.fmac-cta {
    text-align: center;
    padding: clamp(3.5rem, 7vw, 5rem) 1.5rem;
    /* Cream, not navy: the navy footer sits directly below, and two navy
       blocks stacked read as one long band (client feedback, 2026-11-22). */
    background: var(--sand-2);
    border-top: 1px solid var(--line);
}

.fmac-cta h2 {
    color: var(--ink);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    max-width: 20ch;
    margin: 0 auto;
}

.fmac-cta p {
    margin: 0.9rem auto 0;
    max-width: 48ch;
    color: var(--ink-700);
}

.fmac-cta .fmac-hero-actions {
    justify-content: center;
}


/* Hero role paths */

.fmac-paths {
    display: grid;
    gap: 0.75rem;
    margin-top: 2rem;
    max-width: 480px;
}

.fmac-path {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 1.3rem;
    background: var(--white);
    border: 1.5px solid var(--line-strong);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    color: var(--ink);
    text-decoration: none;
}

.fmac-path:hover,
.fmac-path:focus-visible {
    border-color: var(--clay);
    box-shadow: var(--shadow-md);
    color: var(--ink);
}

.fmac-path-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.fmac-path-label {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fmac-path-audience {
    font-size: 0.9rem;
    color: var(--ink-500);
}

.fmac-path-arrow {
    flex: none;
    color: var(--clay);
}

.fmac-hero-login {
    margin-top: 1rem;
    font-size: 0.92rem;
    color: var(--ink-500);
}

/* How it works, by role */

.fmac-roles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.fmac-role-card {
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}

.fmac-role-tag {
    align-self: center;
    display: inline-block;
    padding: 0.25rem 0.8rem;
    border-radius: var(--r-full);
    background: var(--clay-tint);
    color: var(--clay);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fmac-role-steps {
    list-style: none;
    counter-reset: role-step;
    margin: 1.25rem 0 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.fmac-role-steps li {
    counter-increment: role-step;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    font-weight: 500;
    color: var(--ink-700);
}

.fmac-role-steps li::before {
    content: counter(role-step);
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Why FindMeACaregiver, and trust & safety */

.fmac-why-grid,
.fmac-safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 2.75rem;
}

.fmac-why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 640px) {
    .fmac-why-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.fmac-safety-grid {
    margin-top: 0;
}

.fmac-why-card,
.fmac-safety-card {
    padding: 1.6rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}

.fmac-safety-card {
    border-left: 4px solid var(--clay);
}

.fmac-why-card h3,
.fmac-safety-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.45rem;
}

.fmac-why-card p,
.fmac-safety-card p,
.fmac-safety-card li {
    font-size: 0.95rem;
    color: var(--ink-500);
}

.fmac-safety-card ul {
    margin: 0.6rem 0 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.3rem;
}

.fmac-cta .fmac-cta-brand {
    margin-top: 2.25rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--ink);
}

.fmac-auth-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--ink-500);
    text-align: center;
}

/* ============================ Responsive ============================ */

@media (max-width: 640px) {
    .fmac-nav {
        padding: 0.9rem 1.25rem;
        gap: 0.75rem;
    }

    .fmac-logo img {
        height: 1.8rem;
    }

    .fmac-nav-links {
        gap: 0.9rem 1.1rem;
        font-size: 1rem;
    }

    .fmac-result-card {
        padding: 1.2rem;
        gap: 1rem;
    }

    .fmac-result-side {
        align-items: flex-start;
        text-align: left;
    }

    .fmac-avatar {
        width: 52px;
        height: 52px;
        font-size: 1.1rem;
    }

    .fmac-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .fmac-match-reasons {
        grid-template-columns: 1fr;
    }

    .fmac-match-head {
        gap: 0.4rem;
    }
}

/* ============================================================
   Messaging (W7-9)
   ============================================================ */

/* Two-pane on desktop, stacked on narrow screens. The thread list is the
   same partial the inbox renders on its own, so both layouts share markup. */
.fmac-messaging {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 1.4rem;
    align-items: start;
}
.fmac-messaging-wide {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(200px, 260px);
}
@media (max-width: 900px) {
    .fmac-messaging,
    .fmac-messaging-wide { grid-template-columns: minmax(0, 1fr); }
    .fmac-thread-pane { order: -1; }
}

.fmac-pane {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.fmac-pane-head {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--line);
    background: var(--sand);
}
.fmac-pane-head h2 {
    margin: 0;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-500);
}
.fmac-pane-body { padding: 1.2rem; }

/* Thread list */
.fmac-thread-list { display: flex; flex-direction: column; }
.fmac-thread-item {
    display: block;
    padding: 0.95rem 1.2rem;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: inherit;
    transition: background .12s ease;
}
.fmac-thread-item:last-child { border-bottom: 0; }
.fmac-thread-item:hover { background: var(--sand); }
.fmac-thread-item.is-active {
    background: var(--clay-tint);
    box-shadow: inset 3px 0 0 var(--clay);
}
.fmac-thread-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem;
}
.fmac-thread-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
}
.fmac-thread-item.is-unread .fmac-thread-name { font-weight: 700; }
.fmac-thread-date {
    flex: none;
    font-size: 0.75rem;
    color: var(--ink-400);
}
.fmac-thread-sub {
    margin: 0.2rem 0 0;
    font-size: 0.83rem;
    line-height: 1.45;
    color: var(--ink-500);
}
.fmac-thread-preview {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: var(--ink-700);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Unread badge — nav and thread rows share the treatment */
.fmac-unread {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.4rem;
    border-radius: var(--r-full);
    background: var(--clay);
    color: var(--white);
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}
.fmac-nav-badge { margin-left: 0.35rem; }

/* Conversation */
.fmac-bubbles {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.3rem;
    max-height: 60vh;
    overflow-y: auto;
}
.fmac-bubble-row { display: flex; flex-direction: column; align-items: flex-start; }
.fmac-bubble-row.is-own { align-items: flex-end; }
.fmac-bubble {
    max-width: min(88%, 44ch);
    padding: 0.8rem 1rem;
    border-radius: var(--r-md);
    background: var(--sand-2);
    color: var(--ink-700);
    font-size: 0.92rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.fmac-bubble-row.is-own .fmac-bubble {
    background: var(--clay);
    color: var(--white);
}
.fmac-bubble-meta {
    margin: 0.3rem 0.15rem 0;
    font-size: 0.72rem;
    color: var(--ink-400);
}

/* "New" divider — the first unread message, the way Indeed marks it */
.fmac-new-divider {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0.2rem 0;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--danger);
}
.fmac-new-divider::before,
.fmac-new-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--danger);
    opacity: 0.35;
}

.fmac-compose {
    padding: 1rem 1.3rem 1.3rem;
    border-top: 1px solid var(--line);
    background: var(--sand);
}
.fmac-compose textarea {
    width: 100%;
    resize: vertical;
}
.fmac-compose-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.7rem;
}

.fmac-thread-banner {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    padding: 0.7rem 1.3rem;
    background: var(--sand-2);
    border-bottom: 1px solid var(--line);
    font-size: 0.83rem;
    color: var(--ink-500);
}

/* Caregiver panel beside the conversation — Indeed's resume rail */
.fmac-side-fact { margin: 0 0 0.7rem; font-size: 0.85rem; color: var(--ink-700); }
.fmac-side-fact:last-child { margin-bottom: 0; }
.fmac-side-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--ink-400);
}

/* ============================================================
   Pricing & paywall (W7-9 Session E)
   ============================================================ */

/* Plans sit in one group per audience; each group is a 3-column grid on
   desktop, 2 on tablet, 1 on mobile. Capped so cards never get excessively
   wide on large screens. */
.fmac-plan-groups {
    display: grid;
    /* minmax(0, ...) lets the column shrink to the screen: a plain `auto`
       column grows to its widest content and, with the phone swipe rows below,
       pushed the whole page wider than the viewport. */
    grid-template-columns: minmax(0, 1fr);
    gap: 2.6rem;
    margin-bottom: 2.4rem;
}
.fmac-plan-group {
    min-width: 0;
}
/* Tabbed pricing (pricing_tabs.js). On wide screens both groups share one grid
   cell and the inactive one is only made invisible, so the page keeps the
   taller group's height and nothing below it moves when the tab changes. On
   narrow screens the inactive group is simply removed. */
.fmac-plan-groups.is-tabbed .fmac-plan-group.is-inactive {
    display: none;
}
@media (min-width: 900px) {
    .fmac-plan-groups.is-tabbed .fmac-plan-group {
        grid-area: 1 / 1;
    }
    .fmac-plan-groups.is-tabbed .fmac-plan-group.is-inactive {
        display: block;
        visibility: hidden;
        pointer-events: none;
    }
}
.fmac-plan-group-title {
    margin: 0 0 1rem;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-500);
}
/* Every group (Caregiver, Family, Agency) uses the same tracks, so a plan card
   is the same width wherever it appears: four across on wide screens, two
   across below that, one on phones. Groups with fewer cards leave the
   remaining tracks empty on the right instead of stretching their cards. */
.fmac-plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    align-items: stretch;
}
@media (min-width: 1100px) {
    .fmac-plan-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    /* Phones: each group is a swipeable row, one card at a time with the next
       one peeking in (and dots below, from carousel.js), instead of a long stack
       of tall cards. The row runs to the screen edge like the job openings. */
    .fmac-plan-grid {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        /* The page column is 94vw wide with 1.5rem padding, so reaching the
           screen edge takes both: 3vw margin each side plus the padding. */
        margin-inline: calc(-1.5rem - 3vw);
        padding: 1rem calc(1.5rem + 3vw) 0.75rem;
        scroll-padding-inline: calc(1.5rem + 3vw);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .fmac-plan-grid::-webkit-scrollbar { display: none; }
    .fmac-plan-grid > .fmac-plan {
        flex: 0 0 82%;
        scroll-snap-align: start;
        min-height: 0;
    }
    /* A group with a single card (Caregivers) has nothing to swipe to. */
    .fmac-plan-grid > .fmac-plan:only-child {
        flex-basis: 100%;
    }
    .fmac-plan-grid:focus-visible {
        outline: 2px solid var(--clay);
        outline-offset: 2px;
    }
}
.fmac-plan {
    display: flex;
    flex-direction: column;
    min-height: 15rem;
    padding: 1.8rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}
.fmac-plan-featured {
    border-width: 2px;
    border-color: var(--clay);
    box-shadow: var(--shadow-md);
}
.fmac-plan {
    position: relative;
}
.fmac-plan-badge {
    position: absolute;
    top: -0.7rem;
    right: 1.2rem;
    padding: 0.2rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--clay);
    border-radius: 999px;
}
.fmac-services {
    max-width: 1120px;
    margin-bottom: 2.4rem;
}
.fmac-plan-group-title:has(+ .fmac-plan-group-tag) { margin-bottom: 0.3rem; }
.fmac-plan-group-tag {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: var(--ink-700);
}
/* Feature details: hover on desktop, focus/tap on touch and keyboard. */
.fmac-plan-features li { position: relative; }
/* Pricing intro: two short labelled bullet lists instead of two paragraphs. */
.fmac-pricing-notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 2.5rem;
    margin-top: 1.2rem;
}
/* A thin divider between the "Who pays" and "Billing" columns, drawn in the
   exact middle of the column gap (half the gap, 2rem, to the left of the second
   column) so it is equidistant from both columns. */
.fmac-pricing-notes {
    column-gap: 4rem;
}
.fmac-pricing-notes > section + section {
    position: relative;
}
.fmac-pricing-notes > section + section::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -2rem;
    width: 1px;
    background: var(--line-strong);
}
@media (max-width: 760px) {
    .fmac-pricing-notes { grid-template-columns: minmax(0, 1fr); }
    /* Stacked on phones: the divider becomes a horizontal rule. */
    .fmac-pricing-notes > section + section {
        padding-top: 1.5rem;
        border-top: 1px solid var(--line-strong);
    }
    .fmac-pricing-notes > section + section::before {
        display: none;
    }
}
.fmac-pricing-notes-title {
    margin: 0 0 0.6rem;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--clay);
}
.fmac-pricing-notes-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.6rem;
}
.fmac-pricing-notes-list li {
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.5;
    color: var(--ink-700);
}
.fmac-pricing-notes-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: var(--r-full);
    background: var(--sage);
}
.fmac-tip {
    border-bottom: 1px dotted var(--ink-400);
    cursor: help;
}
.fmac-tip:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
.fmac-tip-body {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 5;
    margin-top: 0.3rem;
    padding: 0.7rem 0.85rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--white);
    background: var(--ink);
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-md);
}
.fmac-tip:hover + .fmac-tip-body,
.fmac-tip:focus + .fmac-tip-body { display: block; }
.fmac-plan-name {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.25rem;
    line-height: 1.25;
    color: var(--ink);
}
/* One price structure for every plan: symbol, amount, /month, all sitting on a
   shared baseline. Lining figures keep digits (4, 7, 9) from dropping below it. */
.fmac-plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    margin: 0.6rem 0 0;
    font-family: var(--font-display);
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum" 1;
    color: var(--ink);
    line-height: 1;
}
.fmac-plan-cur {
    font-size: 1.5rem;
    font-weight: 600;
}
.fmac-plan-amt {
    font-size: 2.4rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.fmac-plan-per {
    margin-left: 0.2rem;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink-500);
}
.fmac-plan-blurb {
    margin: 0.8rem 0 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--ink-500);
}
.fmac-plan-features {
    margin: 1.3rem 0 1.6rem;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}
.fmac-plan-features li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--ink-700);
}
.fmac-plan-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.42em;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: var(--r-full);
    background: var(--sage);
}
/* "Everything in <lower plan>" is a lead-in, not a feature: no bullet, bold,
   and a rule beneath it so the checklist below reads as what this plan adds. */
.fmac-plan-features li.fmac-plan-inherits {
    padding: 0 0 0.85rem;
    margin-bottom: 0.15rem;
    border-bottom: 1px solid var(--line);
    font-weight: 600;
    color: var(--ink);
}
.fmac-plan-features li.fmac-plan-inherits::before { content: none; }
.fmac-btn-wrap {
    max-width: 100%;
    white-space: normal;
    text-align: center;
}
.fmac-plan-foot {
    margin-top: auto;
    padding-top: 1.6rem;
}

.fmac-usage {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.4rem;
    align-items: baseline;
    padding: 1.1rem 1.4rem;
    margin-bottom: 1.6rem;
    background: var(--sand-2);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    font-size: 0.9rem;
    color: var(--ink-700);
}
.fmac-usage strong { color: var(--ink); }

/* Paywall / upgrade card */
.fmac-paywall {
    padding: 2rem;
    text-align: center;
    background: var(--sand-2);
    border: 1px dashed var(--line-strong);
    border-radius: var(--r-md);
}
.fmac-paywall h3 {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--ink);
}
.fmac-paywall p {
    margin: 0 auto 1.2rem;
    max-width: 46ch;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--ink-500);
}
.fmac-paywall-note {
    margin: 0.7rem 0 0;
    font-size: 0.8rem;
    color: var(--ink-400);
}


/* ============================ Home (2026-10 simplification) ============================ */

/* Hero: the supplied video as a full-width band, with the headline and the
   three role paths on a raised panel that overlaps its lower edge. Text never
   sits on top of the footage, so contrast never depends on what frame is
   playing. */

.fmac-hero2 {
    background: var(--sand);
}

.fmac-hero2-media {
    position: relative;
    height: clamp(260px, 38vw, 520px);
    overflow: hidden;
    background: var(--ink) url("../video/hero-poster.1e09467b876c.webp") center 40% / cover no-repeat;
}

.fmac-hero2-video {
    filter: brightness(1.18) saturate(1.05);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}

/* Visitors who prefer reduced motion get the poster image, no moving video. */
@media (prefers-reduced-motion: reduce) {
    .fmac-hero2-video {
        display: none;
    }
}

.fmac-hero2-panel {
    position: relative;
    max-width: 960px;
    margin: -4.5rem auto 0;
    padding: clamp(1.75rem, 4vw, 3rem);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.fmac-hero2-panel h1 {
    font-size: clamp(2rem, 4.6vw, 3.2rem);
    max-width: 20ch;
    margin: 0 auto;
}

.fmac-hero2-lead {
    margin: 1.1rem auto 0;
    max-width: 58ch;
    font-size: 1.15rem;
    line-height: 1.65;
    color: var(--ink-700);
}

.fmac-hero2-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.fmac-hero2-panel .fmac-paths {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
    margin-top: 2rem;
    text-align: left;
}

.fmac-hero2-panel .fmac-hero-login {
    margin-top: 1.25rem;
    font-size: 1rem;
}

@media (max-width: 860px) {
    .fmac-hero2-panel .fmac-paths {
        grid-template-columns: minmax(0, 1fr);
    }

    .fmac-hero2-panel {
        margin: -3rem 1rem 0;
    }
}

/* Role path cards: larger, clearer labels. */
.fmac-path {
    min-height: 5rem;
    padding: 1.1rem 1.4rem;
}

.fmac-path-label {
    font-size: 1.05rem;
    line-height: 1.3;
}

.fmac-path-audience {
    font-size: 1rem;
}

/* Hero variant: text over the footage (Samash-style preview). Opt in with
   `fmac-hero2--overlay` on the section; remove that class to get the raised-panel
   hero back. A dark scrim sits between the video and the text so contrast does
   not depend on which frame is playing. Only from 861px up: on phones the
   landscape footage would crop badly behind portrait-height text, so narrow
   screens keep the stacked layout (short video band, then the text card). */
@media (min-width: 861px) {
.fmac-hero2--overlay {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(560px, 88svh, 820px);
    background: var(--ink);
}
.fmac-hero2--overlay .fmac-hero2-media {
    position: absolute;
    inset: 0;
    height: auto;
}
.fmac-hero2--overlay .fmac-hero2-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 22, 40, 0.34);
    pointer-events: none;
}
/* The video is brighter than it was, so lift the white hero text off it. */
.fmac-hero2--overlay .fmac-hero2-panel h1,
.fmac-hero2--overlay .fmac-hero2-lead,
.fmac-hero2--overlay .fmac-hero-login {
    text-shadow: 0 1px 14px rgba(15, 22, 40, 0.65), 0 0 2px rgba(15, 22, 40, 0.4);
}
.fmac-hero2--overlay .fmac-hero2-panel {
    z-index: 1;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    background: none;
    border: 0;
    box-shadow: none;
    color: var(--white);
}
.fmac-hero2--overlay .fmac-hero2-panel h1 {
    color: var(--white);
    max-width: 22ch;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.fmac-hero2--overlay .fmac-eyebrow {
    color: rgba(255, 255, 255, 0.92);
}
.fmac-hero2--overlay .fmac-hero2-lead {
    color: rgba(255, 255, 255, 0.95);
}
.fmac-hero2--overlay .fmac-hero-login,
.fmac-hero2--overlay .fmac-hero-login a {
    color: var(--white);
}
.fmac-hero2--overlay .fmac-hero-login a {
    text-decoration: underline;
    text-underline-offset: 2px;
}
}

/* Homepage job openings: a card grid (the Browse Jobs list keeps its own rows). */
.fmac-carousel {
    position: relative;
}
.fmac-job-grid {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0.25rem;
    /* Room for the card shadow and hover lift, which overflow-x would clip. */
    padding: 0.5rem 0.25rem 1rem;
    margin: -0.5rem -0.25rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.fmac-job-grid:focus-visible {
    outline: 2px solid var(--clay);
    outline-offset: 2px;
}
.fmac-job-grid > .fmac-job-card {
    flex: 0 0 min(84%, 20rem);
    scroll-snap-align: start;
}
.fmac-carousel-btn {
    position: absolute;
    top: 45%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-full);
    box-shadow: var(--shadow-md);
    cursor: pointer;
}
.fmac-carousel-btn[hidden] {
    display: none;
}
.fmac-carousel-btn:hover:not(:disabled) {
    border-color: var(--clay);
    color: var(--clay);
}
.fmac-carousel-btn:focus-visible {
    outline: 2px solid var(--clay);
    outline-offset: 2px;
}
.fmac-carousel-btn:disabled {
    opacity: 0.35;
    cursor: default;
}
.fmac-carousel-prev { left: -0.9rem; }
.fmac-carousel-next { right: -0.9rem; }
.fmac-carousel-dots {
    display: none;
}
@media (max-width: 860px) {
    /* Phones swipe; the arrows would only cover the cards. */
    .fmac-carousel-btn { display: none; }

    /* Run the row to the screen edge (undoing the band's side padding), so the
       next card visibly continues off-screen. That, plus the dots below, tells
       people to swipe. */
    .fmac-job-grid {
        margin-inline: -1.5rem;
        padding-inline: 1.5rem;
        scroll-padding-inline: 1.5rem;
    }
    .fmac-job-grid > .fmac-job-card {
        flex-basis: min(82%, 20rem);
    }
    .fmac-carousel-dots {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 0.4rem;
    }
    .fmac-carousel-dots[hidden] {
        display: none;
    }
    .fmac-carousel-dot {
        width: 0.5rem;
        height: 0.5rem;
        border-radius: var(--r-full);
        background: var(--line-strong);
        transition: width 0.2s ease, background 0.2s ease;
    }
    .fmac-carousel-dot.is-active {
        width: 1.4rem;
        background: var(--clay);
    }
    /* Narrow cards: "Posted Nov 15" shortens to "Nov 15" and neither the care
       type chip nor the date wraps onto a second line. */
    .fmac-job-posted-label {
        display: none;
    }
    .fmac-job-top .fmac-chip,
    .fmac-job-posted {
        white-space: nowrap;
    }
}
@media (prefers-reduced-motion: reduce) {
    .fmac-carousel-dot { transition: none; }
}
.fmac-job-card {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.4rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.fmac-job-card:hover {
    border-color: var(--clay);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
    .fmac-job-card { transition: none; }
    .fmac-job-card:hover { transform: none; }
}
.fmac-job-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.fmac-job-posted {
    font-size: 0.82rem;
    color: var(--ink-500);
}
/* Every title reserves exactly two lines (and clips past two) so the area,
   schedule, pay and button sit at the same height on every card. */
.fmac-job-card h3 {
    font-size: 1.2rem;
    line-height: 1.3;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}
.fmac-job-facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
    color: var(--ink-700);
    font-size: 0.95rem;
}
.fmac-job-facts li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.fmac-job-facts svg {
    flex: none;
    color: var(--clay);
}
/* Footer is always stacked: pay on its own line, full-width button under it.
   (Side by side only worked when the pay text happened to be short.) */
.fmac-job-foot {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}
.fmac-job-pay {
    font-family: var(--font-display, inherit);
    font-size: 1.35rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--ink);
}
.fmac-job-pay-none {
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink-500);
}
.fmac-job-foot .fmac-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
}

/* Content bands */

.fmac-band {
    padding: clamp(2.25rem, 4.5vw, 3.5rem) 0;
}

.fmac-band-alt {
    background: var(--sand-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* Same column as the nav, footer and every app page: a 1440px box with 1.5rem
   side padding, so left edges line up at every viewport width. */
.fmac-band-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.fmac-band-head {
    margin-bottom: 1.25rem;
}

.fmac-band-head h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

.fmac-band-head p {
    margin-top: 0.7rem;
    max-width: 60ch;
    color: var(--ink-700);
}

.fmac-band-more {
    margin-top: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.fmac-band-more a,
.fmac-info-more a {
    display: inline-block;
    padding: 0.6rem 0;
}

/* Three steps */

.fmac-steps3 {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.fmac-steps3 li {
    padding: 1.75rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}

.fmac-steps3-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.fmac-steps3-top .fmac-steps3-num {
    margin-bottom: 0;
}

.fmac-steps3-icon {
    color: var(--ink);
    flex: none;
}

.fmac-steps3-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--ink);
    color: var(--white);
    font: 600 1.15rem/1 var(--font-display);
}

.fmac-steps3 h3 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

.fmac-steps3 p {
    color: var(--ink-700);
}

/* Four "why" tiles */

.fmac-why4 {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.fmac-why4 li {
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}

.fmac-why4 svg {
    display: block;
    margin-bottom: 0.9rem;
    color: var(--clay);
}

.fmac-why4 h3 {
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
}

.fmac-why4 p {
    color: var(--ink-700);
}

/* Safety band */

.fmac-safety-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.fmac-safety-inner > div {
    flex: 1 1 420px;
    max-width: 70ch;
}

.fmac-safety-inner h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.3rem);
    margin-bottom: 0.7rem;
}

.fmac-safety-inner p {
    color: var(--ink-700);
}

@media (max-width: 960px) {
    .fmac-steps3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .fmac-why4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .fmac-why4 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Information pages (How it works, Why, Safety) */

.fmac-info {
    max-width: 1440px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 5rem;
}

.fmac-info-head {
    margin-bottom: 2.5rem;
    max-width: 60ch;
}

.fmac-info-head h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
}

.fmac-info-head p {
    margin-top: 1rem;
    font-size: 1.15rem;
    color: var(--ink-700);
}

/* Steps take the spare height; the button is pinned to the card bottom, and all
   three share one minimum height so a label that wraps ("I'm looking for
   caregiver work") does not make one button taller than its neighbours. */
.fmac-info .fmac-role-card .fmac-role-steps {
    flex: 1;
    align-content: start;
    margin-bottom: 1.5rem;
}
.fmac-info .fmac-role-card .fmac-btn {
    margin-top: auto;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
    text-align: center;
}

.fmac-info-more {
    margin-top: 2.5rem;
    font-size: 1.1rem;
}

.fmac-info .fmac-why-grid,
.fmac-info .fmac-safety-grid {
    margin-top: 0;
}

.fmac-info .fmac-why-card h2,
.fmac-info .fmac-safety-card h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.fmac-info .fmac-why-card p,
.fmac-info .fmac-safety-card p,
.fmac-info .fmac-safety-card li {
    font-size: 1.05rem;
    color: var(--ink-700);
}


/* Mobile nav. With JavaScript (nav_toggle.js adds `js-nav`) the header is just
   the logo and a menu button, and every link opens in a panel underneath.
   Without JavaScript the links stay in the header as a compact row: signed-out
   visitors get Pricing, Log in and Get started. (This fallback used to be
   ignored: `.fmac-nav-links a:not(.fmac-btn)` is more specific than the old
   selector, so on a phone all six links wrapped onto three rows.) */
.fmac-nav-toggle {
    display: none;
}
@media (max-width: 1199px) {
    .fmac-nav-links a.fmac-nav-extra,
    .fmac-nav-links .fmac-nav-divider {
        display: none;
    }

    .fmac-nav.js-nav {
        gap: 0;
    }
    .fmac-nav.js-nav .fmac-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.9rem;
        height: 2.9rem;
        padding: 0;
        background: var(--white);
        color: var(--ink);
        border: 1px solid var(--line-strong);
        border-radius: var(--r-md);
        cursor: pointer;
    }
    .fmac-nav.js-nav .fmac-nav-toggle:focus-visible {
        outline: 2px solid var(--clay);
        outline-offset: 2px;
    }
    .fmac-nav.js-nav .fmac-nav-toggle-close,
    .fmac-nav.js-nav.is-open .fmac-nav-toggle-open {
        display: none;
    }
    .fmac-nav.js-nav.is-open .fmac-nav-toggle-close {
        display: block;
    }

    /* The panel: closed by default, full width under the logo row when open. */
    .fmac-nav.js-nav .fmac-nav-links {
        display: none;
        flex: 0 0 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-top: 0.75rem;
        padding-top: 0.25rem;
        border-top: 1px solid var(--line);
    }
    .fmac-nav.js-nav.is-open .fmac-nav-links {
        display: flex;
    }
    /* Every destination is in the panel, including the ones the no-JS
       fallback hides. */
    .fmac-nav.js-nav .fmac-nav-links a.fmac-nav-extra {
        display: inline-flex;
    }
    .fmac-nav.js-nav .fmac-nav-links a:not(.fmac-btn) {
        padding: 0.8rem 0.25rem;
        border-bottom: 1px solid var(--line);
        font-size: 1.05rem;
    }
    .fmac-nav.js-nav .fmac-nav-links .fmac-btn,
    .fmac-nav.js-nav .fmac-nav-links form {
        margin-top: 0.9rem;
    }
    .fmac-nav.js-nav .fmac-nav-links .fmac-btn,
    .fmac-nav.js-nav .fmac-nav-links form .fmac-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .fmac-nav.js-nav .fmac-nav-links form {
        display: flex;
    }
    /* Agency and family account dropdown: inline in the panel, not floating. */
    .fmac-nav.js-nav .fmac-nav-account {
        border-bottom: 1px solid var(--line);
    }
    .fmac-nav.js-nav .fmac-nav-account summary {
        display: flex;
        padding: 0.4rem 0.25rem;
    }
    .fmac-nav.js-nav .fmac-nav-account-menu {
        position: static;
        min-width: 0;
        padding: 0 0 0.9rem 0.25rem;
        background: none;
        border: 0;
        box-shadow: none;
        align-items: stretch;
    }
    .fmac-nav.js-nav .fmac-nav-account-menu a {
        padding: 0.6rem 0;
        font-size: 1.02rem;
    }
}

.fmac-hero-login a {
    display: inline-block;
    padding: 0.5rem 0.25rem;
}


/* The filter bar's generic `.fmac-filter-field label` / `input` rules (small
   uppercase caption, full-width input) were also hitting the skill checkbox
   chips: text jammed against the box, shouting capitals, a 100%-wide checkbox.
   Chips opt back out so they read like the profile form's. */
.fmac-filter-field .fmac-check-grid label {
    display: inline-flex;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink-700);
}

.fmac-filter-field .fmac-check-grid input[type="checkbox"] {
    width: 20px;
    padding: 0;
}

/* Balanced line breaks: no single orphaned word on a headline. */
h1, h2, h3 {
    text-wrap: balance;
}


/* ===================== Phone density pass (2026-11-15) =====================
   Everything here is inside phone-width media queries, so tablet and desktop
   are untouched. It is last in the file on purpose: it overrides the earlier,
   desktop-sized spacing without changing it. Tap targets stay >= --tap-min
   (the audience skews older), so the savings come from spacing and layout, not
   from shrinking buttons and links.

   What it fixes: pages read as "too tall" on a phone because page, section and
   card padding were all desktop-sized and the footer collapsed to a single
   ~900px column. */

/* Footer: two columns down to small phones (it used to go to one column at
   480px), with the longest column (About) spanning both. */
@media (max-width: 480px) {
    .fmac-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 640px) {
    .fmac-footer {
        padding-top: 2rem;
        padding-bottom: 1.5rem;
    }
    .fmac-footer-grid {
        gap: 1.25rem 1rem;
    }
    .fmac-footer-brand p {
        max-width: none;
    }
    .fmac-footer-col {
        gap: 0;
    }
    .fmac-footer-col a {
        padding: 0.2rem 0;
    }
    .fmac-footer-col:last-child {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 1rem;
    }
    .fmac-footer-col:last-child h2 {
        grid-column: 1 / -1;
    }
    .fmac-footer-legal {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    /* Page chrome: less empty space above and below every page. Side padding is
       left alone (the pricing swipe rows are sized against it). */
    .fmac-page,
    .fmac-info {
        padding-top: 1.75rem;
        padding-bottom: 3rem;
    }
    .fmac-auth {
        padding-top: 1.75rem;
        padding-bottom: 3rem;
    }
    .fmac-page-head {
        margin-bottom: 1.25rem;
    }
    .fmac-page-head h1 {
        font-size: 1.7rem;
    }
    .fmac-info-head {
        margin-bottom: 1.5rem;
    }
    .fmac-info-head h1 {
        font-size: 1.75rem;
    }
    .fmac-info-more {
        margin-top: 1.5rem;
    }
    .fmac-auth-head {
        margin-bottom: 1.25rem;
    }
    .fmac-auth-head h1 {
        font-size: 1.6rem;
    }

    /* The "confirm your email" notice appears on every page for unconfirmed
       accounts, so it is slimmed down. */
    .fmac-verify-banner {
        margin: 0.6rem 0.75rem 0;
        padding: 0.6rem 0.8rem;
        gap: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    .fmac-verify-banner p {
        margin: 0;
    }

    /* Homepage and info-page sections. */
    .fmac-band {
        padding: 2rem 0;
    }
    .fmac-band-head {
        margin-bottom: 1.25rem;
    }
    .fmac-cta {
        padding: 2.25rem 1.25rem;
    }
    .fmac-steps3 li,
    .fmac-why4 li {
        padding: 1.1rem;
    }
    .fmac-why-card,
    .fmac-safety-card {
        padding: 1.1rem;
    }
    .fmac-role-card {
        padding: 1.25rem;
    }
    .fmac-why-grid,
    .fmac-safety-grid {
        margin-top: 1.5rem;
    }
    .fmac-safety-inner {
        gap: 1.25rem;
    }

    /* Forms and cards: the 2rem card padding sat inside the page's own side
       padding and ate about a third of a 375px screen. */
    .fmac-card {
        padding: 1.25rem;
    }
    .fmac-field {
        margin-bottom: 1rem;
    }
    .fmac-fieldset {
        margin-bottom: 1.75rem;
    }
    .fmac-form-actions {
        padding-top: 1rem;
    }

    /* List rows (applications, applicants, my postings, search results). */
    .fmac-item-card,
    .fmac-result-card {
        padding: 1rem 1.1rem;
        gap: 0.75rem;
    }
    .fmac-item-card + .fmac-item-card {
        margin-top: 0.7rem;
    }

    /* Empty and locked states. */
    .fmac-empty {
        padding: 2rem 1.25rem;
    }
    .fmac-paywall {
        padding: 1.25rem;
    }

    /* Pricing intro and the gaps between plan groups. */
    .fmac-plan-groups {
        gap: 1.75rem;
        margin-bottom: 1.5rem;
    }
    .fmac-pricing-notes {
        gap: 1rem;
    }
    .fmac-pricing-notes > section + section {
        padding-top: 1rem;
    }
    .fmac-plan-group-title {
        margin-bottom: 0.6rem;
    }

    /* Caregiver search filters: the two selects sit side by side, the Search
       button is full width, and each skills group is one swipeable row of chips
       instead of a wrapped wall of them. */
    .fmac-filters {
        padding: 1rem;
        gap: 0.75rem;
    }
    .fmac-filter-field {
        /* Full width: side by side, "Any care type" was cut off. */
        flex: 1 1 100%;
        min-width: 0;
    }
    .fmac-filter-field-wide {
        flex: 1 1 100%;
    }
    /* Skills: chips wrap so every option is visible (no sideways scrolling); the
       whole section collapses behind a tap instead (see .fmac-skills-details). */
    .fmac-filter-field-wide .fmac-check-grid > div {
        display: grid;
        /* As many columns as fit, but never narrower than 150px: that keeps room for
           the longest word ("Transportation") inside a chip. On a narrow phone this
           falls back to one column instead of breaking words in half. */
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.4rem;
    }
    .fmac-filter-field-wide .fmac-check-grid > div > div {
        max-width: none;
        min-width: 0;
    }
    .fmac-filter-field-wide .fmac-check-grid label {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        width: 100%;
        height: 100%;
        padding: 0.45rem 0.55rem;
        border-radius: var(--r-md);
        font-size: 0.85rem;
        line-height: 1.25;
        /* Wrap between words only; never split a word. */
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }
    .fmac-filter-actions {
        flex: 1 1 100%;
    }
    .fmac-filter-actions .fmac-btn {
        flex: 1;
    }
}


/* ==========================================================================
   Homepage refresh (client final edits, Nov 2026)
   Hero role icons, compact steps, split job heading, Why panel, Trust banner,
   three-button closing call to action.
   ========================================================================== */

/* Hero role cards: navy icon tile on the left, title-case label. */
.fmac-path {
    justify-content: flex-start;
    gap: 1rem;
}
.fmac-path-icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: var(--r-sm);
    background: var(--ink);
    color: var(--white);
}
.fmac-path-text {
    flex: 1;
}
.fmac-path-arrow {
    margin-left: auto;
    color: var(--ink);
}
.fmac-path-label {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.25;
}
.fmac-path-audience {
    font-size: 0.9rem;
}

/* Three simple steps: number, icon and text side by side. */
.fmac-steps3 li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
}
.fmac-steps3-top {
    flex: none;
    gap: 0.7rem;
    margin-bottom: 0;
    justify-content: flex-start;
}
.fmac-steps3-icon {
    width: 34px;
    height: 34px;
}
.fmac-steps3-body {
    min-width: 0;
}
.fmac-steps3 h3 {
    font-size: 1.15rem;
    margin-bottom: 0.2rem;
}
.fmac-steps3 p {
    font-size: 0.95rem;
    line-height: 1.45;
}

/* Heading row with a link on the right (Recent job openings). */
.fmac-band-head--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
    flex-wrap: wrap;
}
.fmac-band-head-link {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap-min);
    font-weight: 600;
    white-space: nowrap;
}

/* Why choose: one soft panel with dividers and icon tiles. */
.fmac-why4 {
    gap: 0;
    padding: 1.5rem 0.5rem;
    background: var(--navy-tint);
    border-radius: var(--r-lg);
}
.fmac-why4 li {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.5rem 1.25rem;
    background: none;
    border: 0;
    border-radius: 0;
}
.fmac-why4 li + li {
    border-left: 1px solid rgba(26, 34, 56, 0.15);
}
.fmac-why4-tile {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: var(--r-md);
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}
.fmac-why4 svg {
    margin-bottom: 0;
    color: var(--ink);
}
.fmac-why4 h3 {
    font-size: 1.15rem;
    margin-bottom: 0.2rem;
}
.fmac-why4 p {
    font-size: 0.95rem;
    line-height: 1.45;
}
@media (max-width: 960px) {
    .fmac-why4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 1rem;
    }
    .fmac-why4 li + li {
        border-left: 0;
    }
}
@media (max-width: 520px) {
    .fmac-why4 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Trust & Safety banner. */
.fmac-safety-band {
    padding-top: 0.5rem;
}
.fmac-trust-banner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.25rem 2rem;
    padding: 1.5rem 2rem;
    background: var(--navy-tint);
    border: 1px solid rgba(26, 34, 56, 0.12);
    border-radius: var(--r-lg);
}
.fmac-trust-title {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding-right: 2rem;
    border-right: 1px solid rgba(26, 34, 56, 0.2);
    color: var(--ink);
}
.fmac-trust-title h2 {
    font-size: clamp(1.5rem, 2.6vw, 1.9rem);
    margin: 0;
}
.fmac-trust-banner p {
    margin: 0;
    color: var(--ink-700);
    font-size: 0.97rem;
}
@media (max-width: 860px) {
    .fmac-trust-banner {
        grid-template-columns: minmax(0, 1fr);
        padding: 1.25rem;
    }
    .fmac-trust-title {
        padding-right: 0;
        border-right: 0;
    }
}

/* Closing call to action: three buttons with icons. */
.fmac-cta .fmac-cta-actions .fmac-btn {
    gap: 0.6rem;
}


/* Homepage refresh: fit text in the narrower card layouts. */
.fmac-path {
    min-height: 0;
    padding: 0.85rem 1rem;
    gap: 0.75rem;
}
.fmac-path-icon {
    width: 2.8rem;
    height: 2.8rem;
}
.fmac-path-icon svg {
    width: 24px;
    height: 24px;
}
.fmac-path-label {
    font-size: 1.02rem;
}
.fmac-path-arrow {
    width: 20px;
    height: 20px;
}

.fmac-steps3 li {
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1.1rem 1.1rem;
}
.fmac-steps3-top {
    gap: 0.5rem;
}
.fmac-steps3-top .fmac-steps3-num {
    width: 36px;
    height: 36px;
    font-size: 1rem;
}
.fmac-steps3-icon {
    width: 28px;
    height: 28px;
}

.fmac-why4 li {
    gap: 0.7rem;
    padding: 0.5rem 0.9rem;
}
.fmac-why4-tile {
    width: 2.7rem;
    height: 2.7rem;
}
.fmac-why4-tile svg {
    width: 24px;
    height: 24px;
}

/* Steps: number, icon and text are centred vertically in each card, so a
   short description does not leave a block of empty space under it. */
.fmac-steps3 li {
    align-items: center;
}
.fmac-steps3-top {
    margin-top: 0;
}
.fmac-steps3-body h3 {
    font-size: 1.1rem;
}
.fmac-steps3-body p {
    font-size: 0.92rem;
}


/* Footer on tablets and phones: let headings and links wrap inside their
   column instead of running off the edge. */
@media (max-width: 800px) {
    .fmac-footer-grid > * {
        min-width: 0;
    }
    .fmac-footer-col h2 {
        white-space: normal;
    }
    .fmac-footer-col a {
        overflow-wrap: anywhere;
    }
}
@media (max-width: 640px) {
    .fmac-footer-col:last-child {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ==========================================================================
   Trust & Safety page (client final edits, Nov 2026)
   ========================================================================== */

.fmac-underline {
    text-decoration: underline;
    text-decoration-color: var(--clay);
    text-decoration-thickness: 5px;
    text-underline-offset: 8px;
    text-decoration-skip-ink: none;
}

.fmac-trust-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    background: linear-gradient(120deg, var(--navy-tint) 0%, #F1F4FA 100%);
    border: 1px solid rgba(26, 34, 56, 0.1);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.fmac-trust-hero-text {
    max-width: 62ch;
}
.fmac-trust-hero-text h1 {
    margin: 0.4rem 0 0.9rem;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
}
.fmac-trust-hero-text p {
    margin: 0;
    color: var(--ink-700);
    font-size: 1.1rem;
}
.fmac-trust-hero-art {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(150px, 20vw, 250px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.65);
    color: var(--ink);
}
.fmac-trust-hero-art svg {
    width: 70%;
    height: 70%;
}

.fmac-safety-grid2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}
.fmac-safety-card2 {
    background: var(--white);
    border: 1.5px solid rgba(26, 34, 56, 0.25);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.fmac-safety-card2-head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    background: var(--navy-tint);
    color: var(--ink);
}
.fmac-safety-card2-head h2 {
    margin: 0;
    font-size: 1.5rem;
}
.fmac-safety-card2-body {
    padding: 1.25rem 1.5rem 1.5rem;
}
.fmac-safety-card2-body > p {
    margin: 0 0 1rem;
    color: var(--ink-700);
}
.fmac-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}
.fmac-checklist li {
    position: relative;
    padding-left: 2rem;
    color: var(--ink);
}
.fmac-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.18em;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: var(--sage);
}
.fmac-checklist li::after {
    content: "";
    position: absolute;
    left: 0.43rem;
    top: 0.38em;
    width: 0.38rem;
    height: 0.65rem;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(40deg);
}

.fmac-trust-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.fmac-trust-links a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-height: var(--tap-min);
    padding: 0.9rem 1.2rem;
    background: var(--white);
    border: 1.5px solid rgba(26, 34, 56, 0.25);
    border-radius: var(--r-md);
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}
.fmac-trust-links a:hover,
.fmac-trust-links a:focus-visible {
    border-color: var(--ink);
    background: var(--navy-tint);
    color: var(--ink);
}
.fmac-trust-links svg {
    flex: none;
}
.fmac-trust-links span {
    flex: 1;
}

@media (max-width: 860px) {
    .fmac-trust-hero {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
    .fmac-trust-hero-art {
        width: 120px;
    }
    .fmac-safety-grid2,
    .fmac-trust-links {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* Trust & Safety page: tighter vertical rhythm, and a back line that wraps
   cleanly on phones. */
.fmac-trust-page {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
}
.fmac-trust-back {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 0.4em;
    margin-top: 1rem;
}
.fmac-trust-back a {
    padding: 0.4rem 0;
}
@media (max-width: 860px) {
    .fmac-trust-page {
        padding-top: 1.25rem;
        padding-bottom: 1.5rem;
    }
    .fmac-trust-hero {
        padding: 1.25rem;
        gap: 1.25rem;
    }
}


/* Profile forms (caregiver, family, agency): each section gets a navy header
   bar, as in the client's profile mockups. Scoped by class so the job posting
   wizard's fieldsets keep their plain headings. */
.fmac-profile-form .fmac-fieldset {
    margin-bottom: 1.75rem;
}
.fmac-profile-form .fmac-fieldset legend {
    padding: 0.7rem 1.1rem;
    margin-bottom: 1.25rem;
    border: 0;
    border-radius: var(--r-sm);
    background: var(--ink);
    color: var(--white);
    font-size: 1.05rem;
}


/* ==========================================================================
   Pricing page (client final edits, Nov 2026): jump toggle, caregiver banner,
   FAQ. The plan cards and their copy are unchanged.
   ========================================================================== */

.fmac-plan-toggle {
    display: inline-flex;
    margin: 0 0 1.5rem;
    padding: 0.25rem;
    border: 1.5px solid var(--ink);
    border-radius: var(--r-full);
    background: var(--white);
}
.fmac-plan-toggle a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: var(--tap-min);
    padding: 0.4rem 1.4rem;
    border-radius: var(--r-full);
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}
.fmac-plan-toggle a.is-active {
    background: var(--ink);
    color: var(--white);
}
.fmac-plan-toggle a:hover,
.fmac-plan-toggle a:focus-visible {
    background: var(--navy-tint);
    color: var(--ink);
}
.fmac-plan-toggle a.is-active:hover,
.fmac-plan-toggle a.is-active:focus-visible {
    background: var(--ink-700);
    color: var(--white);
}

.fmac-plan-caregiver-banner {
    display: flex;
    align-items: center;
    gap: 1.25rem 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding: 1.25rem 1.75rem;
    background: var(--navy-tint);
    border: 1px solid rgba(26, 34, 56, 0.12);
    border-radius: var(--r-lg);
    color: var(--ink);
}
.fmac-plan-caregiver-banner svg {
    flex: none;
}
.fmac-plan-caregiver-banner > div {
    flex: 1 1 320px;
}
.fmac-plan-caregiver-banner h2 {
    margin: 0 0 0.2rem;
    font-size: 1.4rem;
}
.fmac-plan-caregiver-banner p {
    margin: 0;
    color: var(--ink-700);
}

.fmac-faq {
    margin-top: 2.5rem;
}
.fmac-faq h2 {
    margin: 0 0 1rem;
    font-size: 1.6rem;
}
.fmac-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.25rem;
    align-items: start;
}
.fmac-faq details {
    background: var(--white);
    border: 1.5px solid var(--line-strong);
    border-radius: var(--r-md);
}
.fmac-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--tap-min);
    padding: 0.7rem 1.1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.fmac-faq summary::-webkit-details-marker {
    display: none;
}
.fmac-faq summary::after {
    content: "";
    flex: none;
    width: 0.55rem;
    height: 0.55rem;
    border: solid var(--ink);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transition: transform 0.15s ease;
}
.fmac-faq details[open] summary::after {
    transform: rotate(-135deg);
}
.fmac-faq details p {
    margin: 0;
    padding: 0 1.1rem 1rem;
    color: var(--ink-700);
}
@media (max-width: 760px) {
    .fmac-faq-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .fmac-plan-caregiver-banner {
        padding: 1.1rem;
    }
}


/* Pricing: plan cards fill the row (three families, four agencies) instead of
   leaving the right side of a wide screen empty. */
@media (min-width: 1100px) {
    .fmac-plan-grid:not(.fmac-plan-grid-4) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* ==========================================================================
   Profile forms, round two (client mockup): each section is a bordered card
   under a navy bar with an icon; Location/Contact and Compliance/Additional
   sit side by side; header band with a building icon on cream.
   ========================================================================== */

.fmac-profile-banner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(100deg, var(--sand-2) 0%, var(--sand) 70%);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    color: var(--ink);
}
.fmac-profile-banner h1 {
    margin: 0.1rem 0 0.2rem;
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}
.fmac-profile-banner p {
    margin: 0;
    color: var(--ink-700);
}
.fmac-profile-banner-icon {
    flex: none;
    display: inline-flex;
}

.fmac-profile-form .fmac-fieldset {
    margin: 0 0 1.25rem;
    padding: 0 1.25rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    overflow: hidden;
    min-width: 0;
}
.fmac-profile-form .fmac-fieldset legend {
    /* The bar spans the whole card: cancel the fieldset's side padding. */
    box-sizing: border-box;
    width: calc(100% + 2.5rem);
    margin: 0 -1.25rem 1.1rem;
    padding: 0.7rem 1.25rem;
    border-radius: 0;
}
.fmac-legend-inner {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.fmac-legend-inner svg {
    flex: none;
}

.fmac-section-pair {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0 1.25rem;
}
@media (min-width: 960px) {
    .fmac-section-pair {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.fmac-branding {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.fmac-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 10rem;
    height: 7rem;
    background: var(--sand);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    color: var(--ink-400);
}
.fmac-branding .fmac-field {
    flex: 1 1 260px;
    margin: 0;
}

.fmac-about-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0 1.5rem;
}
@media (min-width: 960px) {
    .fmac-about-split {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    }
}

.fmac-btn-icon {
    gap: 0.6rem;
}

/* Narrower half-width cards: keep City / State / ZIP on one row. */
.fmac-section-pair .fmac-field-row > .fmac-field {
    flex: 1 1 8rem;
}


/* Public agency profile */
.fmac-agency-hero {
    align-items: center;
}
.fmac-logo-box img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.fmac-logo-box {
    overflow: hidden;
}
.fmac-logo-box-lg {
    flex: none;
    width: 9rem;
    height: 7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    color: var(--ink-400);
    padding: 0.5rem;
}
.fmac-agency-meta {
    color: var(--ink-700);
}
.fmac-agency-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}
@media (min-width: 960px) {
    .fmac-agency-grid {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    }
}
.fmac-agency-main,
.fmac-agency-side {
    display: grid;
    gap: 1.25rem;
}
.fmac-agency-contact p {
    margin: 0 0 0.9rem;
    overflow-wrap: anywhere;
}
.fmac-agency-contact p:last-child {
    margin-bottom: 0;
}

.fmac-agency-hero > div {
    min-width: 0;
}
.fmac-agency-hero .fmac-eyebrow,
.fmac-agency-hero h1 {
    overflow-wrap: anywhere;
}
@media (max-width: 640px) {
    .fmac-agency-hero {
        flex-direction: column;
        align-items: flex-start;
    }
    .fmac-logo-box-lg {
        width: 7.5rem;
        height: 5.5rem;
    }
}


/* Required-field asterisk (agency profile). Lighter on the navy section bars. */
.fmac-req {
    color: var(--danger);
    font-weight: 700;
}
.fmac-legend-inner .fmac-req {
    color: #FF9B8F;
}
.fmac-required-note {
    margin: 0 0 1rem;
}


/* ==========================================================================
   Job pages (client final edits, Nov 2026): detail, apply, matches
   ========================================================================== */

.fmac-backlink {
    margin: 0 0 1rem;
}
.fmac-backlink a {
    display: inline-block;
    padding: 0.4rem 0;
    font-weight: 600;
}

.fmac-job-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    padding: 1.5rem 1.75rem;
    background: linear-gradient(100deg, var(--sand-2) 0%, var(--sand) 70%);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}
.fmac-job-hero-main {
    min-width: 0;
    flex: 1 1 320px;
}
.fmac-job-hero h1 {
    margin: 0.2rem 0 0.6rem;
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    overflow-wrap: anywhere;
}
.fmac-job-poster,
.fmac-job-place {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.3rem;
    color: var(--ink-700);
}
.fmac-job-poster svg,
.fmac-job-place svg {
    flex: none;
    color: var(--ink);
}

.fmac-job-facts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.75rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}
.fmac-job-facts-row li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    background: var(--white);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    color: var(--ink);
}
.fmac-job-facts-row li > svg {
    flex: none;
}
.fmac-job-facts-row span {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-wrap: anywhere;
}
.fmac-job-facts-row strong {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-500);
}

.fmac-job-section {
    margin-bottom: 1.25rem;
}

.fmac-apply-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--sage-tint);
    border: 1px solid rgba(79, 111, 82, 0.35);
    border-radius: var(--r-md);
    color: var(--ink);
}
.fmac-apply-profile > svg {
    flex: none;
}
.fmac-apply-profile > div {
    flex: 1 1 260px;
}
.fmac-apply-profile p {
    margin: 0.1rem 0 0;
    color: var(--ink-700);
    font-size: 0.95rem;
}
.fmac-apply-profile a {
    font-weight: 600;
    white-space: nowrap;
}
.fmac-apply-track {
    margin-top: 0.75rem;
    text-align: center;
    font-style: normal;
}

/* Job matches: the reasons sit in a green "why" box with checkmarks. */
.fmac-why-match {
    margin-top: 0.9rem;
    padding: 0.8rem 1rem;
    background: var(--sage-tint);
    border: 1px solid rgba(79, 111, 82, 0.3);
    border-radius: var(--r-md);
}
.fmac-why-match h4 {
    margin: 0 0 0.4rem;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--sage);
}
.fmac-why-match .fmac-match-reasons {
    margin: 0;
}
.fmac-why-match .fmac-match-reasons li {
    padding-left: 1.5rem;
    font-size: 0.92rem;
    color: var(--ink);
}
.fmac-why-match .fmac-match-reasons li::before {
    top: 0.3em;
    left: 0;
    width: 1rem;
    height: 1rem;
    background: var(--sage);
    border-radius: 50%;
}
.fmac-why-match .fmac-match-reasons li::after {
    content: "";
    position: absolute;
    left: 0.33rem;
    top: 0.45em;
    width: 0.28rem;
    height: 0.5rem;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(40deg);
}
@media (max-width: 640px) {
    .fmac-job-hero {
        padding: 1.1rem;
    }
}


/* ==========================================================================
   Registration (client final edits, Nov 2026): banner with three perks, a
   step indicator, and a roomier two-column form. Shared by all three roles.
   ========================================================================== */

.fmac-reg {
    /* Same 1440px column as the nav, footer and home page. It was 880px, which
       left the form looking like a narrow contact-us box (client, 2026-11-22). */
    max-width: 1440px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3.5rem;
}
.fmac-reg-banner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    background: linear-gradient(110deg, var(--navy-tint) 0%, #F1F4FA 100%);
    border: 1px solid rgba(26, 34, 56, 0.1);
    border-radius: var(--r-lg);
}
.fmac-reg-banner h1 {
    margin: 0.2rem 0 0.5rem;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.fmac-reg-banner p {
    margin: 0;
    max-width: 58ch;
    color: var(--ink-700);
}
.fmac-reg-perks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.75rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.fmac-reg-perks li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--ink);
}
.fmac-reg-perks svg {
    flex: none;
}
.fmac-reg-perks span {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.fmac-reg-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.6rem 1.25rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
    color: var(--ink-500);
    font-weight: 600;
}
.fmac-reg-steps li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.fmac-reg-steps li + li::before {
    content: "";
    width: 2.5rem;
    height: 1px;
    background: var(--line-strong);
}
.fmac-reg-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--sand-2);
    border: 1px solid var(--line-strong);
    font-size: 0.9rem;
}
.fmac-reg-steps .is-current {
    color: var(--ink);
}
.fmac-reg-steps .is-current .fmac-reg-step-num {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
}

.fmac-reg-card {
    padding: clamp(1.25rem, 3vw, 2rem);
}
.fmac-pw-rules {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 1.25rem;
    padding: 0.8rem 1rem;
    background: var(--sage-tint);
    border: 1px solid rgba(79, 111, 82, 0.3);
    border-radius: var(--r-md);
    color: var(--ink);
    font-size: 0.95rem;
}
.fmac-pw-rules svg {
    flex: none;
    color: var(--sage);
}
.fmac-reg-consent {
    margin-bottom: 1.25rem;
}
.fmac-reg-login {
    margin: 1.25rem 0 0;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
    text-align: center;
    color: var(--ink-700);
}

/* Wide screens: a 6-column grid so every row fills the card. The name pair and
   the email share the top row (4 + 2 columns); every other pair (city and
   state, password and confirmation) splits the row in halves. */
@media (min-width: 1000px) {
    .fmac-reg-form {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 1.25rem;
        align-items: start;
    }
    .fmac-reg-form .fmac-field {
        margin-bottom: 0;
    }
    .fmac-reg-form .fmac-field-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
        grid-column: 1 / -1;
    }
    .fmac-reg-form .fmac-reg-name-row {
        grid-column: span 4;
    }
    .fmac-reg-form > .fmac-field {
        grid-column: span 2;
    }
    .fmac-reg-form > .errorlist,
    .fmac-reg-form .fmac-pw-rules,
    .fmac-reg-form .fmac-reg-consent {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }
    .fmac-reg-form > .fmac-btn {
        grid-column: 1 / -1;
        justify-self: center;
        width: 100%;
        max-width: 460px;
    }
}

@media (max-width: 640px) {
    .fmac-reg-steps {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 0.5rem;
    }
    .fmac-reg-steps li + li::before {
        display: none;
    }
}


/* ==========================================================================
   How it works (client final edits, Nov 2026): three role cards with a tinted
   header and numbered steps, plus a trust banner.
   ========================================================================== */

.fmac-how-head {
    max-width: none;
    padding: 1.5rem 1.75rem;
    background: linear-gradient(100deg, var(--sand-2) 0%, var(--sand) 70%);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}
.fmac-roles .fmac-role-card {
    padding: 0;
    overflow: hidden;
    background: var(--white);
    border: 1.5px solid rgba(26, 34, 56, 0.2);
    border-radius: var(--r-lg);
    display: flex;
    flex-direction: column;
}
.fmac-role-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    color: var(--ink);
}
.fmac-role-head h2 {
    margin: 0 0 0.15rem;
    font-size: 1.5rem;
}
.fmac-role-head p {
    margin: 0;
    color: var(--ink-700);
    font-size: 0.95rem;
    line-height: 1.4;
}
.fmac-role-head svg {
    flex: none;
}
.fmac-role-card--family .fmac-role-head { background: var(--navy-tint); }
.fmac-role-card--agency .fmac-role-head { background: var(--sage-tint); }
.fmac-role-card--caregiver .fmac-role-head { background: var(--clay-tint); }

.fmac-info .fmac-role-card .fmac-role-steps {
    flex: 1;
    list-style: none;
    counter-reset: step;
    margin: 0;
    padding: 0.5rem 1.5rem 0;
}
.fmac-role-steps li {
    counter-increment: step;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}
.fmac-role-steps li:last-child {
    border-bottom: 0;
}
.fmac-role-steps li::before {
    content: counter(step);
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    background: var(--ink);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
}
.fmac-info .fmac-role-card .fmac-btn {
    margin: 1rem 1.5rem 1.5rem;
    width: calc(100% - 3rem);
}

.fmac-how-trust {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: var(--navy-tint);
    border: 1px solid rgba(26, 34, 56, 0.12);
    border-radius: var(--r-lg);
    color: var(--ink);
}
.fmac-how-trust svg {
    flex: none;
}
.fmac-how-trust p {
    flex: 1;
    margin: 0;
}
.fmac-how-trust-arrow {
    display: inline-flex;
}


/* Job listings: filter bar and a card grid (client final edits, Nov 2026). */
.fmac-job-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) auto;
    gap: 0.75rem 1rem;
    align-items: end;
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-lg);
}
.fmac-job-filters .fmac-field {
    margin: 0;
}
.fmac-job-filter-actions {
    display: flex;
    gap: 0.6rem;
}
.fmac-job-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}
.fmac-job-by {
    margin: -0.4rem 0 0;
}
@media (max-width: 640px) {
    .fmac-job-filters {
        grid-template-columns: minmax(0, 1fr);
    }
    .fmac-job-filter-actions .fmac-btn {
        flex: 1;
    }
}

.fmac-form.fmac-job-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 0.75rem 1rem;
    align-items: end;
}
@media (max-width: 900px) {
    .fmac-form.fmac-job-filters {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* ==========================================================================
   Town picker (caregiver profile): search box + chips over the checkbox list.
   static/js/town_picker.js hides the checkboxes and drives them.
   ========================================================================== */
.fmac-town-ui {
    display: grid;
    gap: 0.75rem;
}
.fmac-town-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.fmac-town-chips:empty {
    display: none;
}
.fmac-town-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.35rem 0.25rem 0.85rem;
    background: var(--navy-tint);
    border: 1px solid rgba(26, 34, 56, 0.15);
    border-radius: var(--r-full);
    color: var(--ink);
    font-weight: 500;
}
.fmac-town-chip button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink-700);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}
.fmac-town-chip button:hover,
.fmac-town-chip button:focus-visible {
    background: var(--white);
    color: var(--clay);
}
.fmac-town-search {
    position: relative;
}
.fmac-town-list {
    position: absolute;
    z-index: 5;
    left: 0;
    right: 0;
    top: calc(100% + 0.25rem);
    max-height: 16rem;
    margin: 0;
    padding: 0.3rem;
    overflow-y: auto;
    list-style: none;
    background: var(--white);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
}
.fmac-town-list li {
    padding: 0.55rem 0.8rem;
    border-radius: var(--r-sm);
    cursor: pointer;
}
.fmac-town-list li.is-active,
.fmac-town-list li:hover {
    background: var(--navy-tint);
}
.fmac-town-list .fmac-town-none {
    color: var(--ink-500);
    cursor: default;
}
.fmac-town-list .fmac-town-none:hover {
    background: transparent;
}
.fmac-town-count {
    margin: 0;
    color: var(--ink-500);
    font-size: 0.9rem;
}


/* ==========================================================================
   Caregiver photo (client, 2026-11-22). The woman is a cutout (no background)
   sitting in the banner and running off its bottom edge, not a framed
   rectangle. Two transparent images: static/images/caregiver-hero.webp
   (registration banner) and static/images/caregiver-pricing.webp (pricing
   card). They can be the same person or two different people. Each should be
   a cutout with the head near the top and the body running off the bottom.
   ========================================================================== */
.fmac-reg-photo {
    display: none;
}
@media (min-width: 900px) {
    .fmac-reg-banner--photo {
        position: relative;
        overflow: hidden;
        display: grid;
        min-height: 320px;
        grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
        gap: 2rem;
        align-items: stretch;
        flex-direction: row;
    }
    .fmac-reg-banner-main {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        justify-content: center;
    }
    .fmac-reg-photo {
        position: absolute;
        z-index: 1;
        display: block;
        /* Flush to the banner's right and bottom edges: the cutout is
           cropped by its own frame there, so it should meet the banner edge. */
        right: 0;
        bottom: 0;
        height: calc(100% - 0.75rem);
        width: auto;
        max-width: 620px;
        object-fit: contain;
        object-position: bottom right;
        /* Soften the cropped left edge (her sleeve) so it does not read as a hard line. */
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%);
        mask-image: linear-gradient(to right, transparent 0, #000 7%);
    }
}
.fmac-plan-caregiver-banner {
    position: relative;
    overflow: hidden;
}
.fmac-plan-caregiver-banner .fmac-plan-caregiver-photo {
    flex: none;
    align-self: flex-end;
    width: auto;
    height: 10rem;
    /* Touch the card's left and bottom edges, like the mockup. */
    margin: -1.25rem 0 -1.25rem -1.25rem;
    object-fit: contain;
    object-position: bottom left;
}
@media (max-width: 640px) {
    .fmac-plan-caregiver-banner .fmac-plan-caregiver-photo {
        height: 6rem;
    }
}


/* "Other" under each skill category on the search page (static/js/other_skill_filter.js).
   The chip is the last one in its category's row, so it picks up the skill chips'
   look from .fmac-check-grid and only needs to look optional (dashed) until ticked. */
.fmac-other-chip {
    border-style: dashed !important;
    color: var(--ink-700);
}
.fmac-other-chip[hidden] {
    display: none !important;
}
.fmac-other-chip:has(input:checked) {
    border-style: solid !important;
    border-color: var(--ink) !important;
    color: var(--ink);
}
.fmac-other-box {
    margin-top: 0.5rem;
}
.fmac-other-box[hidden] {
    display: none;
}
.fmac-other-box label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    color: var(--ink-500);
}

/* Skills section of the caregiver search: always open on wider screens (the heading is a
   plain caption); on phones it is a tap-to-open row with a "2 selected" count. */
.fmac-filter-field .fmac-skills-details > summary {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    list-style: none;
    cursor: default;
}
.fmac-filter-field .fmac-skills-details > summary::-webkit-details-marker {
    display: none;
}
.fmac-skills-count {
    color: var(--clay);
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}
.fmac-filter-field .fmac-skills-details.is-collapsible > summary {
    justify-content: space-between;
    align-items: center;
    min-height: var(--tap-min);
    margin-bottom: 0;
    padding: 0.2rem 0;
    cursor: pointer;
}
.fmac-filter-field .fmac-skills-details.is-collapsible > summary::after {
    content: "";
    flex: none;
    width: 0.6rem;
    height: 0.6rem;
    margin-left: auto;
    border-right: 2px solid var(--ink-500);
    border-bottom: 2px solid var(--ink-500);
    transform: rotate(45deg);
    transition: transform 0.15s ease;
}
.fmac-filter-field .fmac-skills-details.is-collapsible[open] > summary::after {
    transform: rotate(-135deg);
}
.fmac-filter-field .fmac-skills-details.is-collapsible > summary .fmac-skills-count {
    margin-left: auto;
    margin-right: 0.6rem;
}


/* Profile form sections on phones: the navy bar becomes a tap-to-open heading
   (static/js/profile_sections.js). Without the script, or on wider screens, all
   sections are simply open. */
.fmac-fieldset.is-collapsible > legend {
    position: relative;
    cursor: pointer;
    padding-right: 3rem;
    -webkit-tap-highlight-color: transparent;
}
.fmac-fieldset.is-collapsible > legend:focus-visible {
    outline: 2px solid var(--clay);
    outline-offset: -3px;
}
.fmac-fieldset.is-collapsible > legend::after {
    content: "";
    position: absolute;
    right: 1.25rem;
    top: 50%;
    width: 0.6rem;
    height: 0.6rem;
    margin-top: -0.55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-135deg);
    transition: transform 0.15s ease;
}
.fmac-fieldset.is-collapsible.is-collapsed > legend::after {
    margin-top: -0.35rem;
    transform: rotate(45deg);
}
.fmac-fieldset.is-collapsed > *:not(legend) {
    display: none;
}
/* A collapsed card is just its bar: drop the empty body padding under it. */
.fmac-profile-form .fmac-fieldset.is-collapsed {
    padding-bottom: 0;
}
.fmac-profile-form .fmac-fieldset.is-collapsed > legend {
    margin-bottom: 0;
}

/* "Required" tag on a collapsed profile section that still needs something. It sits
   in the title's row (pushed to the right, before the chevron), never over the title. */
.fmac-fieldset.is-collapsible > legend .fmac-section-flag {
    flex: none;
    margin-left: auto;
    padding: 0.15rem 0.55rem;
    border-radius: var(--r-full);
    background: var(--clay-tint);
    color: var(--clay-600);
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
/* A section whose title already carries the red asterisk pushes that to the right
   instead, so the tag just follows it. */
.fmac-fieldset.is-collapsible > legend .fmac-req ~ .fmac-section-flag {
    margin-left: 0.5rem;
}
/* The tag already says "Required", so the red asterisk beside the title is redundant. */
.fmac-fieldset.is-collapsible > legend:has(.fmac-section-flag) .fmac-req {
    display: none;
}
.fmac-fieldset.is-collapsible > legend .fmac-req ~ .fmac-section-flag {
    margin-left: auto;
}

/* "Other" chip + box under a filter dropdown (care type, language). */
.fmac-other-under {
    margin-top: 0.5rem;
}

/* Failed profile save: a red summary at the top of the form (profiles/_form_error_summary.html). */
.fmac-error-summary {
    margin: 0 0 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--danger-tint);
    border: 1.5px solid var(--danger);
    border-radius: var(--r-md);
    color: var(--ink);
    scroll-margin-top: 6rem;
}
.fmac-error-summary:focus {
    outline: 2px solid var(--danger);
    outline-offset: 2px;
}
.fmac-error-summary strong {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--danger);
}
.fmac-error-summary ul {
    margin: 0;
    padding-left: 1.2rem;
}
.fmac-error-summary a {
    color: var(--danger);
    font-weight: 600;
}
.fmac-error-summary-note {
    margin: 0.6rem 0 0;
    font-size: 0.92rem;
    color: var(--ink-700);
}
