/* TECHNICAL LIBRARY: document pages, library listing, product-page section */

/* post_class() adds .hentry, whose default bottom margin would show the dark page background */
.tech-document.hentry { margin: 0; }

.tech-breadcrumbs { font-size: 13px; margin-bottom: 20px; color: #707070; }
.tech-breadcrumbs a { color: #5c91c6; }
.tech-breadcrumbs .sep { color: #b5b5a9; margin: 0 4px; }

/* Document header (first section: keeps the theme's 70px top padding so the logo doesn't cover it) */
.tech-doc-header { padding-bottom: 40px; }
.tech-doc-meta { margin: 0 0 6px; font-size: 13px; color: #707070; text-transform: uppercase; letter-spacing: 0.04em; }
.tech-doc-type {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  background: #282c3f;
  color: white;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
h1.tech-doc-title { margin: 0 0 16px; font-size: 40px; line-height: 1.1; }
.tech-doc-summary { font-size: 18px; line-height: 1.6; color: #303030; margin: 0 0 24px; max-width: 820px; }
.tech-doc-actions { margin: 0 0 20px; }
a.tech-doc-download,
a.tech-doc-download:visited {
  display: inline-block;
  padding: 12px 22px;
  background: #c54900;
  color: white;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
}
a.tech-doc-download:hover,
a.tech-doc-download:focus { background: #a33c00; color: white; }
.tech-doc-download .fa-file-pdf { margin-right: 6px; }
.tech-doc-download .tech-doc-size { font-weight: 400; opacity: 0.85; margin-left: 4px; }
.tech-doc-applies { margin: 0; font-size: 14px; }

/* Document body and FAQs */
.tech-doc-body { padding-top: 40px; padding-bottom: 40px; }
.tech-doc-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.tech-doc-body th,
.tech-doc-body td { border: 1px solid #dddddd; padding: 8px 10px; text-align: left; vertical-align: top; }
.tech-doc-body th { background: #f6f7f2; font-weight: 600; }
.tech-doc-faqs { padding-top: 40px; padding-bottom: 40px; }
.tech-doc-faqs h2 { margin-top: 0; }
.tech-doc-faq { border-top: 1px solid #eeeeee; padding: 14px 0 4px; }
.tech-doc-faq h3 { margin: 0 0 6px; font-size: 20px; color: #282c3f; }
.tech-doc-faq p { margin: 0 0 10px; }

/* Revision record */
.tech-doc-record { padding-top: 30px; padding-bottom: 30px; font-size: 14px; }
.tech-doc-governing { margin: 0 0 10px; padding: 12px 16px; background: #f6f7f2; border-left: 4px solid #c54900; }
.tech-doc-governing .fa-info-circle { color: #c54900; margin-right: 6px; }
.tech-doc-history { margin: 0; padding: 0; list-style: none; color: #707070; }
.tech-doc-history li { display: inline-block; margin-right: 18px; }

/* Library header, search, filters */
.tech-library-header { padding-bottom: 30px; }
.tech-library-header h1 { margin: 0 0 10px; font-size: 40px; }
.tech-library-intro { max-width: 820px; font-size: 16px; }
.tech-library-search { display: flex; max-width: 620px; margin: 20px 0; }
.tech-library-search input[type="search"] {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #cccccc;
  border-right: 0;
  border-radius: 4px 0 0 4px;
  font-size: 15px;
}
.tech-library-search button {
  padding: 10px 18px;
  border: 0;
  border-radius: 0 4px 4px 0;
  background: #282c3f;
  color: white;
  font-weight: 600;
  cursor: pointer;
}
.tech-library-search button:hover { background: #1e1e1e; }
.tech-library-filter { margin: 8px 0; font-size: 13px; }
.tech-library-filter-label { display: inline-block; min-width: 110px; font-weight: 600; color: #404040; }
a.tech-chip,
a.tech-chip:visited {
  display: inline-block;
  margin: 3px 4px 3px 0;
  padding: 4px 10px;
  background: #e3e4db;
  color: #282c3f;
  border-radius: 14px;
  text-decoration: none;
}
a.tech-chip:hover { background: #d3d4c9; color: #020202; }
a.tech-chip.is-current { background: #c54900; color: white; }
.tech-chip-count { opacity: 0.6; margin-left: 2px; }

/* Document list rows (library, related documents, product pages) */
.tech-library-list { padding-top: 20px; padding-bottom: 40px; }
.tech-library-list > h2 { margin-top: 10px; }
ul.tech-doc-rows { margin: 0; padding: 0; list-style: none; }
.tech-doc-row { display: flex; align-items: flex-start; gap: 20px; padding: 18px 0; border-bottom: 1px solid #eeeeee; }
.tech-doc-row:last-child { border-bottom: 0; }
.tech-doc-row-main { flex: 1; }
.tech-doc-row .tech-doc-meta { font-size: 12px; }
h3.tech-doc-row-title { margin: 2px 0 4px; font-size: 22px; line-height: 1.2; }
h3.tech-doc-row-title a { color: #282c3f; text-decoration: none; }
h3.tech-doc-row-title a:hover { color: #c54900; }
.tech-doc-row-summary { margin: 0; font-size: 14px; color: #505050; }
.tech-doc-row-pdf { flex: 0 0 90px; text-align: center; padding-top: 18px; font-size: 13px; }
.tech-doc-row-pdf a { font-weight: 600; white-space: nowrap; }
.tech-doc-row-pdf .fa-file-pdf { font-size: 18px; vertical-align: -2px; color: #c54900; }
.tech-doc-row-pdf .tech-doc-size { display: block; color: #909090; font-size: 12px; }
.tech-library-more { margin: 10px 0 0; font-weight: 600; }
.tech-library-empty { font-size: 16px; color: #707070; }

@media only screen and (max-width: 1023px) {
  h1.tech-doc-title,
  .tech-library-header h1 { font-size: 30px; }
  .tech-doc-header,
  .tech-library-header { padding: 60px 10px 20px; }
  .tech-doc-body,
  .tech-doc-faqs { padding: 20px 10px; }
  .tech-library-filter-label { display: block; margin-bottom: 4px; }
  .tech-doc-row { gap: 10px; }
  .tech-doc-row-pdf { flex-basis: 60px; padding-top: 22px; }
  .tech-doc-history li { display: block; margin: 0 0 4px; }
  /* The theme turns every table into stacked blocks on mobile; let document tables scroll instead. */
  .tech-doc-body table { display: block; overflow-x: auto; }
  .tech-doc-body thead { display: table-header-group; }
  .tech-doc-body thead tr { position: static; }
  .tech-doc-body tbody { display: table-row-group; }
  .tech-doc-body tr { display: table-row; }
  .tech-doc-body th,
  .tech-doc-body td { display: table-cell; padding-left: 10px; }
}

@media print {
  .tech-library-search,
  .tech-library-filter,
  .tech-breadcrumbs { display: none; }
  a.tech-doc-download { background: none; color: #2e2e2e; padding: 0; }
}
