/* Grounded Warmth design tokens. Every color, size, and timing in the redesign comes from here. */
:root {
  /* Color */
  --kb-paper: #FBF8F3;
  --kb-sand: #F4EDE3;
  --kb-white: #FFFFFF;
  --kb-ink: #231E1A;
  --kb-ink-soft: #3A322C;
  --kb-stone: #5F564E;
  --kb-leather: #8A5A3B;
  --kb-leather-deep: #6F4529;
  --kb-sage: #56644B;
  --kb-line: #E6DDD2;
  --kb-line-strong: #DCCFC1;
  --kb-card-line: #ECE3D8;
  --kb-on-ink: #F4EDE3;
  --kb-on-ink-muted: rgba(244, 237, 227, 0.74);
  --kb-error: #B3261E;

  /* Type */
  --kb-font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --kb-font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --kb-text-sm: 0.9375rem;   /* 15px */
  --kb-text-base: 1.0625rem; /* 17px */
  --kb-text-lead: 1.1875rem; /* 19px */
  --kb-h1: clamp(2.375rem, 1.6rem + 3.4vw, 4.25rem);
  --kb-h2: clamp(2rem, 1.55rem + 1.9vw, 2.875rem);
  --kb-h3: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem);

  /* Space and shape */
  --kb-container: 1320px; /* matches Bootstrap's widest .container so legacy and new sections align */
  --kb-gutter: clamp(20px, 5vw, 48px);
  --kb-section: clamp(64px, 9vw, 120px);
  --kb-radius-card: 22px;
  --kb-radius-media: 28px;
  --kb-radius-field: 14px;
  --kb-radius-pill: 999px;
  --kb-shadow-lift: 0 12px 32px rgba(60, 40, 25, 0.08);
  --kb-shadow-float: 0 18px 40px rgba(40, 28, 18, 0.14);

  /* Motion */
  --kb-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --kb-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --kb-press: 160ms;
  --kb-quick: 200ms;
  --kb-reveal: 600ms;
}

/* Base: a small reset, then typography and the page ground. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5em;
}

p,
ul,
ol,
dl,
blockquote,
figure {
  margin-top: 0;
  margin-bottom: 1rem;
}

ul,
ol {
  padding-left: 1.5rem;
}

img,
svg,
video,
iframe {
  vertical-align: middle;
}

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  margin: 0;
  font: inherit;
  color: inherit;
}

button:not(:disabled) {
  cursor: pointer;
}

strong,
b {
  font-weight: 600;
}

[hidden] {
  display: none !important;
}

/* Point Bootstrap's own variables at the brand while it is still loaded, so its utility classes
   (text-primary, link-primary, focus rings) pick up the new colors instead of Bootstrap blue. */
:root {
  --bs-primary: #8A5A3B;
  --bs-primary-rgb: 138, 90, 59;
  --bs-link-color: #8A5A3B;
  --bs-link-color-rgb: 138, 90, 59;
  --bs-link-hover-color: #6F4529;
  --bs-link-hover-color-rgb: 111, 69, 41;
  --bs-body-font-family: var(--kb-font-body);
  --bs-body-color: #231E1A;
  --bs-body-bg: #FBF8F3;
  --bs-border-color: #E6DDD2;
  --bs-focus-ring-color: rgba(138, 90, 59, 0.25);
}
html {
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--kb-paper);
  color: var(--kb-ink);
  font-family: var(--kb-font-body);
  font-size: var(--kb-text-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--kb-ink);
  font-family: var(--kb-font-display);
  font-weight: 400;
  text-wrap: balance;
}

h1 {
  font-size: var(--kb-h1);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

h2 {
  font-size: var(--kb-h2);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--kb-h3);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--kb-leather);
  text-decoration: none;
  transition: color var(--kb-quick) ease, text-decoration-color var(--kb-quick) ease;
}

/* Links inside running text are underlined; :where keeps this at zero specificity so
   component styles (nav, cards, lists) still decide for their own links. */
:where(p, li, dd, td, th, figcaption, blockquote) a:where(:not(.btn)) {
  text-decoration: underline;
  text-decoration-color: rgba(138, 90, 59, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

:where(p, li, dd, td, th, figcaption, blockquote) a:where(:not(.btn)):hover {
  text-decoration-color: currentColor;
}

a:hover {
  color: var(--kb-leather-deep);
}

/* Highlights authored in content (span.mark). Replaces Bootstrap's yellow with a soft highlighter stroke. */
mark,
.mark {
  padding: 0 0.08em;
  background: linear-gradient(transparent 58%, #EFDFCC 58%);
  color: inherit;
}

::selection {
  background-color: #EBDCCB;
  color: var(--kb-ink);
}

/* The legacy theme strips focus outlines everywhere. Restore a visible one for keyboard users. */
:focus-visible {
  outline: 2px solid var(--kb-leather);
  outline-offset: 3px;
}

.kb-container {
  max-width: var(--kb-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--kb-gutter);
  padding-right: var(--kb-gutter);
}

.kb-section {
  padding-top: var(--kb-section);
  padding-bottom: var(--kb-section);
}

.kb-section-sand {
  background-color: var(--kb-sand);
}

/* For a section that continues the one above it on the same background. */
.kb-section--flush-top {
  padding-top: 0;
}

.kb-eyebrow {
  margin: 0;
  color: var(--kb-sage);
  font-family: var(--kb-font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kb-lead {
  color: var(--kb-stone);
  font-size: var(--kb-text-lead);
  line-height: 1.6;
}

.kb-muted {
  color: var(--kb-stone);
}

/* ==========================================================================
   Site header and navigation
   Plain CSS (not part of the SCSS build). Bundled into dist/kb.css, unminified:
   the bundler's minifier rejects rgba(var(...)) and silently keeps stale output.
   Desktop (>= 1200px): one row, centered links, hover/focus dropdowns.
   Below 1200px: right-hand sheet with accordions (nav.js drives the state).
   ========================================================================== */

:root {
  --site-header-h: 64px;
  --nav-ink: #231e1a;
  --nav-muted: #5f564e;
  --nav-brand: #8a5a3b;
  --nav-brand-dark: #6f4529;
  --nav-tint: rgba(138, 90, 59, 0.09);
  --nav-hairline: rgba(35, 30, 26, 0.1);
  --nav-paper: 251, 248, 243;
  --nav-font: "Figtree", "Segoe UI", system-ui, sans-serif;
  --nav-ease: cubic-bezier(0.32, 0.72, 0, 1);
}

@media (min-width: 1200px) {
  :root { --site-header-h: 76px; }
}

/* The header is fixed, so the page reserves its height. The old 96px
   offsets on hero/breadcrumb sections are replaced by this padding. */
html { scroll-padding-top: calc(var(--site-header-h) + 12px); }
.page-wrapper { padding-top: var(--site-header-h); }
.hero-wrap,
.content-wrapper { margin-top: 0; }

html.nav-lock { overflow: hidden; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--nav-ink);
  color: #fff;
  font: 500 15px/1.2 var(--nav-font);
  transform: translateY(-160%);
  transition: transform 0.2s var(--nav-ease);
}
.skip-link:focus { transform: none; color: #fff; }

/* ---------- Bar ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--site-header-h);
  font-family: var(--nav-font);
  -webkit-font-smoothing: antialiased;
}

/* The translucent material lives on a pseudo-element so the header itself has no
   backdrop-filter. A filtered ancestor would trap the fixed-position mobile sheet. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(var(--nav-paper), 0.84);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled::before {
  border-bottom-color: var(--nav-hairline);
  box-shadow: 0 8px 24px -16px rgba(60, 40, 25, 0.22);
}

.site-header__bar {
  height: 100%;
  max-width: 1440px; /* wider than content so the phone number fits beside the full nav */
  margin: 0 auto;
  padding: 0 var(--kb-gutter, 24px);
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-header__logo { flex: 0 0 auto; border-radius: 6px; }

.site-header a,
.site-header button { -webkit-tap-highlight-color: transparent; }
.site-header a { -webkit-user-drag: none; user-select: none; text-decoration: none; }

.site-header a:focus-visible,
.site-header button:focus-visible {
  outline: 2px solid var(--nav-brand);
  outline-offset: 2px;
}

/* ---------- Actions (right side) ---------- */
.site-header__actions {
  margin-left: auto;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--nav-ink);
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease-out;
}
.site-header__phone span { display: none; }
.site-header__phone:hover { background: var(--nav-tint); color: var(--nav-brand-dark); }
@media (min-width: 1440px) {
  .site-header__phone span { display: inline; }
}

.site-header__cta {
  display: none;
  align-items: center;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--nav-brand);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.1s ease-out;
}
.site-header__cta:hover { background: var(--nav-brand-dark); color: #fff; }
@media (min-width: 640px) {
  .site-header__cta { display: inline-flex; }
}

.site-header__menu-btn,
.site-nav__close {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--nav-ink);
  transition: background-color 0.2s ease, transform 0.1s ease-out;
}
.site-header__menu-btn:hover,
.site-nav__close:hover { background: var(--nav-tint); }
@media (min-width: 1200px) {
  .site-header__menu-btn { display: none; }
}

/* Feedback on press, instantly */
.site-header__phone:active,
.site-header__cta:active,
.site-header__menu-btn:active,
.site-nav__close:active,
.site-btn:active { transform: scale(0.96); }

/* ---------- Shared nav item parts ---------- */
.site-nav__list,
.site-menu ul { margin: 0; padding: 0; list-style: none; }

.site-nav__link {
  position: relative;
  display: block;
  font-weight: 500;
  line-height: 1.25;
  color: var(--nav-ink);
  white-space: nowrap;
}
.site-nav__link:hover { color: var(--nav-brand-dark); }
.site-nav__link.active { color: var(--nav-brand); }

.site-nav__toggle {
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--nav-muted);
}
.site-nav__toggle svg { transition: transform 0.28s var(--nav-ease); }
.has-menu.is-open > .site-nav__toggle svg { transform: rotate(180deg); }

.site-menu a {
  display: block;
  color: var(--nav-ink);
  line-height: 1.35;
  white-space: nowrap;
}
.site-menu li.is-all a { font-weight: 500; color: var(--nav-brand); }
.site-menu li.is-all a::after { content: " \2192"; }

.site-nav__head,
.site-nav__cta { display: none; }

.site-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.1s ease-out;
}
.site-btn--primary { background: var(--nav-brand); color: #fff; }
.site-btn--primary:hover { background: var(--nav-brand-dark); color: #fff; }
.site-btn--secondary { background: var(--nav-tint); color: var(--nav-brand-dark); }
.site-btn--secondary:hover { background: rgba(137, 95, 66, 0.16); color: var(--nav-brand-dark); }

/* ==========================================================================
   Desktop
   ========================================================================== */
@media (min-width: 1200px) {
  .site-nav {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: center;
  }

  .site-nav__scrim,
  .site-nav__list > .site-nav__item--home { display: none; }

  .site-nav__list {
    --pad: 12px;
    display: flex;
    align-items: center;
    gap: 2px;
  }

  .site-nav__item {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 10px;
    transition: background-color 0.2s ease;
  }
  .site-nav__item:hover,
  .site-nav__item.is-open { background: var(--nav-tint); }

  .site-nav__link {
    --pr: var(--pad);
    padding: 10px var(--pr) 10px var(--pad);
    font-size: 15px;
    border-radius: 10px;
  }
  .has-menu > .site-nav__link { --pr: 2px; }

  .site-nav__link::after {
    content: "";
    position: absolute;
    left: var(--pad);
    right: var(--pr);
    bottom: 5px;
    height: 2px;
    border-radius: 2px;
    background: var(--nav-brand);
    transform: scaleX(0);
    transition: transform 0.25s var(--nav-ease);
  }
  .site-nav__link.active::after { transform: scaleX(1); }

  .site-nav__toggle {
    width: 24px;
    height: 36px;
    margin-right: 6px;
    border-radius: 8px;
  }
  .site-nav__toggle svg { width: 10px; height: 10px; }

  .site-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    min-width: 252px;
    padding: 8px;
    background: rgba(var(--nav-paper), 0.94);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    backdrop-filter: saturate(180%) blur(24px);
    border: 1px solid var(--nav-hairline);
    border-radius: 18px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 22px 44px -14px rgba(60, 40, 25, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -6px) scale(0.97);
    transform-origin: 50% 0;
    transition: opacity 0.14s ease, transform 0.2s var(--nav-ease), visibility 0s linear 0.14s;
  }
  /* Invisible bridge so the pointer can travel from the link to the panel */
  .site-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
  }

  .site-menu a {
    padding: 9px 14px;
    border-radius: 9px;
    font-size: 14.5px;
  }
  .site-menu a:hover,
  .site-menu a:focus-visible { background: var(--nav-tint); color: var(--nav-brand-dark); }
  .site-menu li.is-all { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--nav-hairline); }

  .has-menu.is-open > .site-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) scale(1);
    transition-delay: 0s;
  }
  @media (hover: hover) {
    .has-menu:hover > .site-menu {
      opacity: 1;
      visibility: visible;
      transform: translate(-50%, 0) scale(1);
      transition-delay: 0s;
    }
  }
}

/* Slightly tighter between 1200 and 1359px so nothing crowds the logo or actions */
@media (min-width: 1200px) and (max-width: 1359.98px) {
  .site-nav__list { --pad: 9px; gap: 0; }
  .site-header__logo .kb-logo__role { display: none; }
  .site-header__bar { gap: 12px; }
}

/* ==========================================================================
   Mobile and tablet: right-hand sheet
   ========================================================================== */
@media (max-width: 1199.98px) {
  .site-nav__scrim {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(35, 30, 26, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
  }
  .site-header.is-nav-open .site-nav__scrim {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: min(400px, 100vw);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: rgba(var(--nav-paper), 0.96);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    backdrop-filter: saturate(180%) blur(24px);
    box-shadow: -28px 0 60px -24px rgba(35, 30, 26, 0.4);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.42s var(--nav-ease), visibility 0s linear 0.42s;
    touch-action: pan-y;
    overscroll-behavior: contain;
  }
  .site-header.is-nav-open .site-nav {
    transform: none;
    visibility: visible;
    transition-delay: 0s;
  }
  .site-nav.is-dragging { transition: none; }

  .site-nav__head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--site-header-h);
    padding: 0 12px 0 24px;
    border-bottom: 1px solid var(--nav-hairline);
  }
  .site-nav__title {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--nav-muted);
  }

  .site-nav__list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 12px 16px;
  }

  .site-nav__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-radius: 14px;
  }
  .site-nav__link {
    flex: 1 1 0;
    min-width: 0;
    padding: 16px 12px;
    font-size: 18px;
    border-radius: 14px;
  }
  .site-nav__link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 20px;
    margin-top: -10px;
    border-radius: 2px;
    background: var(--nav-brand);
  }
  .site-nav__toggle {
    flex: 0 0 52px;
    height: 56px;
    border-radius: 14px;
  }
  .site-nav__toggle svg { width: 12px; height: 12px; }
  .site-nav__link:active,
  .site-nav__toggle:active { background: var(--nav-tint); }

  /* Accordion: animates height without measuring it */
  .site-menu {
    flex: 0 0 100%;
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows 0.34s var(--nav-ease), visibility 0s linear 0.34s;
  }
  .site-menu > ul { min-height: 0; overflow: hidden; }
  .has-menu.is-open > .site-menu {
    grid-template-rows: 1fr;
    visibility: visible;
    transition-delay: 0s;
  }
  .site-menu > ul { padding: 0 0 8px 12px; }
  .site-menu a {
    padding: 12px 12px;
    font-size: 16px;
    color: var(--nav-muted);
    border-radius: 12px;
  }
  .site-menu a:active { background: var(--nav-tint); }
  .site-menu li.is-all a { color: var(--nav-brand); }

  .site-nav__cta {
    flex: 0 0 auto;
    display: grid;
    gap: 10px;
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--nav-hairline);
  }
}

/* ==========================================================================
   Accessibility preferences
   ========================================================================== */
/* Reduced motion keeps the feedback but swaps slides for short cross-fades */
@media (prefers-reduced-motion: reduce) {
  .site-nav__toggle svg,
  .site-nav__link::after { transition-duration: 0.01ms; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 1199.98px) {
  .site-nav {
    transform: none;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
  }
  .site-header.is-nav-open .site-nav { opacity: 1; transition-delay: 0s; }
  .site-menu { transition: none; }
}
@media (prefers-reduced-motion: reduce) and (min-width: 1200px) {
  .site-menu {
    transform: translate(-50%, 0);
    transition: opacity 0.14s ease, visibility 0s linear 0.14s;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header::before,
  .site-nav,
  .site-menu { background: rgb(var(--nav-paper)); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  .site-header::before { background: #fff; border-bottom-color: var(--nav-ink); }
  .site-menu,
  .site-nav { border: 1px solid var(--nav-ink); }
  .site-nav__link,
  .site-menu a { color: #000; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header::before,
  .site-nav,
  .site-menu { background: #fff; }
}

@media print {
  .site-header, .skip-link { display: none; }
  .page-wrapper { padding-top: 0; }
}

/* ==========================================================================
   Page header: breadcrumb above the H1 on every content page.
   Markup lives in Views/Shared/_PageBreadCrumbs.cshtml.
   Plain CSS, bundled into dist/kb.css (unminified) after the tokens.
   ========================================================================== */

.page-head {
  padding: clamp(28px, 4vw, 52px) 0 clamp(12px, 2vw, 20px);
  background: var(--kb-paper);
}

.page-head h1 {
  max-width: 22em;
  margin: 0;
  color: var(--kb-ink);
  font-family: var(--kb-font-display);
  font-size: clamp(2.125rem, 1.6rem + 2.2vw, 3.375rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

/* ---------- Breadcrumb ---------- */
.page-head .breadcrumbs { margin: 0 0 14px; }

.page-head .breadcrumb-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--kb-stone);
  font: 400 0.875rem/1.5 var(--kb-font-body);
}

.page-head .breadcrumb-menu li {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.page-head .breadcrumb-menu li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin: 0 10px 0 8px;
  border-top: 1.5px solid #B9A999;
  border-right: 1.5px solid #B9A999;
  transform: rotate(45deg);
}

.page-head .breadcrumb-menu a {
  color: var(--kb-stone);
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.2s ease;
}
.page-head .breadcrumb-menu a:hover { color: var(--kb-leather); text-decoration: underline; text-underline-offset: 3px; }

.page-head .breadcrumb-menu [aria-current] { color: var(--kb-ink); font-weight: 500; }

/* ---------- Mobile: one "back" link instead of a wrapping trail ---------- */
@media (max-width: 767.98px) {
  .page-head .breadcrumbs { margin-bottom: 10px; }
  .page-head .breadcrumb-menu li { display: none; }
  .page-head .breadcrumb-menu li:nth-last-child(2) { display: inline-flex; }
  .page-head .breadcrumb-menu li + li::before { content: none; }
  .page-head .breadcrumb-menu li:nth-last-child(2) a::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 8px 1px 2px;
    border-bottom: 1.5px solid currentColor;
    border-left: 1.5px solid currentColor;
    transform: rotate(45deg);
  }
  .page-head .breadcrumb-menu a { padding: 4px 0; font-size: 0.9375rem; }
}

@media print {
  .page-head { padding: 0 0 12px; }
}

/* The first section after the page head continues it rather than starting a new band. */
.page-head + .kb-section:not(.kb-section-sand) {
  padding-top: clamp(16px, 3vw, 40px);
}

/* Shared components: logo lockup, buttons, footer, back-to-top. */

/* ---------- Logo lockup ---------- */
.kb-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--kb-ink);
  text-decoration: none;
}

.kb-logo:hover {
  color: var(--kb-ink);
}

.kb-logo .kb-mark {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  color: var(--kb-leather);
}

.kb-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.kb-logo__name {
  font-family: var(--kb-font-display);
  font-size: 1.3125rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.kb-logo__role {
  margin-top: 4px;
  color: var(--kb-stone);
  font-family: var(--kb-font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (min-width: 1200px) {
  .kb-logo .kb-mark {
    width: 44px;
    height: 44px;
  }

  .kb-logo__name {
    font-size: 1.4375rem;
  }
}

/* ---------- Buttons ----------
   The legacy theme's .btn.style1 and .btn.style2 are used across every template,
   so they are restyled here rather than renamed. */
.btn,
.kb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--kb-radius-pill);
  text-align: center;
  text-decoration: none;
  user-select: none;
  cursor: pointer;
  font-family: var(--kb-font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.btn.d-block {
  display: flex;
}

.btn.style1,
.kb-btn-primary {
  padding: 14px 26px;
  border: 1px solid transparent;
  background-color: var(--kb-leather);
  color: var(--kb-white);
}

.btn.style1:hover,
.btn.style1:focus-visible,
.kb-btn-primary:hover {
  background-color: var(--kb-leather-deep);
  color: var(--kb-white);
}

.btn.style2,
.kb-btn-ghost {
  padding: 13px 24px;
  border: 1px solid var(--kb-line-strong);
  background-color: transparent;
  color: var(--kb-ink);
}

.btn.style2:hover,
.btn.style2:focus-visible,
.kb-btn-ghost:hover {
  border-color: var(--kb-line-strong);
  background-color: var(--kb-sand);
  color: var(--kb-ink);
}

.btn.style1 i,
.btn.style2 i {
  top: 0;
  margin: 0;
  font-size: 1.125rem;
}

/* ---------- Footer ---------- */
.kb-footer {
  border-top: 1px solid var(--kb-line);
  background-color: var(--kb-sand);
  color: var(--kb-stone);
  font-size: var(--kb-text-sm);
  line-height: 1.6;
}

.kb-footer a {
  color: var(--kb-stone);
  text-decoration: none;
}

.kb-footer a:hover {
  color: var(--kb-leather);
}

.kb-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-top: 72px;
  padding-bottom: 36px;
}

.kb-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 40px 32px;
}

.kb-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (min-width: 1100px) {
  .kb-footer__grid {
    grid-template-columns: 1.7fr 1fr 1.25fr 1.1fr 1.4fr;
  }
}

.kb-footer__brand p {
  max-width: 30em;
  margin: 0;
}

.kb-footer__brand p a {
  color: var(--kb-leather);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kb-footer__title {
  margin: 0 0 14px;
  color: var(--kb-ink);
  font-family: var(--kb-font-body);
  font-size: var(--kb-text-sm);
  font-weight: 600;
}

.kb-footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kb-footer__contact p {
  margin: 0 0 10px;
}

/* Beats the legacy theme's underline on links inside paragraphs. */
.kb-footer .kb-footer__contact p a {
  text-decoration: none;
}

.kb-footer__contact strong {
  color: var(--kb-ink);
  font-weight: 600;
}

.kb-footer__cta p {
  margin: 0 0 16px;
}

.kb-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--kb-line-strong);
  font-size: 0.8125rem;
}

.kb-footer__bottom p {
  margin: 0;
}

/* Keep the copyright line clear of the fixed back-to-top button on phones. */
@media (max-width: 767.98px) {
  .kb-footer__bottom {
    padding-right: 64px;
  }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: var(--kb-radius-pill);
  background: var(--kb-ink);
  box-shadow: var(--kb-shadow-lift);
  color: var(--kb-on-ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--kb-quick) ease, transform var(--kb-quick) var(--kb-ease-out), background-color var(--kb-quick) ease;
}

.back-to-top.open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.back-to-top:hover {
  background: var(--kb-leather-deep);
}

.back-to-top:active {
  transform: scale(0.95);
}

.kb-footer__heart {
  width: 13px;
  height: 13px;
  margin: 0 1px;
  vertical-align: -1px;
  color: var(--kb-leather);
}

/* Bootstrap is loaded only on the Identity (login and account) pages; give its primary button the brand color. */
.btn-primary {
  --bs-btn-bg: var(--kb-leather);
  --bs-btn-border-color: var(--kb-leather);
  --bs-btn-hover-bg: var(--kb-leather-deep);
  --bs-btn-hover-border-color: var(--kb-leather-deep);
  --bs-btn-active-bg: var(--kb-leather-deep);
  --bs-btn-active-border-color: var(--kb-leather-deep);
}

/* Article content: section blocks, checklists, quotes, tables, testimonials, FAQ, maps. */

/* ---------- Sections ---------- */
.kb-block {
  margin: 0 0 clamp(40px, 5vw, 60px);
}

.kb-block > h2 {
  margin: 0 0 0.6em;
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem);
  line-height: 1.15;
}

.kb-block p {
  margin: 0 0 1.1em;
}

.kb-block--intro > p:first-of-type {
  color: var(--kb-ink-soft);
  font-size: var(--kb-text-lead);
  line-height: 1.65;
}

.kb-link,
.kb-block p a,
.kb-block li a,
.kb-block td a,
.kb-block th a {
  color: var(--kb-leather);
  text-decoration: underline;
  text-decoration-color: rgba(138, 90, 59, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--kb-quick) ease, text-decoration-color var(--kb-quick) ease;
}

.kb-link:hover,
.kb-block p a:hover,
.kb-block li a:hover,
.kb-block td a:hover,
.kb-block th a:hover {
  color: var(--kb-leather-deep);
  text-decoration-color: currentColor;
}

/* ---------- Checklist ---------- */
.kb-checklist {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px 28px;
  margin: 0 0 1.4em;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .kb-checklist {
    grid-template-columns: repeat(var(--kb-cols, 1), minmax(0, 1fr));
  }
}

.kb-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.55;
}

.kb-checklist__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--kb-sage);
}

/* ---------- Quote ---------- */
.quote-block {
  margin: 1.6em 0;
  padding: 0 0 0 24px;
  border-left: 2px solid #D9C7B5;
}

.quote-block p {
  margin: 0;
  color: var(--kb-ink-soft);
  font-family: var(--kb-font-display);
  font-size: 1.375rem;
  font-style: italic;
  line-height: 1.5;
}

.quote-block cite {
  display: block;
  margin-top: 10px;
  color: var(--kb-stone);
  font-size: var(--kb-text-sm);
  font-style: normal;
}

/* ---------- Table ---------- */
.kb-block .table-responsive {
  margin: 0 0 1.4em;
  border: 1px solid var(--kb-line);
  border-radius: 18px;
}

.kb-block .comparison-table {
  --bs-table-bg: transparent;
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: var(--kb-text-sm);
  line-height: 1.5;
}

.kb-block .comparison-table caption {
  padding: 14px 18px 0;
  caption-side: top;
  color: var(--kb-stone);
  font-size: 0.875rem;
}

.kb-block .comparison-table th,
.kb-block .comparison-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--kb-line);
  text-align: left;
  vertical-align: top;
}

.kb-block .comparison-table thead th {
  background: var(--kb-sand);
  color: var(--kb-ink);
  font-weight: 600;
}

.kb-block .comparison-table tbody th {
  color: var(--kb-ink);
  font-weight: 600;
}

.kb-block .comparison-table tbody tr:last-child th,
.kb-block .comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------- Byline ---------- */
.kb-byline {
  margin: 0 0 28px;
  color: var(--kb-stone);
  font-size: var(--kb-text-sm);
}

.kb-byline a {
  color: var(--kb-ink);
  font-weight: 600;
  text-decoration: none;
}

.kb-byline a:hover {
  color: var(--kb-leather);
}

/* ---------- Call to action row ---------- */
.kb-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.kb-cta-row .btn svg {
  display: block;
  flex-shrink: 0;
}

@media (max-width: 575.98px) {
  .kb-cta-row .btn {
    flex: 1 1 100%;
  }
}

/* ---------- Testimonial ---------- */
.kb-testimonial-block {
  margin: 0 0 clamp(40px, 5vw, 60px);
}

.kb-testimonial-block > h3 {
  margin: 0 0 16px;
}

.kb-testimonial {
  margin: 0;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--kb-radius-card);
  background: var(--kb-sand);
}

.kb-testimonial__mark {
  display: block;
  width: 32px;
  height: 25px;
  margin-bottom: 18px;
  color: #D9C7B5;
}

.kb-testimonial blockquote {
  margin: 0;
}

.kb-testimonial blockquote p {
  margin: 0;
  color: var(--kb-ink);
  font-family: var(--kb-font-display);
  font-size: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
  line-height: 1.55;
}

.kb-testimonial figcaption {
  margin-top: 18px;
  color: var(--kb-stone);
  font-size: var(--kb-text-sm);
  font-weight: 600;
}

/* ---------- FAQ ---------- */
.kb-faq {
  padding: var(--kb-section) 0;
  background: var(--kb-sand);
}

.kb-faq__inner {
  max-width: 920px;
}

.kb-faq__title {
  margin: 0 0 40px;
  text-align: center;
}

.kb-faq__list {
  border-top: 1px solid var(--kb-line-strong);
}

.kb-disclosure {
  border-bottom: 1px solid var(--kb-line-strong);
}

.kb-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
}

.kb-disclosure > summary::-webkit-details-marker {
  display: none;
}

.kb-disclosure > summary h3 {
  margin: 0;
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.35;
  transition: color var(--kb-quick) ease;
}

@media (hover: hover) and (pointer: fine) {
  .kb-disclosure > summary:hover h3 {
    color: var(--kb-leather-deep);
  }
}

.kb-disclosure__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--kb-leather);
  transition: transform 250ms var(--kb-ease-out);
}

.kb-disclosure[open] .kb-disclosure__icon {
  transform: rotate(45deg);
}

.kb-disclosure__body p {
  max-width: 62em;
  margin: 0;
  padding: 0 0 24px;
  color: var(--kb-stone);
}

/* ---------- Maps ---------- */
.kb-map {
  padding: 0 0 var(--kb-section);
}

.kb-drive-map {
  padding: clamp(48px, 6vw, 80px) 0 var(--kb-section);
}

.kb-drive-map h2 {
  margin: 0 0 0.5em;
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem);
}

.kb-map__frame {
  overflow: hidden;
  height: 440px;
  margin-top: 24px;
  border: 1px solid var(--kb-line);
  border-radius: var(--kb-radius-card);
}

.kb-map .kb-map__frame {
  margin-top: 0;
}

.kb-map__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .kb-disclosure__icon {
    transition: none;
  }
}

/* Detail pages (services, specialties, approaches, cities): hero, table of contents, article, related links.
   Markup lives in Views/Shared/_DetailLayout.cshtml. */

/* ---------- Hero ---------- */
.kb-page-hero {
  padding: clamp(28px, 4vw, 52px) 0 clamp(36px, 5vw, 64px);
}

.kb-page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.kb-page-hero--media .kb-page-hero__inner {
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
}

.kb-page-hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.kb-page-hero .kb-eyebrow {
  margin: 0 0 14px;
}

.kb-page-hero__sub {
  max-width: 34em;
  margin: 20px 0 0;
  color: var(--kb-ink-soft);
  font-family: var(--kb-font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-style: italic;
  line-height: 1.45;
}

.kb-page-hero__intro {
  max-width: 40em;
  margin: 16px 0 0;
  color: var(--kb-stone);
  font-size: var(--kb-text-lead);
  line-height: 1.6;
}

.kb-page-hero .kb-cta-row {
  margin: 28px 0 0;
}

.kb-page-hero .kb-rating {
  margin: 20px 0 0;
}

.kb-page-hero__media {
  margin: 0;
}

.kb-page-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--kb-radius-media);
}

/* ---------- Rating ---------- */
.kb-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--kb-stone);
  font-size: var(--kb-text-sm);
  font-weight: 500;
}

.kb-rating__stars {
  display: inline-flex;
  gap: 2px;
  color: var(--kb-leather);
}

.kb-rating__stars svg {
  display: block;
  width: 16px;
  height: 16px;
}

/* ---------- Body: table of contents beside the article ---------- */
.kb-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-top: clamp(8px, 2vw, 24px);
  padding-bottom: var(--kb-section);
}

@media (min-width: 1200px) {
  .kb-detail {
    grid-template-columns: 250px minmax(0, 780px);
    justify-content: space-between;
    gap: 64px;
  }

  .kb-detail__article:only-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 780px);
  }
}

.kb-toc {
  border: 1px solid var(--kb-line);
  border-radius: 18px;
  background: var(--kb-white);
}

.kb-toc__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  color: var(--kb-ink);
  font-size: var(--kb-text-sm);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.kb-toc__title::-webkit-details-marker {
  display: none;
}

.kb-toc__title::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--kb-quick) var(--kb-ease-out);
}

.kb-toc[open] > .kb-toc__title::after {
  transform: rotate(-135deg) translateY(-2px);
}

.kb-toc ol {
  margin: 0;
  padding: 0 10px 12px;
  list-style: none;
}

.kb-toc a {
  display: block;
  padding: 8px 10px 8px 12px;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  color: var(--kb-stone);
  font-size: var(--kb-text-sm);
  line-height: 1.4;
  text-decoration: none;
  transition: color var(--kb-quick) ease, border-color var(--kb-quick) ease, background-color var(--kb-quick) ease;
}

.kb-toc a:hover {
  color: var(--kb-ink);
}

.kb-toc a[aria-current="true"] {
  border-left-color: var(--kb-leather);
  background: var(--kb-sand);
  color: var(--kb-ink);
  font-weight: 600;
}

@media (min-width: 1200px) {
  .kb-detail__aside {
    position: relative;
  }

  .kb-toc {
    position: sticky;
    top: calc(var(--site-header-h, 76px) + 28px);
    border: 0;
    background: transparent;
  }

  /* On desktop the list is always shown, so the summary becomes a plain label. */
  .kb-toc__title {
    padding: 0 0 12px 12px;
    color: var(--kb-stone);
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    pointer-events: none;
  }

  .kb-toc__title::after {
    display: none;
  }

  .kb-toc ol {
    padding: 0;
    border-left: 1px solid var(--kb-line);
  }

  .kb-toc a {
    margin-left: -1px;
  }
}

/* ---------- Related links and office hours ---------- */
.kb-related {
  padding: 0 0 var(--kb-section);
}

.kb-related__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--kb-line);
}

@media (min-width: 992px) {
  .kb-related__grid {
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    gap: 64px;
  }
}

.kb-related .kb-eyebrow {
  margin-bottom: 16px;
}

.kb-related__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kb-related__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px 18px;
  border: 1px solid var(--kb-card-line);
  border-radius: 14px;
  background: var(--kb-white);
  color: var(--kb-ink);
  font-weight: 500;
  text-decoration: none;
  transition: border-color var(--kb-quick) ease, background-color var(--kb-quick) ease;
}

.kb-related__list a svg {
  flex-shrink: 0;
  color: var(--kb-leather);
  transition: transform var(--kb-quick) var(--kb-ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .kb-related__list a:hover {
    border-color: #CDB8A6;
    color: var(--kb-ink);
  }

  .kb-related__list a:hover svg {
    transform: translateX(3px);
  }
}

.kb-related__list a[aria-current="page"] {
  border-color: var(--kb-leather);
  background: var(--kb-sand);
}

.kb-hours dl {
  margin: 0;
  border-top: 1px solid var(--kb-line);
}

.kb-hours dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--kb-line);
}

.kb-hours dt {
  color: var(--kb-ink);
  font-weight: 600;
}

.kb-hours dd {
  margin: 0;
  color: var(--kb-stone);
}

@media (prefers-reduced-motion: reduce) {
  .kb-toc__title::after,
  .kb-related__list a svg {
    transition: none;
  }
}

/* Marketing sections shared by the homepage and hub pages: section heads, cards, splits, info cards. */

/* ---------- Section head ---------- */
.kb-section-head {
  max-width: 44em;
  margin: 0 0 clamp(32px, 4vw, 48px);
}

.kb-section-head h2 {
  margin: 0 0 14px;
}

.kb-section-head p {
  margin: 0;
  color: var(--kb-stone);
}

/* ---------- Hub intro: heading beside its text ---------- */
.kb-hub-intro__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px 72px;
}

@media (min-width: 992px) {
  .kb-hub-intro__inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

.kb-hub-intro h2 {
  margin: 0;
}

.kb-hub-intro__text p {
  margin: 0 0 1em;
}

.kb-hub-intro__text strong {
  color: var(--kb-ink);
  font-weight: 600;
}

.kb-hub-intro .kb-cta-row {
  margin-bottom: 0;
}

.kb-hub-article {
  max-width: 780px;
  margin: 0 auto;
}

.kb-hub-article .kb-block:last-child {
  margin-bottom: 0;
}

/* ---------- Cards ---------- */
.kb-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}

/* Fixed column counts for lists of four or eight, so no row is left half empty. */
.kb-cards--even {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  .kb-cards--even {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .kb-cards--even {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.kb-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px;
  border: 1px solid var(--kb-card-line);
  border-radius: var(--kb-radius-card);
  background: var(--kb-white);
  transition: border-color var(--kb-quick) ease, box-shadow var(--kb-quick) ease;
}

.kb-card h3 {
  margin: 0;
  font-size: 1.5rem;
}

.kb-card h3 a {
  color: var(--kb-ink);
  text-decoration: none;
}

/* The title link covers the whole card so the full surface is clickable. */
.kb-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.kb-card p {
  flex-grow: 1;
  margin: 0;
  color: var(--kb-stone);
  font-size: 1rem;
}

.kb-card__more {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  color: var(--kb-leather);
  font-size: var(--kb-text-sm);
  font-weight: 600;
  text-decoration: none;
}

.kb-card__more::after {
  content: " \2192";
}

@media (hover: hover) and (pointer: fine) {
  .kb-card:hover {
    border-color: #CDB8A6;
    box-shadow: var(--kb-shadow-lift);
  }
}

.kb-card:focus-within {
  border-color: var(--kb-leather);
}

/* ---------- Split: image beside text ---------- */
.kb-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

@media (min-width: 992px) {
  .kb-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.kb-split__media {
  margin: 0;
}

.kb-split__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--kb-radius-media);
}

.kb-split__text h2 {
  margin: 12px 0 20px;
}

.kb-split__text h2 + .kb-checklist,
.kb-split__text .kb-lead {
  margin-bottom: 18px;
}

.kb-split__text .kb-checklist + h2 {
  margin-top: 40px;
}

.kb-split__text strong {
  color: var(--kb-ink);
  font-weight: 600;
}

/* ---------- Info cards ---------- */
.kb-info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 20px;
}

.kb-info-card {
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--kb-radius-card);
  background: var(--kb-sand);
}

.kb-info-card .kb-detail-list li {
  border-bottom-color: var(--kb-line-strong);
}

.kb-info-card .kb-steps li::before {
  background: var(--kb-white);
}

.kb-info-card h3 {
  margin: 0 0 18px;
  font-size: 1.625rem;
}

.kb-info-card h3 a {
  color: var(--kb-ink);
  text-decoration: none;
}

.kb-info-card h3 a:hover {
  color: var(--kb-leather);
}

.kb-info-card .kb-lead {
  margin: 0 0 18px;
}

.kb-detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.kb-detail-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--kb-line);
  line-height: 1.55;
}

.kb-detail-list li:first-child {
  padding-top: 0;
}

.kb-detail-list li:last-child {
  border-bottom: 0;
}

.kb-detail-list strong {
  color: var(--kb-ink);
  font-weight: 600;
}

/* Numbered steps */
.kb-steps {
  counter-reset: kb-step;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.kb-steps li {
  position: relative;
  counter-increment: kb-step;
  padding: 6px 0 14px 46px;
  line-height: 1.5;
}

.kb-steps li::before {
  content: counter(kb-step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--kb-radius-pill);
  background: var(--kb-sand);
  color: var(--kb-leather);
  font-family: var(--kb-font-display);
  font-size: 1rem;
}

/* ---------- Small pieces used on About and Contact ---------- */
.kb-list-label {
  margin: 1.4em 0 0.8em;
  color: var(--kb-ink);
  font-weight: 600;
}

.kb-split__media--square img {
  aspect-ratio: 1 / 1;
}

.kb-info-card .kb-checklist {
  margin-bottom: 18px;
}

.kb-info-card .kb-checklist + h3 {
  margin-top: 32px;
}

.kb-info-card p {
  margin: 0 0 1em;
  color: var(--kb-stone);
}

.kb-info-card p:last-child {
  margin-bottom: 0;
}

.kb-cta-panel {
  margin-top: 20px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--kb-radius-card);
  background: var(--kb-ink);
  color: var(--kb-on-ink);
}

.kb-cta-panel p {
  max-width: 46em;
  margin: 0;
  font-family: var(--kb-font-display);
  font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem);
  line-height: 1.5;
}

.kb-cta-panel .mark {
  background: linear-gradient(transparent 58%, rgba(226, 201, 176, 0.35) 58%);
}

.kb-cta-panel .kb-cta-row {
  margin-bottom: 0;
}

.kb-cta-panel .btn.style2 {
  border-color: rgba(244, 237, 227, 0.3);
  color: var(--kb-on-ink);
}

.kb-cta-panel .btn.style2:hover {
  background: rgba(244, 237, 227, 0.08);
  color: var(--kb-on-ink);
}

/* ---------- Error page ---------- */
.kb-error__inner {
  max-width: 760px;
  text-align: center;
}

.kb-error h1 {
  margin: 12px 0 16px;
}

.kb-error .kb-cta-row {
  justify-content: center;
}

/* Homepage. Markup lives in Views/Home/Index.cshtml. */

/* ---------- Hero ---------- */
.kb-home-hero {
  padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 7vw, 104px);
}

.kb-home-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

@media (min-width: 992px) {
  .kb-home-hero__inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }
}

.kb-home-hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.kb-home-hero h1 {
  margin: 0;
  font-size: clamp(2.375rem, 1.7rem + 2.8vw, 4rem);
}

.kb-home-hero__lead {
  max-width: 34em;
  margin: 0;
  color: var(--kb-stone);
  font-size: var(--kb-text-lead);
  line-height: 1.6;
}

.kb-home-hero .kb-cta-row {
  margin: 0;
}

.kb-home-hero__note {
  max-width: 32em;
  margin: 8px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--kb-line);
  color: var(--kb-ink-soft);
  font-family: var(--kb-font-display);
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);
  line-height: 1.55;
}

.kb-home-hero__media {
  position: relative;
}

.kb-home-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: var(--kb-radius-media);
}

.kb-home-hero__badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px;
  border-radius: 18px;
  background: rgba(251, 248, 243, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--kb-shadow-float);
  font-size: var(--kb-text-sm);
}

.kb-home-hero__badge span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kb-home-hero__badge span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: var(--kb-radius-pill);
  background: var(--kb-sage);
}

/* ---------- About ---------- */
.kb-home-about {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px 88px;
}

@media (min-width: 992px) {
  .kb-home-about {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.kb-home-about__head h2 {
  margin: 14px 0 0;
}

.kb-home-about__text p {
  margin: 0 0 1em;
}

.kb-home-about__hello {
  font-family: var(--kb-font-display);
  font-size: 1.5rem;
}

.kb-home-about .kb-cta-row {
  margin-bottom: 0;
}

/* ---------- Standalone testimonials ---------- */
.kb-home-quote {
  max-width: 980px;
  padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: clamp(64px, 9vw, 120px);
}

.kb-home-quote .kb-testimonial-block {
  margin: 0;
}

.kb-home-quote .kb-testimonial {
  padding: 0;
  background: none;
  text-align: center;
}

.kb-home-quote .kb-testimonial__mark {
  margin: 0 auto 24px;
}

.kb-home-quote .kb-testimonial blockquote p {
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.625rem);
  line-height: 1.5;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

/* ---------- Who I help ---------- */
.kb-home-help {
  border-top: 1px solid var(--kb-line);
}

.kb-home-help__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px 88px;
  align-items: start;
}

@media (min-width: 992px) {
  .kb-home-help__inner {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

.kb-home-help__head h2 {
  margin: 0 0 16px;
}

.kb-home-help__head p {
  margin: 0 0 1em;
  color: var(--kb-stone);
}

.kb-home-help .kb-disclosure > summary h3 {
  font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem);
}

/* ---------- Therapy experience ---------- */
.kb-home-experience .kb-split__media img {
  aspect-ratio: 1 / 1;
}

.kb-home-experience .kb-split__text > p {
  color: var(--kb-stone);
}

.kb-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 28px 32px;
  margin-top: 32px;
}

.kb-feature svg {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  fill: none;
  stroke: var(--kb-leather);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kb-feature h3 {
  margin: 0 0 8px;
  font-family: var(--kb-font-body);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0;
}

.kb-feature p {
  margin: 0;
  color: var(--kb-stone);
  font-size: 1rem;
}

.kb-feature p a {
  color: var(--kb-leather);
}

/* ---------- Chips ---------- */
.kb-doorways {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Phones: a compact list, each reason beside a small arched photo. */
.kb-doorway {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 20px;
  align-items: start;
}

.kb-doorway__media {
  grid-row: 1 / span 2;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% 14px 14px / 40% 40% 14px 14px;
  background: var(--kb-sand);
}

.kb-doorway__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kb-doorway h3 {
  margin: 2px 0 8px;
  font-size: 1.375rem;
}

.kb-doorway__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--kb-ink);
  text-decoration: none;
}

.kb-doorway__link svg {
  flex: none;
  color: var(--kb-leather);
}

/* The title link covers the whole card, so the photo and text are clickable too. */
.kb-doorway__link::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 20px;
}

.kb-doorway__link:focus-visible {
  outline: none;
}

.kb-doorway__link:focus-visible::after {
  outline: 2px solid var(--kb-leather);
  outline-offset: 2px;
}

.kb-doorway p {
  margin: 0;
  color: var(--kb-stone);
  font-size: 1rem;
  line-height: 1.55;
}

.kb-doorways__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  color: var(--kb-leather);
  font-weight: 600;
  text-decoration: none;
}

/* Tablets and up: tall arched doorways, echoing the logo and the photo frames elsewhere. */
@media (min-width: 640px) {
  .kb-doorways {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 32px;
  }

  .kb-doorway {
    display: flex;
    flex-direction: column;
  }

  .kb-doorway__media {
    margin-bottom: 22px;
    border-radius: 50% 50% var(--kb-radius-media) var(--kb-radius-media) / 40% 40% var(--kb-radius-media) var(--kb-radius-media);
  }

  .kb-doorway h3 {
    font-size: 1.5rem;
  }
}

@media (min-width: 1100px) {
  .kb-doorways {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (hover: hover) and (pointer: fine) {
  .kb-doorway__media img,
  .kb-doorway__link svg,
  .kb-doorways__all svg {
    transition: transform 600ms var(--kb-ease-out);
  }

  .kb-doorway:hover .kb-doorway__media img {
    transform: scale(1.04);
  }

  .kb-doorway:hover .kb-doorway__link {
    color: var(--kb-leather);
  }

  .kb-doorway:hover .kb-doorway__link svg,
  .kb-doorways__all:hover svg {
    transform: translateX(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .kb-doorway__media img,
  .kb-doorway__link svg,
  .kb-doorways__all svg {
    transition: none;
  }
}

/* ---------- What makes this different (dark band) ---------- */
.kb-home-different {
  background: var(--kb-ink);
  color: var(--kb-on-ink);
}

.kb-home-different h2,
.kb-home-different h3 {
  color: var(--kb-on-ink);
}

.kb-home-different .kb-section-head p {
  color: var(--kb-on-ink-muted);
}

.kb-home-different__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.kb-home-different__item {
  padding-top: 24px;
  border-top: 1px solid rgba(244, 237, 227, 0.2);
}

.kb-home-different__item h3 {
  margin: 0 0 12px;
  font-size: 1.625rem;
}

.kb-home-different__item p {
  margin: 0;
  color: var(--kb-on-ink-muted);
}

.kb-home-different .kb-cta-row {
  margin-bottom: 0;
}

.kb-home-different .btn.style2 {
  border-color: rgba(244, 237, 227, 0.3);
  color: var(--kb-on-ink);
}

.kb-home-different .btn.style2:hover {
  background: rgba(244, 237, 227, 0.08);
  color: var(--kb-on-ink);
}

/* ---------- Getting started (photo band) ---------- */
.kb-home-start__band {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #3A3A2C;
}

.kb-home-start__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.kb-home-start__content {
  position: relative;
  padding: clamp(32px, 6vw, 80px);
  background: linear-gradient(180deg, rgba(25, 22, 16, 0.15), rgba(25, 22, 16, 0.6));
  color: #fff;
}

.kb-home-start h2 {
  color: #fff;
}

.kb-home-start .kb-section-head p {
  margin: 0 0 0.6em;
  color: rgba(255, 255, 255, 0.92);
}

.kb-home-start__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 16px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.kb-home-start__steps li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border-radius: 20px;
  background: rgba(251, 248, 243, 0.95);
  color: var(--kb-ink);
}

.kb-home-start__num {
  color: var(--kb-leather);
  font-family: var(--kb-font-display);
  font-size: 0.9375rem;
}

.kb-home-start__steps h3 {
  margin: 0;
  font-family: var(--kb-font-body);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
}

.kb-home-start__steps p {
  margin: 0;
  color: var(--kb-stone);
  font-size: var(--kb-text-sm);
}

/* ---------- Service areas ---------- */
.kb-home-areas__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px 88px;
}

@media (min-width: 992px) {
  .kb-home-areas__inner {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

.kb-home-areas__head h2 {
  margin: 0 0 14px;
}

.kb-home-areas__head p {
  margin: 0;
  color: var(--kb-stone);
}

.kb-home-areas__head .kb-home-areas__more {
  margin-top: 24px;
  color: var(--kb-ink);
  font-weight: 600;
}

.kb-home-areas .kb-cta-row {
  margin-top: 14px;
}

.kb-home-areas__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr));
  gap: 0 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kb-home-areas__list li {
  border-bottom: 1px solid var(--kb-line);
}

.kb-home-areas__list a {
  display: block;
  padding: 12px 0;
  color: var(--kb-ink);
  text-decoration: none;
  transition: color var(--kb-quick) ease;
}

.kb-home-areas__list a:hover {
  color: var(--kb-leather);
}

/* Consultation form, appointment page, and contact page.
   Markup: Views/Shared/_ContactForm.cshtml, Views/Home/Appointment.cshtml, Views/Home/Contact.cshtml. */

/* ---------- Utilities the form relies on ---------- */
.kb-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.kb-btn-block {
  display: flex;
  width: 100%;
}

/* Inline icons drawn with strokes share one look. */
.consult-form svg,
.consult-badges svg,
.consult-success-icon svg,
.kb-icon-tile svg,
.consult-reassure svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Fields ---------- */
.kb-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .kb-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.kb-form-full {
  grid-column: 1 / -1;
}

.kb-input {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--kb-line-strong);
  border-radius: var(--kb-radius-field);
  background: var(--kb-white);
  color: var(--kb-ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color var(--kb-quick) ease, box-shadow var(--kb-quick) ease;
}

.kb-input:focus {
  border-color: var(--kb-leather);
  outline: none;
  box-shadow: 0 0 0 3px rgba(138, 90, 59, 0.15);
}

textarea.kb-input {
  min-height: 120px;
  resize: vertical;
}

/* Floating label: the label sits inside the field and moves up once there is focus or a value. */
.kb-field {
  position: relative;
}

.kb-field .kb-input {
  height: 58px;
  padding: 24px 16px 8px;
}

.kb-field .kb-input::placeholder {
  color: transparent;
}

.kb-field label {
  position: absolute;
  top: 0;
  left: 17px;
  display: flex;
  align-items: center;
  height: 58px;
  color: var(--kb-stone);
  pointer-events: none;
  transform-origin: 0 50%;
  transition: transform 160ms var(--kb-ease-out), color 160ms ease;
}

.kb-field .kb-input:focus + label,
.kb-field .kb-input:not(:placeholder-shown) + label {
  transform: translateY(-13px) scale(0.78);
}

.kb-field .kb-input:focus + label {
  color: var(--kb-leather);
}

.kb-help {
  margin-top: 6px;
  color: var(--kb-stone);
  font-size: 0.875rem;
}

.kb-alert {
  margin: 0 0 20px;
  padding: 16px 20px;
  border: 1px solid rgba(179, 38, 30, 0.35);
  border-radius: 14px;
  background: #FCEEEC;
  color: #7A1F18;
}

.kb-alert p {
  margin: 0 0 6px;
}

.kb-alert ul {
  margin: 0;
  padding-left: 20px;
}

.consult-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.consult-form .kb-input.is-invalid,
.consult-form .choice-pills.is-invalid .choice-pill {
  border: 2px solid var(--kb-error);
}

.consult-form .btn:disabled {
  opacity: 0.75;
  cursor: progress;
}

.consult-legend {
  display: block;
  float: none;
  width: auto;
  margin: 6px 0 10px;
  padding: 0;
  color: var(--kb-ink);
  font-size: var(--kb-text-sm);
  font-weight: 600;
}

.consult-optional {
  margin-left: 4px;
  color: var(--kb-stone);
  font-size: 0.8125rem;
  font-weight: 400;
}

/* ---------- Choice pills (radio buttons) ---------- */
.kb-choice-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice-pill {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 140px;
  min-height: 56px;
  padding: 12px 16px;
  border: 1px solid var(--kb-line-strong);
  border-radius: var(--kb-radius-field);
  background: var(--kb-white);
  color: var(--kb-ink);
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--kb-quick) ease, background-color var(--kb-quick) ease, transform var(--kb-press) var(--kb-ease-out);
}

.choice-pill svg {
  width: 20px;
  height: 20px;
  margin-bottom: 4px;
  color: var(--kb-leather);
}

.choice-pill small {
  color: var(--kb-stone);
  font-size: 0.8125rem;
  font-weight: 400;
}

.choice-pill:active {
  transform: scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
  .choice-pill:hover {
    border-color: var(--kb-leather);
  }
}

.kb-choice-input:checked + .choice-pill {
  border-color: var(--kb-leather);
  background: var(--kb-sand);
  box-shadow: inset 0 0 0 1px var(--kb-leather);
}

.kb-choice-input:focus-visible + .choice-pill {
  outline: 2px solid var(--kb-leather);
  outline-offset: 2px;
}

@media (max-width: 767.98px) {
  .choice-pills-stack-sm .choice-pill {
    flex-basis: 100%;
  }
}

.consult-privacy {
  display: flex;
  gap: 10px;
  margin: 0;
  color: var(--kb-stone);
  font-size: 0.875rem;
  line-height: 1.6;
}

.consult-privacy svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--kb-leather);
}

/* ---------- Appointment page ---------- */
.kb-appointment__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

@media (min-width: 992px) {
  .kb-appointment__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 48px;
  }
}

.consult-card {
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--kb-radius-card);
  background: var(--kb-white);
  box-shadow: 0 10px 40px rgba(138, 90, 59, 0.08);
}

.consult-card > h2 {
  margin: 0 0 12px;
  font-size: clamp(1.625rem, 1.4rem + 0.8vw, 2rem);
}

/* Contact page: its section headings are h2 (they follow the page's h1) but keep the h3 size. */
.kb-contact .consult-card > h2,
.kb-contact__side h2 {
  font-size: var(--kb-h3);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.kb-contact .consult-card > h2 {
  margin: 0 0 20px;
}

.consult-lede {
  margin: 0 0 28px;
  color: var(--kb-stone);
}

.consult-badges {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.consult-badges li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--kb-radius-pill);
  background: var(--kb-sand);
  color: var(--kb-leather-deep);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.consult-badges svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 767.98px) {
  .consult-badges {
    gap: 6px;
  }

  .consult-badges li {
    gap: 4px;
    padding: 5px 10px;
    font-size: 0.8125rem;
  }
}

/* Drop badge icons so all three badges still fit on one line. */
@media (max-width: 375px) {
  .consult-badges svg {
    display: none;
  }
}

.consult-success {
  padding: 20px 0;
  text-align: center;
}

.consult-success h2 {
  margin: 0 0 16px;
}

.consult-success p {
  max-width: 480px;
  margin: 0 auto 1em;
}

.consult-success-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--kb-sand);
  color: var(--kb-leather);
}

.consult-success-icon svg {
  width: 34px;
  height: 34px;
  stroke-width: 2;
}

.consult-aside {
  position: sticky;
  top: calc(var(--site-header-h, 76px) + 24px);
}

.consult-aside h2 {
  margin: 0 0 10px;
  font-size: 1.375rem;
  line-height: 1.35;
}

.consult-call {
  display: flex;
  gap: 18px;
  margin: 0 0 32px;
  padding: 28px;
  border-radius: var(--kb-radius-card);
  background: var(--kb-white);
  box-shadow: 0 10px 40px rgba(138, 90, 59, 0.08);
}

.consult-call p {
  margin: 0 0 18px;
  color: var(--kb-stone);
}

/* Icon tile: a stroked icon on a sand square, set beside the heading it belongs to.
   Every way to reach Katherine (Appointment and Contact pages) uses it. */
.kb-icon-tile {
  display: grid;
  flex: 0 0 56px;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--kb-sand);
  color: var(--kb-leather);
}

.kb-icon-tile svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 575.98px) {
  .consult-call {
    flex-direction: column;
    padding: 24px 20px;
  }
}

.consult-steps {
  margin: 0 0 32px;
}

.consult-steps ol {
  counter-reset: consult-step;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.consult-steps li {
  position: relative;
  counter-increment: consult-step;
  padding: 0 0 22px 58px;
}

.consult-steps li::before {
  content: counter(consult-step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--kb-leather);
  color: var(--kb-white);
  font-family: var(--kb-font-display);
  font-size: 1.0625rem;
}

/* Line joining each step to the next */
.consult-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 46px;
  bottom: 6px;
  left: 19px;
  width: 2px;
  background: rgba(138, 90, 59, 0.25);
}

.consult-steps li:last-child {
  padding-bottom: 0;
}

.consult-steps h3 {
  margin: 8px 0 6px;
  font-size: 1.125rem;
  line-height: 1.4;
}

.consult-steps p {
  margin: 0;
  color: var(--kb-stone);
}

.consult-reassure {
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(138, 90, 59, 0.2);
  list-style: none;
}

.consult-reassure li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
}

.consult-reassure li:last-child {
  margin-bottom: 0;
}

.consult-reassure svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--kb-leather);
}

/* ---------- Contact page ---------- */
.kb-contact__cards {
  display: grid;
  /* 380px keeps the email address on one line inside its button. */
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 20px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

/* Same pattern as the Appointment page's call box: icon tile beside the heading and text. The button
   gets its own full-width row so the long email address never wraps inside its pill. */
.kb-contact-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 6px 18px;
  padding: 28px;
  border: 1px solid var(--kb-card-line);
  border-radius: var(--kb-radius-card);
  background: var(--kb-white);
}

.kb-contact-card .kb-icon-tile {
  grid-row: 1 / span 2;
}

.kb-contact-card h2 {
  margin: 0;
  font-size: 1.375rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.kb-contact-card p {
  margin: 0;
  color: var(--kb-stone);
}

.kb-contact-card .btn {
  grid-column: 1 / -1;
  justify-self: start;
  max-width: 100%;
  margin-top: 18px;
  overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
  .kb-contact-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    padding: 24px 20px;
  }

  .kb-contact-card .kb-icon-tile {
    grid-row: auto;
    margin-bottom: 12px;
  }
}

.kb-contact__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px 56px;
  align-items: start;
}

@media (min-width: 992px) {
  .kb-contact__main {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

.kb-contact .consult-card {
  border: 1px solid var(--kb-card-line);
  box-shadow: none;
}

.kb-contact__side h2 {
  margin: 0 0 10px;
}

.kb-contact__side > p {
  margin: 0 0 28px;
  color: var(--kb-stone);
}

.kb-contact__note {
  padding: 24px;
  border-radius: 18px;
  background: var(--kb-sand);
}

.kb-contact__note p {
  margin: 0 0 1em;
}

.kb-contact__note p:last-child {
  margin-bottom: 0;
}

.kb-map--spaced {
  padding-top: var(--kb-section);
}

@media (prefers-reduced-motion: reduce) {
  .kb-field label,
  .choice-pill {
    transition: none;
  }
}

/* Resources: article cards, topic pages, and article layout. Markup lives in Views/Resources. */

.kb-section--tight-top {
  padding-top: clamp(16px, 3vw, 32px);
}

.kb-resources__intro {
  max-width: 44em;
  margin: 0 0 clamp(32px, 4vw, 48px);
}

/* ---------- Article cards ---------- */
.kb-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 24px;
}

.kb-post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--kb-card-line);
  border-radius: var(--kb-radius-card);
  background: var(--kb-white);
  transition: border-color var(--kb-quick) ease, box-shadow var(--kb-quick) ease;
}

.kb-post-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.kb-post-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--kb-ease-out);
}

.kb-post-card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 10px;
  padding: 24px 26px 28px;
}

.kb-post-card__meta {
  margin: 0;
  color: var(--kb-stone);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.kb-post-card h3 {
  margin: 0;
  font-size: 1.375rem;
  line-height: 1.3;
}

.kb-post-card h3 a {
  color: var(--kb-ink);
  text-decoration: none;
}

/* The title link covers the card so the whole surface is clickable. */
.kb-post-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.kb-post-card__body > p:last-child {
  margin: 0;
  color: var(--kb-stone);
  font-size: 0.9375rem;
}

@media (hover: hover) and (pointer: fine) {
  .kb-post-card:hover {
    border-color: #CDB8A6;
    box-shadow: var(--kb-shadow-lift);
  }

  .kb-post-card:hover .kb-post-card__media img {
    transform: scale(1.03);
  }
}

.kb-post-card:focus-within {
  border-color: var(--kb-leather);
}

/* ---------- Index: topics and groups ---------- */
.kb-resources__topics {
  margin-top: clamp(48px, 6vw, 72px);
}

.kb-resources__topics h3 {
  margin: 0 0 18px;
}

.kb-topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 12px;
}

.kb-topic-card {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--kb-card-line);
  border-radius: 16px;
  background: var(--kb-white);
  color: var(--kb-ink);
  text-decoration: none;
  transition: border-color var(--kb-quick) ease, background-color var(--kb-quick) ease;
}

.kb-topic-card:hover {
  border-color: #CDB8A6;
  color: var(--kb-ink);
}

.kb-topic-card strong {
  font-weight: 600;
}

.kb-topic-card span {
  display: block;
  margin-top: 4px;
  color: var(--kb-stone);
  font-size: 0.875rem;
}

.kb-resources__group {
  margin-bottom: clamp(48px, 6vw, 72px);
}

.kb-resources__group h2 {
  margin: 0 0 8px;
}

.kb-resources__group h2 a {
  color: var(--kb-ink);
  text-decoration: none;
}

.kb-resources__group > p {
  margin: 0 0 24px;
  color: var(--kb-stone);
}

.kb-resources__more {
  display: inline-block;
  margin-top: 20px;
  font-weight: 600;
  text-decoration: none;
}

.kb-related__grid--single {
  grid-template-columns: minmax(0, 1fr) !important;
}

/* ---------- Article ---------- */
.kb-article__hero {
  margin: 0 0 28px;
}

.kb-article__hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--kb-radius-media);
}

.kb-article__byline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--kb-line);
}

.kb-article__byline img {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.kb-article__byline a {
  color: var(--kb-ink);
  font-weight: 600;
  text-decoration: none;
}

.kb-article__byline a:hover {
  color: var(--kb-leather);
}

.kb-article__byline p {
  margin: 2px 0 0;
  color: var(--kb-stone);
  font-size: 0.875rem;
}

.kb-author-card {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 24px;
  margin: 8px 0 32px;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--kb-card-line);
  border-radius: var(--kb-radius-card);
  background: var(--kb-white);
}

@media (max-width: 575.98px) {
  .kb-author-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

.kb-author-card img {
  display: block;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.kb-author-card p {
  margin: 0 0 12px;
  color: var(--kb-stone);
}

.kb-author-card .kb-author-card__name {
  margin-bottom: 2px;
  font-family: var(--kb-font-display);
  font-size: 1.375rem;
}

.kb-author-card__name a {
  color: var(--kb-ink);
  text-decoration: none;
}

.kb-author-card .kb-author-card__cred {
  font-size: 0.875rem;
}

.kb-author-card .btn {
  margin-top: 6px;
}

.kb-resource-cta {
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--kb-radius-card);
  background: var(--kb-ink);
  color: var(--kb-on-ink);
  text-align: center;
}

.kb-resource-cta h3 {
  margin: 0 0 12px;
  color: var(--kb-on-ink);
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
}

.kb-resource-cta p {
  max-width: 38em;
  margin: 0 auto 24px;
  color: var(--kb-on-ink-muted);
}

.kb-related-posts__title {
  margin: 0 0 28px;
}

@media (prefers-reduced-motion: reduce) {
  .kb-post-card__media img {
    transition: none;
  }
}

/* Polish: the brand details that make the site feel made rather than templated.
   Arch frames echo the logo's doorway; motion is calm, purposeful, and off for reduced motion. */

/* ---------- Italic accents inside headings ---------- */
h1 em,
h2 em,
h3 em {
  color: var(--kb-leather);
  font-style: italic;
}

.kb-home-different h2 em {
  color: #E2C9B0;
}

.kb-home-start h2 em {
  color: #F2DFC8;
}

/* ---------- Arch frames ----------
   The horizontal radius is half the width; the vertical radius is set per aspect ratio so the
   top is a true semicircle (4:5 images need 40% of the height, square images 50%). */
.kb-home-hero__media,
.kb-split__media {
  --kb-arch-v: 40%;
  overflow: hidden;
  border-radius: 50% 50% var(--kb-radius-media) var(--kb-radius-media) / var(--kb-arch-v) var(--kb-arch-v) var(--kb-radius-media) var(--kb-radius-media);
}

.kb-split__media--square,
.kb-home-experience .kb-split__media {
  --kb-arch-v: 50%;
}

.kb-split__media img,
.kb-home-hero__media img {
  border-radius: 0;
}

/* ---------- Paper grain ---------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.14 0 0 0 0 0.11 0 0 0 0 0.09 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(../kb/#n)'/%3E%3C/svg%3E");
}

@media print {
  body::after {
    display: none;
  }
}

/* ---------- Words that brighten as a quote is read (kb-motion.js wraps them) ---------- */
.kb-word {
  transition: opacity 180ms linear;
}

@media (prefers-reduced-motion: no-preference) {
  /* ---------- First page view of a session: logo fades in, hero photo settles ----------
     Opacity and transform only, which run on the compositor. Drawing the SVG arc in with
     stroke-dashoffset cost a phone hundreds of milliseconds of main-thread time during page load. */
  .kb-intro .site-header .kb-mark {
    animation: kb-fade 900ms var(--kb-ease-out) 100ms both;
  }

  .kb-intro .site-header .kb-logo__text {
    animation: kb-fade 900ms var(--kb-ease-out) 350ms both;
  }

  /* Hero text never fades in. On phones the largest element on screen is a hero paragraph, not
     the H1 or photo, and holding it at opacity 0 delayed Largest Contentful Paint by over a second.
     The photo only settles with a transform, which paints immediately. */
  .kb-intro .kb-home-hero__media img {
    animation: kb-settle 1600ms var(--kb-ease-out) both;
  }

  .kb-intro .kb-home-hero__badge {
    animation: kb-slide-in 800ms var(--kb-ease-out) 700ms both;
  }

  /* ---------- Images settle as their frame is revealed ---------- */
  .kb-reveal-ready .kb-split__media[data-reveal] img {
    transform: scale(1.07);
  }

  .kb-reveal-ready .kb-split__media[data-reveal].is-visible img {
    transform: none;
    transition: transform 1400ms var(--kb-ease-out);
  }

  /* ---------- Hover refinements (pointer devices only) ---------- */
  @media (hover: hover) and (pointer: fine) {
    .btn > svg:last-child:not(:first-child),
    .kb-card__more {
      transition: transform var(--kb-quick) var(--kb-ease-out);
    }

    .btn:hover > svg:last-child:not(:first-child) {
      transform: translateX(3px);
    }

    .kb-card,
    .kb-post-card,
    .kb-contact-card {
      transition: border-color var(--kb-quick) ease, box-shadow 300ms ease, transform 300ms var(--kb-ease-out);
    }

    .kb-card:hover,
    .kb-post-card:hover {
      transform: translateY(-3px);
    }

    .kb-card:hover .kb-card__more {
      transform: translateX(3px);
    }
  }

  /* ---------- Scroll-linked drift on the photo band (no JavaScript; skipped where unsupported) ---------- */
  @supports (animation-timeline: view()) {
    .kb-home-start__bg {
      animation: kb-drift linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
}

@keyframes kb-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes kb-settle {
  from { transform: scale(1.05); }
  to { transform: none; }
}

@keyframes kb-slide-in {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: none; }
}

@keyframes kb-drift {
  from { transform: translate3d(0, -6%, 0) scale(1.14); }
  to { transform: translate3d(0, 6%, 0) scale(1.14); }
}

/*
  Motion. Every animation here has a job:
  - Press feedback on buttons (the interface heard you).
  - Scroll reveals below the fold, once each (calm pacing on long pages).
  - Header settles into a solid bar after scrolling (state).
  Hero content never animates in, so it paints at full speed for Largest Contentful Paint.
*/

/* Press feedback. :active is a real press on touch, so it needs no hover gating. */
.kb-btn,
.btn {
  transition:
    background-color var(--kb-quick) ease,
    border-color var(--kb-quick) ease,
    color var(--kb-quick) ease,
    transform var(--kb-press) var(--kb-ease-out);
}

.kb-btn:active,
.btn:active {
  transform: scale(0.97);
}

/* Scroll reveal. Content is only hidden once kb-motion.js has confirmed it can reveal it again,
   so a script failure or a crawler without JS always sees everything. The transition lives on the
   revealed state, so hiding off-screen content at setup is instant and starts no animations. */
.kb-reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
}

.kb-reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--kb-reveal) var(--kb-ease-out),
    transform var(--kb-reveal) var(--kb-ease-out);
  transition-delay: var(--kb-reveal-delay, 0ms);
}

/* Below-the-fold blocks: the browser skips their layout and paint until they near the screen.
   Without this a phone laid out the entire page before it could paint the hero. The placeholder
   height errs tall: most sections on a phone run 1000px or more, and an estimate shorter than the
   real content makes accessibility checkers measure text against the next section's background. */
.kb-defer {
  content-visibility: auto;
  contain-intrinsic-size: auto 1200px;
}

/* Accordions open smoothly where the browser supports animating to auto height. */
@supports (interpolate-size: allow-keywords) {
  /* Scoped to the disclosure itself. On :root it lets every legacy `transition: all`
     animate between auto sizes, which chains into an endless layout loop. */
  details.kb-disclosure {
    interpolate-size: allow-keywords;
  }

  details.kb-disclosure::details-content {
    block-size: 0;
    opacity: 0;
    overflow: clip;
    transition:
      block-size 240ms var(--kb-ease-out),
      opacity 240ms var(--kb-ease-out),
      content-visibility 240ms allow-discrete;
  }

  details.kb-disclosure[open]::details-content {
    block-size: auto;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* The legacy theme turns on smooth scrolling for in-page links. */
  html {
    scroll-behavior: auto;
  }

  /* Keep the fade, drop the movement. */
  .kb-reveal-ready [data-reveal] {
    transform: none;
  }

  .kb-reveal-ready [data-reveal].is-visible {
    transition: opacity var(--kb-quick) ease;
  }

  .kb-btn:active,
  .btn:active {
    transform: none;
  }

  details.kb-disclosure::details-content {
    transition: none;
  }
}
