@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --ink: #071b34;
  --black: #050505;
  --paper: #f5f7fa;
  --white: #fff;
  --line: #d9e0e9;
  --muted: #667386;
  --blue: #2f67f2;
  --sky: #83b8f2;
  --soft-blue: #e9f2ff;
  --acid: #d9ff6f;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }

.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 99; padding: .8rem 1rem; background: white; color: black; transform: translateY(-180%); }
.skip-link:focus { transform: none; }

.docs-topbar { position: sticky; top: 0; z-index: 20; display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 2rem; padding: 0 var(--gutter); border-bottom: 1px solid #242424; background: rgba(5,5,5,.96); color: white; backdrop-filter: blur(16px); }
.docs-brand { display: flex; min-width: 0; align-items: center; gap: 1rem; }
.docs-brand img { width: 48px; height: 46px; object-fit: contain; object-position: bottom; }
.docs-brand .avnt-wordmark { width: 76px; height: 34px; }
.docs-brand i { padding-left: 1rem; border-left: 1px solid #444; color: #8e99a8; font-size: .78rem; font-style: normal; text-transform: uppercase; letter-spacing: .18em; }
.docs-topbar nav { display: flex; align-items: center; gap: 1.6rem; color: #a7a7a7; font-size: .69rem; text-transform: uppercase; letter-spacing: .12em; }
.docs-topbar nav a:hover { color: white; }
.topbar-button { display: inline-flex; align-items: center; gap: 1rem; padding: .75rem 1rem; border: 1px solid #555; color: white; }
.topbar-button:hover { border-color: var(--sky); background: var(--sky); color: var(--ink) !important; }

.docs-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.docs-rail { position: sticky; top: 76px; height: calc(100vh - 76px); padding: 2.5rem 1.4rem 1.5rem var(--gutter); border-right: 1px solid var(--line); background: #edf1f6; overflow: auto; }
.rail-label { margin: 0 0 1.2rem; color: #8994a3; font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; }
.docs-rail nav { display: grid; gap: .25rem; }
.docs-rail nav a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .78rem .85rem; border-radius: 9px; color: #596577; font-size: .84rem; transition: background 160ms, color 160ms, transform 160ms; }
.docs-rail nav a span { color: #9ba5b3; font-size: .62rem; letter-spacing: .12em; }
.docs-rail nav a:hover { color: var(--ink); transform: translateX(2px); }
.docs-rail nav a.active { background: var(--ink); color: white; }
.docs-rail nav a.active span { color: var(--sky); }
.rail-help { margin-top: 2.5rem; padding: 1.1rem; border: 1px solid #cbd4df; border-radius: 12px; background: rgba(255,255,255,.55); }
.rail-help span { color: var(--ink); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.rail-help p { margin: .65rem 0 1rem; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.rail-help a { color: var(--blue); font-size: .72rem; font-weight: 700; }

#docs-content { min-width: 0; }
.docs-hero { position: relative; min-height: 570px; padding: clamp(4rem, 8vw, 8rem) var(--gutter) 4rem; background: var(--black); color: white; overflow: hidden; }
.docs-hero::before { position: absolute; top: -22rem; right: -16rem; width: 54rem; height: 54rem; border: 1px solid rgba(131,184,242,.18); border-radius: 50%; content: ""; box-shadow: 0 0 0 8rem rgba(47,103,242,.035), 0 0 0 16rem rgba(47,103,242,.025); }
.docs-hero::after { position: absolute; right: 6%; bottom: 0; width: 27%; height: 9px; background: linear-gradient(90deg, var(--sky), var(--blue)); content: ""; }
.hero-copy, .search-wrap, .search-results { position: relative; z-index: 1; }
.hero-copy { max-width: 950px; }
.eyebrow { margin: 0 0 1.4rem; color: var(--sky); font-size: .69rem; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; }
.eyebrow span { display: inline-block; width: 7px; height: 7px; margin-right: .55rem; border-radius: 50%; background: var(--acid); }
.docs-hero h1 { margin: 0; font-size: clamp(3.6rem, 8vw, 8.8rem); font-weight: 500; line-height: .88; letter-spacing: -.075em; }
.docs-hero h1 em { color: var(--sky); font-style: normal; }
.hero-copy > p:last-child { max-width: 680px; margin: 2rem 0 0; color: #9299a4; font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.65; }
.search-wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; max-width: 780px; margin-top: 3rem; border: 1px solid #454a52; border-radius: 14px; background: #111318; transition: border-color 160ms, box-shadow 160ms; }
.search-wrap:focus-within { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(131,184,242,.12); }
.search-wrap label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.search-wrap > span { padding-left: 1.2rem; color: var(--sky); font-size: 1.8rem; line-height: 1; }
.search-wrap input { width: 100%; border: 0; outline: 0; padding: 1.15rem 1rem; background: transparent; color: white; font-size: 1rem; }
.search-wrap input::placeholder { color: #747b86; }
.search-wrap kbd { margin-right: .9rem; padding: .28rem .5rem; border: 1px solid #434852; border-radius: 6px; color: #89909b; font-family: inherit; font-size: .72rem; }
#search-status { position: absolute; top: calc(100% + .6rem); left: 0; margin: 0; color: #8d96a3; font-size: .72rem; }
.search-results { display: grid; max-width: 780px; max-height: 330px; margin-top: 1.2rem; border: 1px solid #30343b; border-radius: 14px; background: #111318; overflow: auto; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.search-results a { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; padding: 1rem 1.1rem; border-bottom: 1px solid #272a30; }
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover { background: #181b21; }
.search-results strong { font-size: .9rem; }
.search-results span { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--sky); }
.search-results small { color: #7d8490; }
.search-empty { padding: 1.2rem; color: #858d99; font-size: .85rem; }

.intent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-bottom: 1px solid var(--line); background: var(--line); }
.intent-grid a { min-height: 245px; padding: clamp(1.5rem, 3vw, 2.7rem); background: white; transition: background 180ms, color 180ms; }
.intent-grid a:hover { background: var(--ink); color: white; }
.intent-grid a > span { color: var(--blue); font-size: .64rem; font-weight: 700; letter-spacing: .14em; }
.intent-grid strong { display: block; margin-top: 2.7rem; font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 600; letter-spacing: -.035em; }
.intent-grid p { margin: .65rem 0 1.6rem; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.intent-grid a:hover p { color: #aab3bf; }
.intent-grid b { color: var(--blue); font-size: .74rem; }
.intent-grid a:hover b { color: var(--sky); }

.doc-section { padding: clamp(4.5rem, 8vw, 8rem) var(--gutter); border-bottom: 1px solid var(--line); }
.doc-section:nth-of-type(even) { background: #f0f4f8; }
.section-heading { display: grid; grid-template-columns: 66px 1fr; max-width: 980px; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-heading > span { padding-top: .55rem; color: var(--blue); font-size: .67rem; font-weight: 700; letter-spacing: .16em; }
.section-heading p { margin: 0 0 .8rem; color: var(--muted); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; }
.section-heading h2 { margin: 0; font-size: clamp(2.7rem, 5vw, 5.7rem); font-weight: 500; line-height: .95; letter-spacing: -.065em; }

.doc-article { max-width: 1050px; border-top: 1px solid #cbd4df; }
.doc-article:last-of-type { border-bottom: 1px solid #cbd4df; }
.doc-article summary { display: grid; grid-template-columns: 66px minmax(0, 1fr) 42px; align-items: center; min-height: 116px; cursor: pointer; list-style: none; }
.doc-article summary::-webkit-details-marker { display: none; }
.doc-article summary > span { color: #909cac; font-size: .64rem; font-weight: 700; letter-spacing: .13em; }
.doc-article summary strong { font-size: clamp(1.05rem, 1.7vw, 1.35rem); font-weight: 600; letter-spacing: -.025em; }
.doc-article summary p { margin: .35rem 0 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.doc-article summary i { position: relative; width: 36px; height: 36px; border: 1px solid #c7d0db; border-radius: 50%; }
.doc-article summary i::before, .doc-article summary i::after { position: absolute; top: 50%; left: 50%; width: 12px; height: 1px; background: var(--ink); content: ""; transform: translate(-50%,-50%); transition: transform 180ms; }
.doc-article summary i::after { transform: translate(-50%,-50%) rotate(90deg); }
.doc-article[open] summary i { border-color: var(--blue); background: var(--blue); }
.doc-article[open] summary i::before, .doc-article[open] summary i::after { background: white; }
.doc-article[open] summary i::after { transform: translate(-50%,-50%) rotate(0); }
.doc-article[open] summary strong { color: var(--blue); }
.article-body { margin-left: 66px; padding: .2rem 66px 3.2rem 0; color: #34445a; }
.article-body > p { max-width: 760px; font-size: .96rem; line-height: 1.75; }
.article-body ol { max-width: 800px; margin: .5rem 0 0; padding: 0; list-style: none; counter-reset: steps; }
.article-body ol li { position: relative; min-height: 42px; margin: 0 0 .9rem; padding: .25rem 0 0 3.1rem; font-size: .94rem; line-height: 1.65; counter-increment: steps; }
.article-body ol li::before { position: absolute; top: 0; left: 0; display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; background: var(--ink); color: white; content: counter(steps, decimal-leading-zero); font-size: .58rem; font-weight: 700; letter-spacing: .06em; }
.article-body a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: .18em; }
.article-body aside { max-width: 800px; margin-top: 1.8rem; padding: 1.25rem 1.4rem; border-left: 4px solid var(--blue); background: var(--soft-blue); }
.article-body aside strong { display: block; margin-bottom: .35rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.article-body aside p { margin: 0; color: #53647b; font-size: .84rem; line-height: 1.55; }
.article-note { max-width: 800px !important; margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px dashed #bec9d6; color: var(--muted); font-size: .84rem !important; }

.checklist ul { max-width: 820px; margin: 0; padding: 0; list-style: none; }
.checklist li { display: grid; grid-template-columns: 46px 1fr; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid #d9e0e8; }
.checklist li:last-child { border-bottom: 0; }
.checklist li > span { color: var(--blue); font-size: .65rem; font-weight: 700; letter-spacing: .12em; }
.checklist li p { margin: 0; font-size: .9rem; line-height: 1.55; }
.status-list dl { max-width: 820px; margin: 0; }
.status-list dl > div { display: grid; grid-template-columns: 190px 1fr; gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid #d7dfe8; }
.status-list dt { font-weight: 600; }
.status-list dd { margin: 0; color: var(--muted); line-height: 1.6; }
.status-dot { display: inline-block; width: 9px; height: 9px; margin-right: .65rem; border-radius: 50%; }
.status-dot.ready { background: #1dad69; }
.status-dot.pending { background: #eeab2d; }
.status-dot.action { background: #df4b5b; }

.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; max-width: 1050px; border: 1px solid var(--line); background: var(--line); }
.faq-grid article { min-height: 230px; padding: 2rem; background: white; }
.faq-grid article > span { color: var(--blue); font-size: .62rem; font-weight: 700; letter-spacing: .14em; }
.faq-grid h3 { margin: 2.2rem 0 .8rem; font-size: 1.15rem; letter-spacing: -.025em; }
.faq-grid p { margin: 0; color: var(--muted); font-size: .87rem; line-height: 1.65; }
.faq-grid a { color: var(--blue); font-weight: 600; }

.human-help { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); grid-template-rows: 1fr auto; align-items: end; gap: 0 3rem; min-height: 420px; padding: clamp(4rem, 8vw, 8rem) var(--gutter); background: var(--blue); color: white; overflow: hidden; }
.human-help::before { position: absolute; inset: 1.5rem; border: 1px solid rgba(255,255,255,.25); content: ""; pointer-events: none; }
.human-help img { position: absolute; right: clamp(2rem, 5vw, 5rem); bottom: -1.5rem; width: min(31vw, 420px); height: auto; filter: drop-shadow(0 18px 24px rgba(0,0,0,.18)); }
.human-help > div, .human-help > a { position: relative; z-index: 1; }
.human-help > div { grid-column: 1; grid-row: 1; }
.human-help .eyebrow { color: var(--acid); }
.human-help h2 { margin: 0; font-size: clamp(3rem, 6vw, 6.6rem); font-weight: 500; line-height: .9; letter-spacing: -.07em; }
.human-help p:last-child { max-width: 590px; margin: 1.7rem 0 0; color: #d5e1ff; line-height: 1.65; }
.human-help > a { display: inline-flex; grid-column: 1; grid-row: 2; justify-self: start; gap: 2rem; align-items: center; justify-content: space-between; min-width: 190px; margin-top: 2rem; padding: 1rem 1.1rem; border: 1px solid rgba(255,255,255,.7); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.human-help > a:hover { background: white; color: var(--blue); }

.docs-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; padding: 2.5rem var(--gutter); background: var(--black); color: #787878; }
.docs-footer > .avnt-wordmark { width: 100px; height: 44px; }
.docs-footer > div { display: flex; gap: 2rem; font-size: .6rem; text-transform: uppercase; letter-spacing: .1em; }
.docs-footer a:hover { color: white; }

.search-hidden { display: none !important; }
.search-highlight { animation: flash 1.2s ease; }
@keyframes flash { 0%, 35% { background: #dceaff; } 100% { background: transparent; } }

@media (max-width: 1020px) {
  .docs-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .docs-rail { padding-left: 1rem; }
  .human-help img { right: 24%; opacity: .75; }
}

@media (max-width: 780px) {
  html { scroll-padding-top: 5rem; }
  .docs-topbar { min-height: 68px; padding: 0 1rem; }
  .docs-brand { gap: .65rem; }
  .docs-brand img { width: 42px; }
  .docs-brand .avnt-wordmark { width: 64px; }
  .docs-brand i { padding-left: .65rem; font-size: .62rem; }
  .docs-topbar nav > a:first-child { display: none; }
  .topbar-button { gap: .5rem; padding: .65rem .7rem; font-size: .57rem; }
  .docs-shell { display: block; }
  .docs-rail { display: none; }
  .docs-hero { min-height: 600px; padding: 5rem 1.25rem 4rem; }
  .docs-hero::before { top: -12rem; right: -21rem; width: 39rem; height: 39rem; }
  .docs-hero h1 { font-size: clamp(3.5rem, 17vw, 5.5rem); }
  .hero-copy > p:last-child { font-size: .98rem; }
  .search-wrap { margin-top: 2.4rem; }
  .search-wrap kbd { display: none; }
  .intent-grid { grid-template-columns: 1fr; }
  .intent-grid a { min-height: 205px; }
  .doc-section { padding: 4.5rem 1.25rem; }
  .section-heading { grid-template-columns: 42px 1fr; }
  .section-heading h2 { font-size: clamp(2.7rem, 13vw, 4.2rem); }
  .doc-article summary { grid-template-columns: 38px minmax(0, 1fr) 36px; min-height: 110px; }
  .doc-article summary p { display: none; }
  .doc-article summary i { width: 32px; height: 32px; }
  .article-body { margin-left: 38px; padding-right: 0; }
  .article-body ol li { padding-left: 2.7rem; }
  .status-list dl > div { grid-template-columns: 1fr; gap: .5rem; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid article { min-height: 210px; }
  .human-help { grid-template-columns: 1fr; align-items: start; min-height: 560px; padding: 4.5rem 2.1rem; }
  .human-help img { right: -4.5rem; bottom: -1rem; width: 330px; transform: none; opacity: .72; }
  .human-help > div { max-width: 85%; }
  .human-help > a { align-self: end; justify-self: start; }
  .docs-footer { align-items: flex-start; flex-direction: column; }
  .docs-footer > div { flex-wrap: wrap; gap: .8rem 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
