/* Seige documentation pages: developer docs, security, vision, guides and the
   vibe-coding guide. Same ground, type and wall motif as the homepage:
   graphite ground, Archivo headings in the page's text colour, Seige coral
   only for links, focus and the one active mark on a page. */
.publication {
  --bg: #101113;
  --surface: #17181c;
  --surface-2: #1d1f23;
  --line: #ffffff1c;
  --line-strong: #ffffff30;
  --text: #f3f1ec;
  --body: #cdd0cc;
  --muted: #a9aeaa;
  --faint: #8d938f;
  --code: #e9e4da;
  color: var(--text);
  color-scheme: dark;
  background: var(--bg);
}

/* Header and navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}
.site-nav > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #e4e3de;
}
.site-nav [aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}
.publication-header {
  justify-content: space-between;
  align-items: center;
  padding-inline: max(48px, calc((100% - 1200px) / 2));
}
.publication-header .login {
  gap: 10px;
  padding: 0 16px;
  border-color: var(--line-strong);
  border-radius: 10px;
}
.publication a:hover {
  color: var(--coral);
}
.publication a:focus-visible,
.publication summary:focus-visible,
.publication pre:focus-visible,
.publication textarea:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
}
.skip-link {
  position: absolute;
  top: 0;
  left: 24px;
  z-index: 10;
  padding: 16px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: translateY(0);
}
.content-width {
  width: min(1200px, calc(100% - 96px));
  margin-inline: auto;
}

/* Page hero: a band of rampart standing on the Seige wall. The breadcrumb,
   the page title, one lead paragraph and, where useful, the page's key facts. */
.page-hero {
  padding-block: clamp(48px, 7vw, 88px) calc(clamp(40px, 5vw, 64px) + var(--wall-depth));
  background: var(--surface);
  -webkit-mask: var(--wall-bottom);
  mask: var(--wall-bottom);
}
.publication {
  --wall-bottom:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--wall-depth) + 1px)
      no-repeat,
    repeating-linear-gradient(
        90deg,
        #000 0 var(--wall-merlon),
        transparent var(--wall-merlon) calc(var(--wall-merlon) * 2)
      )
      bottom / 100% var(--wall-depth) no-repeat;
}
.page-hero {
  padding-inline: max(48px, calc((100% - 1200px) / 2));
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}
.breadcrumb a,
.breadcrumb span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}
.breadcrumb a::after {
  content: "/";
  margin-inline: 10px;
  color: var(--faint);
}
.breadcrumb a:hover::after {
  color: var(--faint);
}
.publication h1,
.publication h2,
.publication h3 {
  font-family: Archivo, "DM Sans", sans-serif;
  color: var(--text);
  text-wrap: balance;
}
.publication h1 {
  max-width: 15em;
  margin: 0;
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}
.publication .lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--body);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.55;
  text-wrap: pretty;
}
.page-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  margin: 36px 0 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--line);
}
.page-facts div {
  padding: 16px 20px;
  background: var(--surface-2);
}
.page-facts dt {
  color: var(--faint);
  font-size: 13px;
}
.page-facts dd {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
}
.page-facts code {
  font-size: 14px;
}
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 28px;
}

/* Links and buttons */
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}
.primary-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  background: var(--coral);
  color: #2a170f;
  font-weight: 600;
}
.publication .primary-link:hover {
  background: #ffae98;
  color: #2a170f;
}

/* Documentation layout: contents on the left, one readable column. */
.docs-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  padding-block: 56px 112px;
}
.docs-sidebar {
  position: sticky;
  top: 24px;
  max-height: calc(100svh - 48px);
  overflow-y: auto;
}
.docs-sidebar summary {
  display: block;
  margin-bottom: 12px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 600;
  list-style: none;
  pointer-events: none;
}
.docs-sidebar summary::-webkit-details-marker {
  display: none;
}
.docs-sidebar nav {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
}
.docs-sidebar nav a {
  margin-left: -1px;
  padding: 8px 0 8px 16px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}
.docs-sidebar nav a:hover {
  border-left-color: var(--coral);
  color: var(--text);
}
/* The contents mark the section being read. Browsers without scroll-marker
   groups show the same list, unmarked. */
.docs-sidebar nav {
  scroll-target-group: auto;
}
.docs-sidebar nav a:target-current {
  border-left-color: var(--coral);
  color: var(--text);
}
.sidebar-group {
  margin-top: 28px;
}
.sidebar-group > p {
  margin: 0 0 8px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 600;
}
.sidebar-group a {
  display: block;
  padding-block: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}
.docs-main {
  min-width: 0;
  max-width: 760px;
}
.docs-main section {
  scroll-margin-top: 24px;
  padding-block: 48px;
  border-bottom: 1px solid var(--line);
}
.docs-main section:first-child {
  padding-top: 0;
}
.docs-main section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.docs-main h2 {
  margin: 0 0 20px;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  scroll-margin-top: 24px;
}
.docs-main h3 {
  margin: 36px 0 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  scroll-margin-top: 24px;
}
.docs-main p,
.docs-main li,
.docs-main dd {
  color: var(--body);
  font-size: 17px;
  line-height: 1.7;
}
.docs-main p {
  margin: 0 0 18px;
}
.docs-main ul,
.docs-main ol {
  margin: 0 0 20px;
  padding-left: 22px;
}
.docs-main li {
  margin-block: 8px;
}
.docs-main li::marker {
  color: var(--faint);
}
.docs-main strong {
  color: var(--text);
}
.docs-main p a,
.docs-main li a,
.docs-main dd a,
.docs-main td a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: #ffffff59;
  text-underline-offset: 4px;
}
.docs-main p a:hover,
.docs-main li a:hover,
.docs-main dd a:hover,
.docs-main td a:hover {
  color: var(--coral);
  text-decoration-color: var(--coral);
}

/* Code */
.docs-main code,
.publication code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.86em;
  /* Show "=>" and "!==" as typed, as a reader would copy them. */
  font-variant-ligatures: none;
}
.docs-main p code,
.docs-main li code,
.docs-main dd code,
.docs-main td code,
.page-facts code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--code);
  overflow-wrap: anywhere;
}
.docs-main pre {
  margin: 0 0 24px;
  padding: 20px 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b0c0d;
  color: var(--code);
  line-height: 1.7;
  tab-size: 2;
}
.docs-main pre code {
  font-size: 13.5px;
  overflow-wrap: normal;
}
/* Syntax colours, applied at build time (scripts/launch-highlight.mjs).
   Muted tones of the site's own palette: sage strings, apricot calls, steel
   keywords, sand values. Plain names and punctuation keep the code colour.
   Every colour is above 6:1 on the sample ground. */
.docs-main pre {
  --tok-keyword: #9db4cf;
  --tok-function: #f2b694;
  --tok-string: #b9d4ad;
  --tok-number: #e5c58b;
  --tok-comment: #959b97;
}
.tok-keyword,
.tok-tag {
  color: var(--tok-keyword);
}
.tok-function {
  color: var(--tok-function);
}
.tok-string {
  color: var(--tok-string);
}
.tok-number,
.tok-attr {
  color: var(--tok-number);
}
.tok-comment {
  color: var(--tok-comment);
  font-style: italic;
}
.code-label {
  display: flex;
  margin-bottom: -1px;
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}
.code-label + pre {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
/* copy.js adds a Copy button to the bar above each sample. */
.code-label {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
}
.code-copy {
  min-height: 28px;
  margin: -6px -12px -6px auto;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font: 600 12px "DM Sans", sans-serif;
  cursor: pointer;
  transition:
    color 160ms,
    border-color 160ms;
}
.code-copy:hover {
  border-color: #ff8f7380;
  color: var(--text);
}
.code-copy:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

/* Callouts, definition lists and tables */
.notice {
  margin: 28px 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--coral);
  border-radius: 4px 12px 12px 4px;
  background: var(--surface);
}
.notice strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}
.notice p {
  margin: 0;
  font-size: 15px;
}
.api-list {
  margin: 28px 0 0;
}
.api-list dt {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-weight: 600;
}
.api-list dd {
  margin: 8px 0 20px;
}
.table-scroll {
  margin: 28px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.publication table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.publication th,
.publication td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}
.publication th {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}
.publication td {
  color: var(--body);
}
.publication tbody tr:last-child > * {
  border-bottom: 0;
}
.publication tbody th {
  background: transparent;
  font-weight: 600;
}
/* Each at-a-glance row names its data as a link to the section that
   explains how it is protected. */
.glance-table tbody th a {
  text-decoration: underline;
  text-decoration-color: #ffffff59;
  text-underline-offset: 4px;
}
.glance-table tbody th a::after {
  content: " \2193";
  content: " \2193" / "";
  color: var(--faint);
  font-weight: 400;
}
.glance-table tbody th a:hover {
  text-decoration-color: var(--coral);
}
.glance-table tbody th a:hover::after {
  color: var(--coral);
}

/* Collapsible technical detail inside long documents */
.docs-main details {
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.docs-main details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 12px 20px;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.docs-main details > summary::-webkit-details-marker {
  display: none;
}
.docs-main details > summary::after {
  content: "+";
  color: var(--coral);
  font-size: 22px;
  font-weight: 400;
}
.docs-main details[open] > summary::after {
  content: "−";
}
.docs-main details > :not(summary) {
  margin-inline: 20px;
}
.docs-main details > :last-child {
  margin-bottom: 20px;
}

/* Vision: an essay, not a manual. Wide statements, then a numbered
   sequence only where the content is a sequence. */
.essay {
  padding-block: 72px 112px;
}
.essay-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px clamp(40px, 6vw, 96px);
  padding-block: 56px;
  border-top: 1px solid var(--line);
}
.essay-section:first-child {
  border-top: 0;
  padding-top: 0;
}
.essay-section h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.essay-section p,
.essay-section li {
  color: var(--body);
  font-size: 18px;
  line-height: 1.7;
}
.essay-section p {
  margin: 0 0 18px;
}
.essay-section p:last-child {
  margin-bottom: 0;
}
.essay-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.essay-steps li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  padding-block: 18px;
  border-top: 1px solid var(--line);
  counter-increment: step;
}
.essay-steps li:first-child {
  border-top: 0;
  padding-top: 0;
}
.essay-steps li::before {
  content: counter(step);
  color: var(--coral);
  font-family: Archivo, sans-serif;
  font-weight: 800;
}
.essay-steps strong {
  display: block;
  color: var(--text);
  font-size: 19px;
}
.essay-steps span {
  display: block;
  margin-top: 4px;
}
/* The account as a tree: folders belong to the account, and apps hang
   under the folders they may use, not the other way round. A static
   figure; it reads as a nested list without styles. */
.account-tree {
  margin: 8px 0 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.account-tree ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.account-tree ul ul {
  margin-left: 9px;
  padding-left: 22px;
  border-left: 1px solid var(--line-strong);
}
.essay-section .account-tree li {
  position: relative;
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
}
.account-tree ul ul > li::before {
  content: "";
  position: absolute;
  top: 18px;
  left: -22px;
  width: 14px;
  border-top: 1px solid var(--line-strong);
}
.account-tree ul ul > li:last-child::after {
  content: "";
  position: absolute;
  top: 19px;
  bottom: 0;
  left: -23px;
  width: 3px;
  background: var(--surface);
}
.tree-node,
.account-tree ul ul ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
}
.tree-node::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background: center / contain no-repeat;
}
.tree-account {
  font-weight: 600;
}
.tree-account::before {
  background-image: url("/icons/guides/lock.svg");
}
.tree-folder::before {
  background-image: url("/icons/guides/folder.svg");
}
.tree-app {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--body);
}
.tree-app::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: url("/icons/guides/app.svg") center / contain no-repeat;
}
.tree-access {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 13px;
  white-space: nowrap;
}
.tree-approved {
  background: #a8bab524;
  color: #d3e3dc;
}
.tree-ask {
  box-shadow: inset 0 0 0 1px #ffffff38;
  color: var(--muted);
}
.account-tree figcaption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
/* Beside the essay, the tree fills the space under the section title. */
@media (min-width: 1101px) {
  .essay-section .account-tree {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
  }
  .essay-section:has(.account-tree) > div {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}
.essay-close {
  display: grid;
  justify-items: start;
  gap: 20px;
  margin-top: 24px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 20px;
  background: var(--surface);
}
.essay-close h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.essay-close p {
  max-width: 640px;
  margin: 0;
  color: var(--body);
  font-size: 18px;
  line-height: 1.6;
}
.essay-close .hero-links {
  margin-top: 0;
}

/* Guides index */
.guide-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.docs-main .guide-cards li {
  margin: 0;
}
.guide-cards a {
  display: grid;
  align-content: start;
  gap: 8px;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color 160ms;
}
.docs-main .guide-cards a {
  color: var(--text);
  text-decoration: none;
}
.publication .guide-cards a:hover {
  border-color: #ff8f7380;
  background: var(--surface-2);
  color: var(--text);
}
.guide-cards a:hover strong {
  color: var(--coral);
}
.guide-cards strong {
  font-family: Archivo, "DM Sans", sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.guide-cards span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.docs-main .guide-cards {
  padding: 0;
}
/* Each guide's topic as a small icon, so the grid can be scanned by task:
   sign-in, data, files, AI, encryption, sharing, capabilities, agents. */
.guide-cards a::before {
  content: "";
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: var(--surface-2) center / 22px no-repeat;
  box-shadow: inset 0 0 0 1px var(--line);
}
.guide-cards a[href*="sign-in"]::before {
  background-image: url("/icons/guides/key.svg");
}
.guide-cards a[href*="database"]::before {
  background-image: url("/icons/guides/database.svg");
}
.guide-cards a[href*="file-storage"]::before {
  background-image: url("/icons/guides/folder.svg");
}
.guide-cards a[href*="ai-without"]::before {
  background-image: url("/icons/guides/sparkle.svg");
}
.guide-cards a[href*="encrypted-storage"]::before {
  background-image: url("/icons/guides/lock.svg");
}
.guide-cards a[href*="family"]::before {
  background-image: url("/icons/guides/people.svg");
}
.guide-cards a[href*="capabilities"]::before {
  background-image: url("/icons/guides/checklist.svg");
}
.guide-cards a[href*="coding-agents"]::before {
  background-image: url("/icons/guides/terminal.svg");
}
.guide-cards a[href*="vibe-coding"]::before {
  background-image: url("/icons/guides/code.svg");
}
.guides-wide {
  max-width: none;
}

@media (max-width: 1100px) {
  .essay-section {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 950px) {
  .docs-shell {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 40px;
  }
}

/* Phones */
@media (max-width: 700px) {
  .content-width {
    width: calc(100% - 40px);
  }
  .page-hero {
    padding-inline: 20px;
  }
  .publication-header {
    position: relative;
    flex-wrap: wrap;
    gap: 4px 16px;
    padding: 18px 20px 10px;
  }
  .publication-header .site-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0 20px;
    font-size: 14px;
  }
  .publication-header .site-nav .login {
    position: absolute;
    top: 18px;
    right: 20px;
    min-height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }
  .publication-header .home-link {
    min-height: 40px;
  }
  .page-hero {
    padding-top: 36px;
  }
  .page-facts {
    grid-template-columns: 1fr 1fr;
  }
  .page-facts div {
    padding: 12px 14px;
  }
  .page-facts dd {
    font-size: 15px;
  }
  .docs-shell {
    display: block;
    padding-block: 28px 72px;
  }
  /* Contents become one row of section chips that scrolls sideways. */
  .docs-sidebar {
    position: static;
    max-height: none;
    margin: 0 -20px 28px;
  }
  .docs-sidebar summary,
  .sidebar-group {
    display: none;
  }
  .docs-sidebar nav {
    flex-direction: row;
    gap: 8px;
    padding: 2px 20px 6px;
    overflow-x: auto;
    border-left: 0;
    scrollbar-width: none;
  }
  .docs-sidebar nav::-webkit-scrollbar {
    display: none;
  }
  .docs-sidebar nav a {
    flex: none;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding: 8px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    white-space: nowrap;
  }
  /* :is() keeps the hover rule where :target-current is unknown. */
  .docs-sidebar nav a:is(:hover, :target-current) {
    border-color: var(--coral);
  }
  /* On long pages the section chips stay at the top of the screen, so any
     section is one tap away. Headings land below them. */
  .docs-sidebar:has(nav[aria-label="On this page"]) {
    position: sticky;
    top: 0;
    z-index: 5;
    padding-top: 6px;
    background: #101113eb;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--line);
  }
  .docs-shell:has(nav[aria-label="On this page"]) .docs-main :is(section, h2, h3) {
    scroll-margin-top: 76px;
  }
  .code-label {
    margin-inline: -4px;
  }
  .code-copy {
    min-height: 44px;
    margin-block: -10px;
    padding-inline: 16px;
  }
  .docs-main section {
    padding-block: 36px;
  }
  .docs-main p,
  .docs-main li,
  .docs-main dd {
    font-size: 16px;
  }
  .docs-main pre {
    margin-inline: -4px;
    padding: 16px;
  }
  .docs-main pre code {
    font-size: 12.5px;
  }
  .essay {
    padding-block: 40px 72px;
  }
  .essay-section {
    padding-block: 40px;
  }
  .essay-section p,
  .essay-section li {
    font-size: 17px;
  }
  .guide-cards {
    grid-template-columns: 1fr;
  }
  /* Reference tables become one card per row: the row's first cell as
     its heading, each other answer under its own column name, instead of
     narrow columns that split identifiers mid-word. Explicit table roles in
     the markup keep the semantics with the changed display. */
  .stack-table,
  .stack-table tbody,
  .stack-table tr,
  .stack-table th,
  .stack-table td {
    display: block;
  }
  .stack-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .stack-table tbody tr {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
  }
  .stack-table tbody tr:last-child {
    border-bottom: 0;
  }
  .publication .stack-table th,
  .publication .stack-table td {
    padding: 0;
    border: 0;
  }
  .publication .stack-table td {
    margin-top: 10px;
    font-size: 15px;
  }
  .publication .stack-table tbody td:first-child {
    margin-top: 0;
    color: var(--text);
    font-weight: 600;
  }
  .stack-table td code {
    overflow-wrap: break-word;
  }
  .stack-table td[data-label]::before {
    content: attr(data-label);
    content: attr(data-label) / "";
    display: block;
    margin-bottom: 2px;
    color: var(--faint);
    font-size: 13px;
    font-weight: 400;
  }
}
@media (max-width: 360px) {
  .page-facts {
    grid-template-columns: 1fr;
  }
  .publication-header .site-nav {
    gap: 0 14px;
  }
}

/* Draft legal documents: one readable column under the page title. */
.legal-main {
  padding-block: 56px 112px;
}
.legal-main .docs-main {
  margin-inline: auto;
}
.legal-main h2 {
  margin-top: 48px;
}

/* Guides are rendered Markdown with no section wrappers: space each heading. */
.guide-article h2 {
  margin-top: 56px;
}
.guide-article > h2:first-child,
.guide-article > pre:first-child + p + h2 {
  margin-top: 40px;
}
.essay-section p a:not(.text-link) {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: #ffffff59;
  text-underline-offset: 4px;
}
.essay-section p a:not(.text-link):hover {
  color: var(--coral);
  text-decoration-color: var(--coral);
}
