/*
 * SkyTooler SEO blocks (printed by seo_lib.php).
 * The base .seo-content rules sit inside :where() so they have no weight of their own: pages that already
 * style .seo-content in their own CSS (the tool pages) keep their look, and pages that do not (home, hubs,
 * guides, About) get these defaults. The classes below are only used by the blocks seo_lib.php prints.
 */
:where(.seo-content) {
    max-width: 760px;
    margin: 40px auto 10px;
    text-align: left;
    line-height: 1.7;
    overflow-wrap: break-word;
}
:where(.seo-content) h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 32px 0 12px;
}
:where(.seo-content) h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 20px 0 6px;
}
:where(.seo-content) p,
:where(.seo-content) li,
:where(.seo-content) dd {
    color: var(--st-muted, #94a3b8);
    font-size: .95rem;
}
:where(.seo-content) p { margin: 0 0 10px; }
:where(.seo-content) ol,
:where(.seo-content) ul { padding-left: 22px; margin: 0 0 8px; }
:where(.seo-content) li { margin-bottom: 6px; }
:where(.seo-content) strong { color: #e2e8f0; font-weight: 600; }
:where(.seo-content) a { color: #60a5fa; }

.seo-content a:hover { text-decoration: underline; }

/* tables (comparisons, format lists) */
.seo-table-wrap { overflow-x: auto; margin: 6px 0 14px; -webkit-overflow-scrolling: touch; }
.seo-table-wrap:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
.seo-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 480px; }
.seo-table caption { text-align: left; color: #e2e8f0; font-weight: 600; padding: 0 0 8px; }
.seo-table th,
.seo-table td { text-align: left; vertical-align: top; padding: 9px 12px; border: 1px solid #1e293b; color: var(--st-muted, #94a3b8); }
.seo-table thead th { background: #161b28; color: #e2e8f0; font-weight: 600; }
.seo-table tbody th { color: #e2e8f0; font-weight: 600; background: rgba(22, 27, 40, .55); min-width: 8.5em; overflow-wrap: normal; word-break: normal; }

/* definition lists (settings explained, glossary) */
.seo-dl { margin: 0 0 10px; }
.seo-dl dt { color: #e2e8f0; font-weight: 600; font-size: .95rem; margin-top: 14px; }
.seo-dl dd { margin: 2px 0 0; }

/* collapsible FAQ */
.seo-faq { margin: 4px 0 8px; }
.seo-faq details { border: 1px solid #1e293b; border-radius: 10px; background: rgba(22, 27, 40, .6); margin-bottom: 8px; }
.seo-faq summary { cursor: pointer; padding: 12px 16px; color: #e2e8f0; font-weight: 600; font-size: .95rem; line-height: 1.45; }
.seo-faq summary:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; border-radius: 10px; }
.seo-faq details[open] summary { border-bottom: 1px solid #1e293b; }
.seo-faq details p { padding: 12px 16px 4px; margin: 0 0 8px; }

/* related links */
.seo-links { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.seo-links li { margin: 0; border: 1px solid #1e293b; border-radius: 10px; background: rgba(22, 27, 40, .6); padding: 12px 14px; }
.seo-links a { display: block; font-weight: 600; font-size: .95rem; color: #60a5fa; text-decoration: none; }
.seo-links a:hover { text-decoration: underline; }
.seo-links span { display: block; margin-top: 4px; color: var(--st-muted, #94a3b8); font-size: .88rem; line-height: 1.5; }

.seo-note { border-left: 3px solid #3b82f6; padding: 8px 12px; background: rgba(59, 130, 246, .08); border-radius: 0 8px 8px 0; }

/* breadcrumb links inherit the page's breadcrumb colour */
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* visually hidden text for screen readers (the home icon in the breadcrumb) */
.seo-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 480px) {
    .seo-faq summary { padding: 11px 13px; }
    .seo-faq details p { padding: 10px 13px 2px; }
}
