.ib-home, .ib-profile-dialog {
  --ib-ink: #152f2a;
  --ib-text: #415e55;
  --ib-green: #103e33;
  --ib-accent: #d8ed91;
  --ib-border: #dae2d9;
  color: var(--ib-ink);
}
.ib-home {
  width: min(1184px, calc(100% - clamp(32px, 6vw, 80px)));
  margin: 0 auto;
  padding: clamp(18px, 2.4vw, 34px) 0 clamp(36px, 5vw, 74px);
}
.ib-home h1, .ib-home h2, .ib-home h3, .ib-profile-dialog h2, .ib-profile-dialog h3 {
  color: inherit;
  margin: 0;
  text-wrap: pretty;
}
.ib-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: clamp(18px, 2vw, 29px);
  background: var(--ib-green);
  color: #fff;
}
.ib-hero-copy {
  padding: clamp(34px, 4.25vw, 65px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: clamp(338px, 32vw, 422px);
}
.ib-hero-format {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  font-size: .9rem;
  line-height: 1.45;
  font-weight: 600;
  color: #f2f2d9;
}
.ib-hero-format svg { color: var(--ib-accent); }
.ib-hero h1 {
  font-size: clamp(2.45rem, 4vw, 3.8rem);
  line-height: 1.29;
  font-weight: 700;
  letter-spacing: -.062em;
  margin: 16px 0 8px;
}
.ib-hero h1 em { color: var(--ib-accent); font-style: normal; }
.ib-hero-copy p {
  margin: 0;
  color: #e0e9df;
  font-size: clamp(.97rem, 1.2vw, 1.075rem);
  line-height: 1.72;
}
.ib-hero-image { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.ib-hero-image img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 51% 48%; }
.ib-hero-action, .ib-primary, .ib-secondary, .ib-chip, .ib-availability, .ib-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  line-height: 1.45;
  transition: background-color .18s, border-color .18s, color .18s;
}
.ib-hero-action {
  margin-top: 23px;
  padding: 12px 20px;
  min-height: 47px;
  border-radius: 9px;
  color: #153727;
  background: var(--ib-accent);
}
.ib-hero-action:hover { background: #ebf8b8; }
.ib-hero-action:focus-visible { outline-color: #fff; }
.ib-lesson-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 25px clamp(14px, 3.9vw, 64px);
  border-bottom: 1px solid var(--ib-border);
}
.ib-lesson-facts > div { display: flex; align-items: center; justify-content: center; gap: 13px; }
.ib-lesson-facts > div + div { border-left: 1px solid var(--ib-border); }
.ib-fact-icon {
  display: grid;
  place-items: center;
  flex: 0 0 45px;
  width: 45px;
  height: 45px;
  color: #315748;
  background: #eef3e9;
  border-radius: 13px;
}
.ib-lesson-facts > div:nth-child(2) .ib-fact-icon { background: #fff0e4; color: #915c3d; }
.ib-lesson-facts > div:nth-child(3) .ib-fact-icon { background: #f1eff8; color: #67577f; }
.ib-fact-icon svg { width: 22px; height: 22px; stroke-width: 1.65; }
.ib-lesson-facts b, .ib-lesson-facts div div > span { display: block; }
.ib-lesson-facts b { font-size: .98rem; line-height: 1.55; }
.ib-lesson-facts div div > span { color: var(--ib-text); font-size: .875rem; line-height: 1.5; }
.ib-directory { padding-top: clamp(28px, 3.75vw, 54px); scroll-margin-top: 24px; }
.ib-directory-head, .ib-filter-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.ib-directory-head h2 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); line-height: 1.38; letter-spacing: -.052em; }
.ib-directory-head h2:focus { outline: none; }
.ib-directory-head p { margin: 4px 0 0; color: var(--ib-text); font-size: .96rem; }
.ib-search {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 9px;
  width: min(100%, 272px);
  padding: 0 13px;
  background: #fff;
  border: 1px solid #bbc9be;
  border-radius: 10px;
  color: #466052;
}
.ib-search input { min-width: 0; width: 100%; min-height: 44px; margin: 0; padding: 8px 0; border: none; border-radius: 0; background: transparent; font-size: 1rem; color: var(--ib-ink); }
.ib-search input:focus { outline: none; }
.ib-search:focus-within { outline: 2px solid #397351; outline-offset: 2px; }
.ib-search input::placeholder { color: #687c72; }
.ib-filter-row { margin-top: 20px; align-items: flex-start; }
.ib-topics { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.ib-chip, .ib-availability {
  background: #fff;
  color: var(--ib-text);
  border-color: var(--ib-border);
  padding: 7px 13px;
  min-height: 39px;
  border-radius: 999px;
  font-size: .91rem;
  white-space: nowrap;
}
.ib-chip.is-active { background: var(--ib-green); color: #fff; border-color: var(--ib-green); }
.ib-chip:hover:not(.is-active), .ib-availability:hover, .ib-secondary:hover { border-color: #92aa9b; background: #f0f5ed; }
.ib-availability { border-radius: 9px; flex-shrink: 0; }
.ib-availability.is-active { color: #1f5336; border-color: #6c9979; background: #e9f3de; }
.ib-count { margin: 17px 0 8px; font-size: .84rem; color: #566c60; }
.ib-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 23px); }
.ib-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--ib-border);
  border-radius: 17px;
  box-shadow: 0 3px 14px rgba(44, 63, 45, .045);
}
.ib-card-photo {
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1.85;
  background: #e6eee5;
}
.ib-card-photo > img, .ib-card-photo .portrait, .ib-card-photo .portrait img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: 0;
}
.ib-card-photo > img, .ib-card-photo .portrait img { display: block; object-fit: cover; object-position: 50% 37%; }
.ib-card-photo .portrait { display: grid; place-items: center; background: #e6eee5; color: #577464; }
.ib-example-label, .ib-review {
  position: absolute;
  top: 11px;
  left: 11px;
  border-radius: 6px;
  background: rgba(255, 255, 247, .92);
  padding: 4px 9px;
  color: #344638;
  font-weight: 600;
  font-size: .77rem;
  line-height: 1.55;
}
.ib-review { display: inline-flex; align-items: center; gap: 4px; }
.ib-review svg { color: #a8670c; }
.ib-review span { font-weight: 400; }
.ib-card-info { display: flex; flex-direction: column; flex: 1; padding: clamp(16px, 1.8vw, 24px); }
.ib-category { color: #396549; font-size: .87rem; font-weight: 600; }
.ib-card-info h3 { font-size: 1.42rem; line-height: 1.5; margin: 3px 0; letter-spacing: -.03em; }
.ib-card-bio { color: var(--ib-text); margin: 0 0 13px; font-size: .96rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ib-card-time { color: #4a6253; font-size: .86rem; display: flex; gap: 7px; align-items: flex-start; margin-bottom: 12px; }
.ib-card-time svg { margin-top: 2px; flex-shrink: 0; }
.ib-card-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 7px; padding-top: 3px; }
.ib-primary, .ib-secondary { padding: 8px 13px; min-height: 41px; border-radius: 8px; font-size: .9rem; }
.ib-primary { background: var(--ib-green); color: #fff; }
.ib-primary:hover { background: #245942; }
.ib-secondary { background: #f7faf5; color: #2a533c; border-color: #c9d8c9; }
.ib-empty, .ib-teach-callout { display: flex; gap: 16px; align-items: center; border-radius: 15px; padding: 23px; }
.ib-empty { background: #f5f8f2; border: 1px dashed #b8c9b9; }
.ib-empty > svg, .ib-teach-icon { flex-shrink: 0; color: #477151; }
.ib-empty h3, .ib-teach-callout h2 { font-size: 1.08rem; line-height: 1.55; }
.ib-empty p, .ib-teach-callout p { margin: 2px 0 0; font-size: .94rem; color: var(--ib-text); }
.ib-empty button, .ib-teach-callout button { margin-left: auto; flex-shrink: 0; }
.ib-teach-callout { margin-top: 29px; background: #eef3e7; }
.ib-teach-icon { width: 45px; height: 45px; display: grid; place-items: center; background: white; border-radius: 12px; }
.ib-profile-dialog { border: 0; border-radius: 18px; padding: 0; width: min(440px, calc(100% - 30px)); }
.ib-profile-dialog::backdrop { background: rgba(13, 35, 28, .56); }
.ib-profile-sheet { padding: clamp(20px, 4vw, 29px); }
.ib-profile-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.ib-profile-bar > span { font-size: .9rem; color: var(--ib-text); font-weight: 600; }
.ib-icon-button { width: 38px; height: 38px; border-radius: 50%; background: #edf3ea; color: var(--ib-text); }
.ib-icon-button:hover { background: #dce8d8; }
.ib-profile-person { display: flex; gap: 15px; align-items: center; margin-bottom: 20px; }
.ib-profile-person img { width: 94px; height: 94px; border-radius: 14px; object-fit: cover; }
.ib-profile-person h2 { font-size: 1.75rem; }
.ib-profile-sheet > h3 { font-size: 1.19rem; }
.ib-profile-sheet p { color: var(--ib-text); margin: 6px 0 15px; }
.ib-activity { display: flex; gap: 10px; background: #edf4e8; padding: 13px; border-radius: 9px; }
.ib-activity svg { flex-shrink: 0; margin-top: 2px; color: #42674c; }
.ib-activity p { margin: 3px 0 0; font-size: .95rem; }
.ib-profile-sheet .ib-profile-note { font-size: .9rem; margin-top: 14px; }
.ib-dialog-close { width: 100%; }
@media(max-width: 940px) {
  .ib-hero-copy { padding: 32px; }
  .ib-lesson-facts { padding-inline: 0; gap: 8px; }
  .ib-filter-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
  .ib-results { gap: 13px; }
  .ib-card-photo { aspect-ratio: 1.48; }
}
@media(max-width: 720px) {
  .ib-home { width: calc(100% - 32px); }
  .ib-hero { grid-template-columns: .95fr 1fr; }
  .ib-hero-copy { min-height: 286px; padding: 25px 20px; }
  .ib-hero h1 { font-size: clamp(1.95rem, 4.5vw, 2.55rem); }
  .ib-hero-break { display: none; }
  .ib-lesson-facts { gap: 0; padding: 19px 0; }
  .ib-lesson-facts > div { gap: 8px; }
  .ib-fact-icon { flex-basis: 32px; width: 32px; height: 35px; border-radius: 9px; }
  .ib-fact-icon svg { width: 18px; height: 18px; }
  .ib-lesson-facts b { font-size: .87rem; }
  .ib-lesson-facts div div > span { font-size: .78rem; }
  .ib-directory-head { display: grid; gap: 14px; }
  .ib-search { width: min(100%, 400px); }
  .ib-filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
  .ib-chip, .ib-availability { font-size: .88rem; min-height: 38px; }
  .ib-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media(max-width: 540px) {
  .ib-hero { grid-template-columns: 1fr; }
  .ib-hero-copy { min-height: 0; padding: 25px 25px 24px; }
  .ib-hero h1 { margin: 12px 0 6px; font-size: clamp(2.14rem, 9vw, 2.7rem); }
  .ib-hero-action { margin-top: 15px; min-height: 44px; padding: 10px 14px; }
  .ib-hero-image { aspect-ratio: 2 / 1; }
  .ib-hero-image img { object-position: 50% 43%; }
  .ib-lesson-facts > div { align-items: center; flex-direction: column; text-align: center; gap: 7px; padding: 0 3px; }
  .ib-lesson-facts div div > span { display: none; }
  .ib-lesson-facts b { font-size: .81rem; }
  .ib-directory-head h2 { font-size: 1.72rem; }
  .ib-search, .ib-directory-head { width: 100%; }
  .ib-count { margin-top: 13px; }
  .ib-results { grid-template-columns: 1fr; }
  .ib-card-photo { aspect-ratio: 1.9; }
  .ib-card-info { padding: 17px; }
  .ib-empty, .ib-teach-callout { display: grid; grid-template-columns: auto 1fr; padding: 18px; gap: 11px; }
  .ib-empty button, .ib-teach-callout button { grid-column: 2; margin: 1px 0 0; justify-self: start; }
}
@media(prefers-reduced-motion: reduce) {
  .ib-home *, .ib-profile-dialog * { scroll-behavior: auto; transition-duration: 0s; }
}
