.hovc-panel {
    color: inherit;
    margin: 1.5rem 0;
}

.hovc-panel h2,
.hovc-panel h3,
.hovc-panel h4 {
    margin-block: .4em .7em;
}

.hovc-eyebrow,
.hovc-resource-meta {
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hovc-category-grid,
.hovc-dashboard-grid,
.hovc-resource-list {
    display: grid;
    gap: 1rem;
}

.hovc-category-grid,
.hovc-dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    margin-block: 1.5rem;
}

.hovc-category-card,
.hovc-dashboard-card,
.hovc-resource-card,
.hovc-emergency {
    border: 1px solid currentColor;
    border-radius: .65rem;
    padding: 1rem;
}

.hovc-category-card,
.hovc-dashboard-card {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    color: inherit;
    text-decoration: none;
}

.hovc-category-card:hover,
.hovc-dashboard-card:hover {
    text-decoration: underline;
}

.hovc-category-card small {
    font-weight: 700;
}

.hovc-emergency {
    margin-block: 1rem 1.5rem;
    border-color: #9c2828;
}

.hovc-emergency p {
    margin-bottom: 0;
}

.hovc-form,
.hovc-filter-form {
    display: grid;
    gap: 1rem;
    margin-block: 1rem;
}

.hovc-form label,
.hovc-filter-form label {
    display: grid;
    gap: .35rem;
}

.hovc-form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.hovc-form input,
.hovc-form select,
.hovc-form textarea,
.hovc-filter-form input,
.hovc-filter-form select {
    box-sizing: border-box;
    max-width: 100%;
    min-height: 2.75rem;
    padding: .55rem .7rem;
    width: 100%;
}

.hovc-form textarea {
    min-height: 7rem;
}

.hovc-interests {
    display: grid;
    gap: .6rem 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    margin: 0;
    padding: 1rem;
}

.hovc-interests label,
.hovc-check {
    align-items: start;
    display: flex !important;
    gap: .55rem !important;
}

.hovc-interests input,
.hovc-check input {
    flex: 0 0 auto;
    margin-top: .25rem;
    min-height: auto;
    width: auto;
}

.hovc-button {
    background: #842d3a;
    border: 1px solid #842d3a;
    border-radius: .35rem;
    color: #fff !important;
    cursor: pointer;
    display: inline-block;
    font: inherit;
    font-weight: 700;
    padding: .7rem 1rem;
    text-decoration: none !important;
}

.hovc-button:hover,
.hovc-button:focus {
    filter: brightness(.9);
}

.hovc-button-secondary {
    background: transparent;
    color: inherit !important;
}

.hovc-button-danger {
    background: #8c2020;
    border-color: #8c2020;
}

.hovc-notice,
.hovc-empty {
    border-left: .25rem solid #842d3a;
    margin-block: 1rem;
    padding: .75rem 1rem;
}

.hovc-small {
    font-size: .9em;
}

.hovc-honeypot {
    height: 1px;
    left: -9999px;
    overflow: hidden;
    position: absolute;
    top: auto;
    width: 1px;
}

.hovc-filter-form {
    align-items: end;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
}

.hovc-resource-list {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
    margin-block: 1.2rem;
}

.hovc-resource-card {
    min-width: 0;
}

.hovc-resource-card h3,
.hovc-resource-card h4 {
    margin-block: .25rem .4rem;
}

.hovc-resource-org {
    font-weight: 700;
}
.hovc-provider-note {
    margin: 14px 0;
    padding: 10px 12px;
    border-left: 3px solid #3fbd35;
    background: #f5f8f3;
    color: #354239;
    font-size: .92rem;
}

.hovc-details {
    margin-block: 1rem;
}

.hovc-detail-row {
    border-top: 1px solid #ccc;
    display: grid;
    gap: .3rem 1rem;
    grid-template-columns: minmax(9rem, 1fr) 2fr;
    padding: .55rem 0;
}

.hovc-detail-row dt {
    font-weight: 700;
}

.hovc-detail-row dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.hovc-resource-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1rem;
}

.hovc-inline-form {
    display: inline;
    margin: 0;
}

.hovc-text-button,
.hovc-text-link {
    background: none;
    border: 0;
    color: #842d3a;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
}

.hovc-account-delete {
    border-top: 1px solid #bbb;
    margin-top: 2rem;
    padding-top: 1rem;
}

@media (max-width: 600px) {
    .hovc-detail-row {
        grid-template-columns: 1fr;
    }

    .hovc-resource-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hovc-resource-actions > * {
        width: 100%;
    }
}

/* Membership sign-up card */
.hovc-register {
    box-sizing: border-box;
    width: min(100% - 32px, 900px);
    max-width: 900px;
    margin: 2rem auto;
    padding: clamp(1.25rem, 3vw, 2.25rem);
    border: 1px solid #e6e0d8;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(48, 40, 35, .07);
    line-height: 1.65;
}

.hovc-register > .hovc-eyebrow {
    margin: 0 0 .5rem;
    color: #58704f;
}

.hovc-register > h2 {
    max-width: 24ch;
    margin: 0 0 .75rem !important;
    color: #302823;
    font-size: clamp(1.65rem, 3vw, 2.1rem) !important;
    line-height: 1.22 !important;
}

.hovc-register > p:not(.hovc-eyebrow) {
    max-width: 76ch;
    margin-block: 0 1rem;
    line-height: 1.65;
}

.hovc-register .hovc-email-check {
    box-sizing: border-box;
    margin: 1.25rem 0 1.5rem;
    padding: .85rem 1rem;
    border: 1px solid #edd9b8;
    border-left: 4px solid #d58b3d;
    border-radius: 9px;
    background: #fcf6eb;
    color: #4a3b2c;
    font-size: .95rem;
    line-height: 1.55;
}

.hovc-register .hovc-form {
    gap: 1.1rem;
    margin: 1.5rem 0 1rem;
}

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

.hovc-register .hovc-form-grid label {
    gap: .45rem;
    color: #38312c;
    font-size: .94rem;
    line-height: 1.45;
    font-weight: 600;
}

.hovc-register .hovc-form-grid input,
.hovc-register .hovc-form-grid select {
    min-height: 44px;
    border: 1px solid #d7d0c8;
    border-radius: 8px;
    background: #fff;
}

.hovc-register .hovc-interests {
    gap: .75rem 1rem;
    padding: 1.1rem;
    border: 1px solid #d7e6d1;
    border-radius: 12px;
    background: #f1f7ee;
}

.hovc-register .hovc-interests legend {
    padding: 0 .35rem;
    color: #302823;
    font-size: 1rem;
    font-weight: 700;
}

.hovc-register .hovc-interests label {
    min-height: 46px;
    box-sizing: border-box;
    align-items: center;
    padding: .65rem .75rem;
    border: 1px solid rgba(48, 40, 35, .08);
    border-radius: 9px;
    background: #fff;
    line-height: 1.4;
}

.hovc-register .hovc-interests label:nth-child(4n + 1) { background: #fff; }
.hovc-register .hovc-interests label:nth-child(4n + 2) { background: #fbf3e7; }
.hovc-register .hovc-interests label:nth-child(4n + 3) { background: #f8eeef; }
.hovc-register .hovc-interests label:nth-child(4n) { background: #eef4f8; }

.hovc-register .hovc-form > .hovc-check {
    padding: .7rem .8rem;
    border-radius: 8px;
    background: #f7f5f1;
    line-height: 1.5;
}

.hovc-register .hovc-form > .hovc-small {
    margin: -.3rem 0 0;
    color: #625b55;
    font-size: .88rem;
    line-height: 1.5;
}

.hovc-register .hovc-form > .hovc-button {
    justify-self: start;
    width: auto;
    min-width: 0;
    min-height: 42px;
    padding: .65rem 1.2rem;
    border-radius: 8px;
    font-size: .95rem;
    line-height: 1.3;
}

.hovc-register > p:last-child {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .hovc-register {
        width: calc(100% - 24px);
        margin-block: 1rem;
        padding: 1.1rem;
        border-radius: 12px;
    }

    .hovc-register .hovc-form-grid {
        grid-template-columns: 1fr;
    }

    .hovc-register .hovc-interests {
        grid-template-columns: 1fr;
        padding: .9rem;
    }
}
/* Community membership and resource directory visual polish */
.hovc-panel.hovc-signin{box-sizing:border-box;width:min(100%,760px);margin:clamp(2rem,5vw,4rem) auto;padding:clamp(1.4rem,4vw,2.6rem);border:1px solid #dce8d8;border-radius:24px;background:linear-gradient(135deg,#f1f8ef 0%,#fffaf0 100%);box-shadow:0 18px 48px rgba(44,57,39,.12)}
.hovc-signin h2{margin:0 0 1.25rem;font-size:clamp(1.65rem,3vw,2.25rem);line-height:1.2}
.hovc-signin .hovc-form{padding:1.4rem;background:rgba(255,255,255,.82);border:1px solid #e5eadd;border-radius:18px}
.hovc-signin label{display:block;margin:0 0 .45rem;font-weight:650;color:#342c27}
.hovc-signin input[type=email],.hovc-signin input[type=password],.hovc-signin input[type=text]{box-sizing:border-box;width:100%;min-height:52px;margin:0 0 1rem;padding:.8rem 1rem;border:1px solid #cbd8c7;border-radius:12px;background:#fff;font-size:1rem}
.hovc-signin input:focus{outline:3px solid rgba(47,139,54,.2);border-color:#2f8b36}
.hovc-signin .hovc-button{width:auto;min-width:150px;padding:.85rem 1.7rem;border:0;border-radius:999px;background:#d98b36;color:#fff;font-weight:700;box-shadow:0 6px 14px rgba(129,79,29,.16)}
.hovc-signin .hovc-button:hover{background:#bd7022;transform:translateY(-1px)}
.hovc-signin p{line-height:1.65}
.hovc-panel.hovc-resource-directory{box-sizing:border-box;width:min(100% - 2rem,1180px);margin:clamp(2rem,5vw,4rem) auto;padding:clamp(1.2rem,3vw,2.5rem);border:1px solid #e9e2d5;border-radius:26px;background:linear-gradient(145deg,#fff 0%,#fbf7ef 100%);box-shadow:0 18px 48px rgba(48,39,30,.09)}
.hovc-resource-directory .hovc-eyebrow{display:inline-flex;padding:.5rem .9rem;border-radius:999px;background:#e8f4e5;color:#18702b;font-weight:750;letter-spacing:.08em}
.hovc-resource-directory h2,.hovc-resource-directory h3{line-height:1.2}
.hovc-resource-directory .hovc-emergency{margin:1.4rem 0;padding:1.1rem 1.25rem;border:1px solid #f0c8b8;border-left:5px solid #d67a52;border-radius:16px;background:#fff2ec}
.hovc-resource-directory .hovc-category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:1rem;margin:1.5rem 0}
.hovc-resource-directory .hovc-category-card{display:flex;min-height:170px;flex-direction:column;gap:.65rem;padding:1.25rem;border:1px solid rgba(60,70,50,.12);border-radius:20px;color:#302a25;text-decoration:none;box-shadow:0 8px 22px rgba(45,42,33,.07);transition:transform .18s ease,box-shadow .18s ease}
.hovc-resource-directory .hovc-category-card:nth-child(4n+1){background:#edf6e9}.hovc-resource-directory .hovc-category-card:nth-child(4n+2){background:#fff2df}.hovc-resource-directory .hovc-category-card:nth-child(4n+3){background:#eaf3f7}.hovc-resource-directory .hovc-category-card:nth-child(4n){background:#f4edfa}
.hovc-resource-directory .hovc-category-card:hover{transform:translateY(-4px);box-shadow:0 14px 28px rgba(45,42,33,.13)}
.hovc-resource-directory .hovc-category-card strong{font-size:1.15rem;line-height:1.3;color:#2d3027}.hovc-resource-directory .hovc-category-card span{line-height:1.55}.hovc-resource-directory .hovc-category-card small{margin-top:auto;color:#217332;font-weight:700}
.hovc-resource-directory .hovc-resource-results{margin-top:1.5rem;padding:clamp(1rem,3vw,1.7rem);border:1px solid #e5e5d9;border-radius:20px;background:#fff;box-shadow:0 10px 28px rgba(45,42,33,.06)}
.hovc-resource-directory .hovc-button{display:inline-flex;width:auto;min-height:48px;align-items:center;justify-content:center;padding:.75rem 1.4rem;border-radius:999px;font-weight:700}
@media(max-width:640px){.hovc-panel.hovc-signin,.hovc-panel.hovc-resource-directory{width:calc(100% - 1rem);margin:1rem auto;padding:1rem;border-radius:18px}.hovc-signin .hovc-form{padding:1rem}.hovc-resource-directory .hovc-category-grid{grid-template-columns:1fr}}
/* Live page selectors for the membership shortcodes */
body:has(input[type="password"]) main form{box-sizing:border-box!important;width:min(100% - 2rem,700px)!important;margin:2rem auto!important;padding:clamp(1.2rem,4vw,2.4rem)!important;border:1px solid #d9e7d5!important;border-radius:22px!important;background:linear-gradient(135deg,#eff7eb,#fff8ed)!important;box-shadow:0 16px 42px rgba(40,55,36,.12)!important}
body:has(input[type="password"]) main h2{width:min(100% - 2rem,700px)!important;margin:2rem auto 1rem!important;font-size:clamp(1.6rem,3vw,2.25rem)!important;line-height:1.2!important}
body:has(input[type="password"]) main form label{display:block!important;margin:.5rem 0!important;font-weight:650!important}
body:has(input[type="password"]) main form input{box-sizing:border-box!important;width:100%!important;min-height:50px!important;margin:0 0 1rem!important;padding:.75rem 1rem!important;border:1px solid #cad8c5!important;border-radius:12px!important;background:#fff!important}
body:has(input[type="password"]) main form button,body:has(input[type="password"]) main form input[type="submit"]{width:auto!important;min-width:145px!important;padding:.8rem 1.7rem!important;border:0!important;border-radius:999px!important;background:#d98b36!important;color:#fff!important;font-weight:700!important}
main a[href*="category%3D"]{display:flex!important;min-height:155px!important;flex-direction:column!important;justify-content:space-between!important;gap:.65rem!important;margin:.5rem!important;padding:1.25rem!important;border:1px solid #d8dfd2!important;border-radius:20px!important;background:#edf6e9!important;color:#302a25!important;box-shadow:0 8px 22px rgba(45,42,33,.08)!important;text-decoration:none!important}
main a[href*="category%3D"]:nth-of-type(4n+2){background:#fff1dc!important}main a[href*="category%3D"]:nth-of-type(4n+3){background:#eaf3f7!important}main a[href*="category%3D"]:nth-of-type(4n){background:#f4edfa!important}
main a[href*="category%3D"]:hover{transform:translateY(-3px);box-shadow:0 14px 28px rgba(45,42,33,.14)!important}


/* Member dashboard and resource cards */
.hovc-panel:has(.hovc-dashboard-grid),
.hovc-panel:has(.hovc-resource-list),
.hovc-panel.hovc-resource-directory {
    box-sizing: border-box;
    width: min(100% - 2rem, 1180px);
    margin: clamp(1.5rem, 4vw, 3rem) auto;
    padding: clamp(1.25rem, 3.5vw, 2.5rem);
    border: 1px solid #e6e0d8;
    border-radius: 22px;
    background: linear-gradient(145deg, #fff 0%, #fbf7ef 100%);
    box-shadow: 0 14px 38px rgba(48, 39, 30, .08);
}

.hovc-dashboard-grid {
    gap: 1.1rem;
}

.hovc-dashboard-card,
.hovc-resource-card {
    box-sizing: border-box;
    min-width: 0;
    padding: clamp(1rem, 2vw, 1.4rem);
    border: 1px solid rgba(48, 40, 35, .12);
    border-radius: 18px;
    color: #302823;
    line-height: 1.6;
    box-shadow: 0 7px 20px rgba(48, 40, 35, .06);
}

.hovc-dashboard-card:nth-child(4n + 1),
.hovc-resource-card:nth-child(4n + 1) { background: #edf6e9; }
.hovc-dashboard-card:nth-child(4n + 2),
.hovc-resource-card:nth-child(4n + 2) { background: #fff2df; }
.hovc-dashboard-card:nth-child(4n + 3),
.hovc-resource-card:nth-child(4n + 3) { background: #eaf3f7; }
.hovc-dashboard-card:nth-child(4n),
.hovc-resource-card:nth-child(4n) { background: #f4edfa; }

.hovc-dashboard-card:hover,
.hovc-dashboard-card:focus-visible {
    box-shadow: 0 12px 26px rgba(48, 40, 35, .12);
    transform: translateY(-2px);
}

.hovc-dashboard-card h2,
.hovc-dashboard-card h3,
.hovc-resource-card h2,
.hovc-resource-card h3,
.hovc-resource-card h4 {
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.hovc-resource-card p,
.hovc-dashboard-card p {
    overflow-wrap: anywhere;
}

.hovc-resource-directory .hovc-resource-results {
    padding: clamp(1rem, 2.5vw, 1.6rem);
    border-radius: 18px;
    background: #fff;
}

@media (max-width: 640px) {
    .hovc-panel:has(.hovc-dashboard-grid),
    .hovc-panel:has(.hovc-resource-list),
    .hovc-panel.hovc-resource-directory {
        width: calc(100% - 1.25rem);
        margin-block: 1rem;
        padding: 1rem;
        border-radius: 16px;
    }
}
