:root {
    --bg: #fcf8f5;
    --surface: #ffffff;
    --surface-soft: #fff4ef;
    --text: #1f1a17;
    --muted: #675a54;
    --border: #dfd3cb;
    --accent: #b8322f;
    --accent-dark: #8f211f;
    --accent-soft: #f7dfdb;
    --shadow: 0 18px 44px rgba(79, 48, 40, 0.12);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1160px;
    --font-body: "Trebuchet MS", "Avenir Next", "Segoe UI", sans-serif;
    --font-heading: "Gill Sans", "Trebuchet MS", "Avenir Next", sans-serif;
}

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

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(184, 50, 47, 0.08), transparent 22rem),
        linear-gradient(180deg, #fffdfb 0%, var(--bg) 100%);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

main {
    display: block;
}

.container {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
}

.narrow {
    width: min(760px, 100%);
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 253, 251, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(223, 211, 203, 0.9);
}

.header-row,
.nav-row,
.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-row {
    padding: 1rem 0 0.75rem;
}

.nav-row {
    padding: 0 0 1rem;
    flex-wrap: wrap;
}

.site-header-auth {
    background: rgba(255, 253, 251, 0.98);
}

.public-header-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "brand tools"
        "nav nav";
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.public-header-grid > .brand {
    grid-area: brand;
}

.public-header-menu {
    display: contents;
}

.public-header-menu .header-tools {
    grid-area: tools;
    justify-self: end;
}

.public-header-menu .nav-row {
    grid-area: nav;
    padding: 0;
}

.auth-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
    flex-wrap: nowrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.brand-mark {
    width: 70px;
    height: 70px;
    border-radius: 22px;
    border: 2px solid #1c1714;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.brand-heart {
    width: 22px;
    height: 22px;
    background: var(--accent);
    transform: rotate(45deg);
    position: absolute;
    top: 17px;
    border-radius: 4px;
}

.brand-heart::before,
.brand-heart::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
}

.brand-heart::before {
    top: -11px;
    left: 0;
}

.brand-heart::after {
    top: 0;
    left: -11px;
}

.brand-hands {
    width: 34px;
    height: 8px;
    border-top: 3px solid #1c1714;
    border-bottom: 3px solid #1c1714;
    border-radius: 10px;
    position: absolute;
    bottom: 16px;
    transform: rotate(-10deg);
}

.brand-copy {
    display: flex;
    flex-direction: column;
}

.brand-copy-auth {
    justify-content: center;
    line-height: 1;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand-tag {
    color: var(--muted);
    font-size: 0.95rem;
}

.brand-auth .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    box-shadow: none;
}

.brand-auth .brand-heart {
    width: 16px;
    height: 16px;
    top: 10px;
}

.brand-auth .brand-hands {
    width: 24px;
    height: 6px;
    bottom: 9px;
    border-top-width: 2px;
    border-bottom-width: 2px;
}

.brand-auth .brand-heart::before,
.brand-auth .brand-heart::after {
    width: 16px;
    height: 16px;
}

.brand-auth .brand-heart::before {
    top: -8px;
}

.brand-auth .brand-heart::after {
    left: -8px;
}

.brand-auth .brand-name {
    font-size: 1.35rem;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
    background: var(--accent-soft);
}

.mobile-only-nav-item {
    display: none;
}

.mobile-language-dropdown summary {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 46px;
    padding: 0.7rem 0.95rem;
    border-radius: 16px;
    font-weight: 700;
    color: var(--muted);
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    list-style: none;
}

.mobile-language-dropdown summary:hover,
.mobile-language-dropdown summary:focus-visible,
.mobile-language-dropdown[open] summary {
    color: var(--text);
    background: var(--accent-soft);
}

.mobile-language-dropdown summary::-webkit-details-marker {
    display: none;
}

.mobile-language-dropdown summary::after {
    content: "▼";
    font-size: 0.72rem;
    margin-left: auto;
}

.mobile-language-menu {
    display: none;
    margin-top: 0.35rem;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff9f7;
}

.mobile-language-option {
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 0.8rem;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.mobile-language-option:hover,
.mobile-language-option:focus-visible,
.mobile-language-option.is-active {
    color: var(--text);
    background: var(--accent-soft);
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
}

.language-label {
    font-size: 0.9rem;
    color: var(--muted);
}

.language-options {
    display: flex;
    gap: 0.5rem;
    font-weight: 700;
}

.language-options span {
    padding: 0.15rem 0.25rem;
}

.language-options .is-active {
    color: var(--accent);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.site-nav a {
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    font-weight: 700;
    color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-current {
    color: var(--text);
    background: var(--accent-soft);
}

.auth-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
}

.auth-nav a,
.nav-dropdown summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
    list-style: none;
}

.auth-nav a:hover,
.auth-nav a:focus-visible,
.auth-nav a.is-current,
.nav-dropdown summary:hover,
.nav-dropdown summary:focus-visible,
.nav-dropdown summary.is-current,
.nav-dropdown[open] summary {
    color: var(--text);
    background: var(--accent-soft);
}

.nav-dropdown {
    position: relative;
}

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

.nav-dropdown summary::after {
    content: "▼";
    font-size: 0.72rem;
    margin-left: 0.45rem;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    min-width: 220px;
    display: none;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.nav-dropdown[open] .nav-dropdown-menu {
    display: grid;
    gap: 0.2rem;
}

.nav-dropdown-menu a {
    justify-content: flex-start;
    width: 100%;
    border-radius: 12px;
}

.auth-nav-logout {
    color: var(--accent-dark);
}

.header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.mobile-actions {
    display: none;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.35rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    min-height: 50px;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--accent);
    color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
    background: var(--accent-dark);
}

.button-secondary {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}

.button-large {
    min-height: 58px;
    padding: 1rem 1.6rem;
    font-size: 1.05rem;
}

.hero,
.page-intro {
    padding: 3.25rem 0 2rem;
}

.hero-grid,
.split-layout,
.choice-grid,
.steps-grid,
.card-grid {
    display: grid;
    gap: 1.25rem;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
    align-items: stretch;
}

.hero-copy h1,
.page-intro h1,
.section-heading h2 {
    font-family: var(--font-heading);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
}

.hero-copy h1 {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    max-width: 13ch;
}

.page-intro h1,
.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.45rem 0.8rem;
    background: var(--accent-soft);
    color: var(--accent-dark);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lead {
    font-size: 1.12rem;
    color: var(--muted);
    max-width: 40rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.8rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.hero-panel {
    background: linear-gradient(180deg, var(--surface) 0%, #fff7f3 100%);
}

.feature-list {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
}

.feature-list li + li {
    margin-top: 0.65rem;
}

.section {
    padding: 1.5rem 0 3.5rem;
}

.section-soft {
    background: linear-gradient(180deg, rgba(247, 223, 219, 0.34) 0%, rgba(255, 255, 255, 0) 100%);
}

.section-heading {
    margin-bottom: 1.5rem;
}

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

.card-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-card h3,
.card h2,
.card h3 {
    margin-top: 0;
    margin-bottom: 0.65rem;
    font-family: var(--font-heading);
}

.text-link {
    display: inline-flex;
    margin-top: 0.8rem;
    color: var(--accent-dark);
    font-weight: 700;
}

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

.steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card {
    position: relative;
    padding-top: 4.5rem;
}

.step-number {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

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

.choice-card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.choice-card:hover,
.choice-card:focus-visible {
    border-color: #c99a95;
    transform: translateY(-2px);
}

.choice-card .button {
    margin-top: auto;
    width: fit-content;
}

.choice-badge {
    display: inline-flex;
    width: fit-content;
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.82rem;
    font-weight: 800;
}

.form-card {
    padding: 1.7rem;
}

.form-notice,
.flash {
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
    font-weight: 700;
}

.form-notice {
    margin-bottom: 1.25rem;
    background: var(--surface-soft);
    border: 1px solid #efcac2;
    color: var(--accent-dark);
}

.flash-stack {
    padding-top: 1rem;
}

.flash {
    background: #fff5d8;
    border: 1px solid #efd08b;
    color: #74560d;
}

.flash-success {
    background: #e9f8ed;
    border-color: #9fd0aa;
    color: #20582d;
}

.flash-error {
    background: #fff0ee;
    border-color: #e3aba3;
    color: #8f211f;
}

.flash-warning {
    background: #fff5d8;
    border-color: #efd08b;
    color: #74560d;
}

.flash-info {
    background: #edf5ff;
    border-color: #b7d0ef;
    color: #24496d;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-weight: 700;
}

.full-width {
    grid-column: 1 / -1;
}

.field-input {
    width: 100%;
}

.field-input-error {
    border-color: var(--accent);
    background: #fff7f6;
}

.field-errors {
    display: block;
    color: var(--accent-dark);
    font-size: 0.95rem;
    font-weight: 700;
}

.form-help {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 400;
}

.form-checklist {
    display: grid;
    gap: 0.85rem;
    margin: 1.25rem 0 1.5rem;
}

.checkbox-field {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
    font-weight: 700;
}

.checkbox-control {
    padding-top: 0.1rem;
}

.checkbox-control input {
    width: 1.2rem;
    height: 1.2rem;
    min-width: 1.2rem;
    min-height: 1.2rem;
}

.checkbox-copy {
    color: var(--text);
}

.checkbox-errors {
    margin-top: -0.4rem;
}

.dashboard-card {
    min-height: 100%;
}

.card-meta {
    color: var(--muted);
    font-weight: 700;
}

.plain-list {
    margin: 0.75rem 0 0;
    padding-left: 1.2rem;
}

.plain-list li + li {
    margin-top: 0.45rem;
}

.stack-actions,
.account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.stack-actions {
    margin-top: 1rem;
}

.confirmation-card,
.empty-state-card,
.match-summary {
    text-align: left;
}

.match-summary {
    margin-bottom: 1.25rem;
}

.match-grid {
    align-items: stretch;
}

.match-card {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.match-section h3 {
    margin-bottom: 0.4rem;
}

.match-section p {
    margin: 0;
}

.account-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.account-card-single {
    max-width: 760px;
}

.account-summary-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.account-data-list {
    display: grid;
    gap: 0.9rem;
    margin: 0;
}

.account-data-list div {
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(223, 211, 203, 0.8);
}

.account-data-list div:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.account-data-list dt {
    margin: 0 0 0.2rem;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.account-data-list dd {
    margin: 0;
    font-weight: 700;
}

.account-inline-list {
    margin-top: 0.4rem;
    padding-left: 1.1rem;
}

.account-card-actions {
    margin-top: auto;
    padding-top: 1.1rem;
}

.button-disabled {
    opacity: 0.58;
    pointer-events: none;
}

.match-row-list,
.provider-request-list {
    display: grid;
    gap: 1rem;
}

.provider-row-card,
.provider-request-card {
    display: grid;
    gap: 1rem;
}

.provider-row-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.provider-row-grid,
.provider-detail-layout {
    display: grid;
    gap: 1rem;
}

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

.provider-row-grid h3,
.provider-row-grid h4,
.provider-detail-section h3 {
    margin-bottom: 0.35rem;
}

.provider-row-grid p,
.provider-detail-section p {
    margin: 0;
}

.provider-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.provider-row-actions form {
    margin: 0;
}

.provider-detail-layout {
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.2fr);
    align-items: start;
}

.provider-detail-card {
    display: grid;
    gap: 1rem;
}

.provider-detail-section {
    display: grid;
    gap: 0.35rem;
}

.provider-dashboard-summary {
    margin-bottom: 1.5rem;
}

.provider-requests-heading {
    margin-top: 2rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 800;
    border: 1px solid transparent;
    text-transform: capitalize;
}

.status-new {
    background: #fff5d8;
    border-color: #efd08b;
    color: #74560d;
}

.status-viewed {
    background: #edf5ff;
    border-color: #b7d0ef;
    color: #24496d;
}

.status-closed {
    background: #f1efed;
    border-color: #d2cbc6;
    color: #645952;
}

.service-field-label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 700;
}

.service-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 1.25rem;
    margin-top: 0.75rem;
}

.service-check-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #e4d3cf;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.service-check-input {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
    accent-color: var(--accent);
}

.service-check-label {
    font-weight: 700;
    line-height: 1.3;
}

.service-check-row:has(.service-check-input:checked) {
    border-color: var(--accent);
    background: #fff7f6;
}

.checkbox-help {
    margin-top: -0.2rem;
    margin-left: 2.2rem;
}

.status-list {
    margin: 0 0 1.5rem;
    padding-left: 1.2rem;
    color: var(--text);
}

.status-list li + li {
    margin-top: 0.55rem;
}

.section-divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #cdbdb4;
    border-radius: var(--radius-sm);
    padding: 0.9rem 1rem;
    font: inherit;
    color: var(--text);
    background: #fff;
}

input::placeholder,
textarea::placeholder {
    color: #8a7d76;
}

input:focus,
textarea:focus,
select:focus,
.button:focus,
.site-nav a:focus,
.choice-card:focus,
.auth-nav a:focus,
.nav-dropdown summary:focus {
    outline: 3px solid rgba(184, 50, 47, 0.24);
    outline-offset: 2px;
}

.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    background: #fffdfa;
}

.footer-row {
    padding: 1.35rem 0;
    justify-content: center;
    text-align: center;
    color: var(--muted);
}

@media (max-width: 980px) {
    .hero-grid,
    .split-layout,
    .steps-grid,
    .card-grid-three,
    .card-grid-four,
    .choice-grid {
        grid-template-columns: 1fr;
    }

    .card-grid-two,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .desktop-actions {
        display: none;
    }

    .mobile-actions {
        display: flex;
    }

    .header-row,
    .nav-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-header-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-dropdown-menu {
        left: 0;
        right: auto;
    }

    .provider-row-grid,
    .provider-detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    .account-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .public-header-grid {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "brand toggle"
            "menu menu";
        gap: 0.75rem;
        padding: 0.75rem 0;
    }

    .public-header-grid > .menu-toggle {
        grid-area: toggle;
        display: inline-flex;
        justify-self: end;
    }

    .public-header-menu {
        display: none;
        grid-area: menu;
    }

    .site-header.menu-open .public-header-menu {
        display: block;
    }

    .public-header-menu .nav-row {
        display: flex;
        width: 100%;
        padding: 0.85rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: var(--surface);
        box-shadow: var(--shadow);
    }

    .public-header-menu .header-tools {
        display: none;
    }

    .public-header-menu .nav-row {
        flex-direction: column;
        align-items: stretch;
        max-height: min(72vh, 32rem);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .public-header-menu .site-nav,
    .public-header-menu .header-actions,
    .public-header-menu .header-actions .button {
        width: 100%;
    }

    .public-header-menu .site-nav,
    .public-header-menu .header-actions,
    .auth-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .public-header-menu .site-nav a,
    .public-header-menu .header-actions .button,
    .public-header-menu .site-nav .nav-dropdown summary {
        width: 100%;
        justify-content: flex-start;
    }

    .mobile-only-nav-item {
        display: block;
    }

    .public-header-menu .site-nav .mobile-language-dropdown {
        width: 100%;
    }

    .public-header-menu .site-nav .mobile-language-dropdown .nav-dropdown-menu,
    .public-header-menu .site-nav .mobile-language-dropdown[open] .nav-dropdown-menu {
        display: none;
    }

    .public-header-menu .site-nav .mobile-language-dropdown[open] .mobile-language-menu {
        display: grid;
        gap: 0.25rem;
    }

    .auth-header-row {
        flex-wrap: wrap;
        padding: 0.75rem 0;
    }

    .auth-header-row > .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .auth-nav {
        display: none;
        width: 100%;
        margin-top: 0.5rem;
        padding: 0.85rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: var(--surface);
        box-shadow: var(--shadow);
        gap: 0.35rem;
        max-height: min(72vh, 32rem);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .site-header.menu-open .auth-nav {
        display: grid;
    }

    .auth-nav a,
    .nav-dropdown,
    .nav-dropdown summary,
    .nav-dropdown-menu {
        width: 100%;
    }

    .auth-nav a,
    .nav-dropdown summary {
        justify-content: flex-start;
    }

    .nav-dropdown[open] .nav-dropdown-menu {
        display: grid;
        margin-top: 0.35rem;
    }

    .service-check-grid {
        grid-template-columns: 1fr;
    }

    .stack-actions,
    .account-actions {
        flex-direction: column;
    }

    .nav-dropdown-menu {
        position: static;
        min-width: 100%;
    }

    .account-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .provider-row-main,
    .provider-row-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 680px) {
    html {
        font-size: 17px;
    }

    .brand {
        align-items: flex-start;
    }

    .brand-mark {
        width: 62px;
        height: 62px;
    }

    .brand-auth {
        gap: 0.7rem;
        align-items: center;
    }

    .brand-auth .brand-mark {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .brand-auth .brand-heart {
        top: 9px;
    }

    .brand-auth .brand-hands {
        bottom: 8px;
        width: 22px;
    }

    .language-switch {
        width: 100%;
        justify-content: space-between;
    }

    .header-tools,
    .hero-actions,
    .header-actions {
        width: 100%;
    }

    .header-actions .button,
    .hero-actions .button {
        flex: 1 1 100%;
    }

    .site-nav {
        width: 100%;
    }

    .site-nav a {
        flex: 1 1 calc(50% - 0.5rem);
        text-align: center;
    }

    .hero,
    .page-intro {
        padding-top: 2rem;
    }
}
