html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
  body { font-family: var(--font-sans); background: #fff; color: var(--color-ink);
         font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

  /* ═══ Layout ═══════════════════════════════════════════════════════════
     Three column widths (§43): the navigation bar and footer run widest at
     1440, page content sits in 1200, and the video demo narrows to 1024 so
     the carousel reads as a focused window rather than a full-bleed band. */
  .wrap { max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
  @media (min-width: 768px) { .wrap { padding-inline: 40px; } }
  .hdr .wrap, footer .wrap { max-width: 1440px; }
  .wrap-video { max-width: 1024px; }
  .sec { padding-block: 88px; }
  @media (min-width: 768px) { .sec { padding-block: 120px; } }

  /* ═══ Type ═════════════════════════════════════════════════════════════ */
  .d1 { font-size: clamp(2.5rem, 5.2vw, 4.25rem); line-height: 1.03; letter-spacing: -0.033em; font-weight: 600; }
  .d2 { font-size: clamp(1.875rem, 3.8vw, 3rem);  line-height: 1.08; letter-spacing: -0.028em; font-weight: 600; }
  .d3 { font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.2;  letter-spacing: -0.02em;  font-weight: 600; }
  .d4 { font-size: 1.0625rem; line-height: 1.4; letter-spacing: -0.011em; font-weight: 600; }
  .lede { font-size: clamp(1.0625rem, 1.1vw, 1.1875rem); line-height: 1.6; color: var(--color-muted); }
  .on-dark .lede { color: var(--color-dark-muted); }
  .body-s { font-size: .9375rem; line-height: 1.62; color: var(--color-muted); }
  .on-dark .body-s { color: var(--color-dark-muted); }
  .eyebrow { font-family: var(--font-mono); font-size: .6875rem; font-weight: 500;
             letter-spacing: .15em; text-transform: uppercase; color: var(--color-faint); }
  .on-dark .eyebrow { color: var(--color-dark-muted); }
  .mono { font-family: var(--font-mono); }

  /* ═══ Surfaces ═════════════════════════════════════════════════════════ */
  .card { background: #fff; border: 1px solid var(--color-rule); border-radius: 12px; }
  .on-dark .card { background: var(--color-ink-2); border-color: rgba(255,255,255,.10); }
  /* A single dark card on a light ground: pairs with the on-dark class on
     the card itself so its text, pills and links pick up the dark variants. */
  .card-dark { background: var(--color-ink); border-color: rgba(255,255,255,.10);
               color: var(--color-dark-text); }
  section.on-dark { background: var(--color-ink); color: var(--color-dark-text); }

  /* Lifecycle cells are white cards on the ink ground: the section stays
     dark for its heading and pills, but each step box flips to paper and
     takes the light-ground text colours back. */
  #lifecycle ol li { background: #fff; color: var(--color-ink); }
  #lifecycle ol li .mono { color: var(--color-faint); }
  #lifecycle ol li .body-s { color: var(--color-muted); }

  /* The trust cards stay paper when their section goes ink: white boxes
     with light-ground text, like the lifecycle grid. */
  #trust-model dl .card { background: #fff; border-color: var(--color-rule); color: var(--color-ink); }
  #trust-model dl .card .body-s { color: var(--color-muted); }

  /* ═══ Buttons - one filled primary per section (§35) ═══════════════════ */
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
         min-height: 46px; padding-inline: 1.25rem; border-radius: 10px; cursor: pointer;
         font-size: .9375rem; font-weight: 500; letter-spacing: -0.006em;
         transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
  .btn-primary { background: var(--color-ink); color: #fff; }
  .btn-primary:hover { background: #2b2b2f; }
  .btn-ghost { background: #fff; color: var(--color-ink); border: 1px solid var(--color-rule); }
  .btn-ghost:hover { background: var(--color-surface); border-color: #d4d4d8; }
  .on-dark .btn-ghost { background: transparent; color: var(--color-dark-text); border-color: rgba(255,255,255,.20); }
  .on-dark .btn-ghost:hover { background: rgba(255,255,255,.06); }
  /* Ink is invisible on an ink ground, so the dark sections invert instead. */
  .on-dark .btn-primary { background: #fff; color: var(--color-ink); }
  .on-dark .btn-primary:hover { background: #e4e4e7; }
  /* The header's primary button follows the header's own ground: when the
     sticky header goes dark over a dark section, the filled button inverts
     with it instead of disappearing into black-on-black. */
  .nav-dark .btn-primary { background: #fff; color: var(--color-ink); }
  .nav-dark .btn-primary:hover { background: #e4e4e7; }
  .btn-sm { min-height: 40px; padding-inline: .9rem; font-size: .875rem; border-radius: 9px; }
  /* The header CTA is scoped away from the stock small button so it can carry
     a touch more height and padding without touching the mockup buttons
     inside the product frames. */
  .hdr .btn-sm { min-height: 42px; padding-inline: 1rem; }

  .link { color: var(--color-blue); font-weight: 500; text-decoration: none;
          display: inline-flex; align-items: center; gap: .375rem;
          transition: gap .18s ease, color .18s ease; min-height: 44px; }
  .link:hover { gap: .625rem; color: var(--color-blue-strong); }
  .on-dark .link { color: var(--color-blue-dark); }
  .on-dark .link:hover { color: #e4e4e7; }

  :focus-visible { outline: 2px solid var(--color-blue); outline-offset: 3px; border-radius: 6px; }
  .on-dark :focus-visible, .nav-dark :focus-visible { outline-color: var(--color-blue-dark); }
  .skip { position: absolute; left: 20px; top: -60px; z-index: 100; background: #fff;
          border: 1px solid var(--color-rule); border-radius: 8px; padding: .7rem 1rem;
          font-size: .875rem; font-weight: 500; transition: top .16s ease; }
  .skip:focus { top: 12px; }

  /* ═══ Status pills - icon + word + colour, in that order ═══════════════ */
  .pill { display: inline-flex; align-items: center; gap: .3rem; border-radius: 6px;
          padding: .2rem .5rem; font-size: .6875rem; font-weight: 500; line-height: 1.4;
          white-space: nowrap; border: 1px solid transparent; }
  .pill svg { width: 11px; height: 11px; flex: none; }
  /* Backgrounds are literals, not theme vars: the browser build of Tailwind
     prunes @theme variables it never sees used in utilities, and these are
     only referenced from hand-written rules. */
  .pill-ok      { background: #f4f4f5; color: var(--color-ok);   border-color: #d4d4d8; }
  .pill-warn    { background: #f4f4f5; color: var(--color-warn); border-color: #d4d4d8; }
  .pill-bad     { background: #e4e4e7; color: var(--color-bad);  border-color: #a1a1aa; }
  .pill-blue    { background: #f4f4f5; color: var(--color-ink); border-color: #d4d4d8; }
  .pill-neutral { background: #f3f4f6; color: var(--color-neutral); border-color: #e4e4e7; }
  .on-dark .pill-ok      { background: rgba(255,255,255,.12);  color: #f4f4f5; border-color: rgba(255,255,255,.28); }
  .on-dark .pill-warn    { background: rgba(255,255,255,.12);  color: #d4d4d8; border-color: rgba(255,255,255,.28); }
  .on-dark .pill-bad     { background: rgba(255,255,255,.12); color: #d4d4d8; border-color: rgba(255,255,255,.28); }
  .on-dark .pill-blue    { background: rgba(255,255,255,.13); color: var(--color-dark-text); border-color: rgba(255,255,255,.3); }
  .on-dark .pill-neutral { background: rgba(255,255,255,.07); color: #a1a1aa; border-color: rgba(255,255,255,.14); }
  /* …but pills sitting on the light mock chips inside a dark card keep the
     light-ground palette - the surface beneath them is white, not ink. */
  .card-dark .pill-blue { background: #f4f4f5; color: var(--color-ink); border-color: #d4d4d8; }
  .card-dark .pill-ok   { background: #f4f4f5; color: var(--color-ok); border-color: #d4d4d8; }

  /* Demonstration data is always labelled (§45). */
  .demo-tag { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--font-mono);
              font-size: .625rem; letter-spacing: .08em; text-transform: uppercase;
              color: var(--color-faint); }
  .on-dark .demo-tag { color: var(--color-dark-muted); }

  /* ═══ Reveal ═══════════════════════════════════════════════════════════ */
  .rv { opacity: 0; transform: translate3d(0,14px,0);
        transition: opacity .55s cubic-bezier(.22,.61,.36,1), transform .55s cubic-bezier(.22,.61,.36,1);
        transition-delay: var(--d, 0ms); }
  .rv.in { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) {
    .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
                             transition-duration: .01ms !important; }
  }


  /* ═══ Header ═══════════════════════════════════════════════════════════ */
  .hdr { position: sticky; top: 0; z-index: 60; border-bottom: 1px solid transparent;
         transition: background-color .3s ease, border-color .3s ease, color .3s ease; }
  .hdr.is-stuck { background: rgba(255,255,255,.94); backdrop-filter: saturate(1.6) blur(12px);
                  border-bottom-color: var(--color-rule); }
  .hdr.nav-dark { color: var(--color-dark-text); }
  .hdr.nav-dark.is-stuck { background: rgba(11,13,16,.92); border-bottom-color: rgba(255,255,255,.1); }

  .logo { font-family: var(--font-mono); font-weight: 600; letter-spacing: -0.025em; }
  .logo-dot { color: var(--color-blue); }
  .nav-dark .logo-dot, .on-dark .logo-dot, footer .logo-dot { color: var(--color-blue-dark); }
  footer .eyebrow { font-size: .875rem; font-weight: 600; }

  .navlink { display: inline-flex; align-items: center; gap: .375rem; height: 44px; padding-inline: .6875rem;
             border-radius: 8px; font-size: .9375rem; font-weight: 500; color: var(--color-muted);
             text-decoration-line: underline; text-decoration-color: transparent;
             text-decoration-thickness: 2px; text-underline-offset: 7px;
             transition: color .18s ease, text-decoration-color .18s ease; }
  .navlink:hover { color: var(--color-ink); text-decoration-color: var(--color-ink); }
  /* Pricing sits in the IA before its page exists. It is rendered as text,
     not an anchor, so it never ships as a dead href - and it is dimmed so it
     does not invite the click it cannot answer. */
  .navlink-soon, .navlink-soon:hover { color: var(--color-faint); cursor: default; }
  .nav-dark .navlink { color: #a1a1aa; }
  .nav-dark .navlink:hover { color: #fff; text-decoration-color: #fff; }
  .nav-dark .navlink-soon, .nav-dark .navlink-soon:hover { color: #696970; }
  .navlink svg { width: 12px; height: 12px; opacity: .75; transition: transform .18s ease; }
  .menu-item:hover .navlink svg, .menu-item:focus-within .navlink svg { transform: rotate(180deg); }

  .menu-panel { position: absolute; top: calc(100% + 6px); left: 0; z-index: 70;
                opacity: 0; visibility: hidden; transform: translate3d(0,-4px,0) scale(.99);
                transform-origin: top left;
                transition: opacity .2s ease, transform .2s ease, visibility .2s;
                background: #fff; color: var(--color-ink); border: 1px solid var(--color-rule);
                border-radius: 12px; box-shadow: 0 12px 32px -12px rgba(11,13,16,.18);
                padding: .5rem; min-width: 280px; }
  .menu-item:hover > .menu-panel, .menu-item:focus-within > .menu-panel,
  .menu-item.is-open > .menu-panel {
    opacity: 1; visibility: visible; transform: translate3d(0,0,0) scale(1); }
  .menu-item.is-dismissed > .menu-panel { opacity: 0; visibility: hidden; transform: translate3d(0,-4px,0) scale(.99); }
  .menu-link { display: block; padding: .625rem .75rem; border-radius: 8px; min-height: 44px;
               transition: background-color .15s ease; }
  .menu-link:hover { background: var(--color-surface); }
  .menu-link b { display: block; font-size: .875rem; font-weight: 500; }
  .menu-link span { display: block; font-size: .75rem; color: var(--color-faint); margin-top: .1rem; }
  @media (max-width: 1023px) { .menu-panel { display: none; } }
  /* ═══ Mobile drawer ════════════════════════════════════════════════════ */
  .drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
  .drawer[data-open="true"] { visibility: visible; }
  .drawer-scrim { position: absolute; inset: 0; background: rgba(11,13,16,.4); opacity: 0;
                  transition: opacity .24s ease; }
  .drawer[data-open="true"] .drawer-scrim { opacity: 1; }
  .drawer-panel { position: absolute; inset-block: 0; right: 0; width: min(400px, 92vw);
                  background: #fff; transform: translate3d(100%,0,0);
                  transition: transform .28s cubic-bezier(.22,.61,.36,1);
                  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; }
  .drawer[data-open="true"] .drawer-panel { transform: none; }
  .drawer details > summary { list-style: none; cursor: pointer; display: flex; align-items: center;
                              justify-content: space-between; min-height: 52px; font-size: 1rem; font-weight: 500; }
  .drawer details > summary::-webkit-details-marker { display: none; }
  .drawer details[open] > summary svg { transform: rotate(180deg); }
  .drawer summary svg { width: 14px; height: 14px; color: var(--color-faint); transition: transform .2s ease; }
  .drawer-sub a { min-height: 44px; display: flex; align-items: center; font-size: .9375rem; color: var(--color-muted); }
  .drawer-sub a:hover { color: var(--color-blue); }

  /* ═══ FAQ ══════════════════════════════════════════════════════════════ */
  .faq > summary { list-style: none; cursor: pointer; display: flex; align-items: center;
                   justify-content: space-between; gap: 1.5rem; min-height: 64px;
                   font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.011em; }
  .faq > summary::-webkit-details-marker { display: none; }
  .faq summary .ico { flex: none; width: 18px; height: 18px; position: relative; }
  .faq summary .ico::before, .faq summary .ico::after {
    content: ""; position: absolute; background: var(--color-faint); border-radius: 1px;
    transition: transform .2s ease, opacity .2s ease; }
  .faq summary .ico::before { inset: 8px 0 8px 0; height: 2px; }
  .faq summary .ico::after  { inset: 0 8px 0 8px; width: 2px; }
  .faq[open] summary .ico::after { transform: rotate(90deg); opacity: 0; }


  /* ═══ Product frame - one consistent chrome for every screenshot ═══════ */
  .frame { border: 1px solid var(--color-rule); border-radius: 14px; background: #fff; overflow: hidden; }
  .on-dark .frame { border-color: rgba(255,255,255,.1); background: var(--color-ink-2); }
  .frame-bar { display: flex; align-items: center; gap: .5rem; padding: .625rem .875rem;
               border-bottom: 1px solid var(--color-rule); background: var(--color-surface); }
  .on-dark .frame-bar { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.03); }
  .frame-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-rule); flex: none; }
  .on-dark .frame-dot { background: rgba(255,255,255,.16); }
  .urlbar { display: flex; align-items: center; gap: .5rem; flex: 1; min-width: 0; background: #fff;
            border: 1px solid var(--color-rule); border-radius: 8px; padding: .35rem .7rem;
            font-size: .75rem; color: var(--color-muted); }

  /* Footer links are 18px of text on desktop, which is fine for a mouse; on
     touch widths they get a real row to hit. */
  @media (max-width: 767px) { footer nav li > a { display: flex; align-items: center; min-height: 40px; } }

  .grid-bg { background-image: linear-gradient(var(--color-rule-soft) 1px, transparent 1px),
                               linear-gradient(90deg, var(--color-rule-soft) 1px, transparent 1px);
             background-size: 48px 48px; }
  /* On the ink ground the grid is the hero's dashed bead pattern: white
     dots-and-dashes in 150px cells, drawn as an SVG tile, dissolving to
     nothing before the bottom of the section. */
  .on-dark .grid-bg {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.13' stroke-width='1.4' stroke-linecap='round' stroke-dasharray='1 8'%3E%3Cpath d='M0 .7h150'/%3E%3Cpath d='M.7 0v150'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 150px 150px;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 35%, transparent 88%);
            mask-image: linear-gradient(to bottom, #000 0%, #000 35%, transparent 88%); }


  /* ═══ Verification entry ═══════════════════════════════════════════════
     The task owns the fold. Nothing sells anything above this form (§23). */
  .ventry { padding-block: 56px 40px; }
  @media (min-width: 768px) { .ventry { padding-block: 76px 52px; } }

  .vform { display: flex; flex-direction: column; gap: 10px; }
  @media (min-width: 640px) { .vform { flex-direction: row; align-items: flex-start; } }

  .vwrap { position: relative; flex: 1; min-width: 0; }
  .vinput { width: 100%; height: 56px; padding: 0 44px 0 14px; border-radius: 10px;
            border: 1px solid var(--color-rule); background: #fff; color: var(--color-ink);
            font-family: var(--font-mono); font-size: .9375rem; letter-spacing: -.01em;
            transition: border-color .15s ease, box-shadow .15s ease; }
  .vinput::placeholder { font-family: var(--font-sans); color: #a1a1aa; letter-spacing: 0; }
  .vinput:hover { border-color: #d4d4d8; }
  .vinput:focus { outline: none; border-color: var(--color-blue);
                  box-shadow: 0 0 0 3px rgba(11,13,16,.14); }
  .vinput[aria-invalid="true"] { border-color: var(--color-bad); }
  .vinput[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(185,28,28,.13); }
  .vsubmit { height: 56px; flex: none; padding-inline: 24px; }
  @media (max-width: 639px) { .vsubmit { width: 100%; } }

  /* Clear control sits inside the field, and stays a real 44px target. */
  .vclear { position: absolute; right: 6px; top: 6px; width: 44px; height: 44px;
            display: none; place-items: center; border-radius: 8px; color: var(--color-faint); }
  .vclear:hover { background: var(--color-surface); color: var(--color-ink); }
  .vform.has-value .vclear { display: grid; }

  .vhelp { font-size: .8125rem; color: var(--color-faint); }
  .verr  { display: none; align-items: flex-start; gap: .4rem; margin-top: 8px;
           font-size: .8125rem; color: var(--color-bad); }
  .verr svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
  .verr.on { display: flex; }

  /* Demonstration shortcuts - labelled, never dressed up as customer proof. */
  .vtry { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  /* 44px, not the 32px a chip normally takes: this row is the primary
     control on a page strangers open on a phone, so it meets the enhanced
     target size rather than the minimum. */
  .vchip { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px;
           padding: 0 14px; border-radius: 999px; border: 1px solid var(--color-rule);
           background: #fff; font-size: .75rem; color: var(--color-muted);
           white-space: nowrap; transition: border-color .15s ease, color .15s ease; }
  .vchip:hover { border-color: #d4d4d8; color: var(--color-ink); }
  .vchip .dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }

  /* ═══ Result ═══════════════════════════════════════════════════════════
     One panel, seven states. The chrome never moves between them, so the
     status is the only thing the eye has to compare. */
  .result { border: 1px solid var(--color-rule); border-radius: 16px; background: #fff;
            overflow: hidden; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
  .result-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
                padding: 14px 18px; border-bottom: 1px solid var(--color-rule-soft);
                background: var(--color-surface); }
  .result-body { padding: 18px; }
  @media (min-width: 768px) { .result-body { padding: 24px; } }

  .result-note { display: flex; align-items: flex-start; gap: .5rem; border-radius: 10px;
                 padding: 10px 12px; font-size: .8125rem; line-height: 1.55; }
  .result-note svg { width: 14px; height: 14px; flex: none; margin-top: 3px; }
  .note-ok      { background: #f4f4f5; color: #18181b; }
  .note-warn    { background: #f4f4f5; color: #3f3f46; }
  .note-bad     { background: #e4e4e7; color: #18181b; }
  .note-blue    { background: #f4f4f5; color: #18181b; }
  .note-neutral { background: #f3f4f6; color: #52525b; }

  /* At the wider column the field list and the history sit side by side.
     One 1024px-wide column would strand every value against the far edge. */
  .result-split { display: grid; gap: 22px; margin-top: 24px; }
  .result-history { border-top: 1px solid var(--color-rule-soft); padding-top: 18px; }
  @media (min-width: 880px) {
    .result-split { grid-template-columns: minmax(0,1fr) 300px; gap: 40px; }
    .result-history { border-top: 0; border-left: 1px solid var(--color-rule-soft);
                      padding-top: 0; padding-left: 32px; }
  }

  .frow { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0;
          border-top: 1px solid var(--color-rule-soft); font-size: .8125rem; }
  .frow:first-child { border-top: 0; }
  .frow dt { color: var(--color-faint); flex: none; }
  .frow dd { font-weight: 500; text-align: right; min-width: 0; word-break: break-word; }

  /* Skeleton - reserves the panel's height so the result never shifts the
     page when it lands (CLS), and holds still under reduced motion. */
  .skel { border-radius: 6px; background: linear-gradient(90deg,#e4e4e7 25%,#e4e4e7 37%,#e4e4e7 63%);
          background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
  @keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

  /* ═══ Status dictionary ════════════════════════════════════════════════ */
  .dict { display: grid; gap: 0; }
  .dict-row { display: grid; gap: 6px 20px; padding: 18px 0;
              border-top: 1px solid var(--color-rule-soft); }
  .dict-row:first-child { border-top: 0; }
  @media (min-width: 768px) { .dict-row { grid-template-columns: 190px 1fr; align-items: start; } }

  .timeline { position: relative; padding-left: 20px; }
  .timeline::before { content: ""; position: absolute; left: 3px; top: 6px; bottom: 6px;
                      width: 1px; background: var(--color-rule); }
  .tl-item { position: relative; padding-block: 7px; font-size: .8125rem; }
  .tl-item::before { content: ""; position: absolute; left: -20px; top: 13px; width: 7px; height: 7px;
                     border-radius: 50%; background: var(--color-rule); box-shadow: 0 0 0 3px #fff; }
  .tl-item:first-child::before { background: var(--color-blue); }

  @media (prefers-reduced-motion: reduce) {
    .skel { animation: none; background: #e4e4e7; }
    .vinput, .vchip { transition: none; }
  }

  /* ═══ Public credential ════════════════════════════════════════════════
     The most widely distributed Arrota surface (§24). Someone arrives here
     from a QR code, an email or a CV with no idea what Arrota is, so the
     record answers three things before anything else: what it is, who
     issued it, and whether it still stands. */
  .rec-page { padding-block: 28px 72px; }

  /* About this record: deliberately quiet - a hairline and small type, no
     card, so the record above stays the focus. */
  .rec-about { display: grid; gap: 18px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--color-rule); }
  @media (min-width: 768px) { .rec-about { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px; margin-top: 32px; } }
  .rec-about-h { font-size: .8125rem; font-weight: 600; line-height: 1.4; color: var(--color-ink); }
  .rec-about p { margin-top: 4px; font-size: .8125rem; line-height: 1.6; color: var(--color-muted); }

  /* Closing CTA, as on the homepage: a floating on-dark card in a light
     section, so its links are scoped here. */
  #final-cta { padding-bottom: 80px; }
  @media (min-width: 768px) { #final-cta { padding-bottom: 104px; } }
  #final-cta .link { color: #fafafa; }
  #final-cta .link:hover { color: #e4e4e7; gap: .375rem; }
  #final-cta .link span { transition: transform .18s ease; }
  #final-cta .link:hover span { transform: translateX(3px); }
  .rec-back { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px;
              font-size: .8125rem; color: var(--color-muted); }
  .rec-back:hover { color: var(--color-ink); }

  .rec { border: 1px solid var(--color-rule); border-radius: 18px; background: #fff;
         overflow: hidden; box-shadow: 0 1px 2px rgba(16,24,40,.05); }

  /* The canonical address, shown rather than hidden: the URL is part of the
     credential and is meant to outlive the issuing relationship (§4). */
  .rec-url { display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
             padding: 12px 18px; border-bottom: 1px solid var(--color-rule-soft);
             background: var(--color-surface); font-size: .75rem; }

  /* Status leads. Tone carries a word and an icon with it, never colour alone. */
  .rec-banner { display: flex; align-items: flex-start; gap: .7rem;
                padding: 18px; border-bottom: 1px solid var(--color-rule-soft); }
  @media (min-width: 768px) { .rec-banner { padding: 22px 26px; } }
  .rec-banner svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
  .rec-banner .lbl { font-weight: 600; }
  .ban-ok      { background: #f4f4f5; color: #18181b; }
  .ban-warn    { background: #f4f4f5; color: #3f3f46; }
  .ban-bad     { background: #e4e4e7; color: #18181b; }
  .ban-blue    { background: #f4f4f5; color: #18181b; }
  .ban-neutral { background: #f3f4f6; color: #52525b; }

  .rec-head { padding: 22px 18px; }
  @media (min-width: 768px) { .rec-head { padding: 30px 26px; } }

  .rec-grid { display: grid; gap: 26px; padding: 0 18px 22px; }
  @media (min-width: 768px) { .rec-grid { padding: 0 26px 30px; } }
  @media (min-width: 900px) { .rec-grid { grid-template-columns: minmax(0,1fr) 300px; gap: 40px; } }

  .rec-aside { display: grid; gap: 16px; align-content: start; }
  .rec-panel { border: 1px solid var(--color-rule); border-radius: 12px; padding: 16px; }

  .rec-act { display: grid; gap: 8px; }
  .rec-act .btn { width: 100%; }
  /* Secondary record actions: quieter text links under the certificate
     buttons. "Copy link" confirms in its own label. */
  .rec-act-more { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px;
                  margin-top: 4px; padding: 12px 4px 0; border-top: 1px solid var(--color-rule-soft); }
  .rec-link { font-size: .8125rem; font-weight: 500; color: var(--color-muted); cursor: pointer;
              text-decoration: underline; text-decoration-color: var(--color-rule); text-underline-offset: 3px; }
  .rec-link:hover { color: var(--color-ink); text-decoration-color: currentColor; }
  .rec-link:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 3px; border-radius: 2px; }

  .rec-sec { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--color-rule-soft); }

  /* ═══ Certificate ══════════════════════════════════════════════════════
     The certificate as the issuer designed it in the template editor: A4
     portrait, drawn from the pinned template and the record's data rather
     than a frozen PDF, so the current status can be stamped onto the
     certificate itself. Sizes are container units, so every screen shows
     the same proportions the printer does. */
  /* Closed until "View certificate"; it opens at the foot of the record,
     below the details, on an ink ground so the paper reads as a document,
     and the same button closes it. */
  .cert-stage { padding: 30px 18px 32px; background: var(--color-ink); }
  .cert-stage .cert-paper { box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 32px 64px -24px rgba(0,0,0,.9); }
  .cert-stage:not([hidden]) { animation: cert-in .24s cubic-bezier(.2,.7,.2,1); }
  @keyframes cert-in { from { opacity: 0; transform: translateY(-6px); } }
  @media (prefers-reduced-motion: reduce) { .cert-stage:not([hidden]) { animation: none; } }
  @media (min-width: 768px) { .cert-stage { padding: 44px 26px 46px; } }
  .cert-wrap { max-width: 520px; margin-inline: auto; }
  .cert-paper { position: relative; container-type: inline-size; aspect-ratio: 210 / 297; overflow: hidden;
                display: grid; grid-template-rows: auto 1fr auto 1fr auto; padding: 8% 9%; background: #fff; color: #0b0d10;
                border-radius: 2px; box-shadow: 0 2px 6px rgba(16,24,40,.06), 0 24px 48px -16px rgba(16,24,40,.28); }
  .cert-paper.is-framed::before { content: ""; position: absolute; inset: 3.2cqw; pointer-events: none;
                                  border: .5cqw double var(--cert-accent); }
  .cert-head { grid-row: 1; text-align: center; }
  .cert-logo { display: inline-flex; align-items: center; gap: 1.6cqw; }
  .cert-logo .mark { display: grid; place-items: center; width: 7.4cqw; height: 7.4cqw; border-radius: 1.4cqw;
                     background: var(--cert-accent); color: #fff; font-size: 2.7cqw; font-weight: 600; }
  .cert-logo .word { font-size: 2.7cqw; font-weight: 600; letter-spacing: .02em; }
  .cert-title { margin-top: 5cqw; font-size: 4.6cqw; font-weight: 600; letter-spacing: -.01em; }
  .cert-lead { margin-top: 1.4cqw; font-size: 2cqw; letter-spacing: .18em; text-transform: uppercase; color: #696970; }
  .cert-body { grid-row: 3; padding-block: 5cqw; text-align: center; }
  .cert-name { font-size: 6.2cqw; line-height: 1.2; }
  .cert-rule { width: 44%; height: 1px; margin: 2.6cqw auto 0; background: #d4d4d8; }
  .cert-cred { margin-top: 3.4cqw; font-size: 2.5cqw; line-height: 1.6; color: #52525b; }
  .cert-cred b { font-weight: 500; color: #0b0d10; }
  .cert-foot { grid-row: 5; }
  .cert-sigrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 4.3cqw; }
  .cert-sig { flex: 1; min-width: 0; }
  /* Typeset, never a handwriting image: a public signature image is a
     forgery kit, and the signature recorded at issuance is the proof. */
  .cert-sig .signed { font-size: 1.43cqw; font-style: italic; color: #696970; }
  .cert-sig .line { height: 1px; max-width: 26.8cqw; margin-top: 1cqw; background: #a1a1aa; }
  .cert-sig .role { margin-top: 1.1cqw; font-size: 1.61cqw; letter-spacing: .12em; text-transform: uppercase; color: #696970; }
  .cert-qr { flex: none; text-align: right; }
  .cert-qr svg { display: block; width: 11cqw; height: 11cqw; margin-left: auto; }
  .cert-qr p { margin-top: .7cqw; font-family: var(--font-mono); font-size: 1.25cqw; letter-spacing: .1em;
               text-transform: uppercase; color: #696970; }
  .cert-meta { display: flex; flex-wrap: wrap; gap: .7cqw 4.3cqw; margin-top: 3.6cqw; padding-top: 2.1cqw;
               border-top: 1px solid #d4d4d8; font-family: var(--font-mono); font-size: 1.43cqw; color: #696970; }
  .cert-meta dt { display: inline; text-transform: uppercase; letter-spacing: .1em; }
  .cert-meta dd { display: inline; }
  /* The status on the certificate itself, so a screenshot of a withdrawn
     or replaced record cannot pass for a current one. */
  .cert-band { position: absolute; top: 0; left: 0; right: 0; padding: 1.4cqw 3cqw; text-align: center;
               font-size: 1.61cqw; font-weight: 600; letter-spacing: .03em; color: #fff; }
  .cert-stamp { grid-row: 4; align-self: center; height: 0; position: relative; z-index: 1;
                display: flex; align-items: center; justify-content: center; pointer-events: none; }
  .cert-stamp span { transform: rotate(-14deg); padding: 1.6cqw 4.3cqw; border: .7cqw solid currentColor;
                     border-radius: 1.6cqw; background: rgba(255,255,255,.6); white-space: nowrap;
                     font-size: 6.2cqw; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .82; }
  .stamp-bad { color: #18181b; }     .band-bad { background: #18181b; }
  .stamp-warn { color: #3f3f46; }    .band-warn { background: #3f3f46; }
  .stamp-blue { color: #09090b; }    .band-blue { background: #09090b; }
  .stamp-neutral { color: #52525b; } .band-neutral { background: #52525b; }
  .cert-print { display: none; }
  .cert-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

  /* ═══ Not found ════════════════════════════════════════════════════════
     A lifecycle state renders as itself; only a genuinely unknown identifier
     reaches this, and it still must not disclose whether a private record
     exists (Guide §8). */
  .nf { text-align: center; padding: 44px 20px; }

  /* ═══ Print ════════════════════════════════════════════════════════════
     The "Print certificate" action prints the certificate alone, edge to
     edge on one A4 sheet, from a copy made at click time, so it prints even
     while the on-page certificate is closed. The browser's own print still
     prints the record: a printed record has to carry its own provenance, so
     the canonical URL is forced visible and the site chrome is dropped. */
  @page cert { size: A4; margin: 0; }
  @media print {
    .hdr, .drawer, footer, .rec-back, .rec-act, .rec-print-hide { display: none !important; }
    .rec { border-color: #999; box-shadow: none; border-radius: 0; }
    .rec-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .rec-url { background: #fff; }
    .ban-ok, .ban-warn, .ban-bad, .ban-blue, .ban-neutral {
      background: #fff !important; color: #000 !important;
      border-bottom: 1px solid #999; }
    .cert-stage { background: #fff; border-top: 1px solid #999; }
    .cert-wrap { break-inside: avoid; }
    .cert-paper { box-shadow: none; border: 1px solid #999; }
    a[href]::after { content: ""; }
    body { background: #fff; }
    body.print-cert > :not(.cert-print) { display: none !important; }
    body.print-cert > .cert-print { display: block; page: cert; }
    .cert-print .cert-wrap { max-width: none; margin: 0; }
    .cert-print .cert-paper { width: 210mm; height: 296.9mm; aspect-ratio: auto; border: 0; border-radius: 0;
                              box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  }