:root {
    color-scheme: light;
    --ink: #20252c;
    --muted: #536070;
    --link: #134c82;
    --line: #d7dee7;
    --paper: #fff;
    --section: #f4f7fa;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 system-ui, sans-serif; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: .18rem solid #225d9a; outline-offset: .22rem; }
.shell { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.site-header { background: #17232f; color: #fff; }
.site-header a { color: inherit; }
.masthead { display: flex; justify-content: space-between; align-items: baseline; column-gap: 2rem; row-gap: .65rem; flex-wrap: wrap; padding-block: 1rem; }
.brand { font-weight: 700; font-size: 1.125rem; text-decoration: none; }
.masthead nav, .pagination, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; }
.masthead nav { font-size: .9375rem; }
.skip { position: absolute; top: .5rem; left: .5rem; padding: .5rem; background: var(--paper); transform: translateY(-200%); }
.skip:focus { transform: none; }
main { padding-block: 1.9rem 4rem; }
h1, h2, h3 { line-height: 1.18; }
h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin: 0 0 1.2rem; }
h2 { font-size: 1.4rem; margin-block: 2rem .8rem; }
h3 { font-size: 1.12rem; margin-block: 1.45rem .6rem; }
p, ul, ol { margin-block: .65rem 1rem; }
.muted, small { color: var(--muted); }
.breadcrumbs { display: flex; flex-wrap: wrap; list-style: none; gap: .25rem .6rem; padding: 0; font-size: .9rem; }
.breadcrumbs li + li::before { content: '/'; margin-right: .6rem; color: var(--muted); }
form { margin-block: .6rem 1rem; }
.inline-form { display: inline-flex; align-items: center; gap: .5rem; margin: 0; }
label { display: block; font-weight: 600; font-size: .9375rem; }
label.inline { display: flex; align-items: center; gap: .5rem; font-weight: 400; }
input, select, textarea, button { font: inherit; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { display: block; width: 100%; padding: .44rem .6rem; border: 1px solid #8996a5; border-radius: .28rem; background: #fff; color: var(--ink); }
select { appearance: none; padding-right: 2rem; background-image: linear-gradient(45deg, transparent 49%, currentColor 50%, currentColor 60%, transparent 61%), linear-gradient(-45deg, transparent 49%, currentColor 50%, currentColor 60%, transparent 61%); background-position: calc(100% - 1.05rem) 52%, calc(100% - .75rem) 52%; background-size: .35rem .35rem; background-repeat: no-repeat; }
textarea { min-height: 5.3rem; }
textarea.xml { min-height: 28rem; font: .9rem/1.5 ui-monospace, monospace; }
button { padding: .42rem .82rem; border: 1px solid #1a476b; border-radius: .28rem; background: #204f78; color: #fff; cursor: pointer; font-weight: 600; }
button:hover { background: #173b5a; }
.secondary { background: #fff; color: var(--link); }
.secondary:hover { background: var(--section); }
.fields { display: grid; gap: .8rem 1rem; max-width: 52rem; margin-block: .65rem; }
.fields-grid { grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr)); }
.fields input, .fields select, .fields textarea { margin-top: .15rem; }
fieldset { margin: .9rem 0; border: 1px solid var(--line); padding: .8rem 1rem; }
legend { padding: 0 .35rem; font-weight: 700; }
details { margin-block: .65rem 1rem; }
summary { cursor: pointer; color: var(--link); }
.notice { padding: .8rem 1rem; background: var(--section); border-left: .23rem solid #557ba1; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-block: .8rem 1.2rem; text-align: left; }
th, td { padding: .58rem .7rem; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
thead { background: var(--section); }
tbody th { font-weight: 600; }
.search-results tbody + tbody { border-top: 2px solid var(--line); }
dl.metadata { display: grid; grid-template-columns: minmax(8rem, max-content) minmax(0, 1fr); column-gap: 1rem; row-gap: .45rem; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
.status { display: inline-block; border-radius: .25rem; padding: .12rem .45rem; background: var(--section); font-size: .875rem; font-weight: 600; }
.status-approved { color: #175b3b; background: #edf7f0; }
.status-pending { color: #6f4800; background: #fff5d9; }
.status-rejected { color: #942c33; background: #fceef0; }
.status-draft { color: #404a59; }
code, pre { font-family: ui-monospace, monospace; }
pre { padding: .8rem; overflow-x: auto; background: var(--section); border: 1px solid var(--line); }
.native-tree { padding-left: 1.5rem; }
.native-tree dl { margin-block: .35rem; }
@media (max-width: 40rem) {
    .masthead { align-items: start; flex-direction: column; }
    dl.metadata { grid-template-columns: 1fr; gap: .05rem; }
    dl.metadata dd { margin-bottom: .5rem; }
}
