/* Page presentation. Document/diagram rendering remains in assets/docs.css. */
.docs-site { --brand-primary: #235a60; --brand-primary-hover: #153d43; --bg-page: #faf9f6; --text-heading: #152e35; }
.docs-site .shell { width: min(1160px, calc(100% - 64px)); padding: 24px 0 48px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 24px; margin-bottom: 48px; }
.site-brand { display: flex; align-items: center; gap: 12px; color: var(--text-heading); line-height: 1.25; font-weight: 700; }
.site-brand:hover { text-decoration: none; }
.site-brand small { display: block; margin-top: 4px; color: #53686d; font-weight: 400; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.brand-mark { display: grid; place-items: center; background: #183f46; color: #fffaf3; width: 40px; height: 44px; border-radius: 5px 14px 5px 5px; font-family: Georgia, serif; font-size: 28px; }
.audience-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.audience-nav a { padding: 8px 0; color: #425b61; font-size: 14px; }
.audience-nav a[aria-current="page"] { color: #173e45; font-weight: 700; text-decoration: underline; text-underline-offset: 6px; }
.docs-site h1 { font-family: Georgia, 'Times New Roman', serif; font-weight: 500; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.13; letter-spacing: -.035em; }
.home-intro h1 { max-width: 22ch; font-size: clamp(2.3rem, 4.5vw, 3.8rem); }
.home-intro > p:first-of-type { font-size: 1.2rem; color: #354e55; max-width: 64ch; }
.home-intro > p { max-width: 78ch; }
.home-intro h2 { margin-top: 32px; font-size: 1.1rem; font-weight: 600; border: 0; }
.audience-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 20px 0 32px; }
.audience-card { display: flex; flex-direction: column; border: 1px solid #d8dfdc; background: #fff; padding: 26px; border-radius: 8px; color: var(--text-main); box-shadow: 0 3px 12px #173e4505; }
.audience-card:hover { border-color: #568484; text-decoration: none; color: var(--text-main); }
.audience-card:nth-child(2) { background: #f1f6f3; }
.audience-card:nth-child(3) { background: #fcf5ec; }
.card-number { color: #627578; font-size: 12px; font-family: var(--font-mono); }
.audience-card h3 { margin: 20px 0 8px; font-size: 1.3rem; }
.audience-card p { font-weight: 400; font-size: 15px; margin: 0 0 24px; color: #43575d; }
.card-action { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; font-weight: 700; color: #235a60; font-size: 14px; }
.home-detail { max-width: 86ch; margin-top: 28px; }
.download-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin: 32px 0; }
.document-toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 32px; font-size: 14px; }
.document { max-width: 100%; }
.document .markdown-body > :is(p,ul,ol,blockquote) { max-width: 88ch; }
.document .markdown-body > h1 { max-width: 30ch; margin-bottom: 28px; }
.docs-site .markdown-body table { max-width: 100%; }
.table-scroll { overflow-x: auto; max-width: 100%; }
.table-scroll table { width: 100%; }
.source-details { border-top: 1px solid #d8dfdc; margin-top: 40px; padding-top: 20px; font-size: 13px; color: #52666b; }
.source-details summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.source-details code { overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid #d8dfdc; margin-top: 60px; padding-top: 24px; color: #52666b; font-size: 13px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.site-footer p { margin: 0 0 14px; }
.archive-section { margin-top: 40px; }
.skip-link { position: absolute; top: -100px; left: 16px; background: white; padding: 12px; z-index: 100; }
.skip-link:focus { top: 12px; }
.docs-site :focus-visible { outline: 3px solid #c16b29; outline-offset: 4px; }
.print-lineage { color: #52666b; font-size: 12px; }
@media (max-width: 800px) {
  .docs-site .shell { width: calc(100% - 36px); padding-top: 20px; }
  .site-header { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 32px; }
  .audience-nav { gap: 2px 18px; }
  .audience-cards { grid-template-columns: 1fr; gap: 12px; }
  .audience-card { padding: 22px; }
  .audience-card h3 { margin-top: 10px; }
  .document-toolbar { flex-wrap: wrap; }
}
@media print {
  .docs-site { background: white; }
  .docs-site .shell { width: 100%; padding: 0; }
  .docs-site .page-break { break-before: page; padding-top: 16px; }
  .docs-site .source-details { font-size: 9pt; }
  .docs-site .source-details::details-content { content-visibility: visible; }
  .docs-site h1 { font-size: 26pt; }
  .docs-site .table-scroll { overflow: visible; }
}
