/* ProdBord · text pages (help, privacy, terms)
   Plain reading pages. They share the home page's tokens and type but none of
   its scroll engine: no stage, no pins, no motion. */

:root {
  --paper:    #f5f3ef;
  --tint:     #e8e5dd;
  --flat:     #14201a;
  --ink:      #17211b;
  --ink-soft: #4c5c52;
  --line:     #d6d2c8;
  --green:    #176b4d;
  --green-dk: #12573f;
  --deep-ink: #f6f3ee;
  --deep-soft: #c5bcaf;
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-text: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-text); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green-dk); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 3px; }
::selection { background: #b9e2d1; color: var(--ink); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 8px;
}
.skip:focus { top: 1rem; }

/* ---- header ---- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 243, 239, 0.97); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top__inner {
  width: min(1140px, 92vw); margin: 0 auto; min-height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.top__mark { display: flex; align-items: center; gap: 0.55rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.top__badge {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 600;
}
.top__nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; }
.top__nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.93rem; font-weight: 500; padding: 0.55rem 0.1rem; }
.top__nav a:hover, .top__nav a[aria-current="page"] { color: var(--green-dk); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.45em; }

/* ---- layout ---- */
.page { width: min(1140px, 92vw); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 9vw, 6rem); }
.page--doc { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 46rem); gap: clamp(2rem, 5vw, 4.5rem); }
.side { position: sticky; top: 92px; align-self: start; font-size: 0.93rem; }
.side h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin: 0 0 0.6rem; font-weight: 600; }
.side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.side a { display: block; padding: 0.35rem 0.6rem; border-radius: 7px; color: var(--ink); text-decoration: none; }
.side a:hover { background: var(--tint); }
.side a[aria-current="page"] { background: #dbe9e1; color: var(--green-dk); font-weight: 600; }

.doc { min-width: 0; }
.eyebrow { margin: 0 0 0.5rem; color: var(--green-dk); font-weight: 600; font-size: 0.9rem; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); margin: 0 0 1rem; letter-spacing: -0.035em; }
.doc h2 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); margin: 2.8rem 0 0.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.doc h3 { font-size: 1.18rem; margin: 1.9rem 0 0.5rem; letter-spacing: -0.015em; }
.lede { font-size: 1.15rem; color: var(--ink-soft); margin: 0 0 1.5rem; max-width: 40rem; }
.doc p, .doc li { max-width: 44rem; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li { margin: 0.35rem 0; }
.doc b, .doc strong { font-weight: 600; }
.updated { color: var(--ink-soft); font-size: 0.93rem; }

.toc { background: #fbfaf7; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.3rem; margin: 1.5rem 0 0; }
.toc p { margin: 0 0 0.4rem; font-weight: 600; font-size: 0.93rem; }
.toc ol { margin: 0; font-size: 0.95rem; }

.callout {
  border-left: 4px solid var(--green); background: #eaf2ed;
  padding: 0.9rem 1.1rem; border-radius: 0 10px 10px 0; margin: 1.4rem 0;
}
.callout--warn { border-color: #b26a00; background: #f7eedf; }
.callout p { margin: 0.3rem 0; }

.shot { margin: 1.4rem 0 1.8rem; }
.shot img { border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(23, 33, 27, 0.12); background: #fff; }
.shot figcaption { margin-top: 0.55rem; color: var(--ink-soft); font-size: 0.9rem; }
.shot--narrow { max-width: 30rem; }

table { border-collapse: collapse; width: 100%; margin: 1.2rem 0; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--line); }
th { font-weight: 600; background: var(--tint); }
.table-wrap { overflow-x: auto; }

/* ---- help hub ---- */
.hub h1 { max-width: 40rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin-top: 2rem; }
.card {
  display: block; background: #fbfaf7; border: 1px solid var(--line); border-radius: 14px;
  padding: 1.3rem 1.4rem; color: var(--ink); text-decoration: none;
}
.card:hover { border-color: var(--green); box-shadow: 0 10px 26px rgba(23, 33, 27, 0.08); }
.doc .card h2 { font-size: 1.25rem; margin: 0 0 0.4rem; padding-top: 0; border-top: 0; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }
.note-box { margin-top: 2.2rem; color: var(--ink-soft); font-size: 0.95rem; max-width: 44rem; }

/* FAQ disclosure */
details { border-bottom: 1px solid var(--line); padding: 0.4rem 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; padding: 0.6rem 0; list-style-position: outside; }
summary:hover { color: var(--green-dk); }
details > :not(summary) { margin-top: 0.2rem; }

/* ---- footer ---- */
.foot { background: var(--flat); color: var(--deep-soft); font-size: 0.9rem; }
.foot__inner {
  width: min(1140px, 92vw); margin: 0 auto; padding: 1.6rem 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
}
.foot a { color: var(--deep-ink); }
.foot a:hover { color: #91e5bb; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }

@media (max-width: 900px) {
  .page--doc { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
  .side ul { display: flex; flex-wrap: wrap; gap: 0.3rem; }
  .side a { border: 1px solid var(--line); }
}

/* Unfilled details awaiting confirmation. Deliberately loud so they can't be
   missed; the publish script refuses to deploy while any remain. */
mark.todo { background: #ffe58a; color: #3d2f00; padding: 0 0.25em; border-radius: 3px; }
