/* csp-report-to.com styles on top of Pico. Kept out of the HTML so the app's CSP needs no 'unsafe-inline'. */

/* Home */
.hero { text-align: center; padding: 2rem 0 1rem; }
.hero p.lead { font-size: 1.25rem; max-width: 40rem; margin: 0 auto 1.5rem; }
.hero .cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.home-section { margin-top: 3rem; }

/* Docs */
.docs { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.docs aside { position: sticky; top: 1rem; }
.docs aside li { padding: .25rem 0; }
.docs aside a[aria-current="page"] { font-weight: bold; }
.docs-body h2 { margin-top: 2.5rem; }
.docs-body h3 { margin-top: 1.75rem; }
.docs-code { position: relative; }
.docs-code pre { padding-right: 5.5rem; }
.docs-copy { position: absolute; top: .5rem; right: .5rem; padding: .2rem .6rem; font-size: .8rem; width: auto; margin: 0; }
.docs-pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; }
@media (max-width: 768px) {
    .docs { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .docs aside { position: static; }
}
.endpoint-picker { padding: 1rem 1.25rem; margin-bottom: 2rem; border: 1px solid var(--pico-muted-border-color); border-radius: var(--pico-border-radius); }
.endpoint-picker fieldset { margin-bottom: .5rem; }
.endpoint-picker p { margin: 0; }

/* Site settings: "Check your setup". */
.check-form { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; }
.check-form label { flex: 1 1 20rem; margin-bottom: 0; }
.check-form input { margin-bottom: 0; }
.check-error { color: var(--pico-del-color); }
.check-result { border-left: .3rem solid var(--pico-muted-border-color); }
.check-result.check-ok { border-left-color: var(--pico-ins-color); }
.check-result.check-warn { border-left-color: #c98a00; }
.check-result.check-fail { border-left-color: var(--pico-del-color); }
.checklist { list-style: none; padding-left: 0; }
.checklist li { list-style: none; margin-bottom: .5rem; }
.check-mark { display: inline-block; width: 1.4rem; font-weight: bold; text-align: center; }
.checklist .check-ok .check-mark { color: var(--pico-ins-color); }
.checklist .check-warn .check-mark { color: #c98a00; }
.checklist .check-fail .check-mark { color: var(--pico-del-color); }
.live-status { padding: .75rem 1rem; border-left: .3rem solid var(--pico-muted-border-color); }
.live-status.live-received { border-left-color: var(--pico-ins-color); }

/* Violations: the code sample of an inline or eval violation. */
code.sample { white-space: pre-wrap; word-break: break-all; }
