/* Site-wide extras that are not part of a component: the announcement set in the admin panel, and articles. */
.announcement { background: var(--accent-strong); color: var(--on-accent); padding-block: var(--space-2); font-weight: 700; text-align: center; }

/* Articles, tips and legal pages (text written in the admin panel) */
.article__body { margin-block: var(--space-5); }
.article__body h2 { font-size: var(--text-xl); margin-top: var(--space-6); }
.article__body h3 { font-size: var(--text-lg); margin-top: var(--space-5); }
.article__body ul, .article__body ol { padding-left: 1.4rem; margin: 0 0 var(--space-4); display: grid; gap: var(--space-2); }
.post-list { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.post-list__item { padding-block: var(--space-4); border-bottom: 1px solid var(--line); }
.post-list__title { font-size: var(--text-xl); margin-bottom: var(--space-1); }
.post-list__title a { color: var(--text); text-decoration: none; }
.post-list__title a:hover { color: var(--accent-strong); text-decoration: underline; }
.post-list__summary { margin: 0 0 var(--space-1); color: var(--text-muted); }

/* The contact form's trap field: out of sight for people, tempting for robots. */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Leaderboards, profiles and the dashboard */
.data-table { overflow-x: auto; margin-block: var(--space-3) var(--space-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.data-table th, .data-table td { text-align: left; padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { color: var(--text-muted); font-size: var(--text-sm); white-space: nowrap; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td { font-variant-numeric: tabular-nums; }
.filters { display: grid; gap: var(--space-3); margin-bottom: var(--space-4); }
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.filter__label { font-weight: 700; min-width: 7rem; }
.chip--link { color: var(--text); text-decoration: none; padding: var(--space-1) var(--space-3); border: 1px solid var(--line); }
.chip--link:hover { border-color: var(--accent); }
.chip--link[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }

/* Progress chart, drawn as SVG by the server */
.chart-box { margin: 0 0 var(--space-5); }
.chart { width: 100%; max-width: 40rem; height: auto; }
.chart__grid { stroke: var(--line); stroke-width: 1; }
.chart__line { fill: none; stroke: var(--accent); stroke-width: 2; }
.chart__dot { fill: var(--accent); stroke: var(--accent); stroke-width: 2; }
.chart__dot--practice { fill: var(--bg); }
.chart__label { fill: var(--text-muted); font-size: 11px; }

/* Printable passage */
.print { max-width: 46rem; margin-inline: auto; padding: var(--space-5) var(--space-4); }
.print__tools { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-bottom: var(--space-3); }
.print__head h1 { font-size: var(--text-xl); margin-bottom: var(--space-1); }
.print__text { font-size: 1.3rem; line-height: 2; white-space: pre-wrap; margin-top: var(--space-4); }
@media print {
  .print__tools { display: none; }
  .print { max-width: none; padding: 0; }
  .print__text { font-size: 14pt; line-height: 2; color: #000; }
  body { background: #fff; color: #000; }
}
