body { font-family: Arial, Helvetica, sans-serif; margin: 0; background: #f5f5f5; color: #222; }
header { background: #172033; color: #fff; padding: 18px 28px; }
header h1 { margin: 0 0 8px 0; font-size: 28px; }
header a { color: #fff; text-decoration: none; }
nav a { margin-right: 18px; font-weight: bold; }
main { max-width: 1280px; margin: 24px auto; background: #fff; padding: 24px; box-shadow: 0 1px 6px rgba(0,0,0,.08); }
footer { max-width: 1280px; margin: 0 auto 24px auto; color: #666; font-size: 13px; }

/* DevConDB v0.12.11 public footer */
.site-footer {
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 18px 24px;
  border-top: 1px solid #d9dee7;
  line-height: 1.45;
}
.site-footer p { margin: 4px 0; }
.site-footer a { color: #294c7a; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { text-decoration: underline; }
.footer-context { max-width: 760px; }
.footer-context > strong { color: #172033; }
.footer-trademarks { color: #7a7f88; }
.footer-owner { min-width: 230px; text-align: right; }
.footer-version { color: #7a7f88; }
@media (max-width: 720px) {
  .site-footer { flex-direction: column; gap: 14px; }
  .footer-owner { min-width: 0; text-align: left; }
}
table { border-collapse: collapse; width: 100%; margin-top: 16px; }
th, td { border-bottom: 1px solid #ddd; padding: 9px; text-align: left; vertical-align: top; }
th { background: #eef1f6; }
tr:hover { background: #fafafa; }
code, pre { background: #f1f1f1; padding: 2px 4px; border-radius: 3px; }
pre { padding: 12px; overflow-x: auto; }
.searchbox { margin: 18px 0; }
.searchbox input { width: 420px; max-width: 80%; padding: 8px; }
.searchbox select, .panel select, .panel input { padding: 8px; min-width: 360px; max-width: 100%; }
.searchbox button, button, .button { padding: 8px 14px; display: inline-block; background: #172033; color: white; border: 0; border-radius: 3px; text-decoration: none; margin-right: 8px; }
.stats { display: flex; gap: 16px; flex-wrap: wrap; margin: 20px 0; }
.stats a { background: #eef1f6; padding: 16px; min-width: 120px; border-radius: 6px; color: inherit; text-decoration: none; transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.stats a:hover, .stats a:focus-visible { background: #e2e7ef; box-shadow: 0 3px 10px rgba(23, 32, 51, .12); transform: translateY(-1px); }
.stats a:focus-visible { outline: 3px solid #294c7a; outline-offset: 2px; }
.stats strong { display: block; font-size: 28px; }
.stats span { color: #555; }
.detail { display: grid; grid-template-columns: 240px 1fr; gap: 8px 16px; }
.detail dt { font-weight: bold; }
.detail dd { margin: 0; }
.muted { color: #888; }
.notice { background: #eef8ee; border-left: 4px solid #318231; padding: 12px; }
.ok { color: #146b14; font-weight: bold; }
.bad { color: #a40000; font-weight: bold; }
.panel { display: grid; gap: 14px; max-width: 700px; background: #f8f8f8; border: 1px solid #ddd; padding: 16px; }
.summary th, .summary td { text-align: center; }

.table-wrap { max-height: 72vh; overflow: auto; border: 1px solid #ddd; margin-top: 16px; }
.table-wrap table { margin-top: 0; }
/* DevConDB v0.12.10a: every primary data table scrolls inside its own viewport,
   matching the established Items-page behaviour. */
.table-wrap { position: relative; max-height: 72vh; overflow: auto; border: 1px solid #ddd; margin-top: 16px; }
.table-wrap table { margin-top: 0; border-collapse: separate; border-spacing: 0; }
.table-wrap thead th { position: sticky; top: 0; z-index: 5; background: #eef1f6; box-shadow: 0 1px 0 #c8ced8; }

.drive-options { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: #f8f8f8; border: 1px solid #ddd; padding: 12px; margin: 14px 0; }
.drive-options label { font-weight: bold; }
.drive-options input { width: 44px; padding: 6px; margin-left: 4px; text-transform: uppercase; }

.table-help { background: #f8f8f8; border: 1px solid #ddd; padding: 12px; margin: 14px 0; }
.table-help summary { cursor: pointer; font-weight: bold; }
.table-help table { margin-top: 12px; }
.legend th, .legend td { border-bottom: 1px solid #ddd; }


/* DevConDB v0.08 product pages and external image assets */
.mechanism { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.mechanism-icon { width: 18px; height: 18px; display: inline-block; flex: 0 0 auto; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; color: #667085; font-size: 14px; }
.breadcrumb a { color: #294c7a; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.back-button { margin-bottom: 8px; }
.product-heading { border-bottom: 1px solid #e2e6ec; margin-bottom: 18px; padding-bottom: 12px; }
.product-heading h2 { margin: 4px 0 0; font-size: 32px; }
.product-kicker { color: #667085; margin: 0; }
.product-summary { background: #f8fafc; border: 1px solid #dce3ec; border-radius: 8px; padding: 18px; margin: 20px 0 26px; }
.product-summary h3 { margin-top: 0; }
.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid #dce3ec; border-left: 1px solid #dce3ec; }
.summary-grid > div { display: grid; grid-template-columns: 145px 1fr; gap: 10px; padding: 11px 12px; border-right: 1px solid #dce3ec; border-bottom: 1px solid #dce3ec; background: #fff; }
.summary-grid dt { font-weight: bold; color: #465467; }
.summary-grid dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.installation-section { margin-top: 28px; }
.original-data { margin-top: 34px; padding-top: 20px; border-top: 2px solid #e2e6ec; }
.delivery-table { max-height: 58vh; }
@media (max-width: 850px) {
  .summary-grid { grid-template-columns: 1fr; }
  .summary-grid > div { grid-template-columns: 125px 1fr; }
}


/* DevConDB v0.11 volume historical notes */
.volume-notes { margin: 18px 0 24px; }
.volume-notes > h3 { margin-bottom: 10px; }
.volume-note { background: #eef6ff; border: 1px solid #c8ddf2; border-left: 5px solid #4d7da8; border-radius: 6px; padding: 14px 16px; margin: 12px 0; }
.volume-note h4 { margin: 2px 0 8px; font-size: 18px; }
.volume-note-type { margin: 0; color: #4b6780; font-size: 12px; font-weight: bold; letter-spacing: .04em; text-transform: uppercase; }
.volume-note-body { line-height: 1.55; white-space: normal; }

/* DevConDB v0.11a health tabs and database integrity checks */
.health-heading h2 { margin-bottom: 6px; }
.health-heading p { margin-top: 0; }
.health-tabs { display: flex; gap: 4px; margin: 20px 0 24px; border-bottom: 1px solid #cfd6df; }
.health-tabs a { color: #294c7a; text-decoration: none; padding: 10px 16px; margin: 0 0 -1px; border: 1px solid transparent; border-radius: 5px 5px 0 0; }
.health-tabs a:hover { background: #f5f7fa; }
.health-tabs a.active { background: #fff; border-color: #cfd6df #cfd6df #fff; color: #172033; }
.database-health-title { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.database-health-title h3 { margin-top: 0; }
.health-summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 13px 15px; margin: 16px 0; border-radius: 5px; }
.health-summary-ok { background: #eef8ee; border: 1px solid #bcdcbc; }
.health-summary-bad { background: #fff0f0; border: 1px solid #e2baba; }
.health-summary span { color: #555; font-size: 13px; }
.health-subheading { margin-top: 32px; }
@media (max-width: 760px) {
  .database-health-title, .health-summary { align-items: stretch; flex-direction: column; }
  .health-tabs { overflow-x: auto; }
}

/* DevConDB v0.12.4 public archive notice */
.archive-notice {
  margin: 20px 0;
  padding: 16px 18px;
  background: #f8fafc;
  border: 1px solid #dce3ec;
  border-left: 5px solid #4d7da8;
  border-radius: 6px;
}
.archive-notice h3 { margin: 0 0 8px; font-size: 18px; }
.archive-notice p { margin: 0; line-height: 1.55; }


/* DevConDB v0.12.5 homepage exploration and forthcoming archives */
.explore-section { margin: 28px 0 22px; }
.explore-section > h3, .coming-soon > h3 { margin-bottom: 12px; }
.explore-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.explore-card {
  display: block;
  padding: 18px;
  border: 1px solid #dce3ec;
  border-radius: 7px;
  background: #f8fafc;
  color: #172033;
  text-decoration: none;
}
.explore-card:hover { background: #eef4fa; border-color: #b8cadc; }
.explore-card strong { display: block; margin-bottom: 7px; font-size: 18px; color: #294c7a; }
.explore-card span { display: block; line-height: 1.5; color: #465467; }
.home-search { padding: 18px; margin: 22px 0 28px; background: #f5f7fa; border: 1px solid #dce3ec; border-radius: 7px; }
.home-search label { display: block; margin-bottom: 9px; font-weight: bold; }
.home-search div { display: flex; gap: 8px; align-items: center; }
.home-search input { flex: 1; width: auto; max-width: none; }
.coming-soon { margin-top: 28px; padding-top: 4px; }
.coming-soon > p { max-width: 850px; line-height: 1.55; }
.coming-soon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.coming-soon-grid article { padding: 16px 18px; background: #fffaf0; border: 1px solid #ead9ae; border-left: 5px solid #b8872f; border-radius: 6px; }
.coming-soon-grid h4 { margin: 0 0 7px; font-size: 17px; }
.coming-soon-grid p { margin: 0; line-height: 1.5; color: #555; }
@media (max-width: 800px) {
  .explore-grid, .coming-soon-grid { grid-template-columns: 1fr; }
  .home-search div { align-items: stretch; flex-direction: column; }
  .home-search input, .home-search button { box-sizing: border-box; width: 100%; }
}


/* DevConDB v0.12.9 grouped disc listing */
.discs-table .volume-separator th {
  position: static;
  padding: 12px 14px;
  background: #eaf1f8;
  border-top: 3px solid #7d9bb8;
  border-bottom: 1px solid #c7d5e3;
  text-align: left;
  box-shadow: none;
}
.discs-table .volume-separator:first-child th { border-top-width: 1px; }
.discs-table .volume-separator a { font-size: 17px; font-weight: bold; }
.discs-table .volume-separator span { margin-left: 10px; color: #56697d; font-weight: normal; }

/* DevConDB v0.12.13 visual identity */
.site-header {
  box-sizing: border-box;
  padding: 12px 28px;
  background: linear-gradient(135deg, #061a38 0%, #0a2b59 100%);
  border-bottom: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 2px 10px rgba(7, 29, 63, .18);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 6px;
}
.site-brand img {
  display: block;
  width: 410px;
  max-width: 100%;
  height: auto;
}
.site-brand:focus-visible {
  outline: 3px solid #74b7ff;
  outline-offset: 4px;
}
@media (max-width: 620px) {
  .site-header { padding: 10px 16px; }
  .site-brand img { width: 330px; }
}
@media (max-width: 390px) {
  .site-brand img { width: 285px; }
}

/* DevConDB v0.12.14 homepage archive icons */
.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}
.stats a {
  box-sizing: border-box;
  min-width: 0;
  padding: 18px 14px;
  text-align: center;
  border: 1px solid #dce3ec;
  background: #f8fafc;
}
.stats a img {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 9px;
}
.stats strong { font-size: 30px; line-height: 1.05; color: #172033; }
.stats span { display: block; margin-top: 4px; color: #465467; }
.stats a:hover img, .stats a:focus-visible img { transform: translateY(-1px) scale(1.03); }
.stats a img { transition: transform .15s ease; }

.coming-soon-grid article {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.coming-soon-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
}
.coming-soon-grid article > div { min-width: 0; }

@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* DevConDB v0.12.15 prominent search and AJAX suggestions */
.home-search {
  position: relative;
  padding: 22px;
  margin: 26px 0 22px;
  background: #eef5fc;
  border: 1px solid #c8dbef;
  border-left: 5px solid #2b79bd;
  box-shadow: 0 3px 12px rgba(23, 32, 51, .08);
}
.home-search label {
  margin-bottom: 4px;
  font-size: 1.2rem;
  color: #172033;
}
.search-help {
  margin: 0 0 13px;
  color: #536274;
}
.home-search .search-input-row {
  display: flex;
  gap: 9px;
  align-items: stretch;
}
.search-suggest-wrap {
  position: relative;
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}
.home-search input[type="search"] {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #9fb6ce;
  border-radius: 4px;
  font-size: 1rem;
  background: #fff;
}
.home-search input[type="search"]:focus {
  outline: 3px solid rgba(43, 121, 189, .22);
  border-color: #2b79bd;
}
.home-search button {
  min-width: 96px;
  margin-right: 0;
  font-weight: 700;
}
.search-suggestions {
  position: absolute;
  z-index: 50;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  max-height: min(420px, 55vh);
  overflow-y: auto;
  background: #fff;
  border: 1px solid #aebdcd;
  border-radius: 5px;
  box-shadow: 0 10px 28px rgba(16, 31, 50, .18);
}
.search-suggestion {
  display: block;
  padding: 10px 12px;
  color: #172033;
  text-decoration: none;
  border-bottom: 1px solid #e5ebf1;
}
.search-suggestion:last-child { border-bottom: 0; }
.search-suggestion:hover,
.search-suggestion:focus,
.search-suggestion.is-active {
  background: #eaf3fb;
  outline: none;
}
.search-suggestion-title {
  display: block;
  font-weight: 700;
  line-height: 1.3;
}
.search-suggestion-meta {
  display: block;
  margin-top: 3px;
  color: #5c6876;
  font-size: .88rem;
  line-height: 1.35;
}
.keep-together { white-space: nowrap; }
.archive-notice { margin-top: 30px; }

@media (max-width: 620px) {
  .home-search { padding: 17px; }
  .home-search .search-input-row { flex-direction: column; }
  .home-search button { width: 100%; min-height: 42px; }
}

/* DevConDB v0.12.18 search empty state, custom 404 and footer edition styling */
.footer-edition { white-space: nowrap; }
.search-results-form { margin-top: 12px; }
.search-result-count { margin: 22px 0 14px; color: #37475a; }
.empty-state {
  margin: 24px 0;
  padding: 22px 24px;
  background: #f7f9fb;
  border: 1px solid #d8e0e9;
  border-left: 5px solid #61758b;
  border-radius: 7px;
}
.empty-state h3 { margin: 0 0 8px; color: #172033; }
.empty-state p { margin: 0; line-height: 1.55; color: #4b5968; }
.not-found { max-width: 820px; margin: 8px 0 22px; }
.not-found .error-code {
  margin: 0 0 -8px;
  color: #d9e4ef;
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.06em;
}
.not-found h2 { margin-top: 0; }
.not-found p { max-width: 760px; line-height: 1.6; }
.not-found-search { max-width: 900px; }

/* Sortable public tables */
th .sort-link {
  align-items: center;
  color: inherit;
  display: flex;
  gap: .42rem;
  justify-content: space-between;
  min-width: 100%;
  text-decoration: none;
}
th .sort-link:hover,
th .sort-link:focus-visible { text-decoration: underline; }
th.sorted-column { background: rgba(30, 73, 118, .12); }
.sort-indicator {
  font-size: .72em;
  line-height: 1;
  opacity: .55;
}
th.sorted-column .sort-indicator { opacity: 1; }
.client-sort-link {
  background: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
  width: 100%;
}
