/* site-page.css: /dive/<site> and /tidepools/<place> (templates/site_page.html, 2026-12-06).
   Sitewide tokens only (css/tokens.css). Sizes in rem so the desktop text scale and the Text size control apply.
   Phone first: one column, tables scroll inside their own box, every link and button is at least 2.75rem tall.
   No dashed or dotted underlines on plain text (they read as links). */
.sp { color: var(--c-text); }
.sp a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 0.15em; }
.sp a:hover { color: var(--c-accent-2); }
.sp-eyebrow { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--c-text-3); margin-bottom: 0.375rem; }
.sp-h1 { font-size: clamp(1.5rem, 5.2vw, 2.25rem); font-weight: 800; line-height: 1.1; margin: 0 0 0.875rem; }
.sp-h2 { font-size: 1.0625rem; font-weight: 700; margin: 1.5rem 0 0.625rem; }

.sp-now { background: var(--c-surface); border: 1px solid var(--c-line-2); border-left: 0.25rem solid var(--c-accent);
  border-radius: var(--r-2); padding: 0.875rem 1rem; }
.sp-now.is-old { border-left-color: var(--c-text-3); }
.sp-headline { font-size: clamp(1.1875rem, 4.6vw, 1.5rem); font-weight: 800; line-height: 1.25; margin: 0; }
.sp-sub { font-size: 1rem; line-height: 1.5; color: var(--c-text-2); margin: 0.375rem 0 0; }
.sp-age { font-size: 0.8125rem; line-height: 1.5; color: var(--c-text-3); margin: 0.625rem 0 0; }
.sp-old { color: var(--c-warn); font-weight: 700; }
.sp-note { font-size: 0.875rem; line-height: 1.55; color: var(--c-text-2); margin: 0.5rem 0; }
.sp-warn { font-size: 0.9375rem; line-height: 1.5; color: var(--c-warn); font-weight: 700; margin: 0.625rem 0 0; }
.sp-dim { color: var(--c-text-3); font-weight: 400; }
.sp-chip { display: inline-block; padding: 0.125rem 0.5rem; border-radius: var(--r-pill); font-size: 0.75rem;
  font-weight: 700; line-height: 1.5; background: var(--c-surface-3); color: var(--c-text); }
.sp-chip--good { background: var(--c-good); color: #04210f; }
.sp-chip--warn { background: var(--c-warn); color: var(--c-accent-ink); }
.sp-chip--bad { background: var(--c-bad); color: #fff; }

.sp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--c-line); border-radius: var(--r-2); }
.sp-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.sp-table th, .sp-table td { padding: 0.5625rem 0.75rem; text-align: left; border-bottom: 1px solid var(--c-line);
  vertical-align: top; }
.sp-table thead th { font-size: 0.75rem; font-weight: 600; color: var(--c-text-3); background: var(--c-surface); }
.sp-table tbody th { font-weight: 600; }
.sp-meta { display: block; font-size: 0.8125rem; color: var(--c-text-3); font-weight: 400; margin-top: 0.125rem; }
@media (max-width: 30rem) {
  .sp-table { font-size: 0.875rem; }
  .sp-table th, .sp-table td { padding: 0.5rem 0.4375rem; }
}

.sp-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-2); padding: 0.75rem 1rem;
  margin: 0.625rem 0; font-size: 0.9375rem; line-height: 1.5; }
.sp-card p { margin: 0.25rem 0; }
.sp-list { list-style: none; margin: 0; padding: 0; }
.sp-list li { margin: 0; }
.sp-list a { display: flex; align-items: center; min-height: 2.75rem; padding: 0.375rem 0; }
.sp-btn { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.5rem 0; font-weight: 600; }
.sp-links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin-top: 1.5rem; }
.sp-links a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.sp-details summary { min-height: 2.75rem; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
