/* ── Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Georgia", serif;
  font-size: 11pt;
  line-height: 1.7;
  color: #111;
  background: #fff;
}

/* ── Layout ── */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 56px;
}

/* ── Cover ── */
.cover {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 3px solid #111;
  padding-bottom: 64px;
}

.cover-label {
  font-family: "Arial", sans-serif;
  font-size: 8pt;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 24px;
}

.cover h1 {
  font-family: "Arial", sans-serif;
  font-size: 38pt;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.cover h1 strong {
  font-weight: 700;
}

.cover-sub {
  font-size: 12pt;
  color: #555;
  margin-bottom: 56px;
  max-width: 480px;
}

.cover-meta {
  font-family: "Arial", sans-serif;
  font-size: 9pt;
  color: #888;
  display: flex;
  gap: 32px;
}

.cover-meta span {
  display: block;
}
.cover-meta .meta-label {
  font-weight: 700;
  color: #111;
  font-size: 8pt;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── TOC ── */
.toc {
  margin-bottom: 24px;
}
.toc-title {
  font-family: "Arial", sans-serif;
  font-size: 8pt;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8e8e8;
}

.toc-section {
  margin-bottom: 6px;
}
.toc-section a {
  display: flex;
  justify-content: space-between;
  text-decoration: none;
  color: #111;
  font-family: "Arial", sans-serif;
  font-size: 10pt;
  padding: 3px 0;
  border-bottom: 1px dotted #ddd;
}

.toc-section a:hover {
  color: #000;
}
.toc-sub a {
  font-size: 9pt;
  color: #555;
  padding-left: 20px;
}

/* ── Section headings ── */
.section-header {
  margin-top: 56px;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid #111;
}

.section-header .section-label {
  font-family: "Arial", sans-serif;
  font-size: 7.5pt;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 6px;
}

.section-header h2 {
  font-family: "Arial", sans-serif;
  font-size: 20pt;
  font-weight: 300;
  letter-spacing: -0.01em;
}

/* ── Role badge ── */
.role-badge {
  display: inline-block;
  font-family: "Arial", sans-serif;
  font-size: 7.5pt;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1.5px solid #111;
  margin-bottom: 20px;
}

.role-badge.admin {
  background: #111;
  color: #fff;
}
.role-badge.manager {
  background: #fff;
  color: #111;
}
.role-badge.employee {
  background: #f4f4f4;
  color: #111;
  border-color: #ccc;
}

/* ── Sub-headings ── */
h3 {
  font-family: "Arial", sans-serif;
  font-size: 12pt;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 10px;
}

h4 {
  font-family: "Arial", sans-serif;
  font-size: 10pt;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #444;
}

/* ── Body text ── */
p {
  margin-bottom: 12px;
}

ul,
ol {
  margin: 8px 0 14px 22px;
}

li {
  margin-bottom: 5px;
}

/* ── Callout boxes ── */
.callout {
  border-left: 3px solid #111;
  padding: 12px 16px;
  margin: 18px 0;
  background: #f8f8f8;
}

.callout.tip {
  border-color: #555;
}
.callout.note {
  border-color: #111;
}
.callout.warn {
  border-color: #b91c1c;
  background: #fff8f8;
}

.callout-label {
  font-family: "Arial", sans-serif;
  font-size: 7.5pt;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: #555;
  margin-bottom: 4px;
}

.callout.warn .callout-label {
  color: #b91c1c;
}

.callout p {
  margin-bottom: 0;
  font-size: 10.5pt;
}

/* ── Step list ── */
.steps {
  counter-reset: step-counter;
  list-style: none;
  margin: 20px 0 28px;
  padding: 0;
}

.steps > li {
  counter-increment: step-counter;
  position: relative;
  padding: 14px 18px 14px 56px;
  border: 1.5px solid #e0e0e0;
  border-top: none;
  background: #fcfcfc;
  page-break-inside: avoid;
}

.steps > li:first-child {
  border-top: 1.5px solid #e0e0e0;
}

/* Full-height number strip */
.steps > li::before {
  content: counter(step-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  background: #111;
  color: #fff;
  font-family: "Arial", sans-serif;
  font-size: 9pt;
  font-weight: 700;
  text-align: center;
  padding-top: 15px;
  letter-spacing: 0.04em;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* Tighten child spacing inside a step */
.steps > li > p {
  margin-bottom: 5px;
}

.steps > li > p:last-child {
  margin-bottom: 0;
}

.steps > li > ul,
.steps > li > ol {
  margin: 6px 0 4px 18px;
}

.steps > li > ul:last-child,
.steps > li > ol:last-child {
  margin-bottom: 0;
}

/* ── Table ── */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 20px;
  font-size: 10pt;
}

th {
  font-family: "Arial", sans-serif;
  font-size: 8pt;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  padding: 8px 10px;
  background: #111;
  color: #fff;
}

td {
  padding: 8px 10px;
  border-bottom: 1px solid #e8e8e8;
  vertical-align: top;
}

tr:nth-child(even) td {
  background: #f8f8f8;
}

/* ── Key term ── */
kbd {
  font-family: "Arial", sans-serif;
  font-size: 9pt;
  background: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 1px 5px;
}

strong {
  font-weight: 700;
}
em {
  font-style: italic;
}

hr {
  border: none;
  border-top: 1px solid #e8e8e8;
  margin: 36px 0;
}

/* ── Page summary strip ── */
.page-summary {
  margin-top: 28px;
  padding: 16px 20px;
  border: 1.5px solid #111;
  font-family: "Arial", sans-serif;
  font-size: 9.5pt;
}

.page-summary-title {
  font-size: 8pt;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.page-summary ul {
  margin: 0;
  padding-left: 16px;
}
.page-summary li {
  margin-bottom: 3px;
}

/* ── Mobile ── */
@media (max-width: 640px) {
  body {
    font-size: 12pt;
  }

  .page {
    padding: 28px 20px;
  }

  .cover {
    min-height: auto;
    padding-bottom: 48px;
    padding-top: 48px;
  }

  .cover h1 {
    font-size: 26pt;
  }

  .cover-sub {
    font-size: 11pt;
    max-width: 100%;
  }

  .cover-meta {
    flex-direction: column;
    gap: 16px;
  }

  .section-header {
    margin-top: 40px;
  }

  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .steps > li {
    padding-left: 52px;
  }

  .page-summary {
    padding: 14px 16px;
  }
}

/* ── Print ── */
@media print {
  body {
    font-size: 10pt;
  }
  .page {
    padding: 0;
    max-width: 100%;
  }

  .cover {
    page-break-after: always;
    min-height: auto;
    padding-bottom: 80px;
  }
  .toc-section-group {
    page-break-after: always;
  }
  .role-section {
    page-break-before: always;
  }
  h3 {
    page-break-after: avoid;
  }
  h4 {
    page-break-after: avoid;
  }
  table {
    page-break-inside: avoid;
  }
  .callout {
    page-break-inside: avoid;
  }
  .steps > li {
    page-break-inside: avoid;
  }

  .steps > li::before {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  a {
    color: #111;
    text-decoration: none;
  }
  .toc-section a {
    color: #111;
  }
}

@page {
  margin: 20mm 20mm 24mm;
}

@page :first {
  margin: 0;
}
