/* Client-facing pages: services, specialties, locations, guides, pricing, contact, home */

/* ---------- header: burger + actions, menu hides below 1160px ---------- */
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 0.6rem; }
.nav-burger { display: none; width: 44px; height: 44px; padding: 0; background: #fff; border: 1px solid #cbd5e1; border-radius: 2px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-burger span { display: block; width: 20px; height: 2px; background: #0f172a; transition: transform 0.2s, opacity 0.2s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-burger:focus-visible { outline: 2px solid #0369a1; outline-offset: 2px; }
.mobile-menu { background: #fff; border-top: 1px solid #cbd5e1; box-shadow: 0 18px 30px rgba(15, 23, 42, 0.14); max-height: calc(100vh - 70px); overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu .wrap { padding-top: 0.4rem; padding-bottom: 1.2rem; }
.mobile-menu a.mm-top, .mobile-menu summary { display: flex; justify-content: space-between; align-items: center; padding: 0.95rem 0; border-bottom: 1px solid #e2e8f0; color: #0f172a; font-weight: 600; font-size: 1.02rem; text-decoration: none; cursor: pointer; list-style: none; min-height: 48px; box-sizing: border-box; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary::after { content: "+"; font-size: 1.4rem; color: #0369a1; line-height: 1; }
.mobile-menu details[open] summary::after { content: "–"; }
.mm-links { padding: 0.3rem 0 0.6rem 0.9rem; border-bottom: 1px solid #e2e8f0; }
.mm-links a { display: block; padding: 0.7rem 0; color: #334155; text-decoration: none; font-size: 0.97rem; min-height: 44px; box-sizing: border-box; }
.mm-links a:first-child { font-weight: 700; color: #0369a1; }
.mm-cta { display: block; margin-top: 1rem; text-align: center; padding: 1rem; background: linear-gradient(135deg, #0369a1, #1d4ed8); color: #fff; font-weight: 700; text-decoration: none; border-radius: 2px; }
body.menu-open { overflow: hidden; }
@media (max-width: 1160px) {
  .nav-menu { display: none; }
  .nav-row { grid-template-columns: 1fr auto; }
  .nav-burger { display: flex; }
}
@media (min-width: 1161px) { .mobile-menu { display: none !important; } }
@media (max-width: 760px) { .nav-actions .nav-cta { padding: 0.6rem 0.8rem; font-size: 0.82rem; } }
@media (max-width: 430px) { .nav-actions .nav-cta { display: none; } }
@media (min-width: 761px) and (max-width: 1160px) { .nav-row { gap: 1rem; } }

/* ---------- buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.btn-primary, .btn-ghost, .btn-outline { display: inline-block; padding: 0.95rem 1.7rem; font-weight: 700; font-size: 1rem; text-decoration: none; border-radius: 2px; transition: transform 0.15s, background 0.2s, color 0.2s, box-shadow 0.2s; text-align: center; }
.btn-primary { background: linear-gradient(135deg, #0369a1, #1d4ed8); color: #fff; border: 1.5px solid transparent; }
.btn-primary:hover, .btn-primary:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 22px -8px rgba(29, 78, 216, 0.6); }
.btn-ghost { border: 1.5px solid #fff; color: #fff; }
.btn-ghost:hover, .btn-ghost:focus-visible { background: #fff; color: #17327c; }
.btn-outline { border: 1.5px solid #0369a1; color: #0369a1; background: #fff; }
.btn-outline:hover, .btn-outline:focus-visible { background: #0369a1; color: #fff; }
@media (max-width: 560px) { .btn-row .btn-primary, .btn-row .btn-ghost, .btn-row .btn-outline { width: 100%; box-sizing: border-box; } }

/* ---------- hero extras ---------- */
.hero-home .wrap { padding-top: 5.2rem; padding-bottom: 5.2rem; }
.hero-home h1 { max-width: 820px; }
.hero-points { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; }
.hero-points li { position: relative; padding-left: 1.4rem; color: #e0f2fe; font-weight: 500; font-size: 0.98rem; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; background: #38bdf8; }
@media (max-width: 760px) { .hero-home .wrap { padding-top: 2.6rem; padding-bottom: 2.8rem; } .hero-points { gap: 0.5rem 1.2rem; font-size: 0.9rem; } }

/* ---------- section helpers ---------- */
.sec-head { max-width: 760px; margin-bottom: 2.2rem; }
.sec-head h2 { margin-bottom: 0.7rem !important; }
.sec-head .lead { margin-bottom: 0 !important; }
.center-link { margin-top: 2rem; }

/* ---------- cards ---------- */
.card-grid { display: grid; gap: 1rem; }
.card-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.link-card { position: relative; display: block; background: #fff; border: 1px solid #cbd5e1; padding: 1.5rem 1.4rem 1.4rem; text-decoration: none; color: inherit; overflow: hidden; transition: border-color 0.2s, transform 0.25s, box-shadow 0.25s; }
.link-card::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: #0369a1; transition: width 0.35s ease; }
.link-card:hover, .link-card:focus-visible { border-color: #0369a1; transform: translateY(-3px); box-shadow: 0 14px 28px -14px rgba(15, 23, 42, 0.25); }
.link-card:hover::after, .link-card:focus-visible::after { width: 100%; }
.link-card .num { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 2rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.3px #0369a1; letter-spacing: -0.03em; margin-bottom: 0.6rem; }
.link-card h3 { margin: 0 0 0.4rem; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.12rem; letter-spacing: -0.02em; color: #0f172a; line-height: 1.25; }
.link-card p { margin: 0 0 0.8rem; color: #475569; font-size: 0.95rem; line-height: 1.55; }
.link-card .go { color: #0369a1; font-weight: 700; font-size: 0.92rem; }
.link-card .go::after { content: " →"; display: inline-block; transition: transform 0.2s; }
.link-card:hover .go::after { transform: translateX(4px); }
.card-grid.compact .link-card { padding: 1.1rem 1.2rem; }
.card-grid.compact .link-card h3 { font-size: 1.02rem; margin-bottom: 0.25rem; }
.card-grid.compact .link-card p { margin: 0; font-size: 0.9rem; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; }
.metric { background: #fff; border: 1px solid #cbd5e1; border-top: 3px solid #0369a1; padding: 1.2rem 1.2rem 1.3rem; }
.metric dt { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.1rem; color: #0f172a; margin-bottom: 0.3rem; letter-spacing: -0.02em; }
.metric dd { margin: 0; color: #475569; font-size: 0.93rem; line-height: 1.5; }

/* ---------- article layout (service, specialty, state, guide pages) ---------- */
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 3.2rem; align-items: start; padding-top: 3.2rem; padding-bottom: 4rem; }
.prose { max-width: 740px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; color: #0f172a; margin: 2.8rem 0 0.9rem; }
.prose h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.15rem; letter-spacing: -0.02em; color: #0f172a; margin: 1.8rem 0 0.4rem; }
.prose p { color: #334155; font-size: 1.05rem; line-height: 1.75; margin: 0 0 1.1rem; }
.prose p.answer { font-size: 1.2rem; line-height: 1.65; color: #0f172a; font-weight: 500; border-left: 3px solid #0369a1; padding-left: 1.1rem; margin-bottom: 1.6rem; }
.prose ul, .prose ol { margin: 0 0 1.3rem; padding-left: 1.3rem; color: #334155; font-size: 1.05rem; line-height: 1.7; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: #0369a1; }
.prose a { color: #0369a1; font-weight: 600; text-underline-offset: 2px; }
.prose strong { color: #0f172a; }
.prose .faq-grid { margin-top: 1rem; }
.prose .updated { font-family: 'JetBrains Mono', monospace; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: #64748b; margin: 0 0 1.4rem; }
.page-aside { position: sticky; top: 7rem; display: grid; gap: 1rem; }
.aside-card { background: #fff; border: 1px solid #cbd5e1; border-top: 3px solid #0369a1; padding: 1.4rem 1.3rem; }
.aside-card h2, .aside-card h3 { margin: 0 0 0.5rem; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.15rem; letter-spacing: -0.02em; color: #0f172a; }
.aside-card p { margin: 0 0 1rem; color: #475569; font-size: 0.95rem; line-height: 1.55; }
.aside-card .btn-primary { display: block; padding: 0.85rem 1rem; }
.aside-card .mail { display: block; margin-top: 0.8rem; text-align: center; color: #0369a1; font-weight: 600; font-size: 0.93rem; word-break: break-all; }
.aside-card ul { list-style: none; margin: 0; padding: 0; }
.aside-card li { border-top: 1px solid #e2e8f0; }
.aside-card li:first-child { border-top: 0; }
.aside-card li a { display: block; padding: 0.6rem 0; color: #334155; text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.aside-card li a:hover { color: #0369a1; }
.facts { margin: 1.4rem 0 1.8rem; display: grid; grid-template-columns: 170px minmax(0, 1fr); border: 1px solid #cbd5e1; background: #fff; }
.facts dt, .facts dd { padding: 0.8rem 1rem; border-top: 1px solid #e2e8f0; margin: 0; font-size: 0.97rem; line-height: 1.55; }
.facts dt:first-of-type, .facts dd:first-of-type { border-top: 0; }
.facts dt { font-weight: 700; color: #0f172a; background: #f8fafc; }
.facts dd { color: #334155; }
.table-wrap { overflow-x: auto; margin: 1.2rem 0 1.6rem; border: 1px solid #cbd5e1; background: #fff; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 560px; }
.cmp-table th, .cmp-table td { text-align: left; padding: 0.8rem 1rem; border-top: 1px solid #e2e8f0; vertical-align: top; line-height: 1.5; color: #334155; }
.cmp-table thead th { background: #0f1f4d; color: #fff; border-top: 0; font-weight: 600; }
.cmp-table tbody th { background: #f8fafc; color: #0f172a; font-weight: 700; width: 24%; }
.related { margin-top: 2.6rem; }
.related h2 { margin-top: 0 !important; }
@media (max-width: 1000px) {
  .page-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-top: 2rem; }
  .page-aside { position: static; }
  .card-grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .card-grid.c3, .card-grid.c4, .card-grid.c2, .metric-grid { grid-template-columns: 1fr; }
  .prose p { font-size: 1rem; }
  .prose p.answer { font-size: 1.1rem; }
  .facts { grid-template-columns: 1fr; }
  .facts dd { border-top: 0; padding-top: 0; }
}

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: st; }
.steps li { counter-increment: st; position: relative; background: #fff; border: 1px solid #cbd5e1; padding: 1.4rem 1.3rem; }
.steps li::before { content: counter(st, decimal-leading-zero); display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 2.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.3px #0369a1; letter-spacing: -0.03em; margin-bottom: 0.6rem; }
.steps li:last-child::before { -webkit-text-stroke-color: #047857; }
.steps b { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.08rem; color: #0f172a; letter-spacing: -0.02em; margin-bottom: 0.25rem; }
.steps span { color: #475569; font-size: 0.94rem; line-height: 1.55; }
.prose .steps { grid-template-columns: 1fr; gap: 0.7rem; margin-bottom: 1.4rem; }
.prose .steps li { padding: 1rem 1.2rem 1rem 4.6rem; }
.prose .steps li::before { position: absolute; left: 1.1rem; top: 0.8rem; font-size: 1.9rem; margin: 0; }
.prose .steps span { font-size: 0.98rem; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- checklist ---------- */
.check-list { list-style: none; margin: 1.2rem 0 1.6rem; padding: 0; display: grid; gap: 0.55rem; }
.check-list li { position: relative; padding: 0.8rem 1rem 0.8rem 3rem; background: #fff; border: 1px solid #cbd5e1; color: #1e293b; font-size: 0.98rem; line-height: 1.5; margin: 0; }
.check-list li::before { content: "\2713"; position: absolute; left: 1rem; top: 0.78rem; width: 22px; height: 22px; display: grid; place-items: center; background: #047857; color: #fff; font-size: 0.8rem; font-weight: 800; }
.prose .check-list { padding-left: 0; font-size: 0.98rem; }

/* ---------- CTA band ---------- */
.cta-band { background: #0f1f4d; color: #fff; padding: 3rem 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2.5rem; }
.cta-band h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -0.03em; margin: 0 0 0.4rem; color: #fff; }
.cta-band p { margin: 0; color: #dbeafe; max-width: 560px; line-height: 1.6; }
.cta-band .btn-row { margin-top: 0; }

/* ---------- lead form ---------- */
.lead-form { background: #fff; border: 1px solid #cbd5e1; border-top: 3px solid #0369a1; padding: 1.8rem; }
.lead-form h2 { margin: 0 0 0.3rem; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.5rem; letter-spacing: -0.03em; color: #0f172a; }
.lead-form .sub { margin: 0 0 1.3rem; color: #475569; font-size: 0.97rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.lead-form label { display: block; font-weight: 600; font-size: 0.9rem; color: #0f172a; margin-bottom: 0.3rem; }
.lead-form label small { font-weight: 500; color: #64748b; }
.lead-form input, .lead-form select, .lead-form textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 0.8rem 0.9rem; border: 1px solid #94a3b8; border-radius: 2px; background: #fff; color: #0f172a; }
.lead-form textarea { min-height: 110px; resize: vertical; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 2px solid #0369a1; outline-offset: 1px; border-color: #0369a1; }
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form .note { margin: 1rem 0 0; font-size: 0.85rem; color: #64748b; line-height: 1.5; }
.lead-form button[type="submit"] { margin-top: 1.2rem; width: 100%; cursor: pointer; font: inherit; font-weight: 700; font-size: 1.02rem; padding: 1rem; border: 0; border-radius: 2px; color: #fff; background: linear-gradient(135deg, #0369a1, #1d4ed8); }
.lead-form button[disabled] { opacity: 0.7; cursor: wait; }
.form-status { margin-top: 1rem; padding: 0.9rem 1rem; font-size: 0.97rem; line-height: 1.5; display: none; }
.form-status.ok { display: block; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.form-status.err { display: block; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .lead-form { padding: 1.2rem; } }

/* ---------- footer (five columns) ---------- */
.footer-grid-5 { grid-template-columns: 1.5fr 1.2fr 1.2fr 1.1fr 0.9fr; gap: 2.2rem; }
.footer-grid-5 .foot-mail { margin-top: 0.8rem; }
.footer-grid-5 .foot-mail a { color: #38bdf8; font-weight: 600; }
@media (max-width: 1100px) { .footer-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .footer-grid-5 { grid-template-columns: 1fr 1fr; gap: 1.6rem; } .footer-grid-5 > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 460px) { .footer-grid-5 { grid-template-columns: 1fr; } }

/* ---------- dropdown descriptions ---------- */
.dd-rich a small { display: block; }
.dd-panel.dd-wide { width: 660px; }

.page-layout > * { min-width: 0; }

/* ---------- home hero: lighter, with the key points on a slim strip below ---------- */
.hero-home::before { background: linear-gradient(95deg, rgba(10, 25, 74, 0.93) 0%, rgba(15, 40, 112, 0.8) 45%, rgba(23, 50, 124, 0.3) 100%); }
.hero-home .wrap { padding-top: 4.6rem; padding-bottom: 4.6rem; }
.hero-home p { max-width: 520px; }
.trust-strip { background: #fff; border-bottom: 1px solid #cbd5e1; }
.trust-strip ul { list-style: none; margin: 0; padding: 1rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0.5rem 2rem; }
.trust-strip li { position: relative; padding-left: 1.4rem; color: #334155; font-weight: 600; font-size: 0.95rem; }
.trust-strip li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; background: #0369a1; }
@media (max-width: 760px) { .hero-home .wrap { padding-top: 2.4rem; padding-bottom: 2.4rem; } .trust-strip ul { padding: 0.9rem 0; } .trust-strip li { font-size: 0.9rem; } }

/* ---------- FAQ: a real accordion with a visible plus/minus, on every screen size ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6rem; max-width: 860px; align-items: start; }
.faq-grid .faq-item { background: #fff; border: 1px solid #cbd5e1; border-radius: 2px; padding: 0; margin: 0; transition: border-color 0.2s; }
.faq-grid .faq-item[open] { border-color: #0369a1; }
.faq-grid .faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; list-style: none; padding: 0.95rem 1.2rem; min-height: 56px; box-sizing: border-box; transition: background 0.2s; }
.faq-grid .faq-item summary::-webkit-details-marker { display: none; }
.faq-grid .faq-item summary:hover { background: #f8fafc; }
.faq-grid .faq-item summary:focus-visible { outline: 2px solid #0369a1; outline-offset: 2px; }
.faq-grid .faq-item summary h3 { margin: 0; font-size: 1.05rem; line-height: 1.35; letter-spacing: -0.02em; color: #0f172a; }
.faq-grid .faq-item summary::after { content: "+"; flex: none; font-size: 1.6rem; line-height: 1; color: #0369a1; font-weight: 500; transition: transform 0.2s; }
.faq-grid .faq-item[open] summary::after { content: "–"; }
.faq-grid .faq-item p { margin: 0; padding: 0 1.2rem 1.1rem; color: #475569; font-size: 1rem; line-height: 1.65; }
@media (prefers-reduced-motion: no-preference) { .faq-grid .faq-item[open] p { animation: riseIn 0.3s ease backwards; } }

/* ---------- calculator ---------- */
.calc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 2.4rem; align-items: start; }
.calc-form { display: grid; gap: 1.2rem; }
.calc-card { border: 1px solid #cbd5e1; border-top: 3px solid #0369a1; background: #fff; margin: 0; padding: 1.4rem 1.5rem 1.6rem; min-width: 0; }
.calc-card legend { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; color: #0f172a; padding: 0 0.5rem; margin-left: -0.5rem; }
.calc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.2rem; margin-top: 0.8rem; }
.calc-fields .field label { display: block; font-weight: 600; font-size: 0.9rem; color: #0f172a; margin-bottom: 0.3rem; line-height: 1.3; }
.calc-fields .inp { position: relative; }
.calc-fields input { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 0.8rem 3.4rem 0.8rem 0.9rem; border: 1px solid #94a3b8; border-radius: 2px; background: #fff; color: #0f172a; font-variant-numeric: tabular-nums; }
.calc-fields input:focus { outline: 2px solid #0369a1; outline-offset: 1px; border-color: #0369a1; }
.calc-fields .unit { position: absolute; right: 0.8rem; top: 50%; transform: translateY(-50%); font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: #64748b; pointer-events: none; }
.calc-fields .hint { display: block; margin-top: 0.3rem; font-size: 0.8rem; color: #64748b; line-height: 1.4; }
.calc-warn { margin: 0; padding: 0.8rem 1rem; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-size: 0.93rem; }
.calc-results { position: sticky; top: 7rem; background: #0f1f4d; color: #fff; padding: 1.6rem 1.6rem 1.4rem; }
.calc-results h3 { margin: 0 0 1rem; font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #7dd3fc; }
.res-hero { padding: 0.2rem 0 1rem; }
.res-hero .res-label { display: block; font-size: 0.88rem; color: #bfdbfe; margin-bottom: 0.2rem; }
.res-hero strong { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 2.2rem; line-height: 1.1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.res-hero.alt { border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 1.1rem; margin-top: 0.4rem; }
.res-list { margin: 0 0 0.8rem; }
.res-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.93rem; }
.res-list dt { color: #dbeafe; }
.res-list dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.calc-results .btn-primary { display: block; width: 100%; box-sizing: border-box; margin-top: 1rem; background: #fff; color: #0f1f4d; }
.calc-results .btn-primary:hover { background: #e0f2fe; box-shadow: none; }
.res-note { margin: 0.8rem 0 0; font-size: 0.8rem; color: #93c5fd; text-align: center; }
.calc-note { margin: 0 0 1rem; padding: 0.7rem 0.9rem; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; font-size: 0.9rem; }
@media (max-width: 1000px) { .calc-layout { grid-template-columns: minmax(0, 1fr); } .calc-results { position: static; } }
@media (max-width: 560px) { .calc-fields { grid-template-columns: minmax(0, 1fr); } .calc-card { padding: 1.1rem 1rem 1.3rem; } .res-hero strong { font-size: 1.9rem; } }

/* ---------- legal pages ---------- */
.prose .toc-line { font-size: 0.95rem; line-height: 1.9; color: #475569; background: #fff; border: 1px solid #cbd5e1; padding: 0.9rem 1.1rem; }
.prose h2[id] { scroll-margin-top: 7rem; }

/* direct children of <main> must never grow wider than the screen because of a wide table */
main#main > * { min-width: 0; max-width: 100%; }

/* ---------- proof ---------- */
.proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.proof-card { background: #fff; border: 1px solid #cbd5e1; border-top: 3px solid #047857; padding: 1.3rem 1.2rem 1.4rem; }
.proof-card h3 { margin: 0 0 0.45rem; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.05rem; letter-spacing: -0.02em; color: #0f172a; }
.proof-card p { margin: 0; color: #475569; font-size: 0.94rem; line-height: 1.55; }
.proof-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.proof-quote { margin: 0; background: #0f1f4d; color: #fff; padding: 1.5rem 1.4rem; }
.proof-quote blockquote { margin: 0; }
.proof-quote blockquote p { margin: 0 0 0.9rem; font-size: 1.05rem; line-height: 1.55; }
.proof-quote .proof-result { margin: 0 0 0.9rem; font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; color: #7dd3fc; }
.proof-quote figcaption { font-size: 0.88rem; color: #cbd5e1; }
@media (max-width: 1000px) { .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .proof-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- calculator reading ---------- */
.calc-reading { border: 1px solid #cbd5e1; border-left: 4px solid #0369a1; background: #fff; padding: 1.3rem 1.5rem 1.4rem; }
.calc-reading h3 { margin: 0 0 0.7rem; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.15rem; letter-spacing: -0.02em; color: #0f172a; }
.calc-reading ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.8rem; }
.calc-reading li { color: #334155; line-height: 1.6; font-size: 0.97rem; }
.calc-reading li strong { color: #0f172a; }
.calc-reading a { color: #0369a1; font-weight: 600; }
.calc-reading .foot { margin: 0.9rem 0 0; font-size: 0.82rem; color: #64748b; }

/* ---------- living home hero: photos crossfade with a slow zoom ---------- */
.hero-bg { position: absolute; inset: 0; overflow: hidden; background: #0f1f4d; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 35%; opacity: 0; transform: scale(1); transition: opacity 1.4s ease; }
.hero-bg img.is-on { opacity: 1; }
.hero-bg img.is-prev { opacity: 0; transform: scale(1.08); }
.hero-dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 1.1rem; max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; display: flex; gap: 0.5rem; pointer-events: none; }
.hero-dots span { width: 34px; height: 3px; background: rgba(255, 255, 255, 0.3); position: relative; overflow: hidden; }
.hero-dots span.on::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(1); }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes heroFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-bg img.is-on { animation: heroZoom 9s linear forwards; }
  .hero-dots span.on::after { animation: heroFill 6s linear forwards; }
  .hero-home .wrap > * { animation: riseIn 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-home .wrap > :nth-child(2) { animation-delay: 0.12s; }
  .hero-home .wrap > :nth-child(3) { animation-delay: 0.24s; }
}
@media (prefers-reduced-motion: reduce) { .hero-bg img { transition: none; } .hero-dots { display: none; } }

/* ---------- site search, find strip and guided finder ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.nav-search { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-right: 0.5rem; border: 1px solid #94a3b8; color: #0f1f4d; background: #fff; text-decoration: none; flex: 0 0 auto; transition: border-color 0.15s, background 0.15s; }
.nav-search:hover, .nav-search:focus-visible { border-color: #0369a1; background: #f0f9ff; color: #0369a1; outline: none; box-shadow: 0 0 0 2px #bae6fd; }
.nav-actions { display: flex; align-items: center; }
.mm-search { display: flex; gap: 0; margin: 0.4rem 0 0.8rem; }
.mm-search input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 0.7rem 0.8rem; border: 1px solid #94a3b8; border-right: 0; border-radius: 0; background: #fff; }
.mm-search button { font: inherit; font-weight: 700; padding: 0 1rem; border: 1px solid #0f1f4d; background: #0f1f4d; color: #fff; border-radius: 0; cursor: pointer; }
@media (max-width: 420px) { .nav-search { width: 38px; height: 38px; margin-right: 0.35rem; } }

.srch-ov { position: fixed; inset: 0; z-index: 1000; background: rgba(15, 23, 42, 0.55); display: flex; align-items: flex-start; justify-content: center; padding: 8vh 1rem 1rem; }
.srch-ov[hidden] { display: none; }
.srch-lock { overflow: hidden; }
.srch-box { width: 100%; max-width: 640px; background: #fff; border-top: 4px solid #0369a1; box-shadow: 0 24px 60px -20px rgba(15, 23, 42, 0.5); max-height: 80vh; display: flex; flex-direction: column; }
.srch-form { display: flex; border-bottom: 1px solid #e2e8f0; }
.srch-form input { flex: 1; min-width: 0; font: inherit; font-size: 17px; padding: 1.05rem 1.1rem; border: 0; outline: none; background: #fff; color: #0f172a; }
.srch-go { font: inherit; font-weight: 700; padding: 0 1.2rem; border: 0; background: #0f1f4d; color: #fff; cursor: pointer; }
.srch-x { font: inherit; font-size: 1.6rem; line-height: 1; width: 52px; border: 0; background: #f1f5f9; color: #334155; cursor: pointer; }
.srch-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
.srch-list li a { display: flex; align-items: baseline; gap: 0.7rem; padding: 0.8rem 1.1rem; text-decoration: none; color: #0f172a; border-bottom: 1px solid #f1f5f9; }
.srch-list li[aria-selected="true"] a, .srch-list li a:hover, .srch-list li a:focus-visible { background: #eff6ff; outline: none; }
.srch-y { flex: 0 0 auto; min-width: 5.2rem; font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: #0369a1; }
.srch-t { font-weight: 600; }
.srch-t mark, .srch-d mark { background: #fef08a; color: inherit; padding: 0 1px; }
.srch-label, .srch-none, .srch-more { padding: 0.8rem 1.1rem; font-size: 0.85rem; color: #64748b; }
.srch-label { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }
.srch-none a, .srch-more a { color: #0369a1; font-weight: 600; }
.srch-foot { padding: 0.75rem 1.1rem; border-top: 1px solid #e2e8f0; background: #f8fafc; font-size: 0.88rem; }
.srch-foot a { color: #0369a1; font-weight: 600; }

.find-strip { background: #f8fafc; border-bottom: 1px solid #cbd5e1; padding: 2.2rem 0 2rem; }
.find-top { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1.3rem; }
.find-top h2 { margin: 0.2rem 0 0.3rem !important; }
.find-top p { margin: 0; color: #475569; }
.find-search { display: flex; flex: 1 1 380px; max-width: 560px; }
.find-search input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 0.95rem 1rem; border: 1px solid #94a3b8; border-right: 0; border-radius: 0; background: #fff; color: #0f172a; }
.find-search input:focus { outline: 2px solid #0369a1; outline-offset: -1px; }
.find-search button { font: inherit; font-weight: 700; padding: 0 1.4rem; border: 1px solid #0f1f4d; background: #0f1f4d; color: #fff; border-radius: 0; cursor: pointer; }
.find-search button:hover { background: #0369a1; border-color: #0369a1; }
.find-search-lg { max-width: 760px; flex: none; width: 100%; }
.find-search-lg input { font-size: 18px; padding: 1.1rem 1.1rem; }
.find-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; }
.find-tile { display: block; background: #fff; border: 1px solid #cbd5e1; padding: 1rem 1.1rem; text-decoration: none; color: inherit; transition: border-color 0.15s, transform 0.2s, box-shadow 0.2s; }
.find-tile b { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1rem; letter-spacing: -0.015em; color: #0f172a; margin-bottom: 0.2rem; }
.find-tile span { color: #475569; font-size: 0.88rem; line-height: 1.45; }
.find-tile:hover, .find-tile:focus-visible { border-color: #0369a1; transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(15, 23, 42, 0.3); outline: none; }
.find-more { margin: 1.1rem 0 0; }
.find-more a { color: #0369a1; font-weight: 700; }
@media (max-width: 1000px) { .find-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .find-tiles { grid-template-columns: minmax(0, 1fr); } .find-search { flex-basis: 100%; max-width: none; } }

.srch-page { max-width: 860px; }
.srch-count { color: #475569; margin: 1.4rem 0 0.4rem; }
.srch-group { margin-top: 1.6rem; }
.srch-group h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.15rem; margin: 0 0 0.5rem; }
.srch-group h2 span { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: #64748b; margin-left: 0.4rem; }
.srch-group ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid #e2e8f0; }
.srch-group li a { display: block; padding: 0.85rem 0.2rem; border-bottom: 1px solid #e2e8f0; text-decoration: none; color: #0f172a; }
.srch-group li a:hover .srch-t, .srch-group li a:focus-visible .srch-t { color: #0369a1; text-decoration: underline; }
.srch-group .srch-t { display: block; font-size: 1.02rem; }
.srch-d { display: block; margin-top: 0.15rem; color: #475569; font-size: 0.92rem; line-height: 1.5; }
.srch-try { margin: 1.4rem 0 0.5rem; color: #475569; }
.srch-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.srch-chip { font: inherit; font-size: 0.92rem; padding: 0.45rem 0.85rem; border: 1px solid #94a3b8; background: #fff; color: #0f172a; border-radius: 0; cursor: pointer; }
.srch-chip:hover, .srch-chip:focus-visible { border-color: #0369a1; color: #0369a1; outline: none; }
.srch-h2 { margin: 2rem 0 0.9rem !important; font-size: 1.2rem !important; }
.srch-none-page { margin-top: 1.6rem; padding: 1.4rem; border: 1px solid #cbd5e1; background: #f8fafc; }
.srch-none-page h2 { margin-top: 0; }

.fd-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.4rem; align-items: start; }
.finder { min-height: 360px; }
.fd-step { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: #0369a1; margin: 0 0 0.5rem; }
.finder h2 { margin: 0 0 0.6rem !important; outline: none; }
.fd-sub { color: #475569; margin: 0 0 1.2rem; }
.fd-opts { display: grid; gap: 0.7rem; }
.fd-opt { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1rem 1.1rem; border: 1px solid #cbd5e1; background: #fff; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.fd-opt:hover { border-color: #0369a1; background: #f8fbff; }
.fd-opt input { margin-top: 0.3rem; width: 18px; height: 18px; accent-color: #0369a1; flex: 0 0 auto; }
.fd-opt:has(input:checked) { border-color: #0369a1; background: #eff6ff; }
.fd-opt:has(input:focus-visible) { outline: 2px solid #0369a1; outline-offset: 2px; }
.fd-opt b { display: block; font-size: 1.02rem; color: #0f172a; }
.fd-opt small { display: block; color: #475569; font-size: 0.9rem; margin-top: 0.15rem; }
.fd-selects { display: grid; gap: 0.5rem; max-width: 460px; }
.fd-selects label { font-weight: 600; font-size: 0.92rem; margin-top: 0.6rem; }
.fd-selects select { font: inherit; font-size: 16px; padding: 0.8rem 0.9rem; border: 1px solid #94a3b8; border-radius: 0; background: #fff; }
.fd-nav { margin: 1.4rem 0 0; display: flex; gap: 0.8rem; align-items: center; }
.fd-back, .fd-again { font: inherit; font-weight: 600; padding: 0.6rem 1.1rem; border: 1px solid #94a3b8; background: #fff; color: #334155; border-radius: 0; cursor: pointer; }
.fd-go { font: inherit; font-weight: 700; padding: 0.7rem 1.4rem; border: 1px solid #0f1f4d; background: #0f1f4d; color: #fff; border-radius: 0; cursor: pointer; }
.fd-go:hover { background: #0369a1; border-color: #0369a1; }
.fd-h3 { font-family: 'JetBrains Mono', monospace !important; font-size: 0.78rem !important; letter-spacing: 0.12em; text-transform: uppercase; color: #64748b; margin: 1.6rem 0 0.6rem !important; }
.fd-cards { display: grid; gap: 0.7rem; }
.fd-card { position: relative; display: block; padding: 1rem 3rem 1rem 1.1rem; border: 1px solid #cbd5e1; background: #fff; text-decoration: none; color: inherit; transition: border-color 0.15s, transform 0.2s; }
.fd-card b { display: block; color: #0f172a; font-size: 1.02rem; }
.fd-card span { display: block; color: #475569; font-size: 0.9rem; margin-top: 0.15rem; }
.fd-card i { position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); font-style: normal; color: #0369a1; font-size: 1.2rem; }
.fd-card:hover, .fd-card:focus-visible { border-color: #0369a1; transform: translateX(3px); outline: none; }
.fd-links { margin: 0; padding-left: 1.2rem; }
.fd-links li { margin: 0.35rem 0; }
.fd-links a { color: #0369a1; font-weight: 600; }
.fd-cta { margin: 1.6rem 0 0.6rem; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.fd-fine { color: #64748b; font-size: 0.85rem; margin: 0; }
.fd-side { border: 1px solid #cbd5e1; background: #f8fafc; padding: 1.3rem 1.3rem 1.1rem; }
.fd-side h2 { font-size: 1.05rem !important; margin: 0 0 0.4rem !important; }
.fd-side p { margin: 0 0 1rem; font-size: 0.95rem; color: #334155; }
.fd-side a { color: #0369a1; font-weight: 600; }
@media (max-width: 900px) { .fd-wrap { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .find-tile, .fd-card { transition: none; } }
@media (max-width: 520px) { .srch-list li a { flex-direction: column; gap: 0.1rem; } .srch-y { min-width: 0; } .srch-form input { font-size: 16px; padding: 0.95rem 0.9rem; } .srch-go { padding: 0 0.9rem; } .srch-x { width: 46px; } }

.dd-more { display: block; margin-top: 0.4rem; font-weight: 700; color: #0369a1 !important; font-size: 0.9rem; }
.guide-count { color: #64748b; }

/* ---------- chat assistant ---------- */
.chat-launch { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 900; display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.85rem 1.15rem; border: 0; background: #0f1f4d; color: #fff; font: inherit; font-weight: 700; font-size: 0.98rem; cursor: pointer; box-shadow: 0 14px 30px -12px rgba(15, 23, 42, 0.55); border-top: 3px solid #38bdf8; }
.chat-launch:hover, .chat-launch:focus-visible { background: #0369a1; outline: none; box-shadow: 0 0 0 3px #bae6fd, 0 14px 30px -12px rgba(15, 23, 42, 0.55); }
.chat-panel { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 910; width: 390px; max-width: calc(100vw - 2.2rem); height: 570px; max-height: calc(100vh - 2.2rem); background: #fff; display: flex; flex-direction: column; border: 1px solid #94a3b8; border-top: 4px solid #0369a1; box-shadow: 0 26px 60px -18px rgba(15, 23, 42, 0.55); }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 0.85rem 1rem; background: #0f1f4d; color: #fff; }
.chat-head b { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.02rem; }
.chat-head small { color: #7dd3fc; font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; }
.chat-x { border: 0; background: transparent; color: #fff; font-size: 1.7rem; line-height: 1; width: 38px; height: 38px; cursor: pointer; }
.chat-x:hover, .chat-x:focus-visible { background: rgba(255, 255, 255, 0.15); outline: none; }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.7rem; background: #f8fafc; }
.chat-msg { max-width: 88%; display: flex; flex-direction: column; gap: 0.4rem; }
.chat-me { align-self: flex-end; }
.chat-bot { align-self: flex-start; }
.chat-text { padding: 0.7rem 0.9rem; font-size: 0.95rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-me .chat-text { background: #0369a1; color: #fff; }
.chat-bot .chat-text { background: #fff; color: #0f172a; border: 1px solid #cbd5e1; }
.chat-links { display: flex; flex-direction: column; gap: 0.35rem; }
.chat-links a, .chat-offer { display: block; padding: 0.5rem 0.75rem; border: 1px solid #0369a1; background: #fff; color: #0369a1; font: inherit; font-weight: 600; font-size: 0.88rem; text-decoration: none; text-align: left; cursor: pointer; }
.chat-links a:hover, .chat-links a:focus-visible, .chat-offer:hover, .chat-offer:focus-visible { background: #0369a1; color: #fff; outline: none; }
.chat-offer { background: #0f1f4d; border-color: #0f1f4d; color: #fff; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1rem 0.6rem; background: #f8fafc; }
.chat-chips:empty { display: none; }
.chat-chips button { font: inherit; font-size: 0.85rem; padding: 0.4rem 0.7rem; border: 1px solid #94a3b8; background: #fff; color: #0f172a; cursor: pointer; }
.chat-chips button:hover, .chat-chips button:focus-visible { border-color: #0369a1; color: #0369a1; outline: none; }
.chat-form { display: flex; border-top: 1px solid #cbd5e1; }
.chat-form input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 0.85rem 0.9rem; border: 0; outline: none; }
.chat-form input:focus { box-shadow: inset 0 0 0 2px #0369a1; }
.chat-form button { font: inherit; font-weight: 700; padding: 0 1.1rem; border: 0; background: #0f1f4d; color: #fff; cursor: pointer; }
.chat-form button:disabled { opacity: 0.55; cursor: default; }
.chat-fine { margin: 0; padding: 0.45rem 0.9rem 0.6rem; font-size: 0.74rem; color: #64748b; background: #fff; }
.chat-fine a { color: #0369a1; }
.chat-typing .chat-text { display: flex; gap: 4px; padding: 0.85rem 0.9rem; }
.chat-typing span { width: 7px; height: 7px; background: #94a3b8; display: inline-block; }
@media (prefers-reduced-motion: no-preference) { .chat-typing span { animation: chatDot 1s infinite ease-in-out; } .chat-typing span:nth-child(2) { animation-delay: 0.15s; } .chat-typing span:nth-child(3) { animation-delay: 0.3s; } @keyframes chatDot { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } } }
@media (max-width: 520px) { .chat-panel { right: 0; bottom: 0; width: 100vw; max-width: 100vw; height: 86vh; max-height: 100vh; border-left: 0; border-right: 0; } .chat-open .chat-launch { display: none; } .chat-launch span { display: none; } .chat-launch { padding: 0.9rem; } }
@media print { .chat-launch, .chat-panel { display: none !important; } }
.chat-head-r { display: flex; align-items: center; gap: 0.4rem; }
.chat-team { font: inherit; font-size: 0.8rem; font-weight: 600; padding: 0.4rem 0.65rem; border: 1px solid rgba(255, 255, 255, 0.55); background: transparent; color: #fff; cursor: pointer; }
.chat-team:hover, .chat-team:focus-visible { background: rgba(255, 255, 255, 0.18); outline: none; }
.chat-teaser { position: fixed; right: 1.1rem; bottom: 4.6rem; z-index: 899; max-width: 260px; background: #fff; border: 1px solid #94a3b8; border-left: 4px solid #0369a1; box-shadow: 0 16px 34px -14px rgba(15, 23, 42, 0.5); }
.chat-teaser-b { display: block; width: 100%; text-align: left; font: inherit; font-size: 0.92rem; font-weight: 600; line-height: 1.4; padding: 0.8rem 2rem 0.8rem 0.9rem; border: 0; background: transparent; color: #0f172a; cursor: pointer; }
.chat-teaser-b:hover, .chat-teaser-b:focus-visible { color: #0369a1; outline: none; }
.chat-teaser-x { position: absolute; top: 0; right: 0; width: 30px; height: 30px; border: 0; background: transparent; color: #64748b; font-size: 1.3rem; line-height: 1; cursor: pointer; }
@media (prefers-reduced-motion: no-preference) { .chat-teaser { animation: chatTeaser 0.35s ease-out both; } @keyframes chatTeaser { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } } }
@media (max-width: 520px) { .chat-teaser { right: 0.8rem; bottom: 4.4rem; max-width: calc(100vw - 1.6rem); } .chat-team { display: none; } }
@media print { .chat-teaser { display: none !important; } }
.chat-chips { max-height: 7.2rem; overflow-y: auto; }

.chat-form { align-items: stretch; background: #fff; }
.chat-form input, .chat-form input:focus, .chat-form input:focus-visible { outline: none !important; border: 0; border-radius: 0; box-shadow: none; }
.chat-form input:focus, .chat-form input:focus-visible { box-shadow: inset 0 -3px 0 #0369a1; background: #f8fbff; }
.chat-form input::placeholder { color: #64748b; }
.chat-form button { min-width: 84px; }
.chat-fine { padding: 0.4rem 0.9rem 0.55rem; font-size: 0.78rem; }

/* Menu arrow buttons: large enough to tap (at least 28 by 32) and clear of the label link */
.dd-link { display: inline-flex; align-items: center; min-height: 32px; padding-right: 0.15rem; }
.dd-toggle { min-width: 28px; min-height: 32px; justify-content: center; margin-left: 0.2rem; padding: 0 !important; }
.dd-toggle .chev { width: 12px; height: 12px; }
@media (max-width: 900px) { .dd-toggle { min-width: 40px; min-height: 40px; } }

/* Chat: links read as plain text links under the answer, so they are not mistaken for reply buttons */
.chat-text { white-space: pre-line; line-height: 1.5; }
.chat-links { gap: 0.2rem; margin-top: 0.1rem; }
.chat-links a { display: inline-block; padding: 0.15rem 0.1rem; border: 0; background: none; color: #0369a1; font-weight: 600; font-size: 0.9rem; text-decoration: underline; text-underline-offset: 3px; }
.chat-links a::before { content: "\2192\00a0"; text-decoration: none; display: inline-block; }
.chat-links a:hover, .chat-links a:focus-visible { background: none; color: #0f172a; outline: none; }

/* Specialty directory */
.spec-tools { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 0.5rem 1.5rem; align-items: end; margin-bottom: 2rem; padding-bottom: 1.4rem; border-bottom: 1px solid #cbd5e1; }
.spec-tools[hidden] { display: none; }
.spec-tools label { grid-column: 1; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: #0f172a; }
.spec-tools input { grid-column: 1; width: 100%; font: inherit; font-size: 1rem; padding: 0.7rem 0.9rem; border: 1px solid #94a3b8; background: #fff; color: #0f172a; border-radius: 0; }
.spec-tools input:focus { outline: none; border-color: #0369a1; box-shadow: inset 0 -3px 0 #0369a1; }
.spec-chips { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-wrap: wrap; gap: 0.4rem; align-self: end; }
.spec-chips button { font: inherit; font-size: 0.88rem; padding: 0.5rem 0.8rem; border: 1px solid #94a3b8; background: #fff; color: #0f172a; cursor: pointer; border-radius: 0; }
.spec-chips button:hover, .spec-chips button:focus-visible { border-color: #0369a1; color: #0369a1; outline: none; }
.spec-chips button.on { background: #0f1f4d; border-color: #0f1f4d; color: #fff; }
.spec-count { grid-column: 1; margin: 0; color: #475569; font-size: 0.88rem; min-height: 1.2em; }
.spec-group { margin-bottom: 2.4rem; }
.spec-group[hidden], .spec-item[hidden] { display: none; }
.spec-group h2 { display: flex; align-items: center; gap: 0.7rem; margin: 0 0 1rem; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.3rem; letter-spacing: -0.02em; color: #0f172a; }
.spec-group h2 span { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; font-weight: 600; color: #0369a1; border: 1px solid #0369a1; padding: 0.1rem 0.45rem; }
.spec-group h2::after { content: ""; flex: 1; height: 1px; background: #cbd5e1; order: 3; }
.spec-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.spec-item { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 0.1rem 0.8rem; align-items: center; padding: 0.85rem 1rem 0.85rem 1.1rem; background: #fff; border: 1px solid #cbd5e1; text-decoration: none; color: inherit; transition: border-color 0.15s, background 0.15s, padding 0.2s; }
.spec-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #0369a1; transform: scaleY(0); transform-origin: top; transition: transform 0.2s ease; }
.spec-item:hover, .spec-item:focus-visible { border-color: #0369a1; background: #f0f9ff; outline: none; }
.spec-item:hover::before, .spec-item:focus-visible::before { transform: scaleY(1); }
.spec-name { grid-column: 1; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; color: #0f172a; line-height: 1.25; }
.spec-hint { grid-column: 1; color: #64748b; font-size: 0.86rem; line-height: 1.4; }
.spec-go { grid-column: 2; grid-row: 1 / span 2; color: #0369a1; font-weight: 700; transition: transform 0.2s; }
.spec-item:hover .spec-go, .spec-item:focus-visible .spec-go { transform: translateX(4px); }
.spec-none { padding: 1.2rem; border: 1px dashed #94a3b8; color: #334155; }
.spec-none a { color: #0369a1; font-weight: 600; }
@media (max-width: 1000px) { .spec-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .spec-tools { grid-template-columns: 1fr; } .spec-chips { grid-column: 1; grid-row: auto; } }
@media (max-width: 620px) { .spec-list { grid-template-columns: 1fr; } .spec-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.3rem; } .spec-chips button { white-space: nowrap; } }
.content-band .spec-group h2 { font-size: 1.25rem !important; line-height: 1.2; margin: 0 0 0.9rem; letter-spacing: -0.02em; }
.content-band .spec-group h2 span { line-height: 1.3; }
.spec-group { margin-bottom: 2rem; }
.spec-group h2.reveal { opacity: 1 !important; transform: none !important; }
