/* ─── September redesign ──────────────────────────────────────────────────────
   Figma: Website (node 198-6484).

   Two scopes, and the difference between them matters:

   .hsm-rd-chrome  is on EVERY front-end page. It carries the header, the
                   footer, and the handful of rules that get the old masthead
                   and colophon out of their way. Nothing else.

   .hsm-redesign   is on the fully redesigned pages only — Home, How It Works,
                   the two search pages, the log-in. It carries the page
                   resets, which would rewrite the ~10k lines of accumulated
                   theme CSS that every legacy page still depends on.

   That split is the whole reason a legacy page can wear the new chrome and
   keep its white body exactly as it was. Anything added below has to pick a
   side: a rule that a legacy page must not see belongs under .hsm-redesign.

   Every selector in this file is prefixed .hsm-rd- or .hsm-redesign — there
   is not one bare element rule — which is what makes it safe to load site
   wide. Keep it that way.
   ────────────────────────────────────────────────────────────────────────── */

/* The design tokens sit on :root rather than on a scope class, because the
   header and footer now render on pages that have neither class. Custom
   properties paint nothing on their own and every name here is --rd- prefixed,
   so this is inert everywhere it is not read. */
:root {
    /* Brand green, from the Figma library's actual fill values
       ("Brand/dark-green/dark-green", #04651e) — not the message centre's
       #0a481d, which is close but a different colour and was visibly off
       next to the Figma comp (2026-08-31). --rd-green-dark is a plain 30%
       darken of it for the hover state; Figma has no hover variant to match. */
    --rd-green: #04651e;
    --rd-green-dark: #034715;

    /* Figma "Text/color-text-error", which is what every heading in the file
       is actually painted with — sampled straight off the exports to be sure
       (2026-09-01). Was #ce1126, the flag red from the logo, which is a
       different and noticeably brighter colour. Every use of this token is a
       text colour, so nothing that wanted the logo's red loses it. */
    --rd-red: #bf0f1c;
    --rd-pink: #d5078c;
    --rd-cream: #fdf9ec;  /* Brand/Gold/gold-100 — was #fdf8e8, a hex slip that
                              left a visible seam wherever a cream fill sits
                              directly against the hero gradient (2026-08-31) */

    --rd-gold: #e0c23f;          /* Brand/color-brand-gold — filled review stars */
    --rd-gold-300: #f7eec5;      /* Brand/Gold/gold-300 — the timeline rule */
    --rd-bright-green: #97c006;  /* Brand/bright-green — timeline dots */

    --rd-ink: #0a0a0a;   /* Figma "Text/color-text" — was #1a1a1a */
    --rd-body: #444;
    --rd-text-secondary: #535353;  /* Figma "Text/color-text-secondary" */
    --rd-muted: #6c6c6c;
    --rd-rule: #e7e7e7;
    --rd-neutral-200: #cecece;   /* empty review stars */
    --rd-white: #fff;

    /* Arial is the site's font — see the font-change-cabin-to-arial branch,
       and every text style in the Figma file, which is set in Arial. The
       system faces used to come first in this stack, which meant Arial
       never actually rendered on any OS that ships its own UI font (i.e.
       all of them) — the opposite of what the comment above them claimed.
       Arial leads now; Helvetica and the system stack are what a visitor
       without Arial installed sees instead. */
    --rd-font: Arial, Helvetica, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    /* The content column inside the 1440 frame really is 1360: every section
       in the Figma file is a 1360-wide frame at x=40. This said 1280, which
       left every page 80px narrower than drawn (2026-09-01).

       1360 + 2 × 24 gutter = 1408, centred in 1440, puts content at x=40 —
       exactly where Figma has it — while the gutter still protects the copy
       once the viewport drops below 1408. */
    --rd-shell: 1360px;
    --rd-gutter: 24px;

    /* Figma "Drop Shadow/400" — the lift under every hero photograph. */
    --rd-shadow-400:
        0 4px 4px -4px rgba(12, 12, 13, 0.05),
        0 16px 32px -4px rgba(12, 12, 13, 0.1);
}

/* ─── Old chrome, hidden ──────────────────────────────────────────────────
   header.php and footer.php still print the legacy masthead and colophon, and
   they are hidden here rather than deleted from those files.

   That is deliberate. The masthead carries #site-navigation, the three
   wp_nav_menu blocks and .js-primary-menu-toggle, and the theme's script
   bundle reaches for those by id — deleting the markup turns a restyle into a
   hunt for every script that assumed it was there. Hiding it makes the whole
   rollout a one-line CSS revert, which is what it was on the page-by-page
   version of this and what it should stay.

   !important because the parent theme sets display on #masthead from a later
   stylesheet; this is a deliberate override of it, not a specificity
   accident. */

.hsm-rd-chrome #masthead,
.hsm-rd-chrome .site-header,
.hsm-rd-chrome #colophon,
.hsm-rd-chrome .site-footer {
    display: none !important;
}

/* The theme reserves 93px above the fold for that masthead, fixed at desktop
   widths (style.css, "min-width: 1200px"), so hiding it above isn't enough —
   without this the new header renders 93px down the page, into a band of
   plain white nobody asked for. !important for the same reason as above:
   matching specificity against a later, equally-important theme rule. */
body.hsm-rd-chrome {
    padding-top: 0 !important;
}

/* ─── The chrome on a legacy page ─────────────────────────────────────────
   A legacy page has .hsm-rd-chrome but NOT .hsm-redesign, so it keeps every
   theme rule inside its content — which is the point, and also the problem:
   those rules reach the header and footer too. style.css underlines links in
   content, gives images borders and floats, and puts list styling on nav
   markup. None of that is neutralised by a scope the legacy page does not
   have, so it is neutralised here, on the chrome itself.

   Written as .hsm-rd-header / .hsm-rd-footer rather than under a body scope
   so it applies identically on both kinds of page and there is only ever one
   answer to "what does the header look like". */

.hsm-rd-header,
.hsm-rd-header *,
.hsm-rd-header *::before,
.hsm-rd-header *::after,
.hsm-rd-footer,
.hsm-rd-footer *,
.hsm-rd-footer *::before,
.hsm-rd-footer *::after {
    box-sizing: border-box;
}

.hsm-rd-header a,
.hsm-rd-footer a {
    text-decoration: none;
    box-shadow: none;
}

/* The theme's content img rules — border, padding, float, max-height — would
   otherwise land on the logo lockup and the Facebook glyph. */
.hsm-rd-header img,
.hsm-rd-footer img,
.hsm-rd-header svg,
.hsm-rd-footer svg {
    border: 0;
    padding: 0;
    float: none;
    max-width: 100%;
    box-shadow: none;
}

.hsm-rd-header p,
.hsm-rd-footer p {
    margin: 0;
}

/* The masthead is display:none, but #page and #main still wrap the content
   below it and the theme gives them the top spacing that assumed a header was
   there. The chrome supplies its own, so that space is now a gap between the
   new header and the page. */
.hsm-rd-chrome #page {
    padding-top: 0;
    margin-top: 0;
}

/* ─── Resets, scoped ──────────────────────────────────────────────────────
   The parent theme puts a max-width and centring on generic containers and
   underlines every link in content. Both fight full-bleed sections, so they
   are neutralised here rather than worked around in each one. */

.hsm-redesign #main,
.hsm-redesign #primary,
.hsm-redesign .site-main {
    max-width: none;
    width: auto;
    margin: 0;
    padding: 0;
    float: none;
}

.hsm-redesign a {
    text-decoration: none;
}

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

/* No image may be wider than what contains it.
   Not decoration — a load-bearing rule. A grid track sized 1fr cannot shrink
   below its content's min-content width, and for an <img> that is its
   intrinsic pixel width. A 3000px upload in the blog grid therefore forced a
   3000px column and a 10,000px-tall page on a phone. minmax(0, 1fr) on those
   tracks is the real fix; this stops the next one from ever getting that far. */
.hsm-rd-main img {
    max-width: 100%;
}

/* ─── Shared shell ────────────────────────────────────────────────────────── */

.hsm-rd-shell {
    width: 100%;
    max-width: calc(var(--rd-shell) + var(--rd-gutter) * 2);
    margin: 0 auto;
    padding-left: var(--rd-gutter);
    padding-right: var(--rd-gutter);
}

/* ─── Buttons ─────────────────────────────────────────────────────────────── */

/* Figma's Button component, checked against three instances that agree: the
   nav's "Join Now" at 107 × 44, the Final CTA's "Become a Member" at 194 × 44
   and the newsletter's full-width "Subscribe" at 44 tall. All of them are
   12px of padding around Arial Regular 20/1 — so 12 + 20 + 12 = 44 — on an
   8px radius.

   The 24px of side padding this had before is the reason every button on the
   redesign came out wider than drawn, and 16px semibold is a different type
   style from the 20px regular in the file (2026-09-01). */
.hsm-rd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* No border on the base rule. Figma's stroke sits inside the 44px box,
       so a 1px CSS border on top of 12 + 20 + 12 made every button 46 tall.
       --ghost, which needs a visible one, gives back the 2px in padding. */
    padding: 12px;
    border: 0;
    border-radius: 8px;
    font-family: var(--rd-font);
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.hsm-rd-btn--primary {
    background: var(--rd-green);
    color: var(--rd-white);
}

.hsm-rd-btn--primary:hover,
.hsm-rd-btn--primary:focus {
    background: var(--rd-green-dark);
    color: var(--rd-white);
}

/* Gold with the default text colour — the header's "Join Now" (Asana:
   Update "Join Now" CTA button to Gold background and default text color). */
.hsm-rd-btn--gold {
    background: var(--rd-gold);
    color: var(--rd-ink);
}

.hsm-rd-btn--gold:hover,
.hsm-rd-btn--gold:focus {
    background: #c9ab2c;
    color: var(--rd-ink);
}

.hsm-rd-btn--ghost {
    background: transparent;
    /* 11 + 1 border = the 12 the filled variant gets from padding alone, so
       both variants come out the same 44px tall and sit on one baseline. */
    padding: 11px;
    border: 1px solid var(--rd-green);
    color: var(--rd-green);
}

.hsm-rd-btn--ghost:hover,
.hsm-rd-btn--ghost:focus {
    background: var(--rd-green);
    color: var(--rd-white);
}

/* ─── Header ──────────────────────────────────────────────────────────────
   Figma node 1209-9110: 120px tall, logo left, five links centred, account
   controls right.

   The component itself (1209-9110) has no fill at all — in Figma it floats
   transparently over the hero photo/gradient beneath it, which is why the
   band it sits on reads as cream, not white. Corrected 2026-08-31; this used
   to say "white" here and paint one, which is what it looked like without
   the hero behind it to compare against. No border either, for the same
   reason: nothing separates the two layers in the design.

   The three groups are a grid rather than flex with margin:auto, so the nav
   is centred on the HEADER and not on the space left over between the logo
   and the buttons. Those two sides are different widths — and the right one
   changes width when someone logs in — which under flex would shift the nav
   sideways depending on who is looking at it. */

.hsm-rd-header {
    background: var(--rd-cream);
    /* Pinned to the top at every width, but it slides out of view while you
       scroll down and comes back as soon as you scroll up (.is-hidden is set
       by the script at the end of site-header.php). Sticky rather than fixed,
       so it keeps its own space in the flow and is still the positioned parent
       the mobile dropdown hangs from. */
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform .25s ease;
}
.hsm-rd-header.is-hidden {
    transform: translateY(-100%);
}
/* The old theme sets html and body to height:100%, so <body> is only one
   screen tall. A sticky element can't leave its parent, so the header ran out
   of body after one screen and scrolled away for good. Let the body be as tall
   as the page. */
body:has(> .hsm-rd-header) {
    height: auto !important;
    min-height: 100%;
}
/* Logged-in admins: below WordPress's admin bar (32px on desktop), and hidden
   far enough to clear it as well. */
.admin-bar .hsm-rd-header {
    top: 32px;
}
.admin-bar .hsm-rd-header.is-hidden {
    transform: translateY(calc(-100% - 32px));
}
@media (prefers-reduced-motion: reduce) {
    .hsm-rd-header { transition: none; }
}

/* Logo, nav, then the account controls filling what is left, 40px apart —
   which is exactly how the comp adds up: 412 + 40 + 544 + 40 + 324 = 1360.
   The nav therefore sits immediately after the logo at x=492 rather than
   being centred on the header.

   This still answers the reason it was centred before. The nav's position now
   depends only on the logo, which never changes width, so signing in and
   swapping "Log In" for "Log Out" cannot shift it — the account column
   absorbs that on its own because its contents are ranged right.

   1fr on the first column was also squeezing the logo to 386px, since it and
   the account column split the leftover space evenly; auto lets it be the
   412 it is drawn at. */
.hsm-rd-header__inner {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    height: 120px;
    max-width: calc(var(--rd-shell) + var(--rd-gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--rd-gutter);
}

/* 411px wide overall, matching the single hsm-logo instance in Figma
   (1406-26861;83:2198): the mark's ink is 61 × 43 and the wordmark's 343 × 32,
   7px apart. Both are SVGs exported from Figma (83-2041, 83-2137) and
   cropped to their ink, so unlike the PNGs they replaced there is no
   transparent padding to account for — the 7px is a real gap. Height auto
   keeps each file's own ratio. */
.hsm-rd-header__logo {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    justify-self: start;
}

.hsm-rd-header__mark {
    width: 61px;
    height: auto;
    flex: 0 0 auto;
}

.hsm-rd-header__wordmark {
    width: 343px;
    height: auto;
}

.hsm-rd-header__nav {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-self: start;
}

/* Body/Base, 18px — the comp's "How It Works" measures 107px wide, which is
   Arial 18 and not the 16 this had. */
.hsm-rd-header__link {
    color: var(--rd-green);
    font-family: var(--rd-font);
    font-size: 18px;
    line-height: 1.4;
    white-space: nowrap;
}

.hsm-rd-header__link:hover,
.hsm-rd-header__link:focus,
.hsm-rd-header__link.is-current {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hsm-rd-header__account {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-self: end;
}

.hsm-rd-header__account-link {
    color: var(--rd-green);
    font-family: var(--rd-font);
    font-size: 18px;
    white-space: nowrap;
}

.hsm-rd-header__account-link:hover,
.hsm-rd-header__account-link:focus {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* The member's profile picture, right of "Log Out" (Figma 1286-22025): a
   32px circle. Shared with the dashboard's top bar. */
.hsm-rd-avatar {
    display: inline-flex;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
}

.hsm-rd-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hsm-rd-avatar:focus-visible {
    outline: 2px solid var(--rd-green);
    outline-offset: 2px;
}

.hsm-rd-header__avatar--narrow {
    display: none;
}

/* ─── Header, phone ───────────────────────────────────────────────────────
   The nav collapses behind a checkbox toggle — no JavaScript, so it works on
   the first paint rather than after the theme's script bundle arrives.

   1180px, not 782px: the five links plus the wordmark plus the account
   controls run out of room well before the usual tablet breakpoint. Between
   1181px and 1320px the full-size logo still does not fit, so it and the gaps
   shrink (block below the phone rules). */

.hsm-rd-header__toggle-input,
.hsm-rd-header__toggle {
    display: none;
}

/* Desktop: the wrapper is transparent to layout, so the nav and the account
   controls stay direct grid children of the bar. */
.hsm-rd-header__panel {
    display: contents;
}

@media (max-width: 1180px) {
    /* Pinned to the top of the screen while the page scrolls. Sticky rather
       than fixed so it still takes its own space in the flow (no content
       jumping under it) and is still the positioned parent the dropdown panel
       hangs from. */

    .hsm-rd-header__inner {
        grid-template-columns: 1fr auto;
        height: 84px;
    }

    /* Logged in: logo, hamburger, then the profile picture 16px after it. */
    .hsm-rd-header__inner:has(> .hsm-rd-header__avatar--narrow) {
        grid-template-columns: 1fr auto auto;
        column-gap: 16px;
    }

    .hsm-rd-header__avatar--narrow {
        display: inline-flex;
    }

    .hsm-rd-header__avatar--wide {
        display: none;
    }

    /* The hamburger alone, no "Menu" beside it (Asana: [Navigation] Remove
       `Menu` label from mobile navigation). */
    .hsm-rd-header__toggle {
        display: flex;
        width: 44px;
        height: 44px;
        padding: 10px;
        justify-self: end;
        cursor: pointer;
        user-select: none;
    }

    .hsm-rd-header__bars {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 100%;
    }

    .hsm-rd-header__bars span {
        display: block;
        height: 2px;
        background: var(--rd-green);
        border-radius: 2px;
    }

    .hsm-rd-header__logo {
        gap: 5px;
    }

    .hsm-rd-header__wordmark {
        width: 215px;
    }

    .hsm-rd-header__mark {
        width: 40px;
        height: auto;
    }

    /* One panel holding both groups, so its height is whatever its contents
       need — no offset to compute, and nothing to get wrong when a nav link
       wraps onto a second line. */
    .hsm-rd-header__panel {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        z-index: 100;
        background: var(--rd-cream);   /* same as the header bar it drops from */
        border-bottom: 1px solid var(--rd-rule);
        padding: 8px 0 20px;
    }

    .hsm-rd-header__toggle-input:checked ~ .hsm-rd-header__panel {
        display: block;
    }

    .hsm-rd-header__nav,
    .hsm-rd-header__account {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        /* Both carry justify-self for the desktop grid (center and end).
           justify-self is not only a grid property — CSS Box Alignment
           defines it for block-level boxes too, and Chromium implements
           that — so inside the dropdown panel it shrink-wrapped the nav to
           its widest link and centred it, leaving the menu floating in the
           middle of the screen instead of aligned to the gutter. */
        justify-self: stretch;
    }

    .hsm-rd-header__link {
        padding: 12px var(--rd-gutter);
        font-size: 17px;
    }

    .hsm-rd-header__account {
        gap: 12px;
        padding: 12px var(--rd-gutter) 0;
    }

    .hsm-rd-header__account-link {
        padding: 4px 0;
    }

    .hsm-rd-header__account .hsm-rd-btn {
        width: 100%;
    }
}

/* On a phone the bar is 56px and cream, not 84px and white (Figma Homepage -
   Mobile → Dashboard Main Navigation, 1406-26099). Cream because the hero
   directly beneath it is cream: on white the bar reads as a separate strip
   sitting on top of the page rather than part of it. */
@media (max-width: 700px) {
    .hsm-rd-header,
    .hsm-rd-header__panel {
        background: var(--rd-cream);
    }

    .hsm-rd-header {
        border-bottom: 0;
    }

    .hsm-rd-header__inner {
        height: 56px;
    }

    .hsm-rd-header__logo {
        gap: 4px;
    }

    .hsm-rd-header__mark {
        width: 30px;
        height: auto;
    }

    .hsm-rd-header__wordmark {
        width: 170px;
    }

    .hsm-rd-header__toggle {
        width: 36px;
        height: 36px;
        padding: 8px;
    }

    .hsm-rd-header__link {
        padding: 10px var(--rd-gutter);
    }
}


/* ─── Home hero ───────────────────────────────────────────────────────────
   Figma node 1196-5441. Headline over the papel picado backdrop, then the
   photo mosaic.

   The backdrop is the papel picado street photograph washed almost entirely
   out. Measured off the Figma export rather than guessed: the photo is
   invisible at the very top of the frame, rises to about 17% opacity around
   three-quarters of the way down, and is gone again by the foot, while the
   colour it sits on drifts from cream to the near-white the Problem section
   below starts on. Both halves of that — the wash colour and the amount of
   photo let through — are one gradient layer over the image, since a gradient
   stop carries its own alpha.

   The photo rides on a pseudo-element rather than on the section itself,
   because the section is taller than the comp's frame — the mosaic sits
   inside it here but overflows the frame in Figma. Sizing the photo `cover`
   against that extra height magnified it until the flags were off-frame and
   only the building walls showed.

   Registration is the fiddly part. Figma's 836px frame starts at the top of
   the PAGE and the 120px nav floats over it, so this section — which starts
   below the header — is only the frame's lower 716px, showing the photo from
   row 184 of the 960 it scales to at 1440 wide. Hence the box's 1440:716
   shape, `100% auto` to scale the photo on width alone, and a vertical
   position of 75.4%, which is what places row 184 at the top of the box and
   holds it there at any width. Getting this wrong is what dropped the flags
   below the headline instead of behind it.

   The ramp over it was measured off the export, not guessed: the photo is
   barely there at the frame's top, peaks near 17% around two-thirds down,
   and is gone by the foot, while the colour under it drifts from cream to
   the white the Problem section below starts on. Colour and photo-opacity
   are one gradient, since a gradient stop carries its own alpha. Text
   contrast does not depend on the photo at any of these values. */

.hsm-rd-hero {
    position: relative;
    /* Above the section that follows: the centre photograph hangs down into
       it, as it does in the comp. */
    z-index: 1;
    isolation: isolate;
    background: var(--rd-white);
    /* The title is 139px from the top of the frame and the header is 120. */
    padding-top: 19px;
}

.hsm-rd-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    z-index: -1;
    aspect-ratio: 1440 / 716;
    /* Never taller than the hero. On a wide window the ratio makes this layer taller than the hero
       (955px against ~770 at 1920 wide) and it spilled over the section below, its gradient ending
       in solid white and hiding that section's heading and first line of text. */
    max-height: 100%;
    /* Explicit, or the max-height above narrows the layer through its
       aspect-ratio on a very wide window, leaving white down the right. */
    width: 100%;
    background-image:
        linear-gradient(to bottom,
            var(--rd-cream) 0%,
            rgba(253, 249, 236, 0.962) 12.3%,
            rgba(251, 250, 243, 0.927) 26.8%,
            rgba(249, 248, 242, 0.906) 41.3%,
            rgba(251, 250, 248, 0.846) 55.9%,
            rgba(251, 251, 249, 0.828) 63.1%,
            rgba(251, 250, 248, 0.842) 70.4%,
            rgba(249, 248, 248, 0.927) 84.9%,
            var(--rd-white) 100%),
        url(images/home-hero-bg.jpg);
    background-size: auto, 100% auto;
    background-position: center, center 75.4%;
    background-repeat: no-repeat;
    pointer-events: none;
}

.hsm-rd-hero__copy {
    text-align: center;
    max-width: 760px;
}

.hsm-rd-hero__title {
    max-width: 558px;
    margin: 0 auto;
    color: var(--rd-red);
    font-family: var(--rd-font);
    /* 48px at the 1440 the frame is drawn at (3.34vw), as on the inner-page
       heroes — it was clamped up to 56. */
    font-size: clamp(32px, 3.34vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Figma: 20/1.5 in the body ink, 24px under the headline, 558 wide. */
.hsm-rd-hero__lede {
    max-width: 558px;
    margin: 24px auto 0;
    color: var(--rd-ink);
    font-family: var(--rd-font);
    font-size: 20px;
    line-height: 1.5;
}

/* 40px under the text block; the button and the link 16px apart. */
.hsm-rd-hero__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
}

/* Five columns: 1, 3 and 5 hold one tall image, 2 and 4 hold two stacked.

   Every tile is placed explicitly. Auto-placement cannot lay this out: it
   fills row 1 left to right before it starts row 2, so a tall tile spanning
   both rows pushes the next image into the wrong column and the whole mosaic
   walks out of order — which is exactly what it did (2026-08-31).

   Row heights come from the paired tiles' own aspect ratio, so the grid needs
   no fixed heights and stays proportional at any width. */

/* Figma "Homepage - Desktop", re-measured 2026-10-05. The row is the full
   1440 with 16px of side padding — five 268.8 columns and four 16 gaps — not
   the 1360 shell. It is staggered, not flush:

     tall outer photos  top -92 (-93 on the right), 403 tall
     the two pairs      top -64, 179 + 16 + 179
     centre photo       top 0, 403 tall

   so measured from the pairs' top the outer ones sit 28.8px higher and the
   centre one 64px lower, hanging ~93px below the pairs and into the next
   section. Offsets are percentages (of the 268.8 column) so it all scales. */

.hsm-rd-hero__mosaic {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: auto auto;
    gap: 16px;
    max-width: 1440px;
    margin: 0 auto;
    /* 46px between the pairs' bottom and the next section, as drawn. */
    padding: 0 16px 46px;
}

.hsm-rd-hero__tile {
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--rd-shadow-400);
}

.hsm-rd-hero__tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The mosaic is read in source order: tall, pair, tall, pair, tall. */

.hsm-rd-hero__tile--1 { grid-column: 1; grid-row: 1 / span 2; }
.hsm-rd-hero__tile--2 { grid-column: 2; grid-row: 1; }
.hsm-rd-hero__tile--3 { grid-column: 2; grid-row: 2; }
.hsm-rd-hero__tile--4 { grid-column: 3; grid-row: 1 / span 2; }
.hsm-rd-hero__tile--5 { grid-column: 4; grid-row: 1; }
.hsm-rd-hero__tile--6 { grid-column: 4; grid-row: 2; }
.hsm-rd-hero__tile--7 { grid-column: 5; grid-row: 1 / span 2; }

/* 268.8 × 179.2: 3 : 2. Setting it on the paired tiles is what gives both
   rows their height; the tall tiles span those rows. */
.hsm-rd-hero__tile--2,
.hsm-rd-hero__tile--3,
.hsm-rd-hero__tile--5,
.hsm-rd-hero__tile--6 {
    aspect-ratio: 3 / 2;
    box-shadow: none;
}

/* A spanning tile is stretched to its grid area, and a negative margin makes
   it larger than that area rather than inflating the rows (percentage margins
   on a grid item resolve against the area's width). So: the outer tall ones
   grow 28.8px upward (10.7% of 268.8) and end level with the pairs; the
   centre one moves 64px down (23.8%) and grows 92.8px past the bottom (34.5%),
   which gives it the comp's 403px. */
.hsm-rd-hero__tile--1 { margin-top: -10.7%; }
.hsm-rd-hero__tile--7 { margin-top: -10.9%; }

.hsm-rd-hero__tile--4 {
    margin-top: 23.8%;
    margin-bottom: -34.5%;
}

/* The pairs' drop shadow in the comp is a filter on the stack, which reads the
   same as a shadow on each tile once they are 16px apart. */
.hsm-rd-hero__tile--2,
.hsm-rd-hero__tile--3,
.hsm-rd-hero__tile--5,
.hsm-rd-hero__tile--6 {
    box-shadow: var(--rd-shadow-400);
}

@media (max-width: 900px) {
    .hsm-rd-hero {
        padding-top: 48px;
    }

    /* Two columns of PORTRAIT tiles, per the mobile design (Figma Homepage -
       Mobile, 1406-26100). Five columns would be about 60px each — texture
       rather than photography — and landscape crops at this width lose the
       subject of every shot. */
    .hsm-rd-hero__mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: none;
        gap: 10px;
        margin-top: 40px;
        padding-bottom: 40px;
    }

    /* Back to auto-placement: two even columns, every tile the same portrait
       shape, so none of the desktop placement or the overhang applies. */
    .hsm-rd-hero__tile {
        grid-column: auto;
        grid-row: auto;
        margin: 0;
        aspect-ratio: 3 / 4;
    }

    .hsm-rd-hero__mosaic {
        padding: 0 24px 40px;
    }
}


/* ─── Problem ─────────────────────────────────────────────────────────────
   Figma node 1196-5433. Two cards on white, each an image beside its pitch. */

.hsm-rd-problem {
    background: var(--rd-white);
    padding: 16px 0 40px;
}

.hsm-rd-problem__title {
    margin: 0;
    color: var(--rd-red);
    font-family: var(--rd-font);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hsm-rd-problem__lede {
    margin: 16px 0 0;
    max-width: 480px;
    color: var(--rd-ink);
    font-family: var(--rd-font);
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-problem__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    margin-top: 40px;
}

/* 660 wide, 32 padding (space-2xl), a 274 square image and 32 between it and the copy;
   the copy column is vertically centred beside the image. */
.hsm-rd-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    padding: 32px;
    background: var(--rd-cream);
    border: 1px solid var(--rd-gold-300);
    border-radius: 16px;
}

/* The label wraps rather than orphaning the arrow on a line of its own:
   balanced, it breaks into two even lines when it does not fit. */
.hsm-rd-card .hsm-rd-btn {
    text-align: center;
    text-wrap: balance;
}

.hsm-rd-card--no-image {
    grid-template-columns: 1fr;
}

.hsm-rd-card__media {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--rd-neutral-200);
}

.hsm-rd-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hsm-rd-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.hsm-rd-card__title,
.hsm-rd-card__text {
    margin: 0;
    color: var(--rd-ink);
    font-family: var(--rd-font);
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-card__title {
    font-weight: 700;
}

/* Figma button-primary-bg on the sitters card is #ef691a, not the green. */
.hsm-rd-btn--orange {
    background: #ef691a;
    color: var(--rd-white);
}

.hsm-rd-btn--orange:hover,
.hsm-rd-btn--orange:focus {
    background: #d65a12;
    color: var(--rd-white);
}

@media (max-width: 900px) {
    .hsm-rd-problem {
        padding: 56px 0;
    }

    .hsm-rd-problem__cards {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    /* Image above the text below 900: side by side leaves the copy in a
       column too narrow to read once the card itself is full width. */
    .hsm-rd-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px;
    }

    .hsm-rd-card__media {
        aspect-ratio: 3 / 2;
    }

    /* Full-width button, as the mobile design has it — at this width an
       inline button leaves a ragged right edge under a full-width image. */
    .hsm-rd-card .hsm-rd-btn {
        width: 100%;
    }
}

/* ─── Why HSM? ────────────────────────────────────────────────────────────
   Figma node 1196-5460. Full-bleed green band, pitch left, four figures right.

   The comp washes a San Miguel skyline into the green. Reading the export
   back against the source photograph, it is not a flat tint: red and blue
   stay pinned at the green's own values while green tracks the photo's
   luminance over a range of about ±7 — the signature of a soft-light blend at
   low opacity, which is what is reproduced here. Doing it in CSS rather than
   baking it into the JPEG keeps the band tied to --rd-green, so the photo
   does not have to be re-cut if the brand green is ever corrected again.

   isolation stops the blend reaching the page behind this section, and the
   layer sits at z-index 0 with the content lifted above it — mix-blend-mode
   needs a real stacking context to blend against, which a negative z-index
   would put it behind. */

.hsm-rd-why {
    position: relative;
    isolation: isolate;
    background: var(--rd-green);
    color: var(--rd-white);
    padding: 72px 0;
}

.hsm-rd-why::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url(images/home-why-bg.jpg);
    background-size: cover;
    background-position: center;
    mix-blend-mode: soft-light;
    opacity: 0.18;
    pointer-events: none;
}

.hsm-rd-why__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
}

.hsm-rd-why__title {
    margin: 0;
    font-family: var(--rd-font);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
}

.hsm-rd-why__body {
    margin: 16px 0 0;
    font-family: var(--rd-font);
    font-size: 15px;
    line-height: 1.6;
    /* Not pure white: the body copy sits back from the headings, which is
       what keeps the hierarchy readable on a saturated ground. */
    color: rgba(255, 255, 255, 0.88);
}

.hsm-rd-why__subtitle {
    margin: 28px 0 0;
    font-family: var(--rd-font);
    font-size: 15px;
    font-weight: 700;
}

.hsm-rd-why__list {
    margin: 12px 0 0;
    padding-left: 18px;
    font-family: var(--rd-font);
    font-size: 15px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.88);
}

.hsm-rd-why__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 32px;
    margin: 0;
    text-align: center;
}

.hsm-rd-stat__figure {
    font-family: var(--rd-font);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
}

.hsm-rd-stat__label {
    margin: 8px 0 0;
    font-family: var(--rd-font);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

@media (max-width: 900px) {
    .hsm-rd-why {
        padding: 56px 0;
    }

    .hsm-rd-why__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hsm-rd-why__stats {
        gap: 32px 24px;
    }

    .hsm-rd-stat__figure {
        font-size: 34px;
    }

    .hsm-rd-stat__label {
        font-size: 14px;
    }
}


/* ─── Section furniture ───────────────────────────────────────────────────
   The centred red heading and the centred button under a grid, shared by the
   testimonials and blog sections. */

.hsm-rd-section-title {
    margin: 0 0 40px;
    color: var(--rd-red);
    font-family: var(--rd-font);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-align: center;
}

.hsm-rd-section-cta {
    margin: 40px 0 0;
    text-align: center;
}

/* ─── Testimonials ────────────────────────────────────────────────────────
   Figma node 1196-5471. Three reviews; the quote sits in a cream card and the
   attribution sits OUTSIDE it, below — that offset is the design, not a gap. */

.hsm-rd-testimonials {
    background: var(--rd-white);
    padding: 72px 0;
}

.hsm-rd-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
}

.hsm-rd-testimonial__card {
    background: var(--rd-cream);
    border-radius: 12px;
    padding: 22px 24px 26px;
}

.hsm-rd-testimonial__stars {
    margin: 0 0 12px;
    font-size: 15px;
    letter-spacing: 3px;
    line-height: 1;
}

.hsm-rd-star {
    color: var(--rd-neutral-200);
}

.hsm-rd-star.is-on {
    color: var(--rd-gold);
}

.hsm-rd-testimonial__quote {
    margin: 0;
    color: var(--rd-body);
    font-family: var(--rd-font);
    font-size: 15px;
    line-height: 1.6;
}

/* Underlined at rest, as drawn. */
.hsm-rd-testimonial__more {
    color: var(--rd-green);
    white-space: nowrap;
    text-decoration: underline;
    text-underline-position: from-font;
}

.hsm-rd-testimonial__more:hover,
.hsm-rd-testimonial__more:focus {
    text-decoration: none;
}

.hsm-rd-testimonial__author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-left: 4px;
}

.hsm-rd-post__author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
}

.hsm-rd-testimonial__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.hsm-rd-post__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.hsm-rd-testimonial__meta,
.hsm-rd-post__meta {
    display: flex;
    flex-direction: column;
    font-family: var(--rd-font);
    font-size: 14px;
    line-height: 1.4;
}

.hsm-rd-testimonial__meta strong,
.hsm-rd-post__meta strong {
    color: var(--rd-ink);
    font-weight: 700;
}

.hsm-rd-testimonial__meta span,
.hsm-rd-post__meta span {
    color: var(--rd-muted);
}

/* ─── Blog ────────────────────────────────────────────────────────────────
   Figma node 1196-5481. Three posts, image over title, excerpt and byline. */

.hsm-rd-blog {
    background: var(--rd-white);
    padding: 40px 0;
}

.hsm-rd-blog__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    align-items: start;
}

/* Card: 3:2 image, 24 to the text block, then the byline — each text block
   carries 16px of its own padding, which is why the type is inset from the
   image edge. */
.hsm-rd-post {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hsm-rd-post__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 2;
}

.hsm-rd-post__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hsm-rd-post__info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
}

.hsm-rd-post__title {
    margin: 0;
    font-family: var(--rd-font);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}

.hsm-rd-post__title a {
    color: var(--rd-ink);
}

.hsm-rd-post__title a:hover,
.hsm-rd-post__title a:focus {
    text-decoration: underline;
}

.hsm-rd-post__excerpt {
    margin: 0;
    color: var(--rd-ink);
    font-family: var(--rd-font);
    font-size: 18px;
    line-height: 1.5;
}

/* Home page: the link runs on after the excerpt, underlined. */
.hsm-rd-post__more-inline {
    color: #009951;
    text-decoration: underline;
    text-underline-position: from-font;
}

.hsm-rd-post__more-inline:hover,
.hsm-rd-post__more-inline:focus {
    text-decoration: none;
}

/* A blank line between the excerpt and the link, as drawn. */
.hsm-rd-post__more {
    margin: 27px 0 0;
}

.hsm-rd-post__more a {
    color: #009951;
    font-family: var(--rd-font);
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-post__more a:hover,
.hsm-rd-post__more a:focus {
    text-decoration: underline;
}

/* Blog page: the featured pair, 600 max each, centred. */
.hsm-rd-blog--archive {
    padding: 80px 0;
}

.hsm-rd-blog__featured {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.hsm-rd-blog__featured .hsm-rd-post {
    flex: 1 1 0;
    max-width: 600px;
    min-width: 0;
}

.hsm-rd-blog__empty {
    text-align: center;
    font-family: var(--rd-font);
    font-size: 18px;
}

.hsm-rd-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 80px;
    font-family: var(--rd-font);
}

.hsm-rd-pager .page-numbers {
    padding: 12px 16px;
    border: 1px solid var(--rd-green);
    border-radius: 8px;
    color: var(--rd-green);
    font-size: 16px;
    line-height: 1;
}

.hsm-rd-pager a.page-numbers:hover,
.hsm-rd-pager a.page-numbers:focus,
.hsm-rd-pager .page-numbers.current {
    background: var(--rd-green);
    color: var(--rd-white);
}

@media (max-width: 900px) {
    .hsm-rd-testimonials,
    .hsm-rd-blog {
        padding: 56px 0;
    }

    .hsm-rd-testimonials__grid,
    .hsm-rd-blog__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .hsm-rd-blog__featured {
        flex-direction: column;
        gap: 28px;
    }

    .hsm-rd-blog--archive .hsm-rd-section-title {
        margin-bottom: 40px;
    }
}

/* ─── Newsletter ──────────────────────────────────────────────────────────
   Figma node 1196-9039. Photograph band: translucent pitch panel left, gold
   sign-up card right, centred as a pair. */

.hsm-rd-newsletter {
    background: #fff var(--rd-news-bg, url('images/newsletter-bg.jpg')) center / cover no-repeat;
    color: var(--rd-white);
    padding: 40px 0;
}

/* Photograph only (Pricing): the height the band has with the form in it. */
.hsm-rd-newsletter--photo {
    height: 309px;
    padding: 0;
}

.hsm-rd-newsletter__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

/* The panel behind the heading is rgba(0,0,0,.2) with a hard 2px black text
   shadow on both lines, so the copy reads over the busy photograph. */
.hsm-rd-newsletter__pitch {
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    min-width: 400px;
    width: 420px;
    flex: 0 0 420px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    text-shadow: 2px 2px 0 #000;
}

.hsm-rd-newsletter__title {
    margin: 0;
    font-family: var(--rd-font);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--rd-white);
}

.hsm-rd-newsletter__body {
    margin: 0;
    font-family: var(--rd-font);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--rd-white);
}

.hsm-rd-newsletter__card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 280px;
    flex: 0 0 280px;
    background: var(--rd-cream);
    border-radius: 16px;
    padding: 16px;
    color: var(--rd-ink);
    box-shadow: var(--rd-shadow-400);
}

.hsm-rd-newsletter__notice {
    margin: 0;
    padding: 10px 12px;
    border-radius: 6px;
    font-family: var(--rd-font);
    font-size: 14px;
    line-height: 1.4;
}

.hsm-rd-newsletter__notice.is-ok {
    background: #e6f2e9;
    color: var(--rd-green);
}

.hsm-rd-newsletter__notice.is-error {
    background: #fdecee;
    color: var(--rd-red);
}

.hsm-rd-field {
    display: block;
}

/* Figma "Body/Base Bold" — 18/1.5, the same style the newsletter's
   "I'm interested in:" legend uses. Was 14px. */
.hsm-rd-field__label {
    display: block;
    margin-bottom: 8px;
    padding: 0;
    font-family: var(--rd-font);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--rd-ink);
}

.hsm-rd-field__input {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--rd-rule);
    border-radius: 6px;
    background: var(--rd-white);
    font-family: var(--rd-font);
    font-size: 15px;
    color: var(--rd-ink);
}

.hsm-rd-field__input:focus {
    outline: 2px solid var(--rd-green);
    outline-offset: 1px;
}

/* The card is a gap-16 flex column now, so this no longer sets its own top
   margin — doing both would double the space above it. */
.hsm-rd-newsletter__interests {
    margin: 0;
    padding: 0;
    border: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 8px;
}

/* legend does not participate in the fieldset's flex layout, so it is given
   the whole first row rather than fighting the checkboxes for space. */
.hsm-rd-newsletter__card .hsm-rd-field__label {
    margin-bottom: 0;
}

.hsm-rd-newsletter__interests > .hsm-rd-field__label {
    flex: 0 0 100%;
    margin-bottom: 0;
}

/* 120px each, 12px from box to label, Arial 18/1.5 — the Checkbox component
   at 1406-26858;230:11755. */
.hsm-rd-check {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 120px;
    font-family: var(--rd-font);
    font-size: 18px;
    line-height: 1.5;
    cursor: pointer;
}

.hsm-rd-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--rd-green);
    cursor: pointer;
}

.hsm-rd-newsletter__submit {
    width: 100%;
}

@media (max-width: 900px) {
    .hsm-rd-newsletter {
        padding: 32px 0;
    }

    .hsm-rd-newsletter--photo {
        height: 240px;
        padding: 0;
    }

    .hsm-rd-newsletter__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .hsm-rd-newsletter__pitch {
        min-width: 0;
        width: auto;
        flex: 0 0 auto;
    }

    .hsm-rd-newsletter__card {
        width: auto;
        flex: 0 0 auto;
    }
}

/* ─── Final CTA ───────────────────────────────────────────────────────────
   Figma node 1196-5496. Copy left, photograph right, on white. */

.hsm-rd-final {
    background: var(--rd-white);
    padding: 80px 0;
}

.hsm-rd-final__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.hsm-rd-final--no-image .hsm-rd-final__inner {
    grid-template-columns: 1fr;
    max-width: 720px;
}

/* Display/Base, the same 48px the page heroes use — this was 32px, which is
   the size of the paragraph beneath it in the comp, not the heading. */
.hsm-rd-final__title {
    margin: 0;
    color: var(--rd-red);
    font-family: var(--rd-font);
    font-size: clamp(30px, 3.34vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hsm-rd-final__body {
    margin: 16px 0 40px;
    color: var(--rd-ink);
    font-family: var(--rd-font);
    font-size: clamp(18px, 2.23vw, 32px);
    line-height: 1.2;
}

/* No radius: unlike the page-hero photograph, this Figure has square corners
   in the comp. */
.hsm-rd-final__media {
    overflow: hidden;
    aspect-ratio: 600 / 400;
}

.hsm-rd-final__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 767px) {
    .hsm-rd-final {
        padding: 56px 0;
    }

    .hsm-rd-final__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hsm-rd-final__title {
        font-size: 26px;
    }

    .hsm-rd-final__body {
        margin-bottom: 28px;
        font-size: 16px;
        line-height: 1.5;
    }
}

/* ─── Footer ──────────────────────────────────────────────────────────────
   Figma node 1273-21795. Cream band: copyright, social, two link columns. */

.hsm-rd-footer {
    background: var(--rd-cream);
    border-top: 1px solid var(--rd-gold-300);
    padding: 40px 0;
}

.hsm-rd-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 80px;
    align-items: start;
}

/* Muted grey (#6c6c6c, text-muted) in the current comp, on two lines. */
.hsm-rd-footer__copy {
    margin: 0;
    color: var(--rd-muted);
    font-family: var(--rd-font);
    font-size: 16px;
    line-height: 1.4;
}

.hsm-rd-footer__social {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.hsm-rd-footer__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    /* Outlined glyph as drawn in Figma (Icon / Facebook), in the accent green. */
    color: #04651e;
}

.hsm-rd-footer__column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hsm-rd-footer__link {
    color: var(--rd-green);
    font-family: var(--rd-font);
    font-size: 16px;
    line-height: 1.4;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* The footer-wide ".hsm-rd-footer a { text-decoration: none }" reset above is
   more specific than the rule just before this, so on its own it won and the
   links were bare. Figma underlines every footer link. */
.hsm-rd-footer a.hsm-rd-footer__link {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hsm-rd-footer a.hsm-rd-footer__link:hover,
.hsm-rd-footer a.hsm-rd-footer__link:focus {
    text-decoration: none;
}

/* One column in source order on a phone — copyright, Weather Map and the
   social icon, then the two link groups. That is the mobile design (Figma
   footer-mobile, 1406-26149); an earlier version here moved the copyright to
   the bottom on the reasoning that it is the least useful thing on the
   screen, which is true but is not what was drawn. */
@media (max-width: 767px) {
    .hsm-rd-footer__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}


/* ─── Inner-page hero ─────────────────────────────────────────────────────
   Copy left, photograph right. Shared by How It Works (1196-6343), Find a
   Sitter (1406-26750) and Find a House Sit (1406-27195) — verified against
   all three, which are the same frame to the pixel with different words and
   a different photograph in each.

   Measured off the Figma frames rather than eyeballed (2026-09-01): a
   1360-wide row 40px down from the frame top, 400px of copy, a 40px gap and
   a 920 × 613 photograph, with 80px of air beneath. Because the frame's top
   160px is the navigation floating over it, and this section starts below a
   120px header, the row's 160px offset becomes 40px of padding here.

   The wash is a constant, so it lives here; only the photograph behind it
   changes per page and arrives as --rd-page-hero-bg from the partial. */

.hsm-rd-page-hero {
    background-color: var(--rd-white);
    background-image:
        linear-gradient(to bottom,
            var(--rd-cream) 10%,
            rgba(255, 255, 255, 0.8) 75%,
            var(--rd-white) 100%),
        var(--rd-page-hero-bg, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px 0 80px;
}

.hsm-rd-page-hero__inner {
    display: grid;
    /* 400 and 920 of the 1360 row, with the 40px gap taken out first — so
       the proportions hold at any width rather than only at 1440. */
    grid-template-columns: minmax(0, 400fr) minmax(0, 920fr);
    gap: 40px;
    align-items: center;
}

.hsm-rd-page-hero--no-image .hsm-rd-page-hero__inner {
    grid-template-columns: 1fr;
}

.hsm-rd-page-hero__title {
    margin: 0;
    color: var(--rd-red);
    font-family: var(--rd-font);
    /* 48px at the 1440 the frame is drawn at — 48 ÷ 1440 = 3.34vw — falling
       back rather than overflowing a narrow column. */
    font-size: clamp(30px, 3.34vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    /* Figma's -2 is a percentage of the em, which at 48px is -0.96px. */
    letter-spacing: -0.02em;
}

.hsm-rd-page-hero__lede {
    /* 40px, the space-3xl token, not a smaller heading-to-body gap: the
       copy column is two blocks of a flex stack in the comp, evenly spaced. */
    margin: 40px 0 0;
    color: var(--rd-ink);
    font-family: var(--rd-font);
    font-size: clamp(18px, 2.23vw, 32px);
    line-height: 1.2;
    text-wrap: balance;
}

/* "Read our Best Advice": 32px, the lede's size, in link green, underlined. */
.hsm-rd-page-hero__link {
    display: inline-block;
    margin-top: 40px;
    color: var(--rd-green);
    font-family: var(--rd-font);
    font-size: clamp(18px, 2.23vw, 32px);
    line-height: 1.25;
    text-decoration: underline;
    text-underline-position: from-font;
}

.hsm-rd-page-hero__media {
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 920 / 613;
    box-shadow: var(--rd-shadow-400);
}

.hsm-rd-page-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ─── How It Works: overview ──────────────────────────────────────────────
   Figma node 1196-6350. Four steps, then the two audience cards. */

.hsm-rd-overview {
    background: var(--rd-white);
    padding: 72px 0;
}

.hsm-rd-overview__title {
    margin: 0;
    color: var(--rd-red);
    font-family: var(--rd-font);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.hsm-rd-overview__lede {
    margin: 12px 0 0;
    max-width: 640px;
    color: var(--rd-body);
    font-family: var(--rd-font);
    font-size: 15px;
    line-height: 1.6;
}

.hsm-rd-overview__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin: 56px 0 0;
    padding: 0;
    list-style: none;
}

.hsm-rd-step {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    align-items: start;
}

/* The slot keeps its width whether or not an icon has been supplied, so the
   four columns of text stay aligned with each other in the meantime. */
.hsm-rd-step__icon {
    display: block;
    width: 44px;
    height: 44px;
}

.hsm-rd-step__icon svg {
    width: 100%;
    height: 100%;
}

.hsm-rd-step__text {
    color: var(--rd-ink);
    font-family: var(--rd-font);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.hsm-rd-overview__audiences {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 48px;
}

.hsm-rd-audience-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 32px;
    background: var(--rd-cream);
    border-radius: 12px;
}

.hsm-rd-audience-card p {
    margin: 0;
    color: var(--rd-ink);
    font-family: var(--rd-font);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
}

.hsm-rd-audience-card .hsm-rd-btn {
    flex: 0 0 auto;
}

@media (max-width: 767px) {
    .hsm-rd-page-hero,
    .hsm-rd-overview {
        padding: 48px 0;
    }

    .hsm-rd-page-hero__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* Stacked, the copy is no longer a 400px column beside a photograph, so
       the comp's 40px stack gap and its 32px lede are both too generous —
       they push the photograph off a phone screen entirely. */
    .hsm-rd-page-hero__lede {
        margin-top: 16px;
        font-size: 17px;
        line-height: 1.5;
    }

    .hsm-rd-overview__steps {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 36px;
    }

    .hsm-rd-overview__audiences {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hsm-rd-audience-card {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 24px;
    }

    /* Full width under the question, as the mobile frame has it. */
    .hsm-rd-audience-card .hsm-rd-btn {
        width: 100%;
    }
}

/* ─── How It Works: audience (Hosts / Sitters) ────────────────────────────
   Figma nodes 1196-6363 and 1196-6396. One rule set, both sections. */

.hsm-rd-audience {
    background: var(--rd-white);
    padding: 64px 0;
    /* Anchored from the overview's Learn More buttons — without this the
       fixed header would sit on top of the section heading on arrival. */
    scroll-margin-top: 24px;
}

.hsm-rd-audience__intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.hsm-rd-audience__eyebrow {
    margin: 0 0 8px;
    color: var(--rd-muted);
    font-family: var(--rd-font);
    font-size: 13px;
    line-height: 1.4;
}

.hsm-rd-audience__title {
    margin: 0;
    color: var(--rd-red);
    font-family: var(--rd-font);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.hsm-rd-audience__lede {
    margin: 14px 0 0;
    color: var(--rd-body);
    font-family: var(--rd-font);
    font-size: 15px;
    line-height: 1.6;
}

.hsm-rd-audience__subtitle {
    margin: 24px 0 0;
    color: var(--rd-ink);
    font-family: var(--rd-font);
    font-size: 15px;
    font-weight: 700;
}

.hsm-rd-audience__benefits {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--rd-body);
    font-family: var(--rd-font);
    font-size: 15px;
    line-height: 1.75;
}

.hsm-rd-audience__media {
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
}

.hsm-rd-audience__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ─── Timeline ────────────────────────────────────────────────────────────
   Seven evenly-spaced steps on a single rule.

   The rule is a pseudo-element on the list, positioned at the dots' vertical
   centre, rather than a border on each step — a border per step would break
   into seven segments with the gaps showing between them. */

.hsm-rd-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin: 64px 0 0;
    padding: 0;
    list-style: none;
}

/* gold-300, not a grey hairline: the rule is part of the Timeline Item
   component and carries its own token (Brand/Gold/gold-300). Grey was my
   guess before reading it. */
.hsm-rd-timeline::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--rd-gold-300);
}

.hsm-rd-timeline__step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hsm-rd-timeline__dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    /* The design's yellow-green, which is the brand's bright green rather
       than the dark green used for buttons. */
    background: var(--rd-bright-green);
    box-shadow: 0 0 0 3px var(--rd-white);
}

.hsm-rd-timeline__label {
    margin-top: 14px;
    max-width: 12ch;
    color: var(--rd-ink);
    font-family: var(--rd-font);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

@media (max-width: 900px) {
    /* Seven columns on a phone gives each label about 45px. Stacked, with
       the rule running vertically down the left instead. */
    .hsm-rd-timeline {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 40px;
        padding-left: 22px;
    }

    .hsm-rd-timeline::before {
        top: 6px;
        bottom: 6px;
        left: 6px;
        right: auto;
        width: 3px;
        height: auto;
    }

    .hsm-rd-timeline__step {
        flex-direction: row;
        align-items: center;
        gap: 14px;
        text-align: left;
    }

    .hsm-rd-timeline__dot {
        position: absolute;
        left: -22px;
    }

    /* Body/Base Bold on a phone — 18px, not the 13px the desktop row
       needs to fit seven labels side by side. */
    .hsm-rd-timeline__label {
        margin-top: 0;
        max-width: none;
        font-size: 18px;
        line-height: 1.5;
    }
}

/* ─── Tips panel ──────────────────────────────────────────────────────────
   Cream panel: intro on the left, five thumbnailed tips on the right. */

.hsm-rd-tips {
    display: grid;
    grid-template-columns: minmax(0, 640fr) minmax(0, 560fr);
    gap: 80px;
    margin-top: 40px;
    padding: 40px;
    background: var(--rd-cream);
    border: 1px solid var(--rd-gold-300);
    border-radius: 16px;
}

.hsm-rd-tips__intro {
    padding-top: 40px;
}

.hsm-rd-tips__title {
    margin: 0;
    color: var(--rd-red);
    font-family: var(--rd-font);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hsm-rd-tips__lede {
    margin: 16px 0 0;
    color: var(--rd-ink);
    font-family: var(--rd-font);
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-tips__list {
    margin: 0;
    padding: 40px 0 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hsm-rd-tip {
    display: grid;
    /* 128 square, 16 to the text — the Figure in the comp. */
    grid-template-columns: 128px 1fr;
    gap: 16px;
    align-items: center;
}

/* No thumbnail supplied: the text takes the whole row rather than sitting
   in a narrower column than its neighbours. */
.hsm-rd-tip:not(:has(.hsm-rd-tip__media)) {
    grid-template-columns: 1fr;
}

.hsm-rd-tip__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.hsm-rd-tip__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hsm-rd-tip__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.hsm-rd-tip__text {
    color: var(--rd-ink);
    font-family: var(--rd-font);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}

.hsm-rd-tip__more {
    color: var(--rd-green);
    font-family: var(--rd-font);
    font-size: 18px;
    line-height: 1;
    text-decoration: underline;
    text-underline-position: from-font;
}

.hsm-rd-tip__more:hover,
.hsm-rd-tip__more:focus {
    text-decoration: none;
}

/* Overview: the two skip links under the four steps, 360 max each, centred. */
.hsm-rd-overview__skips {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 80px;
}

.hsm-rd-overview__skips .hsm-rd-btn {
    flex: 1 1 0;
    max-width: 360px;
    min-width: 0;
}

@media (max-width: 767px) {
    .hsm-rd-overview__skips {
        flex-direction: column;
        margin-top: 40px;
    }

    .hsm-rd-overview__skips .hsm-rd-btn {
        max-width: none;
    }

    .hsm-rd-tips__intro,
    .hsm-rd-tips__list {
        padding-top: 0;
    }

    .hsm-rd-audience {
        padding: 48px 0;
    }

    .hsm-rd-audience__intro {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hsm-rd-tips {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-top: 40px;
        padding: 28px 24px;
    }
}

/* ─── Green band CTA ──────────────────────────────────────────────────────
   Figma node 1209-9084. Cream card floating on the green band. */

.hsm-rd-band {
    background: var(--rd-green);
    padding: 48px 0;
}

.hsm-rd-band__card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    max-width: 660px;
    margin: 0 auto;
    padding: 26px 32px;
    background: var(--rd-cream);
    border-radius: 12px;
}

.hsm-rd-band__text {
    margin: 0;
    color: var(--rd-ink);
    font-family: var(--rd-font);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.hsm-rd-band .hsm-rd-btn {
    flex: 0 0 auto;
}

@media (max-width: 700px) {
    .hsm-rd-band__card {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 24px;
    }
}

/* ─── Combined membership ─────────────────────────────────────────────────
   Figma node 1196-6429. Photograph left, copy right. */

.hsm-rd-combined {
    background: var(--rd-white);
    padding: 64px 0;
}

.hsm-rd-combined__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

.hsm-rd-combined--no-image .hsm-rd-combined__inner {
    grid-template-columns: 1fr;
}

.hsm-rd-combined__media {
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
}

.hsm-rd-combined__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hsm-rd-combined__eyebrow {
    margin: 0 0 8px;
    color: var(--rd-body);
    font-family: var(--rd-font);
    font-size: 14px;
    line-height: 1.4;
}

.hsm-rd-combined__title {
    margin: 0;
    color: var(--rd-red);
    font-family: var(--rd-font);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.hsm-rd-combined__lede {
    margin: 14px 0 0;
    color: var(--rd-body);
    font-family: var(--rd-font);
    font-size: 15px;
    line-height: 1.6;
}

.hsm-rd-combined__subtitle {
    margin: 22px 0 0;
    color: var(--rd-ink);
    font-family: var(--rd-font);
    font-size: 15px;
    font-weight: 700;
}

.hsm-rd-combined__benefits {
    margin: 10px 0 24px;
    padding-left: 18px;
    color: var(--rd-body);
    font-family: var(--rd-font);
    font-size: 15px;
    line-height: 1.75;
}

@media (max-width: 767px) {
    .hsm-rd-combined {
        padding: 48px 0;
    }

    .hsm-rd-combined__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* ─── FAQs ────────────────────────────────────────────────────────────────
   Figma node 1196-6440. Native <details>, styled. */

.hsm-rd-faqs {
    background: var(--rd-white);
    padding: 64px 0;
}

.hsm-rd-faqs__inner {
    max-width: 720px;
}

.hsm-rd-faqs__title {
    margin: 0;
    color: var(--rd-ink);
    font-family: var(--rd-font);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

.hsm-rd-faqs__lede {
    margin: 10px 0 32px;
    color: var(--rd-body);
    font-family: var(--rd-font);
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
}

.hsm-rd-faq {
    border-bottom: 1px solid var(--rd-rule);
}

/* The FAQ pages' hero section shares the class name but is not a How It Works
   FAQ row, so it takes no rule under it (that was the grey line above the
   house divider). */
.hsm-rd-filehero.hsm-rd-faq {
    border-bottom: 0;
}

.hsm-rd-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    color: var(--rd-ink);
    font-family: var(--rd-font);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    /* Safari still paints its own disclosure triangle without this, which
       would sit alongside the chevron rather than replacing it. */
    list-style: none;
}

.hsm-rd-faq__q::-webkit-details-marker {
    display: none;
}

.hsm-rd-faq__q:focus-visible {
    outline: 2px solid var(--rd-green);
    outline-offset: 2px;
}

.hsm-rd-faq__chevron {
    flex: 0 0 auto;
    color: var(--rd-muted);
    transition: transform 0.15s ease;
}

.hsm-rd-faq[open] .hsm-rd-faq__chevron {
    transform: rotate(90deg);
}

@media (prefers-reduced-motion: reduce) {
    .hsm-rd-faq__chevron {
        transition: none;
    }
}

.hsm-rd-faq__a p {
    margin: 0;
    padding: 0 0 18px;
    color: var(--rd-body);
    font-family: var(--rd-font);
    font-size: 15px;
    line-height: 1.6;
}

.hsm-rd-faqs__contact {
    margin: 28px 0 0;
    color: var(--rd-body);
    font-family: var(--rd-font);
    font-size: 14px;
    text-align: center;
}

.hsm-rd-faqs__contact a {
    color: var(--rd-green);
}

.hsm-rd-faqs__contact a:hover,
.hsm-rd-faqs__contact a:focus {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .hsm-rd-faqs {
        padding: 48px 0;
    }
}


/* ─── Search toolbar ──────────────────────────────────────────────────────
   Figma nodes 1406-27185 (Find a Sitter) and 1406-27328 (Find a House Sit).
   Filtered-search button left; on Find a Sitter, a log-in note right. */

.hsm-rd-toolbar {
    background: var(--rd-white);
    padding: 28px 0;
}

.hsm-rd-toolbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

/* The button keeps the left edge whether or not the note is there — on Find
   a House Sit it is alone, and space-between would otherwise stretch it. */
.hsm-rd-toolbar__inner > :only-child {
    margin-right: auto;
}

/* Figma 1727-27353: Arial 18/1.5 in the secondary grey, an 8px gap to a 16px
   question glyph. Was 14px in --rd-body with a 5px gap. */
.hsm-rd-toolbar__note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--rd-text-secondary);
    font-family: var(--rd-font);
    font-size: 18px;
    line-height: 1.5;
}

/* The comp leaves "Log in" green and unmarked, and that is the one thing on
   these two pages not reproduced exactly. #04651e and the surrounding
   #535353 have almost identical luminance — they contrast 1.07:1 against
   each other — so with the underline removed the link is not merely subtle,
   it is invisible to anyone who cannot separate the two hues, and there is
   no second cue to fall back on. WCAG's own allowance for colour-only links
   wants 3:1 against the body text around them. Underlining it is a
   deliberate deviation; drop this rule to match the comp pixel for pixel. */
.hsm-rd-toolbar__note a {
    color: var(--rd-green);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hsm-rd-toolbar__toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* The current choice: Figma's neutral-100 fill with muted text, not a link. */
.hsm-rd-btn--disabled {
    background: var(--rd-rule);
    color: var(--rd-muted);
    cursor: default;
}

.hsm-rd-toolbar__info {
    flex: 0 0 auto;
    color: var(--rd-muted);
}

@media (max-width: 700px) {
    .hsm-rd-toolbar__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .hsm-rd-toolbar__note {
        justify-content: flex-start;
    }
}

/* ─── Listings slot ───────────────────────────────────────────────────────
   The reserved region for the listings grid — see listings-slot.php. The
   padding is the section's own, so the gap between the toolbar above and the
   newsletter below is already correct before anything is dropped in, and
   wiring the listings later does not shift the rest of the page. */

.hsm-rd-listings {
    background: var(--rd-white);
    padding: 8px 0 64px;
    /* Enough that the page does not look truncated while the region is empty,
       but not so much that it reads as a deliberate blank panel. Once real
       listings are attached their own height takes over. */
    min-height: 120px;
}

/* Editors only — see the note in listings-slot.php about why visitors get
   empty space instead of this. */
.hsm-rd-listings__hint {
    padding: 28px 32px;
    border: 1px dashed var(--rd-neutral-200);
    border-radius: 12px;
    background: var(--rd-cream);
    color: var(--rd-body);
    font-family: var(--rd-font);
    font-size: 14px;
    line-height: 1.6;
}

.hsm-rd-listings__hint p {
    margin: 0 0 8px;
}

.hsm-rd-listings__hint p:last-child {
    margin-bottom: 0;
}

.hsm-rd-listings__hint strong {
    color: var(--rd-ink);
}

.hsm-rd-listings__hint code {
    padding: 1px 5px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.05);
    font-size: 13px;
}

.hsm-rd-listings__hint-note {
    color: var(--rd-muted);
    font-size: 13px;
}


/* ─── Members log in ──────────────────────────────────────────────────────
   The auth card: sign in, request a reset link, set a new password. No Figma
   comp for this screen, so it is assembled from the components the rest of
   the redesign already uses — .hsm-rd-field for the inputs, .hsm-rd-btn for
   the button, .hsm-rd-check for "remember me" — rather than inventing a
   fourth visual language for the one page a member sees before anything
   else. Replacing the User Registration plugin's own button markup with
   .hsm-rd-btn is what puts these back on the brand's shape and colour.

   A single narrow column on cream. The card is capped at 440px because a
   two-field form stretched across a 1280px shell reads as a mistake, and
   because a short measure is what makes it obvious there is nothing else on
   this page to do. */

.hsm-rd-auth {
    background: var(--rd-cream);
    padding: 72px 0 96px;
}

.hsm-rd-auth__shell {
    max-width: 440px;
}

.hsm-rd-auth__title {
    margin: 0;
    text-align: center;
    color: var(--rd-red);
    font-family: var(--rd-font);
    font-size: clamp(28px, 3.2vw, 38px);
    font-weight: 700;
    line-height: 1.2;
}

.hsm-rd-auth__lede {
    margin: 16px 0 0;
    text-align: center;
    color: var(--rd-body);
    font-family: var(--rd-font);
    font-size: 15px;
    line-height: 1.55;
}

/* Success and failure differ by more than colour — the wording carries the
   meaning on its own — but the tint is what makes which one it is legible at
   a glance, and the left rule survives being read in greyscale. */
.hsm-rd-auth__notice {
    margin: 24px 0 0;
    padding: 12px 14px;
    border-left: 3px solid;
    border-radius: 4px;
    font-family: var(--rd-font);
    font-size: 14px;
    line-height: 1.5;
}

.hsm-rd-auth__notice.is-ok {
    border-color: var(--rd-green);
    background: rgba(4, 101, 30, 0.07);
    color: var(--rd-green);
}

.hsm-rd-auth__notice.is-error {
    border-color: var(--rd-red);
    background: rgba(206, 17, 38, 0.07);
    color: var(--rd-red);
}

.hsm-rd-auth__form {
    display: grid;
    gap: 18px;
    margin-top: 28px;
    padding: 28px;
    border: 1px solid var(--rd-rule);
    border-radius: 10px;
    background: var(--rd-white);
}

.hsm-rd-auth__hint {
    margin: -6px 0 0;
    color: var(--rd-muted);
    font-family: var(--rd-font);
    font-size: 13px;
}

.hsm-rd-auth__remember {
    justify-self: start;
}

/* Full width, unlike the inline .hsm-rd-btn elsewhere: it is the only action
   in the card, and a button the width of the fields above it is the clearer
   target on a phone. */
.hsm-rd-auth__submit {
    width: 100%;
    padding: 13px 24px;
    font-size: 16px;
}

.hsm-rd-auth__aside,
.hsm-rd-auth__join {
    margin: 20px 0 0;
    text-align: center;
    font-family: var(--rd-font);
    font-size: 15px;
    color: var(--rd-body);
}

.hsm-rd-auth__join {
    margin-top: 10px;
}

.hsm-rd-auth__aside a,
.hsm-rd-auth__join a {
    color: var(--rd-green);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 767px) {
    .hsm-rd-auth {
        padding: 48px 0 64px;
    }

    .hsm-rd-auth__form {
        padding: 22px;
    }
}


/* ─── Section intro (Find a Sitter: "Browse Sitter Profiles") ───────────── */

.hsm-rd-intro {
    background: var(--rd-white);
    padding: 40px 0;
}

.hsm-rd-intro .hsm-rd-shell {
    max-width: calc(640px + var(--rd-gutter) * 2);
    text-align: center;
}

.hsm-rd-intro__title {
    margin: 0 0 16px;
    color: var(--rd-red);
    font-family: var(--rd-font);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hsm-rd-intro__body {
    margin: 0;
    color: var(--rd-ink);
    font-family: var(--rd-font);
    font-size: 18px;
    line-height: 1.5;
}

/* ─── Dialog (Find a Sitter advice) ───────────────────────────────────────
   880 max, 16px radius, photo left and copy right; backdrop is the comp's
   20% black overlay. */

.hsm-rd-dialog {
    width: min(880px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--rd-white);
    color: var(--rd-ink);
    font-family: var(--rd-font);
}

.hsm-rd-dialog[open] {
    display: flex;
}

.hsm-rd-dialog::backdrop {
    background: rgba(0, 0, 0, 0.2);
}

.hsm-rd-dialog__media {
    flex: 1 1 0;
    max-width: 287px;
    min-width: 0;
}

.hsm-rd-dialog__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hsm-rd-dialog__body {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    padding: 40px 40px 16px;
    overflow-y: auto;
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-dialog__body p {
    margin: 0 0 16px;
}

.hsm-rd-dialog__title {
    margin: 0 0 8px;
    color: var(--rd-red);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hsm-rd-dialog__body .hsm-rd-dialog__sub {
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hsm-rd-dialog__sub a {
    color: var(--rd-green);
}

.hsm-rd-dialog__body .hsm-rd-dialog__sign {
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.4;
}

@media (max-width: 700px) {
    .hsm-rd-dialog[open] {
        flex-direction: column;
    }

    .hsm-rd-dialog__media {
        display: none;
    }

    .hsm-rd-dialog__body {
        padding: 32px 24px 16px;
    }

    .hsm-rd-dialog__title {
        font-size: 26px;
    }
}


/* ─── Tip popups (How It Works "Learn More") ──────────────────────────────
   400 wide, up to 640 tall: 16:9 photograph, then a scrolling copy panel
   with a fade at the foot. */

.hsm-rd-dialog--tip {
    width: min(400px, calc(100vw - 32px));
    height: min(640px, calc(100vh - 32px));
}

.hsm-rd-dialog--tip[open] {
    flex-direction: column;
}

.hsm-rd-dialog__photo {
    position: relative;
    flex: 0 0 auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

/* Absolutely positioned so a portrait photograph is cropped to the 16:9 frame
   instead of stretching the frame to its own height (and pushing the copy out
   of the popup). */
.hsm-rd-dialog__photo img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hsm-rd-dialog__scroll {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 40px 40px 80px;
    font-size: 18px;
    line-height: 1.5;
    scrollbar-width: thin;
}

.hsm-rd-dialog__scroll p {
    margin: 0 0 18px;
}

.hsm-rd-dialog__scroll a {
    color: var(--rd-green);
}

.hsm-rd-dialog__scroll .hsm-rd-dialog__title {
    margin: 0 0 24px;
}

.hsm-rd-dialog__scroll .hsm-rd-dialog__sign {
    margin: 24px 0 0;
    font-size: 16px;
    line-height: 1.4;
}

/* Fade-out at the foot of the panel, as drawn. */
.hsm-rd-dialog--tip::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 80%);
}

/* ─── Listings pagination ─────────────────────────────────────────────────
   Figma component 2808-11419: a muted "Showing 1–12 of 2,797 listings" line
   over Previous / numbered pages / Next, centred under the listings. The
   markup comes from listings-pagination.php. */

.hsm-rd-paging {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 40px 0 0;
    font-family: var(--rd-font);
}

.hsm-rd-paging__count {
    align-self: center;
    margin: 0;
    text-align: center;
    color: var(--rd-muted);
    font-size: 18px;
    line-height: 1;
}

.hsm-rd-paging__pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.hsm-rd-paging__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.hsm-rd-paging__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--rd-rule);
    border-radius: 8px;
    background: transparent;
    color: var(--rd-green);
    font-size: 20px;
    line-height: 1;
    text-decoration: none;
}

.hsm-rd-paging__num {
    min-width: 36px;
    box-sizing: border-box;
}

a.hsm-rd-paging__btn:hover,
a.hsm-rd-paging__btn:focus {
    background: #f4f4f4;
    color: var(--rd-green);
}

.hsm-rd-paging__btn.is-current {
    background: #f4f4f4;
}

.hsm-rd-paging__btn.is-disabled {
    color: var(--rd-neutral-200);
}

.hsm-rd-paging__gap {
    padding: 0 4px;
    color: #9d9d9d;
    font-size: 20px;
    line-height: 1;
}

@media (max-width: 700px) {
    .hsm-rd-paging__count {
        align-self: center;
    }
}

/* Short popup: three icon rows under the title, no scrolling (Figma "How to
   get an assignment?"). Height follows the content instead of the 640 cap —
   and instead of the screen: the doubled class out-ranks the tip rule, and
   the copy panel no longer grows to fill the dialog. */
.hsm-rd-dialog--tip.hsm-rd-dialog--short {
    height: fit-content;
}

.hsm-rd-dialog--short::after {
    display: none;
}

.hsm-rd-dialog--short .hsm-rd-dialog__scroll {
    flex: 0 0 auto;
    overflow: visible;
    padding-bottom: 40px;
}

.hsm-rd-dialog__items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hsm-rd-dialog__items li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.hsm-rd-dialog__items img {
    flex: 0 0 24px;
}

/* ─── Home page, mobile ───────────────────────────────────────────────────
   Figma "Homepage - Mobile" (1406-26098), measured 2026-10-05. Last in the
   file so it wins over the earlier, more general phone rules.

   What is different from the desktop page, beyond stacking:
   - the hero background covers the whole hero (no desktop crop) and the photo
     collage is two tiles, not seven;
   - two testimonials and two blog posts, not three;
   - the final CTA puts the photograph above the copy, centred. */

@media (max-width: 900px) {

    .hsm-rd-hero {
        padding: 32px 0;
    }

    /* A cover fill of the hero box, under the same gold-to-white wash the
       frame uses (gold at 10%, 80% white at 75%, white at the foot). */
    .hsm-rd-hero::before {
        inset: 0;
        aspect-ratio: auto;
        background-image:
            linear-gradient(to bottom,
                var(--rd-cream) 10%,
                rgba(255, 255, 255, 0.8) 75%,
                var(--rd-white) 100%),
            url(images/home-hero-bg.jpg);
        background-size: auto, cover;
        background-position: center, center;
    }

    .hsm-rd-hero__copy {
        padding: 0 20px;
    }

    .hsm-rd-hero__title {
        font-size: 36px;
        line-height: 1.15;
    }

    .hsm-rd-hero__lede {
        margin-top: 16px;
        font-size: 18px;
    }

    .hsm-rd-hero__actions {
        margin-top: 24px;
        gap: 12px;
    }

    /* Two portrait tiles side by side — the firework and the doorway. */
    .hsm-rd-hero__mosaic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-top: 0;
        padding: 40px 20px 0;
    }

    .hsm-rd-hero__tile--2,
    .hsm-rd-hero__tile--3,
    .hsm-rd-hero__tile--5,
    .hsm-rd-hero__tile--6,
    .hsm-rd-hero__tile--7 {
        display: none;
    }

    .hsm-rd-hero__tile--1,
    .hsm-rd-hero__tile--4 {
        aspect-ratio: 400 / 600;
        box-shadow: var(--rd-shadow-400);
    }

    /* Two testimonials, not three, on the home page. The blog keeps all three
       (Asana: all 3 posts under Stories from the Community on mobile). */
    .hsm-rd-testimonials__grid > :nth-child(n+3) {
        display: none;
    }

    /* "Where Great House Sits Begin" cards: image over copy, and a full-width
       48px button — 16px type with 16 / 24 padding — where desktop has the
       20px / 44px one. */
    .hsm-rd-card .hsm-rd-btn {
        width: 100%;
        padding: 16px 24px;
        font-size: 16px;
    }

    .hsm-rd-final {
        padding: 48px 0;
    }

    .hsm-rd-final__inner {
        gap: 24px;
        text-align: center;
    }

    .hsm-rd-final__media {
        order: -1;
        aspect-ratio: 350 / 233;
    }

    .hsm-rd-final__title {
        font-size: 24px;
    }

    .hsm-rd-final__body {
        margin: 16px 0 24px;
        font-size: 16px;
        line-height: 1.4;
    }
}


/* "Hosting or Sitting?" popup (Figma 2768-25432): 400 wide, 16:9 photograph,
   16px padding, centred title and copy, a full-width "Got It". */

.hsm-rd-dialog--warning {
    width: min(400px, calc(100vw - 32px));
}

.hsm-rd-dialog--warning[open] {
    flex-direction: column;
}

.hsm-rd-dialog__alert {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 16px;
    text-align: center;
}

.hsm-rd-dialog__alert .hsm-rd-dialog__title {
    margin: 0;
}

.hsm-rd-dialog__alert p {
    margin: 0;
    font-size: 20px;
    line-height: 1.5;
}

.hsm-rd-dialog__alert .hsm-rd-btn {
    width: 100%;
}


/* ─── Section divider ─────────────────────────────────────────────────────
   Figma 2452-4677: hairlines in gold-300 either side of a 32 × 27 house, 40px
   between them, 16px above and below. */

.hsm-rd-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 16px 40px;
    background: var(--rd-white);
}

.hsm-rd-divider__line {
    flex: 1 1 0;
    min-width: 0;
    height: 0;
    border-top: 1px solid var(--rd-gold-300);
}

.hsm-rd-divider__icon {
    flex: 0 0 auto;
}

@media (max-width: 900px) {
    .hsm-rd-divider {
        gap: 16px;
        padding: 24px 20px;
    }
}


/* ─── File hero (Forms & Guidelines) ──────────────────────────────────────
   Figma 2387-19608: 400 of copy, a 40px gap, then 920 holding an 800-wide
   list of file cards, on the gold-to-white wash with no photograph. */

.hsm-rd-filehero {
    /* The Figma wash is a fixed 832px block behind the page (712 below the
       120px header), not stretched over the section — a long page such as the
       Terms stays white after it. */
    background: var(--rd-white) linear-gradient(to bottom, var(--rd-cream) 10%, rgba(255, 255, 255, 0.8) 75%, var(--rd-white) 100%) no-repeat top / 100% 712px;
    padding: 40px 0 49px;
}

.hsm-rd-filehero__inner {
    display: grid;
    grid-template-columns: minmax(0, 400fr) minmax(0, 920fr);
    gap: 40px;
    align-items: start;
}

.hsm-rd-filehero__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 800px;
    margin: 0 0 0 auto;
    padding: 0;
    list-style: none;
}

/* Card: white, 1px grey border, 12px radius, 16px padding, a 1px shadow. */
.hsm-rd-file {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 16px;
    background: var(--rd-white);
    border: 1px solid var(--rd-rule);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.hsm-rd-file__icon {
    flex: 0 0 16px;
    align-self: flex-start;
    margin: 6px -24px 0 0;
}

.hsm-rd-file__info {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    min-width: 0;
    font-family: var(--rd-font);
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-file__title {
    color: var(--rd-ink);
    font-weight: 700;
}

.hsm-rd-file__desc {
    color: var(--rd-muted);
}

/* Outline button: green hairline, green text, 18px (Figma 2068-10463). */
.hsm-rd-btn--outline {
    padding: 11px;
    border: 1px solid var(--rd-green);
    background: transparent;
    color: var(--rd-green);
    font-size: 18px;
    flex: 0 0 auto;
}

.hsm-rd-btn--outline:hover,
.hsm-rd-btn--outline:focus {
    background: var(--rd-green);
    color: var(--rd-white);
}

/* A page with no recognisable files falls back to its own text. */
.hsm-rd-prose {
    padding: 40px 0 80px;
    font-family: var(--rd-font);
    font-size: 18px;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .hsm-rd-filehero {
        padding: 32px 0 40px;
    }

    .hsm-rd-filehero__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .hsm-rd-file {
        flex-wrap: wrap;
        gap: 12px 16px;
    }

    .hsm-rd-file__icon {
        margin-right: 0;
    }

    .hsm-rd-file__info {
        flex: 1 1 calc(100% - 40px);
    }

    .hsm-rd-file .hsm-rd-btn {
        width: 100%;
    }
}


/* ─── Text page (Terms & Conditions) ──────────────────────────────────────
   Figma 2387-20211. The page's own content, 800 wide, in Arial 18/1.5; the
   summary at the top (.intro_blurb in the page) is the cream card; section
   headings are 20px bold and the document heading 24px. */

.hsm-rd-textpage {
    padding-bottom: 49px;
}

.hsm-rd-article {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    color: var(--rd-ink);
    font-family: var(--rd-font);
    font-size: 18px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.hsm-rd-article p {
    margin: 0 0 18px;
}

.hsm-rd-article h2 {
    margin: 40px 0 24px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hsm-rd-article h3,
.hsm-rd-article h4 {
    margin: 32px 0 16px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
}

.hsm-rd-article ul,
.hsm-rd-article ol {
    margin: 0 0 18px;
    padding-left: 27px;
}

.hsm-rd-article a {
    color: var(--rd-green);
    text-decoration: underline;
}

/* The summary box. */
.hsm-rd-article .intro_blurb {
    margin: 0 0 40px;
    padding: 40px;
    background: var(--rd-cream);
    border: 1px solid var(--rd-gold-300);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.hsm-rd-article .intro_blurb > :first-child {
    font-weight: 700;
}

/* The page centres its four points inline; the design sets them left. */
.hsm-rd-article .intro_blurb p {
    text-align: left !important;
}

.hsm-rd-article .intro_blurb > :last-child {
    margin-bottom: 0;
}

/* Not in the design. */
.hsm-rd-article .intro_blurb .signature {
    display: none;
}

@media (max-width: 767px) {
    .hsm-rd-article .intro_blurb {
        padding: 24px;
    }
}


/* ─── Contact ─────────────────────────────────────────────────────────────
   Figma 2387-17969. The title block on the left (the lede is the 32px
   "Have a question?" line, the note an 18px paragraph) and Contact Form 7's
   form on the right at 800: name and email side by side, then subject and the
   tall message box, then "* Required", the Turnstile check and the button. */

.hsm-rd-contact .hsm-rd-page-hero__lede {
    margin-top: 40px;
}

.hsm-rd-contact__note {
    margin: 40px 0 0;
    color: var(--rd-ink);
    font-family: var(--rd-font);
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-contact__form {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    font-family: var(--rd-font);
}

.hsm-rd-contact .wpcf7-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 40px;
    align-items: start;
}

.hsm-rd-contact .wpcf7-form > * {
    grid-column: 1 / -1;
    margin: 0;
}

.hsm-rd-contact .wpcf7-form > .hidden-fields-container {
    display: none;
}

.hsm-rd-contact .wpcf7-form > p:has([name="your-name"]),
.hsm-rd-contact .wpcf7-form > p:has([name="your-email"]) {
    grid-column: span 1;
}

.hsm-rd-contact .wpcf7-form label {
    display: block;
    color: var(--rd-ink);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}

.hsm-rd-req {
    color: var(--rd-red);
}

.hsm-rd-contact .wpcf7-form-control-wrap {
    display: block;
    margin-top: 8px;
}

.hsm-rd-contact input[type="text"],
.hsm-rd-contact input[type="email"],
.hsm-rd-contact textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--rd-rule);
    border-radius: 8px;
    background: var(--rd-white);
    color: var(--rd-ink);
    font-family: var(--rd-font);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
}

.hsm-rd-contact textarea {
    height: 273px;
    resize: vertical;
}

.hsm-rd-contact input:focus,
.hsm-rd-contact textarea:focus {
    outline: 2px solid var(--rd-green);
    outline-offset: 1px;
}

.hsm-rd-contact__required {
    color: var(--rd-muted);
    font-size: 18px;
    line-height: 1.5;
}

/* "* Required" on the left, the check and the button on the right, on one
   row (Figma 2387-17969). The template wraps the three in __actions. */
.hsm-rd-contact__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 40px;
    align-items: start;
}

.hsm-rd-contact__actions > * {
    margin: 0;
}

.hsm-rd-contact__actions > p:has(.wpcf7-submit) {
    justify-self: end;
}

/* Contact Form 7 leaves a hidden 24px spinner, with 24px margins, after the
   button; out of the flow it stops pushing the button off the form's right
   edge. It shows beside the button while sending. */
.hsm-rd-contact__actions > p:has(.wpcf7-submit) {
    position: relative;
}

.hsm-rd-contact .wpcf7-spinner {
    position: absolute;
    top: 50%;
    left: -36px;
    margin: -12px 0 0;
}

.hsm-rd-contact .wpcf7-submit {
    padding: 12px 24px;
    border: 1px solid var(--rd-green);
    border-radius: 8px;
    background: var(--rd-green);
    color: var(--rd-white);
    font-family: var(--rd-font);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.hsm-rd-contact .wpcf7-submit:hover,
.hsm-rd-contact .wpcf7-submit:focus {
    background: var(--rd-green-dark);
}

.hsm-rd-contact .wpcf7-submit:disabled {
    border-color: var(--rd-rule);
    background: var(--rd-rule);
    color: var(--rd-muted);
    cursor: not-allowed;
}

.hsm-rd-contact .wpcf7-not-valid-tip {
    display: block;
    margin-top: 8px;
    color: var(--rd-red);
    font-size: 16px;
    line-height: 1.4;
}

/* A field with an error keeps the plain field border; the message under it
   carries the error (Figma 3319-22498). */
.hsm-rd-contact input.wpcf7-not-valid,
.hsm-rd-contact textarea.wpcf7-not-valid {
    border-color: var(--rd-rule);
}

/* Contact Form 7's own rule is `.wpcf7 form .wpcf7-response-output` (margin
   2em 0.5em 1em, 2px border, 0.2em 1em padding), which outranks a two-class
   selector, so this is three: the banner then runs the full width of the form. */
.hsm-rd-contact .wpcf7-form .wpcf7-response-output {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--rd-rule);
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.4;
}

/* The "One or more fields have an error" banner: gold, centred, and above
   the fields rather than after the button. */
.hsm-rd-contact .wpcf7-form.invalid .wpcf7-response-output,
.hsm-rd-contact .wpcf7-form.unaccepted .wpcf7-response-output,
.hsm-rd-contact .wpcf7-form.failed .wpcf7-response-output,
.hsm-rd-contact .wpcf7-form.aborted .wpcf7-response-output,
.hsm-rd-contact .wpcf7-form.spam .wpcf7-response-output {
    order: -1;
    /* 24px row gap + 16px = the design's 40px between the banner and the fields. */
    margin-bottom: 16px;
    border-color: var(--rd-gold);
    background: #f3e8b2;
    color: #000;
    text-align: center;
}

@media (max-width: 767px) {
    .hsm-rd-contact .wpcf7-form {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .hsm-rd-contact .wpcf7-form > p:has([name="your-name"]),
    .hsm-rd-contact .wpcf7-form > p:has([name="your-email"]) {
        grid-column: 1 / -1;
    }

    .hsm-rd-contact__actions {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .hsm-rd-contact__actions > p:has(.wpcf7-submit) {
        justify-self: stretch;
    }

    .hsm-rd-contact .wpcf7-submit {
        width: 100%;
    }

    .hsm-rd-contact .hsm-rd-page-hero__lede,
    .hsm-rd-contact__note {
        margin-top: 24px;
    }
}


/* ─── Reviews ─────────────────────────────────────────────────────────────
   Figma 2387-20480 / popup 2456-7135. Title, line and button on the left; a
   three-column grid of the home page's review cards on the right, then the
   pager. Wider than the 800 the other file pages use: the comp's grid runs
   from x=500 to the right margin. */

.hsm-rd-reviews .hsm-rd-filehero__inner {
    grid-template-columns: minmax(0, 400fr) minmax(0, 920fr);
}

.hsm-rd-reviews__write {
    margin: 40px 0 0;
}

.hsm-rd-reviews__main {
    min-width: 0;
}

.hsm-rd-reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 24px;
    align-items: start;
}

.hsm-rd-reviews .hsm-rd-paging {
    margin-top: 56px;
}

.hsm-rd-reviews .hsm-rd-paging__count {
    align-self: center;
}

/* The full review: 400 wide, 40px of padding, the author underneath. */
.hsm-rd-dialog--review {
    width: min(400px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
}

.hsm-rd-dialog__review {
    padding: 40px;
    font-family: var(--rd-font);
    font-size: 18px;
    line-height: 1.5;
    overflow-y: auto;
}

.hsm-rd-dialog__review p {
    margin: 0 0 24px;
}

.hsm-rd-dialog__review .hsm-rd-testimonial__author {
    margin-top: 0;
    padding-left: 0;
}

@media (max-width: 767px) {
    .hsm-rd-reviews .hsm-rd-filehero__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hsm-rd-reviews__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .hsm-rd-reviews__write {
        margin-top: 24px;
    }
}


/* ─── FAQ accordion ───────────────────────────────────────────────────────
   Figma 2816-20138 / 2816-20216. 640 wide, centred in the 920 column; each
   item has a 1px #3b3b3b rule under it, an 18px bold question with a chevron
   (right when closed, down when open) and an 18px answer. Native <details>,
   so it needs no script. */

.hsm-rd-faq .hsm-rd-page-hero__lede {
    margin-top: 40px;
}

.hsm-rd-faq__other {
    margin-top: 40px;
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    font-family: var(--rd-font);
}

.hsm-rd-accordion__item {
    scroll-margin-top: 96px; /* clear the sticky header when linked to by #id */
    padding-bottom: 16px;
    border-bottom: 1px solid #3b3b3b;
}

.hsm-rd-accordion__head {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    list-style: none;
    cursor: pointer;
}

.hsm-rd-accordion__head::-webkit-details-marker {
    display: none;
}

.hsm-rd-accordion__q {
    flex: 1 1 0;
    min-width: 0;
    color: var(--rd-ink);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}

.hsm-rd-accordion__chev {
    flex: 0 0 16px;
    margin-top: 6px;
    color: var(--rd-ink);
    transition: transform 0.15s ease;
}

.hsm-rd-accordion__item[open] .hsm-rd-accordion__chev {
    transform: rotate(90deg);
}

.hsm-rd-accordion__a {
    margin-top: 8px;
    color: var(--rd-ink);
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-accordion__a p {
    margin: 0 0 16px;
}

.hsm-rd-accordion__a > :last-child {
    margin-bottom: 0;
}

.hsm-rd-accordion__a a {
    color: var(--rd-green);
    text-decoration: underline;
}

@media (max-width: 767px) {
    .hsm-rd-faq .hsm-rd-page-hero__lede,
    .hsm-rd-faq__other {
        margin-top: 24px;
    }

    .hsm-rd-accordion__head {
        gap: 16px;
    }
}


/* ─── Blog post ───────────────────────────────────────────────────────────
   Figma 2497-21096. Two 640 columns, 80 apart: crumb, title and text; the
   photograph (1536 : 1170) and the byline. */

.hsm-rd-post-page {
    padding: 40px 0 49px;
}

.hsm-rd-post-page__inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 80px;
    align-items: start;
}

.hsm-rd-post-page__crumb {
    display: block;
    margin: 0 0 12px;
    color: var(--rd-text-secondary);
    font-family: var(--rd-font);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.hsm-rd-post-page__crumb:hover,
.hsm-rd-post-page__crumb:focus {
    text-decoration: underline;
}

.hsm-rd-post-page__body {
    max-width: none;
    margin: 40px 0 0;
}

.hsm-rd-post-page__photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1536 / 1170;
    object-fit: cover;
}

.hsm-rd-post-page__by {
    display: flex;
    gap: 16px;
    margin: 40px 0 0;
    font-family: var(--rd-font);
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-post-page__by-who {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hsm-rd-post-page__by-who strong {
    color: var(--rd-muted);
}

.hsm-rd-post-page__by-who span {
    color: #9d9d9d;
}

@media (max-width: 767px) {
    .hsm-rd-post-page__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    /* The photograph leads on a phone, ahead of the text. */
    .hsm-rd-post-page__side {
        order: -1;
    }

    .hsm-rd-post-page__body {
        margin-top: 24px;
    }
}

/* ─── Sign-in screens: split layout ───────────────────────────────────────
   Figma Log In / Sign Up - Desktop (2756-20626, 2636-15268): a 720px column
   of form, a full-height photograph the other half, 830px tall, then the
   footer. No site header — only the logo, above the title. Overrides the
   narrow single-column card these pages used to be. */

.hsm-redesign--auth .hsm-rd-header,
.hsm-redesign--members-login .hsm-rd-header {
    display: none;
}

.hsm-rd-auth--split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 830px;
    padding: 0;
    background: var(--rd-white);
}

.hsm-rd-auth__panel {
    padding: 40px;
}

.hsm-rd-auth__content {
    max-width: 640px;
    margin-top: 40px;
}

.hsm-rd-auth__logo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 40px;
}

.hsm-rd-auth__logo-mark {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.hsm-rd-auth__logo-type {
    width: 213px;
    height: auto;
}

.hsm-rd-auth__photo {
    padding: 0;
    overflow: hidden;
}

.hsm-rd-auth__photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 830px;
    object-fit: cover;
}

.hsm-rd-auth--split .hsm-rd-auth__title {
    margin: 40px 0 0;
    text-align: left;
    color: var(--rd-red);
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hsm-rd-auth--split .hsm-rd-auth__lede {
    margin: 8px 0 0;
    text-align: left;
    color: var(--rd-ink);
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-auth--split .hsm-rd-auth__lede a,
.hsm-rd-auth__link {
    color: var(--rd-green);
    text-decoration: underline;
    text-underline-position: from-font;
}

.hsm-rd-auth--split .hsm-rd-auth__notice {
    margin-top: 24px;
}

/* The form is no longer a card. */
.hsm-rd-auth--split .hsm-rd-auth__form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.hsm-rd-auth__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
}

.hsm-rd-auth__row--between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hsm-rd-auth__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.hsm-rd-auth__label {
    color: var(--rd-ink);
    font-family: var(--rd-font);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.hsm-rd-auth__input-wrap {
    position: relative;
    display: block;
}

.hsm-rd-auth__input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--rd-rule);
    border-radius: 8px;
    background: var(--rd-white);
    color: var(--rd-ink);
    font-family: var(--rd-font);
    font-size: 18px;
    line-height: 1;
}

.hsm-rd-auth__input-wrap .hsm-rd-auth__input {
    padding-right: 48px;
}

.hsm-rd-auth__input:focus {
    outline: 2px solid var(--rd-green);
    outline-offset: 1px;
}

.hsm-rd-auth__reveal {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--rd-ink);
    cursor: pointer;
}

/* The slash is the "hidden" state; showing the password removes it. */
.hsm-rd-auth__reveal.is-on .hsm-rd-auth__slash {
    display: none;
}

.hsm-rd-auth__check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--rd-ink);
    font-family: var(--rd-font);
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-auth__check input {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin: 6px 0 0;
    accent-color: var(--rd-green);
}

.hsm-rd-auth__check--muted {
    color: var(--rd-muted);
}

.hsm-rd-auth__check a {
    color: var(--rd-green);
    text-decoration: underline;
}

.hsm-rd-auth__required {
    color: var(--rd-muted);
    font-family: var(--rd-font);
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-auth__agreements {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hsm-rd-auth--split .hsm-rd-btn--primary[type="submit"] {
    font-size: 20px;
}

/* Forgot / reset screens keep their single stacked fields. */
.hsm-rd-auth--split .hsm-rd-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hsm-rd-auth--split .hsm-rd-auth__submit {
    width: auto;
    align-self: flex-start;
    font-size: 20px;
}

.hsm-rd-auth--split .hsm-rd-auth__aside {
    margin: 24px 0 0;
    text-align: left;
    font-size: 18px;
}

/* Tablet portrait (768-1023px): the half-and-half split left the form about
   380px wide, with the fields and "Remember my credentials" cramped. The photo
   keeps its place but narrows to a fixed 240px strip, so the form gets the rest
   (about 450-700px). */
@media (min-width: 768px) and (max-width: 1023px) {
    .hsm-rd-auth--split {
        grid-template-columns: minmax(0, 1fr) 240px;
    }

    .hsm-rd-auth__panel {
        padding: 40px 32px;
    }
}

@media (max-width: 767px) {
    .hsm-rd-auth--split {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .hsm-rd-auth__photo {
        display: none;
    }

    .hsm-rd-auth__panel {
        padding: 24px 20px 40px;
    }

    .hsm-rd-auth__row {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .hsm-rd-auth__row--between {
        flex-wrap: wrap;
        gap: 16px;
    }
}


/* ─── Pricing ("Join us") ─────────────────────────────────────────────────
   Figma 2634-7823: the title, then three 437-wide cards 24 apart. Each card
   has a 1px border in its membership's colour (green, orange, gold), 16px of
   padding, no fill (the page wash shows through), a header, the price (32px with a small "/year"), a full-width
   button in the same colour and a bulleted list in grey. */

.hsm-rd-pricing {
    padding: 40px 0 52px;
}

/* "Have a coupon? Enter it at checkout." Many members arrive with a code
   and were unsure where it goes. */
.hsm-rd-pricing__coupon {
    margin: 24px 0 0;
    text-align: center;
    color: var(--rd-ink);
    font-family: var(--rd-font);
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-pricing__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 8px;
    padding-top: 8px;
    align-items: stretch;
}

.hsm-rd-plan {
    --plan: var(--rd-green);
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 16px;
    border: 1px solid var(--plan);
    border-radius: 16px;
    font-family: var(--rd-font);
}

.hsm-rd-plan--sitter { --plan: #ef691a; }
.hsm-rd-plan--both   { --plan: var(--rd-gold); }

.hsm-rd-plan__title {
    margin: 0;
    color: var(--rd-ink);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
}

.hsm-rd-plan__desc {
    margin: 0;
    color: var(--rd-ink);
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-plan__price {
    margin: 0;
    color: var(--rd-ink);
}

.hsm-rd-plan__price strong {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.hsm-rd-plan__price span {
    margin-left: 4px;
    color: var(--rd-muted);
    font-size: 18px;
}

.hsm-rd-plan__cta {
    display: block;
    padding: 12px;
    border-radius: 8px;
    background: var(--plan);
    color: var(--rd-white);
    font-size: 20px;
    line-height: 1;
    text-align: center;
    text-decoration: none;
}

.hsm-rd-plan__cta:hover,
.hsm-rd-plan__cta:focus {
    filter: brightness(0.92);
    color: var(--rd-white);
}

.hsm-rd-plan__items {
    margin: 0;
    padding-left: 27px;
    color: var(--rd-text-secondary);
    font-size: 18px;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .hsm-rd-pricing__cards {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Side by side, the cards share their rows (subgrid), so a description that
   wraps onto a second line pushes every card's price and button down with it
   and the buttons stay level. */
@media (min-width: 768px) {
    @supports (grid-template-rows: subgrid) {
        .hsm-rd-plan {
            display: grid;
            grid-row: span 4;
            grid-template-rows: subgrid;
            row-gap: 24px;
            align-content: start;
        }
    }
}


/* ─── Checkout ────────────────────────────────────────────────────────────
   Figma 2675-6448. WooCommerce's own markup (see page-redesign-checkout.php),
   re-arranged by making the shortcode's wrappers — .woocommerce and the form —
   `display: contents`, so everything inside becomes one grid:

     left, 720   logo and title, the price, the coupon, the order table
     right, 720  the billing details, then the payment methods and the button

   Only layout and appearance are changed here. Nothing is hidden: a required
   field stays visible, so a member who has to correct something can. */

.hsm-rd-checkout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: dense;
    column-gap: 80px;
    align-content: start;
    padding: 40px;
    background: var(--rd-white);
    font-family: var(--rd-font);
    font-size: 18px;
    line-height: 1.5;
    color: var(--rd-ink);
}

.hsm-rd-checkout > .entry-content,
.hsm-rd-checkout .woocommerce,
.hsm-rd-checkout form.checkout,
.hsm-rd-checkout #order_review {
    display: contents;
}

/* Left column. */
.hsm-rd-checkout__head,
.hsm-rd-checkout__price,
.hsm-rd-checkout .woocommerce-form-login-toggle,
.hsm-rd-checkout .woocommerce-form-login,
.hsm-rd-checkout .checkout_coupon2,
.hsm-rd-checkout .woocommerce-notices-wrapper,
.hsm-rd-checkout #order_review_heading,
.hsm-rd-checkout .shop_table {
    grid-column: 1;
}

.hsm-rd-checkout__head {
    max-width: 640px;
}

.hsm-rd-checkout__head .hsm-rd-auth__title {
    margin: 40px 0 0;
    color: var(--rd-red);
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hsm-rd-checkout .woocommerce-form-login-toggle {
    max-width: 640px;
    margin-top: 8px;
}

.hsm-rd-checkout .woocommerce-info {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--rd-ink);
    font-size: 18px;
}

.hsm-rd-checkout .woocommerce-info::before {
    display: none;
}

.hsm-rd-checkout .woocommerce-info a {
    color: var(--rd-green);
    text-decoration: underline;
}

.hsm-rd-checkout__price {
    max-width: 640px;
    margin: 40px 0 0;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hsm-rd-checkout__price span {
    font-size: inherit;
}

/* The coupon: label above, field and button on one row. */
.hsm-rd-checkout .checkout_coupon2 {
    max-width: 640px;
    margin: 32px 0 0;
    padding: 16px;
}

.hsm-rd-checkout .checkout_coupon2 #coupon_form_inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 16px;
    row-gap: 8px;
    align-items: center;
}

.hsm-rd-checkout .checkout_coupon2 #coupon_form_inner > p:first-child {
    grid-column: 1 / -1;
    margin: 0;
    font-weight: 700;
}

.hsm-rd-checkout .checkout_coupon2 .form-row {
    margin: 0;
    padding: 0;
    float: none;
    width: auto;
}

.hsm-rd-checkout .checkout_coupon2 .clear {
    display: none;
}

/* Order table: the product on cream, then subtotal and total as plain rows. */
.hsm-rd-checkout #order_review_heading {
    display: none;
}

.hsm-rd-checkout .shop_table {
    width: 100%;
    max-width: 640px;
    margin: 0;
    border: 0;
    border-collapse: collapse;
}

.hsm-rd-checkout .shop_table thead {
    display: none;
}

.hsm-rd-checkout .shop_table td,
.hsm-rd-checkout .shop_table th {
    padding: 8px 16px;
    border: 0;
    background: transparent;
    font-size: 18px;
    text-align: left;
}

.hsm-rd-checkout .shop_table td:last-child,
.hsm-rd-checkout .shop_table th:last-child {
    text-align: right;
}

.hsm-rd-checkout .shop_table .cart_item td {
    padding: 16px;
    background: var(--rd-cream);
    border-top: 1px solid var(--rd-gold-300);
    border-bottom: 1px solid var(--rd-gold-300);
    font-weight: 700;
}

.hsm-rd-checkout .shop_table .cart_item td:first-child {
    border-left: 1px solid var(--rd-gold-300);
    border-radius: 4px 0 0 4px;
}

.hsm-rd-checkout .shop_table .cart_item td:last-child {
    border-right: 1px solid var(--rd-gold-300);
    border-radius: 0 4px 4px 0;
}

.hsm-rd-checkout .shop_table tfoot tr.order-total th,
.hsm-rd-checkout .shop_table tfoot tr.order-total td {
    padding-top: 16px;
    border-top: 1px solid var(--rd-rule);
}

/* Right column. */
.hsm-rd-checkout #customer_details,
.hsm-rd-checkout #payment {
    grid-column: 2;
}

.hsm-rd-checkout #customer_details {
    grid-row: 1;
}

.hsm-rd-checkout #customer_details .col-1,
.hsm-rd-checkout #customer_details .col-2 {
    float: none;
    width: auto;
}

.hsm-rd-checkout #customer_details h3 {
    margin: 0 0 16px;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Fields. */
.hsm-rd-checkout .form-row {
    margin: 0 0 16px;
}

.hsm-rd-checkout .form-row-first,
.hsm-rd-checkout .form-row-last {
    float: none;
    width: auto;
}

.hsm-rd-checkout .woocommerce-billing-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
}

.hsm-rd-checkout .woocommerce-billing-fields__field-wrapper .form-row-wide {
    grid-column: 1 / -1;
}

.hsm-rd-checkout label {
    display: block;
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.hsm-rd-checkout input.input-text,
.hsm-rd-checkout textarea.input-text,
.hsm-rd-checkout select {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--rd-rule);
    border-radius: 8px;
    background: var(--rd-white);
    color: var(--rd-ink);
    font-family: var(--rd-font);
    font-size: 18px;
}

.hsm-rd-checkout .required {
    color: var(--rd-red);
    text-decoration: none;
}

/* Buttons: the coupon is an outline, the order button a solid green. */
.hsm-rd-checkout .checkout_coupon2 .button {
    padding: 11px 16px;
    border: 1px solid var(--rd-green);
    border-radius: 8px;
    background: transparent;
    color: var(--rd-green);
    font-family: var(--rd-font);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.hsm-rd-checkout #place_order {
    padding: 12px 16px;
    border: 1px solid var(--rd-green);
    border-radius: 8px;
    background: var(--rd-green);
    color: var(--rd-white);
    font-family: var(--rd-font);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.hsm-rd-checkout #place_order:hover,
.hsm-rd-checkout #place_order:focus {
    background: var(--rd-green-dark);
}

/* Payment methods: each a bordered, rounded block with the choice on a grey
   header and the gateway's own form below. */
.hsm-rd-checkout #payment ul.payment_methods {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.hsm-rd-checkout #payment ul.payment_methods > li {
    margin: 0 0 16px;
    border: 1px solid var(--rd-rule);
    border-radius: 12px;
    overflow: hidden;
}

.hsm-rd-checkout #payment ul.payment_methods > li > label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 20px 16px;
    font-weight: 400;
}

.hsm-rd-checkout #payment ul.payment_methods > li > input[type="radio"] {
    margin: 0 0 0 16px;
    accent-color: var(--rd-green);
}

.hsm-rd-checkout #payment ul.payment_methods > li > input[type="radio"]:checked + label {
    background: #f4f4f4;
}

.hsm-rd-checkout #payment .payment_box {
    padding: 16px;
    background: var(--rd-white);
}

.hsm-rd-checkout #payment .stripe-icon,
.hsm-rd-checkout #payment label img {
    max-height: 24px;
    width: auto;
}

@media (max-width: 900px) {
    .hsm-rd-checkout {
        grid-template-columns: minmax(0, 1fr);
        padding: 24px 20px 40px;
    }

    .hsm-rd-checkout #customer_details,
    .hsm-rd-checkout #payment {
        grid-column: 1;
        grid-row: auto;
    }

    .hsm-rd-checkout__price {
        font-size: 36px;
    }
}

/* ─── How It Works: type sizes and colours, desktop and mobile ────────────
   Figma How It Works - Desktop (1196-6342) and How It Works - Mobile
   (1280-15106), measured 2026-10-05. Last in the file so it replaces the
   earlier, smaller sizes (13–15px) these sections were first built with.

   Desktop: 20px bold coloured eyebrow (green for hosts, orange for sitters),
   32px title, 18/1.5 copy; a CTA band that is green for hosts and orange for
   sitters. Mobile: the same at 24px titles, a stacked layout, and the
   mobile-only differences noted below. */

.hsm-rd-overview__title {
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hsm-rd-overview__lede {
    margin-top: 16px;
    max-width: 640px;
    color: var(--rd-ink);
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-step__text {
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-audience {
    padding: 80px 0;
}

.hsm-rd-audience__intro {
    gap: 80px;
    align-items: center;
}

.hsm-rd-audience__eyebrow {
    margin: 0 0 16px;
    color: var(--rd-green);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
}

.hsm-rd-audience--sitters .hsm-rd-audience__eyebrow {
    color: #ef691a;
}

.hsm-rd-audience__title {
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hsm-rd-audience__lede {
    margin: 16px 0 0;
    color: var(--rd-ink);
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-audience__subtitle {
    margin: 24px 0 0;
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-audience__benefits {
    margin: 0;
    padding-left: 27px;
    color: var(--rd-ink);
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-audience__media {
    border-radius: 0;
    aspect-ratio: 3 / 2;
}

.hsm-rd-timeline {
    margin-top: 40px;
    padding: 80px 0;
}

.hsm-rd-timeline__dot {
    width: 16px;
    height: 16px;
}

.hsm-rd-timeline__label {
    max-width: none;
    font-size: 18px;
    line-height: 1.5;
}

/* Band: full-bleed colour, a cream card (24 radius, 40 padding, 80 between
   the question and the button) floating on it. */
.hsm-rd-band {
    padding: 80px 0;
}

.hsm-rd-band--orange {
    background: #ef691a;
}

.hsm-rd-band__card {
    width: fit-content;
    max-width: 680px;
    text-wrap: pretty;
    gap: 80px;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 16px 16px rgba(12, 12, 13, 0.1), 0 4px 2px rgba(12, 12, 13, 0.05);
}

.hsm-rd-band__text {
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hsm-rd-combined {
    padding: 80px 0;
}

.hsm-rd-combined__inner {
    gap: 80px;
}

.hsm-rd-combined__media {
    border-radius: 0;
    aspect-ratio: 3 / 2;
}

.hsm-rd-combined__eyebrow {
    margin: 0 0 16px;
    color: var(--rd-muted);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
}

.hsm-rd-combined__title {
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hsm-rd-combined__lede {
    margin: 16px 0 0;
    color: var(--rd-ink);
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-combined__subtitle {
    margin: 24px 0 0;
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-combined__benefits {
    margin: 0 0 40px;
    padding-left: 27px;
    color: var(--rd-ink);
    font-size: 18px;
    line-height: 1.5;
}

/* ── Mobile (390 design; stacked from 900 down) ── */

@media (max-width: 900px) {

    /* Hero: title and line left-aligned at 36 / 18, the photograph below in
       a 16px-radius, shadowed 3 : 2 frame, the whole thing on the full-hero
       wash. */
    .hsm-redesign--how-it-works .hsm-rd-page-hero {
        padding: 32px 0;
    }

    .hsm-redesign--how-it-works .hsm-rd-page-hero__inner {
        gap: 24px;
    }

    .hsm-redesign--how-it-works .hsm-rd-page-hero__title {
        font-size: 36px;
        line-height: 1.15;
    }

    .hsm-redesign--how-it-works .hsm-rd-page-hero__lede {
        margin-top: 12px;
        font-size: 18px;
        line-height: 1.5;
    }

    .hsm-redesign--how-it-works .hsm-rd-page-hero__media {
        border-radius: 16px;
        aspect-ratio: 3 / 2;
    }

    .hsm-rd-overview {
        padding: 48px 0;
    }

    .hsm-rd-overview__title {
        font-size: 24px;
    }

    .hsm-rd-overview__lede {
        margin-top: 12px;
    }

    .hsm-rd-overview__steps {
        gap: 32px;
        margin-top: 32px;
    }

    .hsm-rd-step {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 32px;
    }

    .hsm-rd-overview__skips {
        gap: 16px;
        margin-top: 32px;
    }

    .hsm-rd-audience {
        padding: 48px 0;
    }

    .hsm-rd-audience__intro {
        gap: 32px;
        align-items: start;
    }

    .hsm-rd-audience__eyebrow {
        margin-bottom: 12px;
    }

    .hsm-rd-audience__title {
        font-size: 24px;
    }

    .hsm-rd-audience__lede {
        margin-top: 12px;
    }

    .hsm-rd-timeline {
        margin-top: 32px;
        padding: 0 12px 0 34px;
        gap: 0;
    }

    .hsm-rd-timeline__step {
        min-height: 84px;
        gap: 24px;
    }

    /* The cream tips box: 20px of padding, a 24px title, a 16px line, then the
       questions with 80 × 96 thumbnails. */
    .hsm-rd-tips {
        margin-top: 32px;
        padding: 20px;
        gap: 40px;
    }

    .hsm-rd-tips__title {
        font-size: 24px;
    }

    .hsm-rd-tips__lede {
        margin-top: 8px;
        font-size: 16px;
        line-height: 1.4;
    }

    .hsm-rd-tips__list {
        gap: 40px;
    }

    .hsm-rd-tip {
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 16px;
        align-items: start;
    }

    .hsm-rd-tip__media {
        aspect-ratio: 80 / 96;
    }

    /* Full-bleed colour with a cream card inside: 32 / 16 outside, 24 inside,
       the question centred at 24px over a full-width button. */
    .hsm-rd-band {
        padding: 32px 0;
    }

    .hsm-rd-band__card {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        padding: 24px;
        text-align: center;
    }

    .hsm-rd-band .hsm-rd-btn {
        width: 100%;
    }

    /* Combined: the photograph first, then the copy, then a full-width
       button. */
    .hsm-rd-combined {
        padding: 48px 0;
    }

    .hsm-rd-combined__inner {
        gap: 24px;
    }

    .hsm-rd-combined__eyebrow {
        font-size: 18px;
    }

    .hsm-rd-combined__title {
        font-size: 24px;
    }

    .hsm-rd-combined__copy .hsm-rd-btn {
        display: flex;
        width: 100%;
    }

    .hsm-rd-combined__benefits {
        margin-bottom: 24px;
    }
}

/* ─── Home: Why HSM and the reviews, desktop and mobile ───────────────────
   Figma 1196-5460 / 1196-5472 (desktop) and 1406-26124 / 1406-26134 (mobile),
   measured 2026-10-05. Replaces the 15px / 22px sizes these two were first
   built with. */

.hsm-rd-why {
    padding: 40px 0;
}

.hsm-rd-why__inner {
    gap: 80px;
    align-items: start;
}

.hsm-rd-why__title {
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hsm-rd-why__body {
    margin-top: 16px;
    color: var(--rd-white);
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-why__subtitle {
    margin-top: 27px;
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-why__list {
    margin: 16px 0 0;
    padding-left: 27px;
    color: var(--rd-white);
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-why__stats {
    gap: 64px 40px;
    align-self: center;
}

.hsm-rd-stat__figure {
    font-size: 48px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hsm-rd-stat__label {
    margin-top: 8px;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Reviews: a cream speech bubble (32px on three corners, square at the
   bottom left), indented 20px from the author's avatar beneath it. */
.hsm-rd-testimonial__card {
    margin-left: 20px;
    padding: 24px;
    border: 1px solid var(--rd-gold-300);
    border-radius: 32px 32px 32px 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.hsm-rd-testimonial__quote {
    color: #000;
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-testimonial__author {
    padding-left: 0;
}

@media (max-width: 900px) {

    .hsm-rd-why {
        padding: 56px 0;
    }

    .hsm-rd-why__inner {
        gap: 32px;
    }

    .hsm-rd-why__stats {
        gap: 40px 16px;
    }

    .hsm-rd-stat__label {
        font-size: 14px;
        letter-spacing: -0.02em;
    }

    .hsm-rd-testimonials,
    .hsm-rd-blog {
        padding: 56px 0;
    }

    .hsm-rd-section-title {
        margin-bottom: 32px;
        font-size: 24px;
    }

    .hsm-rd-testimonials__grid {
        gap: 24px;
    }

    .hsm-rd-testimonial__card {
        padding: 16px;
    }

    .hsm-rd-testimonial__quote {
        font-size: 16px;
        line-height: 1.4;
    }

    /* Footer, mobile: copyright, then the three link groups 40px apart. */
    .hsm-rd-footer {
        padding: 40px 0;
    }

    .hsm-rd-footer__inner {
        gap: 40px;
    }
}


/* The description under a membership's name in the order table. */
.hsm-rd-checkout__item-desc {
    display: block;
    margin-top: 4px;
    color: var(--rd-muted);
    font-weight: 400;
}

/* A coupon already applied (the renewal links add one): its row reads
   "Coupon: code   −$15.80 [Remove]", with the saving in green and the Remove
   link small and underlined. */
.hsm-rd-checkout .shop_table tr.cart-discount td {
    color: var(--rd-green);
}

.hsm-rd-checkout .shop_table .woocommerce-remove-coupon {
    margin-left: 8px;
    color: var(--rd-muted);
    font-size: 14px;
    font-weight: 400;
    text-decoration: underline;
}

/* ─── Checkout: corrections after seeing it rendered ──────────────────────
   1. Left items shared rows with the payment column, so the tall payment
      block stretched the rows beside it and opened a big gap in the left
      column. Now the left items stack in column 1 in their own rows and the
      payment block spans all of them, with a final 1fr row to take up its
      height.
   2. The title inherited the old centred auth title.
   3. Notices, the order table and the coupon link share one 640px measure.
   4. Payment methods: white blocks with a hairline, compact, a grey header
      only on the chosen one (the theme was painting each a full grey box). */

.hsm-rd-checkout {
    grid-auto-flow: row;
    grid-template-rows: repeat(11, auto) 1fr;
    align-items: start;
}

.hsm-rd-checkout #payment {
    grid-column: 2;
    grid-row: 1 / span 12;
    align-self: start;
}

/* Everything else is column 1; the billing details come after the order. */
.hsm-rd-checkout > *:not(#payment),
.hsm-rd-checkout .woocommerce > *:not(form),
.hsm-rd-checkout form.checkout > *:not(#order_review) {
    grid-column: 1;
}

.hsm-rd-checkout #customer_details {
    order: 5;
    grid-row: auto;
    margin-top: 40px;
}

.hsm-rd-checkout .hsm-rd-auth__title,
.hsm-rd-checkout__head .hsm-rd-auth__title {
    text-align: left;
}

.hsm-rd-checkout .woocommerce-notices-wrapper,
.hsm-rd-checkout .woocommerce-NoticeGroup,
.hsm-rd-checkout .woocommerce-error,
.hsm-rd-checkout .woocommerce-message,
.hsm-rd-checkout > .entry-content > a,
.hsm-rd-checkout .woocommerce > a {
    max-width: 640px;
}

.hsm-rd-checkout .woocommerce-error,
.hsm-rd-checkout .woocommerce-message {
    margin: 16px 0 0;
    padding: 12px 16px;
    border: 1px solid var(--rd-rule);
    border-radius: 8px;
    background: var(--rd-white);
    color: var(--rd-ink);
    font-size: 16px;
    line-height: 1.4;
    list-style: none;
}

.hsm-rd-checkout .woocommerce-error {
    border-color: var(--rd-red);
    background: #fdecee;
}

.hsm-rd-checkout .woocommerce-message {
    border-color: var(--rd-green);
    background: #e6f2e9;
}

.hsm-rd-checkout .woocommerce-error::before,
.hsm-rd-checkout .woocommerce-message::before {
    display: none;
}

/* The "different coupon?" link. */
.hsm-rd-checkout .woocommerce > a {
    display: block;
    margin-top: 16px;
    color: var(--rd-muted);
    font-size: 16px;
}

/* Payment methods. */
.hsm-rd-checkout #payment ul.payment_methods > li {
    background: var(--rd-white);
}

.hsm-rd-checkout #payment ul.payment_methods > li > label {
    padding: 16px 16px 16px 12px;
    background: transparent;
}

.hsm-rd-checkout #payment ul.payment_methods > li > input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hsm-rd-checkout #payment ul.payment_methods > li > label::before {
    content: "";
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    border: 1px solid var(--rd-neutral-200);
    border-radius: 50%;
    background: var(--rd-white);
}

.hsm-rd-checkout #payment ul.payment_methods > li > input:checked + label::before {
    border: 5px solid var(--rd-green);
}

.hsm-rd-checkout #payment ul.payment_methods > li {
    position: relative;
}

.hsm-rd-checkout #payment .payment_box {
    margin: 0;
    padding: 16px;
    border: 0;
    border-radius: 0;
    background: var(--rd-white);
    color: var(--rd-ink);
    font-size: 16px;
}

.hsm-rd-checkout #payment .payment_box::before {
    display: none;
}

.hsm-rd-checkout #payment .payment_box:empty {
    display: none;
}

.hsm-rd-checkout #place_order {
    float: none;
    text-transform: none;
}

@media (max-width: 900px) {
    .hsm-rd-checkout {
        grid-template-rows: none;
    }

    .hsm-rd-checkout #payment {
        grid-column: 1;
        grid-row: auto;
        margin-top: 32px;
    }
}

/* Payment methods: no grey on the chosen one, and tighter insides. */
.hsm-rd-checkout #payment ul.payment_methods > li,
.hsm-rd-checkout #payment ul.payment_methods > li > input[type="radio"]:checked + label,
.hsm-rd-checkout #payment ul.payment_methods > li > input:checked + label,
.hsm-rd-checkout #payment ul.payment_methods > li.wc_payment_method,
.hsm-rd-checkout #payment .payment_box {
    background: var(--rd-white);
}

.hsm-rd-checkout #payment ul.payment_methods > li {
    margin-bottom: 8px;
}

.hsm-rd-checkout #payment ul.payment_methods > li > label {
    padding: 10px 12px;
    line-height: 1.3;
}

.hsm-rd-checkout #payment .payment_box {
    padding: 0 12px 10px;
}

.hsm-rd-checkout #payment .payment_box > :first-child {
    margin-top: 0;
}

.hsm-rd-checkout #payment .payment_box > :last-child {
    margin-bottom: 0;
}

.hsm-rd-checkout #payment .payment_box p {
    margin: 0 0 8px;
}

.hsm-rd-checkout #payment ul.payment_methods {
    margin-bottom: 16px;
}

/* Coupon: no yellow box. Figma 2675-6629 is a bold line, then the field and an
   outline "Apply Coupon" on one row, on the page's own white. The theme draws
   the box and prints "Please enter your coupon code here:", so the box is
   cleared and the line replaced. */
.hsm-rd-checkout .checkout_coupon2,
.hsm-rd-checkout .checkout_coupon2 #coupon_form_inner {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.hsm-rd-checkout .checkout_coupon2 {
    padding: 16px;
}

.hsm-rd-checkout .checkout_coupon2 #coupon_form_inner {
    padding: 0;
}

.hsm-rd-checkout .checkout_coupon2 #coupon_form_inner > p:first-child {
    font-size: 0;
}

.hsm-rd-checkout .checkout_coupon2 #coupon_form_inner > p:first-child::before {
    content: "If you have a coupon, enter it here:";
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}

.hsm-rd-checkout .checkout_coupon2 #coupon_code {
    height: 44px;
}

.hsm-rd-checkout .checkout_coupon2 .button {
    min-height: 44px;
    padding: 0 16px;
    background: transparent;
    color: var(--rd-green);
    font-weight: 400;
}

.hsm-rd-checkout .checkout_coupon2 .button:hover,
.hsm-rd-checkout .checkout_coupon2 .button:focus {
    background: var(--rd-green);
    color: var(--rd-white);
}

/* ─── "Which FAQ?" popup (Figma 2771-26353) ───────────────────────────────
   400 wide: photograph, red centred title, a green and an orange button. */
.hsm-rd-dialog--choose {
    width: min(400px, calc(100vw - 32px));
}

.hsm-rd-dialog--choose[open] {
    flex-direction: column;
}

.hsm-rd-dialog__choose-img {
    display: block;
    width: 100%;
    aspect-ratio: 400 / 224;
    object-fit: cover;
}

.hsm-rd-dialog__choose-title {
    margin: 0;
    padding: 16px 16px 24px;
    color: var(--rd-red);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.64px;
    text-align: center;
}

.hsm-rd-dialog__choose-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 16px 16px;
}

.hsm-rd-dialog__choose-actions .hsm-rd-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
}

/* ─── Members' Blog (Figma 2634-7446 hero + 2634-7456 list) ───────────────
   The wash runs behind the hero and the top of the list, so it sits on a
   wrapper rather than on the hero alone. */
.hsm-rd-blogpage {
    background: var(--rd-white) linear-gradient(to bottom, var(--rd-cream) 10%, rgba(255, 255, 255, 0.8) 75%, var(--rd-white) 100%) no-repeat top / 100% 712px;
}

.hsm-rd-blogpage .hsm-rd-blogpage__hero {
    background: none;
    padding-bottom: 0;
}

.hsm-rd-blogpage .hsm-rd-blog {
    background: transparent;
}

.hsm-rd-blogpage__card {
    justify-self: end;
    box-sizing: border-box;
    width: 100%;
    max-width: 680px;
    padding: 40px;
    background: var(--rd-cream);
    border: 1px solid var(--rd-gold-300);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    color: var(--rd-ink);
    font-family: var(--rd-font);
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-blogpage__card p {
    margin: 0 0 27px;
}

.hsm-rd-blogpage__card p:last-child {
    margin-bottom: 0;
}

.hsm-rd-blogpage__card a {
    color: var(--rd-green);
    text-decoration: underline;
}

/* ─── Sitter profile (Figma 2763-25138) ───────────────────────────────────
   Two 640 columns, 80 apart. Left: title, location, availability, who, then
   the written answers split by hairlines. Right: main photograph in a white
   frame with a shadow, and a 3-across gallery. */

.hsm-rd-profile {
    padding: 40px 0 80px;
}

.hsm-rd-profile__inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 80px;
    align-items: start;
}

.hsm-rd-profile__content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    min-width: 0;
    color: var(--rd-ink);
    font-family: var(--rd-font);
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-profile__head,
.hsm-rd-profile__facts,
.hsm-rd-profile__who {
    margin: 0 0 -16px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--rd-rule);
}

.hsm-rd-profile__head {
    padding-top: 0;
    margin-bottom: -16px;
}

.hsm-rd-profile__where {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 12px 0 0;
    color: var(--rd-muted);
    font-size: 16px;
    line-height: 1;
}

.hsm-rd-profile__facts {
    display: flex;
    flex-direction: column;
    color: var(--rd-text-secondary);
    font-size: 20px;
}

/* Two columns sized to the longest label, so a label ("Available in:", "Will look
   after:") never wraps onto a second line and the values still line up. The
   per-fact wrappers dissolve into the grid. */
.hsm-rd-profile__facts {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: 16px;
}

.hsm-rd-profile__fact {
    display: contents;
}

.hsm-rd-profile__fact dt {
    padding: 4px 0;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.hsm-rd-profile__fact dd {
    margin: 0;
    padding: 4px 0;
}

.hsm-rd-profile__who {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hsm-rd-profile__host {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hsm-rd-profile__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.hsm-rd-profile__who .hsm-rd-btn {
    font-size: 20px;
}

/* Listing page: "Download PDF" beside Apply. The pair stays together and
   wraps under the host on a narrow screen like Apply alone does. */
.hsm-rd-profile__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.hsm-rd-profile__block {
    padding-bottom: 40px;
    border-bottom: 1px solid var(--rd-rule);
}

.hsm-rd-profile__block h2 {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.hsm-rd-profile__block p,
.hsm-rd-profile__block ul {
    margin: 0 0 16px;
}

.hsm-rd-profile__block > :last-child,
.hsm-rd-profile__block div > :last-child {
    margin-bottom: 0;
}

.hsm-rd-profile__block ul {
    padding-left: 27px;
}

.hsm-rd-profile__links a {
    color: var(--rd-green);
    text-decoration: underline;
}

.hsm-rd-profile__sitters {
    display: flex;
    gap: 16px;
}

.hsm-rd-profile__sitter {
    flex: 1 1 0;
    min-width: 0;
    padding: 16px;
    background: #f4f4f4;
    border-radius: 8px;
}

.hsm-rd-profile__sitter h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
}

.hsm-rd-profile__sitter p {
    display: flex;
    gap: 8px;
    margin: 0 0 8px;
}

.hsm-rd-profile__sitter p strong {
    flex: 0 0 110px;
}

.hsm-rd-profile__sitter p span {
    flex: 1 1 0;
}

.hsm-rd-profile__side {
    display: flex;
    flex-direction: column;
    gap: 40px;
    min-width: 0;
}

.hsm-rd-profile__cover img {
    display: block;
    width: 100%;
    aspect-ratio: 1110 / 740;
    object-fit: cover;
    border: 8px solid #fff;
    box-shadow: 0 2px 10px -6px rgba(0, 0, 0, 0.1), 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.hsm-rd-profile__gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hsm-rd-profile__gallery li {
    position: relative;
    margin: 0;
}

.hsm-rd-profile__gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 180 / 140;
    object-fit: cover;
    border: 8px solid #fff;
    box-shadow: 0 2px 6px -4px rgba(0, 0, 0, 0.1), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    cursor: zoom-in;
}

.hsm-rd-profile__caption {
    position: absolute;
    right: 8px;
    bottom: 8px;
    left: 8px;
    padding: 24px 4px 4px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.9));
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
}

@media (max-width: 767px) {
    .hsm-rd-profile__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .hsm-rd-profile__side {
        order: -1;
    }

    .hsm-rd-profile__gallery {
        gap: 16px;
    }

    .hsm-rd-profile__fact dt {
        flex-basis: 100px;
    }

    .hsm-rd-profile__who {
        flex-wrap: wrap;
    }

    .hsm-rd-profile__sitters {
        flex-direction: column;
    }
}

/* Listing page extras (shares the profile layout above). */
.hsm-rd-adminbar {
    grid-column: 1 / -1;
    margin: 0;
    border: 1px solid #c9d3e6;
    border-left: 4px solid #2f5fd0;
    border-radius: 8px;
    background: #f5f8ff;
    font-family: var(--rd-font);
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}

.hsm-rd-adminbar > summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.hsm-rd-adminbar > summary::-webkit-details-marker {
    display: none;
}

.hsm-rd-adminbar > summary:hover {
    background: #eaf0ff;
}

.hsm-rd-adminbar__badge {
    padding: 3px 8px;
    border-radius: 4px;
    background: #2f5fd0;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hsm-rd-adminbar__title {
    color: #1b2a4a;
    font-size: 16px;
    font-weight: 700;
}

.hsm-rd-adminbar__hint {
    margin-left: auto;
    color: #5b6b8c;
    font-size: 13px;
}

.hsm-rd-adminbar__caret {
    flex: 0 0 auto;
    color: #2f5fd0;
    transition: transform 0.15s ease;
}

.hsm-rd-adminbar[open] > summary {
    border-bottom: 1px solid #c9d3e6;
    margin-bottom: 16px;
}

.hsm-rd-adminbar[open] .hsm-rd-adminbar__caret {
    transform: rotate(180deg);
}

.hsm-rd-adminbar[open] .hsm-rd-adminbar__hint {
    font-size: 0;
}

.hsm-rd-adminbar[open] .hsm-rd-adminbar__hint::after {
    content: "Click to hide";
    font-size: 13px;
}

.hsm-rd-adminbar > :not(summary) {
    margin: 0 16px 16px;
}

.hsm-rd-adminbar h2,
.hsm-rd-adminbar h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.hsm-rd-profile__map {
    width: 100%;
    aspect-ratio: 1464 / 1006;
    border-radius: 8px;
    overflow: hidden;
}

.hsm-rd-profile__links a {
    color: var(--rd-green);
    text-decoration: underline;
    word-break: break-all;
}

.hsm-rd-profile__reviews > :not(h2) {
    margin-top: 16px;
}

.hsm-rd-profile__block:last-child {
    border-bottom: 0;
}

/* Review cards on listings and profiles (Figma "Review", 2631-6927). */
.hsm-rd-profile__reviews {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hsm-rd-profile__reviews h2 {
    margin-bottom: 0;
}

.hsm-rd-review {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    background: #f4f4f4;
    border-radius: 16px;
}

.hsm-rd-review__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hsm-rd-review__author {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-review__author img {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.hsm-rd-review__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.hsm-rd-review__when {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--rd-muted);
    font-size: 16px;
    line-height: 1.4;
}

.hsm-rd-review__stars {
    display: inline-flex;
    gap: 2px;
}

.hsm-rd-review__pill {
    padding: 8px 16px;
    border: 1px solid var(--rd-green);
    border-radius: 9999px;
    color: var(--rd-green);
    font-size: 18px;
    line-height: 1;
    white-space: nowrap;
}

.hsm-rd-profile__block p.hsm-rd-review__text {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-profile__block p.hsm-rd-review__meta {
    margin: 0;
    color: var(--rd-muted);
    font-size: 16px;
    line-height: 1.4;
}

.hsm-rd-review__meta strong {
    color: var(--rd-muted);
}

@media (max-width: 600px) {
    .hsm-rd-review__head {
        flex-wrap: wrap;
    }

    .hsm-rd-review__side {
        align-items: flex-start;
    }
}

/* The admin data as a tidy two-column list. */
.hsm-rd-adminbar__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
    margin: 0 16px 16px;
}

.hsm-rd-adminbar__row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #dbe3f3;
    border-radius: 6px;
}

.hsm-rd-adminbar__row dt {
    color: #5b6b8c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.hsm-rd-adminbar__row dd {
    margin: 0;
    color: #1b2a4a;
    font-size: 15px;
    font-weight: 600;
}

.hsm-rd-adminbar__row a {
    color: #2f5fd0;
    font-weight: 600;
    text-decoration: underline;
}

/* Admin-only "Edit this page" link: a small pill floating at the bottom left,
   instead of a bare text link on its own white strip under the footer. */
.hsm-rd-editlink {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 9990;
    margin: 0;
    padding: 0;
    background: transparent;
}

.hsm-rd-editlink .post-edit-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #0a0a0a;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.15s ease;
}

.hsm-rd-editlink .post-edit-link:hover,
.hsm-rd-editlink .post-edit-link:focus {
    background: var(--rd-green, #04651e);
    color: #fff;
    opacity: 1;
}

/* ─── The search pages' own filter buttons (Figma "Archive Help Bar") ─────
   The listings plugin draws "Try a Filtered Search" and "Join Our Email List"
   itself. Figma has the first as an outline button and no second button, so on
   the redesigned search pages the first is restyled and the second is hidden. */
.hsm-redesign .hsm-rd-listings a.button.filter_toggler_button {
    display: inline-flex;
    align-items: center;
    height: auto;
    min-height: 0;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--rd-green);
    border-radius: 8px;
    box-shadow: none;
    color: var(--rd-green);
    font-family: var(--rd-font);
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    text-transform: none;
}

.hsm-redesign .hsm-rd-listings a.button.filter_toggler_button:hover,
.hsm-redesign .hsm-rd-listings a.button.filter_toggler_button:focus {
    background: var(--rd-green);
    color: #fff;
}

.hsm-redesign .hsm-rd-listings a.button.button-join-mail-list {
    display: none;
}


/* Figma's pagination chevrons are grey, not green. */
.hsm-rd-paging__btn svg {
    color: var(--rd-muted);
}

/* ─── Search pages: the plugin's own filter bar and pagination ────────────
   Both Find a Sitter and Find a House Sit draw these in hsm_advanced_search
   markup, under theme rules with long selectors, hence the weight here. */

.hsm-redesign .hsm-rd-listings .resume_filters,
.hsm-redesign .hsm-rd-listings .job_filters {
    max-width: 1080px;
    margin-right: auto;
    margin-left: auto;
}

/* "Try a Filtered Search": outline, left (Figma "Archive Help Bar"). */
.hsm-redesign .hsm-rd-listings .resume_filters a.button.btn.button-small.btn-small.filter_toggler.filter_toggler_button,
.hsm-redesign .hsm-rd-listings a.button.btn.button-small.btn-small.filter_toggler.filter_toggler_button.button-try-filtered-search {
    display: inline-flex !important;
    align-items: center;
    float: left !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 30px !important;
    padding: 12px !important;
    background: #fff !important;
    border: 1px solid var(--rd-green) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    color: var(--rd-green) !important;
    font-family: var(--rd-font) !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    text-transform: none !important;
}

.hsm-redesign .hsm-rd-listings .resume_filters a.button.filter_toggler_button:hover,
.hsm-redesign .hsm-rd-listings a.button.filter_toggler_button.button-try-filtered-search:hover {
    background: var(--rd-green) !important;
    color: #fff !important;
}

/* "Hosts: Log in to view Sitter profiles ?": right of the button. */
.hsm-redesign .hsm-rd-searchbar-note {
    float: right;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 30px;
    padding: 8px;
    color: var(--rd-text-secondary);
    font-family: var(--rd-font);
    font-size: 18px;
    line-height: 1.5;
}

.hsm-redesign .hsm-rd-searchbar-note a {
    color: var(--rd-green);
    text-decoration: none;
}

.hsm-redesign .hsm-rd-searchbar-note svg {
    flex: 0 0 auto;
    color: var(--rd-muted);
}

/* The result count and numbered pages, over and under the results. */
.hsm-redesign .hsm-rd-paging--search {
    clear: both;
    margin: 0 0 40px;
}

.hsm-redesign .footer_pagination {
    margin-top: 40px;
}

.hsm-redesign .hsm-rd-paging--search .job_search_pagination {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: auto;
    margin: 0;
    text-align: center;
}

.hsm-redesign .hsm-rd-paging--search .job_search_pagination a.hsm-rd-paging__btn,
.hsm-redesign .hsm-rd-paging--search .job_search_pagination span.hsm-rd-paging__btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    float: none !important;
    width: auto;
    height: auto;
    margin: 0;
    padding: 12px !important;
    background: transparent;
    border: 1px solid var(--rd-rule);
    border-radius: 8px;
    color: var(--rd-green);
    font-size: 20px;
    line-height: 1;
    text-decoration: none;
}

.hsm-redesign .hsm-rd-paging--search .job_search_pagination a.hsm-rd-paging__num,
.hsm-redesign .hsm-rd-paging--search .job_search_pagination span.hsm-rd-paging__num {
    min-width: 36px;
    box-sizing: border-box;
}

.hsm-redesign .hsm-rd-paging--search .job_search_pagination a.hsm-rd-paging__btn:hover {
    background: #f4f4f4;
}

.hsm-redesign .hsm-rd-paging--search .job_search_pagination .is-current,
.hsm-redesign .hsm-rd-paging--search .job_search_pagination a.selected {
    background: #f4f4f4;
    color: var(--rd-green);
}

.hsm-redesign .hsm-rd-paging--search .job_search_pagination .is-disabled {
    color: var(--rd-neutral-200);
}

.hsm-redesign .hsm-rd-paging--search .jobs_spinner {
    margin-left: 8px;
}

/* ─── Search pages: the filter panel ──────────────────────────────────────
   No Figma frame draws this panel, so it borrows the design's language: the
   cream card with a gold hairline (as on the blog and Contact), green outline
   chips, green primary buttons, Arial throughout. The markup is the listings
   plugin's, under heavy legacy rules, hence the specificity and !importants. */

.hsm-redesign .hsm-rd-listings .hsm_filter_container {
    position: relative;
    clear: both;
    box-sizing: border-box;
    margin: 0 0 40px !important;
    padding: 24px 32px 8px !important;
    background: var(--rd-cream) !important;
    border: 1px solid var(--rd-gold-300) !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    color: var(--rd-ink);
    font-family: var(--rd-font);
    font-size: 18px;
    line-height: 1.5;
}

.hsm-redesign .hsm-rd-listings .hsm_filter_container .filter_group {
    margin: 0 !important;
    padding: 16px 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--rd-gold-300) !important;
}

.hsm-redesign .hsm-rd-listings .hsm_filter_container .filter_group:last-of-type {
    border-bottom: 0 !important;
}

/* Section titles: sentence case rather than the shouted capitals. */
.hsm-redesign .hsm-rd-listings .hsm_filter_container .filter_section_title,
.hsm-redesign .hsm-rd-listings .hsm_filter_container .filter_group > strong {
    display: inline-block;
    color: var(--rd-ink) !important;
    font-family: var(--rd-font);
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.3;
    text-decoration: none !important;
    text-transform: lowercase !important;
}

.hsm-redesign .hsm-rd-listings .hsm_filter_container .filter_section_title::first-letter,
.hsm-redesign .hsm-rd-listings .hsm_filter_container .filter_group > strong::first-letter {
    text-transform: uppercase;
}

.hsm-redesign .hsm-rd-listings .hsm_filter_container .filter_group > strong a::first-letter {
    text-transform: uppercase;
}

.hsm-redesign .hsm-rd-listings .hsm_filter_container .filter_group > strong a {
    color: inherit !important;
    text-decoration: none !important;
    text-transform: lowercase;
}

/* The filters' (?) icons (hsm_write_tooltip, so hsm_redesign_tip): green and
   22px, beside each filter's heading. */
.hsm-redesign .hsm-rd-listings .hsm_filter_container .hsm-rd-tip-wrap {
    margin-left: 8px;
    color: #04651e;
}

.hsm-redesign .hsm-rd-listings .hsm_filter_container .hsm-rd-tip-btn svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.3;
}

.hsm-redesign .hsm-rd-listings .hsm_filter_container #tooltip_float_right {
    top: 20px !important;
    right: 24px !important;
}

/* Choices as outline chips; the chosen one fills green. The native radios and
   checkboxes are hidden inside their labels. */
.hsm-redesign .hsm-rd-listings .hsm_filter_container label.radio-term,
.hsm-redesign .hsm-rd-listings .hsm_filter_container label.checkbox-term {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    float: none !important;
    width: auto !important;
    margin: 8px 8px 0 0 !important;
    padding: 10px 16px !important;
    background: #fff !important;
    border: 1px solid var(--rd-rule) !important;
    border-radius: 9999px !important;
    box-shadow: none !important;
    color: var(--rd-ink) !important;
    font-family: var(--rd-font);
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 0.12s ease, background-color 0.12s ease;
}

.hsm-redesign .hsm-rd-listings .hsm_filter_container label.radio-term input,
.hsm-redesign .hsm-rd-listings .hsm_filter_container label.checkbox-term input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.hsm-redesign .hsm-rd-listings .hsm_filter_container label.radio-term:hover,
.hsm-redesign .hsm-rd-listings .hsm_filter_container label.checkbox-term:hover {
    border-color: var(--rd-green) !important;
}

.hsm-redesign .hsm-rd-listings .hsm_filter_container label.radio-term:has(input:checked),
.hsm-redesign .hsm-rd-listings .hsm_filter_container label.checkbox-term:has(input:checked) {
    background: var(--rd-green) !important;
    border-color: var(--rd-green) !important;
    color: #fff !important;
}

.hsm-redesign .hsm-rd-listings .hsm_filter_container label.radio-term:has(input:focus-visible),
.hsm-redesign .hsm-rd-listings .hsm_filter_container label.checkbox-term:has(input:focus-visible) {
    outline: 2px solid var(--rd-green);
    outline-offset: 2px;
}

/* Apply Filter: the design's primary button. */
.hsm-redesign .hsm-rd-listings .hsm_filter_container input.apply_filters {
    display: inline-block;
    float: none !important;
    width: auto !important;
    height: auto !important;
    margin: 16px 0 8px !important;
    padding: 12px 20px !important;
    background: var(--rd-green) !important;
    border: 1px solid var(--rd-green) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    color: #fff !important;
    font-family: var(--rd-font);
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-transform: none !important;
    cursor: pointer;
}

.hsm-redesign .hsm-rd-listings .hsm_filter_container input.apply_filters:hover,
.hsm-redesign .hsm-rd-listings .hsm_filter_container input.apply_filters:focus {
    background: var(--rd-green-dark) !important;
    border-color: var(--rd-green-dark) !important;
}

/* Date fields and text inputs, as the design's inputs. */
.hsm-redesign .hsm-rd-listings .hsm_filter_container input[type="text"],
.hsm-redesign .hsm-rd-listings .hsm_filter_container input.hsm-resume-filter-visible {
    box-sizing: border-box;
    width: 100%;
    max-width: 360px;
    padding: 12px 16px !important;
    background: #fff !important;
    border: 1px solid var(--rd-rule) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    color: var(--rd-ink);
    font-family: var(--rd-font);
    font-size: 16px;
    line-height: 1.2;
}

.hsm-redesign .hsm-rd-listings .hsm_filter_container h4 {
    margin: 16px 0 8px;
    font-size: 18px;
    font-weight: 700;
}

@media (max-width: 700px) {
    .hsm-redesign .hsm-rd-listings .hsm_filter_container {
        padding: 16px 16px 4px !important;
    }

    .hsm-redesign .hsm-rd-listings .hsm_filter_container #tooltip_float_right {
        position: static !important;
    }
}

/* ─── House sit results: toggle buttons and pagination in the narrow column ─
   (The listings sit beside the map, so the column is about 640px.) */

/* "Show Active and Inactive Listings" / "Show Only Active Listings": the
   choice you can make is the green primary button, the current state the
   grey disabled one (Figma 2448-4617). */
.hsm-redesign .hsm-rd-listings input.show_active_button,
.hsm-redesign .hsm-rd-listings input.show_active_button_inactive {
    display: inline-block;
    float: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 12px 24px 0 !important;
    padding: 12px !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-family: var(--rd-font);
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-transform: none !important;
}

.hsm-redesign .hsm-rd-listings input.show_active_button_inactive {
    background: var(--rd-green) !important;
    border-color: var(--rd-green) !important;
    color: #fff !important;
    cursor: pointer;
}

.hsm-redesign .hsm-rd-listings input.show_active_button_inactive:hover {
    background: var(--rd-green-dark) !important;
}

.hsm-redesign .hsm-rd-listings input.show_active_button {
    background: var(--rd-rule) !important;
    color: var(--rd-muted) !important;
    cursor: default;
}

/* The count: muted regular type, not the legacy bold. */
.hsm-redesign .hsm-rd-paging--search .job_search_pagination_intro {
    display: block;
    clear: both;
    margin: 0 0 16px;
    color: var(--rd-muted) !important;
    font-family: var(--rd-font);
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1.2;
    text-align: center;
}

/* Previous / numbers / Next on one line where there is room, regular weight,
   a touch smaller so a 640px column holds them. */
.hsm-redesign .hsm-rd-paging--search .job_search_pagination {
    flex-wrap: nowrap;
    gap: 8px;
}

.hsm-redesign .hsm-rd-paging--search .job_search_pagination a.hsm-rd-paging__btn,
.hsm-redesign .hsm-rd-paging--search .job_search_pagination span.hsm-rd-paging__btn {
    padding: 10px 12px !important;
    font-size: 18px;
    font-weight: 400 !important;
    white-space: nowrap;
}

.hsm-redesign .hsm-rd-paging--search .job_search_pagination a.hsm-rd-paging__num,
.hsm-redesign .hsm-rd-paging--search .job_search_pagination span.hsm-rd-paging__num {
    min-width: 34px;
    padding-right: 8px !important;
    padding-left: 8px !important;
}

.hsm-redesign .hsm-rd-paging--search .hsm-rd-paging__list {
    flex-wrap: nowrap;
    gap: 4px;
}

@media (max-width: 700px) {
    .hsm-redesign .hsm-rd-paging--search .job_search_pagination {
        flex-wrap: wrap;
    }
}

/* ─── Filter panel: a quieter type scale and tighter rhythm ───────────────
   Overrides the first pass above (same selectors, later in the file). */

.hsm-redesign .hsm-rd-listings .hsm_filter_container {
    padding: 20px 28px 8px !important;
    font-size: 16px;
    line-height: 1.5;
}

.hsm-redesign .hsm-rd-listings .hsm_filter_container .we_suggest {
    display: block;
    margin: 0 0 8px;
    color: var(--rd-muted);
    font-size: 14px;
    font-style: normal;
    line-height: 1.4;
}

.hsm-redesign .hsm-rd-listings .hsm_filter_container .filter_group {
    padding: 14px 0 !important;
}

/* Group titles. */
.hsm-redesign .hsm-rd-listings .hsm_filter_container .filter_section_title,
.hsm-redesign .hsm-rd-listings .hsm_filter_container .filter_group > strong {
    font-size: 18px !important;
    line-height: 1.3;
}

.hsm-redesign .hsm-rd-listings .hsm_filter_container .filter_section_title:focus:not(:focus-visible) {
    outline: none;
}

/* Sub-headings inside a group ("When are you available to sit ?"). */
.hsm-redesign .hsm-rd-listings .hsm_filter_container strong {
    font-size: 16px;
    font-weight: 700;
}

.hsm-redesign .hsm-rd-listings .hsm_filter_container .filter_group > strong,
.hsm-redesign .hsm-rd-listings .hsm_filter_container .filter_group > strong a {
    font-size: 18px !important;
}

/* Helper text. */
.hsm-redesign .hsm-rd-listings .hsm_filter_container p,
.hsm-redesign .hsm-rd-listings .hsm_filter_container .filter_group > div > div:not(.map_container) {
    color: var(--rd-text-secondary);
    font-size: 15px;
    line-height: 1.5;
}

.hsm-redesign .hsm-rd-listings .hsm_filter_container p {
    margin: 4px 0 12px;
}

/* "and / or" divider. */
.hsm-redesign .hsm-rd-listings .hsm_filter_container h4 {
    margin: 16px 0 12px;
    color: var(--rd-muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Date range: From and To side by side, label above each field. */
.hsm-redesign .hsm-rd-listings .hsm_filter_container .filter_location_container,
.hsm-redesign .hsm-rd-listings .hsm_filter_container .filter_location_container22 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 12px 0 0;
    color: var(--rd-ink);
    font-size: 15px;
}

.hsm-redesign .hsm-rd-listings .hsm_filter_container .filter_location_container > br {
    display: none;
}

.hsm-redesign .hsm-rd-listings .hsm_filter_container .filter_location_container > strong:first-child {
    flex: 1 0 100%;
}

.hsm-redesign .hsm-rd-listings .hsm_filter_container .optional {
    color: var(--rd-muted);
    font-size: 14px;
}

.hsm-redesign .hsm-rd-listings .hsm_filter_container input[type="text"],
.hsm-redesign .hsm-rd-listings .hsm_filter_container input.hsm-resume-filter-visible {
    width: 240px;
    max-width: 100%;
    padding: 10px 14px !important;
    font-size: 15px;
}

.hsm-redesign .hsm-rd-listings .hsm_filter_container .col-md-6 {
    float: none !important;
    width: auto !important;
    padding: 0 !important;
    margin-right: 16px;
    display: inline-block;
}

/* Chips: a size down, with even spacing. */
.hsm-redesign .hsm-rd-listings .hsm_filter_container label.radio-term,
.hsm-redesign .hsm-rd-listings .hsm_filter_container label.checkbox-term {
    margin: 8px 6px 0 0 !important;
    padding: 7px 14px !important;
    font-size: 15px !important;
}

/* The static "Any" tag in front of the duration chips. */
.hsm-redesign .hsm-rd-listings .hsm_filter_container label.checkbox-term-any {
    display: inline-flex;
    align-items: center;
    margin: 8px 10px 0 0;
    padding: 7px 14px;
    background: transparent;
    border: 1px dashed var(--rd-gold-300);
    border-radius: 9999px;
    color: var(--rd-muted);
    font-size: 15px;
    line-height: 1.2;
}

.hsm-redesign .hsm-rd-listings .hsm_filter_container label.checkbox-term-any::after {
    content: ":";
}

/* Apply Filter: a size down, with room above it. */
.hsm-redesign .hsm-rd-listings .hsm_filter_container input.apply_filters {
    margin: 18px 0 10px !important;
    padding: 10px 18px !important;
    font-size: 16px !important;
}

/* ─── Filter sections: a chevron shows they open and close ────────────────
   Each group's title link toggles the block after it (the plugin's script sets
   an inline display on that block), so the chevron reads the block's inline
   style: pointing down when it is closed, flipped up when it is open. */

.hsm-redesign .hsm-rd-listings .hsm_filter_container .filter_group > strong a {
    cursor: pointer;
    transition: color 0.12s ease;
}

.hsm-redesign .hsm-rd-listings .hsm_filter_container .filter_group > strong a::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    vertical-align: -2px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2304651e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 6 4.5 4.5L12.5 6'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    transform: rotate(180deg);
    transition: transform 0.18s ease;
}

.hsm-redesign .hsm-rd-listings .hsm_filter_container .filter_group:has(> div[style*="none"]) > strong a::after {
    transform: rotate(0deg);
}

.hsm-redesign .hsm-rd-listings .hsm_filter_container .filter_group > strong a:hover {
    color: var(--rd-green) !important;
}

/* ─── Filter panel: one chip style for every kind of choice ───────────────
   The plugin has several label classes for the same thing (checkbox-term,
   checkbox-term-inverse, radio-term) and marks the chosen ones with
   .highlight, set by its script — as well as the real :checked state. */

.hsm-redesign .hsm-rd-listings .hsm_filter_container label.checkbox-term-inverse {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    float: none !important;
    width: auto !important;
    margin: 8px 6px 0 0 !important;
    padding: 7px 14px !important;
    background: #fff !important;
    border: 1px solid var(--rd-rule) !important;
    border-radius: 9999px !important;
    box-shadow: none !important;
    color: var(--rd-ink) !important;
    font-family: var(--rd-font);
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.2;
    cursor: pointer;
}

.hsm-redesign .hsm-rd-listings .hsm_filter_container label.checkbox-term-inverse input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.hsm-redesign .hsm-rd-listings .hsm_filter_container label.checkbox-term-inverse:hover,
.hsm-redesign .hsm-rd-listings .hsm_filter_container label.checkbox-term:hover,
.hsm-redesign .hsm-rd-listings .hsm_filter_container label.radio-term:hover {
    border-color: var(--rd-green) !important;
}

/* Chosen: the plugin's .highlight class or the real checked state. */
.hsm-redesign .hsm-rd-listings .hsm_filter_container label.highlight,
.hsm-redesign .hsm-rd-listings .hsm_filter_container label.checkbox-term-inverse:has(input:checked) {
    background: var(--rd-green) !important;
    border-color: var(--rd-green) !important;
    color: #fff !important;
}

/* "No Pets" and similar exclusive options sit apart from the rest. */
.hsm-redesign .hsm-rd-listings .hsm_filter_container label.checkbox-term-none:not(.highlight) {
    background: #fff !important;
    color: var(--rd-ink) !important;
}

/* From / To fields: a label above each, side by side. */
.hsm-redesign .hsm-rd-listings .hsm_filter_container .hsm-rd-datefield {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0 8px 0 0;
}

.hsm-redesign .hsm-rd-listings .hsm_filter_container .hsm-rd-datefield label {
    margin: 0;
    color: var(--rd-text-secondary);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.hsm-redesign .hsm-rd-listings .hsm_filter_container .hsm-rd-datefield input[type="text"],
.hsm-redesign .hsm-rd-listings .hsm_filter_container .hsm-rd-datefield input.hsm-resume-filter-visible {
    width: 240px !important;
}

.hsm-redesign .hsm-rd-listings .hsm_filter_container .filter_location_container {
    align-items: flex-end;
    gap: 12px 8px;
}

/* ─── Underlined links, as drawn ──────────────────────────────────────────
   ".hsm-redesign a { text-decoration: none }" near the top of this file is
   more specific than a single-class rule, so every link styled with just its
   own class (".hsm-rd-page-hero__link { text-decoration: underline }" and the
   rest) was losing and showing bare. Figma underlines these. Each is
   restated here with the extra class it needs to win. */
.hsm-redesign a.hsm-rd-page-hero__link,
.hsm-redesign a.hsm-rd-testimonial__more,
.hsm-redesign a.hsm-rd-post__more-inline,
.hsm-redesign a.hsm-rd-tip__more,
.hsm-redesign a.hsm-rd-auth__link {
    text-decoration: underline;
    text-underline-position: from-font;
}

/* These three drop the underline on hover, as before. */
.hsm-redesign a.hsm-rd-testimonial__more:hover,
.hsm-redesign a.hsm-rd-testimonial__more:focus,
.hsm-redesign a.hsm-rd-post__more-inline:hover,
.hsm-redesign a.hsm-rd-post__more-inline:focus,
.hsm-redesign a.hsm-rd-tip__more:hover,
.hsm-redesign a.hsm-rd-tip__more:focus {
    text-decoration: none;
}

/* ─── Dashboard previews ──────────────────────────────────────────────────
   The listing and profile previews in the dashboard use the live pages' layout
   (listing-single.php / profile-single.php with $preview). Their buttons are
   there to be seen, not pressed. */
.hsm-rd-preview {
    background: var(--rd-white);
}

.hsm-rd-preview .hsm-rd-profile {
    padding-top: 24px;
}

.hsm-rd-preview .hsm-rd-profile__inner {
    gap: 48px;
}

.hsm-rd-preview .hsm-rd-preview__inert {
    cursor: default;
    pointer-events: none;
}

/* ─── Gallery captions ────────────────────────────────────────────────────
   The lightbox library styles every thumbnail with a 1em margin, 2px padding
   and a 140px height cap (.jslghtbx-thmb). That pushed each photo inside its
   cell while the caption stayed anchored to the cell, so captions started left
   of the photo and ran under it. The thumbnails are reset here so the frame,
   the photo and the caption share one box. */
.hsm-rd-profile__gallery li img.jslghtbx-thmb {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    margin: 0 !important;
    padding: 0 !important;
}

.hsm-rd-profile__gallery li .hsm-rd-profile__caption {
    /* Inside the photo: the 8px white frame on each side. */
    right: 8px;
    bottom: 8px;
    left: 8px;
    padding: 28px 8px 6px;
    font-family: var(--rd-font);
    font-size: 14px;
    line-height: 1.2;
    text-align: left;
}


/* ─── Header, between the phone menu and the full desktop bar ─────────────
   The bar needs about 902px beside the logo (nav 544, account controls up to
   ~180, two 40px gaps, the page gutters). The full 412px logo therefore only
   fits from ~1320px; below that, down to where the menu collapses at 1180px,
   the logo and spacing tighten so the links never run into the account
   controls. */
@media (min-width: 1181px) and (max-width: 1320px) {
    .hsm-rd-header__inner {
        gap: 24px;
    }

    .hsm-rd-header__logo {
        gap: 5px;
    }

    .hsm-rd-header__mark {
        width: 46px;
        height: auto;
    }

    .hsm-rd-header__wordmark {
        width: 245px;
    }

    .hsm-rd-header__nav {
        gap: 20px;
    }

    .hsm-rd-header__account {
        gap: 16px;
    }
}


/* ─── Tablet: the desktop layout, scaled ──────────────────────────────────
   The phone layout (one column, full-width photo) now starts below 768px
   rather than 900px, so an iPad in portrait or landscape gets the same
   arrangement as the desktop comps — copy beside the photograph, two-column
   content pages — instead of a stretched phone layout. Between 768px and
   1100px the proportions and sizes are tightened so it still reads. */
@media (min-width: 768px) and (max-width: 1100px) {
    .hsm-rd-page-hero {
        padding: 32px 0 56px;
    }

    .hsm-rd-page-hero__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
        gap: 32px;
    }

    .hsm-rd-page-hero__title {
        font-size: clamp(30px, 4vw, 40px);
    }

    .hsm-rd-page-hero__lede {
        margin-top: 24px;
        font-size: clamp(18px, 2.4vw, 24px);
    }

    .hsm-rd-page-hero__link {
        margin-top: 24px;
        font-size: clamp(18px, 2.4vw, 24px);
    }

    .hsm-rd-filehero__inner {
        gap: 32px;
    }

    .hsm-rd-reviews__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hsm-rd-profile__inner,
    .hsm-rd-post-page__inner {
        gap: 40px;
    }

    .hsm-rd-profile__gallery {
        gap: 16px;
    }

    .hsm-rd-profile__fact dt {
        flex-basis: 110px;
    }

    .hsm-rd-final__inner {
        gap: 32px;
    }
}


/* ─── How It Works on a tablet ────────────────────────────────────────────
   Hero, tips and the two audience sections keep their desktop arrangement
   from 768px (see the rules above). The four process steps are the part that
   cannot: four icon-plus-text columns leave about 150px of text each, which
   clips words, so they go two by two. The audience cards stack their copy over
   their button for the same reason. */
@media (min-width: 768px) and (max-width: 1100px) {
    .hsm-rd-overview__steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 40px;
    }

    .hsm-rd-step__text {
        overflow-wrap: break-word;
    }

    .hsm-rd-audience-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .hsm-rd-overview__skips {
        margin-top: 48px;
    }
}

/* ─── Search results: an even grid ────────────────────────────────────────
   Find a Sitter and Find a House Sit draw their results as floated cards of a
   fixed width (250/260px), so the row only ever filled by luck and left a
   ragged gap on the right at most widths. They are a grid instead: as many
   equal columns as fit at 200px or more, sharing the row evenly — three on an
   iPad in portrait, five on a wide desktop for sitters, and so on. The
   pagination blocks the plugin puts in the same list span the full row. */
.hsm-redesign .hsm-rd-listings ul.resumes,
.hsm-redesign .hsm-rd-listings ul.job_listings {
    display: grid;
    /* At least 200px a column, and never narrower than a quarter of the row
       (less the three 24px gaps), which is what stops it going past four. */
    grid-template-columns: repeat(auto-fill, minmax(max(200px, calc((100% - 72px) / 4)), 1fr));
    gap: 32px 24px;
    align-items: start;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
    padding: 0;
    list-style: none;
}

/* On a wide desktop the house-sit list sits beside the fixed map (the theme
   gives it 55% of the row); the grid fills that column. */
@media (min-width: 1200px) {
    .hsm-redesign .hsm-rd-listings ul.job_listings {
        max-width: 55%;
        margin-left: 45%;
    }
}

.hsm-redesign .hsm-rd-listings ul.resumes > li,
.hsm-redesign .hsm-rd-listings ul.job_listings > li {
    float: none !important;
    width: auto !important;
    height: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    clear: none !important;
}

/* The spacer, the paging blocks and the footer paging all take a full row. */
.hsm-redesign .hsm-rd-listings ul.resumes > li:has(.hsm-rd-paging--search),
.hsm-redesign .hsm-rd-listings ul.resumes > li[style*="clear"],
.hsm-redesign .hsm-rd-listings ul.resumes > .footer_pagination,
.hsm-redesign .hsm-rd-listings ul.job_listings > .hsm-rd-paging--search,
.hsm-redesign .hsm-rd-listings ul.job_listings > .footer_pagination,
.hsm-redesign .hsm-rd-listings ul.job_listings > .show_active_button,
.hsm-redesign .hsm-rd-listings ul.job_listings > .show_active_button_inactive {
    grid-column: 1 / -1;
}

.hsm-redesign .hsm-rd-listings ul.job_listings > .show_active_button,
.hsm-redesign .hsm-rd-listings ul.job_listings > .show_active_button_inactive {
    justify-self: start;
}

.hsm-redesign .hsm-rd-listings ul.resumes > li:has(.hsm-rd-paging--search) {
    list-style: none;
}

.hsm-redesign .hsm-rd-listings ul.resumes > li[style*="clear"]:empty {
    display: none;
}

/* The photographs fill their column: square for sitters, 3:2 for house sits. */
.hsm-redesign .hsm-rd-listings ul.resumes .resume_listing > a > img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.hsm-redesign .hsm-rd-listings ul.job_listings .job_listing > a > img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.hsm-redesign .hsm-rd-listings .resume_listing,
.hsm-redesign .hsm-rd-listings .job_listing {
    position: relative;
}


/* ─── Thank-you (order received) ──────────────────────────────────────────
   Figma Order Summary - Desktop (3124-20821). Rides on the log-in screens'
   split layout (.hsm-rd-auth--split); this is only what sits in the left
   panel — the survey and the three order groups. */

.hsm-rd-thanks__content {
    max-width: 640px;
}

.hsm-rd-thanks .hsm-rd-auth__title {
    margin-top: 40px;
}

.hsm-rd-thanks__actions {
    display: flex;
    gap: 12px;
    margin: 40px 0 0;
}

.hsm-rd-thanks__survey {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 40px;
}

.hsm-rd-thanks__survey-row {
    display: flex;
    gap: 16px;
}

.hsm-rd-thanks__survey-row[hidden],
.hsm-rd-thanks__survey [hidden] {
    display: none;
}

.hsm-rd-thanks__survey-row select {
    flex: 1 1 auto;
    min-width: 0;
}

.hsm-rd-thanks__survey-done {
    margin: 0;
    color: var(--rd-green);
    font-size: 18px;
}

.hsm-rd-thanks__group {
    margin-top: 40px;
}

.hsm-rd-thanks__group h2 {
    margin: 0 0 8px;
    color: var(--rd-ink);
    font-family: var(--rd-font);
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hsm-rd-thanks__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 8px 0;
    border-top: 1px solid var(--rd-rule);
    border-bottom: 1px solid var(--rd-rule);
    list-style: none;
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-thanks__list > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.hsm-rd-thanks__list dt {
    margin: 0;
    font-weight: 700;
    color: var(--rd-ink);
}

.hsm-rd-thanks__list dd {
    margin: 0;
    text-align: right;
    color: var(--rd-muted);
}

.hsm-rd-thanks__qty {
    color: var(--rd-muted);
}

.hsm-rd-thanks__list--plain li {
    margin: 0;
    color: var(--rd-ink);
}

@media (max-width: 767px) {
    .hsm-rd-thanks__survey-row {
        flex-direction: column;
    }
}


/* ─── Generic page ────────────────────────────────────────────────────────
   Figma Generic Page - Desktop (3124-21193). The standard page hero, but two
   equal columns (the comp's 600×400 picture beside the copy) and with the
   page's own content under the title: a lead-in heading at 24px bold, then
   18px body, then the outlined button. */

.hsm-rd-generic .hsm-rd-page-hero__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 80px;
    align-items: start;
}

.hsm-rd-generic.hsm-rd-page-hero--no-image .hsm-rd-page-hero__inner {
    grid-template-columns: minmax(0, 1fr);
}

.hsm-rd-generic .hsm-rd-page-hero__media {
    aspect-ratio: 600 / 400;
}

.hsm-rd-generic__body {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
    color: var(--rd-ink);
    font-family: var(--rd-font);
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-generic__body > * {
    margin: 0;
}

.hsm-rd-generic__body :is(h2, h3) {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hsm-rd-generic__body a {
    color: var(--rd-green);
}

.hsm-rd-generic__body :is(a.button, .wp-block-button__link) {
    display: inline-block;
    padding: 12px;
    border: 1px solid var(--rd-green);
    border-radius: 8px;
    background: transparent;
    color: var(--rd-green);
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
}

@media (max-width: 767px) {
    .hsm-rd-generic .hsm-rd-page-hero__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .hsm-rd-generic__body {
        gap: 24px;
        margin-top: 24px;
    }
}

/* Floating contact button (Figma "Reply Bar Send Button", 3124:21460): green
   circle with a send icon, replacing the old question-mark icon. Enlarged to
   64px with the outlined send glyph (QA round 1). */
a.hsm-rd-helpfab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    padding: 0;
    background: #04651e;
    border: 1px solid #04651e;
    border-radius: 9999px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1), 0 20px 12.5px rgba(0, 0, 0, .1);
    text-decoration: none;
    transition: background-color .15s ease, transform .15s ease;
}
a.hsm-rd-helpfab svg { margin: 1px 1px 0 -1px; flex: 0 0 auto; }
a.hsm-rd-helpfab:hover,
a.hsm-rd-helpfab:focus-visible { background: #0a481d; transform: translateY(-2px); }

/* ─── How It Works: smooth scroll for the "Skip to learn more" links ───────
   Scoped with :has() to pages that carry the overview's skip links, so no
   other page's anchors change behaviour. Off for people who ask for less
   motion. */
@media (prefers-reduced-motion: no-preference) {
    html:has(.hsm-rd-overview__skips) {
        scroll-behavior: smooth;
    }
}

/* ─── How It Works timeline: the details the first pass left out ───────────
   Figma 1196-6372: a 4px gold rule that starts with a 4×16 cap and ends in a
   16px arrowhead, and dots that are bright green with a 4px gold ring. The
   rule's cap is a second background layer on the same pseudo-element so the
   rule stays one continuous bar behind the dots. Desktop only; the phone
   layout runs the rule vertically and keeps its own. */
@media (min-width: 901px) {
    .hsm-rd-timeline {
        padding-left: 4px;
        padding-right: 16px;
    }

    .hsm-rd-timeline::before {
        top: 80px;
        left: 0;
        right: 0;
        height: 16px;
        background:
            linear-gradient(var(--rd-gold-300), var(--rd-gold-300)) 0 0 / 4px 100% no-repeat,
            linear-gradient(var(--rd-gold-300), var(--rd-gold-300)) 0 50% / 100% 4px no-repeat;
    }

    .hsm-rd-timeline::after {
        content: "";
        position: absolute;
        top: 80px;
        right: 0;
        width: 16px;
        height: 16px;
        background: var(--rd-gold-300);
        clip-path: polygon(0 0, 100% 50%, 0 100%);
    }

    /* 16px fill + 4px ring = the design's 24px dot. Margin pulls the layout
       back to the 16px the label spacing was measured from. */
    .hsm-rd-timeline__dot {
        position: relative;
        z-index: 1;
        box-sizing: content-box;
        margin: -4px;
        border: 4px solid var(--rd-gold-300);
        box-shadow: none;
    }

    .hsm-rd-timeline__label {
        margin-top: 24px;
    }
}

/* ─── Search results: the Filter Bar (Figma 3121-16788) ───────────────────
   Find a House Sit and Find a Sitter. One bar: the toggle pills on the left,
   chevron / numbers / chevron on the right, the whole thing 78px between
   hairlines. At the top of the list the count follows it ("Results Position=
   Top"); under the list the count comes first and only a rule above the bar
   separates them ("Position=Bottom"). Overrides the centred, stacked layout
   above, hence the repeated selectors. */

.hsm-redesign .hsm-rd-paging--search {
    margin: 0;
}

.hsm-redesign .hsm-rd-paging--search .hsm-rd-paging__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    min-height: 78px;
    /* Even space above and below whichever rows the bar ends up with, so the
       pills and numbers never touch the hairlines when it wraps. */
    padding: 17px 0 16px;
    box-sizing: border-box;
    border-top: 1px solid var(--rd-rule);
}

.hsm-redesign .hsm-rd-paging--top .hsm-rd-paging__bar {
    border-bottom: 1px solid var(--rd-rule);
}

.hsm-redesign .hsm-rd-paging--search .hsm-rd-paging__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* The pills: fully rounded, 34px tall. The current choice is the grey one. */
.hsm-redesign .hsm-rd-listings .hsm-rd-paging__filters input.show_active_button,
.hsm-redesign .hsm-rd-listings .hsm-rd-paging__filters input.show_active_button_inactive {
    box-sizing: border-box;
    height: 34px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 1px solid var(--rd-rule) !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #000 !important;
    cursor: pointer;
    font-size: 18px !important;
    line-height: 1 !important;
}

.hsm-redesign .hsm-rd-listings .hsm-rd-paging__filters input.show_active_button_inactive:hover {
    background: #f4f4f4 !important;
}

.hsm-redesign .hsm-rd-listings .hsm-rd-paging__filters input.show_active_button {
    border-color: transparent !important;
    background: #ececec !important;
    cursor: default;
}

/* Right-hand side: 40px chevron squares, 36 x 44 numbers, 4px apart. */
.hsm-redesign .hsm-rd-paging--search .job_search_pagination {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 16px;
    margin-left: auto;
}

.hsm-redesign .hsm-rd-paging--search .job_search_pagination a.hsm-rd-paging__btn,
.hsm-redesign .hsm-rd-paging--search .job_search_pagination span.hsm-rd-paging__btn {
    padding: 12px !important;
    font-size: 20px;
}

.hsm-redesign .hsm-rd-paging--search .job_search_pagination a.hsm-rd-paging__btn:not(.hsm-rd-paging__num) {
    box-sizing: border-box;
    width: 40px;
    height: 40px;
}

.hsm-redesign .hsm-rd-paging--search .job_search_pagination a.hsm-rd-paging__num,
.hsm-redesign .hsm-rd-paging--search .job_search_pagination span.hsm-rd-paging__num {
    box-sizing: border-box;
    min-width: 36px;
    height: 44px;
    padding-right: 8px !important;
    padding-left: 8px !important;
}

.hsm-redesign .hsm-rd-paging--search .hsm-rd-paging__list {
    gap: 4px;
}

/* The count: left, muted, 40px clear of the bar. */
.hsm-redesign .hsm-rd-paging--search .job_search_pagination_intro {
    margin: 0;
    font-size: 18px !important;
    line-height: 1;
    text-align: left;
}

.hsm-redesign .hsm-rd-paging--top .job_search_pagination_intro {
    margin: 40px 0 8px;
}

.hsm-redesign .hsm-rd-paging--bottom .job_search_pagination_intro {
    margin: 0 0 40px;
}

.hsm-redesign .footer_pagination {
    margin-top: 40px;
}

/* When the pills and the numbers no longer fit side by side, the numbers drop
   under the pills and line up with them on the left, on the same 16px gap. */
@media (max-width: 1100px) {
    .hsm-redesign .hsm-rd-paging--search .hsm-rd-paging__bar {
        justify-content: flex-start;
        row-gap: 16px;
    }

    .hsm-redesign .hsm-rd-paging--search .job_search_pagination {
        margin-left: 0;
        justify-content: flex-start;
    }
}

/* Once the bar has stacked, neither row wraps. The pills stay on one line and
   swipe sideways; the page numbers swipe between the two arrows, which stay
   put at the ends of the row. Scrollbars are hidden, as on the dashboard's
   pill rows; the swipe and the clipped edge are the cue. */
@media (max-width: 1100px) {
    .hsm-redesign .hsm-rd-paging--search .hsm-rd-paging__filters,
    .hsm-redesign .hsm-rd-paging--search .hsm-rd-paging__list {
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .hsm-redesign .hsm-rd-paging--search .hsm-rd-paging__filters::-webkit-scrollbar,
    .hsm-redesign .hsm-rd-paging--search .hsm-rd-paging__list::-webkit-scrollbar {
        display: none;
    }

    .hsm-redesign .hsm-rd-paging--search .hsm-rd-paging__filters {
        max-width: 100%;
    }

    .hsm-redesign .hsm-rd-paging--search .hsm-rd-paging__filters > *,
    .hsm-redesign .hsm-rd-paging--search .hsm-rd-paging__list > * {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .hsm-redesign .hsm-rd-paging--search .job_search_pagination {
        flex-wrap: nowrap;
        max-width: 100%;
        min-width: 0;
        gap: 8px;
    }

    .hsm-redesign .hsm-rd-paging--search .job_search_pagination > a {
        flex: 0 0 auto;
    }

    .hsm-redesign .hsm-rd-paging--search .hsm-rd-paging__list {
        flex: 0 1 auto;
        min-width: 0;
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {
    /* The numbers take the whole row, so Next sits at the right-hand edge. */
    .hsm-redesign .hsm-rd-paging--search .job_search_pagination {
        width: 100%;
    }

    .hsm-redesign .hsm-rd-paging--search .hsm-rd-paging__list {
        flex-grow: 1;
    }
}

/* The map is hidden while it has no active listing to pin (shortcodes/map.php). */
.hsm-map-empty #gmap_container {
    display: none !important;
}

/* Find a House Sit on a wide desktop (Figma 2912-18793): one 1360px row. The
   bar and count span all of it; under them a 400px map and three 280px card
   columns, 40px apart. The map (#gmap_container) is absolutely placed by the
   theme and slid down the page by the plugin's scroll handler; the cards are
   placed in columns two to four (the bar is child 1, so cards run 2, 3, 4). */
@media (min-width: 1200px) {
    .hsm-redesign .hsm-rd-listings ul.job_listings {
        grid-template-columns: 400px repeat(3, minmax(0, 1fr));
        gap: 40px;
        max-width: none;
        margin-left: 0;
    }

    .hsm-redesign .hsm-rd-listings ul.job_listings > li.job_listing:nth-child(3n + 2) {
        grid-column: 2;
    }

    .hsm-redesign .hsm-rd-listings ul.job_listings > li.job_listing:nth-child(3n + 3) {
        grid-column: 3;
    }

    .hsm-redesign .hsm-rd-listings ul.job_listings > li.job_listing:nth-child(3n + 4) {
        grid-column: 4;
    }

    .hsm-redesign .hsm-rd-listings ul.job_listings > .hsm-rd-paging--search,
    .hsm-redesign .hsm-rd-listings ul.job_listings > .footer_pagination {
        grid-column: 1 / -1;
        margin-left: 0;
    }

    .hsm-redesign .hsm-rd-listings #gmap_container {
        left: 0;
        margin-top: 176px;
    }

    .hsm-redesign .hsm-rd-listings #gmap {
        position: relative;
        width: 400px;
        max-width: 400px;
        height: 480px;
        border-radius: 8px;
        overflow: hidden;
    }

    /* No active listing on this page to pin: no map, and the cards take its
       column (shortcodes/map.php sets hsm-map-empty). */
    .hsm-redesign .hsm-rd-listings .hsm-map-empty ul.job_listings {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hsm-redesign .hsm-rd-listings .hsm-map-empty ul.job_listings > li.job_listing:nth-child(3n + 2) {
        grid-column: 1;
    }

    .hsm-redesign .hsm-rd-listings .hsm-map-empty ul.job_listings > li.job_listing:nth-child(3n + 3) {
        grid-column: 2;
    }

    .hsm-redesign .hsm-rd-listings .hsm-map-empty ul.job_listings > li.job_listing:nth-child(3n + 4) {
        grid-column: 3;
    }

    /* Bar block is 78 + 40 + 18 tall; the grid gap supplies the 40 below. */
    .hsm-redesign .hsm-rd-paging--top .job_search_pagination_intro {
        margin-bottom: 0;
    }
}

/* The filter form is a left-aligned strip, not a centred 1080px column. */
.hsm-redesign .hsm-rd-listings .job_filters {
    max-width: none;
    margin-right: 0;
    margin-left: 0;
}

.hsm-redesign .hsm-rd-listings .job_filters a.button.button-try-filtered-search {
    margin-bottom: 24px !important;
}

/* House sit cards (Figma "Ad Preview"): 3:2 rounded thumbnail, bold green
   underlined title, then grey 14px icon rows. */
.hsm-redesign .hsm-rd-listings ul.job_listings .job_listing > a > img {
    border-radius: 8px;
}

/* Corner badges (New / Urgent / Inactive). The artwork is square (a ribbon
   across one corner, the sun beside it), but style.css boxes it at 100 x 50 or
   75 x 50, which squashed it. Square here, tucked into the photo's corner. */
.hsm-redesign .hsm-rd-listings ul.job_listings .job_listing > img.urgent_icon,
.hsm-redesign .hsm-rd-listings ul.job_listings .job_listing > img.new_sun {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    z-index: 2;
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 0 8px 0 0;
    pointer-events: none;
}
.hsm-redesign .hsm-rd-listings ul.job_listings .job_listing > img.filled_icon {
    position: absolute;
    top: 0;
    left: 0;
    right: auto;
    z-index: 2;
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 8px 0 0 0;
    pointer-events: none;
}

/* A listing with no photo gets a coloured tile with the house icon
   (a.photo_holder). style.css gives that tile a fixed 250 x 167 plus 32px of
   left padding, and the 100%-wide card image rule above then stretched the
   icon to fill it, so the tile ran past its column into the next card. Match
   the photos instead: full column width, 3:2, the icon centred inside. */
.hsm-redesign .hsm-rd-listings ul.job_listings .job_listing > a.photo_holder {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
}
.hsm-redesign .hsm-rd-listings ul.job_listings .job_listing > a.photo_holder > img {
    width: auto;
    height: 80%;
    max-width: 100% !important;
    max-height: none !important;
    aspect-ratio: auto;
    object-fit: contain;
    border-radius: 0;
}

.hsm-redesign .hsm-rd-listings ul.job_listings .job_listing h4 {
    margin: 12px 0 16px;
    font-family: var(--rd-font);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hsm-redesign .hsm-rd-listings ul.job_listings .job_listing h4 a {
    color: var(--rd-green);
    text-decoration: underline;
}

.hsm-redesign .hsm-rd-listings ul.job_listings .job_listing p {
    margin: 0 0 12px;
    color: var(--rd-muted);
    font-family: var(--rd-font);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
}

.hsm-redesign .hsm-rd-listings ul.job_listings .job_listing p .hsm-small-icon {
    margin-right: 6px;
    color: var(--rd-muted);
}

/* The paging wrapper centres its children by default; the Filter Bar is a
   full-width strip with the count left-aligned. */
.hsm-redesign .hsm-rd-paging--search {
    align-items: stretch;
    gap: 0;
}

.hsm-redesign .hsm-rd-paging--search .hsm-rd-paging__count {
    align-self: flex-start;
    text-align: left;
}

/* ─── Find a Sitter (Figma 2103-19869) ────────────────────────────────────
   Under the intro: the filter button at the left and, for visitors who are
   not logged in, the "Hosts: Log in" note centred on the page like the
   intro text above it. A spacer the width of the button keeps the note
   centred. The filter panel itself drops to its own full-width row. */
.hsm-redesign .hsm-rd-listings .resume_filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: none;
    margin: 0 0 24px;
}

.hsm-redesign .hsm-rd-listings .resume_filters::after {
    content: "";
    order: 3;
    flex: 0 0 200px;
}

.hsm-redesign .hsm-rd-listings .resume_filters a.button.filter_toggler_button {
    order: 1;
    flex: 0 0 auto;
    float: none !important;
    margin: 0 !important;
}

.hsm-redesign .hsm-rd-listings .resume_filters .hsm-rd-searchbar-note {
    order: 2;
    flex: 1;
    justify-content: center;
    float: none;
    margin: 0;
}

.hsm-redesign .hsm-rd-listings .resume_filters .hsm_filter_container {
    order: 4;
    flex: 0 0 100%;
}

/* Four 310px cards a row, 40px apart (1360 in all) on a wide screen; three
   on a tablet, one on a phone. */
.hsm-redesign .hsm-rd-listings ul.resumes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px;
}

@media (max-width: 1099px) {
    .hsm-redesign .hsm-rd-listings ul.resumes {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 32px 24px;
    }
}

@media (max-width: 699px) {
    .hsm-redesign .hsm-rd-listings ul.resumes {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
}

.hsm-redesign .hsm-rd-listings ul.resumes .resume_listing > a > img {
    border-radius: 8px;
}

.hsm-redesign .hsm-rd-listings ul.resumes .resume_listing h4 {
    margin: 12px 0 8px;
    font-family: var(--rd-font);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.hsm-redesign .hsm-rd-listings ul.resumes .resume_listing h4 a {
    color: var(--rd-green);
    text-decoration: underline;
}

.hsm-redesign .hsm-rd-listings ul.resumes .resume_listing p.resume_title {
    margin: 0 0 8px;
    color: #000;
    font-family: var(--rd-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
}

.hsm-redesign .hsm-rd-listings ul.resumes .resume_listing p.resume_location {
    margin: 0;
    color: var(--rd-muted);
    font-family: var(--rd-font);
    font-size: 14px;
    line-height: 1.2;
}

.hsm-redesign .hsm-rd-listings ul.resumes .resume_listing p.resume_location i {
    margin-right: 6px;
    color: var(--rd-muted);
}

.hsm-redesign .hsm-rd-listings .resume_filters .showing_resumes {
    order: 5;
    flex: 0 0 0;
    width: 0;
    padding: 0;
}

.hsm-redesign .hsm-rd-listings ul.resumes .resume_listing h4 a {
    font-size: 16px;
}

/* Current page: the grey fill from the Figma pagination, no outline. */
.hsm-redesign .hsm-rd-paging--search .job_search_pagination span.hsm-rd-paging__num.is-current {
    background: #ececec;
    border-color: transparent;
}

/* No "Try a Filtered Search" button in the Figma search pages. */
.hsm-redesign.hsm-redesign.hsm-redesign .hsm-rd-listings.hsm-rd-listings a.button.btn.button-small.btn-small.filter_toggler.filter_toggler_button.filter_toggler_button,
.hsm-redesign .hsm-rd-listings .resume_filters::after {
    display: none !important;
}

/* "Join Our Email List" is not in the Figma search pages, at any width. */
.hsm-redesign.hsm-redesign .hsm-rd-listings.hsm-rd-listings a.button.btn.button-small.btn-small.button-join-mail-list {
    display: none !important;
}

/* ─── Search pages on a phone (Figma Find a Sitter - Mobile, 2907-17338) ──
   Intro and log-in note left-aligned; the filter bar is the pills on one row,
   the page numbers centred under them, then a hairline and the count centred.
   The bar under the cards has the count first, then the numbers. */
@media (max-width: 699px) {
    .hsm-redesign .hsm-rd-intro .hsm-rd-shell {
        text-align: left;
    }

    .hsm-redesign .hsm-rd-listings .resume_filters .hsm-rd-searchbar-note {
        justify-content: flex-start;
        padding: 0;
    }

    .hsm-redesign .hsm-rd-paging--search .hsm-rd-paging__bar {
        justify-content: center;
        padding: 17px 0 16px;
        gap: 16px;
    }

    /* The pills stay on one line and swipe sideways inside the row (see the
       "neither row wraps" rules above), rather than wrapping or being cropped. */
    .hsm-redesign .hsm-rd-paging--search .hsm-rd-paging__filters {
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: 100%;
    }

    .hsm-redesign .hsm-rd-listings .hsm-rd-paging__filters input.show_active_button,
    .hsm-redesign .hsm-rd-listings .hsm-rd-paging__filters input.show_active_button_inactive {
        flex: 0 0 auto;
        font-size: 16px !important;
        white-space: nowrap;
    }

    .hsm-redesign .hsm-rd-paging--search .hsm-rd-paging__count {
        align-self: center;
    }

    .hsm-redesign .hsm-rd-paging--search .job_search_pagination {
        justify-content: space-between;
        gap: 8px;
    }

    .hsm-redesign .hsm-rd-paging--search .job_search_pagination_intro,
    .hsm-redesign .hsm-rd-paging--top .job_search_pagination_intro,
    .hsm-redesign .hsm-rd-paging--bottom .job_search_pagination_intro {
        margin: 24px 0 24px;
        text-align: center;
    }

    .hsm-redesign .hsm-rd-paging--bottom .job_search_pagination_intro {
        margin: 12px 0 16px;
    }
}


/* ─── Asana round 2 (15 Oct) ──────────────────────────────────────────── */

/* Checkout: the "Returning member? Click here to log in" prompt is plain text,
   not the legacy green bar (style.css sets #98c007 on .woocommerce-info). */
.woocommerce-checkout .hsm-rd-checkout .woocommerce-info {
    background: transparent;
}


/* The (?) tooltips, hsm_redesign_tip() and tips.js: a (?) button and a gold
   bubble above it that fades in (Figma "Tooltip / Gold", 2364-12693 and
   1969-13305). The bubble is centred on the icon; tips.js shifts it sideways
   with --hsm-tip-shift to keep it on screen, and adds .is-below when there is
   no room above. Not scoped to .hsm-redesign: the (?) appears on legacy forms
   too, and should look the same there. */
.hsm-rd-tip-wrap {
    --hsm-tip-shift: 0px;
    position: relative;
    display: inline-flex;
    vertical-align: middle;
    line-height: 1;
}

.hsm-rd-tip-btn,
.hsm-rd-tip-btn:hover,
.hsm-rd-tip-btn:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 2px;
    border: 0;
    border-radius: 50%;
    background: none;
    box-shadow: none;
    color: inherit;
    line-height: 1;
    cursor: pointer;
}

.hsm-rd-tip-btn:focus-visible {
    outline: 2px solid #04651e;
    outline-offset: 1px;
}

.hsm-rd-tip-btn svg {
    display: block;
    width: 16px;
    height: 16px;
}

.hsm-rd-tip-bubble {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    z-index: 1000;
    width: max-content;
    max-width: min(397px, calc(100vw - 32px));
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1px solid #e0c23f;
    border-radius: 8px;
    background: #f3e8b2;
    filter: drop-shadow(0 1px 2px rgba(12, 12, 13, 0.1));
    color: #191815;
    font-family: var(--rd-font, Arial, Helvetica, sans-serif);
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.4;
    letter-spacing: normal;
    text-align: left;
    text-transform: none;
    white-space: normal;
    cursor: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(calc(-50% + var(--hsm-tip-shift))) translateY(4px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}

.hsm-rd-tip-bubble ul,
.hsm-rd-tip-bubble ol {
    margin: 0;
    padding-left: 1.2em;
}

.hsm-rd-tip-bubble li + li {
    margin-top: 6px;
}

.hsm-rd-tip-bubble p {
    margin: 0 0 8px;
}

.hsm-rd-tip-bubble p:last-child {
    margin-bottom: 0;
}

/* The beak, pointing at the icon wherever the bubble was shifted to. */
.hsm-rd-tip-bubble::after {
    content: "";
    position: absolute;
    top: 100%;
    left: calc(50% - var(--hsm-tip-shift));
    width: 12px;
    height: 12px;
    margin: -7px 0 0 -6px;
    border-right: 1px solid #e0c23f;
    border-bottom: 1px solid #e0c23f;
    background: #f3e8b2;
    transform: rotate(45deg);
}

.hsm-rd-tip-wrap.is-below .hsm-rd-tip-bubble {
    top: calc(100% + 12px);
    bottom: auto;
    transform: translateX(calc(-50% + var(--hsm-tip-shift))) translateY(-4px);
}

.hsm-rd-tip-wrap.is-below .hsm-rd-tip-bubble::after {
    top: auto;
    bottom: 100%;
    margin: 0 0 -7px -6px;
    transform: rotate(-135deg);
}

.hsm-rd-tip-wrap.is-open .hsm-rd-tip-bubble {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(calc(-50% + var(--hsm-tip-shift)));
    transition: opacity .2s ease, transform .2s ease, visibility 0s;
}

/* Find a Sitter's "Hosts: Log in to view Sitter profiles": one short line,
   18px and centred, as 1969-13305 draws it. */
.hsm-rd-searchbar-note .hsm-rd-tip-bubble {
    max-width: min(440px, calc(100vw - 32px));
    font-size: 18px;
    line-height: 1.5;
    text-align: center;
}

/* How It Works on a phone (Figma 1280-15142, 1280-15257, tips box). */
@media (max-width: 767px) {
    /* 64px icons, text 32px after them, 16px bold on 27px lines. */
    .hsm-rd-step__icon {
        width: 64px;
        height: 64px;
    }

    .hsm-rd-step__text {
        font-size: 16px;
        line-height: 27px;
    }

    /* Tip thumbnails are square. */
    .hsm-rd-tip__media {
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 900px) {
    /* The timeline: one line per label, a 4px gold rule through the middle of
       24px ringed dots, 84px a step. */
    .hsm-rd-timeline {
        padding: 0 0 0 52px;
        gap: 0;
    }

    .hsm-rd-timeline::before {
        top: 0;
        bottom: 0;
        left: 18px;
        width: 4px;
    }

    .hsm-rd-timeline__step {
        min-height: 84px;
        gap: 0;
    }

    .hsm-rd-timeline__dot {
        position: absolute;
        top: 50%;
        left: -44px;
        z-index: 1;
        box-sizing: content-box;
        width: 16px;
        height: 16px;
        margin: -12px 0 0;
        border: 4px solid var(--rd-gold-300);
        box-shadow: none;
    }

    .hsm-rd-timeline__label {
        font-size: 16px;
    }

    .hsm-rd-timeline__label br {
        display: none;
    }
}

/* Find a Sitter "Advice" popup on a phone (Figma 3330-24518): a 358px card up
   to 640px tall, the 16:9 photograph on top, the copy scrolling beneath it with
   a fade at the foot — the same shape as the "Learn More" tip popups. */
@media (max-width: 700px) {
    #hsm-rd-advice[open] {
        flex-direction: column;
        width: min(358px, calc(100vw - 32px));
        height: min(640px, calc(100vh - 32px));
    }

    #hsm-rd-advice .hsm-rd-dialog__media {
        display: block;
        flex: 0 0 auto;
        max-width: none;
        aspect-ratio: 16 / 9;
        overflow: hidden;
    }

    #hsm-rd-advice .hsm-rd-dialog__body {
        flex: 1 1 auto;
        min-height: 0;
        padding: 40px 40px 80px;
    }

    #hsm-rd-advice .hsm-rd-dialog__title {
        font-size: 32px;
    }

    #hsm-rd-advice::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 80px;
        pointer-events: none;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 80%);
    }
}


/* ─── Asana round 3 (16 Oct) ──────────────────────────────────────────────── */

/* WooCommerce's own script adds a second "show password" button to every
   password field on its pages. The redesign's field already has one, so on the
   checkout / order-received screens the eye was drawn twice. */
.hsm-rd-auth__input-wrap .show-password-input {
    display: none !important;
}

/* Mobile order of a blog post, a sitter ad and a listing ad.
   Figma Blog Post / Sitter Ad / Listing Ad (Mobile): the title leads, then the
   photograph, then the facts and text, and a gallery comes last as two across.
   On desktop the text and the photo are two columns; on a phone the columns
   dissolve (display: contents) so each piece can be placed on its own. */
@media (max-width: 767px) {
    .hsm-rd-post-page__inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
    }

    .hsm-rd-post-page__content,
    .hsm-rd-post-page__side {
        display: contents;
    }

    .hsm-rd-post-page__content > header { order: 1; }
    .hsm-rd-post-page__photo            { order: 2; }
    .hsm-rd-post-page__by               { order: 3; margin-top: 0; }
    .hsm-rd-post-page__body             { order: 4; margin-top: 0; }

    .hsm-rd-post-page__by-label {
        white-space: nowrap;
    }

    .hsm-rd-profile__inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 40px;
    }

    .hsm-rd-profile__content,
    .hsm-rd-profile__side {
        display: contents;
    }

    .hsm-rd-profile__side {
        order: 0;
    }

    .hsm-rd-adminbar                { order: -3; }
    .hsm-rd-profile__head           { order: -2; margin-bottom: -16px; padding-bottom: 0; border-bottom: 0; }
    .hsm-rd-profile__cover          { order: -1; }
    .hsm-rd-profile__gallery        { order: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Sitter profile and listing galleries: plain thumbnails, no white frame and no drop
   shadow. The caption then sits right on the photo's edges rather than inside the 8px
   frame. */
.hsm-rd-profile .hsm-rd-profile__gallery li img,
.hsm-rd-profile .hsm-rd-profile__gallery li img.jslghtbx-thmb {
    border: 0;
    box-shadow: none;
}

.hsm-rd-profile .hsm-rd-profile__gallery li .hsm-rd-profile__caption {
    right: 0;
    bottom: 0;
    left: 0;
}

/* The main photo is plain too (no white card, no shadow), like the gallery
   thumbnails above. */
.hsm-rd-profile .hsm-rd-profile__cover img {
    border: 0;
    box-shadow: none;
}

/* Text sizes (Figma Sitter Ad / Listing Ad): body text is 18px / 1.5, the host's
   name 18px bold, and the grey "About the Sitters" boxes use an 18px body with a
   20px bold name, 16px padding and 8px between lines. The legacy style.css sets
   every div to 20px, which is why these were a size too big. */
.hsm-rd-profile__block:not(.hsm-rd-profile__reviews) > div,
.hsm-rd-profile__block > p,
.hsm-rd-profile__block > ul {
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-profile__host strong {
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-profile__sitter {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-profile__sitter h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.5;
}

.hsm-rd-profile__sitter p {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-profile__sitter p strong {
    flex: 0 0 auto;
    min-width: 110px;
}

/* Figma: the rule under the host row is followed by the full 40px gap to the first
   section (Ad Header is 576px tall including that rule, the first section starts
   at 616). The header, facts and host row are 24px apart from each other; only the
   last gap is 40. */
.hsm-rd-profile__who {
    margin-bottom: 0;
}

/* Spacing, from Figma's positions (Sitter Ad, desktop 2763-25138 and mobile
   3335-16460): a section title that stands alone, "About the Sitters", is 40px above
   its grey boxes like every other gap between items (the 16px under a title only
   applies when text follows it inside the same section). */
.hsm-rd-profile__block h2 + .hsm-rd-profile__sitters {
    /* Margins collapse with the title's 16px, so this is the whole gap. */
    margin-top: 40px;
}

@media (max-width: 767px) {
    /* Photo to facts is 24px (the header's own gap), not the 40px between sections. */
    .hsm-rd-profile__cover {
        margin-bottom: -16px;
    }

    /* The Send button sits 8px under the host row when it wraps. */
    .hsm-rd-profile__who {
        row-gap: 8px;
    }

    /* The gallery is 80px under the last section (a 40px gap plus 40). */
    .hsm-rd-profile__gallery {
        margin-top: 40px;
    }
}

/* Listing and sitter: gaps from Figma (Listing Ad, 2580-9457 / 3335-16809). */

/* The reviews list already spaces its items 16px apart; the extra margin on each made
   the gap under the title and between cards 32px. */
.hsm-rd-profile__reviews > :not(h2) {
    margin-top: 0;
}

/* The label column is 140px (Figma: each label is a flex item capped at 140px), or
   as wide as the longest label if that is wider, so it never wraps. */
.hsm-rd-profile__facts {
    grid-template-columns: minmax(140px, max-content) minmax(0, 1fr);
}

@media (max-width: 767px) {
    /* Display / Small: 36px, 1.15 line height, -2% tracking. */
    .hsm-rd-profile__head h1 {
        font-size: 36px;
        line-height: 1.15;
        letter-spacing: -0.72px;
    }
}

/* Review card on a phone (Figma Review, 3335-17217): the author on a row of their
   own, then the date over the stars on the left and the "Verified Review" pill on
   the right, 8px below. The assignment label sits above its dates. */
@media (max-width: 767px) {
    .hsm-rd-review__head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px 16px;
    }

    .hsm-rd-review__author {
        grid-column: 1 / -1;
    }

    .hsm-rd-review__side {
        display: contents;
    }

    .hsm-rd-review__when {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .hsm-rd-review__pill {
        justify-self: end;
    }

    .hsm-rd-profile__block p.hsm-rd-review__meta strong {
        display: block;
        margin-bottom: 4px;
    }
}

/* Review card sizes (Figma Review): the stars row is 16px tall and the pill 34px
   (its 1px border is drawn inside the 34), 157px wide on "Verified Review". */
.hsm-rd-review__stars {
    align-items: center;
    height: 16px;
    font-size: 16px;
    line-height: 16px;
}

.hsm-rd-review__pill {
    padding: 7px 15px;
}

/* ─── Search pages from page 2: the Paged Header ──────────────────────────
   Figma Find a Sitter Paged - Desktop (2912-23835). Past the first page the hero
   and the intro give way to one line, "Find a House Sit / p. 2": 48px red title,
   32px grey page number, 16px apart and sitting on one baseline-ish edge, with
   the cream wash behind the page (a fixed 712px block under the 120px header, as
   on the other pages). hsm_apply_paged_header() in hsm_advanced_search.js puts
   .hsm-rd-is-paged on <main>. */

.hsm-rd-paged {
    display: none;
    padding: 40px 0 0;
}

.hsm-rd-is-paged {
    background: var(--rd-white) linear-gradient(to bottom, var(--rd-cream) 10%, rgba(255, 255, 255, 0.8) 75%, var(--rd-white) 100%) no-repeat top / 100% 712px;
}

.hsm-rd-is-paged .hsm-rd-paged {
    display: block;
}

.hsm-rd-is-paged .hsm-rd-page-hero,
.hsm-rd-is-paged .hsm-rd-intro {
    display: none;
}

.hsm-rd-is-paged .hsm-rd-listings,
.hsm-rd-is-paged .hsm-rd-listings ul.job_listings,
.hsm-rd-is-paged .hsm-rd-listings .job_listings,
.hsm-rd-is-paged .hsm-rd-listings .resumes {
    /* The results list itself has a white background, which showed as a white
       panel over the cream wash from the filter bar down. */
    background: transparent;
}

.hsm-rd-is-paged .hsm-rd-listings {
    /* The bar's top edge is 40px under the header (Figma: 208 to 248); the section
       and its list add 58px before the bar, so pull it up by the difference. */
    margin-top: -18px;
}

.hsm-rd-paged__heading {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin: 0;
    font-family: var(--rd-font);
    font-weight: 700;
}

.hsm-rd-paged__title {
    color: var(--rd-red);
    font-size: 48px;
    line-height: 1;
    letter-spacing: -0.96px;
    white-space: nowrap;
}

.hsm-rd-paged__page {
    color: var(--rd-muted);
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -0.64px;
    white-space: nowrap;
}

/* Find a Sitter: its toolbar has less above the bar than the House Sit one, so the
   section is pushed down instead of up to keep the same 40px under the header. */
.hsm-redesign--find-a-sitter .hsm-rd-is-paged .hsm-rd-listings {
    margin-top: 8px;
}

/* On a phone (Figma Find a Sitter Paged - Mobile, 2912-18204): 32px above the
   header, the title and "p. 2" stacked 4px apart at the same sizes, 32px under. */
@media (max-width: 767px) {
    .hsm-rd-paged {
        padding: 32px 0 0;
    }

    .hsm-rd-paged__heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .hsm-rd-paged__title {
        white-space: normal;
    }

    /* 32px (not the desktop 40px) between the header and the filter bar. */
    .hsm-rd-is-paged .hsm-rd-listings {
        margin-top: -26px;
    }

    .hsm-redesign--find-a-sitter .hsm-rd-is-paged .hsm-rd-listings {
        margin-top: 0;
    }
}


/* Page changes on the search pages: the results dim while the next page loads and
   fade back in when it arrives (hsm_results_busy() in hsm_advanced_search.js), so a
   change of page is visibly a change of page rather than a sudden swap. */
.hsm-rd-listings ul.job_listings,
.hsm-rd-listings ul.resumes {
    transition: opacity 0.3s ease;
}

.hsm-rd-listings.hsm-rd-is-loading ul.job_listings,
.hsm-rd-listings.hsm-rd-is-loading ul.resumes {
    opacity: 0.25;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .hsm-rd-listings ul.job_listings,
    .hsm-rd-listings ul.resumes {
        transition: none;
    }
}

/* Review cards in a row are the same height, with the author line level under each
   (the grids used to size every card to its own text). */
.hsm-rd-reviews__grid,
.hsm-rd-testimonials__grid {
    align-items: stretch;
}

.hsm-rd-testimonial {
    display: flex;
    flex-direction: column;
}

.hsm-rd-testimonial__card {
    flex: 1 1 auto;
}


/* ─── Checkout, left side, to Figma Checkout - Desktop (2675-6448) ─────────
   Top to bottom: logo, title, "Returning member?", the price, the product on a
   cream card (name, caption, price), Subtotal, the coupon, then Total under a rule.
   Spacing is Figma's: 40px between the blocks, 16px between Subtotal, the coupon and
   Total. The order summary is plain blocks (woocommerce/checkout/review-order.php)
   dissolved into the page grid, so `order` sets where each one sits. The payment
   column on the right is Stripe's and is left alone. */

.hsm-rd-checkout {
    grid-template-rows: repeat(18, auto) 1fr;
}

.hsm-rd-checkout #payment {
    grid-row: 1 / span 19;
    order: 100;
}

.hsm-rd-checkout .woocommerce-checkout-review-order-table {
    display: contents;
}

.hsm-rd-checkout__head                         { order: 10; }
.hsm-rd-checkout .woocommerce-notices-wrapper,
.hsm-rd-checkout .woocommerce-NoticeGroup,
.hsm-rd-checkout .woocommerce-error,
.hsm-rd-checkout .woocommerce-message          { order: 20; }
.hsm-rd-checkout .woocommerce-form-login-toggle { order: 30; margin-top: 8px; }
.hsm-rd-checkout .woocommerce-form-login       { order: 31; }
.hsm-rd-checkout__price                        { order: 40; margin-top: 40px; font-size: 48px; line-height: 1.2; }
.hsm-rd-checkout #customer_details             { order: 90; margin-top: 40px; }

/* The product card. */
.hsm-rd-order__item {
    grid-column: 1;
    order: 50;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    max-width: 640px;
    margin-top: 40px;
    padding: 16px;
    background: var(--rd-cream);
    border: 1px solid var(--rd-gold-300);
    border-radius: 8px;
}

.hsm-rd-order__name {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--rd-ink);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hsm-rd-order__name .hsm-rd-checkout__item-desc {
    margin-top: 2px;
    color: var(--rd-muted);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
}

.hsm-rd-order__item .hsm-rd-order__amount {
    flex: 0 0 auto;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
}

/* Subtotal, discount, total. */
.hsm-rd-order__row {
    grid-column: 1;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    max-width: 640px;
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-order__row .hsm-rd-order__amount {
    font-weight: 700;
    white-space: nowrap;
}

.hsm-rd-order__row--subtotal { order: 60; margin-top: 40px; }
.hsm-rd-order__row--discount { order: 65; margin-top: 8px; color: var(--rd-green); }
.hsm-rd-order__row--fee,
.hsm-rd-order__row--tax      { order: 66; margin-top: 8px; }

.hsm-rd-order__row--total {
    order: 80;
    margin-top: 16px;
    padding: 16px 0 17px;
    border-top: 1px solid var(--rd-rule);
    font-weight: 700;
}

.hsm-rd-order__cur {
    font-size: inherit;
}

/* The coupon sits between Subtotal and Total: label, then the field and its button. */
.hsm-rd-checkout .woocommerce > a { order: 69; }
.hsm-rd-checkout .checkout_coupon2 {
    order: 70;
    margin: 16px 0 0;
    padding: 0;
}

@media (max-width: 900px) {
    .hsm-rd-checkout #payment {
        grid-row: auto;
    }
}

/* The legacy stylesheet has `p.form-row { margin: 10px !important }`, which pushed the
   coupon field and the billing fields 10px in from the column's left edge and added
   10px above and below every field. The design's own margins are restored here. */
.hsm-rd-checkout p.form-row {
    margin: 0 0 16px !important;
}

.hsm-rd-checkout .checkout_coupon2 p.form-row {
    margin: 0 !important;
}


/* "Fill with test data" on the sign-up form (test copies only; see
   hsm_redesign_is_test_site()). Dashed and labelled so it cannot be mistaken for part of
   the design. */
.hsm-rd-testfill {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 0 0 16px;
    padding: 12px 16px;
    border: 1px dashed #c4802a;
    border-radius: 8px;
    background: #fff8ec;
}

.hsm-rd-testfill__tag {
    color: #8a5a14;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hsm-rd-testfill__note {
    flex: 1 0 100%;
    margin: 0;
    color: var(--rd-ink);
    font-size: 14px;
    line-height: 1.4;
    word-break: break-all;
}


/* Checkout notices and the coupon-applied state. */

/* Success notices ("Coupon code applied successfully.", "... has been added to your
   cart.") are not shown: the order summary already shows the result. Errors still are. */
.woocommerce-checkout .hsm-rd-checkout .woocommerce-message {
    display: none !important;
}

/* The legacy stylesheet paints notices solid green or red; the design's checkout uses a
   quiet box with a coloured edge. */
.woocommerce-checkout .hsm-rd-checkout .woocommerce-error {
    margin: 16px 0 0;
    padding: 12px 16px;
    border: 1px solid var(--rd-red);
    border-radius: 8px;
    background: #fdecee;
    color: var(--rd-ink);
    font-size: 16px;
    line-height: 1.4;
    list-style: none;
}

.woocommerce-checkout .hsm-rd-checkout .woocommerce-error li {
    margin: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    list-style: none;
}

.woocommerce-checkout .hsm-rd-checkout .woocommerce-error li::before {
    display: none;
}

/* "Coupon: code  -$79.00  Remove": the saving in green, Remove small and plain. */
.hsm-rd-order__row--discount .hsm-rd-order__label a,
.hsm-rd-order__row--discount .hsm-rd-order__label {
    color: var(--rd-green);
    font-weight: 400;
}

.hsm-rd-order .woocommerce-remove-coupon {
    margin-left: 8px;
    color: var(--rd-muted);
    font-size: 14px;
    font-weight: 400;
    text-decoration: underline;
}

/* "Would you like to apply a different coupon?" (green, like the design's other links) */
.hsm-rd-checkout .hsm-rd-coupon-toggle {
    margin: 16px 0 0;
    color: var(--rd-green);
    font-size: 16px;
    line-height: 1.5;
    text-decoration: underline;
}

/* Place Order is regular weight, like every other button in the design (the legacy
   button style made it bold). */
.hsm-rd-checkout #place_order,
.woocommerce-checkout .hsm-rd-checkout #payment #place_order {
    font-weight: 400;
}


/* Checkout error box: a quiet pink panel with a red edge on the left. The blue ring that
   appeared was the browser's focus outline: WooCommerce moves focus to the notice so a
   screen reader announces it, which is fine, but it need not be drawn on a box nobody can
   type into. */
.woocommerce-checkout .hsm-rd-checkout .woocommerce-error {
    padding: 14px 16px 14px 20px;
    border: 1px solid #f0b8bd;
    border-left: 4px solid var(--rd-red);
    background: #fdf1f2;
}

.woocommerce-checkout .hsm-rd-checkout .woocommerce-error:focus,
.woocommerce-checkout .hsm-rd-checkout .woocommerce-error:focus-visible,
.woocommerce-checkout .hsm-rd-checkout .woocommerce-NoticeGroup:focus,
.woocommerce-checkout .hsm-rd-checkout .woocommerce-NoticeGroup:focus-visible {
    outline: none;
}

/* "Remove coupon": red, on a line of its own under the coupon row (Figma). */
.hsm-rd-order__row--discount {
    flex-wrap: wrap;
}

.hsm-rd-order__remove {
    flex: 1 0 100%;
}

.hsm-rd-order__row--discount .hsm-rd-order .woocommerce-remove-coupon,
.hsm-rd-order .hsm-rd-order__remove .woocommerce-remove-coupon {
    margin: 0;
    color: var(--rd-red);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: underline;
}


/* Coupon applied, to Figma "Checkout (Coupon Applied) - Desktop" (3124-17966): everything
   in black except two links. "Coupon: code" with "Remove Coupon" directly under it (18px,
   red, underlined) and the saving on the right, bold, ending in USD; then the green
   "Would you like to apply a different coupon?" at 18px. The rows are 16px apart, and
   Total is 40px under the group. */
.hsm-rd-order__row--discount {
    margin-top: 16px;
    row-gap: 0;
    color: var(--rd-ink);
}

.hsm-rd-order__row--discount .hsm-rd-order__label,
.hsm-rd-order__row--discount .hsm-rd-order__amount {
    color: var(--rd-ink);
}

.hsm-rd-order .hsm-rd-order__remove .woocommerce-remove-coupon {
    font-size: 18px;
}

.hsm-rd-checkout .hsm-rd-coupon-toggle {
    margin-top: 16px;
    font-size: 18px;
}

.hsm-rd-order__row--total.hsm-rd-order__row--after-coupon {
    margin-top: 40px;
}

/* An older rule for the plain link under the coupon (".woocommerce > a", grey 16px) was
   more specific than the one above, so the link stayed grey. */
.hsm-rd-checkout .woocommerce > a.hsm-rd-coupon-toggle {
    margin-top: 16px;
    color: var(--rd-green);
    font-size: 18px;
    line-height: 1.5;
    text-decoration: underline;
}

/* Coupon field to Figma "Coupon Field" (3124:21013): the bold label is 18px on a line
   height of 1 (so it is 18px tall, not 27), 8px above a 44px field; the button beside it is
   42px tall and as wide as its text plus 12px each side (138px), top-aligned with the field. */
.hsm-rd-checkout .checkout_coupon2 #coupon_form_inner {
    align-items: start;
    row-gap: 8px;
}

.hsm-rd-checkout .checkout_coupon2 #coupon_form_inner > p:first-child::before {
    line-height: 1;
}

.hsm-rd-checkout .checkout_coupon2 .button {
    min-height: 0;
    padding: 11px;
    font-size: 18px;
    line-height: 18px;
}


/* Order summary rows are 27px tall (18px on a line height of 1.5), as in Figma. They are
   divs, and the legacy stylesheet sets every div to 20px, which made them 30px. */
.hsm-rd-thanks__list > div {
    font-size: 18px;
    line-height: 1.5;
}

/* Order Received and Order Summary, to Figma 3335-17593 and 3124-20821. */

/* "Forgot your password?" is 18px on a line height of 1.5 (it was 20px, which made its
   row 30px tall instead of 28). Applies to /log-in/ too, which uses the same link. */
.hsm-rd-auth__link {
    font-size: 18px;
    line-height: 1.5;
}

/* The logo is a block, so no line box adds a few pixels under it: the title then sits the
   40px under the logo that the design has (it was 45). */
.hsm-rd-auth--split .hsm-rd-auth__logo {
    display: flex;
    width: fit-content;
}

/* The "Remember my credentials / Forgot your password?" row is 28px tall in the design. */
.hsm-rd-auth__row--between:not(.hsm-rd-auth__row--actions) {
    min-height: 28px;
}

/* "Where did you hear of us?" (Figma "Coupon Field" layout): an 18px bold label on a line
   height of 1, 8px above a 44px field with a 42px Submit button beside it. */
.hsm-rd-thanks__survey .hsm-rd-auth__label {
    line-height: 1;
}

.hsm-rd-thanks__survey-row {
    align-items: flex-start;
}

.hsm-rd-thanks__survey-row .hsm-rd-btn {
    padding: 11px;
    font-size: 18px;
    line-height: 18px;
}

/* WordPress's admin bar is 46px tall at 782px and under, and under 601px it
   scrolls away instead of staying fixed, so the pinned header goes back to the
   very top there. */
@media (max-width: 782px) {
    .admin-bar .hsm-rd-header {
        top: 46px;
    }
    .admin-bar .hsm-rd-header.is-hidden {
        transform: translateY(calc(-100% - 46px));
    }
}
@media (max-width: 600px) {
    .admin-bar .hsm-rd-header {
        top: 0;
    }
    .admin-bar .hsm-rd-header.is-hidden {
        transform: translateY(-100%);
    }
}

/* FAQ: a question scrolled into view stops below the sticky mobile header. */
.hsm-rd-accordion__item { scroll-margin-top: 84px; }


/* ─── Profile: "See Map of Regions" link and popup ────────────────────────
   The link sits after the region list, as on the old profile. The popup holds
   the legacy map (hsm_advanced_search/mexico_map.php); everything here is
   scoped under .hsm-rd-regions-map so style.css's own svg#map rules (a
   negative margin and a float for the old search page) do not apply. */

.hsm-rd-profile__fact .hsm-rd-profile__regions {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 48px;
}

.hsm-rd-profile__regions a {
    color: var(--rd-green);
    font-size: 16px;
}

.hsm-rd-dialog--map {
    width: min(880px, calc(100vw - 32px));
}

.hsm-rd-dialog--map .hsm-rd-dialog__title {
    margin-bottom: 4px;
}

.hsm-rd-regions-map svg#map {
    display: block;
    float: none;
    width: 100%;
    height: auto;
    margin: 0 0 16px;
}

.hsm-rd-regions-map #states a {
    cursor: pointer;
}

/* The highlighted region (data-region, set by regions-map-dialog.php) at full
   strength, the rest faded. */
.hsm-rd-regions-map #states a path {
    opacity: 0.3;
    transition: opacity 0.2s ease;
}

.hsm-rd-regions-map[data-region="1"] #states a.region_1 path,
.hsm-rd-regions-map[data-region="2"] #states a.region_2 path,
.hsm-rd-regions-map[data-region="3"] #states a.region_3 path,
.hsm-rd-regions-map[data-region="4"] #states a.region_4 path,
.hsm-rd-regions-map[data-region="5"] #states a.region_5 path {
    opacity: 1;
}

.hsm-rd-regions-map #states a text {
    font-size: 10px;
    fill: var(--rd-ink);
    paint-order: stroke;
    stroke: #fff;
    stroke-width: 2px;
}

.hsm-rd-regions-map #states a line {
    stroke: #444;
    stroke-width: 1px;
}

.hsm-rd-regions-map .mex-map-caption {
    font-size: 15px;
    font-weight: 700;
}

/* Only the highlighted region's caption shows. All five share one grid cell,
   so the box is as tall as the longest and the popup does not jump about as
   the highlight moves. */
.hsm-rd-regions-map .map_caption_container {
    display: grid;
    height: auto;
    overflow: visible;
}

.hsm-rd-regions-map .map_caption {
    display: block;
    grid-area: 1 / 1;
    visibility: hidden;
    position: static;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    font-size: 16px;
    line-height: 1.4 !important;
}

.hsm-rd-regions-map .map_caption p {
    margin: 2px 0 0 !important;
    padding-left: 0 !important;
    font-size: 14px;
    font-style: italic;
}

.hsm-rd-regions-map a.region_1 path { fill: #D82415; }
.hsm-rd-regions-map a.region_2 path { fill: #97C004; }
.hsm-rd-regions-map a.region_3 path { fill: #F2CA06; }
.hsm-rd-regions-map a.region_4 path { fill: #F26A1C; }
.hsm-rd-regions-map a.region_5 path { fill: #025827; }
.hsm-rd-regions-map .map_caption_1 { background-color: rgba(216, 36, 21, 0.25); }
.hsm-rd-regions-map .map_caption_2 { background-color: rgba(151, 192, 4, 0.25); }
.hsm-rd-regions-map .map_caption_3 { background-color: rgba(242, 202, 6, 0.25); }
.hsm-rd-regions-map .map_caption_4 { background-color: rgba(242, 106, 28, 0.25); }
.hsm-rd-regions-map .map_caption_5 { background-color: rgba(2, 88, 39, 0.25); }

.hsm-rd-regions-map[data-region="1"] .map_caption_1,
.hsm-rd-regions-map[data-region="2"] .map_caption_2,
.hsm-rd-regions-map[data-region="3"] .map_caption_3,
.hsm-rd-regions-map[data-region="4"] .map_caption_4,
.hsm-rd-regions-map[data-region="5"] .map_caption_5 {
    visibility: visible;
}

.hsm-rd-regions-map__hint {
    margin: 0 0 8px;
    color: var(--rd-muted);
    font-size: 15px;
}

@media (max-width: 700px) {
    /* The shared popup rule stacks the body in a column with flex-basis 0, so
       with no set height this popup shrank to a sliver. Size it to the map
       instead; max-height still caps it and the body scrolls. */
    .hsm-rd-dialog--map .hsm-rd-dialog__body {
        flex: 1 1 auto;
        padding: 24px 16px 16px;
    }

    /* The map draws at under half size here, so the state names would be
       about 4px: drop them and their pointer lines, and swap the boxed
       "Region N" labels for larger outlined text. */
    .hsm-rd-regions-map #states a text,
    .hsm-rd-regions-map #states a line,
    .hsm-rd-regions-map svg#map > svg {
        display: none;
    }

    .hsm-rd-regions-map .mex-map-caption {
        font-size: 24px;
        filter: none;
        paint-order: stroke;
        stroke: #fff;
        stroke-width: 4px;
        stroke-linejoin: round;
    }
}

.hsm-rd-regions-map .mex-map-caption {
    cursor: pointer;
}


/* ─── Sitters' profiles: Hosts only ───────────────────────────────────────
   The page a sitter's profile shows to anybody who may not see it (Figma
   3808-29023, profile-locked.php): one centred cream card, 703 wide, on the
   page's gold wash. And Find a Sitter's popup with the same message (Figma
   3808-30585, hosts-only-dialog.php): photograph over the message, faded in. */

.hsm-rd-locked.hsm-rd-filehero {
    padding: 70px 0 80px;
}

.hsm-rd-locked__card {
    max-width: 703px;
    margin: 0 auto;
    padding: 40px;
    border: 1px solid var(--rd-gold-300);
    border-radius: 16px;
    background: var(--rd-cream);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    color: var(--rd-ink);
    font-family: var(--rd-font);
    text-align: center;
}

.hsm-rd-locked__title {
    margin: 0 0 27px;
    color: var(--rd-red);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hsm-rd-locked__card p {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-locked__card a,
.hsm-rd-dialog--hosts-only a {
    color: var(--rd-green);
    text-decoration: underline;
}

.hsm-rd-dialog--hosts-only .hsm-rd-dialog__alert p {
    font-size: 18px;
}

/* The profile links it stands in for have no href, so say they are clickable. */
a[rel~="housesitter_cant_view_housesitters"] {
    cursor: pointer;
}

.hsm-rd-dialog--hosts-only[open] {
    animation: hsm-rd-fade-in 0.25s ease-out;
}

.hsm-rd-dialog--hosts-only[open]::backdrop {
    animation: hsm-rd-fade-in 0.25s ease-out;
}

@keyframes hsm-rd-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .hsm-rd-dialog--hosts-only[open],
    .hsm-rd-dialog--hosts-only[open]::backdrop {
        animation: none;
    }
}

@media (max-width: 900px) {
    .hsm-rd-locked.hsm-rd-filehero {
        padding: 40px 0 48px;
    }

    .hsm-rd-locked__card {
        padding: 24px;
    }

    .hsm-rd-locked__title {
        margin-bottom: 16px;
        font-size: 24px;
    }
}


/* ─── Dashboard homepage ──────────────────────────────────────────────────
   Figma 3833-38041 (desktop), 3839-38159 (phone). Inside the dashboard's
   own chrome (inc/dash_rail_mockup.php), which clears its fixed top bar,
   band and rail with padding on <body>. Greeting and announcement on the
   left; a 2:3 photograph on the right, as tall as the screen allows. On a
   phone the photograph goes under the card. */

.hsm-rd-dash-home {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    color: var(--rd-ink);
    font-family: var(--rd-font);
}

.hsm-rd-dash-home__main {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 40px;
    min-width: 0;
    padding: 24px;
}

.hsm-rd-dash-home .hsm-rd-dash-home__hello {
    margin: 0;
    color: var(--rd-ink);
    font-family: var(--rd-font);
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
}

.hsm-rd-dash-home__card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    border: 1px solid var(--rd-rule);
    border-radius: 16px;
    background: var(--rd-white);
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
}

.hsm-rd-dash-home .hsm-rd-dash-home__card-title {
    margin: 0;
    color: var(--rd-ink);
    font-family: var(--rd-font);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
}

.hsm-rd-dash-home__card-body {
    color: var(--rd-text-secondary);
    font-size: 18px;
    line-height: 1.5;
}

.hsm-rd-dash-home__card-body p {
    margin: 0 0 27px;
}

.hsm-rd-dash-home__card-body p:last-child {
    margin-bottom: 0;
}

/* Headings typed into the /dashboard/ page look like the card's title. */
.hsm-rd-dash-home .hsm-rd-dash-home__card-body :is(h1, h2, h3, h4, h5, h6) {
    margin: 0 0 8px;
    color: var(--rd-ink);
    font-family: var(--rd-font);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
}

.hsm-rd-dash-home__card-body a {
    color: var(--rd-green);
    text-decoration: underline;
}

.hsm-rd-dash-home__figure {
    flex: 0 0 auto;
    height: calc(100vh - var(--dm-bar-h, 64px) - var(--dm-title-h, 50px) - 32px);
    min-height: 360px;
    aspect-ratio: 2 / 3;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
}

.hsm-rd-dash-home__figure img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

/* The band: "Dashboard" alone, in the brand green, 50px (Figma "Sidebar
   Header", 3833-38045). The other dashboard pages say "Dashboard / {page}"
   in their section's colour. Two classes, to beat the chrome's own
   body.hsm-dashmock-on, which is printed later in the page. */
body.hsm-dashmock-on.hsm-dashmock-sec-home {
    --dm-title-h: 50px;
    --dm-accent: var(--rd-green);
    --dm-accent-ink: #fff;
}

body.hsm-dashmock-on.hsm-dashmock-sec-home .hsm-dashmock-pagetitle__text {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
}

@media (max-width: 1024px) {
    .hsm-rd-dash-home {
        flex-direction: column;
        align-items: stretch;
    }

    .hsm-rd-dash-home__main {
        gap: 24px;
        padding: 0;
    }

    .hsm-rd-dash-home__card-body p {
        margin-bottom: 27px;
    }

    .hsm-rd-dash-home__figure {
        height: auto;
        min-height: 0;
        aspect-ratio: 3 / 2;
    }
}
