/* Styles for the About & sources page. The map app's stylesheet supplies the
   colour tokens; this only handles long-form reading, which the app itself
   never has to do. */

.doc-body {
  height: auto;
  min-height: 100%;
  overflow-y: auto;
}

.doc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 22px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.doc-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.doc-back {
  color: var(--accent);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
}

.doc-back:hover { text-decoration: underline; }

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 26px 22px 90px;
}

.doc-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 12px 14px;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 30px;
}

.doc-toc a {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.doc-toc a:hover { text-decoration: underline; }

.doc section { margin-bottom: 44px; }

.doc h1 {
  font-size: 22px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.doc h2 {
  font-size: 15px;
  margin: 26px 0 8px;
  color: var(--text);
}

.doc p, .doc li {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

.doc-lead {
  color: var(--text-dim);
  font-size: 15px !important;
}

.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 7px; }

.doc a { color: var(--accent); }

.doc-note {
  color: var(--text-dim);
  font-size: 13px !important;
}

.doc-copyright {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--text-dim);
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.doc-table th, .doc-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  vertical-align: top;
}

.doc-table th {
  color: var(--text-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.doc-table td.yes { color: var(--down); font-weight: 600; }
.doc-table td.partial { color: #f3b23e; font-weight: 600; }
.doc-table td.no { color: var(--up); font-weight: 600; }

.doc-sources {
  columns: 2;
  column-gap: 26px;
}

@media (max-width: 620px) {
  .doc-sources { columns: 1; }
}

/* Language switch on the document pages. These are two static documents, not
   one page with a toggle, so this is a plain link rather than a button. */
.doc-lang {
  margin-left: auto;
  margin-right: 14px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.doc-lang:hover { border-color: var(--accent); color: var(--accent); }
