/* Team bio pages (src/lib/bio-page.ts). Kinore brand: Montserrat, Charcoal #1E1919, Sunrise #FABE19, Indigo #640AE1. */
.kb-page { --ink: #1E1919; --sun: #FABE19; --indigo: #640AE1; --muted: #5B5555; --line: #ECE8F2; --paper: #FAF8F5; font-family: 'Montserrat', Arial, sans-serif; color: var(--ink); }
.kb-page * { box-sizing: border-box; }
.kb-page h1, .kb-page h2, .kb-page h3, .kb-page p { font-family: inherit; text-transform: none; }
.kb-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.kb-label { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--indigo); }
.kb-btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px; font-size: 15px; font-weight: 700; text-decoration: none !important; white-space: nowrap; transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease; }
.kb-btn svg { width: 18px; height: 18px; flex: none; }
.kb-btn-sun { background: var(--sun); color: var(--ink) !important; }
.kb-btn-sun:hover { background: #F0AE00; transform: translateY(-1px); }
.kb-btn-ghost { border: 1.5px solid rgba(255,255,255,.45); color: #fff !important; }
.kb-btn-ghost:hover { background: #fff; color: var(--ink) !important; }
.kb-link { display: inline-flex; align-items: center; gap: 8px; color: var(--indigo) !important; font-weight: 700; text-decoration: none !important; }
.kb-link svg { width: 18px; height: 18px; }
.kb-page a:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 8px; }

/* Hero */
.kb-hero { position: relative; overflow: hidden; width: min(1240px, calc(100% - 40px)); margin: 20px auto 0; border-radius: 28px; background: var(--ink); color: #fff; padding: clamp(40px, 6vw, 80px) 0; isolation: isolate; }
.kb-c1, .kb-c2 { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.kb-c1 { width: 200px; height: 200px; left: -80px; bottom: -110px; background: var(--indigo); }
.kb-c2 { width: 70px; height: 70px; left: 46%; top: 36px; background: var(--sun); }
.kb-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.kb-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; font-size: 14px; color: #C8D2DC; }
.kb-crumbs a { color: #fff !important; font-weight: 600; text-decoration: none !important; }
.kb-cred { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px; background: var(--sun); color: var(--ink); font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.kb-hero h1 { margin: 18px 0 10px; color: #fff; font-size: clamp(42px, 6vw, 80px); line-height: 1; font-weight: 900; letter-spacing: -0.03em; }
.kb-role { margin: 0; font-size: clamp(18px, 1.8vw, 22px); color: #E6E0EA; }
.kb-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.kb-photo { position: relative; margin: 0; justify-self: end; width: min(420px, 100%); }
.kb-photo-c { position: absolute; z-index: -1; width: 112%; aspect-ratio: 1; right: -24%; top: 8%; border-radius: 50%; background: var(--sun); }
.kb-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 24px; box-shadow: 0 40px 70px -40px rgba(0,0,0,.8); }

/* Body */
.kb-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.kb-bio { min-width: 0; }
.kb-lead h2, .kb-lead h3 { display: none; }
.kb-lead p { margin: 0 0 16px; font-size: clamp(20px, 1.9vw, 24px); line-height: 1.55; font-weight: 500; letter-spacing: -0.005em; color: var(--ink); }
.kb-sec { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.kb-sec h2 { margin: 0 0 14px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 900; letter-spacing: -0.01em; color: var(--ink); }
.kb-sec p { margin: 0 0 14px; font-size: 16px; line-height: 1.75; color: #3b3535; }
.kb-sec ul { margin: 0; padding: 0; list-style: none; }
.kb-sec li { position: relative; margin: 0 0 10px; padding-left: 24px; font-size: 16px; line-height: 1.6; color: #3b3535; }
.kb-sec li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); }
.kb-bio a { color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; }
.kb-approach { position: relative; overflow: hidden; margin: 44px 0 0; padding: 32px 34px; border-radius: 24px; background: #F1E9FD; }
.kb-approach::after { content: ""; position: absolute; right: -50px; bottom: -50px; width: 150px; height: 150px; border-radius: 50%; background: var(--indigo); opacity: .14; }
.kb-approach p { position: relative; z-index: 1; margin: 0; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.6; font-weight: 500; color: var(--ink); }
.kb-approach .kb-label { font-size: 12px; margin-bottom: 12px; }

.kb-aside { position: sticky; top: 110px; }
.kb-card { padding: 26px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 50px -36px rgba(30,25,25,.4); }
.kb-card-person { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.kb-card-person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.kb-card-person strong { display: block; font-size: 17px; font-weight: 800; }
.kb-card-person span { display: block; font-size: 14px; color: var(--muted); }
.kb-card-row { display: flex; justify-content: space-between; gap: 12px; margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.kb-card-row strong { color: var(--ink); }
.kb-label-gap { margin-top: 22px; }
.kb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.kb-chips li { margin: 0; padding: 7px 12px; border-radius: 999px; background: #F1E9FD; color: var(--indigo); font-size: 13px; font-weight: 600; list-style: none; }
.kb-card-cta { margin-top: 22px; }
.kb-card-cta .kb-btn { width: 100%; justify-content: center; }
.kb-body-short { display: block; }
.kb-short { font-size: 20px; line-height: 1.6; }

/* More of the team */
.kb-more { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: clamp(48px, 6vw, 72px) 0; border-radius: 28px; background: #FFF8E7; }
.kb-more-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.kb-more h2 { margin: 0; font-size: clamp(28px, 3vw, 40px); font-weight: 900; letter-spacing: -0.02em; }
.kb-more-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.kb-more-grid li { margin: 0; list-style: none; }
.kb-more-grid.kb-more-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kb-more-3 .kb-more-photo { aspect-ratio: 1 / 1; }
.kb-more-grid a { display: flex; flex-direction: column; gap: 4px; color: var(--ink) !important; text-decoration: none !important; }
.kb-more-photo { display: block; overflow: hidden; margin-bottom: 12px; border-radius: 20px; background: var(--ink); aspect-ratio: 4 / 5; }
.kb-more-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform .4s ease; }
.kb-more-grid a:hover img { transform: scale(1.04); }
.kb-more-grid strong { font-size: 17px; font-weight: 800; }
.kb-more-grid span:last-child { font-size: 14px; color: var(--muted); }

/* The original closing banner overlaps the top of the footer: keep it above the
   footer (46) and the sticky bar (45), and give it room after the team section. */
body:has(.kb-page) .e-parent:has(.elementor-element-6a3588d) { position: relative; z-index: 47; margin-top: clamp(48px, 6vw, 80px); }

@media (max-width: 1024px) {
  .kb-body { grid-template-columns: minmax(0, 1fr); }
  .kb-aside { position: static; }
  .kb-more-grid, .kb-more-grid.kb-more-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .kb-hero, .kb-more { width: calc(100% - 24px); border-radius: 22px; }
  .kb-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .kb-photo { justify-self: start; width: min(340px, 100%); }
  .kb-photo-c { right: -30%; }
  .kb-c2 { left: auto; right: 24px; top: 24px; width: 44px; height: 44px; }
  .kb-btn { height: 48px; padding: 0 20px; font-size: 14px; }
  .kb-approach { padding: 24px 22px; }
}
@media (prefers-reduced-motion: reduce) { .kb-btn, .kb-more-photo img { transition: none; } }

/* Leadership team: three at a time, with arrows to scroll for more */
.kb-more .kb-more-grid, .kb-more .kb-more-grid.kb-more-3 { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.kb-more .kb-more-grid::-webkit-scrollbar { display: none; }
.kb-more .kb-more-grid li { scroll-snap-align: start; }
.kb-more .kb-more-photo { aspect-ratio: 1 / 1; }
.kb-more-head { align-items: flex-end; }
.kb-more-nav { display: flex; gap: 8px; }
.kb-more-nav button { display: grid; place-items: center; width: 48px; height: 48px; padding: 0 !important; border-radius: 50% !important; border: 1.5px solid #E8DDBF !important; background: #fff !important; color: #1E1919 !important; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.kb-more-nav button:hover:not(:disabled) { background: #FABE19 !important; border-color: #FABE19 !important; }
.kb-more-nav button:disabled { opacity: .35; cursor: default; }
.kb-more-nav button:first-child svg { transform: rotate(180deg); }
.kb-more-nav svg { width: 18px; height: 18px; }
.kb-more-nav button:focus-visible { outline: 3px solid #640AE1; outline-offset: 3px; }
@media (max-width: 760px) {
  .kb-more .kb-more-grid, .kb-more .kb-more-grid.kb-more-3 { grid-auto-columns: 78%; gap: 14px; }
}
