/* Custom CSS for header footer and special functions */

section.article-details ul li.checkmark {
    list-style-type: none;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.75;
}

section.article-details ul li.checkmark:before {
    content: '';
    width: 21px;
    height: 21px;
    background: red;
    float: left;
    background: url(../images/check-icon.svg);
    background-size: 100%;
    background-repeat: no-repeat;
    margin-right: 6px;
    margin-top: 2px;
    margin-left: -18px;
}

@media(min-width: 756px) {
    .lender-icon {
        right: 120px;
        bottom: 70px;
    }
}

.rating span.tes-spn1 {
    font-family: "Inter", Arial, Helvetica, sans-serif;
}

.reviews-lon-contnet-1 p {
    font-weight: 400;
}

.footer-text a {
    color: #FFF;
}

.reviews-lon-contnet-1 li {
    font-weight: inherit;
}

a.banner-btn1,
.via-loan-reviews,
.loan-steps-al {
    display: none;
}

#footer>div.footer-call>div>div>div.footre-call-headline>h2>a {
    color: #fff;
}

.page-id-326 #map_wrapper_488 #id-427,
.page-id-326 #map_wrapper_488 #id-317,
.page-id-326 #map_wrapper_488 path[d^="M208.73967293251292"],
.page-id-326 #map_wrapper_488 path[d^="M300.6380768407673"] {
    display: none;
}

.tool-kit-flex::before {
    top: 0;
    bottom: unset;
    height: 100%;
}

.tool-kit-content p {
    font-size: 15px;
}

.via-loan-side-bar a:not([class*=btn]) {
    display: block;
    color: #5F6673; /* WIN-70: #7E8492 was 3.7:1 on white */
    font-feature-settings: 'liga' off, 'calt' off;
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 160%;
    padding-bottom: 10px;
}

.via-loan-side-bar a:not([class*=btn]):hover {
    color: #2E5EB1;
}

.reviews-lon-contnet-1 a {
    padding-bottom: 0;
}

.page-id-15 .home-testi-main span.line-c-1,
.page-id-15 .home-testi-main span.line-c-2,
.page-id-15 .testimonial-images img {
    display: none;
}

/* Desktop view (1200px and above) */
@media (min-width: 1200px) {
    .header-call a {
        display: inline-block;
    }

    .header-call .hamburger {
        display: none !important;
    }

    .floating-call {
        display: none;
    }
      .header-pages ul#menu-header-menu li a {
    font-size: 20px !important;  /* change to your desired size */
    line-height: 1.6 !important; /* adjust spacing */
  }

  .header-pages ul#menu-header-menu li a {
    font-size: 22px !important;  /* change to your desired size */
    line-height: 1.6 !important; /* adjust spacing */
  }
}

/* Tablet & Mobile view (below 1200px) */
@media (max-width: 1199px) {

    /* Hide Call Us in header */
    .header-call a {
        display: none !important;
    }

    #scroll-up-bar {
        display: none !important;
    }

    /* Reposition header-call container for hamburger */
    .header-call {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    /* Hamburger styling */
    .header-call .hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        cursor: pointer;
    }

    .header-call .hamburger span {
        display: block;
        height: 3px;
        background: #fff;
        /* always white */
        border-radius: 2px;
    }

    /* Hide duplicate hamburger inside nav */
    .header-pages .hamburger {
        display: none !important;
    }

    /* --- Floating Call Us button --- */
    body .header-call.floating {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 9999;
        display: block !important;
    }

    body .header-call.floating a {
        display: inline-block !important;
        background-color: #3B7ADE;
        /* brand color */
        color: #fff !important;
        padding: 12px 20px;
        border-radius: 50px;
        font-size: 16px;
        font-weight: 600;
        text-decoration: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .floating-call {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 9999;
    }

    .floating-call a img {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
        background-color: #2f5ebc;
        /* same blue as the circle */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .header-pages.ham-active {
        position: fixed;
        inset: 0;
        z-index: 10010;
        overflow-y: auto;

    }

    body.menu-open header.header-mains {
        z-index: 1000;
    }
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 10020; /* keep above overlay */
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center; /* keep rotations aligned */
}

/* When active, morph to X */
.hamburger.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(6.7px, 6.7px);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(6.5px, -6.5px);
}
body.menu-open {
  overflow: hidden; /* prevents page flicker / background scroll */
}
.mobile-nav.ham-active {
  position: fixed;
  inset: 0;
  z-index: 10010;
  overflow-y: auto;
  background: #000; /* if you need overlay bg */
}

.footer-ehl {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: -50px;
    margin-right: 25px;
    z-index: 5;
}

.footer-ehl img.lender-icon {
    width: 30px; 
    height: auto;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.footer-ehl img.lender-icon:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .footer-ehl {
        margin-top: -20px;
        justify-content: center;
    }
}

/* ZeroBounce Email Validation Styles */
.email-validation-message {
    margin-top: 8px;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    line-height: 1.5;
    white-space: normal;
    word-wrap: break-word;
}

.email-validation-message strong {
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
}

.email-validation-success strong,
.email-validation-valid strong {
    color: #155724 !important;
}

.email-validation-success,
.email-validation-valid {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.email-validation-error,
.email-validation-invalid {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.email-validation-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.email-validation-validating {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

input[name="email"].email-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

input[name="email"].email-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

input[name="email"].email-validating {
    border-color: #17a2b8;
    box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

/* ============================================
   Beautiful Comments Section Styling
   ============================================ */

/* Comments Section Container: sits in the article column (.article-details-sub1), below Related Articles */
.article-comments-section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

.article-comments-section .comment-text {
    overflow-wrap: anywhere;
}

/* Undo the article column's numbered-list styles (all.css `.article-details ol li`) */
.article-comments-section .comment-list li {
    list-style: none !important;
    padding-bottom: 0;
}

/* Comments Header */
.comments-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #3B7ADE;
}

.comments-title {
    font-family: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, Arial, Helvetica, sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #1F2D69;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.comments-count {
    color: #3B7ADE;
}

/* Comment List */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list .comment-list,
.comment-list .children {
    margin-left: 60px;
    margin-top: 36px;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.comment-list .comment-list .comment-item,
.comment-list .children .comment-item {
    margin-bottom: 0;
}

.comment-item {
    margin-bottom: 40px;
    padding: 0;
    background: transparent;
}

.comment-wrapper {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.comment-wrapper:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Nested comments (replies) */
.comment-list .comment-item .comment-wrapper {
    background: #f8fafc;
    border-color: rgba(59, 122, 222, 0.15);
}

.comment-list .comment-list .comment-item .comment-wrapper {
    background: #fff;
}

/* Comment Avatar */
.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
    transition: border-color 0.3s ease;
}

.comment-wrapper:hover .comment-avatar-img {
    border-color: #3B7ADE;
}

/* Comment Content */
.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

.comment-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.comment-author {
    font-family: "Plus Jakarta Sans", "Inter", Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1F2D69;
    font-style: normal;
}

.comment-author a {
    color: #1F2D69;
    text-decoration: none;
    transition: color 0.3s ease;
}

.comment-author a:hover {
    color: #3B7ADE;
}

.comment-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #3B7ADE;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comment-time {
    font-size: 14px;
    color: #9CA3AF;
    font-family: "Inter", Arial, Helvetica, sans-serif;
}

.comment-text {
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1F2937;
    margin-bottom: 16px;
}

.comment-text p {
    margin: 0 0 12px;
}

.comment-text p:last-child {
    margin-bottom: 0;
}

.comment-awaiting-moderation {
    background: #FEF3C7;
    color: #92400E;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 12px;
    border-left: 3px solid #F59E0B;
}

.comment-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Matches the site's "Read More" outline button (.news-card1) */
.comment-reply-link {
    display: inline-block;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: #3B7ADE;
    text-decoration: none;
    padding: 9px 13px;
    background: transparent;
    border: 1px solid #3B7ADE;
    border-radius: 4.541px;
    transition: background 0.3s, color 0.3s;
}

.comment-reply-link:hover,
.comment-reply-link:focus {
    background: #0056b3;
    border-color: #0056b3;
    color: #fff;
}

.edit-comment-link {
    font-size: 14px;
}

.edit-comment-link a {
    color: #7E8492;
    text-decoration: none;
    transition: color 0.3s ease;
}

.edit-comment-link a:hover {
    color: #3B7ADE;
}

/* Comment Form */
.comment-form {
    margin-top: 50px;
    padding: 32px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.comment-form-title {
    font-family: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, Arial, Helvetica, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1F2D69;
    margin: 0 0 30px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.comment-form .comment-form-author,
.comment-form .comment-form-email,
.comment-form .comment-form-comment {
    margin-bottom: 24px;
}

.comment-form-notice {
    margin: 0 0 16px;
    padding: 12px 16px;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
    background: #f1f5f9;
    border-left: 3px solid #3B7ADE;
    border-radius: 8px;
}

.comment-label {
    display: block;
    font-family: "Plus Jakarta Sans", "Inter", Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 8px;
}

.comment-label .required {
    color: #EF4444;
    margin-left: 2px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1F2937;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #3B7ADE;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 122, 222, 0.1);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form .form-submit {
    margin-top: 8px;
}

.comment-submit-btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #3B7ADE;
    border: 1px solid #3B7ADE;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}

.comment-submit-btn:hover,
.comment-submit-btn:focus {
    background: #0056b3;
    border-color: #0056b3;
}

.cancel-reply-link {
    display: inline-block;
    margin-left: 16px;
    font-family: "Plus Jakarta Sans", "Inter", Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #7E8492;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cancel-reply-link:hover {
    color: #3B7ADE;
}

/* Comment Navigation */
.comment-navigation {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-links a,
.nav-links span {
    display: inline-block;
    padding: 10px 18px;
    font-family: "Plus Jakarta Sans", "Inter", Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #3B7ADE;
    background: rgba(59, 122, 222, 0.08);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: rgba(59, 122, 222, 0.15);
    transform: translateY(-2px);
}

.nav-links .current {
    background: #3B7ADE;
    color: #fff;
}

.nav-links span {
    color: #7E8492;
    background: #e2e8f0;
    cursor: default;
}

/* No Comments Message */
.no-comments {
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 16px;
    color: #7E8492;
    text-align: center;
    padding: 40px 20px;
    background: #f8fafc;
    border-radius: 12px;
    margin: 30px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-comments-section {
        margin-top: 40px;
        padding-top: 30px;
    }

    .comments-title {
        font-size: 26px;
    }

    .comment-wrapper {
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }

    .comment-avatar {
        align-self: flex-start;
    }

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

    .comment-list .comment-list,
    .comment-list .children {
        margin-left: 20px;
        margin-top: 30px;
        gap: 22px;
    }

    .comment-form {
        padding: 24px 20px;
    }

    .comment-form-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .comment-form input[type="text"],
    .comment-form input[type="email"],
    .comment-form textarea {
        padding: 12px 16px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .comments-title {
        font-size: 22px;
    }

    .comment-wrapper {
        padding: 16px;
    }

    .comment-author {
        font-size: 16px;
    }

    .comment-text {
        font-size: 15px;
    }

    .comment-form {
        padding: 20px 16px;
    }

    .comment-form-title {
        font-size: 20px;
    }

    .comment-list .comment-list,
    .comment-list .children {
        margin-left: 10px;
        margin-top: 24px;
        gap: 18px;
    }
}

/* ============================================
   Search Results Page Styling
   ============================================ */
.search-page {
    padding: 72px 0 96px;
    background: linear-gradient(180deg, #f7f9ff 0%, #ffffff 55%);
}

.search-page__header {
    max-width: 720px;
    margin: 80px auto 56px;
    text-align: center;
}

.search-page__eyebrow {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: #3B7ADE;
    margin-bottom: 12px;
}

.search-page__title {
    font-family: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, Arial, Helvetica, sans-serif;
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.1;
    color: #0f172a;
    margin: 0 0 16px;
}

.search-page__summary {
    font-size: 18px;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 32px;
}

.search-page__form-wrapper {
    display: flex;
    justify-content: center;
}

.search-page__form {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    border-radius: 999px;
    padding: 8px 10px 8px 20px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.search-page__form:focus-within {
    box-shadow: 0 16px 32px rgba(59, 122, 222, 0.2), 0 0 0 2px rgba(59, 122, 222, 0.15);
}

.search-page__form-field {
    flex: 1;
    margin: 0;
}

.search-page__input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 18px;
    padding: 8px 0;
    color: #0f172a;
}

.search-page__input::placeholder {
    color: #94a3b8;
}

.search-page__input:focus {
    outline: none;
}

.search-page__submit {
    border: none;
    background: linear-gradient(135deg, #3B7ADE 0%, #2E5EB1 100%);
    color: #fff;
    font-weight: 700;
    padding: 12px 22px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 14px;
}

.search-page__submit::after {
    content: '';
    width: 16px;
    height: 16px;
    background: #ffffff;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M5 12h14m-7-7 7 7-7 7"/></svg>') center/contain no-repeat;
}

.search-page__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(59, 122, 222, 0.3);
}

.search-page__submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 122, 222, 0.35);
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.search-result-card {
    background: #ffffff;
    border: 1px solid rgba(46, 94, 177, 0.08);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.search-result-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(59, 122, 222, 0.18);
}

.search-result-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.search-result-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.search-result-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.search-result-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    flex: 1;
}

.search-result-card__meta {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #3B7ADE;
}

.search-result-card__title {
    font-size: 22px;
    line-height: 1.35;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.search-result-card__excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: #475569;
    margin: 0;
    flex: 1;
}

.search-result-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 14px;
    color: #2E5EB1;
}

.search-result-card__cta::after {
    content: '→';
    transition: transform 0.2s ease;
}

.search-result-card:hover .search-result-card__cta::after {
    transform: translateX(6px);
}

.search-pagination {
    margin-top: 64px;
    text-align: center;
}

.search-page__empty {
    max-width: 560px;
    margin: 0 auto;
}

.search-empty-card {
    background: #ffffff;
    border: 1px solid rgba(46, 94, 177, 0.1);
    border-radius: 24px;
    padding: 48px 36px;
    text-align: center;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.1);
}

.search-empty-card__title {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px;
}

.search-empty-card__copy {
    font-size: 17px;
    color: #475569;
    margin: 0;
}

@media (max-width: 768px) {
    .search-page {
        padding: 56px 0 72px;
    }

    .search-page__header {
        margin-bottom: 40px;
    }

    .search-page__form {
        flex-direction: column;
        align-items: stretch;
        border-radius: 28px;
        padding: 16px 20px;
    }

    .search-page__submit {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   OVERFLOW FIX: Reverse Mortgage Interest Rate & Counseling pages
   - YouTube/iframe: responsive, no full-page overflow
   - Tables: overflow-x scroll only (not entire page)
   ========================================================================== */

/* Prevent full-page horizontal overflow on affected pages */
.counseling-requested-page #wrapper,
.counseling-requested-page #main,
body:has(.hecm-rates) #wrapper,
body:has(.hecm-rates) #main,
.page-template-quarterly-market-report #wrapper,
.page-template-quarterly-market-report .market-report-wrapper,
.page-template-templates-quarterly-market-report #wrapper,
.page-template-templates-quarterly-market-report .market-report-wrapper {
    overflow-x: hidden !important;
}

/* Responsive YouTube/iframe - constrain to container, prevent overflow */
.counseling-requested-page iframe,
body:has(.hecm-rates) iframe,
.page-template-quarterly-market-report iframe,
.market-report-wrapper iframe,
.entry-content iframe,
.report-content iframe,
#main iframe {
    max-width: 100% !important;
}

/* Video/embed wrappers - prevent overflow */
.counseling-requested-page .wp-block-embed__wrapper,
.counseling-requested-page .wp-block-embed,
body:has(.hecm-rates) .wp-block-embed__wrapper,
body:has(.hecm-rates) .wp-block-embed,
.market-report-wrapper .wp-block-embed__wrapper,
.market-report-wrapper .wp-block-embed {
    max-width: 100% !important;
    overflow: hidden;
}

/* Tables: overflow-x scroll on table wrapper only (not full page) */
.counseling-requested-page .table-wrapper,
body:has(.hecm-rates) .table-wrapper,
.page-template-quarterly-market-report .table-wrapper,
.plf-table-wrapper,
.comparison-table-wrapper {
    overflow-x: auto !important;
    max-width: 100%;
}

/* ==========================================================================
   SW-180: FAQ Question Submission Form
   ========================================================================== */

section.faq-submit-question {
    padding: 80px 0;
    background: #ffffff;
}

.faq-submit-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #F8FAFD;
    border-radius: 16px;
    padding: 48px 40px;
    border: 1px solid rgba(46, 94, 177, 0.12);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
}

.faq-submit-content {
    text-align: center;
    margin-bottom: 32px;
}

.faq-submit-content h2 {
    color: #142F57;
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: none;
    margin: 0 0 12px;
}

.faq-submit-content p {
    color: #5A6578;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.faq-question-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-form-row {
    display: flex;
    gap: 20px;
}

.faq-form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.faq-form-group label {
    color: #203A61;
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.faq-form-group label .required {
    color: #E04040;
}

.faq-form-group input,
.faq-form-group textarea {
    padding: 14px 16px;
    border: 1px solid #D1D5DB;
    border-radius: 10px;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 15px;
    color: #1E293B;
    background: #FFFFFF;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.faq-form-group input::placeholder,
.faq-form-group textarea::placeholder {
    color: #9CA3AF;
}

.faq-form-group input:focus,
.faq-form-group textarea:focus {
    border-color: #2E5EB1;
    box-shadow: 0 0 0 3px rgba(46, 94, 177, 0.12);
}

.faq-form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.faq-form-footer {
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

.faq-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 40px;
    background: #2E5EB1;
    color: #FFFFFF;
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
    min-width: 200px;
}

.faq-submit-btn:hover {
    background: #1E4A8F;
    box-shadow: 0 4px 16px rgba(46, 94, 177, 0.3);
    transform: translateY(-1px);
}

.faq-submit-btn:active {
    transform: translateY(0);
}

.faq-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.faq-form-message {
    text-align: center;
    padding: 14px 20px;
    border-radius: 10px;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 500;
    margin-top: 4px;
}

.faq-form-message.success {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.faq-form-message.error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

@media (max-width: 768px) {
    section.faq-submit-question {
        padding: 56px 0;
    }

    .faq-submit-wrapper {
        padding: 32px 20px;
        border-radius: 12px;
    }

    .faq-submit-content h2 {
        font-size: 26px;
    }

    .faq-form-row {
        flex-direction: column;
        gap: 20px;
    }

    .faq-submit-btn {
        width: 100%;
    }
}

/* ==========================================================================
   WIN-70 mobile accessibility fixes
   ========================================================================== */

/* Scroll-reveal must never hide content before AOS has run. LiteSpeed delays
   aos.js until the first user input, while aos.css hides [data-aos] at once.
   AOS adds .aos-init when it takes over, so un-initialised content stays visible. */
[data-aos]:not(.aos-init) {
    opacity: 1 !important;
    transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Menu toggle is now a <button>: reset native styling, give it a 44px hit area
   around the unchanged 30x22 icon, and show keyboard focus. */
button.hamburger {
    background: none;
    border: 0;
    padding: 11px 7px;
    margin: -11px -7px;
    box-sizing: content-box;
    font: inherit;
    color: inherit;
    -webkit-appearance: none;
    appearance: none;
    max-width: none;
}

button.hamburger:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Off-canvas menu: keep closed links out of the focus order and accessibility
   tree. Visibility flips after the 0.8s slide-out so the animation still shows. */
@media only screen and (max-width: 1201px) {
    .header-pages ul {
        visibility: hidden;
        transition: transform 0.8s, visibility 0s linear 0.8s;
    }

    .header-pages.ham-active ul {
        visibility: visible;
        transition: transform 0.8s, visibility 0s;
    }

    .header-pages ul li a:focus-visible {
        outline: 3px solid #fff;
        outline-offset: 4px;
    }
}

/* The scroll-up clone header sits at top:-200px until it is shown; while
   parked it must not add a second copy of every link to the focus order. */
.header-mains:not(.active-header) {
    visibility: hidden;
}

/* Floating call button: the link was 80x17 around an 80x80 icon. */
.floating-call a {
    display: block;
    line-height: 0;
}

.floating-call a:focus-visible {
    outline: 3px solid #142F57;
    outline-offset: 3px;
    border-radius: 50%;
}

/* Keep keyboard focus from landing underneath the fixed call button. */
@media (max-width: 1199px) {
    html {
        scroll-padding-bottom: 110px;
    }
}

/* On phones the 80px button covered the right end of calculator sliders and
   inputs; 60px keeps a large target while hiding less of the form. */
@media (max-width: 480px) {
    .floating-call {
        bottom: 16px;
        right: 16px;
    }

    .floating-call a img {
        width: 60px;
        height: 60px;
    }

    html {
        scroll-padding-bottom: 90px;
    }
}

/* Content tables scroll inside their column instead of widening the page.
   Tables that fit reflow to the column; wider ones scroll horizontally. */
.srm-table-scroll {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.srm-table-scroll > table {
    width: 100%;
    max-width: none;
}

.srm-table-scroll:focus-visible,
.table-wrapper:focus-visible,
.table-container:focus-visible,
.rm101-table-wrap:focus-visible,
.rates-guide-rate-table:focus-visible,
#testimonialContent:focus-visible {
    outline: 3px solid #2E5EB1;
    outline-offset: 2px;
}

/* Contrast: same hues, darkened to at least 4.5:1 on their backgrounds. */
span.line-1 p,
.news-card1,
.rm101-prose a,
.rm101-prose a u,
span.arsp-1,
span.clr-bl2 {
    color: #2E5EB1;
}

.news-card1 {
    border-color: #2E5EB1;
}

.news-card:hover .news-card1 {
    color: #fff;
}

/* Guide body copy: a global p/li gray (#7E8492) overrode the guide's body color. */
.rates-guide-editorial li,
.rm101-check-body p {
    color: #334155;
}

a.finish-btn {
    background: #2E5EB1;
}

.footer-sign-form input#email-1 {
    opacity: 1;
}

.footer-sign-form input#email-1::placeholder {
    color: #B8BFD9;
}

/* Footer newsletter row: let the email field shrink on narrow phones. The
   calculator template's global input rule otherwise pushes Subscribe past
   the viewport at 320-375px. */
.footer-sign-form input#email-1 {
    flex: 0 1 278px;
    min-width: 0;
}

.footer-sign-form button#submit-1 {
    flex: 0 0 auto;
}

/* WIN-420: restore only audited, reviewer-free identity/date rows. */
body.page-id-12975.page-template-eligibility .via-loan-reviews.srm-editorial-credit,
body.page-id-42888.page-template-reverse-mortgage-glossary .via-loan-reviews.srm-editorial-credit,
body.page-id-891.page-template-reverse-mortgage-interest-rates .via-loan-reviews.srm-editorial-credit {
    display: block;
}
.srm-editorial-credit .loan-reviews-content { min-width: 0; }
.srm-editorial-credit .loan-reviews-content h5 { overflow-wrap: anywhere; }

/* ==========================================================================
   WIN-911: shared article cards (.news-card) – equal heights.
   Fixed 3:2 image, clamped excerpt/title, "Read More" pinned to the bottom.
   Page templates with their own inline card styles still override these.
   ========================================================================== */
.news-cards {
    align-items: stretch;
}

.news-card {
    height: auto;
}

.news-card > a {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: auto;
}

.news-card-img {
    aspect-ratio: 3 / 2;
    flex-shrink: 0;
}

.news-card-img img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.news-card-line .line-1 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-line .line-1 p {
    display: inline;
    margin: 0;
    padding: 0;
}

.news-card h4 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card1 {
    margin-top: auto;
}

/* ==========================================================================
   WIN-911: author page (author.php)
   ========================================================================== */
.srm-author-hero .author-banner-main {
    padding: 40px;
    box-shadow: 0 10px 40px rgba(20, 47, 87, 0.10);
}

.srm-author-hero .author-profile {
    gap: 28px;
}

.srm-author-hero .srm-author-avatar {
    position: relative;
    flex: 0 0 160px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    background: #2E5EB1;
    border: 4px solid #fff;
    box-shadow: 0 6px 20px rgba(20, 47, 87, 0.18);
}

.srm-author-hero .srm-author-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-size: 52px;
    font-weight: 700;
    letter-spacing: 1px;
}

.srm-author-hero .srm-author-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.srm-author-hero .author-profile-content h1 {
    padding-bottom: 6px;
}

.srm-author-hero .srm-author-title {
    display: block;
    text-align: start;
}

.srm-author-hero .srm-author-meta {
    margin: 10px 0 0;
    color: #767C8C;
    font-size: 15px;
    font-weight: 500;
}

.srm-author-hero .author-contnet-all {
    max-width: 860px;
}

.srm-author-hero .author-contnet-all p:last-child {
    margin-bottom: 0;
}

.srm-author-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(59, 122, 222, 0.15);
}

.srm-author-cta span {
    color: #142F57;
    font-size: 16px;
    font-weight: 600;
}

.srm-author-cta a {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 6px;
    background: #3B7ADE;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    transition: background 0.3s;
}

.srm-author-cta a strong {
    font-weight: 600;
    white-space: nowrap;
}

.srm-author-cta a:hover,
.srm-author-cta a:focus-visible {
    background: #2E5EB1;
    color: #fff;
}

.srm-author-articles {
    padding-bottom: 80px;
}

/* WIN-911: author page article cards (templates/author-article-card.php) */
.srm-article-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.srm-article-card {
    display: flex;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(20, 47, 87, 0.06), 0 10px 28px rgba(20, 47, 87, 0.08);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.srm-article-card:hover,
.srm-article-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(20, 47, 87, 0.08), 0 18px 40px rgba(20, 47, 87, 0.14);
}

.srm-article-card__link {
    display: flex;
    flex-direction: column;
    width: 100%;
    color: inherit;
    text-decoration: none;
    border-radius: 12px;
}

.srm-article-card__link:hover {
    color: inherit;
    text-decoration: none;
}

/* The card clips its corners, so the focus ring goes on the card itself. */
.srm-article-card__link:focus-visible {
    outline: 3px solid #3B7ADE;
    outline-offset: -3px;
}

@supports selector(:has(a)) {
    .srm-article-card__link:focus-visible {
        outline: none;
    }

    .srm-article-card:has(.srm-article-card__link:focus-visible) {
        outline: 3px solid #3B7ADE;
        outline-offset: 3px;
    }
}

.srm-article-card__media {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #E8EEF8;
}

.srm-article-card__img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.4s ease;
}

.srm-article-card:hover .srm-article-card__img,
.srm-article-card:focus-within .srm-article-card__img {
    transform: scale(1.05);
}

.srm-article-card__chip {
    position: absolute;
    top: 14px;
    left: 14px;
    max-width: calc(100% - 28px);
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #142F57;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.srm-article-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 20px 22px 22px;
    text-align: left;
}

.srm-article-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px;
    padding: 0;
    color: #6B7280;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.4;
}

.srm-article-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 10px;
    color: #142F57;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: none;
    text-align: left;
}

.srm-article-card__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 18px;
    padding: 0;
    color: #4B5563;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

.srm-article-card__cta {
    margin-top: auto;
    color: #2E5EB1;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 600;
}

.srm-article-card__cta span {
    display: inline-block;
    transition: transform 0.25s ease;
}

.srm-article-card:hover .srm-article-card__cta span,
.srm-article-card:focus-within .srm-article-card__cta span {
    transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
    .srm-article-card,
    .srm-article-card__img,
    .srm-article-card__cta span {
        transition: none;
    }

    .srm-article-card:hover,
    .srm-article-card:focus-within,
    .srm-article-card:hover .srm-article-card__img,
    .srm-article-card:focus-within .srm-article-card__img,
    .srm-article-card:hover .srm-article-card__cta span,
    .srm-article-card:focus-within .srm-article-card__cta span {
        transform: none;
    }
}

.srm-author-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}

.srm-author-pagination a,
.srm-author-pagination span {
    margin: 0;
    padding: 9px 14px;
    border: 1px solid rgba(59, 122, 222, 0.3);
    border-radius: 6px;
    color: #3B7ADE;
}

.srm-author-pagination .current {
    background: #3B7ADE;
    border-color: #3B7ADE;
    color: #fff;
}

.srm-author-pagination .dots {
    border-color: transparent;
}

@media (max-width: 991px) {
    .srm-article-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 599px) {
    .srm-author-hero .author-banner-main {
        padding: 20px;
    }

    .srm-author-hero .srm-author-avatar {
        flex-basis: 112px;
        width: 112px;
        height: 112px;
    }

    .srm-author-hero .srm-author-initials {
        font-size: 38px;
    }

    .srm-article-cards {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
}

/* WIN-786: no sideways scroll below 320px (390px phone at 200% zoom = 195 CSS px).
   Page content wider than the viewport widened the mobile layout viewport, which
   stretched the fixed header with it. 320px and up are unchanged. */
@media (max-width: 319px) {
    .main-container.new-home1 .news-content {
        min-width: 0;
    }
    body .news-cards {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    body .news-cards .news-card {
        min-width: 0 !important;
    }
    .footre-call-btn a {
        display: inline-block;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }
    .footer-logo a,
    .footer-logo img {
        max-width: 100%;
        height: auto;
    }
    .footer-text a,
    .srm-field .srm-label {
        overflow-wrap: anywhere;
    }
    .srm-field .srm-label {
        min-width: 0;
    }
    .srm-step {
        min-width: 0;
    }
    .a-related {
        grid-template-columns: minmax(0, 1fr);
    }
    .comment-submit-btn {
        max-width: 100%;
        white-space: normal;
    }
    h1,
    h2,
    h3 {
        overflow-wrap: break-word;
        hyphens: auto;
    }
    body .article-calculator-section {
        padding-left: 0;
        padding-right: 0;
    }
    body .srm-compare-calc,
    body .srm-compare-calc .srm-compare-card,
    body .srm-compare-calc .srm-field,
    body .srm-compare-calc .srm-summary-card,
    body .srm-compare-calc .state-prompt .srm-points li {
        padding-left: 8px;
        padding-right: 8px;
    }
    body .srm-compare-calc .srm-field .srm-label,
    body .srm-compare-calc .srm-field .srm-control {
        flex: 1 1 100%;
        min-width: 0;
        max-width: none;
    }
    body .srm-compare-calc .srm-field .srm-label > span,
    body .srm-compare-calc .srm-points li {
        display: block;
    }
    body .srm-compare-calc .srm-field .srm-label span {
        font-size: 16px;
    }
    body .srm-compare-calc .srm-field .srm-label i,
    body .srm-compare-calc .srm-points li i {
        margin-right: 6px;
    }
    body .srm-compare-calc .srm-money-chip {
        padding-right: 8px;
    }
    body .article-calculator-section .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    body .srm-compare-calc .srm-compare-fields .srm-field {
        padding: 0;
        border: 0;
        background: none;
    }
    body .srm-compare-calc .srm-value-chip {
        padding-left: 0;
        padding-right: 4px;
    }
    body .srm-compare-calc .srm-summary-card h4 {
        font-size: 20px;
    }
    form.footer-sign-form {
        flex-direction: column;
        gap: 8px;
    }
    form.footer-sign-form input#email-1,
    body .footer-sign-form button#submit-1 {
        flex: 0 0 auto;
        width: 100%;
        height: 48px;
        justify-content: center;
        left: 0;
    }
    body .srm-compare-calc .srm-compare-head-full h3 {
        font-size: 20px;
    }
    .srm-compare-calc {
        overflow-wrap: break-word;
    }
}

/* WIN-1193: contextual links inside page copy read as text links. The guide and refinance
   "How to get started" blocks style every <a> as the section CTA button. Section CTAs are
   not inside <p>. */
.page-template-reverse-mortgage-guide .get-started-content p > a,
.page-template-refinance-reverse-mortgage .get-started-content p > a {
    display: inline;
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--color-2, #2E5EB1);
    font-size: inherit;
    font-weight: 600;
    line-height: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.page-template-reverse-mortgage-guide .get-started-content p > a:hover,
.page-template-refinance-reverse-mortgage .get-started-content p > a:hover {
    color: #1F2D69;
    background: none;
}
/* WIN-1875: text links in any blue hero banner (.about-banner, #2E5EB1) stay white (6.4:1),
   semibold and underlined in every state. Hero copy is CMS-editable on most templates, so this
   is site-wide; `body` outranks the `a {}` colour that many templates inline. */
body .about-banner-headline p a,
body .about-banner-headline p a:visited,
body .about-banner-headline p a:hover,
body .about-banner-headline p a:focus {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
body .about-banner-headline p a:hover,
body .about-banner-headline p a:focus-visible {
    text-decoration-thickness: 2px;
}
body .about-banner-headline p a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
    border-radius: 2px;
}
/* WIN-1193: AOS holds below-the-fold fade-left blocks at translateX(100px) until they scroll
   into view, which widens the layout viewport (pre-existing on refinance in prod). Clip
   horizontally on these two templates; clip (unlike hidden) creates no scroll container. */
.page-template-reverse-mortgage-guide main#main,
.page-template-refinance-reverse-mortgage main#main {
    overflow-x: clip;
}

/* ==========================================================================
   WIN-1701: articles feed filler cards.
   Each feed page ends with filler lead cards where its last row would
   otherwise be part-filled (srm_articles_feed_pages()). A filler carries
   srm-feed-filler--<mode> for the grid modes that need it and is hidden in
   every other mode. Breakpoints mirror the grid rules in
   templates/news-&-articles.php (hub: 3/2/1 columns), taxonomy-articles_category.php
   and archive.php (4/3/2/1), plus the persona quiz card, which spans two
   columns above 768px: c2w = two columns with the wide persona card,
   c2n = two columns with it at one column.
   ========================================================================== */
@media (min-width: 1025px) {
    .srm-news-articles-page .srm-feed-filler:not(.srm-feed-filler--c3) {
        display: none !important;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .srm-news-articles-page .srm-feed-filler:not(.srm-feed-filler--c2w) {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .srm-news-articles-page .srm-feed-filler:not(.srm-feed-filler--c2n) {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .srm-news-articles-page .srm-feed-filler {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    #main:not(.srm-news-articles-page) .srm-feed-filler:not(.srm-feed-filler--c4) {
        display: none !important;
    }
}

@media (max-width: 1199px) and (min-width: 900px) {
    #main:not(.srm-news-articles-page) .srm-feed-filler:not(.srm-feed-filler--c3) {
        display: none !important;
    }
}

@media (max-width: 899px) and (min-width: 769px) {
    #main:not(.srm-news-articles-page) .srm-feed-filler:not(.srm-feed-filler--c2w) {
        display: none !important;
    }
}

@media (max-width: 768px) {
    #main:not(.srm-news-articles-page) .srm-feed-filler:not(.srm-feed-filler--c2n) {
        display: none !important;
    }
}

/* One column (and the sub-320px rule above) never leaves a gap. */
@media (max-width: 599px) {
    .srm-feed-filler {
        display: none !important;
    }
}

/* WIN-3537: banner titles moved from h2 to h1 for SEO keep the banner h2 sizes. */
.about-banner-headline .about-banner-title {
    font-size: 44px;
}

@media only screen and (max-width: 1201px) {
    .about-banner-headline .about-banner-title {
        font-size: 38px;
    }
}

@media only screen and (max-width: 901px) {
    .about-banner-headline .about-banner-title {
        font-size: 32px;
    }
}

@media only screen and (max-width: 701px) {
    .about-banner-headline .about-banner-title {
        font-size: 28px;
    }
}

/* State lenders hub directory (WIN-3558) */
.article-details-main-content ul.srm-state-directory { columns: 4; column-gap: 32px; padding-left: 20px; }
@media (max-width: 991px) { .article-details-main-content ul.srm-state-directory { columns: 2; } }

.article-details-main-content ul.srm-state-directory li { break-inside: avoid; }

/* State map and chart images keep their aspect ratio when the column is narrower
   than their width attribute; without this the height attribute stays fixed (WIN-3646). */
.article-details-main-content img[src*="/uploads/states/"],
.article-details-main-content img[src*="/uploads/state_statistics/"] { height: auto; }
