/* Nerdi modern shared design. Loaded after the retained functional styles. */
:root {
  --ink: #102b42;
  --ink-2: #17374e;
  --ink-3: #21465e;
  --cyan: #10badd;
  --blue: #087d96;
  --cyan-soft: #e5f7fb;
  --paper: #fff;
  --white: #fff;
  --slate: #536574;
  --line: #dce6ec;
  --shadow-sm: 0 8px 24px rgb(16 43 66 / 5%);
  --shadow-lg: 0 20px 48px rgb(16 43 66 / 10%);
  --radius: 14px;
  --radius-lg: 20px;
  --shell: 1280px;
  --header: 84px;
}
body { background: #fff; color: var(--ink); font-size: 1rem; line-height: 1.7; }
.shell { width: min(var(--shell), calc(100% - 80px)); }
:is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #087d96; outline-offset: 4px; }
.eyebrow { font-size: .875rem; font-weight: 750; letter-spacing: .1em; color: #087d96; }
.eyebrow::before { display: none; }
.button { min-height: 52px; padding-inline: 24px; border-radius: 10px; font-size: 1rem; font-weight: 750; box-shadow: none; }
.button:hover { transform: none; box-shadow: none; }
.button.button-primary, .button.button-dark { color: #fff; background: var(--ink); border-color: var(--ink); box-shadow: none; }
.button.button-primary:hover, .button.button-dark:hover { color: #fff; background: #234b64; border-color: #234b64; box-shadow: none; }
.button.button-secondary { color: var(--ink); background: #fff; border-color: #bcced9; }
.button.button-secondary:hover { color: var(--ink); background: var(--cyan-soft); border-color: #83b9c8; }
.button.button-email-security { color: var(--ink); background: #fff; border: 1px solid #8eafbf; box-shadow: none; }
.button.button-email-security:hover { color: var(--ink); background: #edf8fc; border-color: #087d96; box-shadow: none; }

/* A quiet location strip and a clear, single-row primary navigation. */
.nerdi-utility { color: #436174; background: #edf8fc; border-bottom: 1px solid #dcebf0; font-size: .875rem; }
.nerdi-utility .shell, .site-header .shell, .site-footer .shell { width: min(var(--shell), calc(100% - 80px)); }
.nerdi-utility-inner { min-height: 38px; padding-block: 6px; gap: 20px; justify-content: space-between; }
.nerdi-utility-inner > span { display: inline; }
.nerdi-utility-inner > div { gap: 24px; }
.nerdi-utility-inner a { color: #294f65; font-weight: 700; text-decoration: none; }
.nerdi-utility-inner a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-header { height: var(--header); color: var(--ink); background: #fff; border-bottom: 1px solid #e6edf1; backdrop-filter: none; }
.site-header .header-inner { height: var(--header); gap: 24px; }
.site-header .brand { display: flex; align-items: center; flex: 0 0 auto; }
.site-header .brand img { width: 155px; height: 45px; object-fit: contain; }
.site-header .nav-link { color: #344f62; font-size: .9375rem; font-weight: 650; padding: 12px 13px; }
.site-header .nav-link:hover, .site-header .nav-link:focus-visible, .site-header .nav-link[aria-current="page"] { color: var(--ink); background: #edf8fc; }
.site-header .header-actions { gap: 14px; }
.site-header .header-cta-group { display: flex; align-items: center; gap: 12px; width: auto; }
.site-header .header-cta-group .button { min-height: 46px; padding-inline: 18px; border-radius: 10px; font-size: .875rem; font-weight: 750; }
.site-header .header-cta-group .button-primary, .site-header .mobile-cta-group .button-primary { color: #fff; background: var(--ink); border-color: var(--ink); }
.site-header .header-cta-group .button-primary:hover, .site-header .mobile-cta-group .button-primary:hover { color: #fff; background: #234b64; border-color: #234b64; }
.site-header .header-cta-group .email-security-header { color: var(--ink); background: #fff; border: 1px solid #8eafbf; }
.site-header .header-cta-group .email-security-header:hover { color: var(--ink); background: #edf8fc; border-color: #087d96; }
.site-header :is(a, button):focus-visible { outline-color: #087d96; }
.site-header .services-menu { width: 700px; max-width: calc(100vw - 48px); padding: 16px; border-color: #dce6ec; border-radius: 14px; box-shadow: var(--shadow-lg); }
.site-header .services-menu::before { border-color: #dce6ec; }
.site-header .services-menu a { padding: 14px 12px; border-radius: 10px; }
.site-header .services-menu .menu-title { font-size: 1rem; line-height: 1.4; }
.site-header .services-menu small { font-size: .875rem; color: var(--slate); line-height: 1.55; }
.site-header .menu-icon { color: #087d96; background: #edf8fc; border-radius: 10px; }
.site-header .services-menu-all { font-size: .9375rem; color: #087d96; border-color: #e1e9ee; }
.site-header .menu-toggle { width: 44px; height: 44px; padding: 10px; border-radius: 10px; border-color: #c8d8e1; background: #fff; }
.site-header .menu-toggle span { background: var(--ink); }
.site-header .mobile-menu { color: var(--ink); background: #fff; border-top: 1px solid #e3edf2; }
.site-header .mobile-menu-inner { padding-top: 24px; }
.site-header .mobile-label { color: #536574; font-size: .875rem; letter-spacing: .08em; }
.site-header .mobile-service-grid a { background: #f6fafc; border-color: #e0eaf0; border-radius: 10px; color: var(--ink); font-size: 1rem; line-height: 1.45; }
.site-header .mobile-service-grid svg { color: #087d96; }
.site-header .mobile-links { border-color: #dce6ec; }
.site-header .mobile-links a { border-color: #e6edf1; color: #344f62; font-size: 1rem; }
.site-header .mobile-links a:hover, .site-header .mobile-service-grid a:hover { color: #087d96; }
.site-header .mobile-cta-group .button { min-height: 50px; border-radius: 10px; font-size: .9375rem; }
.site-header .mobile-cta-group .button-help { color: var(--ink); background: #fff; border-color: #a9c3d0; box-shadow: none; }
.site-header .mobile-cta-group .button-help:hover { color: var(--ink); background: #edf8fc; border-color: #087d96; box-shadow: none; }

/* The same light, generous treatment carries through the service pages. */
.hero.service-hero, .hero.page-hero { color: var(--ink); background: #f5fafc; border-bottom: 1px solid #e4edf2; }
.hero.service-hero::before, .hero.service-hero::after, .hero.page-hero::before, .hero.page-hero::after { display: none; }
.service-hero { padding: 36px 0 78px; }
.service-hero-layout { gap: 64px; }
.service-hero h1, .page-hero h1 { color: var(--ink); font-size: clamp(2.75rem, 4.5vw, 4.65rem); font-weight: 750; line-height: 1.08; letter-spacing: -.055em; text-wrap: balance; }
.service-hero h1 em, .page-hero h1 span { color: #087d96; }
.service-hero .service-hero-copy > p, .page-hero .narrow > p { color: var(--slate); font-size: 1.125rem; line-height: 1.8; }
.service-hero .service-hero-copy > p.service-hero-note { color: #536574; font-size: .9375rem; }
.service-hero .eyebrow-light, .page-hero .eyebrow-light { color: #087d96; }
.service-hero-icon { width: 54px; height: 54px; color: #087d96; border: 1px solid #c5e3ec; background: #e5f7fb; border-radius: 14px; }
.hero .breadcrumb { color: #536574; font-size: .875rem; font-weight: 600; }
.hero .breadcrumb span { color: #536574; }
.hero .breadcrumb a { color: #28516a; }
.hero .breadcrumb a:hover { color: #087d96; }
.page-hero { min-height: 370px; padding-block: 66px; }
.service-scorecard { padding: 26px; color: var(--ink); background: #fff; border: 1px solid #d7e6ed; border-radius: 16px; box-shadow: none; }
.service-scorecard .scorecard-label { border-color: #dce6ec; font-size: .875rem; }
.service-scorecard .scorecard-label span { color: #536574; font-size: .875rem; letter-spacing: .07em; }
.service-scorecard .scorecard-label b { color: #087d96; font-size: .875rem; }
.service-scorecard .stat-grid { gap: 0; margin-top: 18px; }
.service-scorecard .stat { min-height: 130px; background: #fff; border: 0; border-radius: 0; padding: 24px 16px; }
.service-scorecard .stat:nth-child(2n+1) { border-right: 1px solid #e2ebf0; }
.service-scorecard .stat:nth-child(-n+2) { border-bottom: 1px solid #e2ebf0; }
.service-scorecard .stat strong { color: var(--ink); font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.25; }
.service-scorecard .stat small { color: var(--slate); font-size: .9375rem; }
.section-heading h2, .overview-sticky h2, .value-copy h2, .contact-copy h2 { line-height: 1.12; letter-spacing: -.045em; font-weight: 750; }
.section-heading p, .overview-sticky p { font-size: 1.0625rem; line-height: 1.8; }
.service-overview, .services-section, .article-section { background: #fff; }
.feature-section, .related-section, .process-section { background: #f5fafc; }
.service-card, .feature-card, .overview-point, .process-card, .resource-card, .related-card, .article-aside .aside-card { border-color: #dce6ec; border-radius: 14px; box-shadow: none; }
.service-card:hover, .resource-card:hover, .related-card:hover { transform: none; border-color: #89b7c6; box-shadow: none; }
.process-card::after { display: none; }
.service-card-icon, .feature-icon, .overview-point-icon, .process-card .process-icon, .related-icon { color: #087d96; background: #edf8fc; border-radius: 12px; }
.feature-card p, .feature-card li, .overview-point p, .service-card p, .process-card p, .resource-card p { font-size: 1rem; line-height: 1.8; }
.service-value { background: var(--ink); }
.service-value .value-copy > p { color: #c7d7e2; }
.service-value .eyebrow-light, .contact-section .eyebrow-light { color: #7adbed; }
.service-value .timeline-card { background: #fff; color: var(--ink); border-radius: 14px; box-shadow: none; }
.timeline-head small, .timeline-row p, .related-card small { font-size: 1rem; color: var(--slate); }
.timeline-head strong, .timeline-row h3 { color: var(--ink); }
.resource-card { background: #fff; }
.resource-card-featured { background: #edf8fc; }
.resource-card > span, .resource-card > b { color: #087d96; font-size: .9375rem; }
.article-body p, .article-body li { font-size: 1.0625rem; line-height: 1.9; }
.article-aside .aside-card { background: #f5fafc; }
.article-aside .aside-card span { font-size: .875rem; }
.article-aside .aside-card p { font-size: 1rem; }
.fractional-testimonial { background: #fff; color: var(--ink); border: 1px solid #d6e6ed; border-radius: 16px; box-shadow: none; }
.fractional-testimonial-label { color: var(--ink); background: #fff; font-size: .9375rem; padding: 20px 24px; }
.fractional-testimonial-label > span:last-child { color: #536574; background: #edf8fc; border-color: #cfe5ed; font-size: .875rem; }
.fractional-testimonial-frame { min-height: 265px; background: #edf8fc; border-top: 1px solid #dcebf1; }
.fractional-testimonial h2 { color: var(--ink); }
.fractional-testimonial p { color: var(--slate); font-size: 1rem; }
.contact-section { color: #fff; background: var(--ink); }
.contact-section .contact-copy > p { color: #c7d7e2; font-size: 1.0625rem; }
.contact-section .contact-copy > p.contact-hours { color: #a6d8e5; font-size: .9375rem; }
.contact-cards > * { background: #17384f; border-color: #355368; border-radius: 12px; }
.contact-cards small { color: #bed0dc; font-size: .875rem; text-transform: none; letter-spacing: 0; font-weight: 500; }
.contact-cards strong { color: #fff; font-size: 1rem; }
.contact-card-icon { color: #7adbed; background: #23485f; border-radius: 10px; }
.contact-form { border: 1px solid #dce6ec; border-radius: 16px; box-shadow: none; }
.contact-form .form-grid label > span { font-size: .875rem; }
.contact-form .form-note, .contact-form .form-heading small { font-size: .875rem; line-height: 1.7; }
.contact-form :is(input, select, textarea) { font-size: 1rem; border-radius: 10px; }

/* Booking retains its existing behavior and gains the same visual system. */
.nc-intro { padding: 72px 0; background: #f5fafc; color: var(--ink); border-bottom: 1px solid #e1ecf2; }
.nc-intro-grid { gap: 72px; }
.nc-intro h1 { margin-top: 18px; color: var(--ink); font-size: clamp(3rem, 5vw, 4.8rem); line-height: 1.08; letter-spacing: -.05em; }
.nc-intro h1 span, .nc-intro .eyebrow-light { color: #087d96; }
.nc-intro p { color: var(--slate); font-size: 1.125rem; }
.nc-call-card { color: var(--ink); background: #fff; border-color: #d7e5ed; border-radius: 16px; }
.nc-call-icon { background: #edf8fc; color: #087d96; }
.nc-call-card li { color: #344f62; font-size: 1rem; }
.nc-call-card li svg { color: #087d96; }
.nc-call-card p { color: var(--slate); border-color: #e0eaf0; font-size: .9375rem; }
.nc-section { background: #fff; }
.nc-context p, .nc-state > p { font-size: 1rem; }
.nc-direct p, .nc-step-heading p, .nc-small, .nc-state .nc-small, .nc-selected, .nc-privacy, .nc-label, .nc-field, .nc-times legend, .nc-text-link, .nc-text-button, .nc-state .nc-change { font-size: .875rem; }
.nc-optional { font-size: .875rem; }
.nc-panel { border-color: #d7e5ed; border-radius: 16px; box-shadow: none; }
.nc-input { min-height: 50px; font-size: 1rem; border-radius: 10px; }
.nc-input::placeholder { font-size: .875rem; }
select.nc-input { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23536574' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.nc-time-option span { min-height: 48px; font-size: .875rem; }
.nc-button { min-height: 50px; color: #fff; background: var(--ink); border-radius: 10px; font-size: 1rem; }
.nc-button:hover { background: #234b64; }
.nc-state .nc-change, .nc-confirmed-details span:last-child { font-size: .875rem; }
.nc-code { font-size: 1.75rem; }

/* Strong, legible footer without the previous glossy treatment. */
.site-footer { background: #102b42; color: #c4d4df; border-top: 1px solid #345269; padding-top: 72px; }
.site-footer .footer-main { grid-template-columns: 1.45fr 1.15fr .85fr .95fr; gap: 42px; }
.site-footer .footer-brand img { width: 155px; height: 45px; object-fit: contain; }
.site-footer .footer-brand p { color: #c4d4df; max-width: 330px; font-size: 1rem; line-height: 1.8; }
.site-footer .footer-contact { font-size: .9375rem; color: #d4e1ea; gap: 9px; }
.site-footer .footer-contact > a[href^='tel:'] { font-size: 1.125rem; }
.site-footer .footer-column h3 { font-size: .875rem; color: #fff; font-weight: 750; letter-spacing: .06em; margin-bottom: 20px; }
.site-footer .footer-column > a { color: #c4d4df; font-size: .9375rem; line-height: 1.6; margin-bottom: 8px; }
.site-footer .footer-column > a:hover, .site-footer .footer-contact a:hover, .site-footer .footer-bottom a:hover { color: #7adbed; }
.site-footer .social-links a { width: 40px; height: 40px; color: #d4e1ea; border-color: #47677c; border-radius: 10px; }
.site-footer .social-links a:hover { background: #7adbed; border-color: #7adbed; color: var(--ink); }
.site-footer .footer-bottom { color: #bdd0dd; border-top-color: #345269; font-size: .875rem; }
.site-footer .footer-bottom a { color: #d4e1ea; }
.mobile-action-bar { color: var(--ink); background: #fff; border-top-color: #d2e2eb; box-shadow: 0 -4px 16px rgb(16 43 66 / 5%); }
.mobile-action-bar a { color: var(--ink); font-size: .875rem; }
.mobile-action-bar a:last-child { color: #fff; background: var(--ink); }
.error-page { background: #f5fafc; color: var(--ink); }

@media (max-width: 1200px) {
  .site-header .header-inner { gap: 16px; }
  .site-header .nav-link { padding-inline: 9px; font-size: .875rem; }
  .site-header .header-cta-group { gap: 10px; }
  .site-header .header-cta-group .button { padding-inline: 14px; }
  .nerdi-utility-inner > div { gap: 18px; }
}
@media (max-width: 1080px) {
  .site-header .desktop-nav { display: none; }
  .site-header .menu-toggle { display: grid; }
  .site-header .header-actions { margin-left: auto; }
  .site-footer .footer-main { grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
  .service-hero-layout { gap: 36px; }
  .nc-intro-grid { gap: 36px; }
  .nerdi-utility-inner > span { display: inline; }
  .nerdi-utility-inner > div > span { display: none; }
}
@media (max-width: 900px) {
  .service-hero-layout, .service-hero--fractional .service-hero-layout { grid-template-columns: 1fr; gap: 36px; }
  .service-scorecard { max-width: 760px; }
  .service-scorecard .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nc-intro-grid { grid-template-columns: 1fr; gap: 30px; }
  .nc-call-card { max-width: 760px; }
}
@media (max-width: 760px) {
  :root { --header: 76px; }
  .shell, .nerdi-utility .shell, .site-header .shell, .site-footer .shell { width: calc(100% - 48px); }
  .nerdi-utility-inner { min-height: 36px; justify-content: center; }
  .nerdi-utility-inner > span { display: inline; font-size: .875rem; }
  .nerdi-utility-inner > div { display: none; }
  .site-header .header-inner { gap: 12px; }
  .site-header .brand img { width: 116px; height: auto; }
  .site-header .header-actions { gap: 10px; }
  .site-header .header-cta-group { gap: 0; }
  .site-header .header-cta-group .button { min-height: 44px; font-size: .875rem; padding-inline: 11px; }
  .site-header .header-cta-group [data-track="consultation_header"] { display: none; }
  .site-header .header-cta-group .email-security-header > svg { display: none; }
  .site-header .mobile-service-grid { grid-template-columns: 1fr; }
  .site-header .mobile-menu-inner { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .service-hero { padding: 28px 0 52px; }
  .service-hero h1, .page-hero h1 { font-size: clamp(2.4rem, 8vw, 3.5rem); line-height: 1.1; }
  .service-hero .service-hero-copy > p, .page-hero .narrow > p { font-size: 1.0625rem; }
  .page-hero { min-height: auto; padding-block: 52px; }
  .page-hero .hero-actions { justify-content: center; }
  .service-scorecard { padding: 20px; }
  .service-scorecard .stat { min-height: 120px; padding: 20px 12px; }
  .service-scorecard .stat strong { font-size: 1.4rem; }
  .fractional-testimonial-frame { min-height: 220px; }
  .fractional-testimonial-label { padding: 16px; font-size: .875rem; }
  .nc-intro { padding: 52px 0; }
  .nc-intro h1 { font-size: clamp(2.6rem, 8vw, 3.6rem); }
  .nc-intro p, .nc-context > p, .nc-state > p { font-size: 1rem; }
  .nc-call-card { padding: 26px; }
  .site-footer { padding-top: 52px; }
  .site-footer .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .site-footer .footer-brand { grid-column: 1 / -1; grid-row: auto; }
  .site-footer .footer-brand p { max-width: 500px; }
  .site-footer .footer-column:last-child { grid-column: 1 / -1; }
  .site-footer .footer-bottom { flex-direction: column; gap: 10px; }
}
@media (max-width: 380px) {
  .shell, .nerdi-utility .shell, .site-header .shell, .site-footer .shell { width: calc(100% - 32px); }
  .site-header .brand img { width: 96px; }
  .site-header .header-inner, .site-header .header-actions { gap: 8px; }
  .site-header .header-cta-group .email-security-header { padding-inline: 10px; font-size: .875rem; }
  .site-header .menu-toggle { width: 40px; height: 44px; padding-inline: 9px; }
  .site-header .mobile-cta-group { grid-template-columns: 1fr; }
  .service-hero h1, .page-hero h1 { font-size: 2.35rem; }
  .service-scorecard .stat small { font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) {
  .button, .service-card, .resource-card, .related-card { transition: none; }
}

/* Montana identity, shared across the public site. */
.nerdi-utility .nerdi-utility-inner > span{display:inline-flex;align-items:center;gap:9px}
.montana-mark{display:block;flex-shrink:0}
.nerdi-utility .montana-mark{color:#34736f}
.site-footer{position:relative;overflow:hidden}
.site-footer:before{content:'';position:absolute;pointer-events:none;right:-40px;bottom:-160px;width:720px;height:540px;background:url('/assets/montana-contours-v20261201.svg') center/contain no-repeat;opacity:.18}
.site-footer>.shell{position:relative;z-index:1}
.site-footer .footer-montana{display:flex;align-items:center;gap:13px;margin-top:23px;color:#9cd7d3;font-size:.875rem;line-height:1.5;font-weight:650}
.site-footer .footer-montana .montana-mark{color:#8bd3cb}
@media(max-width:380px){.nerdi-utility .nerdi-utility-inner>span{gap:7px;font-size:.8125rem}.nerdi-utility .montana-mark{width:25px;height:auto}}
