/* Provider profile pages (src/components/ProviderProfile.astro).
   Same look as the contact page; every rule is scoped to .tim-provider. */
.tim-provider {
  --tp-navy: #073f7c;
  --tp-blue: #0b4f98;
  --tp-link: #0a5aaf;
  --tp-sky: #b3dfff;
  --tp-ink: #152233;
  --tp-body: #46546a;
  --tp-paper: #f8fbff;
  --tp-mist: #e1edfa;
  --tp-orange: #e98c00;
  --tp-orange-dark: #c45500;
  --tp-sun-soft: #fbeecb;
  --tp-shadow-sm: 0 4px 14px rgba(7, 63, 124, 0.07);
  --tp-shadow-md: 0 12px 32px rgba(7, 63, 124, 0.1);
  background: var(--tp-paper);
  color: var(--tp-body);
  font-size: 17px;
  line-height: 1.65;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.tim-provider *, .tim-provider *::before, .tim-provider *::after { box-sizing: border-box; }
.tim-provider h1, .tim-provider h2, .tim-provider p, .tim-provider ul, .tim-provider ol, .tim-provider dl, .tim-provider dd {
  margin: 0;
  padding: 0;
}
.tim-provider a { color: var(--tp-link); text-decoration: none; }
.tim-provider a:hover { color: var(--tp-blue); text-decoration: underline; }
.tim-provider-container { width: min(72rem, calc(100% - 3rem)); margin-inline: auto; }

.tim-provider-crumbs { font-size: 0.9rem; padding: 1.1rem 0 0; color: var(--tp-body); }

/* Hero */
.tim-provider-hero {
  background:
    radial-gradient(38rem 24rem at 85% -10%, rgba(120, 190, 255, 0.24), transparent 60%),
    linear-gradient(180deg, var(--tp-paper), var(--tp-mist) 55%, var(--tp-paper));
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2rem, 5vw, 3.5rem);
}
.tim-provider-hero-grid {
  display: grid;
  grid-template-columns: minmax(12rem, 18rem) 1fr;
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: center;
}
.tim-provider-photo img,
.tim-provider-initials {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 8px #fff, var(--tp-shadow-md);
}
.tim-provider-initials {
  display: grid;
  place-items: center;
  background: var(--tp-blue);
  color: #fff;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 600;
}
.tim-provider-eyebrow {
  color: var(--tp-orange-dark);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem !important;
}
.tim-provider h1 {
  color: var(--tp-ink);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  padding: 0;
}
.tim-provider-role { font-weight: 600; color: var(--tp-blue); margin-top: 0.35rem !important; }
.tim-provider-summary { font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 40rem; margin-top: 1rem !important; }
.tim-provider-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.tim-provider .tim-provider-btn {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  background: var(--tp-orange);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  text-decoration: none;
}
.tim-provider .tim-provider-btn:hover { background: var(--tp-orange-dark); color: #fff; text-decoration: none; }
.tim-provider .tim-provider-btn--ghost {
  background: #fff;
  color: var(--tp-blue);
  box-shadow: inset 0 0 0 2px var(--tp-sky);
}
.tim-provider .tim-provider-btn--ghost:hover { background: #eef6ff; color: var(--tp-navy); }
.tim-provider-where { margin-top: 1rem !important; font-size: 0.95rem; font-weight: 600; }

/* Body */
.tim-provider-body {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-top: clamp(2rem, 5vw, 3.5rem);
}
.tim-provider-main section + section { margin-top: 2.5rem; }
.tim-provider h2 {
  color: var(--tp-ink);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 0.9rem !important;
  padding: 0;
}
.tim-provider-main p + p { margin-top: 1rem; }
.tim-provider-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none !important; }
.tim-provider-chips li {
  list-style: none;
  margin: 0;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--tp-blue);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}
.tim-provider-chips--soft li {
  background: #fff;
  color: var(--tp-ink);
  border: 1px solid rgba(7, 63, 124, 0.14);
}
.tim-provider-details { background: #fff; border-radius: 1.25rem; box-shadow: var(--tp-shadow-sm); padding: 0.5rem 1.5rem; }
.tim-provider-details div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(7, 63, 124, 0.08);
}
.tim-provider-details div:last-child { border-bottom: 0; }
.tim-provider-details dt {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tp-blue);
  padding-top: 0.15rem;
}
.tim-provider-details dd { color: var(--tp-ink); }
.tim-provider-note { font-size: 0.92rem; margin-top: 0.9rem !important; }

/* Sidebar */
.tim-provider-card {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: var(--tp-shadow-sm);
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.1rem;
}
.tim-provider-card p { font-size: 0.95rem; }
.tim-provider-card ol { padding-left: 1.2rem !important; font-size: 0.95rem; list-style: decimal !important; }
.tim-provider-card ol li { list-style: decimal !important; display: list-item; }
.tim-provider-card li + li { margin-top: 0.5rem; }
.tim-provider-card--feature { background: var(--tp-blue); color: rgba(255, 255, 255, 0.88); }
.tim-provider-card--feature h2 { color: #fff; }
.tim-provider .tim-provider-card--feature a { color: var(--tp-sky); font-weight: 700; }
.tim-provider-card--crisis { background: var(--tp-sun-soft); box-shadow: none; }
.tim-provider-card--crisis h2 { font-size: 1.1rem; }
.tim-provider .tim-provider-card--crisis a { font-weight: 800; text-decoration: underline; }
.tim-provider-link { display: inline-block; margin-top: 0.75rem; font-weight: 700; }

@media (max-width: 60rem) {
  .tim-provider-body { grid-template-columns: 1fr; }
}
@media (max-width: 44rem) {
  .tim-provider-container { width: calc(100% - 2rem); }
  .tim-provider-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .tim-provider-photo { width: 11rem; margin: 0 auto; }
  .tim-provider-summary { margin-inline: auto !important; }
  .tim-provider-actions { justify-content: center; }
  .tim-provider-details div { grid-template-columns: 1fr; gap: 0.2rem; }
}
