/* Fit Finder — shared styles (mobile-first) */
:root {
  --ink: #1a1a1a;
  --muted: #5a5a5a;
  --bg: #faf9f7;
  --card: #ffffff;
  --line: #e5e2dc;
  --accent: #2c5f4f;
  --accent-soft: #e8f2ee;
  --warn: #7a5b1e;
  --warn-bg: #fff8e8;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.wrap {
  width: min(960px, 100% - 2rem);
  margin-inline: auto;
}

header.site {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

.brand .brand-tag {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.1;
}

nav.site a {
  margin-left: 0.85rem;
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
}

nav.site a:hover {
  color: var(--accent);
}

main {
  padding: 1.75rem 0 3rem;
}

h1 {
  font-size: clamp(1.55rem, 4vw, 2rem);
  line-height: 1.2;
  margin: 0 0 0.6rem;
}

h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 42rem;
  margin: 0 0 1.5rem;
}

.pitch {
  background: var(--accent-soft);
  border: 1px solid #cfe3da;
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
}

.pitch p {
  margin: 0;
  font-weight: 500;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.75rem;
}

.chip {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
}

.chip:hover,
.chip[aria-current="page"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.page-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.page-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.15rem;
}

.page-card a {
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--ink);
}

.page-card a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.page-card .tags {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.page-card .tags span + span::before {
  content: " · ";
}

/* Tables — scroll on small screens */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  margin: 1rem 0 1.5rem;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 520px;
}

caption {
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
  background: var(--accent-soft);
  border-bottom: 1px solid var(--line);
  caption-side: top;
}

th,
td {
  padding: 0.65rem 0.85rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

th {
  background: #f3f1ed;
  font-weight: 600;
  position: sticky;
  top: 0;
}

tbody tr:nth-child(even) {
  background: #fcfbf9;
}

tbody tr:hover {
  background: var(--accent-soft);
}

th:first-child,
td:first-child {
  text-align: left;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.note,
.caveat {
  background: var(--warn-bg);
  border: 1px solid #f0e0b8;
  border-left: 4px solid #d4a017;
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  color: var(--warn);
  margin: 1.25rem 0;
}

.note p,
.caveat p {
  margin: 0;
}

.howto ol {
  padding-left: 1.2rem;
}

.howto li {
  margin-bottom: 0.5rem;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
}

.faq details[open] summary {
  margin-bottom: 0.5rem;
}

.partners {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  background: #f7f6f3;
  color: var(--muted);
  margin-top: 2rem;
}

.partners h2 {
  margin-top: 0;
  font-size: 1rem;
  color: var(--muted);
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.back {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.empty {
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 560px) {
  table {
    font-size: 0.85rem;
  }

  th,
  td {
    padding: 0.55rem 0.6rem;
  }
}

.partners.shop {
  border-style: solid;
  border-color: #cfe3da;
  background: var(--accent-soft);
  color: var(--ink);
}

.partners.shop h2 {
  color: var(--accent);
  font-size: 1.15rem;
}

.partners.shop p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.shop-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.75rem 0 0.5rem;
}

.shop-btn {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--accent);
}

.shop-btn:hover {
  filter: brightness(1.08);
}

.shop-btn.secondary {
  background: var(--card);
  color: var(--accent) !important;
}

.partners .disclosure {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.source-line{font-size:.85rem;color:#5a5163;margin:.5rem 0 1rem}
.source-line a{color:inherit;text-decoration:underline}

footer.site .legal-links {
  margin: 0.4rem 0 0;
}

footer.site .legal-links a {
  color: var(--muted);
}

.legal-body h2 {
  font-size: 1.2rem;
}

.legal-body ul {
  padding-left: 1.25rem;
}
