/* Valorant Hub — docs */
.docs-hero { padding: 80px 0 56px; }
.docs-search { position: relative; max-width: 520px; margin-top: 26px; }
.docs-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-3); }
.docs-search .input { padding-left: 42px; height: 50px; font-size: 16px; background: rgba(11,14,20,.85); }

.docs-layout { display: grid; grid-template-columns: 250px 1fr; gap: 48px; padding: 24px 0 90px; align-items: start; }
.docs-side { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 6px; }
.docs-group { font-family: var(--font-display); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin: 20px 0 8px; }
.docs-group:first-child { margin-top: 0; }
.docs-side a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--text-2); font-size: 14.5px; border-left: 2px solid transparent; }
.docs-side a:hover { color: var(--text); background: var(--surface); }
.docs-side a[aria-current='page'] { color: #ffc2c6; background: var(--accent-soft); border-left-color: var(--accent); }
.docs-count { font-size: 13px; color: var(--text-3); margin-bottom: 8px; }
.docs-empty { color: var(--text-3); font-size: 14px; }

.docs-main { min-width: 0; scroll-margin-top: 90px; }
.docs-article { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 40px 44px; }
.docs-crumb { font-size: 13px; color: var(--accent); font-weight: 600; letter-spacing: .04em; }
.docs-article h2 { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 38px); margin: 6px 0 22px; line-height: 1.15; }
.docs-body { color: var(--text-2); font-size: 16px; line-height: 1.75; }
.docs-body p { margin: 0 0 16px; }
.docs-body h4 { color: var(--text); font-size: 17px; margin: 28px 0 8px; }
.docs-body b, .docs-body strong { color: var(--text); }
.docs-body a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.docs-body code { color: var(--teal); background: rgba(47,224,196,.08); border: 1px solid rgba(47,224,196,.18); padding: 1px 6px; border-radius: 6px; font-size: 14px; white-space: nowrap; }
.docs-body ul { padding-left: 20px; margin: 0 0 16px; }
.docs-body li { margin: 6px 0; }
.docs-body table { width: 100%; border-collapse: collapse; margin: 10px 0 20px; font-size: 14.5px; background: var(--bg-2); border-radius: 12px; overflow: hidden; }
.docs-body th, .docs-body td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.docs-body th { color: var(--text-3); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; background: var(--surface-2); }
.docs-body td:first-child { color: var(--text); font-weight: 500; }
.docs-body mark { background: rgba(251,191,36,.3); color: var(--text); border-radius: 3px; padding: 0 2px; }

ol.dsteps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 18px; }
ol.dsteps > li { counter-increment: s; position: relative; padding: 2px 0 16px 48px; }
ol.dsteps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(255,77,90,.3); }
ol.dsteps > li::after { content: ''; position: absolute; left: 15px; top: 36px; bottom: 4px; width: 2px; background: var(--line-soft); }
ol.dsteps > li:last-child::after { display: none; }
ol.dsteps table { margin-top: 12px; }

.callout { border: 1px solid rgba(47,224,196,.3); background: var(--teal-soft); color: #c9f7ef; padding: 14px 16px; border-radius: 12px; margin: 18px 0; font-size: 15px; }
.callout.warn { border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.08); color: #fde68a; }
.callout a { color: inherit; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.tile { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 12px; padding: 18px; }
.tile h4 { margin: 0 0 6px; font-size: 16px; }
.tile p { margin: 0; font-size: 14.5px; }

.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.pager { display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.pager:hover { border-color: #3a4a64; }
.pager span { font-size: 13px; color: var(--text-3); }
.pager b { color: var(--text); }
.pager.next { text-align: right; grid-column: 2; }

@media (max-width: 960px) {
  .docs-layout { grid-template-columns: 1fr; gap: 20px; }
  .docs-side { position: static; max-height: none; display: flex; flex-wrap: wrap; gap: 6px; }
  .docs-side .docs-group { width: 100%; margin: 12px 0 2px; }
  .docs-side a { border: 1px solid var(--line); border-left-width: 1px; padding: 6px 10px; font-size: 13.5px; }
  .docs-article { padding: 28px 22px; }
  .grid2 { grid-template-columns: 1fr; }
}
