/* The public knowledge base deliberately has its own customer-facing design. */
:root {
  color-scheme: light;
  --ink: #24231f;
  --muted: #69665f;
  --accent: #b53b13;
  --line: #d8d4cb;
  --pale: #efede6;
  --background: #faf9f5;
  --surface: #fff;
  --accent-hover: #923010;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--background);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  outline-offset: 4px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
}
button {
  cursor: pointer;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.025em;
}
h1 {
  font-size: 42px;
  margin-bottom: 18px;
}
h2 {
  font-size: 26px;
  margin-bottom: 18px;
}
h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
p {
  margin-bottom: 18px;
}
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.13em;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  margin-bottom: 14px;
}
.text-link {
  font-size: 14px;
  font-weight: 600;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 20;
  padding: 12px;
  background: var(--surface);
}
.skip:focus {
  top: 10px;
}
.header {
  height: 74px;
  border-bottom: 1px solid var(--line);
  background: var(--background);
}
.header-inner {
  max-width: 1440px;
  height: 100%;
  margin: auto;
  padding: 0 38px;
  display: flex;
  align-items: center;
  gap: 46px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 21px;
  letter-spacing: -0.04em;
  font-weight: 750;
}
.brand:hover {
  text-decoration: none;
}
.header nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 550;
}
.header nav a {
  color: var(--muted);
}
.header nav a:first-child {
  color: var(--ink);
}
.header-search {
  display: flex;
  align-items: center;
  background: var(--pale);
  border: 1px solid var(--line);
  border-radius: 2px;
  width: 250px;
}
.header-search input {
  border: 0;
  background: transparent;
  padding: 10px 12px;
  width: 100%;
  min-width: 0;
  font-size: 13px;
  color: var(--ink);
}
.header-search button {
  border: 0;
  background: none;
  font-size: 23px;
  color: var(--muted);
  padding: 0 12px;
}
.hero {
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  padding-top: 48px;
  padding-bottom: 36px;
  text-align: left;
}
.hero .eyebrow::before {
  content: "";
  display: block;
  width: 32px;
  height: 4px;
  background: var(--accent);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 48px;
  max-width: 680px;
  letter-spacing: -0.045em;
  margin-bottom: 20px;
}
.hero p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.search {
  max-width: 760px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  padding: 8px 9px 8px 21px;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.search:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.search > span {
  font-size: 27px;
  color: var(--muted);
}
.search input {
  border: 0;
  outline: none;
  min-width: 0;
  flex: 1;
  padding: 9px 0;
  color: var(--ink);
  font-size: 15px;
}
.search button,
.button {
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
  border-radius: 2px;
  padding: 11px 19px;
  font-size: 14px;
  font-weight: 650;
  display: inline-flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.button:hover,
.search button:hover {
  background: var(--accent-hover);
  text-decoration: none;
}
.home-content {
  padding-top: 48px;
  padding-bottom: 70px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.section-heading h2 {
  margin-bottom: 0;
}
.section-heading .eyebrow {
  margin-bottom: 10px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 48px;
  row-gap: 32px;
  counter-reset: topic;
}
.category-card {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink);
  padding: 18px 0 0;
  counter-increment: topic;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.topic-number::before {
  content: counter(topic, decimal-leading-zero);
  color: var(--accent);
  font:
    16px ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
}
.category-card h3 {
  font-size: 21px;
  margin-bottom: 15px;
}
.category-card h3 a {
  color: var(--ink);
}
.category-card ul {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.category-card li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
  padding: 7px 0;
  gap: 20px;
}
.category-card li a:hover {
  color: var(--accent);
}
.category-card li span {
  color: var(--muted);
}
.card-more {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 17px;
  font-size: 13px;
  font-weight: 650;
}
.browse {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 65px;
  margin-top: 60px;
  padding-top: 45px;
  border-top: 1px solid var(--line);
}
.browse-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.browse-list a:first-child {
  padding-top: 0;
}
.browse-list h3 {
  color: var(--ink);
  font-size: 16px;
  margin: 5px 0 0;
}
.browse-list a > span {
  font-size: 21px;
}
.footer {
  border-top: 1px solid var(--line);
  padding: 25px 0;
  color: var(--muted);
  font-size: 12px;
}
.footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.pill {
  display: inline-block;
  background: var(--pale);
  color: var(--ink);
  border-radius: 2px;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 650;
  margin-right: 10px;
}
.results {
  display: grid;
  gap: 0;
}
.result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  color: var(--ink);
}
a.result:hover {
  text-decoration: none;
  background: var(--pale);
}
.result h3 {
  margin: 9px 0 7px;
}
.result p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.arrow {
  color: var(--accent);
  font-size: 23px;
}
.empty {
  padding: 35px;
  border: 1px solid var(--line);
  background: var(--pale);
}
.empty p {
  color: var(--muted);
  margin-bottom: 0;
}
.docs-layout {
  max-width: 1440px;
  margin: auto;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 205px;
  min-height: calc(100vh - 151px);
  gap: 0;
}
.sidebar {
  border-right: 1px solid var(--line);
  padding: 35px 22px 40px 28px;
  background: var(--pale);
}
.desktop-nav {
  position: sticky;
  top: 30px;
}
.mobile-nav {
  display: none;
}
.sidebar summary {
  display: none;
}
.sidebar section {
  margin-top: 24px;
}
.sidebar h2 {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  margin-bottom: 9px;
}
.sidebar h2 a {
  color: var(--ink);
}
.sidebar ul {
  padding: 0;
  list-style: none;
  margin: 0;
}
.sidebar li a {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  padding: 9px 10px;
  color: var(--muted);
  border-left: 2px solid transparent;
  margin-bottom: 2px;
}
.sidebar li a[aria-current] {
  background: #f9f5ee;
  border-left-color: var(--accent);
  color: var(--accent);
  font-weight: 650;
}
.all-topics {
  font-size: 12px;
  color: var(--muted);
}
.article-main {
  padding: 36px 55px 70px;
  min-width: 0;
}
.breadcrumb {
  display: flex;
  gap: 10px;
  font-size: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--muted);
}
.article-main h1 {
  margin-top: 14px;
  font-size: 38px;
}
.article-lead {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
}
.article-date {
  font-size: 12px;
  color: var(--muted);
  padding-bottom: 23px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.toc {
  padding: 40px 24px 40px 8px;
}
.toc > div {
  position: sticky;
  top: 30px;
}
.toc h2 {
  font-size: 12px;
  letter-spacing: 0;
  margin-bottom: 16px;
}
.toc ul,
.mobile-toc ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 14px;
  border-left: 1px solid var(--line);
}
.toc li a,
.mobile-toc li a {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  padding: 7px 0;
}
.back-top {
  display: block;
  font-size: 11px;
  margin-top: 28px;
  color: var(--muted);
}
.mobile-toc {
  display: none;
}
.prose {
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.prose h1 {
  font-size: 30px;
}
.prose h2 {
  font-size: 24px;
  margin: 36px 0 16px;
}
.prose h3 {
  font-size: 19px;
  margin: 28px 0 12px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p {
  margin-bottom: 20px;
}
.prose li {
  padding-left: 5px;
  margin: 7px 0;
}
.prose ul,
.prose ol {
  padding-left: 23px;
  margin-bottom: 24px;
}
.prose code {
  background: var(--pale);
  border-radius: 2px;
  padding: 2px 5px;
  font-size: 0.86em;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.prose pre {
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: var(--pale);
  border-radius: 2px;
  line-height: 1.7;
  overflow-x: auto;
}
.prose pre code {
  padding: 0;
  background: transparent;
  white-space: pre;
  font-size: 13px;
}
.prose blockquote {
  background: var(--pale);
  border-left: 3px solid var(--accent);
  margin: 24px 0;
  padding: 18px 22px;
  color: var(--ink);
}
.prose blockquote p:last-child {
  margin: 0;
}
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
}
.prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 14px;
}
.prose td,
.prose th {
  padding: 10px;
  border: 1px solid var(--line);
  text-align: left;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 30px 0;
}
.related,
.attachments {
  border-top: 1px solid var(--line);
  padding-top: 25px;
  margin-top: 36px;
}
.related h2,
.attachments h2 {
  font-size: 17px;
}
.related a {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 7px 0;
}
.attachments ul {
  list-style: none;
  padding: 0;
}
.attachments li {
  padding: 6px 0;
}
.admin,
.review {
  padding-top: 45px;
  padding-bottom: 65px;
}
.admin > section {
  margin-top: 40px;
}
.notice {
  background: var(--pale);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 18px 22px;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 24px;
}
.notice.warning {
  background: #fff8ed;
  border-color: #f1d8af;
  color: #765225;
}
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 28px;
}
.draft-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.draft-form label {
  display: grid;
  align-content: start;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
}
.draft-form input,
.draft-form select,
.draft-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  background: white;
  font-size: 16px;
}
.field-help {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  margin: 7px 0 0;
}
.wide {
  grid-column: 1/-1;
}
.count {
  font-size: 13px;
  background: var(--pale);
  padding: 3px 9px;
  border-radius: 2px;
  vertical-align: middle;
  margin-left: 8px;
  color: var(--muted);
}
.live {
  background: #e7f7f0;
  color: #21664b;
}
.withdraw {
  width: 190px;
  font-size: 13px;
  flex-shrink: 0;
}
.withdraw summary {
  cursor: pointer;
  color: #ab3549;
}
.withdraw form {
  margin-top: 15px;
}
.withdraw p {
  font-size: 12px;
  margin-bottom: 10px;
}
.danger {
  background: #ab3549;
  border-color: #ab3549;
}
.secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
.secondary:hover {
  background: var(--pale);
}
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 30px;
}
.review-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 2px;
  min-width: 0;
}
.review-card h2 {
  font-size: 25px;
}
.review-card .muted {
  font-size: 13px;
}
.review-card summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
  margin-top: 24px;
}
.source-text {
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--pale);
  padding: 18px;
}
.approval {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 25px;
  display: flex;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
}
.confirmation {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  margin-bottom: 20px;
  max-width: 660px;
}
.confirmation input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  flex-shrink: 0;
}
.approval button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.review > a + .eyebrow {
  margin-top: 28px;
}
.error-page {
  min-height: 70vh;
  padding-top: 80px;
  padding-bottom: 80px;
}
@media (min-width: 1600px) {
  .docs-layout {
    grid-template-columns: 270px minmax(0, 1fr) 220px;
  }
  .article-main {
    padding-left: 65px;
    padding-right: 65px;
  }
}
@media (max-width: 1100px) {
  .docs-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .article-main {
    padding: 32px 36px 60px;
  }
  .toc {
    display: none;
  }
  .mobile-toc {
    display: block;
    background: var(--pale);
    border: 1px solid var(--line);
    padding: 12px 18px;
    border-radius: 2px;
    font-size: 13px;
    margin-bottom: 25px;
  }
  .mobile-toc summary {
    cursor: pointer;
    font-weight: 600;
  }
  .mobile-toc nav {
    margin-top: 12px;
  }
  .header-inner {
    padding: 0 25px;
    gap: 25px;
  }
  .header nav {
    gap: 20px;
  }
  .header-search {
    width: 220px;
  }
}
@media (max-width: 700px) {
  h1 {
    font-size: 32px;
  }
  h2 {
    font-size: 23px;
  }
  .container {
    padding-left: 22px;
    padding-right: 22px;
  }
  .header {
    height: 70px;
  }
  .header-inner {
    padding: 0 22px;
    gap: 15px;
  }
  .brand {
    font-size: 19px;
  }
  .header nav {
    font-size: 12px;
  }
  .header nav a:nth-child(2) {
    display: none;
  }
  .header-search {
    display: none;
  }
  .hero-inner {
    padding-top: 42px;
    padding-bottom: 35px;
  }
  .hero h1 {
    font-size: 38px;
  }
  .hero p {
    font-size: 15px;
  }
  .search {
    gap: 9px;
    padding-left: 14px;
  }
  .search input {
    font-size: 16px;
  }
  .search button {
    padding: 10px 13px;
    font-size: 12px;
    gap: 0;
  }
  .search button span {
    display: none;
  }
  .home-content {
    padding-top: 32px;
    padding-bottom: 40px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .category-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .category-card {
    padding: 18px 0 0;
  }
  .browse {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 35px;
    padding-top: 28px;
  }
  .browse h2 {
    margin-bottom: 8px;
  }
  .browse p {
    margin-bottom: 0;
  }
  .footer .container {
    flex-direction: column;
    gap: 3px;
  }
  .docs-layout {
    display: block;
  }
  .sidebar {
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar > details {
    position: static;
    padding: 12px 22px;
  }
  .desktop-nav {
    display: none;
  }
  .mobile-nav {
    display: block;
  }
  .sidebar summary {
    display: list-item;
    cursor: pointer;
    font-size: 13px;
    font-weight: 650;
  }
  .sidebar nav {
    padding: 12px 0;
  }
  .sidebar section {
    margin-top: 18px;
  }
  .article-main {
    padding: 24px 22px 45px;
  }
  .article-main h1 {
    font-size: 32px;
  }
  .article-lead {
    font-size: 17px;
  }
  .breadcrumb {
    font-size: 11px;
    margin-bottom: 22px;
  }
  .result {
    padding: 20px;
    gap: 16px;
  }
  .result > .arrow {
    font-size: 20px;
  }
  .draft-form,
  .comparison {
    grid-template-columns: 1fr;
  }
  .wide {
    grid-column: auto;
  }
  .admin-panel,
  .review-card {
    padding: 20px;
  }
  .admin,
  .review {
    padding-top: 30px;
  }
  .admin .result {
    align-items: flex-start;
    flex-direction: column;
  }
  .withdraw {
    width: auto;
  }
  .approval {
    align-items: flex-start;
    flex-direction: column;
  }
  .button {
    gap: 10px;
    text-align: center;
  }
  .prose pre {
    padding: 15px;
  }
  .prose pre code {
    font-size: 12px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

