/* The guide. Plain pages, outside the Angular application: nginx hands them off disk, so a crawler
   reads them without running a line of JavaScript. Hence nothing here but HTML and this file. */

@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/guide/fonts/manrope-cyrillic-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/guide/fonts/manrope-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/guide/fonts/manrope-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/guide/fonts/manrope-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --blue: #3f8cd4;
  --blue-ink: #2a6ba8;
  --ink: #17202c;
  --muted: #6d7785;
  --line: #dce1e7;
  --soft: #f2f6fa;
  --paper: #ffffff;
  --canvas: #eef1f4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --blue: #64a6e4;
    --blue-ink: #8cc0f0;
    --ink: #e8eef4;
    --muted: #9aa6b4;
    --line: #27313d;
    --soft: #18212b;
    --paper: #101822;
    --canvas: #0b1119;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Manrope Variable', 'Segoe UI', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei',
    sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

.top {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.top .inner,
main,
.foot .inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

.top .inner {
  display: flex;
  height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand span {
  font-size: 15px;
}

.brand svg {
  width: 22px;
  height: 22px;
}

.top a.open {
  padding: 8px 15px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

main {
  padding-top: 26px;
  padding-bottom: 56px;
}

nav.crumbs {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13.5px;
}

nav.crumbs a {
  color: var(--muted);
}

h1 {
  margin: 0 0 10px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.lead {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

h2 {
  margin: 38px 0 12px;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h3 {
  margin: 26px 0 8px;
  font-size: 18px;
  font-weight: 800;
}

p {
  margin: 0 0 16px;
}

ul,
ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

li {
  margin-bottom: 8px;
}

a {
  color: var(--blue-ink);
  text-underline-offset: 2px;
}

strong {
  font-weight: 800;
}

.note {
  margin: 24px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--blue);
  border-radius: 0 10px 10px 0;
  background: var(--soft);
  font-size: 16px;
}

.note p:last-child {
  margin-bottom: 0;
}

table {
  width: 100%;
  margin: 0 0 20px;
  border-collapse: collapse;
  font-size: 15.5px;
}

th,
td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.cta {
  margin: 36px 0 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.cta p {
  margin-bottom: 14px;
}

.cta a {
  display: inline-block;
  padding: 11px 19px;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.cards {
  display: grid;
  margin: 26px 0 0;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  color: inherit;
  text-decoration: none;
}

.card b {
  display: block;
  margin-bottom: 5px;
  font-size: 17px;
  font-weight: 800;
}

.card span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.card:hover {
  border-color: var(--blue);
}

.foot {
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 14.5px;
}

.foot .inner {
  padding-top: 24px;
  padding-bottom: 32px;
}

.foot ul {
  margin: 10px 0 16px;
  padding: 0;
  list-style: none;
}

.foot li {
  margin-bottom: 6px;
}

@media (max-width: 600px) {
  body {
    font-size: 16.5px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 21px;
  }

  .lead {
    font-size: 17.5px;
  }
}
