/* Solstice public pages: the one stylesheet. System fonts only; no images, no external files.
   Colors are tokens, with a dark set for readers whose system asks for it. Every text color
   meets WCAG AA contrast (4.5:1) on its background in both sets. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f4f5f7;
  --text: #16181d;
  --muted: #555c67;
  --rule: #dfe2e6;
  --link: #0b57d0;
  --mark: #1d6b45;
  --focus: #0b57d0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --surface: #1b1e24;
    --text: #e6e8eb;
    --muted: #a7adb7;
    --rule: #2c3139;
    --link: #8ab4f8;
    --mark: #7fd3a2;
    --focus: #8ab4f8;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
}

.skip:focus {
  left: 0.5rem;
  z-index: 1;
  background: var(--bg);
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--focus);
}

/* Header and site navigation */

.site-header {
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 0.75rem;
}

.wordmark {
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark::before {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-right: 0.4em;
  border-radius: 50%;
  background: var(--mark);
  vertical-align: 0.05em;
}

.wordmark .by {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
}

.site-nav li {
  margin: 0;
}

.site-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* Page text */

main {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 2.25rem 0 0.5rem;
}

h3 {
  font-size: 1.075rem;
  line-height: 1.35;
  margin: 1.5rem 0 0.4rem;
}

p,
ul,
ol,
address {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.4rem;
}

li {
  margin: 0.3rem 0;
}

.lede {
  color: var(--muted);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.updated {
  color: var(--muted);
  font-size: 0.95rem;
}

.links a {
  white-space: nowrap;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--surface);
  border-radius: 4px;
  padding: 0.05em 0.3em;
  overflow-wrap: anywhere;
}

/* Contents box on the longer pages */

.toc {
  background: var(--surface);
  border-radius: 8px;
  padding: 0.75rem 1rem 0.5rem;
  margin: 1.5rem 0 0.5rem;
}

.toc h2 {
  font-size: 1rem;
  margin: 0 0 0.25rem;
}

.toc ol {
  margin: 0 0 0.5rem;
  columns: 2;
  column-gap: 2rem;
}

.toc li {
  margin: 0.15rem 0;
  break-inside: avoid;
}

/* The table of Google data by level */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 0.5rem 0 1.25rem;
}

.data-table th,
.data-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.6rem 0.6rem 0;
  border-bottom: 1px solid var(--rule);
}

.data-table thead th {
  font-weight: 600;
  border-bottom: 2px solid var(--rule);
}

.data-table tbody th {
  font-weight: 600;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .wrap {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.site-footer p,
.site-footer address {
  margin: 0 0 0.5rem;
  font-style: normal;
}

/* Phones: one column, and the table becomes one card per row */

@media (max-width: 40rem) {
  h1 {
    font-size: 1.7rem;
  }

  .toc ol {
    columns: 1;
  }

  .data-table,
  .data-table thead,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
  }

  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .data-table tbody tr {
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    margin: 0 0 0.75rem;
  }

  .data-table tbody th,
  .data-table tbody td {
    border: 0;
    padding: 0.15rem 0;
  }

  .data-table tbody td::before {
    content: attr(data-label) ": ";
    font-weight: 600;
  }
}

@media print {
  .skip,
  .site-nav,
  .toc {
    display: none;
  }

  a {
    color: inherit;
  }
}
