/* The document directory shares the bright teal palette of the tool home. */
body[data-route="documents"] .td-docs {
  --td-ink: #22483f;
  --td-muted: #71867f;
  --td-line: #dce9e3;
  --td-green: #13856c;
}
body[data-route="documents"] #main { padding-top: 24px; }
body[data-route="documents"] .module-intro { margin-bottom: 16px; }
body[data-route="documents"] .module-intro h1 { margin: 7px 0; }
.td-docs .td-document-header { margin-bottom: 20px; }
.td-docs .td-document-header > .td-autosave-status { font-size: 12px; color: #738980; }
.td-docs .td-document-picker { margin: 0 0 29px; }
.td-docs .td-document-picker-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 20px; }
.td-docs .td-document-picker-heading h2 { margin: 0; color: #254c41; font-size: 24px; line-height: 1.4; letter-spacing: -.03em; font-weight: 650; }
.td-docs .td-document-picker-heading p { margin: 6px 0 0; color: #7b8d83; font-size: 14px; line-height: 1.8; }
.td-docs .td-document-picker-heading > span { color: #81988b; font-size: 12px; white-space: nowrap; }
.td-docs .td-document-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.td-docs .td-document-type { position: relative; display: flex; flex-direction: column; align-items: stretch; min-width: 0; min-height: 221px; padding: 23px 24px 19px; border: 1px solid #dce8e1; border-radius: 15px; background: #fff; color: #2d5348; text-align: left; box-shadow: 0 3px 9px #38674f03; transition: border-color .18s, background .18s, box-shadow .18s, transform .18s; }
.td-docs .td-document-type:hover { border-color: #8bc5b3; background: #fbfefc; box-shadow: 0 6px 18px #2d806a0a; transform: translateY(-2px); }
.td-docs .td-document-type:focus-visible { outline: 3px solid #79c6b1; outline-offset: 4px; }
.td-docs .td-document-type.is-active { border-color: #52ae96; background: #effaf5; box-shadow: 0 0 0 1px #52ae9620; }
.td-docs .td-document-type-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.td-docs .td-document-type-icon { display: inline-flex; align-items: center; justify-content: center; width: 47px; height: 47px; border-radius: 12px; color: #218f75; background: #edf8f2; }
.td-docs .td-document-type.is-active .td-document-type-icon { background: #d9f1e7; color: #13846a; }
.td-docs .td-document-type-code { display: inline-flex; align-items: center; justify-content: center; min-width: 35px; padding: 3px 7px; border: 1px solid #e1eae4; border-radius: 5px; color: #90a598; background: #fafcf9; font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.td-docs .td-document-type.is-active .td-document-type-code { border-color: #bde2d1; color: #368d73; background: #e6f5ec; }
.td-docs .td-document-type-name { display: block; margin-bottom: 6px; font-size: 21px; line-height: 1.45; font-weight: 650; letter-spacing: -.02em; color: #2a5144; }
.td-docs .td-document-type-description { display: block; flex: 1; font-size: 14px; line-height: 1.85; color: #7a8c80; }
.td-docs .td-document-type-action { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin-top: 16px; color: #388e74; font-size: 12px; line-height: 1.5; font-weight: 550; }
.td-docs .td-document-type.is-active .td-document-type-action { color: #148569; }
.td-docs .td-type-intro { padding: 20px 23px; border: 1px solid #d6e8de; border-radius: 12px; margin-bottom: 19px; background: #f0f8f2; color: #315b48; scroll-margin-top: 24px; }
.td-docs .td-type-intro-title { display: flex; align-items: center; gap: 10px; }
.td-docs .td-type-intro-title > span { border-radius: 5px; padding: 3px 6px; color: #298b6f; background: #e0f0e5; font-size: 11px; font-weight: 700; letter-spacing: .05em; }
.td-docs .td-type-intro-title > strong { font-size: 16px; font-weight: 600; }
.td-docs .td-type-intro p { margin: 9px 0 0; color: #708575; font-size: 14px; line-height: 1.9; }
@media (max-width: 1000px) {
  .td-docs .td-document-type { padding: 20px; min-height: 230px; }
}
@media (max-width: 720px) {
  .td-docs .td-document-picker-heading { align-items: flex-start; margin-bottom: 16px; gap: 12px; }
  .td-docs .td-document-picker-heading h2 { font-size: 21px; }
  .td-docs .td-document-picker-heading > span { padding-top: 6px; font-size: 11px; }
  .td-docs .td-document-types { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .td-docs .td-document-type { padding: 18px 16px 15px; min-height: 226px; border-radius: 12px; }
  .td-docs .td-document-type-top { margin-bottom: 12px; }
  .td-docs .td-document-type-icon { width: 42px; height: 42px; border-radius: 10px; }
  .td-docs .td-document-type-icon svg { width: 25px; height: 25px; }
  .td-docs .td-document-type-name { font-size: 19px; }
  .td-docs .td-document-type-description { font-size: 14px; line-height: 1.75; }
  .td-docs .td-type-intro { padding: 17px 18px; }
}
@media (max-width: 390px) {
  .td-docs .td-document-picker-heading > span { display: none; }
  .td-docs .td-document-types { grid-template-columns: 1fr; }
  .td-docs .td-document-type { min-height: 205px; padding: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .td-docs .td-document-type { transition: none; }
  .td-docs .td-document-type:hover { transform: none; }
}
@media print {
  .td-docs .td-document-picker, .td-docs .td-type-intro { display: none !important; }
}
/* Keep the document directory within easy reach below the daily desk. */
.td-docs .td-document-header { margin-bottom: 12px; }
.td-docs .td-document-picker-heading { margin-bottom: 14px; }
.td-docs .td-document-picker-heading h2 { font-size: 20px; }
.td-docs .td-document-picker-heading p { display: none; }
.td-docs .td-document-types { gap: 12px; }
.td-docs .td-document-type { min-height: 126px; padding: 18px 20px 14px 82px; border-radius: 12px; }
.td-docs .td-document-type-top { position: absolute; left: 18px; top: 23px; margin: 0; }
.td-docs .td-document-type-icon { width: 44px; height: 44px; border-radius: 10px; }
.td-docs .td-document-type-code { display: none; }
.td-docs .td-document-type-name { font-size: 19px; margin-bottom: 3px; }
.td-docs .td-document-type-description { font-size: 13px; line-height: 1.65; }
.td-docs .td-document-type-action { font-size: 11px; margin-top: 9px; }
@media (max-width: 1000px) and (min-width: 721px) {
  .td-docs .td-document-type { padding-left: 69px; padding-right: 14px; }
  .td-docs .td-document-type-top { left: 14px; }
  .td-docs .td-document-type-icon { width: 38px; height: 38px; }
}
@media (min-width: 391px) and (max-width: 720px) {
  .td-docs .td-document-type { padding: 16px; min-height: 168px; }
  .td-docs .td-document-type-top { position: static; margin-bottom: 8px; }
  .td-docs .td-document-type-icon { width: 34px; height: 34px; }
}
