:root {
  color-scheme: light;
  font: 16px/1.55 Inter, "Segoe UI", Arial, sans-serif;
  color: #193248;
  background: #f3f7f9;
  --link: #00635f;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--link); text-decoration-thickness: .07em; text-underline-offset: .15em; }
a:hover { color: #003f3c; }
:focus-visible { outline: 3px solid #a65c00; outline-offset: 3px; }
.skip { color: #fff; background: #123245; position: absolute; left: 1rem; top: -6rem; padding: .6rem; }
.skip:focus { top: 0; z-index: 3; }
header { border-bottom: 1px solid #cad8dc; background: white; }
nav, .content, .intro > div, footer { max-width: 84rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 3.5rem); }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1.3rem; padding-block: .85rem; }
nav a { font-size: .94rem; }
.brand { text-decoration: none; font-weight: 750; color: #123245; margin-right: auto; font-size: 1.15rem; }
.intro { background: #123245; color: #f5fbfc; }
.intro > div { padding-block: clamp(1.8rem, 4vw, 3.6rem); }
h1 { margin: 0; font-size: clamp(2rem, 4.6vw, 3.75rem); line-height: 1.07; font-weight: 650; letter-spacing: -.035em; }
.intro p { max-width: 72ch; }
.downloads { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.2rem 0 0; }
.downloads a { display: inline-block; border: 1px solid #8baeb2; border-radius: .4rem; color: #fff; padding: .43rem .8rem; }
.downloads a:hover { background: #215165; }
.content { padding-block: 1.8rem; }
h2 { font-size: 1.55rem; margin: 0 0 .8rem; }
.controls { display: grid; grid-template-columns: 2fr 2fr 1.35fr 1fr; gap: 1rem; }
.controls label { display: grid; gap: .25rem; font-weight: 650; }
.controls input, select, button { font: inherit; min-height: 2.6rem; color: #193248; background: white; border: 1px solid #789099; border-radius: .35rem; padding: .35rem .65rem; min-width: 0; }
button { cursor: pointer; font-weight: 550; }
button:hover, button[aria-pressed=true] { background: #d9eaeb; }
fieldset { margin: 1.1rem 0 .4rem; border: 0; padding: 0; }
legend { font-weight: 650; }
fieldset label { margin: .35rem 1rem .15rem 0; display: inline-block; }
input[type=checkbox] { width: 1rem; height: 1rem; accent-color: #00635f; vertical-align: -.12em; }
.hint { font-size: .9rem; color: #465e6d; margin: .2rem 0 .65rem; }
.actions { display: flex; gap: .6rem; }
#count { font-weight: 650; margin-top: 1.2rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); gap: 1rem; align-items: stretch; }
.db-card { background: white; border: 1px solid #c6d5d9; border-top: 3px solid #418280; border-radius: .45rem; padding: 1.1rem; overflow-wrap: anywhere; }
.domain, .tags, .related, .links { font-size: .9rem; }
.domain { margin: 0 0 .35rem; color: #36576a; }
.db-card h3 { margin: 0; line-height: 1.3; font-size: 1.14rem; }
.description { margin-block: .7rem; }
.related, .links { margin-block: .45rem; }
.tags { color: #435b68; margin: .75rem 0 0; line-height: 1.65; }
.tags span:not(:last-child)::after { content: " · "; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: white; }
th, td { padding: .65rem; border: 1px solid #c6d5d9; text-align: left; vertical-align: top; }
thead { background: #e2eeef; }
caption { text-align: left; font-size: .92rem; padding-bottom: .4rem; }
footer { color: #36576a; padding-block: 1.3rem; border-top: 1px solid #c6d5d9; }
@media (max-width: 54rem) { .controls { grid-template-columns: 1fr 1fr; } }
@media (max-width: 35rem) {
  nav { gap: .45rem 1rem; }
  .brand { flex-basis: 100%; }
  .controls { grid-template-columns: 1fr; gap: .6rem; }
  .table-wrap table { min-width: 40rem; }
}
