/* Classes for the Twig templates (templates/), replacing inline styles of the old pages. */
.spaced { margin-top: 10px; }
#sidebar td.indent { padding-left: 20px; }
#sidebar small { font-size: x-small; }
/* One blank line between blocks, as the old <p>&nbsp;</p> spacers did; none at the top and none between a heading and its text.
   Section headings look like bold body text. */
.legal p, .legal h4 { margin: 1lh 0 0; }
.legal h4 { font-size: 1em; }
.legal h4 + p, .legal .post_content > :first-child { margin-top: 0; }
/* Blank line before a paragraph (instead of a <p>&nbsp;</p> spacer) */
.post p.gap { margin-top: 1lh; }
/* Numbered terms that look like the old numbered paragraphs: "7." and "7.1" in the text flow, no indent */
ol.terms, ol.terms ol { list-style: none; margin: 0; padding: 0; counter-reset: term; }
ol.terms ol { padding-left: 10px; }
ol.terms li { counter-increment: term; }
ol.terms > li::before { content: counter(term) ". "; }
ol.terms ol > li::before { content: counters(term, ".") " "; }
/* Chat of the week on the start page: banner box (468px like the banner image), numbers centred below */
.featured { width: 468px; margin: 1lh auto 0; }
.featured-stats { margin: 1lh auto 0; }
/* Mediadaten: chart area and the per-server tables (replace cellpadding/cellspacing and inline styles) */
.chart { position: relative; width: 100%; height: 260px; margin-top: 1lh; }
table.facts_table { width: 100%; border: 0; border-collapse: collapse; }
table.facts_table td { padding: 3px; }
table.facts_table td.indent { padding-left: 10px; }
/* Topliste (replaces cellpadding/cellspacing, width/valign attributes and the empty spacer rows) */
table.toplist { width: 100%; border: 0; border-spacing: 1px 4px; margin-top: 2lh; }
table.toplist td { padding: 1px; }
table.toplist th { vertical-align: top; }
table.toplist .place { width: 15%; }
table.toplist .link { width: 65%; }
table.toplist .logins { width: 20%; text-align: center; }
/* Forms: label column and input column (replaces the old layout tables with width/valign attributes) */
.form-rows { display: grid; grid-template-columns: 170px 150px; gap: 6px 3px; align-items: center; }
.form-rows + p.center_text { margin-top: 1lh; }
/* Members-only pages for visitors */
.register-link { text-align: center; margin-top: 10px; }
/* Codes: colour picker and graphic preview (250×100 like the generated image) */
label.plain { display: block; font-weight: normal; cursor: default; }
select.graphic-colour { padding: 3px; width: 250px; }
.graphic-preview { width: 260px; margin: 1lh auto; }
.graphic-preview img { width: 250px; height: 100px; }
/* Profile page (/ucp): collapsible sections instead of the old JS toggles, same grey/black link look */
.ucp-form summary { cursor: pointer; color: #898989; margin-top: 3px; }
.ucp-form details[open] > summary { color: #000; }
table.ucp td { vertical-align: top; }
table.ucp td.confirm-boxes { text-align: center; width: 200px; }
.form-errors { text-align: left; margin: 5px auto 0; display: inline-block; }
div.error_text p { margin: 0; }
/* Statistics pages (/statistik, /statistik/detail) */
.stats-form { display: grid; grid-template-columns: 170px auto 1fr; gap: 6px 8px; align-items: center; }
.stats-form small { color: #898989; }
.stats-form p.center_text { grid-column: 1 / -1; margin-top: 1lh; }
.stats-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1lh 20px; }
.stats-columns h4 { font-size: 1em; margin: 0 0 4px; }
table.stats-counts { width: 100%; max-width: 325px; border-collapse: collapse; }
table.stats-counts th { text-align: left; }
table.stats-counts td, table.stats-counts th { padding: 1px; }
.login-graph { display: flex; width: 320px; max-width: 100%; margin-top: 1lh; }
.login-graph small { font-weight: bold; }
.login-graph.empty { border: 1px solid #000; justify-content: center; }
table.stats-top { border-collapse: collapse; }
table.stats-top td { padding: 1px 4px 1px 1px; }
table.stats-top .place { width: 2.5em; }
table.stats-top .nick { min-width: 12em; }
/* Registration: fields that can't be changed later */
.fixed-mark { color: #F00; font-weight: bold; }
label.plain-inline { font-weight: normal; }
/* Width of the registered/guest bars on /statistik in 5 % steps (classes instead of inline styles, so the CSP
   needs no 'unsafe-inline' for styles; the exact percentage is in the label) */
.share-0 { width: 0%; }
.share-5 { width: 5%; }
.share-10 { width: 10%; }
.share-15 { width: 15%; }
.share-20 { width: 20%; }
.share-25 { width: 25%; }
.share-30 { width: 30%; }
.share-35 { width: 35%; }
.share-40 { width: 40%; }
.share-45 { width: 45%; }
.share-50 { width: 50%; }
.share-55 { width: 55%; }
.share-60 { width: 60%; }
.share-65 { width: 65%; }
.share-70 { width: 70%; }
.share-75 { width: 75%; }
.share-80 { width: 80%; }
.share-85 { width: 85%; }
.share-90 { width: 90%; }
.share-95 { width: 95%; }
.share-100 { width: 100%; }
