/* AsaDB public information site: intentionally classic, refined for modern reading. */
:root {
  --ink: #00005a;
  --heading: #000066;
  --link: #551a8b;
  --link-hover: #0000aa;
  --visited: #551a8b;
  --rule: #858585;
  --soft-rule: #c9c9c9;
  --paper: #ffffff;
  --paper-warm: #fffef7;
  --notice: #fffdf2;
  --gold: #d69f00;
  --code: #292929;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 0;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Times New Roman", Times, serif;
  font-size: 17px;
  line-height: 1.48;
}

a { color: var(--link); text-decoration: underline; text-underline-offset: 0.1em; }
a:visited { color: var(--visited); }
a:hover, a:focus { color: var(--link-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px dotted var(--heading);
  outline-offset: 3px;
}

img { max-width: 100%; }

.skip-link {
  position: absolute;
  z-index: 10;
  top: -100px;
  left: 12px;
  padding: 7px 10px;
  background: #fff;
  color: var(--heading);
  border: 1px solid var(--heading);
}
.skip-link:focus { top: 10px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.masthead {
  padding: 24px 12px 15px;
  text-align: center;
}

.masthead a { text-decoration: none; }

.masthead-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--heading);
}

.masthead-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
}

.masthead-mark img {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.masthead-wordmark {
  color: var(--heading);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(33px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1;
}

.masthead p { margin: 0; }
.masthead-tagline {
  margin-top: 7px !important;
  color: var(--heading);
  font-size: 20px;
  font-weight: 700;
}
.masthead-address {
  color: var(--heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.classic-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 5px;
  margin: 0;
  padding: 8px 6px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}

.classic-nav a {
  padding: 4px 10px;
  border: 1px solid transparent;
  color: var(--link);
  text-decoration: none;
  white-space: nowrap;
}

.classic-nav a:hover, .classic-nav a:focus {
  border-color: var(--soft-rule);
  background: var(--notice);
  text-decoration: underline;
}

.classic-nav a[aria-current="page"] {
  color: var(--heading);
  font-weight: 700;
}
.classic-nav a[aria-current="page"]::before { content: "["; }
.classic-nav a[aria-current="page"]::after { content: "]"; }

.nav-toggle { display: none; }

main { padding-bottom: 8px; }

.content-width {
  max-width: 1000px;
  margin: 0 auto;
}

.page-intro {
  max-width: 780px;
  margin: 28px auto 21px;
  text-align: center;
}

.page-intro h1 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(29px, 4vw, 38px);
  line-height: 1.12;
}

.page-intro p {
  margin: 8px auto 0;
  font-size: 18px;
}

.eyebrow {
  margin: 0 0 3px;
  color: #555;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead-copy {
  max-width: none;
  margin: 0 0 22px;
  font-size: 19px;
  line-height: 1.55;
  text-wrap: pretty;
}

.home-notice,
.repo-callout,
.note-box,
.warning-box {
  margin: 19px auto;
  padding: 12px 15px;
  border: 1px solid var(--soft-rule);
  background: var(--notice);
}

.repo-callout { border-left: 5px solid var(--gold); }
.warning-box { border-left: 5px solid #9b4444; }
.home-notice p, .repo-callout p, .note-box p, .warning-box p { margin: 0; }

.comments-section {
  margin: 28px auto 12px;
  padding: 16px;
  border: 1px solid var(--soft-rule);
  background: var(--notice);
}

.comments-section h2 { margin-top: 0; }
.comments-section > p { margin-bottom: 14px; }

.section-rule, .site-rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 24px 0;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px 12px;
  margin: 20px 0 24px;
}

.classic-button,
.button-link {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid #777;
  border-radius: 0;
  background: #fafafa;
  color: var(--link);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}

.classic-button:hover,
.classic-button:focus,
.button-link:hover,
.button-link:focus {
  background: #eeeeee;
  color: var(--link-hover);
}

.home-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 17px;
  margin: 20px 0 25px;
}

.home-card,
.article-card {
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid var(--soft-rule);
  background: var(--paper-warm);
}

.home-card h2,
.article-card h2,
.article-card h3 {
  margin: 0 0 5px;
  color: var(--heading);
  font-size: 20px;
}

.home-card p,
.article-card p {
  max-width: 52ch;
  margin: 0;
  text-wrap: pretty;
}

.product-showcase {
  margin: 34px 0 28px;
}

.showcase-heading {
  max-width: 720px;
  margin: 0 auto 16px;
  text-align: center;
}

.showcase-heading h2 { margin: 0 0 5px; }
.showcase-heading p:last-child { margin: 0; }

.product-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.product-shot {
  display: flex;
  min-width: 0;
  margin: 0;
  flex-direction: column;
  border: 1px solid var(--soft-rule);
  background: #fff;
}

.product-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  object-position: center top;
  border-bottom: 1px solid var(--soft-rule);
}

.product-shot-import img { object-position: 56% 18%; }
.product-shot-workspace img { object-position: 51% 24%; }

.product-shot figcaption { padding: 9px 10px 10px; }
.product-shot figcaption strong,
.product-shot figcaption span { display: block; }
.product-shot figcaption strong { margin-bottom: 3px; color: var(--heading); }
.product-shot figcaption span { font-size: 15px; line-height: 1.35; }

.article-card small {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 14px;
}

.content-width h2 {
  margin: 29px 0 8px;
  color: var(--heading);
  font-size: 25px;
  line-height: 1.2;
}

.content-width h3 {
  margin: 20px 0 6px;
  color: var(--heading);
  font-size: 20px;
  line-height: 1.25;
}

.content-width > p:not(.back-link),
.content-width > ul,
.content-width > ol {
  max-width: none;
}

.content-width p {
  margin: 9px 0;
  text-wrap: pretty;
}

.section-anchor { scroll-margin-top: 16px; }

.plain-list,
.check-list {
  margin: 8px 0 17px;
  padding-left: 27px;
}

.plain-list li,
.check-list li { padding: 2px 0; }

.check-list { list-style: square; }

.feature-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 12px;
  max-width: 700px;
  margin: 19px auto 31px;
  padding: 0;
  list-style: none;
  counter-reset: feature-link;
}

.feature-index li {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  align-items: center;
  min-height: 49px;
  padding: 8px 13px;
  border: 1px solid var(--soft-rule);
  background: var(--paper-warm);
  text-align: left;
  counter-increment: feature-link;
}

.feature-index li::before {
  color: var(--heading);
  content: counter(feature-link, decimal-leading-zero) ".";
  font-size: 13px;
  font-weight: 700;
}

.feature-index a {
  display: block;
  font-size: 17px;
}

.sql-list {
  columns: 3;
  column-gap: 28px;
  margin: 8px 0 14px;
  padding-left: 24px;
}

.sql-list li { break-inside: avoid; padding: 2px 0; }

.table-wrap {
  width: 100%;
  margin: 13px 0 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border: 1px solid var(--soft-rule);
}

.detail-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  background: #fff;
}

.detail-table th,
.detail-table td {
  padding: 9px 11px;
  border-right: 1px solid var(--soft-rule);
  border-bottom: 1px solid var(--soft-rule);
  vertical-align: top;
  text-align: left;
  overflow-wrap: break-word;
}

.detail-table tr > *:last-child { border-right: 0; }
.detail-table tbody tr:last-child > * { border-bottom: 0; }

.detail-table th {
  color: var(--heading);
  background: #fafafa;
  font-weight: 700;
}

.detail-table td:first-child {
  color: var(--heading);
  font-weight: 700;
}

.detail-table:not(.release-table):not(.module-table):not(.package-table):not(.feedback-table) th { width: 29%; }

.release-table {
  min-width: 760px;
  table-layout: fixed;
}

.release-table th,
.release-table td { width: auto; }
.release-table th:nth-child(1) { width: 13%; }
.release-table th:nth-child(2) { width: 15%; }
.release-table th:nth-child(3) { width: 16%; }
.release-table th:nth-child(4) { width: 56%; }
.release-table td:last-child { overflow-wrap: normal; }

.package-table { min-width: 700px; table-layout: fixed; }
.package-table th:nth-child(1) { width: 20%; }
.package-table th:nth-child(2) { width: 35%; }
.package-table th:nth-child(3) { width: 45%; }

.module-table { min-width: 830px; table-layout: fixed; }
.module-table th:nth-child(1) { width: 29%; }
.module-table th:nth-child(2) { width: 25%; }
.module-table th:nth-child(3) { width: 46%; }
.module-table code { font-size: 13px; }

.feedback-table { min-width: 940px; table-layout: fixed; }
.feedback-table th:nth-child(1) { width: 14%; }
.feedback-table th:nth-child(2) { width: 21%; }
.feedback-table th:nth-child(3) { width: 23%; }
.feedback-table th:nth-child(4) { width: 22%; }
.feedback-table th:nth-child(5) { width: 20%; }

.command-block {
  position: relative;
  margin: 12px 0 18px;
}

.command-block pre {
  overflow-x: auto;
  margin: 0;
  padding: 13px 92px 13px 14px;
  border: 1px solid var(--soft-rule);
  background: #fafafa;
  color: var(--code);
  font-size: 14px;
  line-height: 1.48;
  white-space: pre;
}

.copy-button {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 13px;
}

code,
pre,
.mono {
  font-family: "Courier New", Courier, monospace;
}

code { color: var(--code); }

.architecture-flow {
  overflow-x: auto;
  margin: 14px 0 20px;
  padding: 15px 18px;
  border: 1px solid var(--soft-rule);
  background: #fafafa;
  color: var(--code);
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre;
}

.back-link { margin: 29px 0 18px !important; }

.footer {
  margin-top: 20px;
  padding: 0 0 29px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 14px;
  margin: 11px 0;
}

.footer p { margin: 5px 0; }
.footer .footer-support { margin: 13px 0 9px; }
.noodle-button {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--gold);
  background: var(--notice);
  color: var(--heading);
  font-weight: 700;
  text-decoration: none;
}
.noodle-button:hover,
.noodle-button:focus { background: #fff4c4; color: var(--link-hover); text-decoration: underline; }
.footer .footer-contact { margin-top: 9px; font-size: 15px; }
.footer .small-print { color: #333; font-size: 13px; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-shell { width: min(100% - 18px, 620px); }
  .masthead { padding: 16px 5px 12px; }
  .masthead-mark { width: 43px; height: 43px; }
  .masthead-mark img { width: 42px; height: 42px; }
  .masthead-wordmark { font-size: 38px; }
  .masthead-tagline { font-size: 18px; }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 9px 11px;
    border: 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    background: var(--notice);
    color: var(--heading);
    cursor: pointer;
    font: 700 16px "Times New Roman", Times, serif;
    text-align: left;
  }

  .nav-toggle::after {
    content: "☰";
    color: var(--gold);
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
  }

  .nav-toggle[aria-expanded="true"]::after { content: "×"; font-size: 25px; }

  .classic-nav {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    border: 0;
    border-bottom: 1px solid var(--rule);
    padding: 9px;
    background: #fbfaf5;
  }

  .classic-nav.is-open { display: grid; }
  .classic-nav a {
    display: block;
    padding: 8px 6px;
    border: 1px solid var(--soft-rule);
    background: #fff;
    line-height: 1.2;
    text-align: center;
  }

  .classic-nav a[aria-current="page"] { background: var(--notice); }

  .page-intro { margin-top: 22px; }
  .page-intro p, .lead-copy { font-size: 17px; }
  .lead-copy { max-width: none; }
  .content-width h2 { font-size: 23px; }

  .home-grid,
  .article-grid,
  .product-gallery,
  .feature-index { grid-template-columns: 1fr; }


  .feature-index { max-width: 440px; }
  .sql-list { columns: 1; }

  .detail-table:not(.release-table):not(.module-table):not(.package-table):not(.feedback-table) th,
  .detail-table:not(.release-table):not(.module-table):not(.package-table):not(.feedback-table) td {
    display: block;
    width: 100%;
    border-right: 0;
  }

  .detail-table:not(.release-table):not(.module-table):not(.package-table):not(.feedback-table) th {
    border-bottom: 0;
  }

  .command-block pre { font-size: 13px; }
  .architecture-flow { font-size: 12px; }
}

@media (max-width: 390px) {
  .classic-nav { grid-template-columns: 1fr; }
}

@media print {
  .skip-link, .nav-toggle, .classic-nav, .copy-button { display: none !important; }
  .site-shell { width: 100%; }
  .table-wrap { overflow: visible; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
