/* Inner pages only. The homepage does not load this file. */
.doc-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 6px;
}
.doc-bar .brand { text-decoration: none; color: var(--ink); }
.doc-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0; padding: 0; list-style: none; }
.doc-links a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.doc-links a[aria-current="page"] {
  background: linear-gradient(var(--yellow), var(--yellow)) left 86% / 100% 0.34em no-repeat;
}
.doc, .doc-wide {
  margin: 0 auto;
  padding: 22px 0 56px;
}
.doc { width: min(760px, calc(100% - 40px)); }
.doc-wide { width: min(1100px, calc(100% - 40px)); }
.doc h1, .doc-wide h1 { margin: 8px 0 0; font-size: clamp(2.5rem, 7vw, 4.4rem); }
.doc a, .doc-wide a { color: var(--ink); }
.card h2 a { text-decoration-color: var(--terracotta); text-underline-offset: 4px; }
.lede, .doc p, .doc li, .doc-wide p, .doc-wide li { font-size: 1.05rem; }
.lede { margin-top: 16px; font-weight: 700; max-width: 40rem; }
.stack { display: grid; gap: 14px; margin-top: 22px; }
.card {
  background: var(--card);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 10px 24px rgb(23 20 28 / 8%);
}
.card h2, .card h3 { margin-top: 0; }
.kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.crumbs { margin: 0 0 12px; color: var(--muted); font-size: 0.9rem; font-weight: 700; }
.crumbs a { color: var(--muted); }
.draft {
  margin-top: 16px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 700;
}
.door-mark { width: 28px; height: 36px; }
.grid-2 { display: grid; gap: 14px; }
.posts { display: grid; gap: 14px; margin-top: 18px; }
.post-card { color: inherit; text-decoration: none; display: block; }
.post-card h2 { margin: 8px 0; font-size: 1.7rem; }
.post-card p { margin: 0; color: var(--muted); font-weight: 600; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.cats a, .cats span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}
.faq { background: var(--card); border-radius: 18px; padding: 2px 16px; }
.faq + .faq { margin-top: 8px; }
.faq summary { cursor: pointer; font-weight: 800; padding: 14px 0; }
.faq summary:focus-visible { outline-offset: 4px; }
.faq p:last-child { margin-bottom: 14px; }
.faq-tools { display: grid; gap: 8px; margin-top: 18px; }
.faq-tools label { font-size: 0.82rem; font-weight: 800; color: var(--muted); }
.faq-tools input {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  padding: 0 12px;
  background: var(--card);
  color: var(--ink);
  font: 600 1rem/1.2 Manrope, sans-serif;
}
table { width: 100%; border-collapse: collapse; margin: 12px 0 4px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid rgb(23 20 28 / 12%); vertical-align: top; }
th { font-size: 0.92rem; }
.checklist, .doc ol, .doc ul, .doc-wide ol, .doc-wide ul { padding-left: 1.2rem; }
.checklist li, .doc li, .doc-wide li { margin: 8px 0; }
.related { display: grid; gap: 8px; margin-top: 8px; }
.related a { font-weight: 800; }
.mail-list { display: grid; gap: 10px; margin-top: 8px; }
.mail-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 18px rgb(23 20 28 / 6%);
}
.placeholder {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgb(245 213 71 / 35%);
  font-weight: 700;
}
.doc-foot { width: min(1100px, calc(100% - 40px)); }
@media (min-width: 800px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .posts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  td { border-bottom: 0; padding: 4px 0; }
  tr { padding: 12px 0; border-bottom: 1px solid rgb(23 20 28 / 12%); }
  td::before { content: attr(data-label); display: block; font-weight: 800; font-size: 0.78rem; }
}
