/* ============================================================
   TBL MedRCM — Page-Specific Styles
   Small overrides and unique layouts that belong to a single
   page and don't warrant a component class.
   ============================================================ */

/* ── HOME — Mission/Vision section ──────────────────────────── */
.home-mv {
  background: var(--color-tint);
}

/* ── HOME — Services section header row ─────────────────────── */
.services-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--sp-7);
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* ── HOME — Process section ──────────────────────────────────── */
.home-process {
  padding: var(--section-lg);
  background: var(--color-tint);
}

/* ── HOME — FAQ + contact section ───────────────────────────── */
.home-contact-section {
  padding: var(--section-lg);
}

/* ── ABOUT — Split header with rule ─────────────────────────── */
.about-mv-section {
  background: var(--color-tint);
}

/* ── SERVICES PAGE — intro pull ─────────────────────────────── */
.services-intro {
  padding: var(--sp-10) 0 var(--sp-5);
}
.services-intro__pull {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: var(--fw-semibold);
  color: var(--color-navy);
  line-height: 1.45;
  max-width: 640px;
  border-left: 3px solid var(--color-teal);
  padding-left: var(--sp-3);
  margin-top: var(--sp-5);
}

/* ── SERVICE DETAIL — how we do it steps ────────────────────── */
.how-steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}
.how-step {
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
}
.how-step__num {
  width: 28px; height: 28px;
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 12px;
  font-weight: var(--fw-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.how-step p { font-size: var(--text-sm); color: var(--color-ink-light); }

/* ── SPECIALTY DETAIL — challenges zigzag ───────────────────── */
.challenges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}
@media (max-width: 575px) {
  .challenges-grid { grid-template-columns: 1fr; }
}
.challenge-item {
  padding: var(--sp-3);
  border: var(--border-hair);
  border-radius: var(--radius-md);
}
.challenge-item h4 {
  font-size: var(--text-sm);
  margin-bottom: 4px;
}
.challenge-item p { font-size: var(--text-xs); color: var(--color-ink-light); }

/* ── WHY US page — editorial list ───────────────────────────── */
.why-full-list {
  margin-top: var(--sp-7);
}
.why-full-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--sp-3);
  padding: var(--sp-5) 0;
  border-bottom: var(--border-hair);
  align-items: start;
}
.why-full-item:first-child { border-top: var(--border-hair); }
.why-full-item__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: var(--fw-bold);
  color: var(--color-border);
  line-height: 1;
  padding-top: 4px;
}
.why-full-item h3 { font-size: 1.25rem; margin-bottom: var(--sp-1); }
.why-full-item p { font-size: 1rem; color: var(--color-ink-light); }

/* ── PROCESS PAGE — closing line ────────────────────────────── */
.process-closing {
  text-align: center;
  max-width: 640px;
  margin: var(--sp-9) auto 0;
  padding-top: var(--sp-7);
  border-top: var(--border-hair);
}
.process-closing p {
  font-size: 1.0625rem;
  color: var(--color-ink-light);
  line-height: 1.7;
}

/* ── BLOG — grid + sidebar ───────────────────────────────────── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--sp-8);
  align-items: start;
}
@media (max-width: 991px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { display: none; }
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}
@media (max-width: 575px) {
  .blog-grid { grid-template-columns: 1fr; }
}
.blog-sidebar {
  position: sticky;
  top: calc(var(--navbar-h-sm) + var(--sp-4));
}
.sidebar-block {
  background: var(--color-tint);
  border: var(--border-hair);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  margin-bottom: var(--sp-3);
}
.sidebar-block h5 {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-navy);
  margin-bottom: var(--sp-3);
}
.sidebar-search {
  display: flex;
  border: var(--border-hair);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.sidebar-search input {
  flex: 1;
  border: none;
  padding: 0.5rem var(--sp-2);
  font-size: var(--text-sm);
  background: var(--color-white);
}
.sidebar-search input:focus { outline: none; }
.sidebar-search button {
  padding: 0 var(--sp-2);
  background: var(--color-navy);
  color: var(--color-white);
  border: none;
  cursor: pointer;
}
.sidebar-search button svg {
  width: 16px; height: 16px;
  stroke: currentColor; stroke-width: 1.5; fill: none;
}
.newsletter-form input[type="email"] {
  width: 100%;
  border: var(--border-hair);
  border-radius: var(--radius-sm);
  padding: 0.5rem var(--sp-2);
  font-size: var(--text-sm);
  margin-bottom: var(--sp-2);
}
.newsletter-form input[type="email"]:focus { outline: none; border-color: var(--color-teal); }

/* ── 404 page — additional spacing ──────────────────────────── */
.error-page .container { max-width: 560px; }

/* ── LEGAL page last updated ─────────────────────────────────── */
.legal-updated {
  font-size: var(--text-xs);
  color: var(--color-ink-light);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-3);
  border-bottom: var(--border-hair);
}

/* ─── LEGAL pages — hero + body ──────────────────────────────── */
.legal-hero {
  padding: var(--sp-8) 0 var(--sp-6);
  background: var(--color-navy);
}
@media (max-width: 767.98px) {
  .legal-hero {
    padding: 2.25rem 0 1.75rem;
  }
}
.legal-hero .breadcrumb { margin-bottom: var(--sp-3); }
.legal-hero .breadcrumb a,
.legal-hero .breadcrumb__sep { color: rgba(255,255,255,0.55); }
.legal-hero .breadcrumb__current { color: rgba(255,255,255,0.75); }
.legal-hero h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0;
}
.legal-date {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  margin-top: var(--sp-1);
}
.legal-body {
  max-width: 780px;
  padding-top: var(--sp-8);
  padding-bottom: var(--sp-8);
}
.legal-intro {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-ink-light);
  border-left: 3px solid var(--color-teal);
  padding-left: var(--sp-3);
  margin-bottom: var(--sp-6);
}
.legal-body h2 {
  font-size: 1.375rem;
  color: var(--color-navy);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-2);
  padding-bottom: var(--sp-1);
  border-bottom: var(--border-hair);
}
.legal-body p { color: var(--color-ink-light); line-height: 1.7; margin-bottom: var(--sp-2); }
.legal-body ul {
  color: var(--color-ink-light);
  line-height: 1.7;
  padding-left: var(--sp-4);
  margin-bottom: var(--sp-3);
}
.legal-body ul li { margin-bottom: var(--sp-1); }
.legal-body a { color: var(--color-teal); }
.legal-body a:hover { text-decoration: underline; }

/* ─── 404 page ───────────────────────────────────────────────── */
.four-zero-four {
  min-height: calc(100vh - var(--navbar-h));
  display: flex;
  align-items: center;
  background: var(--color-tint);
}
@media (max-width: 767.98px) {
  .four-zero-four {
    min-height: calc(100vh - 64px);
  }
}
.error-page {
  width: 100%;
  text-align: center;
  padding: var(--sp-9) 0;
}
.error-page .container { max-width: 560px; }
.error-page__num {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: var(--fw-bold);
  color: var(--color-navy);
  line-height: 1;
  margin-bottom: var(--sp-3);
}
.error-num-circle {
  width: clamp(70px, 14vw, 140px);
  height: clamp(70px, 14vw, 140px);
  border: 3px solid var(--color-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.error-num-circle svg {
  width: 55%;
  height: 55%;
  stroke: var(--color-teal);
  stroke-width: 1.5;
  fill: none;
}
.error-page h1 { font-size: var(--text-h2); margin: var(--sp-2) 0; }
.error-page p { color: var(--color-ink-light); margin-bottom: var(--sp-5); }
.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: center;
  margin-bottom: var(--sp-5);
}
.error-contact a { color: var(--color-teal); font-weight: var(--fw-medium); }

/* ─── section--sm spacing variant ────────────────────────────── */
.section--sm { padding: var(--sp-8) 0; }

/* ─── Service zigzag sections ─────────────────────────────────── */
.service-zigzag { padding: var(--sp-8) 0; }

/* ─── Process page image caption ─────────────────────────────── */
.process-vitem__img {
  margin-top: var(--sp-3);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.process-vitem__img img { width: 100%; height: auto; display: block; }

/* ─── Blog post layout ────────────────────────────────────────── */
.post-sidebar { position: sticky; top: calc(var(--navbar-h-sm) + var(--sp-4)); }
@media (max-width: 991px) {
  .post-sidebar { display: none; }
}
.toc a {
  font-size: var(--text-sm);
  color: var(--color-ink-light);
  display: block;
  padding: 3px 0;
  transition: color var(--dur-fast);
}
.toc a:hover { color: var(--color-teal); }
.toc ol { margin: var(--sp-2) 0; padding-left: var(--sp-3); }
.toc li { list-style: decimal; font-size: var(--text-sm); margin-bottom: 4px; }

