:root {
  --page: #faf8f5;
  --ink: #262021;
  --ink-2: #6f6567;
  --hairline: #e7e0da;
  --teal: #0d7a6f;
  --raised: #f3efe9;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 24px 20px 40px; }

.site-head { padding: 12px 0 0; }
.wordmark { font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 400; margin: 0; }
.wordmark a { color: var(--ink); text-decoration: none; }
.tagline { color: var(--ink-2); font-size: 14px; margin: 4px 0 0; }

.file-nav { display: flex; flex-wrap: wrap; gap: 20px; border-bottom: 1px solid var(--hairline); margin: 16px 0 8px; }
.file-nav a { padding: 10px 0; color: var(--ink-2); text-decoration: none; }
.file-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
@media (max-width: 600px) { .file-nav a { display: inline-flex; align-items: center; min-height: 44px; } }

.hero { padding: 28px 0 8px; }
.hero h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 42px; line-height: 1.15; margin: 0 0 8px; }
.hero .fact { color: var(--teal); font-weight: 600; margin: 0 0 14px; }
.hero .intro { font-size: 17px; max-width: 600px; }
.hero-photo { margin: 20px 0 0; }
.hero-photo img { width: 100%; border-radius: 16px; display: block; }

.group { padding: 26px 0 4px; }
.group h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 28px; margin: 0 0 14px; }
.group p { margin: 0 0 14px; max-width: 640px; }

.rows { display: flex; flex-direction: column; }
.row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.row:last-child { border-bottom: none; }
.row-num { color: var(--ink-2); min-width: 20px; }
.row-name { font-weight: 600; }
.row-detail { color: var(--ink-2); font-size: 15px; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin: 0 0 16px; }
.facts div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--hairline); padding: 8px 0; }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }

.callout { border-radius: 12px; padding: 14px 16px; margin: 14px 0; font-size: 15px; }
.callout-warning { background: #fdf3e3; }
.callout-note { background: var(--raised); }

.btn { display: inline-block; padding: 12px 20px; min-height: 44px; border-radius: 8px; text-decoration: none; font-weight: 600; border: 1px solid transparent; }
.btn-primary { background: var(--ink); color: var(--page); }
.btn-secondary { border-color: var(--hairline); color: var(--ink); background: transparent; }

.blog-list { display: flex; flex-direction: column; }
.blog-item { display: flex; flex-direction: column; gap: 4px; padding: 6px 0 14px; border-bottom: 1px solid var(--hairline); }
.blog-item:last-child { border-bottom: none; }
.blog-link { display: block; padding: 10px 0; min-height: 44px; font-weight: 600; color: var(--ink); text-decoration: none; }
a.blog-link:hover { text-decoration: underline; }
.blog-link.is-static { color: var(--ink); }
.blog-detail { font-size: 14px; color: var(--ink-2); }

.caption { font-size: 14px; color: var(--ink-2); }

.qa-list { display: flex; flex-direction: column; }
.qa-item { border-bottom: 1px solid var(--hairline); }
.qa-item:last-child { border-bottom: none; }
.qa-q { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 14px 0; min-height: 44px; background: none; border: none; font: inherit; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; }
.qa-toggle { color: var(--ink-2); font-weight: 400; }
.qa-a { margin: 2px 0 14px; padding: 12px 14px; background: var(--raised); border-radius: 12px; }

.field { display: block; margin: 0 0 14px; max-width: 420px; }
.field span { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 4px; }
.field input, .field textarea { width: 100%; padding: 12px 14px; min-height: 44px; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--hairline); border-radius: 8px; }

.calc-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.calc-choice { padding: 10px 14px; min-height: 44px; border: 1px solid var(--hairline); border-radius: 4px; background: none; font: inherit; color: var(--ink); cursor: pointer; }
.calc-choice.is-on { border-color: var(--teal); color: var(--teal); font-weight: 600; }

.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; padding: 0 22px; height: 48px; border: none; border-radius: 24px; background: var(--ink); color: var(--page); font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 6px 20px rgba(37,32,33,.25); }
.chat-panel { position: fixed; right: 16px; bottom: 16px; left: 16px; z-index: 61; max-width: 380px; margin-left: auto; background: var(--page); border-radius: 16px; box-shadow: 0 12px 40px rgba(37,32,33,.3); display: flex; flex-direction: column; max-height: min(70vh, 560px); }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 8px 8px 18px; border-bottom: 1px solid var(--hairline); }
.chat-close { background: none; border: none; font-size: 26px; line-height: 1; padding: 6px 10px; cursor: pointer; color: var(--ink-2); min-height: 44px; }
.chat-body { overflow-y: auto; padding: 4px 18px 18px; }
.chat-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.chat-actions .btn { text-align: center; }

.closing { color: var(--ink-2); font-size: 14px; padding: 30px 0 80px; }

@media (max-width: 600px) {
  .hero h2 { font-size: 32px; }
  .facts { grid-template-columns: 1fr; }
}
