*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: Onest, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f0f4f8;
  color: #1a1a1a;
  line-height: 1.75;
  padding: 32px 16px 64px;
  font-size: 15px;
}

/* ── Page wrapper ── */
.page-wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

/* ── Header ── */
.page-header {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  padding: 28px 32px 24px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.page-header-brand {
  font-size: 14px;
  font-weight: 700;
  color: #2aa6fb;
  letter-spacing: .5px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.page-header-brand a {
  color: inherit;
  text-decoration: none;
}
.page-header-brand a:hover { text-decoration: underline; }
.page-header-divider { width: 1px; height: 20px; background: #e1e5e9; flex-shrink: 0; }
.page-header-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

/* ── Document card ── */
.doc-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  padding: 36px 40px;
  margin-bottom: 12px;
}

/* ── Meta / last updated ── */
.doc-meta {
  font-size: 13px;
  color: #888;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f4f8;
}

/* ── Section headings ── */
h2 {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 32px 0 10px;
  padding-top: 4px;
}
h2:first-of-type { margin-top: 0; }

h3 {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin: 20px 0 6px;
}

/* ── Body copy ── */
p { margin-bottom: 12px; color: #333; }
p:last-child { margin-bottom: 0; }

ul, ol {
  padding-left: 20px;
  margin-bottom: 12px;
  color: #333;
}
li { margin-bottom: 4px; }

/* ── Placeholder highlight ── */
/* Softened: visible but not dominant — dashed underline instead of amber sticker */
.placeholder {
  font-style: italic;
  color: #888;
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 2px;
  font-size: 0.95em;
}

/* ── Table ── */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 12px;
}
th {
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #888;
  padding: 8px 10px;
  border-bottom: 2px solid #f0f4f8;
}
td {
  padding: 8px 10px;
  border-bottom: 1px solid #f0f4f8;
  vertical-align: top;
  color: #333;
}
tr:last-child td { border-bottom: none; }

/* ── Divider ── */
hr {
  border: none;
  border-top: 1px solid #f0f4f8;
  margin: 28px 0;
}

/* ── Back link ── */
.back-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: #2aa6fb;
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

/* ── Mobile ── */
@media (max-width: 600px) {
  body { padding: 16px 12px 48px; }
  .doc-card { padding: 24px 20px; }
  .page-header { padding: 20px; }

  /* Section spacing */
  h2 { margin-top: 28px; }

  /* Stacked table — hides header row, each td becomes its own labelled block */
  thead { display: none; }

  table, tbody, tr, td { display: block; width: 100%; }

  tr {
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
  }
  tr:last-child { margin-bottom: 0; }

  td {
    padding: 4px 0;
    border: none;
    font-size: 13px;
    word-break: break-word;
  }

  /* Pseudo-label above each cell value using data-label attribute */
  td::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #aaa;
    margin-bottom: 2px;
    margin-top: 8px;
  }
  td:first-child::before { margin-top: 0; }

  /* Links in table wrap cleanly */
  td a { word-break: break-all; }
}
