/* June Lu — Home Buying Education
   Palette: white, warm beige, mauve accent, charcoal text */
:root {
  --white: #FFFFFF;
  --bone: #F2ECE4;
  --bone-soft: #F7F2EC;
  --beige: #C7AF96;
  --beige-light: #D9C6B0;
  --line: #E2D9CE;
  --line-soft: #ECE5DC;
  --field-line: #D5C9BA;
  --mauve: #7E5A6B;
  --mauve-dark: #5E3F4E;
  --ink: #1E1A18;
  --text: #2B2B2B;
  --text-warm: #4A3F38;
  --muted: #5F5A55;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --wrap: 1120px;
  --wrap-narrow: 880px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--mauve); }
a:hover { color: var(--mauve-dark); }
:focus-visible { outline: 3px solid var(--mauve); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--white); }

.eyebrow { font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--mauve); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 28px; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 500; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #3A322E; color: var(--white); }
.btn-white { background: var(--white); color: var(--text); }
.btn-white:hover { background: var(--bone); color: var(--text); }
.btn-mauve { background: var(--mauve); color: var(--white); }
.btn-mauve:hover { background: var(--mauve-dark); color: var(--white); }
.btn-outline { border-color: var(--mauve); color: var(--mauve); background: transparent; }
.btn-outline:hover { background: var(--mauve); color: var(--white); }
.btn-outline-ink { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline-ink:hover { background: var(--ink); color: var(--white); }
.btn-sm { min-height: 44px; padding: 10px 22px; font-size: 15px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line-soft); background: var(--white); position: relative; z-index: 20; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
.brand img { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 18px; font-weight: 500; letter-spacing: 0.32em; }
.brand-tag { font-size: 10px; letter-spacing: 0.22em; color: var(--muted); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--text); text-decoration: none; padding: 8px 0; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--mauve); }
.nav-links a[aria-current="page"] { font-weight: 600; }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 0; padding: 0; cursor: pointer; color: var(--text); }

/* Hero */
.hero-section { padding-top: 40px; }
.hero { background: var(--beige); border-radius: var(--radius-xl); padding: 72px 64px 0; display: flex; flex-wrap: wrap; gap: 48px; align-items: stretch; overflow: hidden; }
.hero-text { flex: 999 1 420px; min-width: 0; padding-bottom: 72px; display: flex; flex-direction: column; justify-content: center; }
.hero .eyebrow { color: var(--ink); margin-bottom: 20px; }
.hero h1 { font-size: clamp(40px, 5.2vw, 68px); line-height: 1.04; letter-spacing: -0.025em; }
.hero-lede { margin-top: 24px; max-width: 500px; font-size: 19px; color: var(--text-warm); }
.hero-ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { margin-top: 40px; font-size: 14px; color: var(--text-warm); }
.hero-media { flex: 1 1 360px; position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: 520px; }
.hero-circle { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 380px; height: 380px; border-radius: 50%; background: var(--beige-light); }
.hero-photo { position: relative; width: 100%; max-width: 400px; border-radius: 200px 200px 0 0; object-fit: cover; }
.next-card { position: absolute; left: 0; bottom: 40px; background: var(--white); border-radius: var(--radius-md); padding: 16px 20px; display: flex; gap: 14px; align-items: center; }
.next-card[hidden] { display: none; }
.date-chip { width: 52px; height: 52px; border-radius: 12px; background: var(--mauve); color: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.date-chip .m { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.date-chip .d { font-size: 22px; font-weight: 600; margin-top: 2px; }
.next-card .label { font-size: 12px; color: var(--muted); }
.next-card .title { margin-top: 2px; font-size: 15px; font-weight: 600; }
.next-card a { font-size: 13px; font-weight: 600; text-decoration: none; }

/* Sections */
.section { padding-top: 112px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; }
.section h2 { font-size: 40px; }
.section-sub { margin: 8px 0 28px; font-size: 15px; color: var(--muted); }
.text-link { font-size: 16px; font-weight: 500; text-decoration: none; }

/* Event rows (home) */
.event-list { border-top: 1px solid var(--line); list-style: none; margin: 0; padding: 0; }
.event-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.event-date { width: 96px; flex: none; }
.event-date .m { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.event-date .d { margin-top: 2px; font-size: 34px; font-weight: 600; line-height: 1.2; }
.event-body { flex: 999 1 360px; min-width: 0; }
.tag { display: inline-block; background: var(--bone); color: var(--mauve-dark); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; margin-bottom: 8px; }
.event-title { font-size: 22px; font-weight: 600; color: var(--ink); }
.event-meta { margin-top: 6px; font-size: 16px; color: var(--muted); }
.event-row .btn { flex: none; }
.empty-note { padding: 28px 0; color: var(--muted); font-size: 17px; }

/* Class cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 32px; }
.card { background: var(--beige); border-radius: var(--radius-lg); padding: 40px 32px; display: flex; flex-direction: column; }
.card-num { font-size: 14px; color: var(--ink); font-weight: 600; }
.card h3 { margin: 16px 0 10px; font-size: 24px; }
.card p { margin-bottom: 24px; color: var(--text-warm); }
.card a { margin-top: auto; color: var(--ink); font-weight: 600; }
.card a:hover { color: var(--mauve-dark); }

/* About */
.about { max-width: 760px; padding-bottom: 8px; }
.about h2 { margin-top: 12px; line-height: 1.15; }
.about p.lede { margin-top: 20px; font-size: 18px; line-height: 1.7; color: var(--muted); }
.about .press { margin-top: 20px; font-size: 15px; color: var(--muted); }
.about-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }

/* Signup */
.signup-section { padding-top: 112px; padding-bottom: 96px; }
.callout-section + .signup-section { padding-top: 48px; }
.signup { background: var(--mauve); border-radius: 28px; padding: 64px 56px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; color: var(--white); }
.signup-intro { flex: 1 1 300px; }
.signup h2 { color: var(--white); font-size: 36px; }
.signup-intro p { margin-top: 12px; font-size: 17px; color: var(--bone); }
.signup-form { flex: 999 1 520px; min-width: 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.field { display: block; font-size: 13px; color: var(--bone); }
.field-name { flex: 1 1 140px; }
.field-email { flex: 1 1 200px; }
.field-phone { flex: 1 1 160px; }
.field input { display: block; width: 100%; margin-top: 6px; padding: 14px 18px; min-height: 50px; border: 2px solid transparent; border-radius: 999px; font: inherit; font-size: 16px; background: var(--white); color: var(--text); }
.field input:focus { outline: none; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: #F4C7C3; }
.signup .btn { min-height: 50px; }
.form-consent { flex: 1 1 100%; margin-top: 4px; font-size: 12px; line-height: 1.5; color: var(--bone); }
.form-status { flex: 1 1 100%; font-size: 15px; font-weight: 600; color: var(--white); min-height: 1.5em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Events page */
.page-head { padding-top: 80px; padding-bottom: 32px; }
.page-head h1 { margin-top: 14px; font-size: clamp(36px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.02em; }
.page-head p { margin-top: 18px; font-size: 18px; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.chip { min-height: 44px; background: var(--white); color: var(--text); border: 1px solid var(--field-line); padding: 10px 18px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.chip .count { color: var(--muted); margin-left: 4px; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip[aria-pressed="true"] .count { color: #D9D2C8; }
.month { padding-top: 40px; }
.month h2 { font-size: 22px; margin-bottom: 4px; }
.month ul { list-style: none; margin: 0; padding: 0; }
.ev { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.ev-date { width: 80px; flex: none; text-align: center; background: var(--bone-soft); border-radius: 14px; padding: 10px 0; }
.ev-date .w { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ev-date .d { font-size: 28px; line-height: 1.15; font-weight: 600; color: var(--ink); }
.ev-body { flex: 999 1 320px; min-width: 0; }
.ev-body .tag { margin-bottom: 6px; }
.ev-title { font-size: 19px; font-weight: 600; color: var(--ink); }
.ev-meta { margin-top: 4px; font-size: 15px; color: var(--muted); }
.ev .btn { flex: none; }
.callout-section { padding-top: 72px; }
.callout { background: var(--beige); border-radius: var(--radius-lg); padding: 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.callout div { flex: 999 1 360px; min-width: 0; }
.callout h2 { font-size: 26px; }
.callout p { margin-top: 8px; color: var(--text-warm); }

/* Contact page */
.contact-grid { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-bottom: 96px; }
.contact-info { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.info-card { background: var(--beige); border-radius: var(--radius-lg); padding: 32px; color: var(--ink); }
.info-card h2 { font-size: 22px; }
.appt { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; background: var(--white); color: var(--mauve-dark); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.info-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; color: var(--text-warm); }
.info-list svg { flex: none; margin-top: 2px; }
.info-list a { color: var(--ink); font-weight: 500; }
.info-list a:hover { color: var(--mauve-dark); }
.info-card .btn { margin-top: 24px; }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bone-soft); }
.map iframe { display: block; width: 100%; height: 320px; border: 0; }
.map a { display: block; padding: 14px 18px; font-size: 15px; font-weight: 500; text-decoration: none; border-top: 1px solid var(--line); background: var(--white); }
.contact-form-card { flex: 999 1 480px; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; }
.contact-form-card h2 { font-size: 26px; }
.contact-form-card > p { margin-top: 8px; color: var(--muted); }
.contact-form { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.contact-form .full { grid-column: 1 / -1; }
.cf-field { display: block; font-size: 14px; font-weight: 500; color: var(--text); }
.cf-field .req { color: var(--mauve); }
.cf-field input, .cf-field select, .cf-field textarea { display: block; width: 100%; margin-top: 6px; padding: 13px 16px; min-height: 50px; border: 1px solid var(--field-line); border-radius: 14px; font: inherit; font-size: 16px; background: var(--white); color: var(--text); }
.cf-field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.cf-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232B2B2B' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus { outline: none; border-color: var(--mauve); box-shadow: 0 0 0 3px rgba(126, 90, 107, 0.18); }
.cf-field [aria-invalid="true"] { border-color: #B3261E; }
.cf-check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--muted); }
.cf-check input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--mauve); }
.cf-check input[aria-invalid="true"] { outline: 2px solid #B3261E; outline-offset: 2px; }
.contact-form .btn { justify-self: start; }
.contact-form .form-status { color: var(--mauve-dark); }
@media (max-width: 640px) {
  .contact-form { grid-template-columns: minmax(0, 1fr); }
  .contact-form-card, .info-card { padding: 28px 22px; }
  .contact-form .btn { justify-self: stretch; }
  .map iframe { height: 260px; }
}

/* Calculator */
.calc-grid { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.calc-inputs { flex: 1 1 380px; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; display: grid; gap: 20px; }
.calc-row { display: grid; gap: 6px; min-width: 0; }
.calc-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; align-items: end; }
.calc-two.tight { gap: 10px; }
.calc-label-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cf-field .unit { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.affix { display: flex; align-items: center; min-width: 0; border: 1px solid var(--field-line); border-radius: 14px; background: var(--white); min-height: 50px; padding: 0 14px; }
.affix:focus-within { border-color: var(--mauve); box-shadow: 0 0 0 3px rgba(126, 90, 107, 0.18); }
.affix input { flex: 1; min-width: 0; width: 100%; border: 0; outline: none; font: inherit; font-size: 17px; font-weight: 500; padding: 12px 4px; background: transparent; color: var(--ink); }
.affix .pre, .affix .suf { color: var(--muted); font-size: 16px; }
.sel { width: 100%; min-height: 50px; border: 1px solid var(--field-line); border-radius: 14px; padding: 12px 40px 12px 14px; font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232B2B2B' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; }
.sel:focus { outline: none; border-color: var(--mauve); box-shadow: 0 0 0 3px rgba(126, 90, 107, 0.18); }
.seg { display: inline-flex; border: 1px solid var(--field-line); border-radius: 999px; padding: 3px; background: var(--bone-soft); }
.seg button { min-width: 44px; min-height: 34px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.hint { font-size: 13px; color: var(--muted); min-height: 1.2em; }
.calc-more { border-top: 1px solid var(--line-soft); padding-top: 16px; }
.calc-more summary { cursor: pointer; font-weight: 600; color: var(--ink); margin-bottom: 16px; list-style-position: outside; }
.calc-go { width: 100%; min-height: 54px; font-size: 17px; font-weight: 600; }
.result-card { scroll-margin-top: 16px; outline: none; }
.result-card.flash { animation: calcflash 0.9s ease-out; }
@keyframes calcflash { 0% { box-shadow: 0 0 0 0 rgba(126, 90, 107, 0.55); } 100% { box-shadow: 0 0 0 14px rgba(126, 90, 107, 0); } }
@media (prefers-reduced-motion: reduce) { .result-card.flash { animation: none; } }
.calc-actions { display: flex; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line-soft); padding-top: 20px; }
.calc-reset { color: var(--muted); background: transparent; }
.calc-reset:hover { color: var(--ink); }

.calc-results { flex: 999 1 420px; min-width: 0; display: grid; gap: 20px; }
.result-card { background: var(--beige); border-radius: var(--radius-lg); padding: 36px; color: var(--ink); }
.result-card .label { font-size: 15px; font-weight: 600; color: var(--text-warm); }
.result-card .big { margin-top: 6px; font-size: clamp(44px, 6vw, 64px); line-height: 1.05; font-weight: 600; letter-spacing: -0.02em; }
.result-card .sub { margin-top: 4px; font-size: 14px; color: var(--text-warm); }
.bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; margin: 24px 0 18px; background: rgba(255,255,255,0.5); }
.bar span { display: block; height: 100%; }
.breakdown { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.breakdown li { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; font-size: 15px; color: var(--text-warm); }
.breakdown strong { color: var(--ink); font-weight: 600; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.c-pi { background: #5E3F4E; } .c-tax { background: #8F7A68; } .c-ins { background: #E9DFD3; } .c-pmi { background: #A6798C; } .c-hoa { background: #FFFFFF; }
.c-int { background: #D9C6B0; } .c-bal { background: var(--ink); }
.pmi-note { margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--text-warm); }
.pmi-note:empty { display: none; }
.result-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.stats { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stats div { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px 20px; }
.stats .wide { grid-column: 1 / -1; }
.stats dt { font-size: 13px; color: var(--muted); }
.stats dd { margin: 4px 0 0; font-size: 22px; font-weight: 600; color: var(--ink); }

.calc-chart-section { padding-top: 72px; padding-bottom: 96px; }
.calc-chart-section h2 { font-size: 30px; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend .c-bal { height: 3px; width: 18px; border-radius: 2px; }
.chart-box { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 12px 8px; }
#chart { width: 100%; height: auto; display: block; }
#chart .grid { stroke: var(--line-soft); stroke-width: 1; }
#chart .ax { font-size: 12px; fill: var(--muted); font-family: var(--font); }
#chart .b-pr { fill: #5E3F4E; }
#chart .b-in { fill: #D9C6B0; }
#chart .bal { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.amort { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.amort summary { cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--ink); }
.table-wrap { overflow-x: auto; padding: 0 12px 12px; }
.amort table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.amort th, .amort td { text-align: right; padding: 10px 12px; border-top: 1px solid var(--line-soft); white-space: nowrap; }
.amort th:first-child { text-align: left; }
.amort thead th { font-size: 12px; font-weight: 600; color: var(--muted); border-top: 0; }
.amort tbody th { font-weight: 600; color: var(--ink); }
.calc-disclaimer { margin-top: 24px; font-size: 12px; line-height: 1.6; color: var(--muted); max-width: 820px; }
@media (max-width: 640px) {
  .calc-inputs, .result-card { padding: 24px 20px; }
  .result-ctas .btn { flex: 1 1 100%; }
  .stats dd { font-size: 19px; }
}
@media print {
  .site-header, .site-footer .footer-top, .calc-go, .calc-actions, .result-ctas, .skip-link, .calc-more summary { display: none !important; }
  .calc-more { display: block; }
  .amort { border: 0; } .amort summary { display: none; } .amort .table-wrap { display: block; }
  .result-card { background: #F2ECE4 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .bar span, .dot, #chart rect { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .calc-chart-section { padding-top: 24px; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); font-size: 13px; line-height: 1.7; color: var(--muted); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 48px 0 28px; }
.footer-top img { height: 120px; width: auto; }
.footer-contact a { color: var(--muted); }
.footer-contact a:hover { color: var(--mauve); }
.footer-legal { border-top: 1px solid var(--line); padding: 24px 0 56px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.ehl { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 72px; color: var(--text); }
.ehl img { width: 48px; height: 48px; }
.ehl span { font-size: 9px; line-height: 1.2; font-weight: 700; letter-spacing: 0.04em; text-align: center; }
.footer-legal p { flex: 999 1 480px; min-width: 0; font-size: 12px; }
.footer-legal a { color: var(--muted); }

/* Mobile */
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .nav { flex-wrap: wrap; }
  .nav-links { display: none; flex: 1 1 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 12px; }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 4px; border-top: 1px solid var(--line-soft); font-size: 17px; }
  .nav-links .btn { margin-top: 12px; }
}
@media (max-width: 640px) {
  .hero { padding: 40px 24px 0; gap: 28px; border-radius: var(--radius-lg); }
  .hero-text { padding-bottom: 0; }
  .hero-media { min-height: 0; flex: 1 1 100%; }
  .hero-photo { width: 280px; }
  .hero-circle { width: 300px; height: 300px; }
  .next-card { left: -8px; bottom: 24px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .section { padding-top: 80px; }
  .section h2 { font-size: 32px; }
  .event-row .btn, .ev .btn { flex: 1 1 100%; }
  .signup { padding: 40px 24px; }
  .signup .btn { flex: 1 1 100%; }
  .page-head { padding-top: 48px; padding-bottom: 24px; }
  .ev-date { width: 64px; }
  .ev, .event-row { gap: 16px; }
  .ev-body, .event-body { flex: 1 1 0; }
  .event-date { width: 56px; }
  .event-date .d { font-size: 28px; }
  .event-title { font-size: 19px; }
  .callout { padding: 32px 24px; }
}
