/* ============================================================
   DOCUMENTS
   ============================================================ */
.docs-page {
  background:
    radial-gradient(45% 30% at 90% 0%, rgba(200, 250, 75, 0.16), transparent 70%),
    #f3f5ed;
}

.docs-shell {
  padding: 48px 0 70px;
}

.docs-heading {
  max-width: 680px;
  margin-bottom: 28px;
}

.docs-heading h1 {
  margin-top: 16px;
  font-family: var(--font);
  font-size: clamp(44px, 5.6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.docs-heading p {
  max-width: 540px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.docs-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 900px;
  margin-bottom: 38px;
  padding: 16px 18px;
  color: #72531e;
  background: #fff7e7;
  border: 1px solid #f0dfbc;
  border-radius: 14px;
}

.docs-notice .icon {
  width: 21px;
  height: 21px;
  flex: none;
  margin-top: 1px;
  color: #c78322;
}

.docs-notice p {
  font-size: 11.5px;
  line-height: 1.55;
}

.docs-notice strong {
  color: #5b3f12;
}

.docs-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: 42px;
}

.docs-nav {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  padding-left: 14px;
  border-left: 1.5px solid #dfe4da;
}

.docs-nav > span {
  margin-bottom: 10px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.docs-nav a[data-doc] {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
}

.docs-nav a[data-doc]::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -16px;
  width: 2px;
  height: 0;
  background: var(--ink);
  border-radius: 2px;
  transform: translateY(-50%);
  transition: height 160ms ease;
}

.docs-nav a[data-doc]:hover,
.docs-nav a[data-doc].is-active {
  color: var(--ink);
}

.docs-nav a[data-doc].is-active::before {
  height: 18px;
}

.docs-nav__note {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 28px;
  padding: 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.docs-nav__note strong {
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 10px;
}

.docs-nav__note a {
  color: var(--muted);
  font-size: 9.5px;
}

.docs-nav__note a:hover {
  color: var(--ink);
}

.docs-content {
  padding: 42px 46px;
  background: #fff;
  border: 1px solid #e6eadf;
  border-radius: 28px;
  box-shadow: 0 15px 50px rgba(8, 43, 30, 0.05);
}

.doc-section {
  padding-bottom: 38px;
  margin-bottom: 38px;
  border-bottom: 1px solid #eaede5;
  scroll-margin-top: 105px;
}

.doc-section:last-of-type {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.doc-section__kicker {
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.doc-section h2 {
  margin-top: 8px;
  font-family: var(--font);
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.doc-section h3 {
  margin-top: 26px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.doc-section p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.68;
}

.doc-section p a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.doc-lead {
  padding: 14px 16px;
  color: var(--ink-soft) !important;
  background: #f7f9f2;
  border-left: 3px solid var(--lime-strong);
  border-radius: 0 8px 8px 0;
  font-size: 13px !important;
}

.doc-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 13px;
}

.doc-list li {
  position: relative;
  padding-left: 17px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.doc-list li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 2px;
  width: 5px;
  height: 5px;
  background: var(--lime-strong);
  border-radius: 50%;
}

.doc-table {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #e8ece3;
  border-radius: 13px;
}

.doc-table div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 14px;
  border-bottom: 1px solid #edf0e8;
  font-size: 11.5px;
}

.doc-table div:last-child {
  border-bottom: 0;
}

.doc-table span {
  color: var(--muted);
}

.doc-table strong {
  color: var(--ink);
  font-weight: 700;
  text-align: right;
}

.doc-warning {
  margin-top: 24px;
  padding: 14px 16px;
  color: #814a38;
  background: #fff2ed;
  border: 1px solid #f4d4c9;
  border-radius: 11px;
  font-size: 11.5px;
  line-height: 1.55;
}

.doc-warning strong {
  color: #6e3321;
}

.docs-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid #eaede5;
  color: var(--muted-2);
  font-size: 9.5px;
}

.docs-meta button {
  padding: 7px 11px;
  color: var(--ink-soft);
  background: #f7f8f2;
  border: 1px solid #e0e5da;
  border-radius: 7px;
  font-size: 9.5px;
  font-weight: 600;
}

.docs-meta button:hover {
  background: var(--lime-soft);
  border-color: #d9e9b7;
}

@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; gap: 20px; }
  .docs-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding-left: 0;
    border-left: 0;
  }
  .docs-nav > span { width: 100%; margin-bottom: 0; }
  .docs-nav a[data-doc] {
    padding: 6px 10px;
    background: #fff;
    border: 1px solid #e3e7dd;
    border-radius: 999px;
    font-size: 10px;
  }
  .docs-nav a[data-doc]::before { display: none; }
  .docs-nav a[data-doc].is-active {
    background: var(--lime);
    border-color: var(--lime);
  }
  .docs-nav__note { display: none; }
  .docs-content { padding: 30px 24px; border-radius: 22px; }
}

@media (max-width: 560px) {
  .docs-shell { padding: 30px 0 50px; }
  .docs-heading h1 { font-size: 42px; }
  .docs-heading p { font-size: 13.5px; }
  .docs-notice { padding: 13px; }
  .docs-content { padding: 24px 18px; }
  .doc-section { padding-bottom: 28px; margin-bottom: 28px; }
  .doc-section h2 { font-size: 28px; }
  .doc-table div { flex-direction: column; gap: 2px; }
  .doc-table strong { text-align: left; }
  .docs-meta { flex-direction: column; align-items: flex-start; }
}

@media print {
  .app-header, .docs-nav, .app-footer, .docs-notice, .docs-meta button { display: none !important; }
  .docs-page { background: #fff; }
  .docs-shell { padding: 0; }
  .docs-layout { display: block; }
  .docs-content { padding: 0; border: 0; box-shadow: none; }
  .docs-heading { margin-bottom: 20px; }
  .doc-section { break-inside: avoid-page; }
}
