.doc-header {
  border-bottom: 1px solid var(--hairline);
  background: var(--bg);
}
.doc-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
  padding-top: 14px;
  padding-bottom: 14px;
}
.doc-header .logo {
  font-family: var(--font-logo);
  font-size: 26px;
  line-height: 1;
  color: var(--text);
}
.doc-header__back {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1.5px solid var(--accent-gold);
  padding-bottom: 2px;
  transition: color var(--dur);
}
.doc-header__back:hover { color: var(--text); }

.doc-header__inner--wide {
  max-width: var(--container-max);
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.doc-main { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }

.doc-col {
  max-width: 720px;
  margin: 0 auto;
}

.doc-eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}

.doc-title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--text);
}

.doc-body {
  margin-top: clamp(32px, 4vw, 48px);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-soft);
}
.doc-body > * + * { margin-top: 18px; }

.doc-intro {
  text-align: center;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-footnote);
}
.doc-intro strong { color: var(--text-soft); font-weight: 600; }
.doc-intro em { font-style: italic; }
.doc-intro + :not(.doc-intro) { margin-top: clamp(30px, 3.6vw, 42px); }

.doc-intro:has(+ :not(.doc-intro)) { padding-bottom: 18px; border-bottom: 1px solid var(--hairline); }

.doc-body h2 {
  margin-top: clamp(34px, 4vw, 48px);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--text);
}
.doc-body h3 {
  margin-top: 28px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}
.doc-body strong, .doc-body b { color: var(--text); font-weight: 600; }

.doc-body ul, .doc-body ol { padding-left: 22px; }
.doc-body ul { list-style: disc; }
.doc-body ol { list-style: decimal; }
.doc-body li { margin-bottom: 8px; }
.doc-body li::marker { color: var(--accent); }

.doc-body a {
  color: var(--accent);
  border-bottom: 1px solid var(--hairline-warm);
  transition: color var(--dur), border-color var(--dur);
}
.doc-body a:hover { color: var(--text); border-color: var(--accent); }

.doc-body hr {
  margin: clamp(34px, 4vw, 48px) 0;
  border: 0;
  border-top: 1px solid var(--hairline);
}

.doc-body .table-scroll { overflow-x: auto; }
.doc-body table {
  border-collapse: collapse;
  width: 100%;
  min-width: 480px;
  font-size: 14px;
}
.doc-body th, .doc-body td {
  padding: 10px 14px;
  border: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
}
.doc-body th { background: var(--card); color: var(--text); font-weight: 600; }

.doc-next {
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: clamp(28px, 3.4vw, 38px);
  border-top: 1px solid var(--hairline);
}

.nf {
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: clamp(48px, 8vw, 96px) 0;
}
.nf__inner { max-width: 620px; }
.nf__code {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(56px, 12vw, 116px);
  line-height: .92;
  letter-spacing: -.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
}
.nf__title {
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--text);
}
.nf__text {
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 460px;
}
.nf__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 767px) {
  .doc-header .logo { font-size: 23px; }
  .doc-body { font-size: 15px; }
  .nf__actions .btn { width: 100%; max-width: 340px; text-align: center; }
}

@media (max-width: 767px) {
  .doc-header .logo { font-size: 24px; }
  .doc-header__back { font-weight: 600; }

  .doc-eyebrow { font-size: 11px; letter-spacing: .16em; }
  .doc-title {
    margin-top: 14px;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: normal;
  }

  .doc-eyebrow { line-height: normal; }
  .doc-body { margin-top: 24px; color: var(--text); }
  .doc-body > * + * { margin-top: 16px; }
  .doc-body h2 { margin-top: 28px; font-weight: 500; line-height: 1.75; letter-spacing: normal; }

  .doc-body strong, .doc-body b { font-weight: 700; }

  .doc-body p.doc-intro { margin-bottom: 0; }
  .doc-body p.doc-intro + p.doc-intro { margin-top: 0; }
  .doc-body p.doc-intro:has(strong) + p.doc-intro:has(em) { margin-top: 18px; }
  .doc-body p.doc-intro + :not(.doc-intro) { margin-top: 16px; }

  .doc-body p.doc-intro:has(+ :not(.doc-intro)) { padding-bottom: 0; border-bottom: 0; }

  .doc-intro { font-size: 15px; line-height: 1.75; }

  .doc-intro strong { color: var(--text); }
  .doc-intro em { color: var(--text-soft); }

  .nf {
    justify-content: center;
    text-align: center;
    min-height: calc(100vh - 63px);
    min-height: calc(100dvh - 63px);
  }

  .nf__text { margin-inline: auto; }
  .nf__code {
    color: var(--accent-gold);
    -webkit-text-stroke: 0;
    font-size: 64px;
    line-height: 1;
    letter-spacing: normal;
  }
  .nf__title { font-weight: 500; line-height: 1.25; letter-spacing: normal; }
  .nf__text { margin-top: 14px; max-width: 300px; font-size: 14.5px; }
  .nf__actions {
    flex-direction: column;
    max-width: 300px;
    margin: 32px auto 0;
  }

  .nf__actions .btn {
    min-height: 0;
    padding: 16px;
    font-size: 14.5px;
    line-height: normal;
    letter-spacing: 0;
  }
  .nf__actions .btn--ghost { padding: 14.5px; }
}

.doc-lead {
  margin-top: 18px;
  max-width: 560px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-soft);
}

.doclist {
  display: grid;
  gap: 14px;
  margin-top: clamp(32px, 4vw, 44px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.doccard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(44, 36, 32, .06);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.doccard:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: 0 24px 56px rgba(44, 36, 32, .12);
}

.doccard__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: normal;
  color: var(--accent);
}
.doccard__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--text);
}
.doccard__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-soft);
}
.doccard__go {
  margin-top: auto;
  padding-top: 6px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: normal;
  color: var(--accent);
}
.doccard:hover .doccard__go { color: var(--text); }

.doc-ask {
  margin-top: clamp(36px, 4vw, 48px);
  font-size: 13.5px;
  line-height: normal;
  color: var(--text-footnote);
}
.doc-ask a {
  color: var(--accent);
  font-weight: 500;
  border-bottom: 1px solid var(--accent-gold);
  padding-bottom: 1px;
  transition: color var(--dur) var(--ease);
}
.doc-ask a:hover { color: var(--text); }

@media (max-width: 767px) {
  .doc-lead { margin-top: 14px; font-size: 14.5px; }
  .doclist { gap: 12px; margin-top: 24px; }
  .doccard { padding: 22px; border-radius: 18px; gap: 9px; }
  .doccard__title { font-size: 18px; font-weight: 500; line-height: 1.3; letter-spacing: normal; }
  .doccard__text { font-size: 13.5px; }
  .doccard__label { font-size: 10.5px; letter-spacing: .16em; }
}
