/* Purpose: the Brotpedia look on top of docs.css: an encyclopedia's serif titles over a rule, the infobox on the right
   of each article, the main page boxes, the News list and the 404 picture, in the brand's colours.
   Sprint: out of band (landing page), 2026-10-30 (the Brotpedia); 2026-10-31 (News). Raise "?v=" in scripts/docs-layout.mjs when it changes. */
.docs-page h1,
.docs-page h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.docs-page h1 {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 34px;
  line-height: 1.15;
}
.docs-page h2 {
  clear: none;
  margin-top: 30px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  font-size: 24px;
}
.from {
  margin: 6px 0 14px;
  color: var(--dim);
  font-size: 13px;
  font-style: italic;
}
/* News: the reporter's line under the title, and the list on /news. */
.byline {
  margin: -6px 0 14px;
  color: var(--dim);
  font-size: 13px;
}
.news-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.news-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.news-item img {
  flex: none;
  width: 96px;
  height: auto;
}
.news-item time {
  display: block;
  color: var(--dim);
  font-size: 12.5px;
}
.news-item p {
  margin: 4px 0 0;
}
.infobox {
  float: right;
  width: 280px;
  margin: 0 0 18px 24px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--panel);
  font-size: 12.5px;
}
.infobox-title {
  margin: 0 0 8px;
  color: var(--text);
  font: 700 20px/1.1 var(--display);
  text-align: center;
}
.infobox img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 0 auto;
}
.infobox figcaption {
  margin: 6px 0 8px;
  color: var(--dim);
  font-size: 12px;
  text-align: center;
}
.infobox table {
  width: 100%;
  border-collapse: collapse;
}
.infobox th,
.infobox td {
  padding: 5px 4px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.infobox th {
  width: 40%;
  color: var(--muted);
  font-weight: 600;
}
.docs-page .table {
  overflow-x: auto;
}
.main-welcome {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
}
.main-welcome h1 {
  border: 0;
  margin: 0;
}
.main-welcome .from {
  margin: 2px 0 8px;
}
.count {
  color: var(--muted);
  font-size: 14px;
}
.main-boxes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.main-box {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--panel);
  font-size: 13.5px;
}
.main-box h2 {
  margin: 0 0 10px;
  font-size: 19px;
}
.main-box img {
  float: left;
  margin: 0 12px 6px 0;
}
.main-box ul {
  margin: 0;
  padding-left: 18px;
}
.main-box li + li {
  margin-top: 6px;
}
.lost {
  display: block;
  margin: 8px 0 14px;
}

@media (max-width: 640px) {
  .infobox {
    float: none;
    width: auto;
    margin: 0 0 18px;
  }
  .main-boxes {
    grid-template-columns: minmax(0, 1fr);
  }
  .main-welcome img {
    width: 96px;
  }
}
