/* wariq — same family as ussira-pitati, iddin-annakam and bologna-wx:
   cream paper, Times, classic links, thin rules, Courier for data. */

body {
  background-color: #fdf6e3;
  color: #222222;
  font-family: "Times New Roman", Times, serif;
  font-size: 17px;
  max-width: 720px;
  margin: 30px auto;
  padding: 0 16px;
  line-height: 1.5;
}

a:link { color: #0000ee; }
a:visited { color: #551a8b; }
a:hover { color: #cc0000; }

h1 { font-size: 1.8em; margin-bottom: 0; }

/* Masthead: logo beside the title, same arrangement as radio-rian. The whole
   block links home on generated pages; on the overview it does not, because a
   link to the page you are on is noise. */
.masthead {
  display: flex;
  align-items: center;
  gap: 16px;
}

.masthead img {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
}

.masthead h1 { margin-top: 0; }
.masthead .tagline { margin-bottom: 0; }

a.site-title-link { text-decoration: none; color: inherit; }
a.site-title-link:hover h1 { color: #cc0000; }

.tagline {
  color: #555555;
  font-style: italic;
  margin-top: 4px;
}

nav {
  margin: 14px 0;
  padding: 6px 0;
  border-top: 1px solid #999999;
  border-bottom: 1px solid #999999;
}

nav ul { list-style: none; padding: 0; margin: 0; }
nav ul li { display: inline; margin-right: 14px; }

h2 {
  border-bottom: 1px solid #cccccc;
  padding-bottom: 2px;
  margin-top: 1.6em;
}

h3 { margin-top: 1.3em; }

.num, .mono {
  font-family: "Courier New", monospace;
  font-size: 0.95em;
}

blockquote {
  border-left: 3px solid #cccccc;
  margin-left: 0;
  padding-left: 14px;
  color: #444444;
}

table {
  border-collapse: collapse;
  font-size: 0.9em;
  margin: 14px 0;
}

th, td {
  border: 1px solid #bbbbbb;
  padding: 4px 9px;
  text-align: left;
  vertical-align: top;
}

th { background: #f4ecd4; }

/* Wide tables (the hoard and mint indexes) scroll rather than forcing the
   page to. */
.scroll { overflow-x: auto; }
.scroll table { width: 100%; }

/* Figures. A 720px prose column is right for reading and far too narrow for a
   map spanning Samarqand to Gotland, so figures break out of the column —
   centred on it, capped at the viewport so the page never scrolls sideways.
   Without the max-width on the image the browser renders the PNG at its native
   1625px and the whole page overflows. */
figure {
  width: min(1080px, 94vw);
  margin: 26px 0 26px 50%;
  transform: translateX(-50%);
  text-align: center;
}

figure img {
  max-width: 100%;
  height: auto;
  border: 1px solid #cccccc;
  background: #ffffff;
}

figcaption {
  font-size: 0.85em;
  color: #555555;
  text-align: left;
  margin-top: 8px;
  line-height: 1.45;
}

.figlink {
  display: block;
  font-size: 0.8em;
  color: #777777;
  text-align: right;
  margin-top: 2px;
}

/* A caveat the reader must not miss — the licensing notes and the
   private-lane warnings. Same treatment as iddin-annakam's .verdict. */
.note {
  border: 1px solid #cccccc;
  background-color: #f5efdc;
  padding: 8px 14px;
  margin: 14px 0;
}

/* Source-recorded uncertainty. Rendered, not hidden: the whole argument of
   this dataset is that these marks are data. */
.restored { color: #8a6d00; }
.restored::after { content: " \25B3"; font-size: 0.8em; }

dt { font-weight: bold; margin-top: 10px; }
dd { margin-left: 1.2em; }

.updated { color: #666666; font-size: 0.85em; font-family: "Courier New", monospace; }

footer {
  font-size: 0.85em;
  color: #777777;
  border-top: 1px solid #999999;
  padding-top: 10px;
  margin-top: 30px;
}
