@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/roboto-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/roboto-latin-700-normal.woff2") format("woff2");
}

:root {
  --ink: #1e2a29;
  --ink-soft: #50605a;
  --paper: #faf8f1;
  --sand: #f1ebdc;
  --sand-deep: #e5d8bb;
  --line: #ded5c1;
  --green: #35634d;
  --green-deep: #264a3a;
  --gold: #b88731;
  --body: "Source Serif 4", Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-doc-theme="steel"] {
  --ink: #243642;
  --ink-soft: #5d6e7b;
  --paper: #f7fafc;
  --sand: #e8eef3;
  --sand-deep: #d6e1e9;
  --line: #c8d4dd;
  --green: #3f6f91;
  --green-deep: #28536f;
  --gold: #7895a8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

a { color: var(--green-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #17382a; }
a:focus-visible, summary:focus-visible { outline: 3px solid #c99943; outline-offset: 3px; border-radius: 3px; }
html[data-doc-theme="steel"] a:hover { color: #183c55; }
html[data-doc-theme="steel"] a:focus-visible, html[data-doc-theme="steel"] summary:focus-visible { outline-color: #5a91b2; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 0;
  background: rgba(250, 248, 241, .93);
  backdrop-filter: blur(12px);
}
.site-header__inner {
  display: flex;
  width: min(1440px, calc(100% - 40px));
  min-height: 70px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-grid;
  grid-template-columns: 52px auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: flex-start;
  row-gap: 0;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1;
  text-decoration: none;
}
.brand::before {
  grid-row: 1 / span 2;
  width: 52px;
  height: 52px;
  content: "";
  background: url("../img/sky-map-2000-star-atlas-planetarium.png") center / contain no-repeat;
}
.brand-name { grid-column: 2; margin-bottom: 6px; color: #17223c; font: 600 24px/1.12 "Roboto", sans-serif; }
.brand-sub { grid-column: 2; color: #519051; font: 500 16px/1.12 "Roboto", sans-serif; }
.site-header__links { display: flex; align-items: center; gap: 23px; font: 500 13px/1 var(--sans); }
.site-header__links a { color: var(--ink-soft); text-decoration: none; }
.site-header__links a:hover, .site-header__links a[aria-current="page"] { color: var(--green-deep); }
.site-header__links .open-app {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
}
.site-header__links .open-app:hover { background: var(--green-deep); color: #fff; }

html[data-doc-theme="steel"] .site-header { background: rgba(247, 250, 252, .93); }
html[data-doc-theme="steel"] .brand-name { color: #243642; }
html[data-doc-theme="steel"] .brand-sub { color: #3f6f91; }
html[data-doc-theme="steel"] .docs-menu__heading { color: #657987; }
html[data-doc-theme="steel"] .docs-nav a { color: #566b79; }
html[data-doc-theme="steel"] .docs-nav a:hover { background: rgba(113, 151, 177, .12); color: #28536f; }
html[data-doc-theme="steel"] .docs-nav .nav-section { color: #70828e; }
html[data-doc-theme="steel"] .breadcrumb { color: #697b87; }
html[data-doc-theme="steel"] .breadcrumb a { color: #5b7180; }
html[data-doc-theme="steel"] .breadcrumb span { color: #8ea1ad; }
html[data-doc-theme="steel"] .lead { color: #435a6a; }
html[data-doc-theme="steel"] .doc-card { border-color: #c0d0db; }
html[data-doc-theme="steel"] .doc-card__type { color: #6e8391; }
html[data-doc-theme="steel"] .doc-card p, html[data-doc-theme="steel"] .feature-list p { color: #526875; }
html[data-doc-theme="steel"] .callout { background: #dde7ee; }
html[data-doc-theme="steel"] .callout--green { background: #d5e4ed; }
html[data-doc-theme="steel"] .hero-image { background: #192a35; }
html[data-doc-theme="steel"] .hero-image figcaption { background: #192a35; color: #e5edf2; }
html[data-doc-theme="steel"] .page-toc { border-color: #bdcdda; }
html[data-doc-theme="steel"] .page-toc__title { color: #687e8d; }
html[data-doc-theme="steel"] .page-toc a { color: #577080; }
html[data-doc-theme="steel"] .source-list { color: #526875; }
html[data-doc-theme="steel"] .article-nav small { color: #6e818c; }
html[data-doc-theme="steel"] .site-footer { background: #d7e2e9; }
html[data-doc-theme="steel"] .site-footer__inner { color: #586d7a; }
html[data-doc-theme="steel"] .site-footer a { color: #3f6074; }

.doc-shell {
  display: grid;
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  grid-template-columns: 238px minmax(0, 760px) 192px;
  gap: clamp(32px, 5vw, 78px);
}
.doc-sidebar, .page-toc { align-self: start; position: sticky; top: 98px; }
.doc-sidebar { padding: 43px 0 48px; }
.docs-menu { border: 0; }
.docs-menu summary {
  display: none;
  cursor: pointer;
  color: var(--ink);
  font: 700 13px/1.2 var(--sans);
  list-style: none;
}
.docs-menu summary::-webkit-details-marker { display: none; }
.docs-menu__heading { margin: 0 0 15px; color: #7b776b; font: 700 12px/1.2 var(--sans); text-transform: uppercase; }
.docs-nav { display: grid; gap: 3px; }
.docs-nav a { display: block; padding: 8px 10px; border-left: 2px solid transparent; color: #5c675f; font: 500 15px/1.36 var(--sans); text-decoration: none; }
.docs-nav a:hover { color: var(--green-deep); background: rgba(215, 199, 162, .2); }
.docs-nav a[aria-current="page"] { border-left-color: var(--green); color: var(--green-deep); font-weight: 700; }
.docs-nav .nav-section { margin: 25px 0 6px; padding: 0 10px; color: #8b826e; font: 700 11px/1.2 var(--sans); text-transform: uppercase; }
.docs-nav .nav-section:first-child { margin-top: 0; }

.doc-main { min-width: 0; padding: 58px 0 80px; }
.breadcrumb { margin: 0 0 20px; color: #807968; font: 500 12px/1.4 var(--sans); }
.breadcrumb a { color: #6d766c; text-decoration: none; }
.breadcrumb span { margin: 0 7px; color: #aaa08a; }
.eyebrow { margin: 0 0 12px; color: var(--green); font: 700 13px/1.2 var(--sans); text-transform: uppercase; }
h1, h2, h3 { color: var(--ink); font-family: var(--sans); text-wrap: balance; }
h1 { max-width: 760px; margin: 0; font-size: clamp(36px, 5vw, 54px); line-height: 1.06; }
h2 { margin: 52px 0 16px; font-size: 26px; line-height: 1.2; }
h3 { margin: 30px 0 8px; font-size: 18px; line-height: 1.3; }
p { margin: 0 0 20px; }
.lead { max-width: 690px; margin: 19px 0 31px; color: #435149; font-size: 21px; line-height: 1.52; text-wrap: balance; }
.article-intro { max-width: 690px; }
.article-intro strong { color: var(--green-deep); }
.doc-main ul, .doc-main ol { margin: 0 0 22px; padding-left: 25px; }
.doc-main li { margin: 7px 0; }
.doc-main li::marker { color: var(--green); }
.callout {
  margin: 30px 0;
  padding: 20px 22px;
  border: 0;
  border-radius: 16px;
  background: #eee4cc;
}
.callout h2 { margin: 0 0 5px; font-size: 18px; }
.callout h3 { margin: 0 0 5px; font-size: 16px; }
.callout p:last-child { margin-bottom: 0; }
.callout--green { background: #d8e6d4; }
.note-label { display: block; margin-bottom: 7px; color: var(--green); font: 700 12px/1.2 var(--sans); text-transform: uppercase; }

.hero-image {
  overflow: hidden;
  margin: 34px 0 35px;
  border: 0;
  background: #192022;
  box-shadow: none;
}
.hero-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: center; }
.hero-image figcaption { padding: 9px 12px; background: #192022; color: #e8e0cf; font: 400 13px/1.5 var(--sans); }
.doc-figure { margin: 30px 0 34px; }
.doc-figure img { display: block; width: 100%; height: auto; }
.doc-figure figcaption { margin-top: 8px; color: var(--ink-soft); font: 400 13px/1.5 var(--sans); }

.start-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin: 28px 0 8px; }
.doc-card {
  display: flex;
  min-height: 175px;
  padding: 5px 0 18px;
  flex-direction: column;
  justify-content: space-between;
  border-top: 1px solid #d7cab1;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
}
.doc-card:hover { border-color: var(--green); color: var(--green-deep); }
.doc-card__type { color: #7c7a6c; font: 700 12px/1.2 var(--sans); text-transform: uppercase; }
.doc-card h3 { margin: 13px 0 7px; font-size: 19px; }
.doc-card p { margin: 0; color: #5d675f; font-size: 15px; line-height: 1.52; }
.doc-card__arrow { margin-top: 16px; color: var(--green); font: 700 15px/1 var(--sans); }
.feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 25px; }
.feature-list h3 { margin-top: 0; font-size: 17px; }
.feature-list p { color: #566159; font-size: 15px; line-height: 1.58; }

.steps { list-style: none; counter-reset: docs-steps; padding-left: 0 !important; }
.steps > li {
  position: relative;
  min-height: 43px;
  margin: 0 0 25px;
  padding-left: 58px;
  counter-increment: docs-steps;
}
.steps > li::before {
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f1f6ef;
  color: var(--green);
  content: counter(docs-steps);
  font: 700 13px/1 var(--sans);
}
.steps h2, .steps h3 { margin: 0 0 5px; font-size: 19px; }
.steps p { margin-bottom: 0; }
.steps .step-link { display: inline-block; margin-top: 8px; font: 600 13px/1.4 var(--sans); }

.source-list { padding: 19px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #59645c; font-size: 15px; }
.source-list p { margin-bottom: 10px; }
.source-list p:last-child { margin-bottom: 0; }

.article-nav { display: flex; margin-top: 56px; padding-top: 22px; justify-content: space-between; gap: 25px; border-top: 1px solid var(--line); font-family: var(--sans); }
.article-nav a { display: grid; gap: 4px; max-width: 47%; color: var(--green-deep); text-decoration: none; }
.article-nav a:last-child { margin-left: auto; text-align: right; }
.article-nav small { color: #807968; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.article-nav strong { font-size: 14px; line-height: 1.3; }

.page-toc { margin-top: 62px; padding-left: 18px; border-left: 1px solid #d8cdb6; }
.page-toc__title { margin: 0 0 11px; color: #837a69; font: 700 11px/1.2 var(--sans); text-transform: uppercase; }
.page-toc a { display: block; margin: 9px 0; color: #657067; font: 500 14px/1.4 var(--sans); text-decoration: none; }
.page-toc a:hover { color: var(--green-deep); }

.site-footer { background: #eee6d5; }
.site-footer__inner { display: flex; width: min(1440px, calc(100% - 40px)); min-height: 86px; margin: 0 auto; align-items: center; justify-content: space-between; gap: 24px; color: #647067; font: 400 12px/1.5 var(--sans); }
.site-footer a { color: #526158; }

@media (max-width: 1120px) {
  .doc-shell { grid-template-columns: 210px minmax(0, 1fr); gap: 46px; }
  .page-toc { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header__inner, .doc-shell, .site-footer__inner { width: min(100% - 28px, 640px); }
  .site-header__inner { min-height: 62px; }
  .brand { grid-template-columns: 30px auto; grid-template-rows: auto; column-gap: 8px; align-items: center; }
  .brand::before { grid-row: 1; width: 30px; height: 30px; }
  .brand-sub, .site-header__links > a:not(.open-app) { display: none; }
  .site-header__links { gap: 0; }
  .site-header__links .open-app { padding: 9px 11px; font-size: 12px; }
  .doc-shell { display: block; }
  .doc-sidebar { position: static; padding: 24px 0 0; }
  .docs-menu { padding: 13px 14px; border-top: 1px solid #d8cdb6; border-bottom: 1px solid #d8cdb6; border-radius: 14px; background: rgba(250, 248, 241, .54); }
  .docs-menu summary { display: flex; align-items: center; justify-content: space-between; }
  .docs-menu summary::after { color: var(--green); content: "+"; font-size: 19px; }
  .docs-menu[open] summary { margin-bottom: 13px; }
  .docs-menu[open] summary::after { content: "−"; }
  .docs-menu__heading { display: none; }
  .docs-menu:not([open]) .docs-nav { display: none; }
  .doc-main { padding-top: 35px; }
  h1 { font-size: clamp(34px, 10vw, 47px); }
  h2 { margin-top: 42px; font-size: 24px; }
  .lead { font-size: 19px; }
  .start-grid, .feature-list { grid-template-columns: 1fr; }
  .feature-list { gap: 7px; }
  .feature-list > div { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .feature-list > div:last-child { border-bottom: 0; }
  .hero-image { margin-top: 26px; }
  .hero-image img { aspect-ratio: 16 / 10; }
  .site-footer__inner { padding: 21px 0; align-items: flex-start; flex-direction: column; gap: 7px; }
}
