/* Clawed Club — document pages (privacy policy, codes of conduct).
   Loaded after styles.css by privacy.html and the two code-of-conduct pages,
   which are generated by build_doc_pages.py. Uses the tokens from styles.css. */

:root {
  --tape-yellow: #F5C400;   /* 11.6:1 on --tape-bg */
  --tape-black: #120F0D;
  --tape-bg: #1A1607;
}

/* ---- Under construction notice: caution tape ---- */
.construction {
  position: relative;
  min-width: 0;
  background: var(--tape-bg);
  border: 14px solid var(--tape-yellow);
  border-image: repeating-linear-gradient(-45deg,
      var(--tape-yellow) 0 14px, var(--tape-black) 14px 28px) 14;
  padding: var(--s-6) clamp(var(--s-4), 4vw, var(--s-8));
  box-shadow: 0 14px 28px -18px #000;
}
.construction p { margin: 0; max-width: 46rem; color: var(--color-text); font-size: var(--t-lg); }
.construction .construction-title {
  font: 800 clamp(1.5rem, 5vw, 2.75rem)/1.1 var(--font-heading-code);
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--tape-yellow);
  margin: 0 0 var(--s-3);
  overflow-wrap: anywhere;
}
.construction .construction-title::before {
  content: "⚠ ";
  font-weight: 400;
}
@media (max-width: 30rem) {
  .construction { border-width: 10px; border-image-width: 10px; padding: var(--s-5) var(--s-4); }
  .construction p { font-size: var(--t-base); }
}

/* ---- Document text ---- */
.doc .body { font-size: var(--t-base); line-height: 1.7; }
.doc .body > :first-child { margin-top: 0; }
.doc .body p,
.doc .body ul,
.doc .body ol { max-width: 70ch; }
.doc .body p { margin: 0 0 var(--s-4); }

.doc .body h2 {
  font: 600 var(--t-xl)/1.3 var(--font-heading-sharp);
  margin: var(--s-9) 0 var(--s-4);
  padding-top: var(--s-6);
  border-top: 1px solid var(--color-line);
  max-width: 70ch;
}
.doc .body > h2:first-child,
.doc .body hr + h2 { border-top: 0; padding-top: 0; margin-top: 0; }
.doc .body h3 {
  font: 600 var(--t-base)/1.4 var(--font-heading-code);
  color: var(--color-accent);
  margin: var(--s-7) 0 var(--s-3);
}
.doc .body h2 + h3 { margin-top: var(--s-4); }
.doc .body h4 {
  font: 600 var(--t-md)/1.4 var(--font-heading-code);
  color: var(--color-muted);
  margin: var(--s-6) 0 var(--s-2);
}

.doc .body ul,
.doc .body ol { margin: 0 0 var(--s-5); padding-left: var(--s-6); }
.doc .body li { margin: 0 0 var(--s-2); padding-left: var(--s-1); }
.doc .body li::marker { color: var(--color-accent); }
.doc .body ol > li::marker { font: 600 var(--t-md) var(--font-heading-code); }
.doc .body li > ul,
.doc .body li > ol { margin: var(--s-2) 0 var(--s-3); padding-left: var(--s-5); }
.doc .body li li::marker { color: var(--color-muted); }

.doc .body hr {
  border: 0;
  border-top: 1px dashed var(--color-line);
  margin: var(--s-9) 0;
}
.doc .body strong { font-weight: 650; color: #FFF8F1; }
.doc .body em { font-style: italic; }
.doc .body code {
  font: 400 .9em var(--font-heading-code);
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: 4px;
  padding: 0 .3em;
}
.doc .body a { overflow-wrap: anywhere; }

/* ---- Tables ---- */
.doc-table {
  max-width: 100%;
  overflow-x: auto;
  margin: var(--s-5) 0 var(--s-6);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}
.doc-table:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.doc-table table {
  width: 100%;
  min-width: 34rem;   /* below this the wrapper scrolls instead of crushing columns */
  border-collapse: collapse;
  font-size: var(--t-md);
  line-height: 1.5;
}
.doc-table th,
.doc-table td {
  padding: var(--s-3) var(--s-4);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-line);
  border-right: 1px solid var(--color-line);
}
.doc-table th:last-child,
.doc-table td:last-child { border-right: 0; }
.doc-table tbody tr:last-child td { border-bottom: 0; }
.doc-table th {
  background: var(--color-bg);
  font: 600 var(--t-sm)/1.4 var(--font-heading-code);
  color: var(--color-accent);
  white-space: nowrap;
}
.doc-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }

/* ---- "To be confirmed" placeholder ---- */
.tbc {
  display: inline-block;
  font: 500 var(--t-xs)/1.5 var(--font-heading-code);
  font-style: normal;
  letter-spacing: .02em;
  color: var(--color-muted);
  border: 1px dashed var(--color-muted);
  border-radius: 999px;
  padding: 0 var(--s-2);
  vertical-align: .1em;
  white-space: nowrap;
}
strong .tbc, em .tbc { font-weight: 500; color: var(--color-muted); }
