/* Styles for keyword SEO pages (views/pages/_seo-layout.twig).
   Uses the site's existing palette: blue rgb(40, 67, 208), grey #f1f5f6, Quicksand font. */

.seo-breadcrumb {
    font-size: 0.9rem;
    padding: 12px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.seo-breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.seo-breadcrumb li + li::before {
    content: "›";
    margin-right: 6px;
    color: #6b7785;
}

.seo-breadcrumb a {
    color: rgb(40, 67, 208);
    text-decoration: none;
}

.seo-breadcrumb [aria-current="page"] {
    color: #6b7785;
}

/* Quick answer */
.seo-quick-answer {
    padding: 30px 20px;
}

.seo-quick-answer-box {
    border-left: 5px solid rgb(40, 67, 208);
    background: #f5f7ff;
    border-radius: 8px;
    padding: 20px 24px;
}

.seo-quick-answer-box h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.seo-quick-answer-box p {
    font-size: 1.05rem;
    line-height: 1.6;
}

.seo-updated {
    margin-top: 10px;
    font-size: 0.85rem !important;
    color: #6b7785;
}

/* What the check shows */
.seo-checks {
    padding: 40px 20px;
}

.seo-checks h2,
.seo-steps h2,
.seo-faq h2,
.seo-related h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.seo-checks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.seo-check-card {
    background: #fff;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.seo-check-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: rgb(40, 67, 208);
}

.seo-check-card p {
    line-height: 1.5;
}

/* Long-form content */
.seo-content .faqs h2 {
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.seo-content .faqs h2:first-child {
    margin-top: 0;
}

.seo-content .faqs p,
.seo-content .faqs li {
    line-height: 1.65;
}

.seo-content .faqs a {
    color: rgb(40, 67, 208);
}

.seo-table-wrap {
    overflow-x: auto;
    margin: 1rem 0;
}

.seo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.seo-table th,
.seo-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
}

.seo-table th {
    background: #f1f5f6;
    font-weight: 700;
}

.seo-callout {
    background: #fef3e6;
    border-left: 5px solid #d97706;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 1rem 0;
}

/* Steps */
.seo-steps {
    padding: 40px 20px;
}

.seo-steps-list {
    list-style: none;
    counter-reset: seo-step;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.seo-steps-list li {
    counter-increment: seo-step;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.seo-steps-list li::before {
    content: counter(seo-step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgb(40, 67, 208);
    color: #fff;
    font-weight: 700;
    margin-bottom: 10px;
}

.seo-steps-list h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.seo-steps-list p {
    line-height: 1.5;
}

/* FAQ accordion */
.seo-faq {
    padding: 40px 20px;
}

.seo-faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.seo-faq details {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fff;
}

.seo-faq summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 16px 44px 16px 18px;
    list-style: none;
    position: relative;
}

.seo-faq summary::-webkit-details-marker {
    display: none;
}

.seo-faq summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: rgb(40, 67, 208);
}

.seo-faq details[open] summary::after {
    content: "−";
}

.seo-faq-answer {
    padding: 0 18px 16px;
    line-height: 1.6;
}

/* Related links */
.seo-related {
    padding: 40px 20px;
}

.seo-related-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.seo-related-list a {
    display: inline-block;
    padding: 10px 18px;
    border: 2px solid rgb(40, 67, 208);
    border-radius: 2rem;
    color: rgb(40, 67, 208);
    text-decoration: none;
    font-weight: 600;
    background: #fff;
}

.seo-related-list a:hover {
    background: rgb(40, 67, 208);
    color: #fff;
}

/* Final CTA */
.seo-final-cta {
    padding: 50px 20px;
    text-align: center;
}

.seo-final-cta h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.seo-final-cta p {
    margin-bottom: 1rem;
}

@media only screen and (min-width: 800px) {
    .seo-quick-answer,
    .seo-checks,
    .seo-steps,
    .seo-faq,
    .seo-related {
        padding-left: 50px;
        padding-right: 50px;
    }
}

@media only screen and (max-width: 768px) {
    .seo-checks h2,
    .seo-steps h2,
    .seo-faq h2,
    .seo-related h2,
    .seo-final-cta h2 {
        font-size: 1.25rem;
    }
}

/* Homepage hub of all checks */
.seo-hub {
    padding: 40px 20px;
}

.seo-hub h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.seo-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
}

.seo-hub-group h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.seo-hub-group ul {
    list-style: none;
}

.seo-hub-group li {
    padding: 4px 0;
}

.seo-hub-group a,
.seo-check-card h3 a {
    color: rgb(40, 67, 208);
    text-decoration: none;
}

.seo-hub-group a:hover,
.seo-check-card h3 a:hover {
    text-decoration: underline;
}

@media only screen and (min-width: 800px) {
    .seo-hub {
        padding-left: 50px;
        padding-right: 50px;
    }
}
