/* Shared reading contrast for the pale interface surfaces. The original court pages
   and document previews retain the colors supplied by their publisher. */
:root {
  --muted: #506052;
  --kd-secondary-ink: #465b49;
}
#jurisdictionMark, .nav-label, .category-item .cat-count,
.sidebar-bottom small, .sidebar-bottom .mini-seal,
.court-mode-caption, .federal-sidebar-note,
#sectionBadge, .sort-label, .results-heading, .card-meta, .bottom-note b, #guideShortcut,
footer, footer .footer-brand, footer .text-button,
.practice-tools label, .practice-guide-count, .practice-guide-card-bottom > span, .practice-preparation-note,
.crim-scope p, .crim-scope small, .crim-scope details, .crim-scope summary,
.fed-scope p, .fed-scope small, .fed-scope details, .fed-scope summary,
.crim-filter-row label, .fed-filter-row label, .crim-results-meta, .fed-results-meta,
.crim-category, .fed-category, .crim-card > p, .fed-card > p, .crim-card-bottom > span, .fed-card-bottom > span,
.crim-library-note, .fed-library-note, .crim-library-note b, .fed-library-note b,
.binder-welcome p, .binder-steps article > span, .binder-steps article p,
.binder-example-notice, .binder-legal-guide > summary,
.law-filters label, .law-filter-explanation, .law-results-heading, .law-results-heading button,
.law-card-top > span, .law-citation, .law-tags span, .law-card > p, .law-card-footer > span,
.law-authority-guide, .law-authority-grid p, .law-checked, .law-load-error p,
.crim-field > small, .fed-field > small, .crim-field > p, .fed-field > p, .field-context, .field-context summary,
.field-wrap small, .editor-footer > span, .panel-intro, .paper-label, .draft-status,
.binder-guidance-grid p, .binder-export-choice small, .binder-small, .binder-export-status,
.mm-case-row small, .mm-case-select-row small, .mm-case-task small, .mm-case-caption span {
  color: var(--kd-secondary-ink);
}
.filter-tabs button:not(.active), .practice-tabs button:not(.active),
.crim-view-tabs button:not(.active), .fed-view-tabs button:not(.active),
.binder-tabs button:not(.active), .mm-case-tabs button:not(.active) {
  color: #39523d;
}
#jurisdictionMark, .jurisdiction-mark,
.crim-category, .fed-category, .crim-results-meta, .fed-results-meta,
.crim-filter-row label, .fed-filter-row label, .card-meta,
.crim-card-bottom > span, .fed-card-bottom > span, .practice-guide-card-bottom > span,
.binder-steps article > span, .sidebar-bottom small, .law-card-top > span {
  font-size: .8125rem;
}
.practice-guide-count, .practice-preparation-note, .crim-library-note, .fed-library-note,
.binder-example-notice, .binder-legal-guide > summary, .crim-scope summary, .fed-scope summary {
  font-size: .875rem;
}
.crim-card > p, .fed-card > p, .binder-welcome p, .binder-steps article p {
  font-size: 1rem;
}
.crim-scope summary, .fed-scope summary, .binder-legal-guide > summary,
.crim-example summary, .fed-example summary, .field-context summary {
  min-height: 32px;
  padding-block: .35rem;
  cursor: pointer;
}
.court-mode { min-height: 44px; }
input:focus-visible + .court-mode-track {
  outline: 3px solid #17658c;
  outline-offset: 3px;
}
.save-button, .crim-save, .fed-save, .law-save, .icon-button, .crim-close {
  min-width: 32px;
  min-height: 32px;
}
button:focus-visible, a:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex="0"]:focus-visible {
  outline: 3px solid #17658c;
  outline-offset: 2px;
  scroll-margin-block: 5rem;
}
@media (max-width: 42rem) {
  .practice-tabs, .crim-view-tabs, .fed-view-tabs, .binder-tabs, .mm-case-tabs,
  .filter-tabs { flex-wrap: wrap; overflow: visible; }
  .practice-tabs button, .crim-view-tabs button, .fed-view-tabs button, .binder-tabs button,
  .mm-case-tabs button, .filter-tabs button { white-space: normal; max-width: 100%; }
  .crim-filter-row, .fed-filter-row, .practice-tools,
  .crim-card-bottom, .fed-card-bottom, .practice-guide-card-bottom,
  .section-heading, .results-heading, .topbar, footer { flex-wrap: wrap; }
  .crim-filter-row label, .fed-filter-row label, .practice-tools label,
  .card-meta, .crim-card, .fed-card, .practice-guide-card, .template-card, .law-card { min-width: 0; }
  .crim-filter-row select, .fed-filter-row select, .practice-tools select, .law-filters select { max-width: 100%; }
  .crim-card, .fed-card, .practice-guide-card, .template-card, .binder-steps article, .law-card { overflow-wrap: anywhere; }
  .crim-save, .fed-save, .save-button, .law-save, .icon-button { min-height: 44px; min-width: 44px; }
}
@media (forced-colors: active) {
  :focus-visible, input:focus-visible + .court-mode-track { outline-color: Highlight; }
  .court-mode-track { border: 1px solid ButtonText; }
  .practice-tabs .active, .filter-tabs .active, .crim-view-tabs .active, .fed-view-tabs .active,
  .binder-tabs .active, .mm-case-tabs .active { outline: 2px solid Highlight; outline-offset: -2px; }
}
#sectionTitle #sectionBadge,
.practice-tools > label:last-child:not(.practice-search),
.law-reference-note b, .mm-case-welcome-grid article > span {
  color: var(--kd-secondary-ink);
}
@media (max-width: 900px) {
  .sidebar:not(.open) { visibility: hidden; }
  .sidebar.open { visibility: visible; }
}
@media (max-width: 42rem) {
  .practice-tools > label:last-child:not(.practice-search) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .25rem;
    min-width: 0;
    flex-basis: 100%;
  }
  .practice-tools > label select { width: 100%; max-width: 100%; margin-inline: 0; }
}
.resource-card small { color: var(--kd-secondary-ink); font-size: .8125rem; }
/* The left-hand step numbers sit on a dark disc only for the selected step. */
.editor-brand .mini-seal, #editorNumber, .steps button:not(.active), .steps button small,
.completion, .completion span, #completionText, #deleteDraft, .editor-panel h4, .legal-box p,
.classification-box label, .classification-box p, .profile-help, .packet-profile > summary span,
.field-filter, .field-filter > span, .incomplete-warning, .checklist, .format-reference,
.crim-kicker, .fed-kicker, .crim-editor-rail nav button:not(.active), .fed-editor-rail nav button:not(.active),
.crim-editor-rail > p, .fed-editor-rail > p, .crim-editor-rail [data-crim-save-status], .fed-editor-rail [data-fed-save-status],
.crim-intro, .fed-intro, .crim-rule-box > p, .fed-rule-box > p, .crim-route-explain p, .fed-route-explain p,
.crim-route-explain li, .fed-route-explain li, .crim-editor-footer > span, .fed-editor-footer > span,
.crim-example summary, .fed-example summary, .crim-example p, .fed-example p, .crim-example small, .fed-example small,
.crim-field > label > span, .fed-field > label > span,
.crim-supporting > p, .fed-supporting > p, .crim-export-row p, .fed-export-row p, .crim-export-row details, .fed-export-row details,
.crim-export-status, .fed-export-status, .crim-preview-heading p, .fed-preview-heading p,
.crim-review-note b, .fed-review-note b, .crim-review-note p, .fed-review-note p {
  color: var(--kd-secondary-ink);
}
dialog span[data-crim-save-status], dialog span[data-fed-save-status],
.crim-editor-rail span[data-crim-save-status], .fed-editor-rail span[data-fed-save-status],
.crim-field input[readonly], .fed-field input[readonly],
.crim-format-note > b, .crim-format-note > p, .fed-format-note > b, .fed-format-note > p,
.crim-working b, .crim-working small, .fed-working b, .fed-working small,
.crim-export-row .crim-missing, .fed-export-row .fed-missing {
  color: var(--kd-secondary-ink);
}
.criminal-app .crim-dialog span[data-crim-save-status] {
  color: var(--kd-secondary-ink);
  font-size: .8125rem;
}
