/* ============================================================
   Isaac Roth Solar — Guide and location page styles
   Loaded only by /guides/* and the city pages. The marketing
   pages (index, services, about) don't need it.

   Prose rules mirror the .legal block in privacy.html/terms.html
   rather than sharing it, because those are scoped inline to
   keep legal typography off the marketing pages. If you change
   one, consider whether the other should follow.
   ============================================================ */

.prose { max-width: 72ch; }

.prose h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--stone-900);
  margin: 56px 0 16px;
  padding-top: 28px;
  border-top: 1px solid var(--cream-200);
}
.prose h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }

.prose h3 {
  font-family: 'Archivo', 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  color: var(--stone-700);
  margin: 30px 0 10px;
}

.prose p, .prose li {
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--stone-600);
}
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 9px; }
.prose li::marker { color: var(--moss-400); }
.prose a { color: var(--link); text-underline-offset: 2px; }
.prose a:hover { color: var(--link-hover); }
.prose strong { color: var(--stone-700); font-weight: 600; }

/* Pull-out for the one thing on the page a reader must not miss. */
.prose-callout {
  background: var(--cream-100);
  border-left: 3px solid var(--sun-400);
  border-radius: 4px;
  padding: 20px 24px;
  margin: 0 0 24px;
}
.prose-callout p:last-child { margin-bottom: 0; }

/* Same shape, warmer stripe — for deadlines and things that expire. */
.prose-callout.urgent { border-left-color: var(--clay-400); }

.prose-meta {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone-400);
  margin-bottom: 40px;
}

/* Tables carry their own scroll container: the page body must never
   scroll sideways on a phone. */
.prose-table-wrap { overflow-x: auto; margin: 0 0 22px; }
.prose table {
  border-collapse: collapse;
  width: 100%;
  min-width: 460px;
  font-size: 15.5px;
}
.prose th, .prose td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--cream-200);
  color: var(--stone-600);
  line-height: 1.5;
}
.prose th {
  font-family: var(--font-sans);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone-700);
  border-bottom: 1.5px solid var(--cream-300);
  white-space: nowrap;
}
.prose tbody tr:last-child td { border-bottom: 0; }

/* "Keep reading" block at the foot of every guide. This is the site's
   internal linking: every guide points at its neighbours and at a city
   page, so no page is a dead end. */
.related {
  border-top: 1px solid var(--cream-200);
  margin-top: 56px;
  padding-top: 26px;
}
.related h2 {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-400);
  margin: 0 0 16px;
  border: 0;
  padding: 0;
}
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { margin-bottom: 11px; }
.related a {
  color: var(--moss-500);
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
}
.related a:hover { color: var(--moss-700); text-decoration: underline; }

/* Index of guides on /guides/ and the city list. */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
  margin-top: 30px;
}
.card {
  background: var(--cream-50);
  border: 1px solid var(--cream-200);
  border-radius: 12px;
  padding: 24px 26px;
}
.card h3 {
  font-family: 'Archivo', 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 9px;
}
.card h3 a { color: var(--stone-900); text-decoration: none; }
.card h3 a:hover { color: var(--moss-500); }
.card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--stone-600);
  margin: 0;
}
