/* ===========================================================================
   Tomchi — tomchi.app
   ---------------------------------------------------------------------------
   Dizayn tizimi: "Javob varaqasi".
   Sahifa IELTS Speaking imtihonining o'z buyumlaridan quriladi — Part 2
   kartochkasi, baholash jadvali, imtihonchining chetga yozadigan hoshiyasi.
   Shuning uchun: burchaklar o'tkir, chiziqlar to'g'ri, raqamlar monoshirift,
   rang deyarli monoxrom. Build qadami yo'q — bitta CSS, uchta HTML.
   =========================================================================== */

/* --- Shriftlar ----------------------------------------------------------- */
/* O'zbek lotini lotin subsetiga to'liq sig'adi (diakritika yo'q, faqat '),
   shuning uchun latin-ext faqat asosiy matn shrifti uchun yuklanadi. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('fonts/archivo.woff2') format('woff2');
}
@font-face {
  font-family: 'Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/plex-sans.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/plex-sans-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/plex-mono.woff2') format('woff2');
}
@font-face {
  font-family: 'Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/plex-mono-600.woff2') format('woff2');
}

/* --- Tokenlar ------------------------------------------------------------ */

:root {
  /* Yorug': lyuminessent chiroq ostidagi imtihon qog'ozi */
  --sheet: #e9eef1;
  --card: #ffffff;
  --ink: #08171f;
  --ink-2: #4a6272;
  --ink-3: #7e939f;
  --rule: #c6d3da;
  --rule-2: #dde5ea;
  --blue: #1fa2e0;
  --blue-d: #0b5c8c;
  --blue-w: #d9edf9;
  --lift: 0 1px 0 rgba(8, 23, 31, 0.06), 0 18px 34px -26px rgba(8, 23, 31, 0.5);

  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --rail: 152px;
  --col: 720px;
  --pad: clamp(18px, 4vw, 40px);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Qorong'i: o'sha zal, kechqurun */
    --sheet: #0a141b;
    --card: #101e27;
    --ink: #e6eef3;
    --ink-2: #93a9b6;
    --ink-3: #66808e;
    --rule: #24353f;
    --rule-2: #18262f;
    --blue: #45b7ed;
    --blue-d: #1d8ac4;
    --blue-w: #0e2937;
    --lift: 0 1px 0 rgba(0, 0, 0, 0.5), 0 22px 44px -28px rgba(0, 0, 0, 0.9);
    color-scheme: dark;
  }
}

/* --- Asos ---------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  background: var(--sheet);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
::selection {
  background: var(--ink);
  color: var(--sheet);
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
[id] {
  scroll-margin-top: 76px;
}

/* --- Varaq: hoshiya + ustun ---------------------------------------------- */

.sheet {
  max-width: calc(var(--rail) + var(--col) + var(--pad) * 2 + 120px);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* Har bir blok chetdagi belgi va asosiy ustundan iborat — imtihonchining
   varaqasi shunday: chapda nima baholanayotgani, o'ngda javob. */
.row {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: 0 32px;
  align-items: start;
}
@media (max-width: 880px) {
  .row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.mark {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 5px;
}
.mark b {
  display: block;
  color: var(--blue-d);
  font-weight: 600;
}
@media (prefers-color-scheme: dark) {
  .mark b {
    color: var(--blue);
  }
}
@media (max-width: 880px) {
  .mark {
    padding-top: 0;
    display: flex;
    gap: 10px;
  }
  .mark b {
    display: inline;
  }
}

.col {
  max-width: var(--col);
}

/* Part chegarasi — qalin chiziq. Ichkaridagi ajratmalar ingichka. */
.part {
  padding-block: clamp(44px, 6vw, 80px);
  border-top: 2px solid var(--ink);
}
.part-soft {
  padding-block: clamp(34px, 5vw, 56px);
  border-top: 1px solid var(--rule);
}

/* --- Tipografiya --------------------------------------------------------- */

.d1,
.d2,
.d3 {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -0.022em;
  line-height: 0.98;
  text-wrap: balance;
}
.d1 {
  font-size: clamp(34px, 4.6vw, 54px);
}
.d2 {
  font-size: clamp(28px, 3.8vw, 42px);
}
.d3 {
  font-size: clamp(21px, 2.4vw, 26px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.lede {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.58;
  color: var(--ink-2);
  max-width: 58ch;
}
.body-txt {
  color: var(--ink-2);
  max-width: 62ch;
}
.body-txt + .body-txt {
  margin-top: 14px;
}
.body-txt strong {
  color: var(--ink);
  font-weight: 600;
}
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* --- Tugmalar: shtamp kabi, o'tkir ---------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding-inline: 24px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--sheet);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s linear, color 0.15s linear;
}
.btn:hover {
  background: transparent;
  color: var(--ink);
}
.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-line:hover {
  background: var(--ink);
  color: var(--sheet);
  border-color: var(--ink);
}
.btn-sm {
  height: 38px;
  padding-inline: 15px;
  font-size: 14px;
  border-width: 1px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- Sarlavha: hujjat kolontituli ---------------------------------------- */

.slug {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--sheet);
  border-bottom: 1px solid var(--rule);
}
.slug-in {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 60px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 112%;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.wordmark img {
  width: 22px;
  height: 22px;
}
.slug-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: auto;
  padding-left: 14px;
  border-left: 1px solid var(--rule);
  align-self: stretch;
  display: flex;
  align-items: center;
}
@media (max-width: 700px) {
  .slug-meta {
    display: none;
  }
  .wordmark {
    margin-right: auto;
  }
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(30px, 5vw, 56px) clamp(46px, 7vw, 76px);
}
/* Javob daftarining chiziqlari — juda xira, faqat hero ortida */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 33px,
    color-mix(in srgb, var(--ink) 5%, transparent) 33px 34px
  );
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
}
.hero > * {
  position: relative;
}

.hero-over {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.hero-over span {
  color: var(--ink-3);
}

/* Part 2 kartochkasi — sahifaning bosh buyumi */
.cue {
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
  border-radius: 2px;
  box-shadow: var(--lift);
  padding: clamp(20px, 3vw, 28px);
  max-width: 470px;
}
.cue-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cue-task {
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.32;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin-top: 18px;
}
.cue-say {
  margin-top: 16px;
  font-size: 15px;
  color: var(--ink-2);
}
.cue-list {
  list-style: none;
  padding: 0;
  margin-top: 8px;
  font-size: 16px;
  color: var(--ink);
}
.cue-list li {
  padding: 5px 0 5px 22px;
  position: relative;
}
.cue-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  width: 12px;
  height: 1px;
  background: var(--ink-3);
}
.cue-close {
  margin-top: 12px;
  font-size: 16px;
}
.cue-foot {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-2);
  display: flex;
  gap: 22px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.cue-foot b {
  color: var(--ink);
  font-weight: 600;
}
/* Ikki daqiqa — kartochka ostidan o'tuvchi yagona chiziq */
.tape {
  max-width: 470px;
  height: 3px;
  background: var(--rule-2);
  margin-top: 0;
  overflow: hidden;
}
.tape i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--blue);
  transform-origin: left;
  animation: tape 2.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both;
}
@keyframes tape {
  from {
    transform: scaleX(0);
  }
}

.hero-say {
  margin-top: clamp(30px, 4vw, 46px);
}
.hero-say .d1 {
  max-width: 17ch;
}
.hero-say .lede {
  margin-top: 20px;
}
.hero-say .actions {
  margin-top: 28px;
}
.hero-fine {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-3);
}

/* Keng ekranda kartochka va gap yonma-yon turadi, lekin teng emas */
@media (min-width: 1040px) {
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 470px) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }
  .hero-say {
    margin-top: 0;
    padding-top: 4px;
  }
  .col.hero-col {
    max-width: none;
  }
}

/* --- Transkript va tuzatish ---------------------------------------------- */

.script {
  border-left: 2px solid var(--rule);
  padding-left: 20px;
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 58ch;
}
.line-who {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 3px;
}
.line-txt {
  font-size: 18px;
  line-height: 1.5;
}
.strike {
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.fixed {
  border-bottom: 2px solid var(--blue);
  padding-bottom: 1px;
  font-weight: 600;
}
.reveal {
  opacity: 0;
  transition: opacity 0.5s ease 0.15s;
}
.is-on .reveal {
  opacity: 1;
}

/* --- Ro'yxat: chetda yorliq, o'ngda izoh ---------------------------------- */

.steps {
  display: flex;
  flex-direction: column;
}
.stepline {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--rule-2);
}
.stepline:first-child {
  border-top: 0;
  padding-top: 4px;
}
.stepline dt {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  padding-top: 4px;
}
.stepline dd {
  margin: 0;
  color: var(--ink-2);
}
@media (max-width: 640px) {
  .stepline {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* --- Ikki yo'nalish ------------------------------------------------------- */

.tracks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--card);
  overflow: hidden;
}
@media (max-width: 760px) {
  .tracks {
    grid-template-columns: 1fr;
  }
}
.track {
  padding: 24px;
}
.track + .track {
  border-left: 1px solid var(--rule);
}
@media (max-width: 760px) {
  .track + .track {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
}
.track-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--rule-2);
}
.track p {
  color: var(--ink-2);
  font-size: 16px;
}
.track ul {
  list-style: none;
  padding: 0;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 15px;
}
.track li {
  padding-left: 18px;
  position: relative;
  color: var(--ink-2);
}
.track li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 1px;
  background: var(--blue);
}

/* --- Baholash: jadval + ulkan raqam --------------------------------------- */

.marking {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 208px;
  gap: 36px;
  align-items: start;
}
@media (max-width: 780px) {
  .marking {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.grid-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.grid-tbl th {
  text-align: left;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0 0 10px;
  border-bottom: 1px solid var(--ink);
}
.grid-tbl td {
  padding: 13px 0;
  border-bottom: 1px solid var(--rule-2);
  vertical-align: middle;
}
.grid-tbl .num {
  text-align: right;
  font-family: var(--mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  width: 62px;
}
.meter {
  display: block;
  height: 4px;
  background: var(--rule-2);
  width: 100%;
  min-width: 70px;
}
.meter i {
  display: block;
  height: 100%;
  background: var(--blue);
}
.grid-tbl .cell-meter {
  width: 36%;
  padding-left: 18px;
}

.overall {
  border: 1px solid var(--rule);
  border-top: 3px solid var(--blue);
  background: var(--card);
  border-radius: 2px;
  padding: 20px;
  text-align: center;
}
.overall .big {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 76px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  display: block;
  margin-block: 8px 6px;
}
.overall .ov-note {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
}

/* --- To'lov jadvali ------------------------------------------------------- */

.fees {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.fees th {
  text-align: left;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0 0 10px;
  border-bottom: 1px solid var(--ink);
}
.fees td {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-2);
  vertical-align: baseline;
}
.fees .plan {
  font-weight: 600;
  white-space: nowrap;
}
.fees .plan em {
  display: block;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  color: var(--ink-3);
  margin-top: 2px;
}
.fees .what {
  color: var(--ink-2);
  font-size: 15px;
  padding-left: 20px;
}
.fees .price {
  text-align: right;
  font-family: var(--mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-left: 16px;
}
.fees .price s {
  display: block;
  font-family: var(--body);
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-3);
  text-decoration: none;
  margin-top: 2px;
}
.fees tr.is-pick td {
  background: var(--blue-w);
}
.fees tr.is-pick .plan::before {
  content: '▸ ';
  color: var(--blue-d);
}
@media (max-width: 620px) {
  .fees .what {
    display: none;
  }
}

.fee-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-2);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}
.chip {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  border: 1px solid var(--rule);
  padding: 3px 8px;
  color: var(--ink-2);
}

/* --- Savol-javob ---------------------------------------------------------- */

.qa {
  display: flex;
  flex-direction: column;
}
.qa-item {
  padding: 20px 0;
  border-top: 1px solid var(--rule-2);
}
.qa-item:first-child {
  border-top: 0;
  padding-top: 2px;
}
.qa-q {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 7px;
}
.qa-q::before {
  content: 'S. ';
  font-family: var(--mono);
  color: var(--blue-d);
  font-weight: 600;
}
.qa-a {
  color: var(--ink-2);
  max-width: 64ch;
}
.qa-a::before {
  content: 'J. ';
  font-family: var(--mono);
  color: var(--ink-3);
  font-weight: 600;
}
@media (prefers-color-scheme: dark) {
  .qa-q::before {
    color: var(--blue);
  }
}

/* --- Yakuniy chaqiruv ----------------------------------------------------- */

.end {
  padding-block: clamp(52px, 8vw, 96px);
  border-top: 2px solid var(--ink);
}
.end .d2 {
  max-width: 18ch;
}
.end .actions {
  margin-top: 26px;
}

/* --- Kolontitul: havolalar ------------------------------------------------ */

.foot {
  border-top: 2px solid var(--ink);
  padding-block: 40px 32px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 15px;
}
.foot-links a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.foot-links a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.foot-end {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: space-between;
}

/* To'ldirilmagan rekvizit jimgina chiqib ketmasin */
.todo {
  background: var(--blue-w);
  border-bottom: 1px dashed var(--blue-d);
  padding: 0 4px;
  font-family: var(--mono);
  font-size: 0.88em;
}

/* --- Mobil pastki tugma --------------------------------------------------- */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: none;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: var(--sheet);
  border-top: 1px solid var(--rule);
}
.dock .btn {
  width: 100%;
}
@media (max-width: 600px) {
  .dock {
    display: block;
  }
  body {
    padding-bottom: 80px;
  }
}

/* ===========================================================================
   Huquqiy hujjatlar — o'sha varaq, faqat matn zichroq
   =========================================================================== */

.doc-top {
  padding-block: clamp(28px, 5vw, 48px) clamp(22px, 3vw, 34px);
}
.doc-top .d1 {
  font-size: clamp(30px, 4.4vw, 50px);
}
.doc-id {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px 24px;
  border-top: 1px solid var(--rule);
  padding-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.doc-id b {
  display: block;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.doc-wrap {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: 0 32px;
  align-items: start;
  padding-bottom: clamp(48px, 7vw, 84px);
  border-top: 2px solid var(--ink);
  padding-top: clamp(24px, 3vw, 36px);
}
@media (max-width: 880px) {
  .doc-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.doc-nav {
  position: sticky;
  top: 78px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
}
.doc-nav ol {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.doc-nav a {
  color: var(--ink-3);
  text-decoration: none;
}
.doc-nav a:hover {
  color: var(--ink);
}
@media (max-width: 880px) {
  .doc-nav {
    position: static;
    border: 1px solid var(--rule);
    padding: 16px 18px;
    background: var(--card);
  }
  .doc-nav ol {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

.doc-body {
  max-width: 68ch;
}
.doc-body section {
  padding-block: 24px;
  border-top: 1px solid var(--rule-2);
}
.doc-body section:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.doc-body h2 {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 108%;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.doc-body h2 .sn {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  flex: none;
  letter-spacing: 0;
}
.doc-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
}
.doc-body p {
  margin-bottom: 12px;
  color: var(--ink-2);
}
.doc-body p strong,
.doc-body li strong {
  color: var(--ink);
  font-weight: 600;
}
.doc-body ul,
.doc-body ol {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--ink-2);
}
.doc-body li {
  margin-bottom: 8px;
}
.doc-body li::marker {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 0.85em;
}
.doc-body a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--blue);
}
.doc-body a:hover {
  background: var(--blue-w);
}
.doc-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin-bottom: 14px;
}
.doc-body th,
.doc-body td {
  text-align: left;
  padding: 11px 12px 11px 0;
  border-bottom: 1px solid var(--rule-2);
  vertical-align: top;
}
.doc-body thead th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom-color: var(--ink);
}
.doc-body tbody th {
  font-weight: 600;
  color: var(--ink);
  width: 34%;
}
.doc-body td {
  color: var(--ink-2);
}
.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.note {
  border-left: 3px solid var(--blue);
  background: var(--card);
  padding: 15px 18px;
  margin: 18px 0;
  font-size: 15px;
}
.note p:last-child {
  margin-bottom: 0;
}
