/* White Harbor Labs shared tool stylesheet — mobile-first, v1 2026-10-06.
   Tools link this as ../shared/whl.css. Keep per-tool overrides minimal. */
:root {
  --spruce: #1e2a24;
  --spruce-deep: #14201a;
  --cream: #faf7f0;
  --paper: #ffffff;
  --terra: #c96f4a;
  --terra-dark: #a8562f;
  --sage: #5a6b62;
  --line: #e5ddcb;
  --ink: #1e2a24;
  --muted: #6b7a70;
  --ok: #2e7d4f;
  --warn: #b7791f;
  --err: #b3402e;
  --radius: 0.9rem;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  padding: 0 1rem 3rem;
}
.whl-wrap { max-width: 44rem; margin: 0 auto; }

/* Header */
.whl-head {
  background: var(--spruce);
  color: var(--cream);
  margin: 0 -1rem 1.75rem;
  padding: 2rem 1.25rem 1.75rem;
}
.whl-head .whl-kicker {
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #cdbfa5; margin-bottom: 0.5rem;
}
.whl-head h1 {
  font-family: var(--font-display);
  font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.whl-head p { color: #d8cfba; font-size: 0.98rem; max-width: 34rem; }
.whl-head a { color: #f0e6d2; }

/* Calculator card */
.whl-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 10px rgba(30, 42, 36, 0.05);
}
.whl-card h2 {
  font-family: var(--font-display);
  font-size: 1.15rem; margin-bottom: 0.9rem;
}
.whl-field { margin-bottom: 0.9rem; }
.whl-field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; }
.whl-field .whl-hint { font-size: 0.82rem; color: var(--muted); margin-top: 0.2rem; }
.whl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
input[type="number"], input[type="text"], select {
  width: 100%; font-size: 1rem; padding: 0.65rem 0.75rem;
  border: 1.5px solid var(--line); border-radius: 0.55rem;
  background: #fff; color: var(--ink); font-family: var(--font-body);
}
input:focus, select:focus { outline: 2px solid var(--terra); border-color: var(--terra); }
.whl-check { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.45rem 0; font-size: 0.95rem; }
.whl-check input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; accent-color: var(--terra); flex: none; }
.whl-btn {
  display: block; width: 100%;
  background: var(--terra); color: #fff; border: none;
  font-size: 1.05rem; font-weight: 700; font-family: var(--font-body);
  padding: 0.85rem; border-radius: 0.65rem; cursor: pointer;
  margin-top: 0.4rem;
}
.whl-btn:hover { background: var(--terra-dark); }
.whl-btn:active { transform: translateY(1px); }
.whl-error {
  display: none; background: #fbeeea; color: var(--err);
  border: 1px solid #f0c9bd; border-radius: 0.55rem;
  padding: 0.7rem 0.9rem; margin-bottom: 0.9rem; font-size: 0.92rem;
}
.whl-error.show { display: block; }

/* Results */
.whl-results { display: none; }
.whl-results.show { display: block; }
.whl-answer {
  background: var(--spruce); color: var(--cream);
  border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem;
}
.whl-answer .whl-kicker { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: #cdbfa5; }
.whl-answer .whl-big { font-family: var(--font-display); font-size: 2rem; margin: 0.3rem 0; }
.whl-answer .whl-sub { color: #d8cfba; font-size: 0.95rem; }
.whl-detail { width: 100%; border-collapse: collapse; font-size: 0.93rem; margin: 0.6rem 0; }
.whl-detail th, .whl-detail td { text-align: left; padding: 0.5rem 0.4rem; border-bottom: 1px solid var(--line); }
.whl-detail th { color: var(--muted); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
.whl-note {
  background: #f4efe2; border-left: 4px solid var(--terra);
  padding: 0.8rem 1rem; border-radius: 0 0.5rem 0.5rem 0;
  font-size: 0.9rem; margin: 0.9rem 0; color: #4a4436;
}
.whl-disclaimer {
  background: #fdf6ec; border: 1px solid #ecd9ac; color: #6b5518;
  border-radius: 0.55rem; padding: 0.8rem 1rem; font-size: 0.87rem; margin: 0.9rem 0;
}

/* Explainer + FAQ */
.whl-section { margin: 2rem 0 1rem; }
.whl-section h2 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 0.7rem; }
.whl-section h3 { font-size: 1rem; margin: 1rem 0 0.35rem; }
.whl-section p, .whl-section li { font-size: 0.95rem; color: #37423b; }
.whl-section ul, .whl-section ol { padding-left: 1.3rem; margin: 0.4rem 0; }
.whl-faq details {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 0.6rem; margin-bottom: 0.6rem; padding: 0.8rem 1rem;
}
.whl-faq summary { font-weight: 650; cursor: pointer; font-size: 0.96rem; }
.whl-faq details p { margin-top: 0.5rem; font-size: 0.93rem; color: #37423b; }

/* Footer */
.whl-foot { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
.whl-foot a { color: var(--sage); }

/* Print */
@media print {
  body { background: #fff; padding: 0; }
  .whl-head { margin: 0 0 1rem; }
  .whl-card.whl-input-card, .whl-btn, .whl-foot { display: none; }
  .whl-results { display: block !important; }
}

/* Desktop lift */
@media (min-width: 48rem) {
  .whl-head h1 { font-size: 2.2rem; }
  .whl-card { padding: 1.6rem; }
}
