/* Iașistent — „lampă de seară”: nocturnal letterpress.
   Ink-indigo night, warm cream typesetting, linden-gold accent.
   Display: Spectral (literary serif) · UI: Schibsted Grotesk. */

/* Self-hosted fonts (iasi.io convention) — no page may load a third-party font
   CDN, because the browser would hand it every visitor's IP, and reintroducing
   one is a privacy-policy change, not a perf call. latin + latin-ext on every
   face: î is latin, but ă/ș/ț are latin-ext, so Romanian needs both. The set
   isn't uniform because the families aren't: Schibsted Grotesk is variable, one
   file per subset spanning 400–700; Spectral is static, so only the six faces
   actually rendered ship — 300/400/500/600 upright, 300/500 italic. Spectral
   400-italic is deliberately absent (markdown <em> lands in .msg-body, weight
   300). Filenames carry Google's version and the unicode-ranges are verbatim
   from its CSS2 API, so a bump rewrites every name below AND the preload blocks
   in www/index.html and www/privacy/index.html. */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-v7-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-v7-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-italic-v7-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-italic-v7-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/spectral-300-v15-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/spectral-300-v15-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/spectral-400-v15-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/spectral-400-v15-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/spectral-500-v15-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/spectral-500-v15-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/spectral-600-v15-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/spectral-600-v15-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Spectral";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/spectral-300italic-v15-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Spectral";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/spectral-300italic-v15-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Spectral";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/spectral-500italic-v15-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Spectral";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/spectral-500italic-v15-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0d1424;
  --ink-2: #141d33;
  --ink-3: #1b2742;
  --line: rgba(241, 234, 216, 0.13);
  --line-strong: rgba(241, 234, 216, 0.24);
  --cream: #f1ead8;
  --cream-bright: #fff8e9;
  --cream-dim: #aaa695;
  /* Contrast-derived, not picked by eye: .fineprint carries the /privacy/ link
     at 0.72rem, so this has to clear WCAG AA against --ink. 5.2:1; the #7d7c74
     it replaced was 4.4:1. */
  --cream-faint: #8a8980;
  --gold: #e4b04a;
  --gold-soft: #f2ce82;
  --gold-wash: rgba(228, 176, 74, 0.14);
  --serif: "Spectral", "Iowan Old Style", Georgia, serif;
  --sans: "Schibsted Grotesk", "Avenir Next", system-ui, sans-serif;
  --col: 42rem;
  --pad: clamp(1rem, 4vw, 1.5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* color-scheme is the half a dark palette cannot state: without it every piece
   of native UI painted over the page comes back light, the iOS keyboard above
   the composer included. scrollbar-color stays beside it because that tunes the
   bars to this palette rather than the UA's generic dark one. */
html { height: 100%; color-scheme: dark; scrollbar-color: var(--ink-3) var(--ink); }

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--ink); }

/* #sr-status, the page's only live region. Clipped rather than hidden on
   purpose: display:none and visibility:hidden both take an element out of the
   accessibility tree, which for a live region means it announces nothing. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

a { color: var(--gold-soft); text-decoration-color: rgba(242, 206, 130, 0.4); text-underline-offset: 2px; }
a:hover { color: var(--gold); }

/* One focus treatment for everything clickable, matching the composer's gold
   focus-within ring. outline rather than box-shadow on purpose: outlines
   survive forced-colors mode, a shadow ring vanishes there. */
:is(a, .chip, .send, .new-chat):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---- atmosphere ------------------------------------------------------- */

.lamp {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 42% at 50% -8%, rgba(228, 176, 74, 0.13), transparent 68%),
    radial-gradient(40% 30% at 85% 110%, rgba(30, 46, 82, 0.55), transparent 70%);
  z-index: 0;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- topbar ----------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  width: 100%;
  background: linear-gradient(var(--ink) 65%, transparent);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--col);
  margin: 0 auto;
  padding: 0.8rem var(--pad);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.375rem;
  letter-spacing: 0.01em;
  color: var(--cream);
  text-decoration: none;
}

.wordmark .mark { width: 2rem; height: 2rem; flex: none; }

.new-chat {
  font: 600 0.8rem/1 var(--sans);
  letter-spacing: 0.04em;
  color: var(--cream-dim);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  transition: color 160ms, border-color 160ms;
}
.new-chat:hover { color: var(--gold-soft); border-color: var(--gold); }

/* ---- chat column ------------------------------------------------------ */

.chat, .doc {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  padding: 0.5rem var(--pad) 1rem;
}

/* ---- hero (empty state) ----------------------------------------------- */

.hero { padding: clamp(1.5rem, 7vh, 4.5rem) 0 2rem; animation: rise 600ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }

.hero-kicker, .doc h2 {
  font: 700 0.72rem/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.hero h1, .doc-header h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 6.5vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-soft);
}

.hero-sub {
  margin-top: 1.1rem;
  max-width: 34rem;
  color: var(--cream-dim);
  font-size: 1.02rem;
}

.chips {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.chip {
  font: 400 0.95rem/1.45 var(--sans);
  text-align: left;
  color: var(--cream);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem 0.9rem;
  cursor: pointer;
  transition: border-color 160ms, background 160ms, transform 160ms;
}
.chip:hover {
  border-color: var(--gold);
  background: var(--ink-3);
  transform: translateY(-1px);
}

.chip-kicker {
  display: block;
  font: 700 0.66rem/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Staggered entrance */
.hero-kicker { animation: rise 500ms 60ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero h1 { animation: rise 560ms 140ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-sub { animation: rise 560ms 240ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.chips { animation: rise 560ms 340ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }

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

.messages { display: flex; flex-direction: column; gap: 1.4rem; padding-block: 0.75rem; }

.msg { animation: rise 360ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }

.msg-user {
  align-self: flex-end;
  max-width: 85%;
  background: var(--gold-wash);
  border: 1px solid rgba(228, 176, 74, 0.28);
  border-radius: 14px 14px 4px 14px;
  padding: 0.65rem 0.95rem;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.msg-assistant {
  align-self: stretch;
  display: grid;
  /* minmax(0, 1fr), not 1fr: a bare 1fr floors the track at its content's
     min-content width, so an unbroken URL on a source line pushed it past the
     viewport and the page scrolled sideways. The floor belongs on the track or
     on .msg-content, the grid item — a min-width: 0 on .msg-body was inert. */
  grid-template-columns: 1.15rem minmax(0, 1fr);
  gap: 0.65rem;
}

.msg-assistant .comma {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--gold);
  user-select: none;
}

.msg-body, .doc p, .doc ul {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.08rem;
  line-height: 1.68;
  overflow-wrap: break-word;
}

.msg-body p + p, .msg-body p + ul, .msg-body ul + p,
.msg-body p + ol, .msg-body ol + p { margin-top: 0.7em; }
.msg-body ul, .msg-body ol, .doc ul { padding-left: 1.2em; }
.msg-body li, .doc li { margin-block: 0.2em; }
.msg-body li::marker, .doc li::marker { color: var(--gold); }
.msg-body strong, .doc strong { font-weight: 600; color: var(--cream-bright); }
.msg-body code {
  font: 0.85em ui-monospace, monospace;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.08em 0.35em;
}

.msg-error .msg-body { color: var(--cream-dim); font-style: italic; }

/* Interrupted answer: the partial text stays readable, the note reads as chrome. */
.msg-note {
  margin-top: 0.8em;
  padding-left: 0.7rem;
  border-left: 2px solid var(--line-strong);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--cream-dim);
}

/* tool activity + typing */

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: 500 0.82rem/1 var(--sans);
  letter-spacing: 0.03em;
  color: var(--cream-dim);
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  margin-bottom: 0.6rem;
  animation: pulse 1.6s ease-in-out infinite;
}
.status-line .dot { color: var(--gold); }

@keyframes pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

.typing { display: inline-flex; gap: 0.18rem; color: var(--gold); font-family: var(--serif); font-size: 1.4rem; line-height: 0.4; }
.typing span { animation: commabob 1.1s infinite; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes commabob {
  0%, 60%, 100% { transform: none; opacity: 0.45; }
  30% { transform: translateY(-3px); opacity: 1; }
}

/* ---- composer --------------------------------------------------------- */

.composer {
  position: sticky;
  bottom: 0;
  z-index: 3;
  width: 100%;
  background: linear-gradient(transparent, var(--ink) 34%);
}

.composer form {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0.4rem var(--pad) 0.9rem;
}

.inputwrap {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  transition: border-color 160ms, box-shadow 160ms;
}
.inputwrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(228, 176, 74, 0.14);
}

textarea {
  flex: 1;
  resize: none;
  max-height: 9rem;
  border: 0;
  background: transparent;
  color: var(--cream);
  font: 1rem/1.5 var(--sans);
  padding-block: 0.35rem;
  outline: none;
}
textarea::placeholder { color: var(--cream-faint); }

.send {
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 11px;
  background: var(--gold);
  color: var(--ink);
  cursor: pointer;
  transition: background 160ms, transform 160ms, opacity 160ms;
}
.send svg { width: 1.15rem; height: 1.15rem; }
.send:hover { background: var(--gold-soft); transform: translateY(-1px); }
.send:disabled { opacity: 0.45; cursor: default; transform: none; }

/* Turnstile's execute-mode widget: invisible on a clean send (appearance:
   interaction-only in app.js), so no height is reserved — the rare interactive
   challenge grows the composer when it renders. Contrast with iasi.io's
   contact page, whose always-visible widget must reserve its 65px.

   Nothing here reaches inside the widget: Cloudflare renders it into a CLOSED
   shadow root, so a `.turnstile iframe` rule matches nothing and its palette is
   app.js's `theme` option. The container still shapes two things — justify-items
   sizes the item to its content, holding `size: "flexible"` at its 300px floor
   rather than stretching to the column, and 0fr → 1fr animates the collapse that
   app.js's interactive callbacks drive through .is-open. */
.turnstile {
  display: grid;
  grid-template-rows: 0fr;
  justify-items: center;
  opacity: 0;
  transition: grid-template-rows 260ms ease, opacity 180ms ease, margin-top 260ms ease;
}
.turnstile > * { min-height: 0; overflow: hidden; } /* both needed for 0fr to clip */
.turnstile.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  /* Detached: flush, it read as a second row of the composer. */
  margin-top: 0.9rem;
}

.fineprint {
  margin-top: 0.55rem;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--cream-faint);
}
.fineprint a { color: inherit; }
.fineprint a:hover { color: var(--gold-soft); }

/* ---- document pages (/privacy/) --------------------------------------- */

/* Only the deltas from the chat layer live here — the column, prose scale,
   section headings and h1 treatment are shared selectors above, so a change to
   the type scale reaches both page kinds. */

.doc { padding-bottom: 2rem; }
.doc section { margin-top: 2.6rem; }
.doc p, .doc ul { margin-top: 0.8em; }
/* Documents run heading-then-prose, where the kicker's trailing space would
   double up on the section's own margin. */
.doc h2 { line-height: 1.4; margin-bottom: 0; }

.doc-header { padding: clamp(1.2rem, 5vh, 3rem) 0 0; }
/* A document title is a label, not the landing statement the hero h1 makes. */
.doc-header h1 { font-size: clamp(1.9rem, 5.5vw, 2.6rem); line-height: 1.15; }
/* Class alone loses to the `.doc p` prose rule above, which is a type
   selector heavier — these two need the extra class to land. */
.doc .doc-intro { margin-top: 0.8rem; max-width: 34rem; color: var(--cream-dim); }

.callout {
  margin-top: 1.8rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.15rem;
}
.callout p { margin-top: 0; }

.doc .doc-updated { margin-top: 2.2rem; font: 400 0.82rem/1.5 var(--sans); color: var(--cream-faint); }

.doc-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  padding: 1.2rem var(--pad) 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  border-top: 1px solid var(--line);
  font: 400 0.85rem/1.5 var(--sans);
  color: var(--cream-dim);
}

/* ---- small screens ---------------------------------------------------- */

@media (max-width: 540px) {
  .chips { grid-template-columns: 1fr; }
  .msg-user { max-width: 92%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
