/* The answer pages (/about/, /compare/…, /how-to/…, written by scripts/build-answer-pages.mjs): the comparison table,
   the questions, a grid of short articles, code panels and the trademark line. Added here rather than in the shared
   sheets (docs/site.md: a page adds what is missing in its own sheet). */
.an-compare { max-width: 72rem; overflow-x: auto }
.an-compare:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px }
.an-compare table { width: 100%; border-collapse: collapse; font-size: .97rem }
.an-compare caption { padding-bottom: .9rem; color: var(--s-soft); font-size: .88rem; text-align: left; caption-side: top }
.an-compare th, .an-compare td { padding: .8rem 1rem .8rem 0; border-top: 1px solid var(--s-line); text-align: left; vertical-align: top }
.an-compare thead th { border-top: 0; font: 600 .8rem/1.4 ui-monospace,Menlo,monospace }
.an-compare tbody th { width: 22%; font-weight: 600 }
.an-compare td { width: 39% }
.an-compare td[data-col="Slatebox"] { font-weight: 500 }
.an-compare tr:last-child > * { border-bottom: 1px solid var(--s-line) }
.an-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
@media (max-width: 640px) {
  .an-compare table, .an-compare tbody, .an-compare tr, .an-compare th, .an-compare td { display: block; width: auto }
  .an-compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%) }
  .an-compare caption { display: block }
  .an-compare tbody th { width: auto; padding: 1rem 0 .3rem; border-top: 1px solid var(--s-line) }
  .an-compare td { padding: .35rem 0 .35rem; border-top: 0 }
  .an-compare td::before { content: attr(data-col); display: block; color: var(--s-soft); font: 600 .75rem/1.5 ui-monospace,Menlo,monospace }
  .an-compare tr:last-child > * { border-bottom: 0 }
}

.an-faq { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,22rem),1fr)); gap: 1.4rem clamp(1.5rem,3vw,3rem); max-width: 80rem }
.an-faq article { padding-top: 1rem; border-top: 2px solid var(--s-ink) }
.an-faq h3 { font-size: clamp(1.25rem,1.7vw,1.6rem) }
.an-faq p { margin-top: .6rem; color: var(--s-soft) }

.an-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,19rem),1fr)); gap: 1.6rem clamp(1.5rem,3vw,3rem) }
.an-grid article { padding-top: 1rem; border-top: 1px solid var(--s-line) }
.an-grid h3 { font-size: clamp(1.25rem,1.7vw,1.6rem) }
.an-grid h3 a { text-decoration: none }
.an-grid h3 a:hover { text-decoration: underline }
.an-grid p { margin-top: .6rem; color: var(--s-soft) }
.an-grid p a { color: var(--s-link); font-weight: 600 }

.an-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem }
.an-links a { font-weight: 600 }
.an-center { justify-content: center }
@media (max-width: 800px) { .an-links a { display: inline-flex; align-items: center; min-height: 44px } }

.an-code { min-width: 0; margin: 0; overflow: hidden; border: 1px solid #3d584b; border-radius: 8px; background: #1b3128; color: #eef2e4 }
.an-code figcaption { padding: .5rem .8rem; background: #16281f; border-bottom: 1px solid #3d584b; color: #b9cabb; font: 600 .75rem/1.3 ui-monospace,Menlo,monospace }
.an-code pre { margin: 0; padding: .85rem .9rem 1rem; overflow-x: auto; font: 500 13px/1.6 ui-monospace,Menlo,Consolas,monospace; tab-size: 2 }
.an-code pre:focus-visible { outline: 3px solid #f4ce84; outline-offset: -3px }
.hub-page main .an-code code { padding: 0; border-radius: 0; background: none; font: inherit; overflow-wrap: normal; white-space: pre }

.an-legal { margin: 0; padding: 1.2rem var(--pad); background: var(--paper); color: #4d5f53; font-size: .82rem; line-height: 1.5 }
