/* STILL HERE, the site's styles. Every value comes from src/css/tokens.css (DESIGN.md); no colour
   is written here. Square corners, no shadows, hierarchy by size, weight and space.
   (Jules, 2026-10-04) */

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

html {
  background: var(--sh-color-canvas);
  color: var(--sh-color-graphite);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--sh-color-canvas);
  color: var(--sh-color-graphite);
  font-family: var(--sh-type-body-font-family);
  font-size: var(--sh-type-body-font-size);
  font-weight: var(--sh-type-body-font-weight);
  line-height: var(--sh-type-body-line-height);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* the footer sits at the bottom of a page shorter than the window */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body > main {
  flex: 1 0 auto;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* A photograph that did not arrive: offline.js wraps it in .img-frame and lays its description
   over the box, because some browsers paint nothing legible there. (Jules, 2026-10-05) */
.img-frame {
  display: block;
  position: relative;
}

.img-missing-alt {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sh-space-md);
  overflow: hidden;
  background: var(--sh-color-surface);
  border: 1px solid var(--sh-color-hairline);
  color: var(--sh-color-graphite-muted);
  font-family: var(--sh-type-body-sm-font-family);
  font-size: var(--sh-type-body-sm-font-size);
  font-weight: var(--sh-type-body-sm-font-weight);
  line-height: var(--sh-type-body-sm-line-height);
  text-align: center;
  overflow-wrap: anywhere;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

:focus-visible {
  outline: 3px solid var(--sh-color-focus);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--sh-space-content-max) + 2 * var(--sh-space-gutter-mobile));
  margin: 0 auto;
  padding: 0 var(--sh-space-gutter-mobile);
}

@media (min-width: 1024px) {
  .wrap {
    max-width: calc(var(--sh-space-content-max) + 2 * var(--sh-space-gutter-desktop));
    padding: 0 var(--sh-space-gutter-desktop);
  }
}

/* ── Type ───────────────────────────────────────────────────────────────────────────────────── */
.label {
  font-family: var(--sh-type-label-font-family);
  font-size: var(--sh-type-label-font-size);
  font-weight: var(--sh-type-label-font-weight);
  line-height: var(--sh-type-label-line-height);
  letter-spacing: var(--sh-type-label-letter-spacing);
  text-transform: uppercase;
  color: var(--sh-color-graphite-muted);
}

.title {
  font-family: var(--sh-type-title-font-family);
  font-size: var(--sh-type-title-font-size);
  font-weight: var(--sh-type-title-font-weight);
  line-height: var(--sh-type-title-line-height);
}

.body-sm {
  font-size: var(--sh-type-body-sm-font-size);
  line-height: var(--sh-type-body-sm-line-height);
}

.headline {
  font-family: var(--sh-type-headline-font-family);
  font-size: var(--sh-type-headline-font-size);
  font-weight: var(--sh-type-headline-font-weight);
  line-height: var(--sh-type-headline-line-height);
  letter-spacing: var(--sh-type-headline-letter-spacing);
}

.display {
  margin: 0;
  font-family: var(--sh-type-display-sm-font-family);
  font-size: var(--sh-type-display-sm-font-size);
  font-weight: var(--sh-type-display-sm-font-weight);
  line-height: var(--sh-type-display-sm-line-height);
  letter-spacing: var(--sh-type-display-sm-letter-spacing);
}

@media (min-width: 1024px) {
  .display {
    font-size: var(--sh-type-display-lg-font-size);
    line-height: var(--sh-type-display-lg-line-height);
    letter-spacing: var(--sh-type-display-lg-letter-spacing);
  }
}

/* the small green registration mark beside a graphite label (sh-047: never green text) */
.tick {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: var(--sh-radius-full);
  background: var(--sh-color-verification-green);
  vertical-align: 1px;
}

/* ── Header ─────────────────────────────────────────────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--sh-color-hairline);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: var(--sh-space-lg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  font-family: var(--sh-type-display-lg-font-family);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  line-height: 1;
}

.brand img {
  width: 30px;
  height: 30px;
  margin-right: 12px;
}

.brand sup {
  font-size: 15px;
  font-weight: 600;
  line-height: 0;
  vertical-align: 5px;
  margin-left: 0;
}

.menu-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 2px solid var(--sh-color-graphite);
  border-radius: var(--sh-radius-none);
  background: var(--sh-color-canvas);
  color: var(--sh-color-graphite);
  font: inherit;
  font-size: var(--sh-type-body-sm-font-size);
  cursor: pointer;
}

.menu {
  display: none;
}

.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu a {
  text-decoration: none;
}

.menu a:hover,
.menu a[aria-current='page'] {
  text-decoration: underline;
}

/* the phone menu: a full-screen list, closed by the button or Escape */
.menu.is-open {
  display: block;
  position: fixed;
  inset: 73px 0 0 0;
  z-index: 10;
  background: var(--sh-color-canvas);
  padding: var(--sh-space-lg) var(--sh-space-gutter-mobile);
}

.menu.is-open li + li {
  border-top: 1px solid var(--sh-color-hairline);
}

.menu.is-open a {
  display: block;
  padding: 14px 0;
  font-family: var(--sh-type-headline-font-family);
  font-size: 24px;
  font-weight: 600;
}

@media (min-width: 1024px) {
  .menu-button {
    display: none;
  }

  .menu {
    display: block;
  }

  .menu ul {
    display: flex;
    gap: 28px;
  }

  .menu a {
    font-size: var(--sh-type-body-sm-font-size);
  }
}

/* ── Footer ─────────────────────────────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: var(--sh-space-section);
  background: var(--sh-color-primary);
  color: var(--sh-color-on-primary);
  font-size: var(--sh-type-body-sm-font-size);
  line-height: var(--sh-type-body-sm-line-height);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sh-space-lg) var(--sh-space-xxl);
  justify-content: space-between;
  align-items: baseline;
  padding-top: var(--sh-space-xxl);
  padding-bottom: var(--sh-space-xxl);
}

.site-footer p {
  margin: 0;
}

.site-footer .footer-brand {
  font-family: var(--sh-type-display-lg-font-family);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sh-space-md) var(--sh-space-xl);
}

.site-footer a {
  color: var(--sh-color-on-primary);
}

/* ── Home: the ritual ───────────────────────────────────────────────────────────────────────── */
.ritual {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sh-space-lg);
  padding-top: var(--sh-space-lg);
}

.ritual-chair {
  order: -1;
  margin: 0;
}

.ritual-chair img {
  width: auto;
  height: 232px;
  margin: 0 auto;
}

.ritual-chair .img-frame {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.ritual-copy .lede {
  margin: var(--sh-space-md) 0 0;
  color: var(--sh-color-graphite-muted);
  max-width: var(--sh-space-text-max);
}

.check {
  margin-top: var(--sh-space-lg);
}

.check-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check input {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 16px 20px;
  border: 2px solid var(--sh-color-graphite);
  border-radius: var(--sh-radius-none);
  background: var(--sh-color-canvas);
  color: var(--sh-color-graphite);
  font-family: var(--sh-type-headline-font-family);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: var(--sh-type-headline-letter-spacing);
  -webkit-appearance: none;
  appearance: none;
}

.check input::placeholder {
  color: var(--sh-color-graphite-muted);
  opacity: 1;
}

.button-primary {
  margin: 0;
  padding: 16px 28px;
  border: 2px solid var(--sh-color-primary);
  border-radius: var(--sh-radius-none);
  background: var(--sh-color-primary);
  color: var(--sh-color-on-primary);
  font-family: var(--sh-type-title-font-family);
  font-size: var(--sh-type-title-font-size);
  font-weight: var(--sh-type-title-font-weight);
  line-height: var(--sh-type-title-line-height);
  white-space: nowrap;
  cursor: pointer;
}

.button-primary:hover {
  background: var(--sh-color-graphite-muted);
  border-color: var(--sh-color-graphite-muted);
}

.examples {
  margin-top: var(--sh-space-lg);
}

.examples h2 {
  margin: 0 0 12px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chip {
  margin: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: var(--sh-radius-none);
  background: var(--sh-color-surface);
  color: var(--sh-color-graphite);
  font-family: var(--sh-type-body-sm-font-family);
  font-size: var(--sh-type-body-sm-font-size);
  line-height: var(--sh-type-body-sm-line-height);
  cursor: pointer;
}

.chip:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@media (min-width: 640px) {
  .check-row {
    flex-direction: row;
  }

  .check input {
    font-size: var(--sh-type-headline-font-size);
  }
}

@media (min-width: 1024px) {
  .ritual {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--sh-space-gutter-desktop);
    align-items: center;
    padding-top: var(--sh-space-xxl);
    min-height: 640px;
  }

  .ritual-copy {
    grid-column: 1 / span 7;
  }

  .ritual-chair {
    order: 0;
    grid-column: 8 / span 5;
  }

  .ritual-chair img {
    width: 100%;
    height: auto;
  }

  .ritual-chair .img-frame {
    width: auto;
  }
}

/* the band runs straight into the footer */
.home .site-footer {
  margin-top: 0;
}

/* ── Home: ASSET 001 ────────────────────────────────────────────────────────────────────────── */
.asset {
  margin-top: var(--sh-space-section);
  background: var(--sh-color-surface);
}

.asset .wrap {
  display: grid;
  gap: var(--sh-space-lg);
  padding-top: var(--sh-space-xl);
  padding-bottom: var(--sh-space-xl);
}

.asset figure {
  margin: 0;
}

.asset p {
  margin: var(--sh-space-md) 0 0;
  max-width: 520px;
}

@media (min-width: 1024px) {
  .asset .wrap {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--sh-space-gutter-desktop);
    align-items: center;
    padding-top: var(--sh-space-xxl);
    padding-bottom: var(--sh-space-xxl);
  }

  .asset figure {
    grid-column: 1 / span 7;
  }

  .asset .asset-copy {
    grid-column: 8 / span 5;
  }
}

/* ── Leadership ─────────────────────────────────────────────────────────────────────────────── */
.page-intro {
  padding-top: var(--sh-space-xxl);
  max-width: var(--sh-space-text-max);
}

.page-intro p {
  margin: var(--sh-space-md) 0 0;
  color: var(--sh-color-graphite-muted);
}

.people {
  list-style: none;
  margin: var(--sh-space-xxl) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sh-space-xxl) var(--sh-space-gutter-desktop);
}

.person img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.person h2 {
  margin: var(--sh-space-md) 0 0;
}

.person .label {
  margin: 4px 0 0;
}

.person p.bio {
  margin: 12px 0 0;
  max-width: 44ch;
}

@media (min-width: 640px) {
  .people {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--sh-space-lg);
  }
}

@media (min-width: 1024px) {
  .people {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--sh-space-gutter-desktop);
  }
}

/* ── Pages from the shell: lists of sub-pages, the 404 (E0) ─────────────────────────────────── */
.page-intro h1.headline {
  margin: 0;
}

.page-links {
  list-style: none;
  margin: var(--sh-space-xl) 0 0;
  padding: 0;
}

.page-links li + li {
  border-top: 1px solid var(--sh-color-hairline);
}

.page-links a {
  display: block;
  padding: var(--sh-space-md) 0;
  font-family: var(--sh-type-title-font-family);
  font-size: var(--sh-type-title-font-size);
  font-weight: var(--sh-type-title-font-weight);
  line-height: var(--sh-type-title-line-height);
}

.not-found p a {
  color: var(--sh-color-graphite);
}

/* ── Home: the ritual in motion (E2) ────────────────────────────────────────────────────────── */
.check-note,
.check-count {
  margin: 12px 0 0;
  font-size: var(--sh-type-body-sm-font-size);
  line-height: var(--sh-type-body-sm-line-height);
  color: var(--sh-color-graphite-muted);
}

.check-note:empty {
  display: none;
}

.check-count {
  font-family: var(--sh-type-identifier-font-family);
}

/* disabled: graphite at 40% over canvas, still focusable so the sentence can be reached */
.button-primary[aria-disabled='true'],
.ask.is-running .check input,
.ask.is-running .chip {
  opacity: 0.4;
}

.button-primary[aria-disabled='true'],
.ask.is-running .chip {
  cursor: default;
}

.button-primary[aria-disabled='true']:hover {
  background: var(--sh-color-primary);
  border-color: var(--sh-color-primary);
}

.ask.is-running .chip:hover {
  text-decoration: none;
}

/* the sequence: one fixed mark, three lines arriving beneath it; room for all three is kept from
   the start, so nothing on the page shifts while they arrive */
.sequence {
  margin-top: var(--sh-space-lg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sh-space-md);
}

.sequence[hidden] {
  display: none;
}

.sequence-mark {
  flex: none;
  width: 40px;
  height: 40px;
  fill: var(--sh-color-verification-green);
}

.sequence-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: calc(3 * 24px + 2 * 8px);
  font-family: var(--sh-type-identifier-font-family);
  font-size: 15px;
  font-weight: var(--sh-type-identifier-font-weight);
  line-height: 24px;
}

.sequence-lines li + li {
  margin-top: 8px;
}

@media (prefers-reduced-motion: no-preference) {
  .sequence-lines li {
    animation: sh-arrive 200ms linear;
  }
}

@keyframes sh-arrive {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* the result, in the form's place */
.outcome[hidden] {
  display: none;
}

.result {
  margin-top: var(--sh-space-lg);
}

.result-heading {
  margin: 0;
  color: var(--sh-color-verification-green);
  font-family: var(--sh-type-display-lg-font-family);
  font-size: var(--sh-type-display-sm-font-size);
  font-weight: var(--sh-type-display-lg-font-weight);
  line-height: var(--sh-type-display-sm-line-height);
  letter-spacing: var(--sh-type-display-sm-letter-spacing);
}

.result-heading:focus,
.result-sentence:focus {
  outline: none;
}

.result-heading:focus-visible,
.result-sentence:focus-visible {
  outline: 3px solid var(--sh-color-focus);
  outline-offset: 2px;
}

@media (min-width: 1024px) {
  .result-heading {
    font-size: var(--sh-type-display-lg-font-size);
    line-height: var(--sh-type-display-lg-line-height);
    letter-spacing: var(--sh-type-display-lg-letter-spacing);
  }
}

.result p {
  margin: 0;
}

.result .result-name {
  margin-top: var(--sh-space-md);
  font-family: var(--sh-type-headline-font-family);
  font-size: 24px;
  font-weight: var(--sh-type-headline-font-weight);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.result .result-time {
  margin-top: 8px;
}

.result-zone {
  color: var(--sh-color-graphite-muted);
  font-size: var(--sh-type-body-sm-font-size);
  line-height: var(--sh-type-body-sm-line-height);
}

.result .result-identifier {
  margin-top: 8px;
  font-family: var(--sh-type-identifier-font-family);
  font-size: var(--sh-type-identifier-font-size);
  font-weight: var(--sh-type-identifier-font-weight);
  letter-spacing: var(--sh-type-identifier-letter-spacing);
}

.result-certificate {
  margin-top: var(--sh-space-lg);
  padding: var(--sh-space-md);
  background: var(--sh-color-surface);
  border: 1px solid var(--sh-color-hairline);
}

.result-certificate svg {
  display: block;
  width: 100%;
  height: auto;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--sh-space-lg);
}

.button-secondary {
  margin: 0;
  padding: 12px 18px;
  border: 2px solid var(--sh-color-graphite);
  border-radius: var(--sh-radius-none);
  background: var(--sh-color-canvas);
  color: var(--sh-color-graphite);
  font-family: var(--sh-type-body-font-family);
  font-size: var(--sh-type-body-sm-font-size);
  line-height: var(--sh-type-body-sm-line-height);
  cursor: pointer;
}

.button-secondary:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.result .result-portfolio {
  margin-top: var(--sh-space-md);
  color: var(--sh-color-graphite-muted);
}

.result-sentence {
  max-width: var(--sh-space-text-max);
}

/* ── The certificate as files (E4) ──────────────────────────────────────────────────────────── */
.result .export-note {
  margin-top: 12px;
  max-width: var(--sh-space-text-max);
  color: var(--sh-color-graphite);
}

.button-secondary[aria-disabled='true'] {
  opacity: 0.4;
  cursor: default;
}

/* the drawing svg2pdf reads while a PDF is prepared: in the document, never on screen */
.export-host {
  position: absolute;
  top: 0;
  left: -20000px;
  width: 1100px;
  height: 850px;
  overflow: hidden;
}

/* the certificate on screen sets its glyphs as the PDF and the PNG do: no kerning, no ligatures */
.result-certificate svg text {
  font-kerning: none;
  font-variant-ligatures: none;
  font-feature-settings: "kern" 0, "liga" 0, "clig" 0;
}

/* ── The certificate link (E5) and the certificate's own page ────────────────────────────────── */
.certificate-view[hidden],
.verify[hidden],
.verify-outcome[hidden] {
  display: none;
}

a.button-secondary {
  display: inline-block;
  text-decoration: none;
}

.result .copy-note {
  margin-top: 12px;
  max-width: var(--sh-space-text-max);
}

.copy-field {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--sh-color-hairline);
  border-radius: var(--sh-radius-none);
  background: var(--sh-color-surface);
  color: var(--sh-color-graphite);
  font-family: var(--sh-type-identifier-font-family);
  font-size: var(--sh-type-body-sm-font-size);
}

.copy-field:focus-visible {
  outline: 3px solid var(--sh-color-focus);
  outline-offset: 2px;
}

.result-reopened .result-zone {
  margin-top: 8px;
}

.result .result-links {
  margin-top: var(--sh-space-md);
}

/* ── Verify (E6) ─────────────────────────────────────────────────────────────────────────────── */
.verify {
  display: flex;
  flex-direction: column;
  gap: var(--sh-space-md);
  max-width: var(--sh-space-text-max);
  margin-top: var(--sh-space-lg);
}

.verify-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.verify input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 14px 16px;
  border: 2px solid var(--sh-color-graphite);
  border-radius: var(--sh-radius-none);
  background: var(--sh-color-canvas);
  color: var(--sh-color-graphite);
  font-family: var(--sh-type-body-font-family);
  font-size: 18px;
  -webkit-appearance: none;
  appearance: none;
}

.verify #verify-identifier {
  font-family: var(--sh-type-identifier-font-family);
  letter-spacing: var(--sh-type-identifier-letter-spacing);
}

.verify input::placeholder {
  color: var(--sh-color-graphite-muted);
  opacity: 1;
}

.verify .button-primary {
  align-self: flex-start;
}

.verify .check-note {
  margin: 0;
}

.verify-outcome {
  max-width: var(--sh-space-text-max);
  padding-bottom: var(--sh-space-xxl);
}

/* ── Your Presence Portfolio (E7) ───────────────────────────────────────────────────────────── */
.portfolio {
  max-width: var(--sh-space-text-max);
  margin-top: var(--sh-space-lg);
  padding-bottom: var(--sh-space-xxl);
}

.portfolio-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portfolio-entry {
  padding: var(--sh-space-md);
  background: var(--sh-color-surface);
}

.portfolio-entry p {
  margin: 0;
}

.portfolio .portfolio-name {
  font-family: var(--sh-type-headline-font-family);
  font-size: 22px;
  font-weight: var(--sh-type-headline-font-weight);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.portfolio .portfolio-date {
  margin-top: 4px;
  color: var(--sh-color-graphite-muted);
}

.portfolio .portfolio-identifier {
  margin-top: 4px;
  font-family: var(--sh-type-identifier-font-family);
  font-size: var(--sh-type-identifier-font-size);
  font-weight: var(--sh-type-identifier-font-weight);
  letter-spacing: var(--sh-type-identifier-letter-spacing);
}

.portfolio .portfolio-actions {
  margin-top: var(--sh-space-md);
}

.portfolio .export-note {
  margin-top: 12px;
}

/* ── Research (S3): the listing, each paper, the covers drawn in code ─────────────────────────── */
.papers {
  margin: var(--sh-space-xxl) 0 var(--sh-space-section);
  display: grid;
  gap: var(--sh-space-xxl);
}

.paper-entry {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sh-space-lg);
}

.paper-entry + .paper-entry {
  padding-top: var(--sh-space-xxl);
  border-top: 1px solid var(--sh-color-hairline);
}

.paper-cover .cover,
.paper-head-cover .cover {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
}

.paper-summary h2 {
  margin: var(--sh-space-sm) 0 0;
}

.paper-summary h2 a {
  color: var(--sh-color-graphite);
  text-decoration: none;
}

.paper-summary h2 a:hover {
  text-decoration: underline;
}

.paper-author {
  margin: var(--sh-space-xs) 0 0;
  color: var(--sh-color-graphite-muted);
}

.paper-abstract {
  margin: var(--sh-space-md) 0 0;
  max-width: var(--sh-space-text-max);
}

@media (min-width: 640px) {
  .paper-entry {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: var(--sh-space-xl);
  }
}

.cover .cover-paper {
  fill: var(--sh-color-surface);
  stroke: var(--sh-color-hairline);
}

.cover text {
  fill: var(--sh-color-graphite);
}

.cover .cover-label,
.cover .cover-axis-label {
  font-family: var(--sh-type-label-font-family);
  font-size: 9px;
  letter-spacing: 0.08em;
  fill: var(--sh-color-graphite-muted);
}

.cover .cover-title {
  font-family: var(--sh-type-headline-font-family);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.cover .cover-rule,
.cover .cover-axis {
  stroke: var(--sh-color-graphite);
  stroke-width: 1;
}

.cover .cover-plot {
  stroke: var(--sh-color-graphite);
  stroke-width: 2;
}

.paper {
  padding: var(--sh-space-xxl) 0 var(--sh-space-section);
}

.paper-head {
  display: grid;
  gap: var(--sh-space-xl);
  padding-bottom: var(--sh-space-xl);
  border-bottom: 1px solid var(--sh-color-hairline);
}

.paper-head h1 {
  margin: var(--sh-space-md) 0 0;
  max-width: 20ch;
}

.paper-byline {
  margin: var(--sh-space-md) 0 0;
  color: var(--sh-color-graphite-muted);
}

@media (min-width: 1024px) {
  .paper-head {
    grid-template-columns: minmax(0, 1fr) 240px;
    align-items: end;
  }
}

.paper-abstract-block,
.paper-body,
.paper-notes,
.paper-back {
  max-width: var(--sh-space-text-max);
}

.paper-abstract-block {
  margin-top: var(--sh-space-xl);
  padding: var(--sh-space-lg);
  background: var(--sh-color-surface);
}

.paper-abstract-block h2,
.paper-notes h2 {
  margin: 0 0 var(--sh-space-sm);
}

.paper-abstract-block p {
  margin: 0;
}

.paper-body h2 {
  margin: var(--sh-space-xxl) 0 0;
  font-family: var(--sh-type-title-font-family);
  font-size: var(--sh-type-title-font-size);
  font-weight: var(--sh-type-title-font-weight);
  line-height: var(--sh-type-title-line-height);
}

.paper-body h3 {
  margin: var(--sh-space-xl) 0 0;
  font-size: var(--sh-type-body-font-size);
}

.paper-body p,
.paper-body ul,
.paper-body ol {
  margin: var(--sh-space-md) 0 0;
}

.paper-body ul,
.paper-body ol,
.paper-notes ol {
  padding: 0;
  list-style: none;
}

.paper-body li + li {
  margin-top: var(--sh-space-sm);
}

.paper-body li .list-n,
.paper-notes .list-n {
  font-family: var(--sh-type-label-font-family);
  font-size: 13px;
}

.note-ref {
  font-family: var(--sh-type-label-font-family);
  font-size: 11px;
  line-height: 0;
}

.note-ref a,
.note-back {
  color: var(--sh-color-graphite);
}

.paper-notes {
  margin-top: var(--sh-space-xxl);
  padding-top: var(--sh-space-lg);
  border-top: 1px solid var(--sh-color-hairline);
}

.paper-notes li {
  font-size: var(--sh-type-body-sm-font-size);
  line-height: var(--sh-type-body-sm-line-height);
}

.paper-notes li + li {
  margin-top: var(--sh-space-sm);
}

.paper-notes li:target {
  outline: 3px solid var(--sh-color-focus);
  outline-offset: 4px;
}

.paper-back {
  margin-top: var(--sh-space-xl);
}

.paper-back a {
  color: var(--sh-color-graphite);
}

/* ── Status (S5): the standing line, then the history ───────────────────────────────────────── */
.status-constant {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: var(--sh-space-xl) 0 0;
}

.status-mark {
  width: 24px;
  height: 24px;
}

.status-history {
  margin: var(--sh-space-xxl) 0 var(--sh-space-section);
  max-width: var(--sh-space-text-max);
}

.status-history > h2 {
  margin: 0;
}

.status-rows {
  list-style: none;
  margin: var(--sh-space-md) 0 0;
  padding: 0;
}

.status-row {
  padding: var(--sh-space-lg) 0;
  border-top: 1px solid var(--sh-color-hairline);
}

.status-row h3 {
  margin: var(--sh-space-xs) 0 0;
}

.status-row p {
  margin: var(--sh-space-xs) 0 0;
}

.status-row .body-sm {
  margin-top: var(--sh-space-sm);
}

/* ── Case studies (S4) ──────────────────────────────────────────────────────────────────────── */
.case-list {
  list-style: none;
  margin: var(--sh-space-xxl) 0 var(--sh-space-section);
  padding: 0;
  max-width: var(--sh-space-text-max);
}

.case-list li {
  padding: var(--sh-space-lg) 0;
  border-top: 1px solid var(--sh-color-hairline);
}

.case-list h2 {
  margin: var(--sh-space-xs) 0 0;
}

.case-list h2 a,
.case-back a {
  color: var(--sh-color-graphite);
}

.case-list .body-sm {
  margin: var(--sh-space-sm) 0 0;
  color: var(--sh-color-graphite-muted);
}

.case {
  padding: var(--sh-space-xxl) 0 var(--sh-space-section);
}

.case h1 {
  margin: var(--sh-space-md) 0 0;
  max-width: 24ch;
}

.case-lede {
  margin: var(--sh-space-lg) 0 0;
  max-width: var(--sh-space-text-max);
  font-size: 20px;
  line-height: 1.5;
}

.case-lead,
.case-portrait {
  margin: var(--sh-space-xl) 0 0;
}

.case-photo {
  display: block;
  width: 100%;
  height: auto;
}

.case-portrait {
  max-width: 360px;
}

.case-facts {
  display: grid;
  gap: var(--sh-space-md);
  margin: var(--sh-space-xl) 0 0;
  padding: var(--sh-space-lg) 0;
  border-top: 1px solid var(--sh-color-hairline);
  border-bottom: 1px solid var(--sh-color-hairline);
}

.case-facts dd {
  margin: var(--sh-space-xs) 0 0;
}

@media (min-width: 640px) {
  .case-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .case-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.case-body {
  max-width: var(--sh-space-text-max);
}

.case-body h2 {
  margin: var(--sh-space-xxl) 0 0;
}

.case-body p {
  margin: var(--sh-space-md) 0 0;
}

.case-quote {
  margin: var(--sh-space-xl) 0 0;
  padding-left: var(--sh-space-lg);
  border-left: 3px solid var(--sh-color-graphite);
}

.case-quote p {
  margin: 0;
  font-family: var(--sh-type-headline-font-family);
  font-size: var(--sh-type-headline-font-size);
  font-weight: var(--sh-type-headline-font-weight);
  line-height: var(--sh-type-headline-line-height);
  letter-spacing: var(--sh-type-headline-letter-spacing);
}

.case-quote p::before {
  content: "\201C";
}

.case-quote p::after {
  content: "\201D";
}

.case-body .case-cite {
  margin-top: var(--sh-space-sm);
  padding-left: calc(var(--sh-space-lg) + 3px);
}

.case-back {
  margin: var(--sh-space-xxl) 0 0;
}

/* Manifest photographs on research and status */
.research-figure {
  margin: var(--sh-space-xl) 0 0;
  max-width: 320px;
}

.research-figure img,
.status-photo {
  display: block;
  width: 100%;
  height: auto;
}

.status-photo {
  margin-top: var(--sh-space-md);
  max-width: 320px;
}

/* ── Careers (S6) ───────────────────────────────────────────────────────────────────────────── */
.postings {
  margin: var(--sh-space-xxl) 0 0;
  max-width: var(--sh-space-text-max);
}

.posting {
  padding: var(--sh-space-xl) 0;
  border-top: 1px solid var(--sh-color-hairline);
}

.posting h2 {
  margin: var(--sh-space-sm) 0 0;
}

.posting p {
  margin: var(--sh-space-md) 0 0;
}

.posting h3 {
  margin: var(--sh-space-lg) 0 0;
}

.posting-list {
  margin: var(--sh-space-sm) 0 0;
  padding-left: 1.2em;
}

.posting-list li + li {
  margin-top: var(--sh-space-xs);
}

.careers-apply {
  margin: var(--sh-space-xl) 0 0;
  padding: var(--sh-space-xl) 0;
  border-top: 1px solid var(--sh-color-hairline);
  max-width: var(--sh-space-text-max);
}

.careers-apply h2,
.careers-apply p {
  margin: 0;
}

.careers-apply p {
  margin-top: var(--sh-space-sm);
}

.careers-section {
  margin: var(--sh-space-section) 0 0;
}

.careers-section h2 {
  margin: 0;
}

.careers-section p {
  margin: var(--sh-space-sm) 0 0;
  color: var(--sh-color-graphite-muted);
}

.careers-section figure {
  margin: var(--sh-space-lg) 0 0;
}

.careers-section img {
  display: block;
  width: 100%;
  height: auto;
}

.careers-photos {
  display: grid;
  gap: var(--sh-space-lg);
}

.careers-pair {
  display: grid;
  gap: var(--sh-space-xxl);
  margin-bottom: var(--sh-space-section);
}

.careers-pair figure {
  max-width: 400px;
}

/* the stapler and, beside it, the second-floor printer (C3) */
.careers-equipment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sh-space-md);
  align-items: end;
  max-width: 400px;
}

.careers-equipment figure {
  margin: var(--sh-space-lg) 0 0;
}

@media (min-width: 640px) {
  .careers-photos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  .careers-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Enterprise (S7) ────────────────────────────────────────────────────────────────────────── */
.enterprise-lead {
  margin: var(--sh-space-xxl) 0 0;
}

.enterprise-section {
  display: grid;
  gap: var(--sh-space-xl);
  margin: var(--sh-space-section) 0 0;
}

.enterprise-section figure {
  margin: 0;
}

.enterprise-text {
  max-width: var(--sh-space-text-max);
}

.enterprise-text h2 {
  margin: 0;
}

.enterprise-text p {
  margin: var(--sh-space-md) 0 0;
}

.enterprise-voices > figure {
  max-width: 360px;
}

.testimonial {
  margin: var(--sh-space-xl) 0 0;
}

.testimonial figcaption {
  margin-top: var(--sh-space-sm);
  padding-left: calc(var(--sh-space-lg) + 3px);
}

.enterprise-cta {
  margin: var(--sh-space-section) 0;
  padding: var(--sh-space-xl) 0;
  border-top: 1px solid var(--sh-color-hairline);
  max-width: var(--sh-space-text-max);
}

.enterprise-cta h2,
.enterprise-cta p {
  margin: 0;
}

.enterprise-cta p {
  margin-top: var(--sh-space-sm);
}

@media (min-width: 1024px) {
  .enterprise-section {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .enterprise-voices {
    grid-template-columns: 360px minmax(0, 1fr);
  }
}

/* ── Terms of Presence and Privacy (S8, S9) ─────────────────────────────────────────────────── */
.legal {
  padding: var(--sh-space-xxl) 0 var(--sh-space-section);
  max-width: var(--sh-space-text-max);
}

.legal-lede {
  margin: var(--sh-space-lg) 0 0;
  color: var(--sh-color-graphite-muted);
}

.legal section {
  margin: var(--sh-space-xxl) 0 0;
}

.legal h2 {
  margin: 0;
}

.legal p {
  margin: var(--sh-space-md) 0 0;
}

.legal .legal-source {
  font-size: var(--sh-type-body-sm-font-size);
  line-height: var(--sh-type-body-sm-line-height);
  color: var(--sh-color-graphite-muted);
}

.legal a {
  color: var(--sh-color-graphite);
}

.legal .legal-links {
  margin-top: var(--sh-space-xxl);
}
