/* Doc / boarding-pass layer on top of site.css */

.doc-hero {
  padding: 72px 0 56px;
}
.doc-hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.08;
  font-weight: 300;
  max-width: 18ch;
  margin: 18px 0 0;
}
.doc-hero .lede {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted-on-ink);
  max-width: 44ch;
  margin: 22px 0 0;
}
.doc-hero .lede a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--rule-ink);
}
.doc-meta > div {
  padding: 22px 28px 22px 0;
  border-left: 1px solid var(--rule-ink);
  padding-left: 28px;
}
.doc-meta > div:first-child {
  border-left: 0;
  padding-left: 0;
}
.doc-meta strong {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.doc-meta p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--cream);
}

.doc-toc { padding: 56px 0; }
.doc-toc ol {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule-paper);
}
.doc-toc li { border-bottom: 1px solid var(--rule-paper); }
.doc-toc a {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  color: var(--ink);
}
.doc-toc a:hover .toc-title { color: var(--gold-deep); }
.doc-toc .toc-num {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 22px;
  color: var(--gold-deep);
}
.doc-toc .toc-title {
  font-size: 17px;
  line-height: 1.35;
}

.doc-step { padding: 72px 0; }
.doc-step .step-head {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 32px clamp(24px, 5vw, 72px);
  margin-bottom: 8px;
}
.doc-step .step-num {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 42px;
  color: var(--gold-deep);
  line-height: 1;
  margin: 0 0 12px;
}
.doc-step h2 { max-width: 14ch; }
.doc-step .step-body p,
.doc-step .step-body li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}
.doc-step .step-body p { margin: 0 0 14px; }
.doc-step .step-body ol,
.doc-step .step-body ul {
  margin: 0 0 18px;
  padding-left: 1.2rem;
}
.doc-step .step-body li { margin: 8px 0; }
.doc-step .step-body a {
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.doc-step code,
.doc-note code,
.pass-note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--paper-deep);
  padding: 1px 6px;
}
.band-ink .doc-step code,
.band-ink .doc-note code,
.band-ink .doc-table code {
  background: transparent;
  padding: 0;
  color: var(--cream);
}

.callout {
  border-left: 2px solid var(--gold-deep);
  padding: 14px 18px;
  background: var(--paper-deep);
  margin: 18px 0 28px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.band-ink .callout {
  background: #241f1a;
  color: var(--muted-on-ink);
  border-left-color: var(--gold);
}
.band-ink .callout a { color: var(--gold); }

.doc-step .step-head,
.doc-step .step-body {
  min-width: 0;
}

.doc-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 8px 0 28px;
  font-size: 15px;
}
.doc-table th,
.doc-table td {
  border-top: 1px solid var(--rule-paper);
  border-bottom: 1px solid var(--rule-paper);
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.doc-table code {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.doc-table th {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold-deep);
  width: 34%;
}
.band-ink .doc-table th { color: var(--gold); }
.band-ink .doc-table th,
.band-ink .doc-table td {
  border-color: var(--rule-ink);
  color: var(--cream);
}

.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.doc-actions .btn {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.nav a[aria-current="page"] { color: var(--cream); }

/* Boarding-pass checklist */
.pass {
  border: 1px solid #c4b8a4;
  background: #f8f3ea;
  max-width: 720px;
}
.pass-head {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 24px;
  padding: 22px 24px 20px;
  border-bottom: 1px dashed #c4b8a4;
  background: var(--paper);
}
.pass-head .pass-kicker {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 6px;
}
.pass-head p {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 20px;
  line-height: 1.2;
  color: var(--ink);
}
.pass-row {
  display: grid;
  grid-template-columns: 4.5ch 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 18px 24px;
  border-bottom: 1px solid var(--rule-paper);
}
.pass-row:last-child { border-bottom: 0; }
.pass-row .pass-num {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--gold-deep);
  line-height: 1.2;
}
.pass-row h3 {
  font-size: 18px;
  margin: 0 0 6px;
}
.pass-row p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted-on-paper);
  max-width: 48ch;
}
.pass-row a {
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pass-box {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border: 1px solid var(--gold-deep);
  background: transparent;
}
.pass-note {
  margin: 22px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-on-paper);
  max-width: 56ch;
}

.doc-next {
  padding: 72px 0;
}
.doc-next h2 { margin-top: 14px; }
.doc-next p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted-on-ink);
  max-width: 46ch;
  margin: 18px 0 0;
}
.doc-next a:not(.btn) {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.why-copy {
  max-width: 46ch;
  margin: 20px 0 0;
  color: var(--muted-on-ink);
  font-size: 17px;
  line-height: 1.7;
}

@media (max-width: 820px) {
  .doc-meta { grid-template-columns: 1fr 1fr; }
  .doc-meta > div:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
  .doc-step .step-head { grid-template-columns: 1fr; gap: 12px; }
  .pass-head {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 12px;
    padding: 18px 16px 16px;
  }
  .pass-head p { font-size: 16px; }
  .pass-row { grid-template-columns: 3.5ch 1fr 22px; gap: 10px; padding: 16px; }
}

@media (max-width: 620px) {
  .doc-meta { grid-template-columns: 1fr; }
  .doc-meta > div {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--rule-ink);
  }
  .doc-meta > div:first-child { border-top: 0; }

  .doc-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .doc-actions .btn {
    width: 100%;
  }

  .doc-table,
  .doc-table thead,
  .doc-table tbody,
  .doc-table tr,
  .doc-table th,
  .doc-table td {
    display: block;
    width: 100%;
  }
  .doc-table th {
    width: auto;
    border-bottom: 0;
    padding-bottom: 4px;
  }
  .doc-table td {
    padding-top: 4px;
  }
}

.how-architecture {
  margin-top: 28px;
  width: 100%;
  max-width: 920px;
  min-width: 0;
}
.how-architecture img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--rule-paper);
  background: var(--paper);
}
.band-ink .how-architecture img {
  border-color: var(--rule-ink);
}

@media (max-width: 820px) {
  .how-architecture {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
  .how-architecture img {
    width: 100%;
    max-width: none;
    border-left: 0;
    border-right: 0;
  }
}
