/* Shared Concept 3 finishes. The original portal, forms and content stay in place. */
.wmpw-site-refresh {
    --wmpw-page-surface: #f8fafd;
    --wmpw-page-shadow: 0 12px 32px #173b7410;
    --wmpw-page-radius: 14px;
    --wmpw-reading-size: clamp(1.1875rem, calc(1.17rem + .23vw), 1.3125rem);
}
.wmpw-site-refresh #site-navigation .main-nav ul li a { font-size: 1rem !important; }
.wmpw-site-refresh #masthead .site-description { font-size: .75rem; }
.wmpw-site-refresh .wmpw-public .wmpw-kicker { font-size: .8rem; }
.wmpw-site-refresh .wmpw-public .wmpw-lede {
    font-size: clamp(1.125rem, calc(1.06rem + .3vw), 1.3125rem);
    line-height: 1.55;
}
.wmpw-site-refresh .wmpw-public .wmpw-button,
.wmpw-site-refresh .wmpw-public .wmpw-assessment-card .wmhw-submit-button,
.wmpw-site-refresh .wmpw-public .wmpw-assessment-card .wmhw-step-back {
    font-size: 1.0625rem;
    text-align: center;
}
.wmpw-site-refresh .wmpw-public :is(.wmpw-reassurance,.wmpw-report-note p,.wmpw-sample figcaption) {
    font-size: .9375rem;
    line-height: 1.5;
}
.wmpw-site-refresh .wmpw-report-note { font-size: 1rem; }
.wmpw-site-refresh .wmpw-sample__badge { font-size: .75rem; }
.wmpw-site-refresh .wmpw-sample__list li { font-size: clamp(.78rem, calc(.72rem + .25vw), .94rem); overflow-wrap: anywhere; }
.wmpw-site-refresh .wmpw-public .wmpw-sample__topline { font-size: .75rem; }
.wmpw-site-refresh .wmpw-assessment-copy > p:not(.wmpw-kicker) { font-size: 1.125rem; }
.wmpw-site-refresh .wmpw-public .wmpw-text-link,
.wmpw-site-refresh .wmpw-public .wmpw-video h2,
.wmpw-site-refresh .wmpw-benefits li,
.wmpw-site-refresh .wmpw-benefits p,
.wmpw-site-refresh .wmpw-public .wmpw-pilot > p { font-size: 1rem; }
.wmpw-site-refresh .wmpw-public .wmpw-pilot h2 { font-size: 1.1875rem; }
.wmpw-site-refresh .wmpw-assessment-card .wmhw-valuation-form label,
.wmpw-site-refresh .wmpw-assessment-card .wmhw-valuation-form .wmhw-lead-source-option span { font-size: 1rem; }
.wmpw-site-refresh .wmpw-assessment-card .wmhw-step-chip { font-size: .875rem; }
.wmpw-site-refresh .wmpw-assessment-card :is(.wmhw-location-help,.wmhw-location-status,.wmhw-step-copy,.wmhw-step-source-error) {
    font-size: .9375rem !important;
    line-height: 1.45;
}
.wmpw-site-refresh .site-footer {
    display: block !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.wmpw-site-refresh .site-info {
    background: #fff !important;
    border-top: 1px solid var(--wmpw-line);
    color: var(--wmpw-muted) !important;
}
.wmpw-site-refresh .site-info .inside-site-info {
    max-width: 1260px;
    padding: 18px clamp(16px,4vw,48px);
}
.wmpw-site-refresh .site-info .copyright-bar { width: 100%; }
.wmpw-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 25px;
    text-align: left;
    font: 15px/1.45 system-ui,sans-serif;
}
.wmpw-footer-brand { display: grid; gap: 3px; color: var(--wmpw-muted); }
.wmpw-footer-brand strong { color: var(--wmpw-blue-dark); font-size: 16px; }
.wmpw-footer-brand span { font-size: 14px; line-height: 1.45; }
.wmpw-footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 17px; }
.wmpw-site-refresh .site-info .wmpw-footer-links a { color: var(--wmpw-blue) !important; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.wmpw-site-refresh .generate-back-to-top { border-radius: 9px; background-color: var(--wmpw-blue-dark); color: #fff !important; }

.wmpw-refresh-interior #page {
    max-width: 1260px;
    min-height: 52vh;
    padding: clamp(17px,4vw,45px) clamp(16px,4vw,48px) clamp(28px,5vw,62px);
}
.wmpw-refresh-interior #content,
.wmpw-refresh-interior #main { padding: 0; margin: 0; }
.wmpw-refresh-interior #main .inside-article { padding: 0; background: transparent; }
.wmpw-refresh-interior #main,
.wmpw-refresh-interior #main * { box-sizing: border-box; }
.wmpw-refresh-interior #main .entry-header {
    border-radius: var(--wmpw-page-radius);
    padding: clamp(20px,4vw,39px);
    border: 1px solid var(--wmpw-line) !important;
    box-shadow: none !important;
    text-align: left;
    background: radial-gradient(ellipse at 90% 0%,#dceaff 0%,transparent 63%),linear-gradient(135deg,#fff,#eff5fe);
}
.wmpw-refresh-interior #main .entry-title,
.wmpw-refresh-interior #main .entry-content h1,
.wmpw-refresh-interior #main .entry-content h2,
.wmpw-refresh-interior #main .entry-content h3 {
    color: var(--wmpw-ink) !important;
    font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    font-weight: 750;
    letter-spacing: -.044em;
    overflow-wrap: anywhere;
}
.wmpw-refresh-interior #main .entry-title {
    font-size: clamp(2rem,5vw,3.6rem);
    line-height: 1.08;
    margin: 0;
}
.wmpw-refresh-interior #main .entry-content h1 { font-size: clamp(1.55rem,3.45vw,2.5rem); line-height: 1.15; }
.wmpw-refresh-interior #main .entry-content h2 { font-size: clamp(1.4rem,3vw,2rem); line-height: 1.2; }
.wmpw-refresh-interior #main .entry-content h3 { font-size: clamp(1.12rem,2vw,1.47rem); line-height: 1.25; }
.wmpw-refresh-interior #main .entry-content {
    margin-top: clamp(14px,2.7vw,29px);
    min-width: 0;
    color: var(--wmpw-ink);
}
.wmpw-refresh-interior #main .entry-content > p { margin-bottom: 1em; }
.wmpw-refresh-interior #main .entry-content,
.wmpw-refresh-interior #main .entry-content > p,
.wmpw-refresh-interior:is(.wmpw-refresh-about,.wmpw-refresh-legal,.wmpw-refresh-general,.wmpw-refresh-ambassador,.wmpw-refresh-not-found) #main .entry-content :is(p,li) {
    font-size: var(--wmpw-reading-size);
    line-height: 1.64;
}
.wmpw-refresh-interior #main .entry-content a:not([class]),
.wmpw-refresh-interior #main .entry-content :is(p,li) > a:not(.wp-block-button__link) {
    color: var(--wmpw-blue) !important;
    text-underline-offset: 3px;
}
.wmpw-refresh-interior #main .entry-content :is(img,video) { max-width: 100%; }
.wmpw-refresh-interior #main .entry-content .wp-block-button__link,
.wmpw-refresh-interior #main :is(.wmhw-agent-login-form,.wmhw-agent-register-form,.wmhw-agent-profile-form) button[type="submit"] {
    background: var(--wmpw-blue) !important;
    color: #fff !important;
    border: 1px solid transparent !important;
    min-height: 46px;
    padding: 10px 16px;
    border-radius: 9px !important;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}
.wmpw-refresh-interior #main :is(.wp-block-button__link,.wmhw-agent-login-form button[type="submit"],.wmhw-agent-register-form button[type="submit"],.wmhw-agent-profile-form button[type="submit"]):hover {
    background: var(--wmpw-blue-dark) !important;
}

/* Public editorial pages: keep legal copy, links, markup and view width readable. */
.wmpw-refresh-interior:is(.wmpw-refresh-about,.wmpw-refresh-legal,.wmpw-refresh-general,.wmpw-refresh-ambassador,.wmpw-refresh-not-found) #main .inside-article {
    width: min(100%, 920px);
    margin-inline: auto;
}
.wmpw-refresh-interior:is(.wmpw-refresh-about,.wmpw-refresh-legal,.wmpw-refresh-general,.wmpw-refresh-ambassador,.wmpw-refresh-not-found) #main .entry-content {
    background: #fff;
    border: 1px solid var(--wmpw-line);
    border-radius: var(--wmpw-page-radius);
    box-shadow: var(--wmpw-page-shadow);
    padding: clamp(16px,4.1vw,39px);
    overflow-wrap: anywhere;
}
.wmpw-refresh-legal #main .entry-content :is(p,li) { line-height: 1.68; }
.wmpw-refresh-legal #main .inside-article:not(:has(.entry-content h1)) > .entry-header { display: block !important; }
.wmpw-refresh-about #main .entry-content :is(ul,ol) { margin-inline-start: 1.35em; }

/* Terms has its own legacy heading and inline stylesheet inside the document. */
.wmpw-refresh-legal #main .entry-content .wmhw-terms {
    max-width: none;
    padding: 0;
    font-family: inherit;
    color: var(--wmpw-ink);
}
.wmpw-refresh-legal #main .entry-content .wmhw-terms .terms-header {
    background: transparent;
    color: var(--wmpw-ink);
    padding: 0 0 clamp(16px,3vw,26px);
    border-radius: 0;
    border-bottom: 1px solid var(--wmpw-line);
    margin-bottom: clamp(16px,3vw,24px);
}
.wmpw-refresh-legal #main .entry-content .wmhw-terms .terms-header h1 {
    color: var(--wmpw-ink) !important;
    font-size: clamp(2rem,4.6vw,3.35rem);
    margin-bottom: 8px;
}
.wmpw-refresh-legal #main .entry-content .wmhw-terms .terms-header :is(.subtitle,.meta) {
    color: var(--wmpw-muted);
    font-size: 1.0625rem;
    opacity: 1;
}
.wmpw-refresh-legal #main .entry-content .wmhw-terms section { padding: clamp(14px,3vw,24px); }

/* Account pages and original, unmodified WordPress/portal form markup. */
.wmpw-refresh-login #main .inside-article,
.wmpw-refresh-registration #main .inside-article { margin-inline: auto; }
.wmpw-refresh-login #main .inside-article { max-width: 540px; }
.wmpw-refresh-registration #main .inside-article { max-width: 790px; }
.wmpw-refresh-login #main .entry-header { padding: clamp(18px,4vw,33px); }
.wmpw-refresh-interior #main :is(.wmhw-agent-login-form,.wmhw-agent-register-form),
.wmpw-refresh-dashboard #main .wmhw-profile-form-wrap {
    width: 100%;
    max-width: none !important;
    border: 1px solid var(--wmpw-line);
    border-radius: var(--wmpw-page-radius);
    background: #fff;
    box-shadow: var(--wmpw-page-shadow);
    padding: clamp(16px,3.5vw,32px);
}
.wmpw-refresh-interior #main :is(.wmhw-agent-login-form,.wmhw-agent-register-form,.wmhw-agent-profile-form) label {
    color: var(--wmpw-ink);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 3px;
}
.wmpw-refresh-interior #main :is(.wmhw-agent-login-form,.wmhw-agent-register-form,.wmhw-agent-profile-form) :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea) {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 45px;
    padding: 8px 10px;
    border: 1px solid #b8c9e1;
    border-radius: 8px;
    background: #fff;
    color: var(--wmpw-ink);
    font-size: 16px;
}
.wmpw-refresh-interior #main .wmhw-agent-profile-form input[readonly] { background: #eff4fa; }
.wmpw-refresh-interior #main .wmhw-agent-login-form :is(label,button) { margin-top: 9px; }
.wmpw-refresh-interior #main .wmhw-agent-login-form > p { margin-block: 12px 0; }
.wmpw-refresh-interior #main .wmhw-agent-login-form input[type="checkbox"] { accent-color: var(--wmpw-blue); width: 17px; height: 17px; vertical-align: middle; }
.wmpw-refresh-interior #main :is(.wmhw-agent-register-form,.wmhw-agent-profile-form) :is(.wmhw-field-help,.wmhw-location-help,.wmhw-location-status) {
    font-size: .9375rem !important;
    line-height: 1.45;
}
.wmpw-refresh-registration #main .wmhw-sponsor-registration-notice {
    background: var(--wmpw-pale);
    color: var(--wmpw-blue-dark);
    width: 100%;
    max-width: none;
    border: 1px solid var(--wmpw-line);
    border-left: 4px solid var(--wmpw-blue);
    border-radius: 9px;
    font-size: 1rem;
}
.wmpw-refresh-interior #main .wmhw-message { border-radius: 9px; }
.wmpw-refresh-login #main .wmhw-message.wmhw-error,
.wmpw-refresh-registration #main .wmhw-message.wmhw-error { background: #fff2f1; color: #852320; border: 1px solid #eab9b5; padding: 11px 13px; }

/* Dashboard controls: no tab, dialog, hidden item, or table markup is altered. */
.wmpw-refresh-dashboard #main .wmhw-dashboard { width: 100%; max-width: none; }
.wmpw-refresh-dashboard #main .wmhw-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    margin-block: 15px 12px;
    border: 1px solid var(--wmpw-line);
    border-radius: 11px;
    background: #fff;
}
.wmpw-refresh-dashboard #main .wmhw-tab-button {
    margin: 0;
    min-height: 42px;
    padding: 8px 12px;
    font-size: .9375rem;
    font-weight: 700;
    background: #eef4fe;
    color: var(--wmpw-blue-dark);
    border: 1px solid transparent;
    border-radius: 8px;
}
.wmpw-refresh-dashboard #main .wmhw-tab-button:hover { border-color: #9cbae4; }
.wmpw-refresh-dashboard #main .wmhw-tab-button.wmhw-tab-active { color: #fff; background: var(--wmpw-blue); border-color: var(--wmpw-blue); }
.wmpw-refresh-dashboard #main .wmhw-tab-content { min-width: 0; max-width: 100%; }
.wmpw-refresh-dashboard #main :is(.wmhw-income-calc-card,.wmhw-pending-message,.wmhw-agent-map-shell,.wmhw-lead-edit-panel) {
    border-radius: var(--wmpw-page-radius);
    border-color: var(--wmpw-line);
    box-shadow: var(--wmpw-page-shadow);
}
.wmpw-refresh-dashboard #main .wmhw-pending-message { background: var(--wmpw-pale) !important; border: 1px solid var(--wmpw-line) !important; }
.wmpw-refresh-dashboard #main :is(.wmhw-calc-link,.wmhw-copy-link-btn) {
    background: var(--wmpw-blue) !important;
    color: #fff !important;
    border-color: var(--wmpw-blue);
    border-radius: 8px;
    min-height: 36px;
}
.wmpw-refresh-dashboard #main :is(.wmhw-leads-table,.wmhw-agents-table,.wmhw-all-agents-table) { background: #fff; margin-block: 8px; }
.wmpw-refresh-dashboard #main :is(.wmhw-leads-table,.wmhw-agents-table,.wmhw-all-agents-table) th { background: var(--wmpw-pale); color: var(--wmpw-blue-dark); }
.wmpw-refresh-dashboard #main :is(.wmhw-leads-table,.wmhw-agents-table,.wmhw-all-agents-table) :is(td,th) { border-color: var(--wmpw-line); }
.wmpw-refresh-dashboard #main .wmhw-table-search-scope:has(:is(.wmhw-leads-table,.wmhw-agents-table,.wmhw-all-agents-table)) { max-width: 100%; overflow-x: auto; }
.wmpw-refresh-dashboard #main #allAgentsSection { max-width: 100%; overflow-x: auto; }
.wmpw-refresh-dashboard #main .wmhw-income-calc-card { min-width: 0; }
.wmpw-refresh-dashboard #main .wmhw-income-calc .wmhw-calc-count-mode-btn,
.wmpw-refresh-dashboard #main .wmhw-income-calc .wmhw-calc-preset-btn { border-radius: 7px; }

/* WordPress's existing password-reset handlers, with WMPW-only styling. */
.wmpw-refresh-password.login {
    background: radial-gradient(ellipse at 85% 0%,#dceaff 0%,transparent 65%),#f8fafd;
    color: #14213a;
}
.wmpw-refresh-password.login #login { width: min(410px, calc(100% - 32px)); padding-top: clamp(28px,7vw,64px); }
.wmpw-refresh-password.login #login h1 a {
    background-image: url("/wp-content/uploads/2021/07/WMHW.png");
    background-size: contain;
    width: 64px;
    height: 64px;
}
.wmpw-refresh-password.login #login :is(form,.message,.notice) { border-radius: 12px; }
.wmpw-refresh-password.login #login form { border-color: #d7e2f1; box-shadow: 0 12px 32px #173b7410; }
.wmpw-refresh-password.login #login form :is(input[type="text"],input[type="password"]) { font-size: 16px; border-color: #b8c9e1; border-radius: 8px; min-height: 45px; }
.wmpw-refresh-password.login #login .button-primary { background: #184aa7; border-color: #184aa7; border-radius: 8px; min-height: 42px; font-size: 1rem; }
.wmpw-refresh-password.login #login :is(label,.message,.notice) { font-size: 1rem; line-height: 1.45; }

@media (max-width: 768px) {
    .wmpw-site-refresh #masthead .main-title { font-size: clamp(13px,3.85vw,18px); }
    .wmpw-site-refresh #masthead .site-description { font-size: 11px; }
    .wmpw-refresh-interior #main .entry-header { padding: 19px 16px; }
    .wmpw-refresh-interior #main .entry-content > * { min-width: 0; }
    .wmpw-refresh-interior #main .wp-block-columns { gap: 12px; }
    .wmpw-refresh-dashboard #main .wmhw-tabs { gap: 5px; padding: 6px; }
    .wmpw-refresh-dashboard #main .wmhw-tab-button { min-height: 44px; padding: 7px 9px; }
    .wmpw-refresh-dashboard #main :is(.wmhw-profile-grid,.wmhw-income-calc-grid,.wmhw-leads-filter-form,.wmhw-marketing-grid) { grid-template-columns: minmax(0,1fr) !important; }
    .wmpw-refresh-dashboard #main .wmhw-link-options > div:has(> .wmhw-copy-link-btn):not([hidden]) {
        display: grid !important;
        grid-template-columns: minmax(0,1fr) auto;
    }
    .wmpw-refresh-dashboard #main .wmhw-link-options > div:has(> .wmhw-copy-link-btn) > label { grid-column: 1 / -1; min-width: 0 !important; }
    .wmpw-refresh-dashboard #main .wmhw-link-options input { min-width: 0; }
    .wmpw-refresh-dashboard #main .wmhw-table-search-scope:has(.wmhw-leads-table) .wmhw-leads-table { min-width: 780px; }
    .wmpw-refresh-dashboard #main .wmhw-table-search-scope:has(.wmhw-agents-table) .wmhw-agents-table { min-width: 520px; }
    .wmpw-refresh-dashboard #main .wmhw-profile-form-wrap { padding: 12px; }
    .wmpw-refresh-interior #main :is(.wmhw-agent-login-form,.wmhw-agent-register-form) button[type="submit"] { width: 100%; }
}

@media (max-width: 360px) {
    .wmpw-site-refresh .wmpw-sample__main { grid-template-columns: minmax(0,1fr); }
    .wmpw-site-refresh .wmpw-sample__map { height: 106px; }
    .wmpw-site-refresh .wmpw-sample__list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
