/* Documentation content pages under /docs/ — layout & typography.
   Colours reuse the anyWave brand tokens; the header/nav lives in nav.css. */

:root {
  --coral: #E25A45;
  --logo: #E8403A;
  --casing: #383E42;
  --ink: #383E42;
  --muted: #8a8a8a;
  --line: #ececec;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--casing);
  padding: 20px 28px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.brand {
  display: inline-block;
  width: 114px;
}
.brand img { display: block; width: 100%; height: auto; }

main {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}
.doc-kicker {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coral);
}
h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4.6vw, 38px);
  line-height: 1.15;
  letter-spacing: .01em;
}
.doc-lead {
  margin: 0 0 34px;
  font-size: 17px;
  color: var(--muted);
  max-width: 620px;
}
h2 {
  margin: 36px 0 10px;
  font-size: 20px;
  letter-spacing: .01em;
}
h2 .sec {
  color: var(--coral);
  font-weight: 600;
  margin-right: 8px;
}
p { margin: 0 0 14px; }
ul { margin: 0 0 18px; padding-left: 22px; }
li { margin-bottom: 6px; }
strong { font-weight: 600; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 22px;
  font-size: 15px;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border: 1px solid var(--line);
}
th {
  background: #f7f7f7;
  font-weight: 600;
}
table.tone-map td:first-child {
  white-space: nowrap;
  text-align: center;
  font-weight: 600;
  color: var(--coral);
  width: 1%;
}

.doc-footer {
  border-top: 1px solid var(--line);
  padding: 22px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.doc-footer a { color: var(--coral); text-decoration: none; }
.doc-footer a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  header { padding: 16px 18px; }
  .brand { width: 85.5px; }
  main { padding: 26px 20px 56px; }
  h2 { font-size: 18px; }
  table { font-size: 14px; }
  th, td { padding: 8px 10px; }
}
