/* Sprayed? — "About this data" page. Loads after styles.css and reuses its tokens. */

.about {
  max-width: 760px;
  margin: 0 auto;
  padding: 12px var(--gutter) 32px;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.about:focus {
  outline: none;
}

.about p,
.about li,
.about dd {
  max-width: 70ch;
}

.about a {
  overflow-wrap: anywhere;
}

/* ---------- Head ---------- */

.about-head {
  margin: 8px 4px 20px;
}

.about-updated {
  display: inline-block;
  margin: 12px 0 0;
  padding: 6px 12px;
  border: var(--border-thin);
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* ---------- On this page ---------- */

.about-toc {
  padding: 16px 20px 18px;
  margin-bottom: 16px;
}

.about-toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.about-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 14px;
  border: var(--border-thin);
  border-radius: 999px;
  background: var(--clear-soft);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.about-toc a:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-sm);
}

/* ---------- Section cards ---------- */

.about-card {
  padding: 20px 20px 22px;
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.55;
  scroll-margin-top: 80px;
}

.about-card p {
  margin: 0 0 12px;
}

.about-card > :last-child {
  margin-bottom: 0;
}

.about-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.15;
}

.about-sub {
  margin: 22px 0 8px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.about-list {
  margin: 0 0 12px;
  padding-left: 1.2em;
}

.about-list li {
  margin-bottom: 10px;
}

.about-list li::marker {
  color: var(--now);
}

/* ---------- Sources ---------- */

.source {
  padding: 14px 0;
  border-top: 2px dashed var(--hairline);
}

.source:last-child {
  padding-bottom: 0;
}

.source-name {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.source-meta {
  margin: 0;
}

.source-meta > div {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 4px 12px;
  margin-bottom: 6px;
}

.source-meta dt {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.source-meta dd {
  margin: 0;
}

@media (max-width: 480px) {
  .source-meta > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

/* ---------- Keys: statuses and signal words ---------- */

.key-list,
.signal-scale {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.key-list li,
.signal-scale li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.key-list .dot {
  position: relative;
  top: 1px;
}

.signal-scale .hz-swatch {
  width: 22px;
  height: 22px;
  font-size: 12px;
  position: relative;
  top: 5px;
  flex: none;
}

.inline-swatch {
  width: 18px;
  height: 18px;
  font-size: 11px;
  vertical-align: -3px;
}

/* ---------- Health ---------- */

.about-health {
  background: var(--recent-soft);
}

.phone {
  font-weight: 800;
  white-space: nowrap;
}

/* ---------- Header tabs (four on this page) and footer ---------- */

.tab-short {
  display: none;
}

@media (max-width: 480px) {
  .about-tabs {
    gap: 6px;
  }

  .about-tabs .tab {
    padding: 6px 8px;
    font-size: 14px;
    gap: 4px;
  }

  /* "Chemical guide" → "Guide"; the full name stays for screen readers. */
  .about-tabs .tab-long {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .about-tabs .tab-short {
    display: inline;
  }
}

@media (max-width: 380px) {
  .about-tabs .tab .i {
    display: none;
  }
}

.about-footer {
  max-width: 760px;
}

@media (min-width: 900px) {
  .about {
    padding-top: 24px;
  }

  .about-card {
    padding: 24px 28px 26px;
  }

  .about-card,
  .about-toc {
    scroll-margin-top: 100px;
  }

  .about-footer {
    max-width: 760px;
    padding: 4px var(--gutter) 24px;
  }
}
