.dll-custom-library,
.docsy-library {
  --docsy-bg: #ffffff;
  --docsy-panel: #ffffff;
  --docsy-header-bg: #f6f7f7;
  --docsy-header-text: #1e1e1e;
  --docsy-row-bg: #ffffff;
  --docsy-row-alt-bg: #fbfbfb;
  --docsy-text: #1e1e1e;
  --docsy-muted-text: #666666;
  --docsy-border: #dddddd;
  --docsy-button-bg: transparent;
  --docsy-button-text: #1e1e1e;
  --docsy-button-hover-bg: #f0f0f0;
  --docsy-link: #2271b1;
  --docsy-padding: 18px;
  --docsy-gap: 12px;
  --docsy-radius: 8px;
  --docsy-width: 100%;
  background: var(--docsy-bg);
  color: var(--docsy-text);
  padding: var(--docsy-padding);
  border-radius: var(--docsy-radius);
  box-sizing: border-box;
  width: var(--docsy-width);
  max-width: 100%;
}

.dll-custom-library *,
.dll-custom-library *::before,
.dll-custom-library *::after,
.docsy-library *,
.docsy-library *::before,
.docsy-library *::after {
  box-sizing: border-box;
}

.docsy-library a,
.dll-custom-library a {
  color: var(--docsy-link);
}

.docsy-library-accordion,
.docsy-document-list {
  display: flex;
  flex-direction: column;
  gap: var(--docsy-gap);
}

.docsy-library-group {
  background: var(--docsy-panel);
  border: 1px solid var(--docsy-border);
  border-radius: var(--docsy-radius);
  overflow: hidden;
}

.docsy-library-summary {
  align-items: center;
  background: var(--docsy-header-bg);
  color: var(--docsy-header-text);
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: calc(var(--docsy-gap) / 1.25);
  list-style: none;
  padding: calc(var(--docsy-padding) * 0.78) var(--docsy-padding);
}

.docsy-library-summary::-webkit-details-marker {
  display: none;
}

.docsy-library-title {
  color: var(--docsy-header-text);
  font-weight: 700;
  line-height: 1.2;
  min-width: 0;
}

.docsy-library-count {
  align-items: center;
  border: 1px solid var(--docsy-border);
  border-radius: 999px;
  color: var(--docsy-muted-text);
  display: inline-flex;
  font-size: 0.82em;
  justify-content: center;
  line-height: 1;
  min-width: 2em;
  padding: 0.25em 0.55em;
}

.docsy-library-chevron {
  color: currentColor;
  display: inline-flex;
  transition: transform 0.18s ease;
}

.docsy-library-group[open] .docsy-library-chevron {
  transform: rotate(180deg);
}

.docsy-library-documents,
.docsy-document-list {
  background: var(--docsy-panel);
}

.docsy-document-row {
  align-items: center;
  background: var(--docsy-row-bg);
  border-top: 1px solid var(--docsy-border);
  color: var(--docsy-text);
  display: grid;
  gap: calc(var(--docsy-gap) / 2) var(--docsy-gap);
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: calc(var(--docsy-padding) * 0.7) var(--docsy-padding);
}

.docsy-document-list .docsy-document-row {
  border: 1px solid var(--docsy-border);
  border-radius: var(--docsy-radius);
}

.docsy-library-documents .docsy-document-row:nth-child(even),
.docsy-document-list .docsy-document-row:nth-child(even) {
  background: var(--docsy-row-alt-bg);
}

.docsy-row-field-title {
  min-width: 0;
}

.docsy-document-title {
  color: var(--docsy-text);
  font-size: 1em;
  line-height: 1.25;
  margin: 0;
}

.docsy-row-field-date {
  color: var(--docsy-muted-text);
  font-size: 0.92em;
  white-space: nowrap;
}

.docsy-row-field-link {
  justify-self: end;
}

.docsy-download-icon-link {
  align-items: center;
  background: var(--docsy-button-bg);
  border: 1px solid var(--docsy-border);
  border-radius: calc(var(--docsy-radius) / 1.4);
  color: var(--docsy-button-text) !important;
  display: inline-flex;
  height: 2.35rem;
  justify-content: center;
  line-height: 1;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  width: 2.35rem;
}

.docsy-download-icon-link:hover,
.docsy-download-icon-link:focus {
  background: var(--docsy-button-hover-bg);
  color: var(--docsy-button-text) !important;
  transform: translateY(-1px);
}

.docsy-download-icon,
.docsy-download-icon .dll-icon,
.docsy-download-icon-link .dll-icon {
  align-items: center;
  display: inline-flex;
  height: 1rem;
  justify-content: center;
  margin: 0;
  width: 1rem;
}

.docsy-download-icon-link svg {
  display: block;
  height: 1rem;
  width: 1rem;
}

.docsy-empty {
  background: var(--docsy-panel);
  border: 1px solid var(--docsy-border);
  border-radius: var(--docsy-radius);
  color: var(--docsy-muted-text);
  padding: var(--docsy-padding);
}

.docsy-nowrap-text .docsy-document-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docsy-custom-library-editor .docsy-library,
.docsy-custom-library-editor .dll-custom-library {
  width: var(--docsy-width);
  max-width: 100%;
}

@media (max-width: 600px) {
  .docsy-library-summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .docsy-library-count {
    display: none;
  }

  .docsy-document-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .docsy-row-field-date {
    grid-column: 1;
    grid-row: 2;
  }

  .docsy-row-field-link {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}


/* Tri-County Docs table refinements. */
.docsy-document-table-header,
.docsy-document-row {
  align-items: center;
  display: grid;
  text-align: center;
}

.docsy-document-table-header.docsy-columns-1,
.docsy-document-row.docsy-columns-1 {
  grid-template-columns: minmax(0, 1fr);
}

.docsy-document-table-header.docsy-columns-2,
.docsy-document-row.docsy-columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.docsy-document-table-header.docsy-columns-3,
.docsy-document-row.docsy-columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.docsy-document-table-header {
  background: color-mix(in srgb, var(--docsy-header-bg) 78%, var(--docsy-panel));
  border-top: 1px solid var(--docsy-border);
  color: var(--docsy-header-text);
  font-size: 0.82em;
  font-weight: 700;
  gap: var(--docsy-gap);
  letter-spacing: 0.02em;
  padding: calc(var(--docsy-padding) * 0.45) var(--docsy-padding);
  text-transform: uppercase;
}

.docsy-document-table-heading,
.docsy-row-field {
  justify-self: center;
  min-width: 0;
  text-align: center;
  width: 100%;
}

.docsy-row-field-link {
  display: flex;
  justify-content: center;
}

.docsy-document-title {
  text-align: center;
}

.docsy-row-field-date {
  white-space: normal;
}

.docsy-download-icon-link {
  margin-left: auto;
  margin-right: auto;
}

@supports not (background: color-mix(in srgb, white, black)) {
  .docsy-document-table-header {
    background: var(--docsy-header-bg);
  }
}

@media (max-width: 600px) {
  .docsy-document-table-header.docsy-columns-3,
  .docsy-document-row.docsy-columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .docsy-row-field-date,
  .docsy-row-field-link {
    grid-column: auto;
    grid-row: auto;
  }
}
