main.doc {
  padding: 32px 0 40px;
}

.doc .container {
  width: 100%;
}

.doc h1 {
  font-size: clamp(1.8rem, 3.8vw, 2.2rem);
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--textColor);
  letter-spacing: -0.01em;
}

.doc h2 {
  font-size: clamp(18px, 2.6vw, 20px);
  margin: 28px 0 12px;
  line-height: 1.35;
  color: var(--textColor);
  border-left: 4px solid var(--black);
  padding-left: 12px;
}

.doc h3 {
  font-size: 1.02rem;
  margin: 20px 0 8px;
  line-height: 1.4;
  color: var(--textColor);
}

.doc p {
  margin: 0.6em 0;
  color: var(--textColor);
}

.doc p + ul,
.doc p + ol {
  margin-top: 0.2em;
}

.doc ul,
.doc ol {
  padding-left: 1.2em;
  margin: 0.4em 0 0.9em;
}

.doc ul li {
  margin: 0.2em 0;
}

.doc ul li::marker {
  color: var(--black);
  content: "• ";
}

.doc a {
  font-weight: 600;
}

.backlink {
  margin-top: 32px;
}

.backlink a {
  display: inline-block;
  font-weight: 800;
}

.doc strong {
  font-weight: 800;
  color: var(--textColor);
}

.doc em {
  font-style: italic;
}

.doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #f4f5f7;
  padding: 2px 6px;
  border-radius: 6px;
}

.doc hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.doc th,
.doc td {
  border: 1px solid var(--border);
  padding: 10px;
  vertical-align: top;
}

.doc th {
  background: #fafafa;
  text-align: left;
}

/* Alerts (optional utility) */
.note,
.warning {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 12px 0;
  background: var(--white);
}

.warning {
  border-color: var(--textColor);
}

.hidden {
  display: none !important;
}

@media (min-width: 360px) {
  .hide-sm {
    display: inline;
  }
}

@media print {
  .site-header,
  .site-footer {
    display: none !important;
  }

  .doc .container {
    max-width: none;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.9em;
  }
}

.top-header {
  background-color: #f6f6f6;
  padding-top: 80px;
}

.top-header__wrap {
  margin: 0 auto;
  padding-bottom: 10px;
}

.top-header__heading {
  margin: 0;
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--textColor);
}

.top-header__subtitle {
  margin: 0.3rem 0 0.5rem;
  color: var(--textColor);
  font-size: 14px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.breadcrumb__list {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.breadcrumb__item {
  color: var(--textColor);
}

.breadcrumb__item a {
  color: inherit;
  text-decoration: none;
}

.breadcrumb__item a:hover {
  text-decoration: underline;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  margin-right: 0.5rem;
  opacity: 0.6;
}
