/* W2: the theme of the site for /el/: the app's style Varm skifer in its light theme (web/packages/styles/styles/
   varm-skifer.json, themes/varm-skifer-light.json): the deep slate ink #192840 and the muted slate #3E5879 on white
   panels over the cool grey ground #eef1f5, the message on slate, Sage as a mark only; the app's own font (Archivo,
   self-hosted) and its top bar, whose chosen page is underlined in ink with a 3 px line. Only meaning has colour.
   The text pairs below are measured by elo_devtools.site.check (TEXT_PAIRS), and the build fails below 4.5:1. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/Archivo-latin-subset.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ink: #192840; /* Oxford: text.primary, axis, table.rule */
  --ink-2: #3e5879; /* Horizon: text.secondary, message.ground */
  --panel: #ffffff; /* background.page: the panels */
  --ground: #eef1f5; /* the style's ground.page, around the panels */
  --rule: #d6dce4; /* table.ruleLight */
  --assist: #ebeff4; /* marker.assistingArea: hover, the chosen entry */
  --code-ground: #edf0f4; /* table.totalFill */
  --code-ink: #192840;
  --msg: #3e5879; /* message.ground */
  --msg-ink: #f2f5f9; /* message.ink */
  --msg-muted: #dce3ed; /* message.inkMuted */
  --sage: #bec6a0; /* message.cite: a mark on the message, never text */
  --sage-dark: #6f7a4c; /* marker.highlight on white: a mark only */
  --call: #192840;
  --call-ink: #ffffff;
  --font: "Archivo", system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --radius-card: 18px;
  --radius-control: 10px;
  --radius-message: 24px;
  --content: 1392px;
  --edge: inset 0 0 0 1px var(--rule);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: var(--ink-2);
}
a:hover {
  text-decoration-thickness: 2px;
  text-decoration-color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
  font-weight: 650;
  line-height: 1.2;
  color: var(--ink);
}
h1 {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.01em;
  font-stretch: 96%;
  margin: 0 0 16px;
}
h2 {
  font-size: 24px;
  margin: 0 0 8px;
}

code,
pre {
  font-family: var(--mono);
}
code {
  font-size: 0.88em;
  background: var(--code-ground);
  color: var(--code-ink);
  padding: 0.08em 0.3em;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
pre {
  background: var(--code-ground);
  color: var(--code-ink);
  padding: 14px 16px;
  border-radius: var(--radius-control);
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.5;
}
pre code {
  background: none;
  padding: 0;
  font-size: inherit;
  overflow-wrap: normal;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip:focus {
  left: 8px;
  top: 8px;
  z-index: 20;
  background: var(--panel);
  padding: 6px 10px;
}

/* ==== the top bar, as the app's: white, a light rule at its foot, the chosen section underlined in ink ============= */
.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--panel);
  border-bottom: 1px solid var(--rule);
}
.bar {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: stretch;
  gap: 8px 32px;
  min-height: 56px;
}
.brand {
  align-self: center;
  font-weight: 650;
  text-decoration: none;
  color: var(--ink);
}
.tabs {
  display: flex;
  gap: 2px 4px;
  align-self: stretch;
}
.tabs a {
  display: grid;
  align-content: center;
  justify-items: start;
  padding: 0 9px;
  border-bottom: 3px solid transparent;
  color: var(--ink-2);
  text-decoration: none;
}
/* the label's own text in the chosen weight, invisible, under it: choosing a section moves no word (as the app) */
.tabs a::after {
  content: attr(data-label);
  height: 0;
  overflow: hidden;
  visibility: hidden;
  font-weight: 650;
}
.tabs a[aria-current="page"] {
  color: var(--ink);
  font-weight: 650;
  border-bottom-color: var(--ink);
}
.tabs a:not([aria-current="page"]):hover {
  box-shadow: inset 0 -2px 0 var(--rule);
}

/* ==== the footer ================================================================================================== */
.site-foot {
  margin-top: 48px;
  background: var(--panel);
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 14px;
}
.foot-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 20px 24px 28px;
}
.foot-inner p {
  margin: 0 0 6px;
  max-width: 100ch;
}
.site-foot a {
  color: var(--ink-2);
}

/* ==== pages ======================================================================================================= */
.page {
  max-width: var(--content);
  margin: 0 auto;
  padding: 32px 24px 0;
}
.narrow {
  max-width: 1088px;
}
.lead {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 70ch;
}
.message {
  background: var(--msg);
  color: var(--msg-ink);
  border-radius: var(--radius-message);
  padding: clamp(14px, 1.6vw, 20px) clamp(16px, 2.2vw, 28px) clamp(14px, 1.6vw, 20px) clamp(22px, 2.6vw, 34px);
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 650;
  font-stretch: 96%;
  line-height: 1.3;
  margin: 28px 0;
}
.panel {
  background: var(--panel);
  border-radius: var(--radius-card);
  box-shadow: var(--edge);
  padding: clamp(18px, 2.4vw, 32px);
  margin-top: 24px;
}
.section-lead {
  color: var(--ink-2);
  max-width: 78ch;
  margin: 0 0 20px;
}
.panel p {
  max-width: 85ch;
}

/* the landing page */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  align-items: center;
}
.kicker {
  margin: 0 0 8px;
  font-weight: 650;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}
.calls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
}
.call {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-control);
  background: var(--panel);
  box-shadow: var(--edge);
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}
.call:hover {
  background: var(--assist);
}
.call-main {
  background: var(--call);
  color: var(--call-ink);
  box-shadow: none;
}
.call-main:hover {
  background: var(--ink-2);
}
.call-note {
  font-weight: 400;
  font-size: 14px;
  color: var(--ink-2);
}
.shot {
  margin: 0;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--edge);
  background: var(--panel);
}
.shot figcaption {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 15px;
}
.shot figcaption strong {
  color: var(--ink);
}
.hero-shot figcaption {
  font-size: 14px;
}
.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
}
.shot-wide {
  grid-column: 1 / -1;
}
.styles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* tables, as the notation's: a rule in ink under the head, light rules between the rows */
.table {
  overflow-x: auto;
  margin: 0 0 16px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}
th {
  text-align: left;
  font-weight: 650;
  border-bottom: 2px solid var(--ink);
  padding: 6px 14px 6px 0;
  vertical-align: bottom;
}
td {
  border-bottom: 1px solid var(--rule);
  padding: 7px 14px 7px 0;
  vertical-align: top;
}
th.r,
td.r {
  text-align: right;
}
th.c,
td.c {
  text-align: center;
}

/* the video page */
.video {
  margin: 0;
}
.video video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: var(--ink);
}
.video figcaption {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 15px;
}

/* ==== the documentation =========================================================================================== */
.docs {
  max-width: var(--content);
  margin: 0 auto;
  padding: 24px 24px 0;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.sidebar {
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 92px);
  overflow-y: auto;
  font-size: 14px;
  padding-right: 4px;
}
.search label {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 4px;
}
.search input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius-control);
  padding: 7px 10px;
}
.search-results {
  list-style: none;
  margin: 6px 0 12px;
  padding: 6px;
  background: var(--panel);
  border-radius: var(--radius-control);
  box-shadow: 0 6px 24px color-mix(in srgb, var(--ink) 12%, transparent), var(--edge);
}
.search-results a {
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  text-decoration: none;
}
.search-results a small {
  display: block;
  color: var(--ink-2);
  font-size: 12px;
}
.search-results a:hover,
.search-results a.active {
  background: var(--assist);
}
.search-results .none {
  padding: 6px 8px;
  color: var(--ink-2);
}
.toc {
  margin-top: 16px;
}
.toc summary {
  font-weight: 650;
  cursor: pointer;
  padding: 4px 0;
}
.toc-home {
  margin: 8px 0 0;
}
.toc-home a {
  font-weight: 650;
  text-decoration: none;
}
.toc-group {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink-2);
  letter-spacing: 0.03em;
  margin: 18px 0 4px;
}
.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc a {
  display: block;
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--ink-2);
  text-decoration: none;
}
.toc a:hover {
  background: var(--assist);
  color: var(--ink);
}
/* the page shown: the app's chosen row, a 3 px rule in ink at its left */
.toc a[aria-current="true"] {
  color: var(--ink);
  font-weight: 650;
  background: var(--assist);
  box-shadow: inset 3px 0 0 var(--ink);
}
.toc .sub,
.toc .outline {
  margin: 2px 0 6px 12px;
  padding-left: 4px;
  border-left: 1px solid var(--rule);
}
.toc .outline a,
.toc .sub a {
  font-size: 13px;
}
.doc,
.doc-index {
  min-width: 0;
}
.doc {
  background: var(--panel);
  border-radius: var(--radius-card);
  box-shadow: var(--edge);
  padding: clamp(18px, 3vw, 40px);
}
.doc h1 {
  font-size: clamp(26px, 2.4vw, 34px);
}
.doc h2 {
  font-size: 22px;
  margin: 2em 0 0.6em;
  padding-top: 0.6em;
  border-top: 1px solid var(--rule);
}
.doc h3 {
  font-size: 18px;
  margin: 1.6em 0 0.5em;
}
.doc h4 {
  font-size: 16px;
  margin: 1.4em 0 0.4em;
}
.doc h1,
.doc h2,
.doc h3,
.doc h4,
.doc [id] {
  scroll-margin-top: 76px;
}
.doc > p,
.doc > ul,
.doc > ol,
.doc > blockquote {
  max-width: 88ch;
}
.doc li + li {
  margin-top: 0.25em;
}
.doc blockquote {
  margin: 16px 0;
  padding: 4px 0 4px 18px;
  box-shadow: inset 3px 0 0 var(--rule);
  color: var(--ink-2);
}
.doc hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2em 0;
}
.doc .table {
  margin: 12px 0 20px;
}
.doc table {
  font-size: 14px;
}
/* in a cell, a name breaks only where it must: the column takes the name's width and the table scrolls inside itself */
td code,
th code {
  overflow-wrap: break-word;
}
.anchor {
  margin-left: 8px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 400;
  opacity: 0;
}
.doc :is(h2, h3, h4):hover .anchor,
.anchor:focus {
  opacity: 1;
}
.crumbs,
.source {
  font-size: 13px;
  color: var(--ink-2);
}
.crumbs {
  margin: 0 0 8px;
}
.source {
  margin-top: 3em;
}
.toc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 20px;
  margin-top: 24px;
}
.toc-card {
  background: var(--panel);
  border-radius: var(--radius-card);
  box-shadow: var(--edge);
  padding: 20px 22px;
}
.toc-card h2 {
  font-size: 18px;
  margin-bottom: 10px;
}
.toc-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc-card li {
  padding: 5px 0;
  border-bottom: 1px solid var(--rule);
}
.toc-card li:last-child {
  border-bottom: 0;
}
.toc-card .sub {
  margin: 4px 0 0 12px;
  font-size: 14px;
}
.toc-card .sub li {
  border: 0;
  padding: 2px 0;
}
.path {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
}

/* ==== narrow screens, down to 390 px ============================================================================== */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}
@media (max-width: 900px) {
  .docs {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }
}
@media (max-width: 760px) {
  .shots,
  .styles {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .bar {
    flex-wrap: wrap;
    padding: 8px 12px 0;
    gap: 0 16px;
  }
  .brand {
    width: 100%;
  }
  .tabs {
    width: 100%;
    margin-left: -9px;
    overflow-x: auto;
  }
  .tabs a {
    padding: 8px 9px;
  }
  .page,
  .docs {
    padding-left: 14px;
    padding-right: 14px;
  }
  .foot-inner {
    padding-left: 14px;
    padding-right: 14px;
  }
  .call {
    width: 100%;
    justify-content: center;
  }
}
