/* iXiun Paste — the look, after ixiun.com: near-black pages, dark panels with a
   hairline edge, an ember gradient for the one thing to press and for the
   word that matters in a heading, squared-off buttons in spaced capitals.
   Host Grotesk for headings, Poppins for everything else. Styles live only
   here: nothing inline, nothing from another site. */

@font-face {
  font-family: 'Host Grotesk';
  src: url('fonts/host-grotesk-latin-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/poppins-latin-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/poppins-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/poppins-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --page: #0d0d0d;
  --panel: #1a1b1a;
  --panel-2: #141514;
  --field: #0d0d0d;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #e9e7e4;
  --cream: #f5f4f2;
  --muted: #a3a09a;
  --ember: #ff6a00;
  --ember-lite: #f79814;
  --accent: #f09211;
  --accent-deep: #cb2715;
  --trouble: #ff7b74;
  --ok: #8fd19e;
  --radius: 6px;
  --radius-btn: 2px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --header: 4.5rem;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;
  --ember-fill: linear-gradient(100deg, #ff8a2b 0%, #ff6a00 55%, #e85d00 100%);
  --ember-text: linear-gradient(90deg, var(--accent), var(--ember-lite), var(--accent-deep));
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header) + 1.5rem);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(60rem 26rem at 50% -6rem, rgba(255, 106, 0, 0.14), transparent 70%)
    no-repeat var(--page);
  color: var(--text);
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

a { color: var(--ember-lite); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ember-lite);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: 'Host Grotesk', 'Poppins', sans-serif;
  font-weight: 500;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 0.5rem;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); letter-spacing: -0.015em; text-wrap: balance; }

p { margin: 0 0 1rem; }

code, kbd { font-family: var(--mono); font-size: 0.9em; }
kbd {
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 0.05rem 0.35rem;
  color: var(--text);
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) var(--gutter) clamp(3rem, 8vw, 5rem);
}

/* The word that matters in a heading, in the ember gradient. */
.text-gradient {
  color: var(--ember-lite);
  background-image: var(--ember-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* The small spaced capitals above a heading, led by a short rule. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.1rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 2.2rem;
  height: 1px;
  background: var(--accent);
}

.lede {
  text-wrap: pretty;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  max-width: 42rem;
}

.hint {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0.45rem 0 0;
}
.hint[hidden] { display: none; }

.text-link { font-weight: 500; }
.text-link::after { content: ' \2192'; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(20, 21, 20, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.site-header .bar {
  max-width: 72rem;
  min-height: var(--header);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header a[data-brand] {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--cream);
}
.site-header a[data-brand]:hover { text-decoration: none; }
.site-header img[data-logo] { height: 1.9rem; width: auto; display: block; }
.brand-name {
  padding-left: 0.9rem;
  border-left: 1px solid var(--line-strong);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1.6;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.2rem);
}
.nav-link {
  color: var(--cream);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.nav-link:hover, .nav-link[aria-current] {
  color: var(--ember-lite);
  border-bottom-color: var(--ember-lite);
  text-decoration: none;
}
/* On a phone the bar has room for one link; the logo already leads home. */
@media (max-width: 520px) {
  .site-header img[data-logo] { height: 1.6rem; }
  .site-nav .nav-link:not(.docs-link) { display: none; }
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.2rem var(--gutter) 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3rem;
}
.footer-logo img { height: 1.4rem; width: auto; display: block; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.9rem;
}
.footer-nav a { color: var(--cream); }
.footer-nav a:hover { color: var(--ember-lite); }
.footer-bar {
  border-top: 1px solid var(--line);
  padding: 1.1rem var(--gutter);
  text-align: center;
  font-size: 0.82rem;
}
.footer-bar p { margin: 0; }
.footer-bar .heart { color: var(--ember); }

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

button, .button, input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  border: 1.5px solid transparent;
  border-radius: var(--radius-btn);
  background: var(--ember-fill);
  color: #1a1006;
  padding: 1rem 2rem;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(255, 106, 0, 0.16);
  transition: filter 160ms ease, transform 160ms ease, box-shadow 160ms ease,
    background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
button:hover, .button:hover, input[type="submit"]:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(255, 106, 0, 0.26);
  text-decoration: none;
}
button:active, .button:active { transform: none; }
button:focus-visible, .button:focus-visible, input[type="submit"]:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.button--block { width: 100%; }
.button--small {
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  padding: 0.6rem 0.95rem;
  min-height: 2.5rem;
}
.button--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: none;
}
.button--outline:hover {
  background: #fff;
  color: var(--panel);
  border-color: #fff;
  filter: none;
  box-shadow: none;
}
button[data-copied], button[data-copied]:hover {
  background: transparent;
  color: var(--ember-lite);
  border-color: var(--ember-lite);
  box-shadow: none;
}

/* --- panels ---------------------------------------------------------------- */

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.card--narrow {
  max-width: 38rem;
  margin: clamp(0.5rem, 4vw, 2.5rem) auto 0;
  padding: clamp(1.5rem, 5vw, 2.75rem);
}
.card--narrow h1 { font-size: clamp(1.9rem, 4.6vw, 2.6rem); }
.card-title {
  font-size: 1.35rem;
  margin: 0 0 1.25rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line-strong);
}

.chip {
  display: inline-block;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 1.75rem;
}

/* --- fields ---------------------------------------------------------------- */

.field { margin: 0 0 1.15rem; }
.field label {
  display: block;
  margin: 0 0 0.5rem;
  color: var(--cream);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.field label span {
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
}
textarea, input[type="text"], input[type="password"], select {
  font: inherit;
  color: var(--text);
  background-color: var(--field);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.72rem 0.9rem;
  width: 100%;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
textarea::placeholder, input::placeholder { color: var(--muted); opacity: 0.6; }
textarea:hover, input[type="text"]:hover, input[type="password"]:hover, select:hover {
  border-color: rgba(255, 255, 255, 0.4);
}
textarea:focus, input[type="text"]:focus, input[type="password"]:focus, select:focus {
  outline: none;
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.22);
}
select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.4rem;
  background-image: url('chevron.svg');
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 0.75rem;
  cursor: pointer;
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}
.check-row input[type="checkbox"] {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.15rem 0 0;
  accent-color: var(--ember);
  cursor: pointer;
}
.check-row label {
  margin: 0;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.45;
  cursor: pointer;
}

/* --- messages --------------------------------------------------------------- */

[data-error], [data-burn-warning], [data-burned-notice], .notice, .docs-warning {
  border: 1px solid var(--line);
  border-left: 3px solid var(--ember);
  border-radius: var(--radius);
  background: rgba(255, 106, 0, 0.08);
  color: var(--text);
  padding: 0.85rem 1rem;
  margin: 0 0 1.25rem;
  font-size: 0.93rem;
}
[data-error] {
  border-left-color: var(--trouble);
  background: rgba(255, 107, 100, 0.1);
  color: #ffd9d6;
}

/* --- hero ---------------------------------------------------------------- */

.hero { margin: 0 0 clamp(1.75rem, 4vw, 2.75rem); }
.hero .lede { margin-bottom: 0; }

/* --- create page ------------------------------------------------------------ */

.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 21rem;
}
.composer-text, .composer-options { padding: clamp(1.1rem, 3vw, 1.75rem); }
.composer-text { display: flex; flex-direction: column; }
.composer-text .field {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 0;
}
.composer-options { border-left: 1px solid var(--line); }
.composer-submit { margin: 1.5rem 0 0; }
textarea[name="content"] {
  flex: 1;
  min-height: 24rem;
  resize: vertical;
  font-family: var(--mono);
  font-size: 0.92rem;
  line-height: 1.6;
  tab-size: 4;
}
@media (max-width: 860px) {
  .composer { grid-template-columns: minmax(0, 1fr); }
  .composer-options { border-left: 0; border-top: 1px solid var(--line); }
  textarea[name="content"] { min-height: 14rem; }
}

/* --- link page -------------------------------------------------------------- */

.url-box {
  display: flex;
  margin: 1.5rem 0 1.25rem;
}
.url-box input {
  flex: 1;
  min-width: 0;
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  font-family: var(--mono);
  font-size: 0.92rem;
  color: #fff;
}
.url-box button {
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: none;
  padding-inline: 1.5rem;
}
.url-box button:hover { transform: none; }
@media (max-width: 460px) {
  .actions .button { width: 100%; }
}

/* --- guard page ------------------------------------------------------------- */

.guard form { margin-top: 1.5rem; }
.guard-foot { margin: 1.5rem 0 0; }

/* --- not-found ---------------------------------------------------------------- */

.not-found {
  text-align: center;
  padding: clamp(1.5rem, 8vw, 5rem) 0 1rem;
}
.not-found .code {
  font-family: 'Host Grotesk', sans-serif;
  font-size: clamp(5rem, 22vw, 11rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ember);
  background-image: var(--ember-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.not-found h1 { margin-top: 0.75rem; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.not-found .lede { margin: 0.75rem auto 2rem; }

/* --- paste page ------------------------------------------------------------- */

.paste-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin: 0 0 1.25rem;
}
.paste-head h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.paste-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.paste-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}
.paste-bar [data-raw-link] { margin-right: auto; }
.paste-box pre {
  margin: 0;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  min-height: 9rem;
  tab-size: 4;
}
.paste-actions { margin-top: 1.5rem; }

/* The copy-url source on the paste page: off-screen, but still readable by the
   copy button. The address is the secret, so it is never on display. */
.url-copy-source {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  border: 0;
  padding: 0;
  margin: 0;
}

/* --- code / paste ---------------------------------------------------------- */

pre {
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.65;
  overflow-x: auto;
  white-space: pre;
}

/* --- syntax colours --------------------------------------------------------
   The seeded highlight.js 11.9 paints hljs- classes on the paste content. The
   text is still the exact content, only wrapped in spans; these classes give
   it colour in the iXiun palette, never the default highlight.js theme. */

.hljs {
  color: var(--text);
  background: transparent;
}
.hljs-comment,
.hljs-quote {
  color: #9a9790;
  font-style: italic;
}
.hljs-keyword,
.hljs-selector-tag,
.hljs-selector-id,
.hljs-selector-class,
.hljs-selector-pseudo,
.hljs-meta,
.hljs-template-tag,
.hljs-template-variable,
.hljs-addition {
  color: #ff6a00;
}
.hljs-built_in,
.hljs-type,
.hljs-class,
.hljs-title,
.hljs-title.class_,
.hljs-title.function_,
.hljs-name {
  color: #f79814;
}
.hljs-string,
.hljs-regexp,
.hljs-deletion {
  color: #ff8b5e;
}
.hljs-number,
.hljs-symbol,
.hljs-bullet {
  color: #f4a261;
}
.hljs-attr,
.hljs-attribute,
.hljs-variable,
.hljs-variable.language_,
.hljs-params,
.hljs-operator,
.hljs-literal {
  color: #f4f1e9;
}
.hljs-params .hljs-string {
  color: #ff8b5e;
}
.hljs-special,
.hljs-emphasis {
  color: #f79814;
  font-style: italic;
}
.hljs-strong {
  color: #ff6a00;
  font-weight: 600;
}
.hljs-code,
.hljs-formula {
  color: #e6e4e1;
}
.hljs-section,
.hljs-title.class_,
.hljs-title.function_ {
  color: #ffb27e;
}
.hljs-subst {
  color: #e6e4e1;
}

/* --- docs page -------------------------------------------------------------- */

.docs-base {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.9rem;
  margin: 1.5rem 0 0;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
}
.docs-base span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.docs-base code { color: #fff; }

.docs-layout {
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.docs-toc {
  position: sticky;
  top: calc(var(--header) + 1.5rem);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line-strong);
}
.docs-toc-title {
  margin: 0 0 0.5rem;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.docs-toc a {
  margin-left: -1px;
  padding: 0.35rem 0 0.35rem 1rem;
  border-left: 1px solid transparent;
  color: var(--text);
  font-size: 0.9rem;
}
.docs-toc a:hover {
  color: var(--ember-lite);
  border-left-color: var(--ember-lite);
  text-decoration: none;
}
@media (max-width: 860px) {
  .docs-layout { grid-template-columns: minmax(0, 1fr); }
  .docs-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-left: 0;
  }
  .docs-toc-title { display: none; }
  .docs-toc a {
    margin: 0;
    padding: 0.3rem 0.85rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 0.82rem;
  }
  .docs-toc a:hover { border-color: var(--ember-lite); }
}

.docs section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 3vw, 2rem);
  margin: 0 0 1.5rem;
}
.docs section h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.8rem;
  margin: 0 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-strong);
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
}
.docs section h2 code {
  font-size: 0.85em;
  color: #fff;
  overflow-wrap: anywhere;
}
.docs section h3 {
  margin: 2rem 0 0.75rem;
  color: var(--accent);
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.docs section p { color: var(--muted); margin: 0 0 0.9rem; }
.docs section p:last-child { margin-bottom: 0; }
.docs section p strong { color: var(--text); font-weight: 500; }
.docs section code { color: var(--ember-lite); }

.method {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  padding: 0.4rem 0.6rem;
  border-radius: 3px;
}
.method--post { background: var(--ember-fill); color: #1a1006; }
.method--get { background: var(--cream); color: var(--panel); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.docs-fields {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.docs-fields th, .docs-fields td {
  text-align: left;
  padding: 0.75rem 0.9rem;
  vertical-align: top;
}
.docs-fields th {
  background: var(--panel-2);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.docs-fields td { color: var(--text); border-top: 1px solid var(--line); }
.docs-fields td:first-child { width: 11.5rem; }
.docs-fields td:first-child code {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
}
.docs-type, .docs-required {
  display: inline-block;
  margin: 0.3rem 0.4rem 0 0;
  font-size: 0.72rem;
}
.docs-type { color: var(--muted); }
.docs-required {
  color: var(--ember-lite);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.docs-default { color: var(--muted); white-space: nowrap; }
/* On a phone each row stacks: the field, then its rules, then its default. */
@media (max-width: 620px) {
  .docs-fields thead { display: none; }
  .docs-fields, .docs-fields tbody, .docs-fields tr, .docs-fields td { display: block; }
  .docs-fields tr + tr { border-top: 1px solid var(--line); }
  .docs-fields td, .docs-fields td:first-child { width: auto; border-top: 0; padding: 0 0.9rem 0.6rem; }
  .docs-fields td:first-child { padding-top: 0.85rem; }
  .docs-fields td:first-child code { display: inline; margin-right: 0.5rem; }
  .docs-fields td:last-child { padding-bottom: 0.85rem; }
  .docs-default::before { content: 'Default '; }
  .docs-default--none { display: none !important; }
  .docs-fields td:nth-last-child(2):has(+ .docs-default--none) { padding-bottom: 0.85rem; }
}

.docs-statuses {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.docs-statuses li {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  padding: 0.7rem 0.9rem;
  color: var(--text);
  font-size: 0.88rem;
}
.docs-statuses li + li { border-top: 1px solid var(--line); }
.status {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  padding: 0.12rem 0;
  border: 1px solid currentColor;
  border-radius: 3px;
}
.status--ok { color: var(--ok); }
.status--error { color: var(--ember-lite); }

[data-example] { position: relative; }
[data-example] pre {
  margin: 0;
  background: var(--field);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem;
  color: var(--text);
  font-size: 0.85rem;
}
[data-example] .example-copy {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  background: var(--field);
}
[data-example] .example-copy:hover { background: #fff; }
[data-example] .example-copy + pre, [data-example]:has(.example-copy) pre { padding-top: 3.4rem; }

.docs-codes p { margin-bottom: 0.75rem; }
.docs-code-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}
.docs-code-list code {
  display: block;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--field);
  font-size: 0.8rem;
}

.docs-limits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.docs-limit {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  padding: 1.1rem 1.2rem;
}
.docs section .docs-limit-figure {
  margin: 0 0 0.6rem;
  color: #fff;
  font-family: 'Host Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1;
}
.docs-limit-figure span {
  color: var(--muted);
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
}
.docs section .docs-limit h3 { margin: 0 0 0.5rem; }
.docs section .docs-limit p:not(.docs-limit-figure) { font-size: 0.86rem; }

.docs-home { margin: 2rem 0 0; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
