/* ==========================================================================
   Help Center, documentation, search, legal and newsroom.
   Built on pages.css (same tokens, pills, rows, tiles, prose, toc).
   ========================================================================== */

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
mark { background: var(--blue-soft); color: var(--ink); border-radius: 4px; padding: 0 2px; }
.pd::after { content: "."; }
.nowrap { white-space: nowrap; }

/* ---------- Search field with live suggestions ---------- */
.hsearch { position: relative; width: 100%; max-width: 560px; margin-top: 12px; text-align: left; }
.hsearch .search { max-width: none; }
.hsearch .search input { height: 56px; }
.hsearch .search kbd { position: absolute; right: 18px; display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 7px; background: #fff; font-family: var(--mono); font-size: 12px; color: var(--muted); pointer-events: none; }
.hsearch .search input:focus ~ kbd { display: none; }
.hs-panel { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; right: 0; max-height: min(70vh, 440px); overflow: auto; padding: 8px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(10, 10, 10, .08); }
.hs-panel[hidden] { display: none; }
.hs-item, .hs-all { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 12px 14px; border-radius: 14px; }
.hs-item.is-active, .hs-all.is-active { background: var(--soft); }
.hs-text { display: grid; gap: 2px; min-width: 0; }
.hs-title { font-size: 16px; font-weight: 500; letter-spacing: -.015em; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-snippet { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-type { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.hs-all { grid-template-columns: auto minmax(0, 1fr); justify-content: start; font-size: 14px; color: var(--ink); }
.hs-status { padding: 12px 14px; font-size: 14px; color: var(--muted); }
.hs-foot { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 10px 14px 6px; font-size: 12.5px; color: var(--muted); }
.hs-foot[hidden] { display: none; }
.hs-foot kbd { font-family: var(--mono); font-size: 12px; margin-right: 4px; }
@media (max-width: 640px) { .hs-foot { display: none; } .hs-item { grid-template-columns: minmax(0, 1fr); } .hs-type { display: none; } }

/* ---------- Section with title on the left, list on the right ---------- */
.lsplit { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px clamp(32px, 5vw, 80px); align-items: start; }
.lsplit + .lsplit { margin-top: clamp(56px, 6vw, 96px); }
.lsplit > .lead { display: grid; gap: 16px; justify-items: start; align-content: start; position: sticky; top: 88px; }
.lsplit > .lead .h3 { max-width: 14ch; }
@media (max-width: 900px) { .lsplit { grid-template-columns: 1fr; } .lsplit > .lead { position: static; } .lsplit > .lead .h3 { max-width: none; } }
.rows.flat { border-top: 0; }
.rows.flat .row:first-child { padding-top: 0; }
.rows .row .ico { display: inline-flex; margin-right: 10px; vertical-align: -2px; color: var(--muted); }

/* ---------- Search results ---------- */
.res .meta-line { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.res b { font-size: 20px; }
.res small { max-width: 76ch; }
.sres { max-width: 880px; margin-inline: auto; }
.scount { margin: 0 auto 20px; max-width: 880px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.stypes { display: flex; justify-content: center; margin-top: 24px; }
.sempty { display: grid; justify-items: center; gap: 12px; text-align: center; max-width: 520px; margin-inline: auto; }
.sempty .h3 { margin-top: 4px; }
.sempty p { color: var(--muted); }

/* ---------- Legal ---------- */
.lgl-meta { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.lgl-side { display: grid; gap: 16px; }
.lgl-body .prose { max-width: 760px; }
.lgl-body .prose h4, .lgl-body .prose h5 { margin-top: 40px; font-size: 24px; font-weight: 500; line-height: 1.2; letter-spacing: -.024em; text-wrap: balance; scroll-margin-top: 96px; }
.lgl-body .prose h2, .lgl-body .prose h3 { scroll-margin-top: 96px; }
.lgl-body .prose > h4:first-child, .lgl-body .prose > h5:first-child { margin-top: 0; }
.lgl-body .prose h6 { margin-top: 24px; font-size: 16px; font-weight: 500; }
.lgl-body .prose table { margin-block: 8px; }

/* ---------- Article and news ---------- */
.ahero { padding-top: clamp(40px, 5vw, 80px); display: grid; gap: 20px; justify-items: start; text-align: left; }
.ahero .h1 { font-size: clamp(36px, 4.6vw, 68px); max-width: 22ch; line-height: 1.02; }
.ahero .p-l { max-width: 640px; color: var(--muted); }
.ameta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.ameta .label { font-family: var(--font); }
.ameta a.label:hover { background: #ebebec; }
.acover { margin-top: clamp(32px, 4vw, 56px); }
.acover .media { aspect-ratio: 16 / 8; }
@media (max-width: 760px) { .acover .media { aspect-ratio: 16 / 10; } }
.artsplit { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px clamp(32px, 5vw, 80px); align-items: start; }
.artsplit > .side { position: sticky; top: 88px; display: grid; gap: 20px; }
.artsplit > .side .back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.artsplit > .side .back:hover { color: var(--ink); }
.artsplit .toc a.is-nested { padding-left: 14px; }
@media (max-width: 900px) {
  .artsplit { grid-template-columns: 1fr; }
  .artsplit > .side { position: static; }
  .artsplit > .side .back { display: none; }
  .artsplit > .side .toc { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .artsplit > .side .toc::-webkit-scrollbar { display: none; }
  .artsplit > .side .toc .lb { display: none; }
  .artsplit > .side .toc a, .artsplit > .side .toc a.is-nested { flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--soft); color: var(--ink); white-space: nowrap; }
  .artsplit > .side .toc a.is-on { background: var(--ink); color: #fff; }
}
.prose.wn-prose { max-width: 720px; font-size: 17px; line-height: 1.65; }
.prose .wn-faq { margin-block: 16px; }
.prose .wn-faq-item { border-bottom: 1px solid var(--line); }
.prose .wn-faq-item:first-child { border-top: 1px solid var(--line); }
.prose .wn-faq-question { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font-weight: 500; }
.prose .wn-faq-question::-webkit-details-marker { display: none; }
.prose .wn-faq-question h3 { margin: 0; font-size: 18px; font-weight: 500; }
.prose .wn-faq-answer { padding-bottom: 18px; }
.prose .wn-table { margin-block: 24px; }
.prose .wn-table table { display: table; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.prose figure { margin-block: 24px; }
.prose figure img { margin-block: 0; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4, .prose h5 { scroll-margin-top: 96px; }
.prose h5 { margin-top: 24px; font-size: 16px; font-weight: 500; }
.ashare { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.apager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(40px, 5vw, 64px); }
.apager a { display: grid; gap: 6px; align-content: start; padding: 22px 24px; border-radius: var(--r-card); background: var(--soft); transition: background .25s; }
.apager a:hover { background: #efeff0; }
.apager a.is-next { text-align: right; grid-column: 2; }
.apager small { font-size: 14px; color: var(--muted); }
.apager b { font-size: 18px; font-weight: 500; line-height: 1.3; letter-spacing: -.02em; text-wrap: balance; }
@media (max-width: 640px) { .apager { grid-template-columns: 1fr; } .apager a.is-next { grid-column: 1; text-align: left; } }
.related { padding-top: 0; }
.related .lh { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; }
.ncard { color: inherit; }
.ncard .meta .label { font-family: var(--font); }
.ncard .media { background: var(--soft); }
.ncard .media .cover-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.ncard .media .cover-fallback img { width: 56px; height: auto; opacity: .35; }
.ncard.lead .tagline { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.ncard.lead .more { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 14px; }
.ncard-text { display: grid; gap: 14px; align-content: start; }
.nsearch { margin-top: 12px; }
.nbar { margin-bottom: clamp(32px, 4vw, 56px); }
.nres { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 24px; color: var(--muted); }
.nres a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.pagenav { flex-wrap: wrap; }
.pagenav .gap { background: none; min-width: 0; padding: 0 4px; color: var(--muted); }
.pagenav [aria-disabled="true"] { opacity: .4; }
.pagenav .nstat { flex-basis: 100%; text-align: center; background: none; height: auto; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

/* ---------- Documentation ---------- */
.dlay { display: grid; grid-template-columns: 240px minmax(0, 1fr) 200px; gap: 24px clamp(32px, 4vw, 64px); align-items: start; }
.dnav { position: sticky; top: 88px; max-height: calc(100vh - 112px); overflow: auto; display: grid; gap: 4px; font-size: 14px; padding-bottom: 24px; scrollbar-width: thin; }
.dnav summary { display: none; }
.dnav .dgroup { display: grid; gap: 2px; margin-top: 16px; }
.dnav .lb { margin-bottom: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
.dnav a { display: block; padding: 6px 0; color: var(--muted); transition: color .25s; }
.dnav a:hover, .dnav a.on { color: var(--ink); }
.dnav a.on { font-weight: 500; }
.dnav .dext { display: grid; gap: 2px; margin-top: 20px; }
.dsearch { position: relative; display: block; margin-bottom: 8px; }
.dsearch .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.dsearch input { width: 100%; height: 40px; padding: 0 14px 0 38px; border: 0; border-radius: 999px; background: var(--soft); font: inherit; font-size: 14px; color: var(--ink); outline: none; }
.dsearch input:focus { background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.dsearch input::placeholder { color: var(--faint); }
.dres { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: min(420px, 86vw); max-height: 60vh; overflow: auto; padding: 8px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(10, 10, 10, .08); }
.dres[hidden] { display: none; }
.dres button { display: grid; gap: 2px; width: 100%; padding: 10px 12px; border-radius: 12px; text-align: left; }
.dres button.on, .dres button:hover { background: var(--soft); }
.dres b { font-size: 14px; font-weight: 500; }
.dres span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dres p { padding: 10px 12px; font-size: 14px; color: var(--muted); }
.dtoc { position: sticky; top: 88px; }
.dmain .prose { max-width: 760px; }
.dpager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(40px, 5vw, 64px); max-width: 760px; }
.dpager a { display: grid; gap: 6px; align-content: start; padding: 20px 22px; border-radius: var(--r-card); background: var(--soft); transition: background .25s; }
.dpager a:hover { background: #efeff0; }
.dpager a.docs-next { text-align: right; grid-column: 2; }
.dpager small { font-size: 14px; color: var(--muted); }
.dpager b { font-size: 16px; font-weight: 500; line-height: 1.3; }
.dfoot { margin-top: 32px; font-size: 14px; color: var(--muted); }
.dfoot a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1180px) { .dlay { grid-template-columns: 220px minmax(0, 1fr); } .dtoc { display: none; } }
@media (max-width: 900px) {
  .dlay { grid-template-columns: 1fr; }
  .dnav { position: static; max-height: none; padding: 0 16px; border-radius: 18px; background: var(--soft); }
  .dnav summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-weight: 500; cursor: pointer; list-style: none; }
  .dnav summary::-webkit-details-marker { display: none; }
  .dnav summary .icon { transition: transform .25s; }
  .dnav[open] summary .icon { transform: rotate(90deg); }
  .dnav .dsearch input { background: #fff; }
}
@media (max-width: 640px) { .dpager { grid-template-columns: 1fr; } .dpager a.docs-next { grid-column: 1; text-align: left; } }
.dpager .docs-next { text-align: right; }

/* Doc body parts */
.docs-hint { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: var(--soft); font-size: 15px; }
.docs-hint svg { flex: none; margin-top: 3px; color: var(--blue); }
.docs-hint p { margin: 0; }
.docs-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.docs-card { display: grid; gap: 8px; padding: 20px; border-radius: 20px; background: var(--soft); }
@media (max-width: 640px) { .docs-cards { grid-template-columns: 1fr; } }
.docs-accordion { padding: 20px 22px; border-radius: 20px; background: var(--soft); }
.docs-accordion > h3 { margin-top: 0; }
.docs-accordion img { margin-block: 12px; background: #fff; }
.docs-codeblock { border-radius: 18px; background: var(--soft); overflow: hidden; }
.docs-codeblock header { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 0 18px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.docs-copy { height: 28px; padding: 0 12px; border-radius: 999px; background: #fff; font-size: 12.5px; color: var(--ink); }
.docs-codeblock pre { border-radius: 0; margin: 0; }
.prose.docs-body p img { margin-block: 12px; }

@media (prefers-reduced-motion: reduce) { .hs-panel, .dres { transition: none; } }

.prose .docs-card a, .prose a.docs-card { text-decoration: none; }
/* Space between the article cover and the body. */
.acover { margin-bottom: clamp(40px, 5vw, 72px); }
/* Pills keep their label on one line. */
.pill { white-space: nowrap; flex: none; }
