/* NL-data on the Devtools theme. Load after devtools.css, components.css and signature.css (theme/ is a copy of
 * ~/master/shared/devtools-theme; change the theme there, not here). Only what NL-data adds: brand, code cards, data
 * set keys, the docs page and the price cards. Tokens only, no colours of its own. */
@layer nldata {
  html { scroll-padding-top: 1rem; }
  main { overflow-wrap: break-word; }

  /* Header: the brand is a mark plus the name; on small screens the menu wraps onto its own row. */
  .zs-header__inner { flex-wrap: wrap; }
  .nd-brand { align-items: center; gap: .6rem; color: var(--zs-ink); text-decoration: none;
    font: var(--zs-display-weight) 1.35rem/1 var(--zs-font-display); letter-spacing: var(--zs-display-tracking); }
  .nd-brand:hover { color: var(--zs-ink); }
  .zs-logo.nd-brand img { inline-size: 32px; block-size: 32px; }
  .zs-nav { display: flex; flex-wrap: wrap; order: 3; inline-size: 100%; margin: 0; gap: .25rem 1.25rem; }
  @media (min-width: 52rem) { .zs-nav { order: 0; inline-size: auto; margin: 0 auto 0 1.5rem; } }
  .zs-header .zs-btn--ghost { display: inline-flex; }

  /* Code: dark card in both modes. */
  pre { margin: 0; padding: 1rem 1.15rem; overflow-x: auto; border-radius: var(--zs-radius-sm); background: var(--dt-navy-950);
    color: var(--dt-navy-100); font-size: .88rem; line-height: 1.55; max-inline-size: 100%; }
  pre code { font-size: 1em; }
  :not(pre) > code { overflow-wrap: anywhere; }

  /* Hero: the sample card and the no-code card on the right. */
  .dt-hero-card h1 { max-width: 18ch; }
  .nd-sample { margin: 0; padding: 1.4rem; border-radius: var(--zs-radius); background: var(--zs-surface);
    box-shadow: inset 0 0 0 1px var(--zs-line), var(--zs-shadow); min-inline-size: 0; }
  .nd-sample figcaption { margin-block-end: .75rem; font-weight: 650; }
  .dt-promo ul { margin: .4rem 0 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
  .dt-promo li p { font-size: .95rem; }

  /* Data sets as keys. */
  .dt-board--sets { grid-template-columns: minmax(0, 1fr); }
  @media (min-width: 40rem) { .dt-board--sets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (min-width: 64rem) { .dt-board--sets { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  .nd-source { font-size: .92rem; color: var(--zs-muted); }

  /* Plain sections. */
  .nd-text { max-width: 46rem; }
  .nd-text > * + pre, .nd-text > pre + * { margin-block-start: 1rem; }
  .nd-list { margin: 1rem 0 0; padding: 0; list-style: none; }
  .nd-list li { padding: .5rem 0; border-top: 1px solid var(--zs-line); }
  .nd-steps { margin: 0 0 1rem; padding-inline-start: 1.25rem; display: grid; gap: .4rem; }

  /* Prices. */
  .nd-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
  .nd-plans article { padding: 1.35rem; border-radius: var(--zs-radius); background: var(--zs-surface);
    box-shadow: inset 0 0 0 1px var(--zs-line); }
  .nd-plans h3 { color: var(--zs-brand-text); }
  .price { font: var(--zs-display-weight) 2rem/1.1 var(--zs-font-display); margin: .25rem 0 .5rem; }
  .price span { font: 500 1rem var(--zs-font-body); }
  .incl { margin-block-start: -.25rem; font-size: .88rem; color: var(--zs-muted); }

  /* Docs page. */
  .nd-page { padding-block: clamp(2rem, 4vw, 3.5rem) 1rem; }
  .nd-page .zs-hero__lead { max-width: 46rem; }
  .toc { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-block: 1.5rem 0; padding-block: .75rem;
    border-block: 1px solid var(--zs-line); }
  .nd-docs section { padding-block: 2rem .5rem; }
  .nd-docs h2 { scroll-margin-top: 1rem; }
  .nd-docs p { max-width: 46rem; }
  .endpoint { margin-block: 1.5rem; }
  .endpoint h3 { font-size: 1.1rem; overflow-wrap: anywhere; }
  .method { display: inline-block; padding: .1rem .5rem; border-radius: 999px; background: var(--zs-surface-alt);
    color: var(--zs-brand-text); font: 650 .85rem/1.4 var(--zs-font-body); vertical-align: middle; }
  .list { margin: 1rem 0 0; }
  .list > div { display: grid; gap: .1rem 1.5rem; padding: .6rem 0; border-top: 1px solid var(--zs-line); }
  @media (min-width: 40rem) { .list > div { grid-template-columns: 15rem 1fr; } }
  .list dd { margin: 0; color: var(--zs-muted); }

  /* Footer: the source lines. */
  .zs-footer p { margin: 0 0 .5rem; }
  .zs-footer li { overflow-wrap: anywhere; }
}

@layer nldata {
  /* The skip link shows when it gets focus. */
  .zs-visually-hidden:focus { position: fixed; inset: 1rem auto auto 1rem; z-index: 10; width: auto; height: auto; clip: auto;
    padding: .6rem 1rem; border-radius: var(--zs-radius-sm); background: var(--zs-surface); color: var(--zs-ink); }
}
