/* SEO & GEO check pages. Builds on /css/main.css (variables, type, .cta-button). */
.seo { padding: 60px 0 40px; }
.seo h1 { font-size: 48px; margin-bottom: 16px; }
.seo h2 { font-size: 24px; margin: 56px 0 16px; }
.seo p { font-size: 18px; }
.seo a { color: inherit; text-underline-offset: 3px; }
.seo-lead { margin-bottom: 32px; max-width: 36em; }
.seo-meta, .seo p.seo-meta { color: var(--color-gray); font-size: 15px; margin: 0; }
.seo-what { margin-top: 56px !important; font-size: 14px !important; }
.seo-good { color: #1a7f37; }
.seo-bad { color: #b42318; }
.seo-num { font-variant-numeric: tabular-nums; }
.seo-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: var(--color-light-gray); padding: 1px 5px; border-radius: 3px; }

/* Form */
.seo-form { display: flex; gap: 8px; }
.seo-form input { flex: 1; min-width: 0; font: inherit; font-size: 18px; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: 4px; background: #fff; color: #000; }
.seo-form input:focus { outline: 2px solid #000; outline-offset: -1px; border-color: #000; }
.seo-form .cta-button, .seo-again .cta-button { font-size: 16px; padding: 12px 22px; white-space: nowrap; }
.seo-err { color: #b42318 !important; font-size: 15px !important; margin-top: 10px; }
.seo-btn-light { font: inherit; font-size: 14px; font-weight: 500; padding: 6px 12px; background: #fff; color: #000; border: 1px solid var(--color-border); border-radius: 4px; cursor: pointer; white-space: nowrap; }
.seo-btn-light:hover { border-color: #000; }
button[disabled] { opacity: .5; cursor: default; }

/* Lists of sites and runs */
.seo-rows { list-style: none; border-top: 1px solid var(--color-border); margin: 0; padding: 0; }
.seo-rows li { border-bottom: 1px solid var(--color-border); }
.seo-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; text-decoration: none; }
.seo-row .seo-site { flex: 1; min-width: 0; }
.seo-host { font-weight: 600; text-decoration: none; }
a.seo-host:hover, a.seo-status:hover, a.seo-row:hover .seo-when { text-decoration: underline; }
.seo-status { text-decoration: none; }
.seo-when { font-weight: 500; }

/* Page title with a button on the right */
.seo-crumb { font-size: 15px; margin-bottom: 24px !important; }
.seo-crumb a { color: var(--color-gray); text-decoration: none; }
.seo-crumb a:hover { color: #000; }
.seo-titlebar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.seo-titlebar h1 { margin-bottom: 8px; word-break: break-word; }

/* Since the last run */
.seo-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--color-border); border: 1px solid var(--color-border); border-radius: 4px; overflow: hidden; margin: 8px 0 20px; }
.seo-stats div { background: #fff; padding: 16px 18px; }
.seo-stats b { display: block; font-size: 32px; line-height: 1.2; font-weight: 600; font-variant-numeric: tabular-nums; }
.seo-stats span { color: var(--color-gray); font-size: 14px; }
.seo-plain { list-style: none; margin: 0; padding: 0; }
.seo-plain li { padding: 6px 0; border-bottom: 1px solid var(--color-light-gray); font-size: 16px; }

/* Expandable tasks */
.seo details { border-top: 1px solid var(--color-border); }
.seo details:last-of-type { border-bottom: 1px solid var(--color-border); }
.seo summary { list-style: none; cursor: pointer; display: flex; gap: 16px; align-items: baseline; padding: 16px 0; }
.seo summary::-webkit-details-marker { display: none; }
.seo summary::after { content: ""; flex: none; width: 7px; height: 7px; margin: 0 4px 0 2px; border-right: 1.5px solid var(--color-gray); border-bottom: 1.5px solid var(--color-gray); transform: rotate(-45deg); transition: transform .2s; align-self: center; }
.seo details[open] > summary::after { transform: rotate(45deg); }
.seo summary:hover::after { border-color: #000; }
.seo-rank { color: var(--color-gray); font-size: 14px; width: 2.2em; flex: none; font-variant-numeric: tabular-nums; }
.seo-t { flex: 1; font-weight: 500; }
.seo details[open] .seo-t { text-decoration: underline; }
.seo-n { color: var(--color-gray); font-size: 14px; white-space: nowrap; }
.seo-tag { font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--color-gray); border: 1px solid var(--color-border); border-radius: 3px; padding: 0 5px; margin-right: 8px; vertical-align: 2px; }
.seo-task { padding: 0 0 20px 3.2em; font-size: 16px; }
.seo-task p { font-size: 16px; color: #000; margin-bottom: 10px; }
.seo-task .seo-k { color: var(--color-gray); }
.seo-task ul { margin: 6px 0 12px 1.1em; color: var(--color-gray); font-size: 14px; word-break: break-word; }

/* What was checked: one column per group */
.seo-checked { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 32px; margin: 0 0 16px; }
.seo-checked h3 { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--color-gray); margin: 0 0 4px; }
.seo-log { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.seo-log li { padding: 5px 0; border-bottom: 1px solid var(--color-light-gray); animation: seo-in .25s ease-out; }
.seo-log .seo-i { color: var(--color-gray); }
@keyframes seo-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .seo-log li { animation: none; } }

/* Progress */
.seo-progress { height: 2px; background: var(--color-border); margin: -12px 0 20px; max-width: 36em; }
.seo-progress div { height: 2px; width: 0; background: #000; transition: width .3s; }

/* Speed table */
.seo table { width: 100%; border-collapse: collapse; font-size: 14px; }
.seo th { text-align: left; font-weight: 500; color: var(--color-gray); }
.seo th, .seo td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.seo .seo-r { text-align: right; }
.seo-trend { width: 100%; height: 64px; display: block; color: #000; }
.seo-empty { padding: 28px 0; font-size: 20px !important; color: #000 !important; }
.seo-foot { margin-top: 56px !important; font-size: 14px !important; }

@media (max-width: 600px) {
    .seo { padding-top: 40px; }
    .seo h1 { font-size: 34px; }
    .seo-form { flex-direction: column; }
    .seo-row { flex-wrap: wrap; }
    .seo-stats b { font-size: 26px; }
    .seo-task { padding-left: 0; }
    .seo table { font-size: 13px; }
}
