/* Majal — majalops.com
   One stylesheet, no build step, no remote assets. */

/* ---------- fonts ---------- */
/* Same two families as home.css, self-hosted, already in assets/fonts/ —
   one type language across the whole site instead of a system-font stack
   here and a designed one there. */

@font-face {
  font-family: "Big Shoulders";
  src: url("../fonts/BigShoulders-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/InstrumentSans-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/InstrumentSans-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- tokens ---------- */

:root {
  /* "Working drawings": a warm paper ground instead of cold blue-grey, a
     confident teal rather than a muted one, and an amber accent pulled from
     site safety equipment rather than a generic corporate gold. */
  --nav: #12181c;
  --nav-2: #0b1013;
  --primary: #0e7a79;
  --primary-strong: #0a5f5e;
  --accent: #d97a1f;
  --page: #f7f4ee;
  --surface: #ffffff;
  --surface-2: #efe9dd;
  --text: #211d17;
  --text-muted: #6b6156;
  --line: #e1d9c9;
  --line-strong: #c9bea8;
  --code-bg: #efe9dd;
  --focus: #c17a1f;
  --shadow: 0 1px 2px rgba(18, 14, 8, .07), 0 10px 28px rgba(18, 14, 8, .07);
  --danger: #b3432f;
  --danger-bg: #fbeae6;
  --success: #2f7a4f;
  --success-bg: #e8f4ec;

  --measure: 66ch;
  --wide: 1180px;
  --radius: 12px;
  --radius-lg: 18px;

  --display: "Big Shoulders", "Arial Narrow", system-ui, sans-serif;
  --font: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
          "Noto Sans Arabic", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --nav: #0c1012;
    --nav-2: #080b0c;
    --primary: #5fc2be;
    --primary-strong: #84d4cf;
    --accent: #e8a855;
    --page: #171310;
    --surface: #221c15;
    --surface-2: #2b241b;
    --text: #efe7d8;
    --text-muted: #b3a897;
    --line: #3a3226;
    --line-strong: #4c4231;
    --code-bg: #2b241b;
    --focus: #e8a855;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 30px rgba(0, 0, 0, .32);
    --danger: #e08872;
    --danger-bg: #3a1f1a;
    --success: #7fcb9c;
    --success-bg: #163223;
  }
}

/* ---------- base ---------- */

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font);
  font-size: 17.5px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 .55em;
  text-wrap: balance;
}

h1, h2 {
  font-family: var(--display);
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(2.3rem, 1.5rem + 3.2vw, 3.5rem);
  text-transform: uppercase;
  line-height: 1.05;
}
h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.2rem);
  margin-top: 2.8em;
  line-height: 1.1;
}
h3 {
  font-size: clamp(1.12rem, 1.03rem + .4vw, 1.3rem);
  letter-spacing: -0.006em;
  margin-top: 2.3em;
}
h4 { font-size: 1rem; margin-top: 1.6em; text-transform: none; }

h2:first-child, h3:first-child { margin-top: 0; }

p, ul, ol, dl { margin: 0 0 1.15em; overflow-wrap: break-word; }
li { margin-bottom: .4em; }
li > ul, li > ol { margin-top: .4em; }

strong { font-weight: 650; }

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { color: var(--primary-strong); }

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

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

code, kbd, samp {
  font-family: var(--mono);
  font-size: .87em;
  background: var(--code-bg);
  padding: .12em .38em;
  border-radius: 4px;
  border: 1px solid var(--line);
  /* Paths, module names and manifest keys are long and unbreakable. Let them
     break inside a narrow column rather than pushing the page sideways. */
  overflow-wrap: break-word;
}
pre code { overflow-wrap: normal; }

pre {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  overflow-x: auto;
  font-size: .9rem;
  line-height: 1.55;
}
pre code { background: none; border: 0; padding: 0; font-size: 1em; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.prose { max-width: var(--measure); }

main { display: block; }

section.band {
  padding-block: clamp(3rem, 6.5vw, 5rem);
  border-top: 1px solid var(--line);
}
section.band:first-of-type { border-top: 0; }
section.band.tinted { background: var(--surface-2); }

/* ---------- industry walkthrough tabs ---------- */
.industry-player { padding-block: clamp(2.5rem, 6vw, 5rem); background: var(--surface-2); border-top: 1px solid var(--line); }
.industry-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 1.25rem; }
.industry-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.industry-tabs label { display: flex; align-items: center; gap: .85rem; min-height: 5.25rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text-muted); cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.industry-tabs label:hover { transform: translateY(-2px); border-color: var(--accent); }
.industry-tabs strong, .industry-tabs small { display: block; }
.industry-tabs strong { color: var(--text); font-size: 1rem; }
.industry-tabs small { margin-top: .25rem; font-size: .76rem; line-height: 1.3; }
.tab-number { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; flex: 0 0 2.25rem; border-radius: 50%; background: var(--surface-2); color: var(--primary); font-size: .78rem; font-weight: 700; }
.industry-tabs input:checked + label { border-color: var(--primary); background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.industry-tabs input:checked + label strong, .industry-tabs input:checked + label .tab-number { color: #fff; }
.industry-tabs input:checked + label .tab-number { background: rgba(255,255,255,.18); }
.industry-panel { display: none; grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.industry-panel.is-active { display: grid; }
.industry-copy { max-width: 34rem; }
.industry-copy h2 { margin-top: .35rem; }
.feature-list { display: grid; gap: .55rem; margin: 1.35rem 0 1.6rem; padding: 0; list-style: none; }
.feature-list li { position: relative; padding-inline-start: 1.35rem; color: var(--text-muted); }
.feature-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: .48rem; height: .48rem; border-radius: 50%; background: var(--accent); }
.industry-media video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #10181c; border-radius: var(--radius); box-shadow: 0 1rem 2.5rem rgba(18, 14, 8, .16); }
.media-caption { margin: .7rem 0 0; color: var(--text-muted); font-size: .82rem; }
.media-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .65rem; }
.media-thumbs img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: .45rem; border: 1px solid var(--line); }
@media (max-width: 52rem) { .industry-tabs { grid-template-columns: 1fr; } .industry-panel { grid-template-columns: 1fr; } }

/* A short accent rule above each band's own heading — it marks where a new
   subject starts, which a long page of stacked bands otherwise leaves to
   spacing alone. */
section.band > .wrap > h2::before,
section.band > .wrap > .prose > h2:first-child::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 1rem;
}

/* ---------- documentation layout ---------- */
/* A long reference page is navigated, not read start-to-finish. Below 62rem
   it stays a single column with the contents at the top; above it, the
   contents become a sticky rail that tracks where you are. */

.doc-grid { display: grid; align-items: start; }
/* Grid items default to min-width:auto, so a wide table inside would prise the
   column open rather than scrolling inside its own container. */
.doc-aside, .doc-main { min-width: 0; }

.doc-main > section.band {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.doc-main > section.band:first-child { border-top: 0; padding-top: 2.25rem; }
/* Tinting alternate bands was standing in for structure. The rail does that
   job now, and a tinted block inside a column reads as a stray card. */
.doc-main > section.band.tinted { background: none; }
/* These .wrap elements are nested inside the grid's own .wrap. */
.doc-main .wrap {
  max-width: none;
  width: auto;
  padding-inline: 0;
  margin-inline: 0;
}

@media (min-width: 62rem) {
  .doc-grid {
    grid-template-columns: 15.5rem minmax(0, 1fr);
    column-gap: 3.5rem;
  }
  .doc-aside {
    position: sticky;
    top: 5.5rem;
    max-height: calc(100vh - 7.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-block: 2.25rem;
  }
  /* In the rail the contents are the furniture, not a card. */
  .doc-aside .toc {
    background: none;
    border: 0;
    border-inline-start: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
  }
  .doc-aside .toc ul { columns: 1; }
  .doc-aside .toc a { font-size: .875rem; padding: .38rem .6rem; }
  .doc-aside .toc h2 { padding-inline-start: .6rem; }
}

/* Where you are now — set by the scroll-spy, and by :target as a no-JS
   fallback so an anchored link still marks its own entry. */
.toc a.is-current,
.toc a:target {
  background: var(--surface-2);
  border-inline-start-color: var(--accent);
  color: var(--primary-strong);
  font-weight: 650;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--text);
  padding: .75rem 1rem;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--nav) 92%, transparent);
  backdrop-filter: blur(10px);
  color: #efe7d8;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

/* The header floats over the content, so an anchored heading must stop clear
   of it rather than under it. */
:where(section, h2, h3)[id] { scroll-margin-top: 5.5rem; }

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem 1.25rem;
  padding-block: .7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: .015em;
  text-transform: uppercase;
  margin-inline-end: auto;
}
.brand:hover { color: #fff; }

/* The mark: three floor plates in axonometric projection. Inline SVG rather
   than an <img> so it takes its colour from the surface it sits on. */
.logo-mark {
  width: 1.65rem;
  height: 1.65rem;
  flex: 0 0 auto;
  overflow: visible;
}
.logo-mark .p3 { fill: currentColor; opacity: .4; }
.logo-mark .p2 { fill: currentColor; opacity: .7; }
.logo-mark .p1 { fill: var(--accent); }
.brand:hover .logo-mark .p2,
.brand:hover .logo-mark .p3 { opacity: 1; }
.logo-mark .p1, .logo-mark .p2, .logo-mark .p3 { transition: opacity .2s ease; }
.brand .tag {
  font-weight: 400;
  font-size: .74rem;
  color: #a3988a;
  letter-spacing: .02em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .15rem .35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav li { margin: 0; }
.nav a {
  display: block;
  color: #cfc5b5;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 550;
  padding: .45rem .62rem;
  border-radius: 999px;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.nav a.nav-cta {
  color: #1b1206;
  background: var(--accent);
  font-weight: 700;
  padding-inline: .85rem;
  box-shadow: 0 4px 14px rgba(217, 122, 31, .2);
}
.nav a.nav-cta:hover { color: #1b1206; background: #e8934a; }
.nav a.ext::after {
  content: " ↗";
  font-size: .8em;
  color: #9a8f7e;
}
.nav .soon {
  font-size: .68rem;
  color: var(--nav);
  background: #a3988a;
  border-radius: 3px;
  padding: 0 .3em;
  margin-inline-start: .3em;
  vertical-align: .1em;
}

/* ---------- mobile nav toggle ---------- */

.nav-toggle-input {
  position: absolute;
  inset-inline-start: -9999px;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 8px;
  cursor: pointer;
  flex: 0 0 auto;
}
.nav-toggle:hover { background: rgba(255, 255, 255, .08); }
.nav-toggle-input:focus-visible + .nav-toggle {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.nav-toggle .bar,
.nav-toggle .bar::before,
.nav-toggle .bar::after {
  width: 1.35rem;
  height: 2px;
  background: #efe7d8;
  border-radius: 1px;
}
.nav-toggle .bar {
  position: relative;
  display: block;
}
.nav-toggle .bar::before,
.nav-toggle .bar::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  transition: transform .18s ease, top .18s ease;
}
.nav-toggle .bar::before { top: -6px; }
.nav-toggle .bar::after { top: 6px; }
.nav-toggle-input:checked + .nav-toggle .bar { background: transparent; }
.nav-toggle-input:checked + .nav-toggle .bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle-input:checked + .nav-toggle .bar::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 46rem) {
  .nav-toggle { display: inline-flex; }
  .site-header nav[aria-label="Primary"] {
    order: 3;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height .22s ease;
  }
  .nav-toggle-input:checked ~ nav[aria-label="Primary"] {
    max-height: 24rem;
  }
  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: .35rem .9rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: .5rem;
  }
  .nav a { padding: .75rem .5rem; font-size: 1rem; border-radius: 8px; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); background: rgba(255, 255, 255, .05); }
  .nav a.nav-cta { margin-top: .35rem; text-align: center; }
}

/* A drawing-sheet grid under the page title — the reference the whole product
   is built on, at an opacity that reads as texture rather than decoration. */
.page-head {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 3.5vw, 2.25rem);
  border-bottom: 1px solid var(--line);
  background:
    repeating-linear-gradient(0deg, transparent 0 39px,
      color-mix(in srgb, var(--line) 60%, transparent) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px,
      color-mix(in srgb, var(--line) 60%, transparent) 39px 40px),
    var(--surface);
}
/* Fade the grid out downward so it sits under the title and releases the lede. */
.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    transparent 0%,
    color-mix(in srgb, var(--surface) 70%, transparent) 55%,
    var(--surface) 100%);
}
.page-head > * { position: relative; z-index: 1; }
.page-head h1 { margin-bottom: .35em; }
.page-head .lede {
  font-size: clamp(1.02rem, .98rem + .4vw, 1.15rem);
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 0;
}

/* ---------- buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem 1.2rem;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease,
              background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--accent);
  color: #1b1206;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #e8934a;
  border-color: #e8934a;
  color: #1b1206;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 40%, transparent);
}
.btn-ghost {
  border-color: rgba(255, 255, 255, .3);
  color: #efe7d8;
}
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .06); }
.btn-quiet {
  border-color: var(--line-strong);
  color: var(--text);
  background: var(--surface);
}
.btn-quiet:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- grids & cards ---------- */

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.55rem;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .22s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 2px 4px rgba(18, 14, 8, .06), 0 14px 32px rgba(18, 14, 8, .10);
}
.card h2, .card h3 { margin-top: 0; font-size: clamp(1.1rem, 1.02rem + .38vw, 1.25rem); }
.card > :last-child { margin-bottom: 0; }
.card .eyebrow {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 650;
  margin-bottom: .5rem;
  display: block;
}

a.card { text-decoration: none; color: inherit; display: block; padding-bottom: 3.2rem; }
a.card:hover { border-color: var(--primary); color: inherit; }
a.card h2, a.card h3 { color: var(--text); text-decoration: none; }
a.card::after {
  content: "Explore section  ↗";
  position: absolute;
  inset-inline-start: 1.55rem;
  bottom: 1.25rem;
  color: var(--primary);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s ease, transform .2s ease;
}
a.card:hover::after { color: var(--primary-strong); transform: translateX(.15rem); }

/* ---------- figures ---------- */

figure.shot {
  margin: 2rem 0 2.25rem;
  max-width: 100%;
}
figure.shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center top;
  background:
    linear-gradient(135deg, transparent 46%, var(--line) 46%, var(--line) 54%, transparent 54%) 0 0/22px 22px,
    var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  font-size: .85rem;
  padding: .5rem;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .24s ease, border-color .2s ease;
}
figure.shot img:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 2px 4px rgba(18, 14, 8, .06), 0 16px 36px rgba(18, 14, 8, .12);
}
figure.shot.tall img { aspect-ratio: 4 / 5; }
figure.shot.wide img { aspect-ratio: 21 / 9; }
figure.shot figcaption {
  margin-top: .7rem;
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.5;
  border-inline-start: 3px solid var(--accent);
  padding-inline-start: .75rem;
}

/* ---------- tables ---------- */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 1.4rem;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 32rem;
  font-size: .93rem;
}
caption {
  text-align: start;
  padding: .8rem 1rem 0;
  color: var(--text-muted);
  font-size: .85rem;
}
th, td {
  text-align: start;
  padding: .6rem .9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
thead th {
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }

/* ---------- notes & lists ---------- */

.note {
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--primary);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.15rem 1.3rem;
  margin: 2rem 0;
  font-size: .95rem;
  box-shadow: var(--shadow);
}
.note > :last-child { margin-bottom: 0; }
.note.caution { border-inline-start-color: var(--accent); }
.note .label {
  display: block;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--text-muted);
  margin-bottom: .3rem;
}

ul.plain, ol.plain { list-style: none; padding: 0; }

ul.ticks { list-style: none; padding: 0; }
ul.ticks li {
  position: relative;
  padding-inline-start: 1.5rem;
}
ul.ticks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .62em;
  width: .5rem;
  height: .5rem;
  background: var(--accent);
  border-radius: 1px;
}

dl.facts { display: grid; gap: .1rem 1rem; }
dl.facts dt { font-weight: 650; }
dl.facts dt, dl.facts dd { min-width: 0; overflow-wrap: anywhere; }

/* ---------- forms ---------- */

form.contact {
  display: grid;
  gap: 1.1rem;
  max-width: 34rem;
}
form.contact .field { display: grid; gap: .35rem; }
form.contact label {
  font-size: .88rem;
  font-weight: 650;
  color: var(--text);
}
form.contact .optional {
  font-weight: 400;
  color: var(--text-muted);
}
form.contact input,
form.contact select,
form.contact textarea {
  font: inherit;
  font-size: .96rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .6rem .75rem;
}
form.contact input:focus,
form.contact select:focus,
form.contact textarea:focus {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--line-strong);
}
form.contact input[aria-invalid="true"],
form.contact textarea[aria-invalid="true"] {
  border-color: var(--danger);
}
form.contact textarea { resize: vertical; min-height: 8rem; }
form.contact .field-error {
  margin: 0;
  font-size: .84rem;
  color: var(--danger);
}
form.contact .submit-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: .3rem;
}
form.contact button.btn {
  font: inherit;
  cursor: pointer;
}
form.contact button.btn:disabled {
  opacity: .7;
  cursor: progress;
}
form.contact button.btn:disabled .btn-label::after {
  content: "";
  display: inline-block;
  width: .8em;
  height: .8em;
  margin-inline-start: .5em;
  border: 2px solid currentColor;
  border-inline-end-color: transparent;
  border-radius: 50%;
  vertical-align: -.15em;
  animation: majal-spin .7s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  form.contact button.btn:disabled .btn-label::after { animation: none; }
}
@keyframes majal-spin { to { transform: rotate(360deg); } }

form.contact .form-status {
  margin: 0;
  padding: .75rem 1rem;
  border-radius: 8px;
  font-size: .92rem;
  border: 1px solid var(--line);
}
form.contact .form-status.is-success {
  background: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
}
form.contact .form-status.is-error {
  background: var(--danger-bg);
  border-color: var(--danger);
  color: var(--danger);
}
dl.facts dd { margin: 0 0 .8rem; color: var(--text-muted); }
@media (min-width: 34rem) {
  dl.facts { grid-template-columns: minmax(8rem, 14rem) 1fr; }
  dl.facts dd { margin-bottom: .3rem; }
  dl.facts dt { margin-bottom: .3rem; }
}

/* article meta */
.meta {
  font-size: .84rem;
  color: var(--text-muted);
  letter-spacing: .03em;
  margin-bottom: .6rem;
}
.article-nav {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .95rem;
}

/* toc */
.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.4rem 1.6rem;
  margin: 0 0 2rem;
  box-shadow: var(--shadow);
}
.toc h2 {
  margin: 0 0 .9rem;
  font-family: var(--font);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.toc h2::before { content: none; }
.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 2.5rem;
  font-size: .93rem;
}
.toc li { margin-bottom: 0; break-inside: avoid; }
.toc a {
  display: block;
  padding: .4rem .5rem .4rem .6rem;
  border-radius: 6px;
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  border-inline-start: 2px solid transparent;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.toc a:hover {
  background: var(--surface-2);
  border-inline-start-color: var(--accent);
  color: var(--primary-strong);
}
@media (max-width: 34rem) { .toc ul { columns: 1; } }

/* ---------- footer ---------- */

.site-footer {
  background: var(--nav);
  color: #b3a897;
  margin-top: 0;
  padding-block: 3rem 2.25rem;
  font-size: .92rem;
}
.site-footer a {
  color: #d8cfbf;
  text-decoration: none;
  transition: color .16s ease;
}
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h2 {
  font-family: var(--font);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .8rem;
}
.site-footer h2::before { content: none; }
.footer-cols {
  display: grid;
  gap: 1.75rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: .35rem; }
.colophon {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .85rem;
  color: #9a8f7e;
}
.colophon p { margin-bottom: .4rem; }
.colophon p:last-child { margin-bottom: 0; }
