:root {
  --accent: #fd5861;
  /* Below AA as text on every surface here — 3.11:1 on `--card`, 2.98:1 on `--bg`,
     2.81:1 on `--cve-bg` — and under the 3:1 non-text floor on the latter two.
     `--accent-ink` is the same hue, readable: 5.22:1, 5.00:1, 4.70:1 on those three.
     `.ver`, `.catalog-retry` and `.cve-popover-link` still paint text in `--accent` by
     decision, not oversight — `.ver` is 14px at weight 600, under the 18.66px WCAG
     1.4.3 counts as large, so it owes 4.5:1 and has 3.11:1 on the `--card` behind it. */
  --accent-ink: #cd2d37;
  --text: #333;
  --muted: #758696;
  --bg: #fafafa;
  --card: #fff;
  --border: #e2e2e2;
  /* Read by both `.cve` and the `.cve-wrap--detail` that wraps it, so the outer
     box and the inner one cannot drift apart at the corners or in tone. Also the
     surface `.request-access-cta` hovers to, and the darkest thing `--accent-ink` is
     read on — darkening this darkens every `--accent-ink` on it, which is at 4.70:1
     against a 4.5 floor. */
  --cve-bg: #f3f3f3;
  --cve-radius: 4px;
  /* Shared by the `--deprecated` and `--capacity` version labels. */
  --ver-label-neutral-bg: #f9fafb;
  /* The topbar's inner `.wrap` has to line up with the page's, so both read the
     same max width and the same gutter from here. `--brand-height` is the logo's
     own height, which `.topbar-inner` also reserves as its minimum height. */
  --wrap-max: 960px;
  --gutter: 1.25rem;
  --brand-height: 28px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
.wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 4rem;
}
/* The auth pages exist to present one box, so the wrapper sizes to its content
   rather than carrying a width of its own: `fit-content` resolves from the widget's
   width below, out through the card, so no box repeats or subtracts another's
   padding. It also caps at the space available, so a viewport narrower than the
   widget still fits, and `.wrap`'s `margin: 0 auto` keeps the result centred. */
.wrap--auth {
  width: fit-content;
}
/* A page whose whole content is one sentence and one action reads at a narrower
   measure than the catalog's 960px grid. Read by this rule alone, so the width is
   inlined rather than promoted to a token. */
.wrap--message {
  max-width: 32rem;
}
/* 400px is the reference width the main app gives the same widget
   (ui-infra-router's StyledDescopeContainer). It belongs here, on the widget, and
   not on an ancestor: a wrapper width would have to subtract `.wrap`'s and
   `.card`'s padding and would silently go wrong the next time either changes.
   `display: block` because a custom element is `inline` by default and would
   ignore the width; `max-width: 100%` so a narrow viewport shrinks it instead of
   overflowing. */
descope-wc {
  display: block;
  width: 400px;
  max-width: 100%;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}
.topbar .wrap {
  padding: 0 var(--gutter);
  max-width: var(--wrap-max);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 1rem 1.25rem;
  min-height: var(--brand-height);
}
.brand {
  display: inline-block;
  line-height: 0;
  flex-shrink: 0;
}
.brand img {
  display: block;
  width: auto;
  height: var(--brand-height);
}
h1.topbar-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  flex: 1;
  min-width: 0;
}
header {
  margin-bottom: 2rem;
}
.sub {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px #0000001a;
  overflow: visible;
}
.card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 600;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.ver {
  font-family: "IBM Plex Mono", monospace;
  color: var(--accent);
  font-weight: 600;
}
.ver-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
}
.ver-label--default {
  border-color: #93c5fd;
  color: #1d4ed8;
  background: #eff6ff;
}
.ver-label--recommended {
  border-color: #6ee7b7;
  color: #047857;
  background: #ecfdf5;
}
.ver-label--deprecated {
  border-color: #d1d5db;
  color: #6b7280;
  background: var(--ver-label-neutral-bg);
}
.ver-label--capacity {
  border-color: #e5e7eb;
  color: #4b5563;
  background: var(--ver-label-neutral-bg);
  text-transform: none;
  letter-spacing: 0;
}
.ver-published {
  font-size: 0.8rem;
  color: var(--muted);
}
.desc {
  margin: 0 0 1rem;
}
.catalog-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.catalog-retry {
  font: inherit;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}
.request-access-email {
  /* The system's emphasis weight, down from the UA's 700 on `<strong>`. */
  font-weight: 600;
  /* A 254-character address has to wrap inside the card rather than push past it. */
  overflow-wrap: anywhere;
}
/* A hairline chip, the `.cve-wrap--detail` vocabulary rather than a filled button:
   this system ships no filled button, and white on `--accent` would be 3.11:1. The
   background is declared rather than inherited because the same class is also
   appended into `.catalog-status`, which sits on `--bg`. The border reads from
   `--accent-ink` for the other half of that same fact: `--accent` measures 3.11:1
   against the `.card` this chip renders inside and 2.98:1 against the `--bg` the status
   line hands it, so which of the two surfaces it landed on decided whether the hairline
   cleared the 3:1 non-text floor. The ink clears it on both, at 5.22:1 and 5.00:1. */
.request-access-cta {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--card);
  border: 1px solid var(--accent-ink);
  border-radius: var(--cve-radius);
  padding: 0.5rem 0.85rem;
  text-decoration: none;
}
.request-access-cta:hover {
  background: var(--cve-bg);
}
/* Quieted by size, not by colour: `--muted` is 3.75:1 and this line carries the one
   link that repairs a wrong address. */
.request-access-alt {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--text);
}
.request-access-alt a {
  color: var(--accent-ink);
}
.ver-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.ver-block:first-of-type {
  margin-top: 0.75rem;
  padding-top: 0;
  border-top: none;
}
.cves {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.25rem, 1fr));
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.cve-wrap {
  position: relative;
  min-width: 0;
}
.cve-wrap--detail {
  background: var(--cve-bg);
  border: 1px solid var(--border);
  border-radius: var(--cve-radius);
}
.cve-wrap--detail:hover,
.cve-wrap--detail.is-open {
  border-color: var(--accent-ink);
}
.cve-wrap--detail .cve {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.25rem 0.35rem;
}
.cve-wrap--detail a.cve:hover {
  border-color: transparent;
  color: var(--accent-ink);
}
.cve {
  display: block;
  width: 100%;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1.35;
  white-space: nowrap;
  text-align: center;
  background: var(--cve-bg);
  border: 1px solid var(--border);
  padding: 0.25rem 0.35rem;
  border-radius: var(--cve-radius);
  text-decoration: none;
  color: var(--text);
}
a.cve:hover {
  border-color: var(--accent-ink);
  color: var(--accent-ink);
}
.cve-info {
  position: absolute;
  right: 0.12rem;
  top: 0;
  bottom: 0;
  width: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 0.68rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0s;
}
@media (hover: hover) {
  .cve-wrap--detail:hover .cve-info,
  .cve-wrap--detail.is-open .cve-info,
  .cve-info:focus-visible {
    opacity: 1;
    pointer-events: auto;
  }
}
@media (hover: none) {
  .cve-info {
    opacity: 1;
    pointer-events: auto;
  }
}
.cve-wrap--detail:hover .cve-info:hover,
.cve-wrap--detail.is-open .cve-info {
  background: var(--card);
  border-radius: 2px;
}
.cve-popover {
  position: absolute;
  z-index: 50;
  left: 50%;
  top: calc(100% + 0.35rem);
  bottom: auto;
  transform: translateX(-50%);
  width: max(14rem, 100%);
  max-width: min(18rem, calc(100vw - 2.5rem));
  padding: 0.65rem 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px #00000026;
  text-align: left;
  font-family: Inter, system-ui, sans-serif;
  white-space: normal;
}
.cve-popover--above {
  top: auto;
  bottom: calc(100% + 0.35rem);
}
.cve-popover::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
}
.cve-popover:not(.cve-popover--above)::after {
  top: auto;
  bottom: 100%;
  border-bottom-color: var(--card);
}
.cve-popover--above::after {
  top: 100%;
  border-top-color: var(--card);
}
.cve-popover-title {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}
.cve-popover-desc {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted);
}
.cve-popover-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}
.cve-popover-link:hover {
  text-decoration: underline;
}
details {
  margin-top: 1rem;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}
details h3 {
  margin: 1rem 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
details ul {
  margin: 0 0 0.5rem 1.1rem;
  padding: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
details li {
  margin-bottom: 0.35rem;
}
footer {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}
footer p {
  margin: 0.25rem 0 0;
}
/* Shared by shell.html's footer and pages.ts's LEGAL_FOOTER template. */
.legal-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.legal-heading {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.legal-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.legal-link {
  color: var(--accent-ink);
  text-decoration: none;
}
.legal-link:hover {
  text-decoration: underline;
}
.cookie-notice {
  max-width: 32rem;
  margin-inline: auto;
}
