/* FitoNova site -- hand-written, no build step, no external requests.
   The informational pages: /functii, /date, /firme in three languages.

   These are the pages where the app is written down rather than sold, so they
   need more vocabulary than the legal prose in pages.css has: a contents list,
   the hairline spec panels that carry the "what it shows / what you can do /
   where it stops" triads, a numbered step ladder, a definition grid, and the
   phone shell the generated app screens are stamped into.

   Everything here is the same blueprint grammar as the rest of the site --
   square corners, hairline borders, `+` registration marks from base.css, no
   fill of its own beyond --panel -- and it adds no band and no script.

   One of the ordered sheets in public/css/; it is linked AFTER pages.css, so
   it may lean on .article's type and override it. The load order in every
   page's <head> IS the cascade. Owner's ruling 2026-08-10: no source file
   over 500 lines. */

/* --------------------------------------------------------------- the head */
.article .doc-lede {
  margin-top: 22px;
  max-width: 44em;
  font: 400 19px/1.6 "Barlow", sans-serif;
  color: var(--ink);
}

/* The contents list. It is a list of in-page anchors, so it is a <nav> with
   real links: with JS off, on paper and in a reader it behaves the same. */
.doc-toc {
  position: relative;
  margin-top: 34px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.doc-toc-title {
  display: block;
  font: 600 11px/1 "Barlow", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acc2);
}

.doc-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}

.doc-toc li {
  margin-top: 0;
  border-bottom: 1px solid var(--line);
}

.doc-toc a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border-bottom: 0;
  font: 500 15px/1.3 "Barlow", sans-serif;
  color: var(--ink);
}

.doc-toc a:hover {
  color: var(--acc);
}

.doc-toc .n {
  font: 600 12px/1 "Barlow", sans-serif;
  letter-spacing: 0.1em;
  color: var(--acc2);
}

/* ------------------------------------------------------------- the panels */
/* One section per screen, and inside it the triad. The panel is the same
   hairline plate the landing's bento uses, drawn here at prose width. */
.doc-cols {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.spec {
  position: relative;
  padding: 20px 22px 24px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.spec-lbl {
  display: block;
  font: 600 11px/1 "Barlow", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acc2);
}

.article .spec p,
.article .spec li {
  margin-top: 12px;
  font-size: 15px;
}

.article .spec ul {
  margin-top: 4px;
  padding-left: 20px;
}

/* The limits panel is the one a reader must not skim past, so it carries the
   accent rule down its side the .callout in pages.css uses. Colour is not the
   only signal: the label says so in words. */
.spec.is-limit {
  border-left: 3px solid var(--acc);
}

/* A triad whose third panel runs the full width: the pair sits in the grid and
   the limits panel follows it, so it never has to share a row with prose. */
.doc-cols + .spec {
  margin-top: 18px;
}

/* Codes and field names quoted inside the prose. Not a code block -- one
   token, at the paragraph's own size, so the line does not grow a step. */
.article code {
  font: 600 0.95em/1 "Barlow", monospace;
  letter-spacing: 0.04em;
  color: var(--ink);
}

/* ------------------------------------------------------------- step ladder */
.steps {
  margin-top: 26px;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--line);
}

.article .steps > li {
  position: relative;
  counter-increment: step;
  margin-top: 0;
  padding: 20px 0 20px 58px;
  border-bottom: 1px solid var(--line);
}

.article .steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 20px;
  font: 600 22px/1 "Barlow Condensed", sans-serif;
  color: var(--acc2);
}

.steps b {
  display: block;
  font: 600 18px/1.25 "Barlow Condensed", sans-serif;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.article .steps p {
  margin-top: 6px;
}

/* --------------------------------------------------------- definition grid */
.article .defs {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.article .defs dt {
  padding-top: 16px;
  font: 600 16px/1.3 "Barlow", sans-serif;
  color: var(--ink);
}

.article .defs dd {
  margin: 6px 0 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font: 400 16px/1.7 "Barlow", sans-serif;
  color: var(--mut);
}

/* ------------------------------------------------------------- the phones */
/* The three app screens stamped by tools/gen_screens.py. The frame rules live
   in hero.css; only the size is this sheet's business, and it is set the same
   way the fan sets it -- one --pwn number, the screen's height derived from
   the reference's 360x800 raster. */
.doc-figs {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
}

.doc-phone {
  --pwn: 236;
  margin: 0;
  width: calc(var(--pwn) * 1px);
}

.doc-phone .phone-frame {
  padding: 9px;
  border-radius: 38px;
  box-shadow: var(--pshade);
}

.doc-phone .phone-screen {
  height: calc((var(--pwn) - 18) * 800px / 360);
  border-radius: 30px;
}

.doc-phone .phone-notch {
  top: 9px;
  width: 76px;
  height: 20px;
}

.article .doc-cap {
  margin-top: 12px;
  text-align: center;
  font: 600 13px/1.4 "Barlow", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--acc2);
}

/* ------------------------------------------------------------- the tail */
/* Where a page hands the reader on: the sibling pages and the landing. */
.doc-more {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line2);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.doc-more a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 0;
  font: 600 15px/1 "Barlow", sans-serif;
  color: var(--acc);
}

.doc-more a:hover {
  color: var(--fill2);
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 768px) {
  .doc-toc ol {
    grid-template-columns: 1fr;
  }

  .doc-cols {
    grid-template-columns: 1fr;
  }

  .article .doc-lede {
    font-size: 17px;
  }

  /* A 236px phone plus 22px of page padding is 280 -- it fits a 375 viewport,
     but three of them in a row do not, so the row becomes a column and each
     screen keeps its full size rather than being shrunk to a thumbnail. */
  .doc-figs {
    gap: 34px;
  }
}
