/* Mortgage answers library — hub (archive-answer.php) and detail (single-answer.php) */

main.answers-hub,
main.answer {
    padding: 48px 0 96px;
}

/* --- Shared --- */

.answers-hub__breadcrumb,
.answer__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #535766;
}

.answers-hub__breadcrumb a,
.answer__breadcrumb a {
    color: #535766;
    text-decoration: none;
}

.answers-hub__breadcrumb a:hover,
.answer__breadcrumb a:hover,
.answers-hub__breadcrumb a:focus-visible,
.answer__breadcrumb a:focus-visible {
    color: #002BC6;
    text-decoration: underline;
}

/* --- Hub --- */

.answers-hub__title {
    font-family: 'Bluu Next', Georgia, serif;
    font-size: clamp(34px, 5vw, 60px);
    font-weight: 700;
    line-height: 1.1;
    color: #002BC6;
    margin: 0 0 20px;
}

.answers-hub__intro {
    max-width: 68ch;
    margin: 0 0 48px;
    font-size: 18px;
    line-height: 1.6;
    color: #535766;
}

.answers-hub__list {
    margin: 0 0 56px;
    padding: 0;
    list-style: none;
    counter-reset: answer;
}

.answers-hub__item {
    padding: 28px 0;
    border-top: 1px solid #E0E0E0;
}

.answers-hub__item:last-child {
    border-bottom: 1px solid #E0E0E0;
}

.answers-hub__question {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.answers-hub__question a {
    color: #13151A;
    text-decoration: none;
}

.answers-hub__question a:hover,
.answers-hub__question a:focus-visible {
    color: #002BC6;
    text-decoration: underline;
}

.answers-hub__answer {
    max-width: 74ch;
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.6;
    color: #535766;
}

.answers-hub__more a {
    font-size: 15px;
    font-weight: 600;
    color: #002BC6;
    text-decoration: none;
}

.answers-hub__more a:hover,
.answers-hub__more a:focus-visible {
    text-decoration: underline;
}

.answers-hub__empty {
    padding: 40px 0;
    color: #535766;
}

/* --- Detail --- */

.answer__title {
    font-family: 'Bluu Next', Georgia, serif;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 700;
    line-height: 1.15;
    color: #002BC6;
    margin: 0 0 20px;
}

/* The passage an answer engine lifts. Visually distinct so a reader gets the
   same summary the machine does. */
.answer__short {
    margin: 0 0 16px;
    padding: 20px 24px;
    border-left: 4px solid #002BC6;
    background: #F5F7FC;
    border-radius: 0 10px 10px 0;
    font-size: 18px;
    line-height: 1.6;
    color: #13151A;
}

.answer__meta {
    margin: 0 0 40px;
    font-size: 14px;
    color: #6d6d6d;
}

.answer__body {
    font-size: 17px;
    line-height: 1.7;
    color: #2b2f3a;
}

.answer__body h2 {
    margin: 40px 0 14px;
    font-size: 24px;
    font-weight: 700;
    color: #13151A;
}

.answer__body p {
    margin: 0 0 18px;
    max-width: 72ch;
}

.answer__body ul,
.answer__body ol {
    margin: 0 0 18px;
    padding-left: 22px;
    max-width: 72ch;
}

.answer__body li {
    margin-bottom: 10px;
}

.answer__body a {
    color: #002BC6;
}

/* --- FAQ --- */

.answer__faq {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #E0E0E0;
}

.answer__faq h2 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 700;
    color: #13151A;
}

.answer__faq-item {
    padding: 18px 0;
    border-bottom: 1px solid #EDEFF5;
}

.answer__faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    list-style: none;
    font-size: 17px;
    font-weight: 700;
    color: #13151A;
}

.answer__faq-question::-webkit-details-marker {
    display: none;
}

.answer__faq-question::after {
    content: "+";
    flex-shrink: 0;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    color: #002BC6;
}

.answer__faq-item[open] .answer__faq-question::after {
    content: "\2013";
}

.answer__faq-answer {
    max-width: 72ch;
    margin: 10px 0 0;
    font-size: 16px;
    line-height: 1.65;
    color: #535766;
}

/* --- CTAs --- */

.answer__cta,
.answers-hub__cta {
    margin-top: 48px;
    padding: 28px;
    background: #F5F7FC;
    border-radius: 12px;
}

.answer__cta-title,
.answers-hub__cta h2 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
    color: #002BC6;
}

.answer__cta p,
.answers-hub__cta p {
    max-width: 64ch;
    margin: 0 0 16px;
    color: #535766;
}

.answer__cta-links,
.answers-hub__cta-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
}

.answer__cta-primary,
.answers-hub__cta-primary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 999px;
    background: #002BC6;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}

.answer__cta-secondary,
.answers-hub__cta-secondary {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid #002BC6;
    border-radius: 999px;
    color: #002BC6;
    font-weight: 600;
    text-decoration: none;
}

.answer__cta-primary:hover,
.answers-hub__cta-primary:hover,
.answer__cta-secondary:hover,
.answers-hub__cta-secondary:hover {
    opacity: 0.88;
}

/* --- Related --- */

.answer__related {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #E0E0E0;
}

.answer__related h2 {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 700;
    color: #13151A;
}

.answer__related ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.answer__related a {
    display: block;
    height: 100%;
    padding: 16px;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.answer__related a:hover,
.answer__related a:focus-visible {
    border-color: #002BC6;
}

.answer__related-q {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: #13151A;
}

.answer__related-a {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    color: #6d6d6d;
}

.answer__related-all a {
    font-weight: 600;
    color: #002BC6;
}

@media (max-width: 575px) {
    main.answers-hub,
    main.answer {
        padding: 32px 0 64px;
    }

    .answer__short {
        padding: 16px 18px;
        font-size: 17px;
    }

    .answer__cta,
    .answers-hub__cta {
        padding: 20px;
    }
}
