/* The server's reading view: the site's own paper, blue, fonts and hairlines. */
#server-content {
  background: #fafaf8;
  color: #0b1220;
  min-height: 100vh;
  font-family: 'Bricolage Grotesque', sans-serif;
  overflow-wrap: anywhere;
}
.dark #server-content {
  background: #070b12;
  color: #e3e5e9;
}
#server-content a {
  color: #0f6e66;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.dark #server-content a {
  color: #2dd4bf;
}
#server-content a:focus-visible {
  outline: 2px solid #0f6e66;
  outline-offset: 4px;
}
.server-header,
.server-footer {
  padding: 24px max(20px, calc((100vw - 1200px) / 2));
  border-bottom: 1px solid #7a8291;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.server-header > a {
  font-size: 28px;
  font-weight: 620;
}
.server-header nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
#server-main {
  max-width: 900px;
  padding: 48px 24px;
  margin: auto;
}
#server-main h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  font-variation-settings:
    'wdth' 76,
    'wght' 620;
  letter-spacing: -0.025em;
  margin: 16px 0 24px;
}
#server-main h2 {
  font-size: 28px;
  border-top: 1px solid #7a8291;
  padding-top: 24px;
  margin-top: 40px;
}
#server-main h3 {
  font-size: 23px;
}
#server-main p,
#server-main li,
#server-main blockquote {
  font-family: Newsreader, Georgia, serif;
  font-size: 20px;
  line-height: 1.65;
}
.server-description {
  font-size: 24px !important;
}
.server-kicker {
  font-family: 'Bricolage Grotesque', sans-serif !important;
  font-size: 13px !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f6e66;
}
.server-pre {
  white-space: pre-line;
}
.server-cover {
  width: 100%;
  height: auto;
  /* The covers' own shape (1792 x 1024), held before the file arrives: no layout shift. */
  aspect-ratio: 1792 / 1024;
  max-height: 560px;
  object-fit: contain;
  margin: 24px 0;
}
#server-main img {
  max-width: 100%;
  height: auto;
}
#server-main pre {
  overflow-x: auto;
  padding: 16px;
  border: 1px solid #7a8291;
}
#server-main table {
  display: block;
  overflow: auto;
  border-collapse: collapse;
  /* A table wider than the column says so without a script (the application's own frame is
     components/article/tableScroll.ts): the paper rides with the table (local) and covers a
     shade that stays at the pane's edge (scroll), so the shade shows only on a side with more. */
  background:
    linear-gradient(to right, #fafaf8 40%, rgba(250, 250, 248, 0)) left / 2.5rem 100% local
      no-repeat,
    linear-gradient(to left, #fafaf8 40%, rgba(250, 250, 248, 0)) right / 2.5rem 100% local
      no-repeat,
    linear-gradient(to right, rgba(102, 110, 126, 0.22), rgba(102, 110, 126, 0)) left / 0.875rem
      100% scroll no-repeat,
    linear-gradient(to left, rgba(102, 110, 126, 0.22), rgba(102, 110, 126, 0)) right / 0.875rem
      100% scroll no-repeat;
}
.dark #server-main table {
  background:
    linear-gradient(to right, #070b12 40%, rgba(7, 11, 18, 0)) left / 2.5rem 100% local no-repeat,
    linear-gradient(to left, #070b12 40%, rgba(7, 11, 18, 0)) right / 2.5rem 100% local no-repeat,
    linear-gradient(to right, rgba(122, 130, 145, 0.3), rgba(122, 130, 145, 0)) left / 0.875rem 100%
      scroll no-repeat,
    linear-gradient(to left, rgba(122, 130, 145, 0.3), rgba(122, 130, 145, 0)) right / 0.875rem 100%
      scroll no-repeat;
}
#server-main td,
#server-main th {
  padding: 12px;
  border: 1px solid #7a8291;
}
.server-register {
  padding: 0;
  list-style: none;
}
.server-register li {
  padding: 20px 0;
  border-bottom: 1px solid #7a8291;
}
.server-register li > a {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 24px;
}
#server-main nav {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 32px 0;
}
#server-main dt {
  font-weight: 600;
  margin-top: 16px;
}
#server-main dd {
  margin: 4px 0;
}
.server-skip {
  position: absolute;
  left: 16px;
  top: -100px;
}
.server-skip:focus {
  top: 16px;
  background: #fafaf8;
  padding: 12px;
  z-index: 100;
}
.server-footer {
  background: #0f6e66;
  color: white;
  margin-top: 32px;
}
.server-footer a {
  color: white !important;
}
/* The footer's index and the site's pages (server/html.mjs footerHtml): plain rows that wrap. */
.server-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.server-footer nav {
  flex-basis: 100%;
}
