/* CoatCheck — shared styles. Mobile-first, system fonts, no frameworks. */
:root {
  --ink: #1f2937;
  --muted: #6b7280;
  --accent: #1d4ed8;
  --accent-soft: #eff6ff;
  --warn: #b45309;
  --warn-bg: #fef3c7;
  --border: #e5e7eb;
  --radius: 10px;
}
* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  margin: 0;
  background: #fff;
}
header.site {
  background: var(--accent-soft);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
}
header.site .wrap, main.wrap, footer.site .wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem;
}
.brand { font-weight: 800; font-size: 1.25rem; text-decoration: none; color: var(--ink); }
nav.main { margin-top: 0.5rem; display: flex; gap: 1rem; flex-wrap: wrap; }
nav.main a { color: var(--accent); text-decoration: none; font-size: 0.95rem; }
nav.main a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; line-height: 1.25; margin: 1.25rem 0 0.5rem; }
h2 { font-size: 1.2rem; margin: 1.75rem 0 0.5rem; }
.lede { color: var(--muted); font-size: 1.05rem; }
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1rem 0;
}
label { display: block; font-weight: 600; margin: 0.75rem 0 0.25rem; font-size: 0.95rem; }
input, select {
  width: 100%;
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}
input[type="checkbox"] { width: auto; margin-right: 0.5rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
button.calc {
  margin-top: 1rem;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}
button.calc:hover { background: #1e40af; }
.result {
  display: none;
  background: var(--accent-soft);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 1rem;
}
.result.show { display: block; }
.result .big { font-size: 1.5rem; font-weight: 800; }
.result table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; font-size: 0.95rem; }
.result td { padding: 0.3rem 0; border-bottom: 1px dashed var(--border); }
.result td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.math { font-size: 0.85rem; color: var(--muted); margin-top: 0.75rem; }
.callout {
  background: var(--warn-bg);
  border-left: 4px solid var(--warn);
  padding: 0.75rem 1rem;
  border-radius: 0 8px 8px 0;
  margin: 1rem 0;
  font-size: 0.95rem;
}
table.ref { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 0.75rem 0; }
table.ref th, table.ref td { border: 1px solid var(--border); padding: 0.5rem; text-align: left; }
table.ref th { background: #f9fafb; }
details { border: 1px solid var(--border); border-radius: 8px; padding: 0.75rem 1rem; margin: 0.5rem 0; }
summary { font-weight: 600; cursor: pointer; }
.affiliate-box {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.disclosure { font-size: 0.8rem; color: var(--muted); }
footer.site { border-top: 1px solid var(--border); margin-top: 2.5rem; padding: 1.5rem 0; font-size: 0.85rem; color: var(--muted); }
.tool-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 1.5rem 0; }
.tool-grid a.card { text-decoration: none; color: var(--ink); display: block; margin: 0; }
.tool-grid a.card:hover { border-color: var(--accent); }
.tool-grid h3 { margin: 0 0 0.25rem; font-size: 1.05rem; color: var(--accent); }
.tool-grid p { margin: 0; font-size: 0.92rem; color: var(--muted); }
@media (min-width: 560px) { .tool-grid { grid-template-columns: 1fr 1fr; } }