/* condo.insure — guide pages
 *
 * Standalone stylesheet for the STATIC HTML reference pages under /guides/.
 * These pages are intentionally plain HTML with no JavaScript so that crawlers
 * which don't execute JS (most LLM crawlers) can read them in full.
 *
 * Tokens mirror frontend/BRANDING.md. This file does NOT reuse landing.css —
 * that sheet is scoped under `.lp` and its `.reveal` elements are opacity:0
 * until an IntersectionObserver adds `.in`, which would render these pages
 * blank without JS. Keep this sheet self-contained.
 */

:root {
  --navy: #001842;
  --navy-mid: #06245C;
  --blue: #014AC5;
  --green: #0E8E68;
  --green-bg: #E2F4EC;
  --amber: #946410;
  --amber-bg: #FAEDD2;
  --coral: #C0492F;
  --coral-bg: #F9E1DA;
  --ink: #0B1B33;
  --muted: #54627A;
  --muted-2: #8493A8;
  --line: #E8ECF2;
  --line-2: #DCE3EC;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
}

/* ---------- header / footer ---------- */

.g-nav {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.g-nav-in {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.g-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.g-logo img { height: 30px; width: auto; display: block; }
.g-logo span {
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.g-logo span i { font-style: normal; color: var(--blue); }
.g-nav-cta {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

.g-foot {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding: 36px 24px 56px;
  color: var(--muted);
  font-size: 14px;
}
.g-foot-in { max-width: 1080px; margin: 0 auto; }
.g-foot a { color: var(--muted); }

/* ---------- layout ---------- */

.g-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 56px;
  align-items: start;
}

.g-main { min-width: 0; padding-top: 40px; }

.g-toc {
  position: sticky;
  top: 28px;
  padding-top: 48px;
  font-size: 14px;
}
.g-toc h2 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  margin: 0 0 12px;
}
.g-toc ol { list-style: none; margin: 0; padding: 0; }
.g-toc li { margin: 0 0 9px; }
.g-toc a {
  color: var(--muted);
  text-decoration: none;
  line-height: 1.4;
  display: block;
}
.g-toc a:hover { color: var(--blue); }

@media (max-width: 900px) {
  .g-wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .g-toc { position: static; padding-top: 0; margin-bottom: 32px; }
}

/* ---------- typography ---------- */

.g-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin: 0 0 14px;
}

h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 18px;
}

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 48px 0 14px;
  scroll-margin-top: 24px;
}

h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  color: var(--navy);
  margin: 30px 0 10px;
  scroll-margin-top: 24px;
}

p { margin: 0 0 18px; }

a { color: var(--blue); }
a:hover { text-decoration: underline; }

ul, ol { margin: 0 0 18px; padding-left: 22px; }
li { margin: 0 0 9px; }

strong { font-weight: 700; color: var(--navy); }

/* The lede — the direct answer to the page's question. Answer-engine surfaces
 * lift this block, so keep it to 40–60 words and self-contained. */
.g-lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  border-left: 3px solid var(--blue);
  padding: 2px 0 2px 20px;
  margin: 0 0 28px;
}

.g-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
  margin: 0 0 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

/* ---------- answer block (AEO) ----------
 * A short, quotable, self-contained answer directly under a question heading. */
.g-answer {
  background: #F7F9FC;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 0 0 22px;
}
.g-answer p:last-child { margin-bottom: 0; }
.g-answer .lab {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  display: block;
  margin-bottom: 8px;
}

/* ---------- callouts ---------- */

.g-note,
.g-warn {
  border-radius: 10px;
  padding: 16px 20px;
  margin: 0 0 24px;
  font-size: 16px;
}
.g-note {
  background: var(--green-bg);
  border: 1px solid #BFE5D5;
}
.g-warn {
  background: var(--amber-bg);
  border: 1px solid #EBD6A6;
}
.g-note p:last-child,
.g-warn p:last-child { margin-bottom: 0; }
.g-note .lab,
.g-warn .lab {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  display: block;
  margin-bottom: 7px;
}
.g-note .lab { color: var(--green); }
.g-warn .lab { color: var(--amber); }

/* ---------- statistics ---------- */

.g-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 0 0 28px;
}
.g-stat {
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 16px 18px;
}
.g-stat .n {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
  color: var(--navy);
  display: block;
  margin-bottom: 6px;
}
.g-stat .l {
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  display: block;
}
.g-stat .src {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted-2);
  display: block;
  margin-top: 9px;
}
.g-stat .src a { color: var(--muted-2); }

/* ---------- tables ---------- */

.g-table-wrap { overflow-x: auto; margin: 0 0 26px; }
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  min-width: 480px;
}
caption {
  caption-side: top;
  text-align: left;
  font-size: 14px;
  color: var(--muted);
  padding-bottom: 10px;
}
th, td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: none; }

/* ---------- definitions ---------- */

dl { margin: 0 0 26px; }
dt {
  font-family: var(--display);
  font-weight: 700;
  color: var(--navy);
  margin: 18px 0 5px;
}
dd { margin: 0 0 10px; }

/* ---------- citations ---------- */

.g-cite {
  font-size: 13.5px;
  color: var(--muted);
  vertical-align: super;
  line-height: 0;
  text-decoration: none;
  padding: 0 1px;
}

.g-sources {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.g-sources h2 { font-size: 20px; margin-top: 0; }
.g-sources ol { font-size: 14.5px; color: var(--muted); }
.g-sources li { margin-bottom: 12px; }

/* ---------- buttons / CTA ---------- */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 18px;
  border-radius: 9px;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #0A2A63; }
.btn-ghost { color: var(--navy); border-color: var(--line-2); background: #fff; }
.btn-ghost:hover { border-color: var(--muted-2); }

.g-cta {
  margin-top: 56px;
  border-radius: 14px;
  padding: 32px;
  background: linear-gradient(150deg, #001842 0%, #06245C 62%, #014AC5 150%);
  color: #fff;
}
.g-cta h2 {
  color: #fff;
  margin: 0 0 10px;
  font-size: 24px;
}
.g-cta p {
  color: #C9D6EA;
  margin: 0 0 20px;
  font-size: 16px;
}
.g-cta .btn-primary { background: #fff; color: var(--navy); }
.g-cta .btn-primary:hover { background: #E8ECF2; }
.g-cta .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.g-cta .btn-ghost:hover { border-color: rgba(255, 255, 255, 0.6); }

/* ---------- related ---------- */

.g-related { margin-top: 52px; }
.g-related h2 { font-size: 20px; }
.g-related ul { list-style: none; padding: 0; }
.g-related li { margin-bottom: 10px; }

@media print {
  .g-nav-cta, .g-cta, .g-toc { display: none; }
}
