:root {
  --gap: 20px;
  --border: 1px solid #dedede;
  --bg-subtle: #f7f8f7;
  --bg-code: #dedede;
  --link: #1d4b8f;
}

body {
  max-width: 900px;
  margin: 0 auto;
  padding: 5px;
  line-height: 1.5;
}

h1 {
  margin-top: 0;
}

h1, h2 {
  border-bottom: var(--border);
}

p:not(.tableblock) {
  text-align: justify;
  text-justify: inter-word;
}

ul {
  padding-left: 20px;
}

a, a:visited {
  color: var(--link);
}

time {
  padding-right: 10px;
}

#footer {
  display: none;
}

#logo {
  display: flex;
  justify-content: center;
}

.code {
  background-color: var(--bg-code);
}

.site-nav, .tag-pills,
#main-nav p, #network-free p, #network-non-free p {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--gap);
}

.article-tags {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap);
  margin-bottom: 10px;
}

li > p, .tag-index li, .recent-articles li {
  margin: 8px 0;
}

table {
  border-collapse: collapse;
  margin: 0 auto 30px auto;
}

td, th {
  border: var(--border);
  padding: 10px;
}

th {
  background-color: var(--bg-subtle);
}

table.draw {
  cursor: pointer;
}

table.draw td.chosen {
  background: var(--bg-subtle);
  transition: background 0.4s ease;
}

table.draw tbody tr:hover {
  background: var(--bg-subtle);
}

/* Polices */

@font-face {
  font-family: 'Ubuntu';
  src: url('/fonts/Ubuntu-R.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ubuntu';
  src: url('/fonts/Ubuntu-B.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ubuntu';
  src: url('/fonts/Ubuntu-RI.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Ubuntu';
  src: url('/fonts/Ubuntu-BI.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

body, textarea, input {
  font-family: 'Ubuntu', system-ui, sans-serif;
}

summary.title {
  cursor: pointer;
}

details {
  background-color: #dedede;
  padding: 10px;
  border-radius: 4px;
}

details {
  margin: 10px 0;
}

.note table, .hdlist table {
  width: 100%;
  margin-bottom: 10px;
}

.hdlist table td {
  border: none;
}

.note table td {
  border: none;
}

.note table td:not(.content) {
  border: none;
  border-right: 1px solid #dedede;
}

.note .title, .hdlist1 {
  text-transform: uppercase;
  font-weight: bolder;
  text-align: right;
}