/* Documentation is an unframed reading surface; only repeated items are framed. */
.knowledge-base { min-width: 0; max-width: 1240px; line-height: 1.6; }
.knowledge-base [hidden] { display: none !important; }
.knowledge-heading { align-items: flex-start; flex-wrap: wrap; gap: 16px; }
.knowledge-heading h1 { font-size: 28px; }
.knowledge-base h2 { font-size: 21px; margin: 0 0 12px; }
.knowledge-base h3 { font-size: 17px; margin: 0 0 10px; }
.knowledge-base h4 { font-size: 15px; }
.knowledge-base p { margin: 8px 0 14px; }
.knowledge-base a, .knowledge-base p, .knowledge-base li { overflow-wrap: anywhere; }
.knowledge-base label { display: grid; gap: 5px; font-size: 12px; font-weight: 600; min-width: 0; }
.knowledge-base input:not([type=checkbox]), .knowledge-base select, .knowledge-base textarea {
  width: 100%; min-width: 0; height: 40px; padding: 8px 10px; border: 1px solid #cbd5df;
  border-radius: 6px; font: inherit; font-size: 13px; color: #233344; background: #ffffffd9;
}
.knowledge-base textarea { height: auto; min-height: 90px; resize: vertical; }
.knowledge-base :focus-visible { outline: 3px solid #286da6; outline-offset: 3px; }
.knowledge-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 16px 0; border-block: 1px solid #d6dfe5; }
.knowledge-filters label { flex: 0 1 220px; }
.knowledge-filters .knowledge-search { flex: 1 1 260px; max-width: 400px; }
.knowledge-filters .knowledge-checkbox { display: flex; gap: 8px; align-items: center; min-height: 40px; flex-basis: 155px; }
.knowledge-filters .button { height: 40px; }
.knowledge-note { color: #546474; font-size: 12px; }
.knowledge-overview { padding: 16px 0 6px; max-width: 880px; }
.guide-directory { padding: 22px 0; border-bottom: 1px solid #d6dfe5; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.guide-tile { display: flex; flex-direction: column; color: inherit; text-decoration: none; border: 1px solid #d3dee6; border-radius: 8px; background: #ffffffb8; padding: 16px; }
.guide-tile:hover { border-color: #427ba5; background: #fff; }
.guide-tile h3 { color: #234c70; }
.guide-tile p { font-size: 13px; color: #455b68; }
.guide-tile small { margin-top: auto; color: #587569; }
.guide-detail { max-width: 1060px; }
.guide-header { padding: 22px 0 16px; }
.guide-header h2 { font-size: 26px; }
.guide-anchors { display: flex; gap: 10px 22px; flex-wrap: wrap; border-block: 1px solid #d6dfe5; padding: 14px 0; font-size: 13px; }
.guide-section { padding: 24px 0; border-bottom: 1px solid #d6dfe5; scroll-margin-top: 90px; }
.guide-section > p, .guide-section > ul { max-width: 900px; }
.guide-steps { padding-left: 25px; margin: 12px 0; }
.guide-steps > li { padding: 2px 0 18px 8px; }
.guide-steps > li::marker { font-weight: 800; color: #285779; }
.step-result { padding: 10px 14px; border-left: 3px solid #538773; background: #eef6f1; }
.step-result b { color: #31634c; font-size: 12px; }
.step-result p { margin: 4px 0; }
.knowledge-warning { background: #fff6e4; border-left: 3px solid #bd8e27; padding: 12px 16px; margin: 14px 0; color: #634e22; }
.knowledge-warning p { margin: 5px 0 0; }
.guide-screens { display: grid; gap: 24px; }
.guide-screens figure { margin: 0; min-width: 0; }
.guide-screens a { display: block; }
.guide-screens img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; background: #f1f4f6; border: 1px solid #cbd5df; border-radius: 6px; }
.guide-screens figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-size: 12px; padding: 9px 2px; }
.guide-screens figcaption span { color: #597161; }
.guide-related { display: grid; gap: 10px; padding-left: 20px; }
.knowledge-flag { color: #806020; font-size: 11px; margin-left: 6px; }
.acceptance-preparation, .acceptance-protocol { padding: 20px 0; border-bottom: 1px solid #d6dfe5; }
.acceptance-preparation summary { cursor: pointer; font-weight: 650; color: #285779; }
.acceptance-preparation li { margin-bottom: 10px; }
.protocol-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.protocol-totals { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 12px 0; font-size: 13px; }
.protocol-totals strong { font-size: 19px; padding-left: 6px; color: #263c4d; }
.manual-case-list { display: grid; gap: 8px; padding: 8px 0 25px; }
.manual-case { border: 1px solid #d5dfe5; border-radius: 8px; background: #ffffffb8; scroll-margin-top: 95px; }
.manual-case > summary { display: grid; grid-template-columns: 86px minmax(0, 1fr) minmax(150px, 205px); gap: 12px; align-items: start; list-style: none; padding: 16px; cursor: pointer; }
.manual-case > summary::-webkit-details-marker { display: none; }
.manual-case > summary::after { content: none; }
.case-code { font-size: 12px; color: #42637c; padding-top: 1px; }
.case-code::before { content: '+'; margin-right: 7px; font-weight: 800; }
.manual-case[open] .case-code::before { content: '-'; }
.case-heading { font-size: 14px; font-weight: 650; }
.case-heading small { display: block; font-weight: 400; font-size: 11px; color: #596c79; margin-top: 5px; }
.case-tags { display: flex; flex-wrap: wrap; justify-content: end; gap: 5px 10px; font-size: 11px; }
.case-priority.critical { color: #9a3940; }
.case-priority.normal { color: #536f78; }
.case-outcome { color: #536574; flex-basis: 100%; text-align: right; }
.manual-case[data-result=passed] .case-outcome { color: #286a49; }
.manual-case[data-result=failed] .case-outcome { color: #ac3333; }
.manual-case[data-result=blocked] .case-outcome { color: #8b6617; }
.case-body { padding: 0 20px 20px; border-top: 1px solid #e0e7ec; }
.case-body h3 { margin-top: 18px; font-size: 15px; }
.case-body p, .case-body li { font-size: 13px; }
.case-environment { color: #577162; }
.case-record { border-top: 1px solid #d6dfe5; margin-top: 20px; padding-top: 16px; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 14px; }
.case-record small { grid-column: 1 / -1; font-size: 12px; color: #687d89; }
.case-record .record-warning { color: #a34635; }
.protocol-print-value { display: none; }
@media (max-width: 1050px) {
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manual-case > summary { grid-template-columns: 78px minmax(0, 1fr); }
  .case-tags { grid-column: 2; justify-content: start; }
  .case-outcome { flex-basis: auto; text-align: left; }
}
@media (max-width: 650px) {
  .knowledge-heading h1 { font-size: 25px; }
  .guide-grid, .protocol-fields, .case-record { grid-template-columns: minmax(0, 1fr); }
  .knowledge-filters label, .knowledge-filters .knowledge-search { flex: 1 1 100%; max-width: none; }
  .guide-header h2 { font-size: 22px; }
  .manual-case > summary { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 13px; }
  .case-tags { grid-column: 1; }
  .case-body { padding: 0 13px 16px; }
  .knowledge-base .button-row { flex-wrap: wrap; }
  .knowledge-base .button { white-space: normal; min-height: 40px; height: auto; text-align: center; }
}
@media print {
  @page { margin: 15mm; }
  .sidebar, .topbar, .sidebar-scrim, .public-header, .public-footer, .knowledge-filters,
  .knowledge-heading > a, .knowledge-heading .button-row, .knowledge-base .button-row,
  .guide-anchors, .guide-header .back-link, .knowledge-base noscript { display: none !important; }
  .workspace, .content, .public-content, .knowledge-base { margin: 0 !important; padding: 0 !important; max-width: none; width: auto; }
  html, body, .app-shell, .public-page, .workspace, .content, .public-content { background: white !important; min-height: 0 !important; color: black; font-size: 10pt; }
  .knowledge-base { font-size: 10pt; }
  .manual-case, .guide-section { break-inside: auto; background: white; }
  .manual-case > summary { break-after: avoid; }
  .manual-case .case-body { display: block !important; }
  .guide-screens figure, .step-result, .case-record { break-inside: avoid; }
  .guide-screens img { max-height: 160mm; }
  .case-record textarea { overflow: visible; min-height: 32mm; }
  .case-record input, .case-record select, .case-record textarea, .protocol-fields input { display: none; }
  .protocol-print-value { display: block; white-space: pre-wrap; overflow-wrap: anywhere; font-weight: 400; }
}
