/* Benzinchi Bola — huquqiy sahifalar (oferta, maxfiylik, akkauntni o'chirish). */
:root {
  --ink: #14161f;
  --muted: #5b5f72;
  --cream: #fffaf0;
  --paper: #ffffff;
  --yellow: #ffd23f;
  --orange: #ff7a1a;
  --line: #e9e2cf;
  --fill: #fff1a8;
  --fd: "Unbounded", system-ui, sans-serif;
  --fb: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f3f1ea;
    --muted: #b4b6c2;
    --cream: #12141b;
    --paper: #1b1e28;
    --line: #2c3040;
    --fill: #5a4a00;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.65 var(--fb); }
a { color: inherit; text-decoration-color: var(--orange); text-underline-offset: 3px; }

.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1120px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 15px var(--fd); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; }
.nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { font-weight: 700; font-size: 13.5px; padding: 7px 12px; border-radius: 99px; border: 2px solid transparent; text-decoration: none; }
.nav a[aria-current="page"] { border-color: var(--ink); background: var(--yellow); color: #14161f; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 28px 16px 80px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; }
.toc { position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 96px); overflow: auto; font-size: 14px; }
.toc b { display: block; font: 700 12px var(--fd); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc a { display: block; padding: 5px 0; text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--ink); }

main { min-width: 0; }
.doc-head { margin-bottom: 26px; }
.doc-head h1 { font: 800 clamp(26px, 4vw, 38px)/1.15 var(--fd); margin: 0 0 10px; letter-spacing: -0.02em; }
.meta { color: var(--muted); font-size: 14px; display: flex; gap: 8px 16px; flex-wrap: wrap; }
.draft { background: var(--fill); border: 2px dashed var(--ink); border-radius: 14px; padding: 12px 14px; margin: 0 0 22px; font-size: 14px; }
.key { background: var(--paper); border: 2.5px solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); padding: 16px 18px; margin: 18px 0 26px; }
.key h2 { margin-top: 0 !important; }

section { scroll-margin-top: 84px; }
h2 { font: 700 19px/1.3 var(--fd); margin: 36px 0 12px; padding-top: 6px; border-top: 1px solid var(--line); }
section:first-of-type h2 { border-top: 0; }
p { margin: 0 0 10px; }
ol.cl { list-style: none; padding: 0; margin: 0; counter-reset: none; }
ol.cl > li { position: relative; padding-left: 52px; margin: 0 0 10px; }
ol.cl > li > .n { position: absolute; left: 0; top: 0; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
ul { margin: 6px 0 10px; padding-left: 22px; }
li { margin: 3px 0; }
.fill { background: var(--fill); padding: 0 4px; border-radius: 4px; font-weight: 700; }
table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: 14.5px; }
th, td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { font-weight: 800; background: color-mix(in srgb, var(--yellow) 22%, transparent); }
.tbl { overflow-x: auto; }
.req td:first-child { color: var(--muted); width: 38%; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 12px 14px 12px 56px; margin: 0 0 10px; background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; }
.steps li::before { content: counter(s); position: absolute; left: 12px; top: 10px; width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); color: #14161f; display: grid; place-items: center; font: 800 15px var(--fd); border: 2px solid var(--ink); }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
footer .in { max-width: 1120px; margin: 0 auto; padding: 18px 16px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: space-between; }

@media (max-width: 860px) {
  .wrap { grid-template-columns: 1fr; gap: 0; padding-top: 18px; }
  .toc { position: static; max-height: none; background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; padding: 12px 14px; margin-bottom: 22px; }
  .toc a { padding: 4px 0; }
  ol.cl > li { padding-left: 44px; }
  .brand span { display: none; }
  /* Menyu bir qatorda qoladi (kerak bo'lsa yon tomonga suriladi) — sarlavhalarni yopmaydi */
  .nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: 6px 10px; font-size: 13px; }
}
@media print {
  .top, .toc, footer, .draft { display: none !important; }
  .wrap { display: block; padding: 0; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .key { box-shadow: none; }
}
