:root { color-scheme: light; }
[hidden] { display: none !important; }

body { max-width: 52rem; margin: 2rem auto; padding: 0 1rem; font: 16px/1.5 system-ui, sans-serif; color: #102a43; }
h1 { line-height: 1.15; margin: 0 0 .4rem; }
h2 { font-size: 1.2rem; line-height: 1.3; margin: 1.5rem 0 .5rem; }
h3 { font-size: 1rem; margin: 1.25rem 0 .35rem; }
a { color: #075985; }
p { margin: .45rem 0; color: #334e68; }
code { overflow-wrap: anywhere; }
article { border-top: 1px solid #ccd6df; padding: 1rem 0; }
article h2 { margin: 0; }
.meta, .source-link { font-size: .9rem; }
.selection-count { font-size: .9rem; font-weight: 600; }
.pagination { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; border-top: 1px solid #ccd6df; padding-top: 1rem; }
.pagination a { font-weight: 600; }
.feed-sort { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem; margin: 1rem 0; }
.feed-sort label { display: flex; flex-direction: column; gap: .2rem; }
.feed-sort label.feed-show-concluded { align-self: stretch; }
.feed-sort label.feed-show-concluded input { margin: auto 0; align-self: flex-start; }
.feed-sort select, .feed-sort button { font: inherit; }
.page-search { margin: 1rem 0; }
.page-search label { display: block; font-weight: 600; }
.page-search input { font: inherit; max-width: 100%; width: 24rem; }
.page-search p { font-size: .9rem; }
.page-search button { font: inherit; }
mark[data-search-highlight] { background: #fef08a; color: #102a43; }
.blocked, .source-blocked, .source-participation-blocked, .hall-of-shame-reason { color: #b42318; }
.blocked, .unavailable { font-weight: bold; }
.unavailable { color: #6b5b00; }

table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid #ccd6df; padding: .55rem; text-align: left; vertical-align: top; }
th { background: #f4f7f9; }
td ul { margin: 0; padding-left: 1.25rem; }
li + li { margin-top: .15rem; }

/* Source directory */
#source-tree, #changelog, .landscape-list { list-style: none; padding: 0; margin: .65rem 0; }
#source-tree > li, #changelog > li, .landscape-list > li { padding: .32rem 0; }
#source-tree > li + li, #changelog > li + li, .landscape-list > li + li { border-top: 1px solid #e1e8ed; }
#source-tree details, #source-tree li > span { margin-left: .3rem; }
#source-tree summary { list-style: none; cursor: pointer; }
#source-tree summary::-webkit-details-marker { display: none; }
.tree-toggle { display: inline-block; width: 1em; }
details:not([open]) > summary .tree-toggle::before { content: '▸'; }
details[open] > summary .tree-toggle::before { content: '▾'; }
.tree-toggle-spacer { visibility: hidden; }
.tree-row { display: inline-grid; grid-template-columns: 1em var(--count-width) var(--label-width) max-content max-content max-content; column-gap: .45em; align-items: baseline; }
.item-count { text-align: right; font-variant-numeric: tabular-nums; color: #526d82; }
.motd { border-left: .3rem solid #102a43; padding-left: .75rem; margin: 1rem 0; }
#landscape-groups > section, #changelog-section { border-top: 1px solid #ccd6df; margin-top: 1.5rem; }
#changelog time { color: #526d82; font-variant-numeric: tabular-nums; }

@media (max-width: 42rem) {
  .tree-row { grid-template-columns: 1em var(--count-width) minmax(0, 1fr); }
  .tree-row a { margin-right: .25rem; }
}
