/* Page-level refinements for the API, API reference, integration guide, demo,
   paper dashboard, research, security and 404 pages. Loaded after aura-site.css.
   benchmarks.html also links this file but is maintained separately: every rule
   here is scoped to markup that page does not contain. */

:root {
  --pp-panel: #ffffff;
  --pp-band: #f6f7f9;
  --pp-field: #83868d;
  --pp-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --pp-sans: Inter, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --pp-shadow: 0 30px 70px -40px rgba(27, 30, 38, .38);
}

/* ------------------------------------------------------------------------
   Developer docs: API reference (/api-docs) and integration guide (/docs)
   ------------------------------------------------------------------------ */

/* One frame for the header and the body, so the index lines up with the title. */
body.editorial-site .dochero { padding-bottom: clamp(40px, 5vw, 64px) !important; }
body.editorial-site .dochero h1 { margin-top: 18px; }
body.editorial-site .dochero .lede { max-width: 60ch; }
body.editorial-site .docwrap {
  max-width: 1440px;
  padding: clamp(36px, 5vw, 64px) clamp(24px, 5.5vw, 80px) clamp(40px, 6vw, 80px);
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
}
body.editorial-site .docmain { max-width: 880px; min-width: 0; }

.doc-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 30px; }
body.editorial-site .doc-links .btn { margin: 0; min-height: 48px; padding: 14px 20px !important; font-size: 14px !important; }
.doc-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--ax-ink) !important; font-size: 14px; text-decoration: none !important;
  border-bottom: 1px solid #a5b5c8;
  transition: color .2s ease, border-color .2s ease;
}
.doc-link:hover { color: var(--ax-signal) !important; border-color: var(--ax-signal); }

/* The index: a quiet column of section links. */
body.editorial-site .docnav .quality-doc-index > summary {
  font: 500 11px/1.6 var(--pp-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ax-faint);
}
body.editorial-site .docnav .quality-doc-index a {
  color: var(--ax-soft); font-size: 14px; border-left: 1px solid var(--ax-rule); border-radius: 0; background: none;
}
body.editorial-site .docnav .quality-doc-index a:hover { color: var(--ax-signal); border-left-color: var(--ax-signal); background: none; }

/* Section heads: a mono kicker, then a light headline. */
body.editorial-site .docmain section { margin-bottom: clamp(48px, 6vw, 72px); scroll-margin-top: 96px; }
body.editorial-site .docmain section:last-child { margin-bottom: 0; }
body.editorial-site .docmain .dkick {
  font: 500 11px/1.6 var(--pp-mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--ax-faint); margin-bottom: 14px;
}
body.editorial-site .docmain h2 {
  font-weight: 400; font-size: clamp(28px, 3vw, 36px); line-height: 1.12; letter-spacing: -.035em; color: var(--ax-ink);
}
body.editorial-site .docmain h3 {
  font-weight: 500; font-size: 18px; letter-spacing: -.01em; color: var(--ax-ink); margin-top: 40px; scroll-margin-top: 96px;
}
body.editorial-site .docmain p { color: var(--ax-soft); max-width: 68ch; }
body.editorial-site .docmain :is(p, .doc-flow li, td) a:not(.doc-link) {
  color: var(--ax-signal) !important; font-weight: 500; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
}
body.editorial-site .docmain :is(p, li, td) code {
  font: 500 .86em/1.5 var(--pp-mono); color: var(--ax-ink) !important; background: #eef0f3 !important;
  padding: 1px 5px; border-radius: 3px; white-space: nowrap;
}
body.editorial-site .docmain td code { white-space: normal; overflow-wrap: anywhere; }

/* Ordered flows read as steps, not as one long sentence of arrows. */
.docmain .doc-flow { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: flow; max-width: 68ch; }
.docmain .doc-flow li {
  counter-increment: flow; position: relative; padding: 12px 0 12px 44px;
  border-top: 1px solid var(--ax-rule); color: var(--ax-soft); line-height: 1.65;
}
.docmain .doc-flow li:last-child { border-bottom: 1px solid var(--ax-rule); }
.docmain .doc-flow li::before {
  content: counter(flow, decimal-leading-zero); position: absolute; left: 0; top: 14px;
  font: 500 11px/1.6 var(--pp-mono); letter-spacing: .08em; color: var(--ax-signal);
}

/* Code: printed on paper, wrapped instead of cropped on narrow screens. */
body.editorial-site .docmain .code {
  margin-top: 18px; background: var(--pp-panel) !important; border: 1px solid var(--ax-rule) !important; border-radius: 4px; overflow: hidden;
}
body.editorial-site .docmain .code .ch {
  padding: 10px 16px; border-bottom: 1px solid var(--ax-rule); background: none;
  font: 500 11px/1.4 var(--pp-mono) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--ax-faint) !important;
}
body.editorial-site .docmain .code pre {
  margin: 0; padding: 16px 18px 18px; background: none !important; border: 0 !important;
  font: 13px/1.7 var(--pp-mono) !important; color: var(--ax-ink) !important;
  white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2;
}
body.editorial-site .docmain .code pre code {
  font: inherit !important; color: inherit !important; background: none !important; padding: 0 !important; border-radius: 0;
}

/* Reference tables fit the column; long identifiers break at their underscores. */
body.editorial-site .docmain .dtable {
  margin-top: 18px; background: var(--pp-panel); border: 1px solid var(--ax-rule); border-radius: 4px; box-shadow: none;
}
body.editorial-site .docmain .dtable table { min-width: 0; font-size: 14px; }
body.editorial-site .docmain .dtable th {
  padding: 11px 16px; background: none !important; border-bottom: 1px solid var(--ax-rule);
  font: 500 11px/1.3 var(--pp-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ax-faint) !important;
}
body.editorial-site .docmain .dtable td {
  padding: 12px 16px; border-bottom: 1px solid var(--ax-rule); color: var(--ax-soft) !important; vertical-align: top; line-height: 1.55;
}
body.editorial-site .docmain .dtable tr:last-child td { border-bottom: 0; }
body.editorial-site .docmain .dtable td.m { font: 13px/1.55 var(--pp-mono); color: var(--ax-ink) !important; }

/* The endpoint index: method, route, purpose; every row is a link. */
.docmain .endpoint-index { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--ax-rule); }
body.editorial-site .docmain .endpoint-index a {
  display: grid; grid-template-columns: 52px minmax(0, 15em) minmax(0, 1fr); gap: 4px 16px; align-items: baseline;
  padding: 13px 4px; border-bottom: 1px solid var(--ax-rule); text-decoration: none !important; color: var(--ax-ink) !important;
  transition: background-color .15s ease;
}
.docmain .endpoint-index a:hover { background: rgba(48, 69, 181, .05); }
.docmain .endpoint-index a:hover .ep-route { color: var(--ax-signal); }
.docmain .endpoint-index .ep-route { font: 500 13.5px/1.5 var(--pp-mono); overflow-wrap: anywhere; }
.docmain .endpoint-index .ep-note { color: var(--ax-soft); font-size: 14px; line-height: 1.5; }
.docmain .endpoint-index .ep-open { color: var(--ax-faint); }
.docmain .mth {
  display: inline-block; justify-self: start; padding: 2px 6px; border-radius: 3px;
  font: 600 11px/1.5 var(--pp-mono); letter-spacing: .04em; color: var(--ax-ink); background: #eef0f3;
}
.docmain .mth.get { color: var(--ax-signal); background: #e8eaf5; }
.docmain .mth.put { color: #8a3b28; background: #f6f7f9; }
.docmain h3 .mth { margin-right: 8px; vertical-align: 2px; }

/* Notes sit on a signal rule instead of a tinted box. */
body.editorial-site .docmain .callout {
  margin-top: 22px; padding: 4px 0 4px 18px !important; background: none !important; border: 0 !important;
  border-left: 2px solid var(--ax-signal) !important; border-radius: 0 !important; box-shadow: none !important;
  font-size: 15px; line-height: 1.65; color: var(--ax-soft) !important; max-width: 68ch;
}
body.editorial-site .docmain .callout b { color: var(--ax-ink); font-weight: 600; }

/* Closing band (docs, reference and demo): the site's quiet close, not a gradient slab. */
body.editorial-site .cta-band { margin: 0; background: none !important; border-top: 1px solid var(--ax-rule); }
body.editorial-site .cta-band .cta-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 56px; align-items: end;
  max-width: none; margin: 0; padding: clamp(52px, 7vw, 92px) 0 !important;
  background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  color: var(--ax-ink) !important; text-align: left; overflow: visible;
}
body.editorial-site .cta-band .cta-card::before,
body.editorial-site .cta-band .cta-card::after { display: none !important; }
body.editorial-site .cta-band .cta-card > * { grid-column: 1; }
body.editorial-site .cta-band .cta-card h2 {
  margin: 0 !important; max-width: 20ch !important; color: var(--ax-ink) !important;
  font: 400 clamp(32px, 3.6vw, 46px)/1.08 var(--pp-sans); letter-spacing: -.04em;
}
body.editorial-site .cta-band .cta-card p {
  margin: 0 !important; max-width: 56ch; color: var(--ax-soft) !important; font-size: 16px; line-height: 1.7; text-align: left;
}
body.editorial-site .cta-band .cta-card .cta-actions {
  grid-column: 2; grid-row: 1 / span 2; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin: 0;
}
body.editorial-site .cta-band .cta-card .btn { margin: 0; min-height: 48px; padding: 14px 20px !important; font-size: 14px !important; }

@media (max-width: 900px) {
  body.editorial-site .docwrap { grid-template-columns: minmax(0, 1fr); }
  body.editorial-site .docnav { margin-bottom: 8px; }
  body.editorial-site .cta-band .cta-card { grid-template-columns: minmax(0, 1fr); }
  body.editorial-site .cta-band .cta-card .cta-actions { grid-column: 1; grid-row: auto; margin-top: 10px; }
}
@media (max-width: 640px) {
  body.editorial-site .docwrap { padding-inline: 24px; }
  body.editorial-site .docnav .quality-doc-index a { border-left: 0; }
  body.editorial-site .docmain .code pre { padding: 14px 14px 16px; font-size: 12.5px !important; }
  body.editorial-site .docmain .dtable th { padding: 10px 10px; letter-spacing: .06em; font-size: 10.5px; }
  body.editorial-site .docmain .dtable td { padding: 11px 10px; font-size: 13.5px; }
  body.editorial-site .docmain .dtable td.m { font-size: 12.5px; }
  .docmain .endpoint-index a { grid-template-columns: 48px minmax(0, 1fr); padding: 12px 2px; }
  .docmain .endpoint-index .ep-note { grid-column: 2; font-size: 13.5px; }
  body.editorial-site .cta-band .cta-card h2 { font-size: 32px; }
}

/* ------------------------------------------------------------------------
   API (/api): request example and trial form
   ------------------------------------------------------------------------ */
body.editorial-site .atelier[data-art="api"] .dt-api-contract {
  padding: 18px 24px 14px; border: 1px solid var(--ax-rule); border-radius: 4px;
  background: var(--pp-panel); box-shadow: var(--pp-shadow);
}
.atelier[data-art="api"] .dt-api-top { align-items: baseline; font: 500 11px/1.5 var(--pp-mono); letter-spacing: .08em; color: var(--ax-faint); }
body.editorial-site .atelier[data-art="api"] .dt-api-top a {
  display: inline-flex; align-items: center; min-height: 44px; margin: -14px 0; /* a full-size target without moving the line */
  font-size: 11px; color: var(--ax-signal) !important; white-space: nowrap;
}
.atelier[data-art="api"] .dt-endpoint { padding: 22px 0 16px; }
.atelier[data-art="api"] .dt-endpoint b { color: var(--ax-ink); border-color: var(--ax-ink); font-weight: 600; }
.atelier[data-art="api"] .dt-endpoint > span { font: 500 11px/1 var(--pp-mono); letter-spacing: .14em; color: var(--ax-faint); }
.atelier[data-art="api"] .dt-api-tabs { border-bottom-color: var(--ax-rule); }
.atelier[data-art="api"] .dt-api-tabs button { font-size: 12px; color: var(--ax-faint); }
body.editorial-site .atelier[data-art="api"] .dt-api-contract pre { color: var(--ax-ink) !important; min-height: 210px !important; padding: 20px 0 !important; }
.atelier[data-art="api"] .dt-api-bottom { font: 500 11px/1.5 var(--pp-mono); letter-spacing: .06em; color: var(--ax-faint); border-top-color: var(--ax-rule); padding: 13px 0 4px; }
body.editorial-site .atelier[data-art="api"] .dt-api-caption { font-size: 12px; color: var(--ax-faint); padding-top: 4px; }

.atelier[data-art="api"] .at-wide-note .at-split > div:first-child p { max-width: 46ch; }
body.editorial-site .atelier[data-art="api"] .at-form #apiTrialForm {
  padding: clamp(22px, 3vw, 34px); background: var(--pp-panel) !important;
  border: 1px solid var(--ax-rule); border-radius: 4px; box-shadow: var(--pp-shadow) !important;
}
body.editorial-site .atelier[data-art="api"] .at-form label { margin-bottom: 8px; font: 500 13px/1.4 var(--pp-sans); color: var(--ax-ink); }
.atelier[data-art="api"] .at-form .field-optional { font-weight: 400; color: var(--ax-faint); }
body.editorial-site .atelier[data-art="api"] .at-form :is(input, textarea) {
  min-height: 48px; margin-bottom: 20px; padding: 12px 14px;
  background: #fff !important; color: var(--ax-ink) !important; border: 1px solid var(--pp-field) !important; border-radius: 3px;
  font: 16px/1.45 var(--pp-sans) !important;
  transition: border-color .15s ease;
}
body.editorial-site .atelier[data-art="api"] .at-form textarea { min-height: 124px; }
body.editorial-site .atelier[data-art="api"] .at-form :is(input, textarea):hover { border-color: var(--ax-ink) !important; }
body.editorial-site .atelier[data-art="api"] .at-form :is(input, textarea):focus-visible {
  border-color: var(--ax-signal) !important; outline: 2px solid var(--ax-signal); outline-offset: 1px;
}
.atelier[data-art="api"] .at-form ::placeholder { color: #6b6f77; opacity: 1; }
body.editorial-site .atelier[data-art="api"] .at-form button[type="submit"] { min-height: 48px; padding: 14px 22px !important; font-size: 14px !important; }
body.editorial-site .atelier[data-art="api"] .at-form .hint { margin-top: 14px; font-size: 13px; line-height: 1.6; color: var(--ax-faint) !important; }
body.editorial-site .atelier[data-art="api"] .at-form .api-trial-feedback h3 { font-size: 21px; font-weight: 500; }

@media (max-width: 760px) {
  body.editorial-site .atelier[data-art="api"] .dt-api-contract { padding: 16px 18px 12px; }
  body.editorial-site .atelier[data-art="api"] .dt-api-contract pre { font-size: 12px !important; min-height: 0 !important; }
  .atelier[data-art="api"] .dt-api-top { font-size: 10px; }
}

/* Links inside the API page's running text. */
body.editorial-site .atelier[data-art="api"] .at-section p a {
  color: var(--ax-signal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}

/* ------------------------------------------------------------------------
   Demo (/demo): the comparison stacks into one card per allocation on phones.
   ------------------------------------------------------------------------ */
@media (max-width: 640px) {
  body.demo-page .demo-table-scroll { overflow: visible; }
  body.demo-page #cmpTable { min-width: 0; }
  body.demo-page #cmpTable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body.demo-page #cmpTable tbody tr {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px;
    padding: 18px 0; border-bottom: 1px solid #d8dad7;
  }
  body.demo-page #cmpTable tbody tr:first-child { border-top: 1px solid #d8dad7; }
  body.demo-page #cmpTable tbody th { grid-column: 1 / -1; padding: 0 !important; border: 0 !important; font-size: 15px; }
  body.demo-page #cmpTable tbody td {
    display: flex; flex-direction: column; gap: 3px; padding: 0 !important; border: 0 !important;
    text-align: left; font-size: 14px;
  }
  body.demo-page #cmpTable tbody td::before { content: attr(data-label); font: 400 12px/1.4 var(--pp-sans); color: var(--ax-faint); }
}

/* ------------------------------------------------------------------------
   Paper dashboard (/live-benchmark): the site's paper and type, and an
   honest offline state. It shows the feed's status, never sample values.
   ------------------------------------------------------------------------ */
/* This page does not load aura-site.css, so it carries the tokens itself. */
body.paper-dashboard {
  --ax-ink: #1b1e26; --ax-soft: #4f5562; --ax-faint: #5f646d; --ax-signal: #3045b5; --ax-paper: #ffffff; --ax-rule: #e3e5ea;
  background: var(--ax-paper) !important; color: var(--ax-ink); font-family: var(--pp-sans);
}
body.paper-dashboard :where(a, button, summary, [tabindex]):focus-visible { outline: 2px solid var(--ax-signal); outline-offset: 3px; }
body.paper-dashboard .brand-copy .eyebrow {
  font: 500 11px/1.6 var(--pp-mono) !important; letter-spacing: .16em !important; text-transform: uppercase; color: var(--ax-faint) !important;
}
body.paper-dashboard .shell { max-width: 1360px; padding: 18px clamp(24px, 5vw, 56px) 36px; }
body.paper-dashboard .topbar { align-items: center; padding: 6px 0 20px; border-bottom: 1px solid var(--ax-rule); }
body.paper-dashboard .brand-lockup { gap: 16px; }
body.paper-dashboard .brand-home { display: inline-flex; align-items: center; min-height: 44px; flex: 0 0 auto; }
body.paper-dashboard .brand-logo { width: 47px; height: 33px; }
body.paper-dashboard .brand-copy h1 { font: 400 clamp(21px, 2.2vw, 27px)/1.15 var(--pp-sans); letter-spacing: -.03em; color: var(--ax-ink); }
body.paper-dashboard .nav { gap: 6px 26px; }
body.paper-dashboard .nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; border-radius: 0;
  font: 500 14px/1.3 var(--pp-sans); color: var(--ax-ink); background: none;
  border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease;
}
body.paper-dashboard .nav a:hover { color: var(--ax-signal); border-bottom-color: var(--ax-signal); }

body.paper-dashboard .feed-unavailable {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px); gap: clamp(36px, 6vw, 96px);
  min-height: 0; border-top: 0; padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 8vw, 104px);
}
body.paper-dashboard .feed-kicker {
  margin: 0 0 22px; font: 500 11px/1.6 var(--pp-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ax-faint);
}
body.paper-dashboard .feed-unavailable h2 {
  max-width: 13ch; font: 400 clamp(42px, 5.6vw, 76px)/1.02 var(--pp-sans); letter-spacing: -.05em; color: var(--ax-ink);
}
body.paper-dashboard .feed-unavailable h2 em { font-style: normal; color: var(--ax-signal); }
body.paper-dashboard .feed-detail { max-width: 52ch; margin-top: 26px; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.65; color: var(--ax-soft); }
body.paper-dashboard .feed-actions { gap: 14px 28px; margin-top: 34px; }
body.paper-dashboard .feed-actions :is(a, button) {
  min-height: 48px; padding: 13px 0; border: 0; border-bottom: 1px solid #a5b5c8; border-radius: 0; background: none;
  font: 500 14px/1.3 var(--pp-sans); color: var(--ax-ink); gap: 9px;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
body.paper-dashboard .feed-actions :is(a, button):hover { color: var(--ax-signal); border-bottom-color: var(--ax-signal); }
body.paper-dashboard .feed-actions .feed-primary {
  padding: 14px 20px; border: 1px solid var(--ax-ink); border-radius: 3px; background: var(--ax-ink); color: #fff;
}
body.paper-dashboard .feed-actions .feed-primary:hover { background: var(--ax-signal); border-color: var(--ax-signal); color: #fff; }

/* The status instrument: what this page is waiting for, in plain words. */
body.paper-dashboard .feed-status {
  align-self: center; padding: 22px 24px 20px; background: var(--pp-panel);
  border: 1px solid var(--ax-rule); border-radius: 4px; box-shadow: var(--pp-shadow);
}
body.paper-dashboard .feed-status-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-bottom: 14px; border-bottom: 1px solid var(--ax-rule);
}
body.paper-dashboard .feed-status-head h3 {
  margin: 0; font: 500 11px/1.6 var(--pp-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ax-faint);
}
body.paper-dashboard .feed-state { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1.4 var(--pp-sans); color: var(--ax-ink); }
body.paper-dashboard .feed-state i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--ax-faint); background: transparent; }
body.paper-dashboard .feed-state[data-tone="pending"] i { border-color: var(--ax-signal); background: var(--ax-signal); }
body.paper-dashboard .feed-state[data-tone="error"] i { border-color: #9c273d; background: #9c273d; }
body.paper-dashboard .feed-status p { margin: 16px 0 6px; font-size: 14px; line-height: 1.6; color: var(--ax-soft); }
body.paper-dashboard .feed-status ul { margin: 0; padding: 0; list-style: none; }
body.paper-dashboard .feed-status li {
  display: flex; justify-content: space-between; gap: 16px; padding: 11px 0;
  border-bottom: 1px solid var(--ax-rule); font-size: 14px; line-height: 1.5; color: var(--ax-ink);
}
body.paper-dashboard .feed-status li:last-child { border-bottom: 0; padding-bottom: 2px; }
body.paper-dashboard .feed-status li::after { content: ""; flex: 0 0 14px; align-self: center; border-top: 1px solid var(--ax-faint); }
body.paper-dashboard .site-footer-disclaimer {
  max-width: 110ch; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--ax-rule);
  font-size: 12px; line-height: 1.6; color: var(--ax-faint) !important;
}

@media (max-width: 1100px) {
  body.paper-dashboard .feed-unavailable { grid-template-columns: minmax(0, 1fr); }
  body.paper-dashboard .feed-status { max-width: 520px; }
}
@media (max-width: 720px) {
  body.paper-dashboard .shell { padding-inline: 24px; }
  body.paper-dashboard .topbar { flex-direction: column; align-items: stretch; gap: 10px; }
  body.paper-dashboard .nav { justify-content: flex-start; gap: 0 24px; }
  body.paper-dashboard .feed-unavailable { padding: 44px 0 56px; }
}

/* ------------------------------------------------------------------------
   Research (/research) and security (/security)
   ------------------------------------------------------------------------ */
.atelier[data-art="research"] .dt-research-hero .at-intro { max-width: 30em; text-wrap: pretty; }
.atelier[data-art="research"] .dt-paper-meta { max-width: 400px; font-size: 11px; }
.atelier[data-art="research"] .dt-paper-meta > div { border-top-color: var(--ax-rule); }
.atelier[data-art="research"] .dt-paper-meta dt { color: var(--ax-faint); }
.atelier[data-art="research"] .dt-paper-meta dd { color: var(--ax-ink); }
body.editorial-site .atelier[data-art="research"] .dt-arxiv-link {
  min-height: 56px; border: 1px solid var(--pp-field); border-radius: 3px; background: var(--pp-panel);
  transition: border-color .2s ease, color .2s ease;
}
body.editorial-site .atelier[data-art="research"] .dt-arxiv-link:hover { border-color: var(--ax-signal); color: var(--ax-signal) !important; }
body.editorial-site .atelier[data-art="research"] .dt-arxiv-link:hover .dt-arxiv-text { color: var(--ax-signal); }
.atelier[data-art="research"] .dt-paper-preview figcaption { font-size: 11px; letter-spacing: .08em; color: var(--ax-faint); }

/* Three tests, three columns: the register reads across instead of leaving a gap. */
.atelier[data-art="research"] .at-research-register article { border-top-color: #c9c8c1; }
.atelier[data-art="research"] .at-research-register span { font: 500 11px/1.6 var(--pp-mono); letter-spacing: .12em; }
.atelier[data-art="research"] .at-research-register article p { font-size: 15px; line-height: 1.65; }
.atelier[data-art="research"] .at-research-register article a { font-size: 14px; }
.atelier[data-art="research"] .at-research-register article a:hover { color: var(--ax-signal); }
@media (min-width: 1000px) {
  .atelier[data-art="research"] .at-research-register { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
}
body.editorial-site .atelier[data-art="research"] .discovery-kicker {
  font: 500 11px/1.6 var(--pp-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ax-faint);
}

/* Scope notes and the disclosure policy: readable size, visible links. */
.atelier:is([data-art="research"], [data-art="security"]) .at-method summary { font-size: 15px; }
.atelier:is([data-art="research"], [data-art="security"]) .at-method p { font-size: 15px; line-height: 1.7; }
body.editorial-site .atelier:is([data-art="research"], [data-art="security"]) .at-method p a {
  color: var(--ax-signal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}

/* The provenance plate: printed on paper in front of the horizon, in the signal blue. */
body.editorial-site .atelier[data-art="security"] .dt-security-plate {
  padding: 2px 24px 18px; background: var(--pp-panel); border: 1px solid var(--ax-rule); border-radius: 4px; box-shadow: var(--pp-shadow);
}
.atelier[data-art="security"] .dt-plate-label { border-top: 0; padding: 16px 0 18px; font: 500 11px/1.4 var(--pp-mono); letter-spacing: .1em; color: var(--ax-faint); }
.atelier[data-art="security"] .dt-security-plate .ds-title { fill: var(--ax-ink); }
.atelier[data-art="security"] .dt-security-plate :is(.ds-label, .ds-micro) { fill: var(--ax-faint); }
.atelier[data-art="security"] .dt-security-plate[data-security-focus="0"] .ds-perimeter,
.atelier[data-art="security"] .dt-security-plate[data-security-focus="1"] .ds-core,
.atelier[data-art="security"] .dt-security-plate[data-security-focus="2"] .ds-chain { stroke: var(--ax-signal); }
body.editorial-site .atelier[data-art="security"] .dt-security-description { min-height: 48px; font-size: 13px; line-height: 1.6; color: var(--ax-soft); }
.atelier[data-art="security"] .dt-security-plate figcaption { border-top-color: var(--ax-rule); font-size: 12px; color: var(--ax-faint); }
.atelier[data-art="security"] .at-status-list span {
  font: 500 11px/1.6 var(--pp-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ax-signal);
}
.atelier[data-art="security"] .at-status-list p { font-size: 15px; line-height: 1.65; }

@media (max-width: 760px) {
  body.editorial-site .atelier[data-art="security"] .dt-security-plate { padding: 2px 16px 14px; }
  .atelier[data-art="security"] .dt-plate-label { font-size: 10px; letter-spacing: .04em; padding-bottom: 6px; }
  .atelier[data-art="security"] .dt-security-plate svg { min-height: 0; }
}

/* ------------------------------------------------------------------------
   404: the title on the left, a short directory on the right.
   ------------------------------------------------------------------------ */
.atelier .ax-404 { align-items: center; }
.ax-404-directory {
  padding: 8px clamp(18px, 4vw, 26px) 12px; background: var(--pp-panel); border: 1px solid var(--ax-rule); border-radius: 4px; box-shadow: var(--pp-shadow);
}
.atelier .ax-404-directory h2 {
  max-width: none; margin: 14px 0 6px !important; font: 500 11px/1.6 var(--pp-mono) !important; letter-spacing: .16em !important;
  text-transform: uppercase; color: var(--ax-faint) !important;
}
.ax-404-directory ul { margin: 0; padding: 0; list-style: none; }
.ax-404-directory li + li { border-top: 1px solid var(--ax-rule); }
.ax-404-directory a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: center;
  min-height: 44px; padding: 13px 0; color: var(--ax-ink) !important; text-decoration: none !important;
}
.ax-404-directory a strong { font-weight: 500; font-size: 16px; }
.ax-404-directory a span { grid-column: 1; font-size: 14px; line-height: 1.5; color: var(--ax-soft); text-wrap: pretty; }
.ax-404-directory a .ui-icon { grid-column: 2; grid-row: 1 / span 2; color: var(--ax-faint); transition: transform .2s ease, color .2s ease; }
.ax-404-directory a:hover strong, .ax-404-directory a:hover .ui-icon { color: var(--ax-signal); }
.ax-404-directory a:hover .ui-icon { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .ax-404-directory a .ui-icon { transition: none; } }
