/* Mogul Directory — Water Heater Quote Checker */
:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --line: #e2ddd4;
  --accent: #0b5f4b;
  --accent-soft: #e6f2ee;
  --warn: #8a3b12;
  --warn-soft: #f8ebe3;
  --stub: #f0eee9;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(26, 26, 26, 0.06);
  --max: 720px;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.1rem 3rem;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 0.85rem 1.1rem;
}

.site-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

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

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

.tagline {
  color: var(--muted);
  font-size: 0.9rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: clamp(1.55rem, 4.5vw, 2.05rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.lede {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.meta strong { color: var(--ink); font-weight: 600; }

nav.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

nav.toc h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-weight: 600;
}

nav.toc ol {
  margin: 0;
  padding-left: 1.2rem;
}

nav.toc li { margin: 0.25rem 0; }
nav.toc a { text-decoration: none; }
nav.toc a:hover { text-decoration: underline; }

section {
  margin-bottom: 2.5rem;
}

h2 {
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

h3 {
  font-size: 1.1rem;
  margin: 1.4rem 0 0.5rem;
}

p { margin: 0 0 0.9rem; }

.note {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  color: var(--ink);
  margin: 1rem 0;
}

.warn-box {
  background: var(--warn-soft);
  border-left: 3px solid var(--warn);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1rem 0;
}

.warn-box strong { color: var(--warn); }

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  margin: 1rem 0 0.5rem;
}

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

th, td {
  text-align: left;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: #f3f0ea;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  white-space: nowrap;
}

tr:last-child td { border-bottom: none; }

td.price {
  font-family: var(--mono);
  font-weight: 600;
  white-space: nowrap;
}

td.source a {
  font-size: 0.85rem;
  word-break: break-word;
}

.caption {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}

ul.check, ul.flags {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
}

ul.check li, ul.flags li {
  position: relative;
  padding: 0.55rem 0.75rem 0.55rem 2.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.45rem;
  box-shadow: var(--shadow);
}

ul.check li::before {
  content: "✓";
  position: absolute;
  left: 0.75rem;
  color: var(--accent);
  font-weight: 700;
}

ul.flags li::before {
  content: "!";
  position: absolute;
  left: 0.85rem;
  color: var(--warn);
  font-weight: 700;
}

.compare {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .compare { grid-template-columns: 1fr 1fr; }
}

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

.card h3 { margin-top: 0; }

.metro {
  background: var(--stub);
  border: 1px dashed #c9c3b6;
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 0.85rem;
}

.metro h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.metro .stub-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0.65rem 0.75rem 0.65rem 2.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.45rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0.7rem;
  top: 0.65rem;
  width: 1.4rem;
  height: 1.4rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 1.5rem 1.1rem 2.5rem;
  margin-top: 1rem;
}

.site-footer .inner {
  max-width: var(--max);
  margin: 0 auto;
  font-size: 0.88rem;
  color: var(--muted);
}

.site-footer strong { color: var(--ink); }

.disclosure {
  background: #f3f0ea;
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 480px) {
  body { font-size: 1rem; }
  th, td { padding: 0.55rem 0.5rem; }
}
