@import url("base.css");

.doc {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 24px 64px;
}

/* Header */

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.brand-row a {
  display: block;
  transition: opacity 0.15s ease;
}

.brand-row a:hover {
  opacity: 0.8;
}

.brand-mark-img {
  height: 115px;
  width: auto;
  display: block;
}

.doc-nav {
  display: flex;
  gap: 4px;
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 36px;
  width: fit-content;
  /* The full document names (added after this nav shipped with short
     abbreviations) don't reliably fit narrow viewports on one line - scroll
     the pill itself sideways instead of blowing out the whole page. */
  max-width: 100%;
  overflow-x: auto;
}

.doc-nav a {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.doc-nav a:hover {
  color: var(--ink);
}

.doc-nav a.active {
  background: var(--ink);
  color: #fff;
}

header h1 {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.meta {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 32px;
}

.intro {
  font-size: 1.05rem;
  color: var(--ink-muted);
  margin-bottom: 8px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

/* Body */

h2,
h3 {
  position: relative;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 40px 0 12px;
  padding-left: 14px;
}

h2::before,
h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  border-radius: 999px;
  background: var(--red);
}

/* A part divider (e.g. "Part 1: The App") - one level above the h2/h3
   numbered sections it groups, so the two are easy to tell apart at a
   glance. */
.part-header {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 48px 0 4px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}

.part-header:first-of-type {
  margin-top: 40px;
  padding-top: 0;
  border-top: none;
}

.part-header::before {
  display: none;
}

.part-intro {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin: 0 0 8px;
}

p {
  margin: 0 0 16px;
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.75;
}

ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

li {
  margin-bottom: 8px;
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.75;
}

li::marker {
  color: var(--eye);
}

li strong,
p strong {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 640px) {
  .doc {
    padding: 40px 20px 48px;
  }
  header h1 {
    font-size: 1.7rem;
  }
}
