/* ==========================================================================
   Crawlable pages (server/seo.js)

   The server renders these inside <main id="view"> so people and search
   engines get real content before the app has booted. The app then replaces
   them with its own screens, so this sheet only has to be readable and
   stable (no layout shift), not pixel-identical to the app.
   Loaded only on those pages.
   ========================================================================== */

.seo-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px 8px;
  line-height: 2;
  color: var(--text-2);
}

.seo-page h1 { margin: 8px 0 12px; font-size: 22px; line-height: 1.6; color: var(--text); }
.seo-page h2 { margin: 28px 0 8px; font-size: 17px; color: var(--text); }
.seo-page h3 { margin: 18px 0 4px; font-size: 15px; color: var(--text); }
.seo-page a { color: var(--gold-2); text-decoration: none; }
.seo-page a:hover, .seo-page a:focus-visible { text-decoration: underline; }
.seo-page small { color: var(--text-muted); }

.seo-crumbs { font-size: 13px; color: var(--text-muted); }

.seo-list { margin: 0; padding: 0; list-style: none; }
.seo-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.seo-pr { color: var(--text); font-weight: 600; }

.seo-links a { white-space: nowrap; }

.seo-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.seo-cat {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
}
.seo-cat strong { color: var(--text); font-size: 16px; }
.seo-cat span { color: var(--text-muted); font-size: 13px; }

.seo-pager { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 20px 0 4px; }
.seo-pager a, .seo-pager span {
  min-width: 36px; padding: 2px 10px; text-align: center;
  border: 1px solid var(--border); border-radius: var(--r-sm);
}
.seo-pager [aria-current="page"] { background: var(--gold-soft); color: var(--text); border-color: var(--gold-1); }

/* Listing page: the photo reserves its space from the width/height attributes. */
.seo-gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; }
.seo-gallery img { flex: none; height: auto; max-height: 360px; max-width: 100%; border-radius: var(--r-md); scroll-snap-align: start; background: var(--surface); }
.seo-gallery .seo-hero { width: auto; }
.seo-price { font-size: 18px; color: var(--text); }

.seo-specs { width: 100%; border-collapse: collapse; margin: 12px 0; }
.seo-specs caption { text-align: start; color: var(--text-muted); padding-bottom: 4px; }
.seo-specs th, .seo-specs td { text-align: start; padding: 6px 0; border-bottom: 1px solid var(--border); }
.seo-specs th { width: 38%; color: var(--text-muted); font-weight: 500; }

.seo-foot { max-width: 760px; margin: 0 auto; padding: 8px 16px 32px; font-size: 13px; color: var(--text-muted); }
.seo-foot a { color: var(--text-muted); }

@media (min-width: 720px) {
  .seo-page h1 { font-size: 26px; }
}
