/* Data Tools for All: one stylesheet for the whole site. System fonts, no web fonts, no images needed. */

:root {
  --bg: #ffffff;
  --surface: #f5f7fa;
  --surface-2: #eef2f7;
  --text: #1f2933;
  --muted: #52606d;
  --border: #d9e0e8;
  --link: #1a5fc9;
  --link-hover: #0d5c63;
  --teal: #0d5c63;
  --tag-bg: #e6f2f3;
  --tag-text: #0d5c63;
  --soon-bg: #fff4dc;
  --soon-text: #6e4b00;
  --focus: #1a5fc9;
  --hero-from: #1765d6;
  --hero-to: #0d5c63;
  --code-bg: #f1f4f8;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --radius: 12px;
  --wrap: 68rem;
  --measure: 44rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1720;
    --surface: #151e29;
    --surface-2: #1b2532;
    --text: #e8eef5;
    --muted: #a3afbc;
    --border: #2a3644;
    --link: #82b6ff;
    --link-hover: #7fd3da;
    --teal: #7fd3da;
    --tag-bg: #12333a;
    --tag-text: #9fe0e6;
    --soon-bg: #3a2e12;
    --soon-text: #f3d48a;
    --focus: #82b6ff;
    --hero-from: #154f9e;
    --hero-to: #0b464c;
    --code-bg: #1b2532;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 48rem) { .wrap { padding: 0 1.5rem; } }

.skip {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  background: var(--bg);
  color: var(--link);
  padding: 0.6rem 1rem;
  border: 2px solid var(--focus);
  border-radius: 8px;
}
.skip:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  min-height: 4rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  padding: 0.25rem 0;
}
.brand:hover { color: var(--text); }
.brand svg { width: 2rem; height: 2rem; flex: none; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-block;
  padding: 0.5rem 0.65rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.975rem;
}
.site-nav a:hover { background: var(--surface-2); color: var(--text); }
.site-nav a[aria-current="page"] {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
}
@media (max-width: 30rem) {
  .site-nav { width: 100%; }
  .site-nav ul { margin-left: -0.65rem; }
}

/* Hero */

.hero {
  color: #ffffff;
  background:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px) 0 0 / 2.5rem 2.5rem,
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px) 0 0 / 2.5rem 2.5rem,
    linear-gradient(120deg, var(--hero-from), var(--hero-to));
}
.hero .wrap { padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 48rem) { .hero .wrap { padding-top: 4.5rem; padding-bottom: 4.5rem; } }
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 5.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.hero p {
  margin: 0;
  max-width: 40rem;
  font-size: 1.15rem;
  line-height: 1.55;
}
.hero a { color: #ffffff; }
.hero :focus-visible { outline-color: #ffffff; }
.hero .hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.button {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.3;
}
.hero .button-light { background: #ffffff; color: #0f3f86; }
.hero .button-light:hover { background: #eaf2ff; color: #0f3f86; }
.hero .button-ghost { border: 1.5px solid rgba(255,255,255,0.85); color: #ffffff; }
.hero .button-ghost:hover { background: rgba(255,255,255,0.12); color: #ffffff; }

/* Page heading for inner pages */

.page-head { border-bottom: 1px solid var(--border); background: var(--surface); }
.page-head .wrap { padding-top: 2.25rem; padding-bottom: 2rem; }
.page-head h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4.5vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 30ch;
}
.page-head p { margin: 0.75rem 0 0; color: var(--muted); max-width: var(--measure); }
.crumbs { margin: 0 0 0.6rem; font-size: 0.95rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; color: var(--muted); margin-right: 0.35rem; }

/* Sections */

main { display: block; }
.section { padding: 3rem 0; }
.section + .section, #products + .section { padding-top: 0; }
.section-head { margin-bottom: 1.5rem; max-width: var(--measure); }
.section-head h2 { margin: 0 0 0.4rem; font-size: 1.6rem; line-height: 1.2; letter-spacing: -0.01em; }
.section-head p { margin: 0; color: var(--muted); }
.kicker {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

/* Product cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.1rem;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 0.45rem; font-size: 1.125rem; line-height: 1.3; }
.card p { margin: 0 0 0.9rem; }
.card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}
.tag {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-weight: 600;
}
.tag-soon { background: var(--soon-bg); color: var(--soon-text); }
.card .actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  font-size: 0.975rem;
}
.card .actions .primary { font-weight: 600; }
.card .status { color: var(--muted); }

.note {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: var(--measure);
}

/* Two-column "about" band */

.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band .wrap { padding-top: 3rem; padding-bottom: 3rem; }
.split { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .split { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.split h2 { margin: 0 0 0.6rem; font-size: 1.4rem; line-height: 1.25; }
.split p { margin: 0 0 0.9rem; max-width: 34rem; }
.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list li { padding: 0.75rem 0; border-top: 1px solid var(--border); }
.contact-list li:first-child { border-top: 0; padding-top: 0; }
.contact-list strong { display: block; }
.contact-list a { font-weight: 600; word-break: break-word; }

/* Long-form text (policies, guides) */

.prose { max-width: var(--measure); padding: 2.25rem 0 3.5rem; }
.prose h2 { margin: 2.25rem 0 0.6rem; font-size: 1.4rem; line-height: 1.25; letter-spacing: -0.01em; }
.prose h3 { margin: 1.75rem 0 0.5rem; font-size: 1.15rem; line-height: 1.3; }
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin: 0.3rem 0; }
.prose li > ul { margin: 0.3rem 0 0; }
.prose .updated { color: var(--muted); font-size: 0.95rem; }
.prose .lead { font-size: 1.125rem; }

code, pre, kbd {
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
}
:not(pre) > code {
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 5px;
  overflow-wrap: anywhere;
}
pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  line-height: 1.5;
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
}
pre:focus-visible { outline-offset: 0; }

.table-wrap { overflow-x: auto; margin: 0 0 1.25rem; border: 1px solid var(--border); border-radius: 10px; }
.table-wrap:focus-visible { outline-offset: 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
caption { text-align: left; padding: 0.7rem 0.9rem 0; font-weight: 600; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.9rem; border-top: 1px solid var(--border); }
thead th { border-top: 0; background: var(--surface); font-weight: 600; }
tbody tr:first-child th, tbody tr:first-child td { border-top: 1px solid var(--border); }
td.num, th.num { text-align: right; white-space: nowrap; }

.callout {
  border-left: 4px solid var(--teal);
  background: var(--surface);
  padding: 0.85rem 1.1rem;
  border-radius: 0 10px 10px 0;
  margin: 0 0 1.25rem;
}
.callout p:last-child { margin-bottom: 0; }

.link-list { list-style: none; padding: 0; margin: 0 0 1.5rem; border-top: 1px solid var(--border); }
.link-list li { margin: 0; padding: 0.9rem 0; border-bottom: 1px solid var(--border); }
.link-list a { font-weight: 600; }
.link-list span { display: block; color: var(--muted); font-size: 0.95rem; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer .wrap {
  padding-top: 2rem;
  padding-bottom: 2.25rem;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 48rem) { .site-footer .wrap { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.site-footer p { margin: 0 0 0.35rem; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--link-hover); }
.site-footer .footer-brand { color: var(--text); font-weight: 700; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media print {
  .site-header nav, .site-footer, .skip, .hero .hero-links { display: none; }
  .hero { color: #000; background: none; }
  a { color: #000; }
}

/* Table captions are read by screen readers; the heading above already shows the title. */
caption {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.table-wrap { position: relative; }

/* On phones, each table row becomes a small card with its own labels. */
@media (max-width: 36rem) {
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.stack, table.stack tbody, table.stack tr, table.stack th, table.stack td { display: block; width: 100%; }
  table.stack tr { padding: 0.75rem 0.9rem; border-top: 1px solid var(--border); }
  table.stack tbody tr:first-child { border-top: 0; }
  table.stack th, table.stack td { padding: 0.15rem 0; border: 0 !important; text-align: left; white-space: normal; }
  table.stack th[scope="row"] { font-weight: 600; margin-bottom: 0.2rem; }
  table.stack td[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--muted);
    font-weight: 600;
  }
  table.stack td:empty { display: none; }
}

/* A plain filled button for use inside page text (accessible documents page). */
.button-primary { background: #1a5fc9; color: #ffffff; }
.button-primary:hover { background: #0d5c63; color: #ffffff; }
@media (prefers-color-scheme: dark) {
  .button-primary { background: #82b6ff; color: #0f1720; }
  .button-primary:hover { background: #7fd3da; color: #0f1720; }
}
.callout .button { margin-top: 0.25rem; }
.sign-off { margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }

.prose .link-list { padding-left: 0; }
.prose > :first-child { margin-top: 0; }
