/*
Theme Name: Sallaum Medical Center - WebVue
Theme URI: https://webvue.com.lb/
Author: WebVue
Author URI: https://webvue.com.lb/
Description: Faithful WordPress integration of the Sallaum Medical Center React website, with WordPress-native form submissions, secure reCAPTCHA v3 verification and Fluent SMTP support.
Version: 1.1.17
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: smc-webvue
License: Proprietary - commissioned website assets retained from client-supplied export
*/

/*
 * WebVue theme overrides
 * v1.1.1 - urgent visual corrections requested by client
 */

/* 1) Restore a slightly larger type scale to match the original site appearance */
html {
  font-size: 16px;
}

body.smc-website .text-xs {
  font-size: 0.8125rem !important;
  line-height: 1.25rem !important;
}

body.smc-website .text-sm {
  font-size: 0.9375rem !important;
  line-height: 1.45rem !important;
}

body.smc-website .text-4xl {
  font-size: 2.6rem !important;
  line-height: 1.08 !important;
}

body.smc-website .text-5xl {
  font-size: 3.35rem !important;
  line-height: 1.03 !important;
}

body.smc-website .text-6xl {
  font-size: 4.15rem !important;
  line-height: 1 !important;
}

@media (min-width: 768px) {
  body.smc-website .md\:text-5xl {
    font-size: 3.6rem !important;
    line-height: 1.02 !important;
  }

  body.smc-website .md\:text-6xl {
    font-size: 4.5rem !important;
    line-height: 1 !important;
  }
}

body.smc-website header nav a,
body.smc-website header .text-xs,
body.smc-website header .text-sm {
  font-size: 0.9rem !important;
}

/* 2) Brighten the Emergency Services help card so the image matches the adjacent card better */
body.smc-website div.bg-neutral-900.rounded-3xl.p-8.flex.flex-col.overflow-hidden {
  background: #ffffff !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08) !important;
}

body.smc-website div.bg-neutral-900.rounded-3xl.p-8.flex.flex-col.overflow-hidden > img.absolute.inset-0.w-full.h-full.object-cover {
  opacity: 0.34 !important;
  filter: brightness(1.08) contrast(1.02) saturate(0.95) !important;
}

body.smc-website div.bg-neutral-900.rounded-3xl.p-8.flex.flex-col.overflow-hidden > div.w-14.h-14 {
  background: rgba(6, 79, 136, 0.08) !important;
}

body.smc-website div.bg-neutral-900.rounded-3xl.p-8.flex.flex-col.overflow-hidden > div.w-14.h-14 svg {
  color: #064f88 !important;
}

body.smc-website div.bg-neutral-900.rounded-3xl.p-8.flex.flex-col.overflow-hidden h3 {
  color: #0f172a !important;
}

body.smc-website div.bg-neutral-900.rounded-3xl.p-8.flex.flex-col.overflow-hidden p.flex-1 {
  color: #475569 !important;
}

body.smc-website div.bg-neutral-900.rounded-3xl.p-8.flex.flex-col.overflow-hidden span {
  color: #64748b !important;
}

body.smc-website div.bg-neutral-900.rounded-3xl.p-8.flex.flex-col.overflow-hidden p.text-3xl {
  color: #064f88 !important;
}

body.smc-website div.bg-neutral-900.rounded-3xl.p-8.flex.flex-col.overflow-hidden a {
  background: #064f88 !important;
  color: #ffffff !important;
  border-color: #064f88 !important;
}

body.smc-website div.bg-neutral-900.rounded-3xl.p-8.flex.flex-col.overflow-hidden a:hover {
  background: #033a64 !important;
  border-color: #033a64 !important;
}


/*
 * v1.1.2 - brighten dark imagery across internal tabs and reposition cover photos
 */

/* 3) Internal tab hero/cover images: show more of the SMC mark and reduce excessive darkness */
body.smc-website section.relative.bg-neutral-900.overflow-hidden.py-28 > img.absolute.inset-0.w-full.h-full.object-cover {
  opacity: 0.32 !important;
  object-position: center 18% !important;
  filter: brightness(1.12) contrast(1.03) saturate(0.98) !important;
}

/* keep the hero itself slightly lighter so the image reads more naturally while text stays clear */
body.smc-website section.relative.bg-neutral-900.overflow-hidden.py-28 {
  background-color: #162235 !important;
}

/* 4) About Us mission / values cards: enhance picture brightness */
body.smc-website div.bg-primary.rounded-3xl.p-10.relative.overflow-hidden > img.absolute.inset-0.w-full.h-full.object-cover,
body.smc-website div.bg-neutral-900.rounded-3xl.p-10.relative.overflow-hidden > img.absolute.inset-0.w-full.h-full.object-cover {
  opacity: 0.24 !important;
  filter: brightness(1.18) contrast(1.02) saturate(0.96) !important;
}

body.smc-website div.bg-primary.rounded-3xl.p-10.relative.overflow-hidden {
  background: linear-gradient(135deg, #0a5f9f 0%, #064f88 100%) !important;
}

body.smc-website div.bg-neutral-900.rounded-3xl.p-10.relative.overflow-hidden {
  background: linear-gradient(135deg, #24364f 0%, #182538 100%) !important;
}

/* 5) Generic helper for other dark image blocks throughout tabs */
body.smc-website div.relative.overflow-hidden.bg-neutral-900 > img.absolute.inset-0.w-full.h-full.object-cover,
body.smc-website div.bg-neutral-900.rounded-3xl.relative.overflow-hidden > img.absolute.inset-0.w-full.h-full.object-cover {
  filter: brightness(1.12) contrast(1.03) saturate(0.98) !important;
}


/* v1.1.15 — Harmonized paragraph typography across all public pages.
   Previous v1.1.4 rule set every paragraph to 16px even when the React
   source requested full-size body copy; that also shrank numerical figures.
   Increase real prose while retaining labels, counters and metadata sizes. */
body.smc-website {
  --smc-paragraph-size: 1.25rem; /* 20px on desktop */
  --smc-paragraph-leading: 1.75;
}
body.smc-website main p:not(.smc-hero-summary):not(.uppercase):not([class*="tracking-"]):not([class*="text-xs"]):not([class*="text-xl"]):not([class*="text-2xl"]):not([class*="text-3xl"]):not([class*="text-4xl"]):not([class*="font-bold"]):not([class*="font-semibold"]),
body.smc-website footer p:not(.uppercase):not([class*="tracking-"]):not([class*="text-xs"]):not([class*="text-xl"]):not([class*="text-2xl"]):not([class*="text-3xl"]):not([class*="text-4xl"]):not([class*="font-bold"]):not([class*="font-semibold"]) {
  font-size: var(--smc-paragraph-size) !important;
  line-height: var(--smc-paragraph-leading) !important;
}
@media (max-width: 639px) {
  body.smc-website {
    --smc-paragraph-size: 1.15rem; /* 18.4px on mobile */
    --smc-paragraph-leading: 1.7;
  }
}

/* SMC v1.1.8 - internal heroes: preserve the prominent wall-mounted logo. */
body.smc-website main > section.relative.bg-neutral-900.overflow-hidden.py-28 {
  position: relative;
  isolation: isolate;
  background: #142237 !important;
}
body.smc-website main > section.relative.bg-neutral-900.overflow-hidden.py-28 > img.absolute.inset-0.w-full.h-full.object-cover {
  object-fit: cover !important;
  object-position: center top !important;
  opacity: 0.98 !important;
  filter: brightness(1.08) contrast(1.02) !important;
  z-index: 0;
}
body.smc-website main > section.relative.bg-neutral-900.overflow-hidden.py-28::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(9,22,39,.83) 0%, rgba(9,22,39,.75) 28%, rgba(9,22,39,.48) 47%, rgba(9,22,39,.08) 74%, rgba(9,22,39,.16) 100%);
}
body.smc-website main > section.relative.bg-neutral-900.overflow-hidden.py-28 > div.relative.z-10 {
  z-index: 2;
}
body.smc-website main > section.relative.bg-neutral-900.overflow-hidden.py-28 > div.relative.z-10 > div.max-w-3xl,
body.smc-website main > section.relative.bg-neutral-900.overflow-hidden.py-28 > div.relative.z-10 > div.grid > div:first-child {
  max-width: 44rem !important;
}
body.smc-website main > section.relative.bg-neutral-900.overflow-hidden.py-28 h1 {
  font-size: clamp(2.7rem, 4.1vw, 4.15rem) !important;
  line-height: 1.075 !important;
  text-wrap: balance;
}
body.smc-website main > section.relative.bg-neutral-900.overflow-hidden.py-28 p.text-white\/55 {
  color: rgba(255,255,255,.86) !important;
}
@media (min-width: 1100px) {
  body.smc-website main > section.relative.bg-neutral-900.overflow-hidden.py-28 > div.relative.z-10 > div.max-w-3xl {
    max-width: min(43rem, 49%) !important;
  }
  body.smc-website main > section.relative.bg-neutral-900.overflow-hidden.py-28 > div.relative.z-10 > div.grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
@media (max-width: 767px) {
  body.smc-website main > section.relative.bg-neutral-900.overflow-hidden.py-28 {
    padding-top: 12.5rem !important;
    padding-bottom: 4rem !important;
  }
  body.smc-website main > section.relative.bg-neutral-900.overflow-hidden.py-28 > img.absolute.inset-0.w-full.h-full.object-cover {
    object-position: 60% top !important;
  }
  body.smc-website main > section.relative.bg-neutral-900.overflow-hidden.py-28::before {
    background: linear-gradient(180deg, rgba(9,22,39,.08), rgba(9,22,39,.25) 17%, rgba(9,22,39,.76) 42%, rgba(9,22,39,.92) 100%);
  }
  body.smc-website main > section.relative.bg-neutral-900.overflow-hidden.py-28 h1 {
    font-size: clamp(2.35rem, 8vw, 3.2rem) !important;
  }
}

/* SMC News & Events detail gallery – clean, consistent tile sizing. */
body.smc-website .smc-story-gallery {
  margin: 3.5rem 0 1rem;
  padding: 2rem 0 0;
  border-top: 1px solid #e5eaf0;
  max-width: 100%;
}
body.smc-website .smc-story-gallery__intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 1rem;
  margin-bottom: 1.5rem;
}
body.smc-website .smc-story-gallery__intro h2 {
  margin: 0 !important;
  font-size: clamp(1.55rem,2.3vw,2rem) !important;
  line-height: 1.25 !important;
  font-weight: 750;
  color: #0c3655;
}
body.smc-website .smc-story-gallery__intro p {
  color: #66758b;
  font-size: .94rem !important;
  margin: 0 !important;
}
body.smc-website .smc-story-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}
body.smc-website .smc-story-gallery__tile {
  aspect-ratio: 4 / 3;
  min-width: 0;
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid #e4eaf1;
  border-radius: 13px;
  background: #f2f5f8;
  text-decoration: none !important;
  box-shadow: 0 4px 18px rgba(16,47,75,.045);
  transition: box-shadow .2s ease, transform .2s ease;
}
body.smc-website .smc-story-gallery__tile:hover,
body.smc-website .smc-story-gallery__tile:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 9px 24px rgba(16,47,75,.14);
  outline-color: #064f88;
}
body.smc-website .smc-story-gallery__tile img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  object-fit: contain;
  object-position: center;
  border-radius: 0 !important;
  background: #f2f5f8;
}
body.smc-website .smc-story-gallery__expand {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 5px 8px;
  border-radius: 7px;
  color: white;
  background: rgba(11,32,52,.7);
  backdrop-filter: blur(4px);
  font-size: 11px;
  font-weight: 600;
  opacity: 0;
  transition: opacity .2s ease;
}
body.smc-website .smc-story-gallery__tile:is(:hover,:focus-visible) .smc-story-gallery__expand { opacity: 1; }
@media (max-width: 920px) {
  body.smc-website .smc-story-gallery__grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 620px) {
  body.smc-website .smc-story-gallery__grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  body.smc-website .smc-story-gallery { margin-top: 2.25rem; }
}

/* Modal is appended to body, outside the React app. */
.smc-gallery-lightbox[hidden] { display: none !important; }
.smc-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: rgba(4,16,29,.95);
  display: grid;
  grid-template-columns: minmax(54px,1fr) minmax(0, min(1120px,calc(100vw - 130px))) minmax(54px,1fr);
  grid-template-rows: 65px minmax(0,1fr) 54px;
  align-items: center;
  justify-items: center;
  color: #fff;
}
.smc-gallery-lightbox__image {
  grid-column: 2; grid-row: 2;
  max-width: 100%; max-height: calc(100vh - 150px);
  width: auto; height: auto; object-fit: contain; border-radius: 7px;
}
.smc-gallery-lightbox__close,
.smc-gallery-lightbox__prev,
.smc-gallery-lightbox__next {
  cursor: pointer;
  color: white;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 100px;
  background: rgba(255,255,255,.13);
  font-size: 24px;
  line-height: 1;
  width: 44px; height: 44px;
}
.smc-gallery-lightbox__close { grid-column: 3; grid-row: 1; }
.smc-gallery-lightbox__prev { grid-column: 1; grid-row: 2; }
.smc-gallery-lightbox__next { grid-column: 3; grid-row: 2; }
.smc-gallery-lightbox__counter { grid-column: 2; grid-row: 3; color: rgba(255,255,255,.8); font-size: .95rem; }
@media (max-width: 600px) {
  .smc-gallery-lightbox { grid-template-columns: 50px minmax(0,1fr) 50px; }
  .smc-gallery-lightbox__image { max-height: calc(100vh - 145px); }
}

/* Detail cover image: editorial proportion even for tall portrait source photographs. */
body.smc-website main > section.max-w-5xl.mx-auto.px-4 > div.rounded-3xl.overflow-hidden.shadow-2xl {
  background: #f2f5f8 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}
body.smc-website main > section.max-w-5xl.mx-auto.px-4 > div.rounded-3xl.overflow-hidden.shadow-2xl img {
  display: block;
  width: 100% !important;
  height: min(48vw, 460px) !important;
  max-height: 460px !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #f2f5f8 !important;
}
@media(max-width: 620px) {
  body.smc-website main > section.max-w-5xl.mx-auto.px-4 > div.rounded-3xl.overflow-hidden.shadow-2xl img {
    height: 270px !important;
    max-height: 270px !important;
  }
}

/* Tablet image crop and text/logo separation; mobile preserves the upper SMC mark. */
@media (min-width: 768px) and (max-width: 1099px) {
  body.smc-website main > section.relative.bg-neutral-900.overflow-hidden.py-28 > img.absolute.inset-0.w-full.h-full.object-cover {
    object-position: 25% top !important;
  }
  body.smc-website main > section.relative.bg-neutral-900.overflow-hidden.py-28 > div.relative.z-10 > div.max-w-3xl {
    max-width: 54% !important;
  }
  body.smc-website main > section.relative.bg-neutral-900.overflow-hidden.py-28 h1 {
    font-size: clamp(2.4rem, 4.3vw, 3.4rem) !important;
  }
}
@media (max-width: 620px) {
  body.smc-website main > section.relative.bg-neutral-900.overflow-hidden.py-28 {
    padding-top: 16rem !important;
  }
}


/* ------------------------------------------------------------------------
 * SMC News & Events visual refinements (1.1.9)
 * - Cards are full clickable links; cover image occupies entire media frame.
 * - Event gallery tiles grow and use editorial full-bleed thumbnails.
 * - Full-size images remain uncropped inside accessible modal view.
 * ------------------------------------------------------------------------ */
body.smc-website a.smc-news-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none !important;
  cursor: pointer;
  position: relative;
  outline-offset: 4px;
  min-width: 0;
}
body.smc-website a.smc-news-card:focus-visible {
  outline: 3px solid #064f88;
  box-shadow: 0 16px 36px rgba(6,79,136,.17);
}
body.smc-website a.smc-news-card .smc-news-card__image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center;
  background: #e9eff4;
}
body.smc-website a.smc-news-card:hover .smc-news-card__image,
body.smc-website a.smc-news-card:focus-visible .smc-news-card__image {
  transform: scale(1.04);
}

/* Break the gallery out of the article body column, but never exceed the viewport. */
body.smc-website .smc-story-gallery {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100vw - 48px));
  max-width: none !important;
  margin-top: 3.5rem;
  margin-bottom: 2rem;
}
body.smc-website .smc-story-gallery__grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.35vw, 20px);
}
body.smc-website .smc-story-gallery__tile {
  aspect-ratio: 4 / 3;
  width: 100%;
  background: #e9eff4;
  border-radius: 14px;
}
body.smc-website .smc-story-gallery__tile img {
  display: block;
  object-fit: cover !important;
  object-position: center !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  background: transparent !important;
  transition: transform .3s ease;
}
body.smc-website .smc-story-gallery__tile:is(:hover,:focus-visible) img {
  transform: scale(1.035);
}
@media (max-width: 920px) {
  body.smc-website .smc-story-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}
@media (max-width: 620px) {
  body.smc-website .smc-story-gallery {
    width: calc(100vw - 32px);
    margin-top: 2.5rem;
  }
  body.smc-website .smc-story-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  body.smc-website .smc-story-gallery__tile {
    aspect-ratio: 3 / 4;
    border-radius: 10px;
  }
}
@media (max-width: 400px) {
  body.smc-website .smc-story-gallery__grid {
    grid-template-columns: 1fr;
  }
  body.smc-website .smc-story-gallery__tile {
    aspect-ratio: 4 / 3;
  }
}

/* Main article cover also fills its wide banner; lightbox retains full original. */
body.smc-website main > section.max-w-5xl.mx-auto.px-4 > div.rounded-3xl.overflow-hidden.shadow-2xl {
  background: #e9eff4 !important;
  overflow: hidden;
}
body.smc-website main > section.max-w-5xl.mx-auto.px-4 > div.rounded-3xl.overflow-hidden.shadow-2xl img {
  width: 100% !important;
  height: clamp(240px, 36vw, 520px) !important;
  max-height: 520px !important;
  object-fit: cover !important;
  object-position: center 50% !important;
  background: transparent !important;
}
@media (max-width: 620px) {
  body.smc-website main > section.max-w-5xl.mx-auto.px-4 > div.rounded-3xl.overflow-hidden.shadow-2xl img {
    height: clamp(230px, 72vw, 350px) !important;
  }
}


/* SMC v1.1.10 — News/Events article typography.
   The source bundle ships Tailwind's preflight reset without the Typography plugin.
   These rules intentionally apply only to the article content column. */
body.smc-website .smc-article-content {
  color: #334155;
  font-size: var(--smc-paragraph-size);
  font-weight: 400;
  line-height: 1.82;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-rendering: optimizeLegibility;
}
body.smc-website .smc-article-content > :first-child { margin-top: 0 !important; }
body.smc-website .smc-article-content > :last-child { margin-bottom: 0 !important; }
body.smc-website .smc-article-content p,
body.smc-website .smc-article-content p:not(.uppercase):not([class*="tracking-widest"]) {
  margin: 0 0 1.25rem !important;
  font-size: var(--smc-paragraph-size) !important;
  line-height: 1.8 !important;
  color: #334155 !important;
}
body.smc-website .smc-article-content h1,
body.smc-website .smc-article-content h2,
body.smc-website .smc-article-content h3,
body.smc-website .smc-article-content h4 {
  font-family: inherit;
  font-weight: 750;
  line-height: 1.28;
  color: #073d67 !important;
  letter-spacing: -.018em;
}
body.smc-website .smc-article-content h2 {
  margin: 2rem 0 .85rem !important;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem) !important;
}
body.smc-website .smc-article-content h3 {
  margin: 1.75rem 0 .8rem !important;
  font-size: clamp(1.25rem, 1.8vw, 1.45rem) !important;
}
body.smc-website .smc-article-content h4 {
  margin: 1.5rem 0 .75rem !important;
  font-size: 1.125rem !important;
}
body.smc-website .smc-article-content ul,
body.smc-website .smc-article-content ol {
  padding-inline-start: 1.75rem !important;
  margin: .75rem 0 1.65rem !important;
  list-style-position: outside !important;
}
body.smc-website .smc-article-content ul { list-style-type: disc !important; }
body.smc-website .smc-article-content ol { list-style-type: decimal !important; }
body.smc-website .smc-article-content li {
  display: list-item !important;
  margin: .5rem 0 !important;
  padding-inline-start: .2rem;
  font-size: var(--smc-paragraph-size) !important;
  line-height: var(--smc-paragraph-leading) !important;
  color: #334155;
}
body.smc-website .smc-article-content li::marker { color: #075b94; }
body.smc-website .smc-article-content li > p { margin-bottom: .5rem !important; }
body.smc-website .smc-article-content strong,
body.smc-website .smc-article-content b {
  color: #173e60 !important;
  font-weight: 700;
}
body.smc-website .smc-article-content a:not(.smc-story-gallery__tile) {
  color: #075b94 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.smc-website .smc-article-content blockquote {
  border-inline-start: 3px solid #0c6ea8;
  padding-inline-start: 1.25rem;
  margin: 1.6rem 0;
  color: #475569;
}
body.smc-website .smc-article-content :where(img):not(.smc-story-gallery__tile img) {
  max-width: 100%;
  height: auto;
}
@media (max-width: 639px) {
  body.smc-website .smc-article-content { font-size: var(--smc-paragraph-size); line-height: 1.75; }
  body.smc-website .smc-article-content p,
  body.smc-website .smc-article-content p:not(.uppercase):not([class*="tracking-widest"]) {
    font-size: var(--smc-paragraph-size) !important;
    line-height: 1.75 !important;
    margin-bottom: 1.1rem !important;
  }
  body.smc-website .smc-article-content ul,
  body.smc-website .smc-article-content ol { padding-inline-start: 1.4rem !important; }
}

/* SMC v1.1.10 — newsletter geometry; uniform across every route.
   The label and inputs share a two-column grid, then stack cleanly on phones. */
body.smc-website footer .smc-newsletter-layout {
  display: grid !important;
  grid-template-columns: minmax(180px, 225px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 42px) !important;
  align-items: center !important;
  width: 100%;
}
body.smc-website footer .smc-newsletter-label {
  min-width: 0;
  text-align: start;
}
body.smc-website footer .smc-newsletter-label p:first-child {
  margin: 0 0 .4rem !important;
  font-size: .78rem !important;
  line-height: 1.4 !important;
  letter-spacing: .12em;
}
body.smc-website footer .smc-newsletter-label p:last-child {
  margin: 0 !important;
  font-size: clamp(1.35rem, 2vw, 1.65rem) !important;
  line-height: 1.22 !important;
  letter-spacing: -.01em;
}
body.smc-website footer .smc-newsletter-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 54px;
  column-gap: 14px !important;
  row-gap: 12px !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  margin: 0;
}
body.smc-website footer .smc-newsletter-form input {
  box-sizing: border-box;
  min-width: 0 !important;
  width: 100% !important;
  height: 54px !important;
  min-height: 54px;
  padding: 0 18px !important;
  border-radius: 10px;
  font-size: 1rem !important;
  line-height: normal !important;
}
body.smc-website footer .smc-newsletter-form button[type="submit"] {
  width: 54px !important;
  height: 54px !important;
  min-height: 54px;
  border-radius: 10px;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 850px) {
  body.smc-website footer .smc-newsletter-layout {
    grid-template-columns: 1fr;
    gap: 18px !important;
    padding-block: 30px !important;
  }
  body.smc-website footer .smc-newsletter-label { width: 100%; }
}
@media (max-width: 520px) {
  body.smc-website footer .smc-newsletter-form {
    grid-template-columns: minmax(0,1fr) 54px;
    gap: 10px !important;
  }
  body.smc-website footer .smc-newsletter-form input[type="text"] { grid-column: 1 / -1; }
  body.smc-website footer .smc-newsletter-form input[type="email"] { grid-column: 1; }
  body.smc-website footer .smc-newsletter-form button[type="submit"] { grid-column: 2; }
}


/* v1.1.11 — align News & Events single-article heading, image and body. */
body.smc-website .smc-article-container {
  width: 100%;
  max-width: 64rem; /* Matches 1024px cover image and header */
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Replace the previous narrow article text column with the cover's column.
 * No added horizontal indentation; the first paragraph starts at the image edge. */
body.smc-website .smc-article-container .smc-article-content {
  width: 100%;
  max-width: none !important;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
  text-align: start;
}

/* Keep an editorial separation between the image and opening paragraph, not an oversized gap. */
body.smc-website .smc-article-body-section {
  padding-top: clamp(2.25rem, 4.5vw, 3rem) !important;
  padding-bottom: clamp(2.75rem, 5vw, 4rem) !important;
}

@media (max-width: 639px) {
  body.smc-website .smc-article-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  body.smc-website .smc-article-body-section {
    padding-top: 2rem !important;
    padding-bottom: 2.5rem !important;
  }
}


/* v1.1.14 — fix the desktop crop that cut off the SMC lettering.
 * The earlier top:-52px / -68px moved the existing photograph outside the
 * banner and inadvertently cropped the already close-to-the-top letter C.
 * Keep the original asset fully aligned to the top edge and let object-fit
 * crop only at the bottom. Use the same rule on About, Departments, Doctors,
 * News & Events and Contact, which all share this hero component.
 * Note: the photograph itself has a slightly tight top crop; CSS cannot
 * reconstruct pixels absent from the original source photo.
 */
@media (min-width: 768px) {
  body.smc-website main > section.relative.bg-neutral-900.overflow-hidden.py-28 > img.absolute.inset-0.w-full.h-full.object-cover {
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 50% 0% !important;
    transform: none !important;
  }
}
/* The small-screen composition remains top-anchored with the horizontal focal
 * point shifted toward the wall logo; image is never offset above the hero. */
@media (max-width: 767px) {
  body.smc-website main > section.relative.bg-neutral-900.overflow-hidden.py-28 > img.absolute.inset-0.w-full.h-full.object-cover {
    inset: 0 !important;
    height: 100% !important;
    top: 0 !important;
    object-position: 60% 0% !important;
  }
}


/* v1.1.16 — improve the small UI labels specifically highlighted by SMC.
   These are NOT paragraph-size changes; previous releases already increased
   general body copy to 20px/18.4px. Targeted semantic hooks avoid inflating
   icons, dates, cards, and other unrelated components. */

/* Header navigation and appointment CTA on full-width desktop. */
body.smc-website .smc-main-header .smc-desktop-nav .smc-header-navlink {
  font-size: clamp(15.2px, 0.98vw, 16.5px) !important;
  line-height: 1.35 !important;
  letter-spacing: 0.015em !important;
  padding-inline: 9px !important;
  font-weight: 650 !important;
}
body.smc-website .smc-main-header .smc-header-book {
  font-size: 15px !important;
  line-height: 1.35 !important;
  padding-inline: 17px !important;
  letter-spacing: 0.01em !important;
}
body.smc-website .smc-main-header .smc-desktop-nav .smc-header-navlink:not(.text-primary) {
  color: #475569 !important;
}
body.smc-website .smc-header-topbar span,
body.smc-website .smc-header-topbar button {
  font-size: 13px !important;
  line-height: 1.4 !important;
}

/* Maintain a safe header layout on smaller laptop widths. The expanded
   navigation needs more width once labels are readable; show the existing
   compact menu up to 1279px instead of compressing six links. */
@media (min-width: 1024px) and (max-width: 1279px) {
  body.smc-website .smc-main-header > div.hidden.lg\:grid {
    display: none !important;
  }
  body.smc-website .smc-main-header > div.lg\:hidden {
    display: flex !important;
  }
  body.smc-website .smc-main-header > div.lg\:hidden + div.lg\:hidden {
    display: block !important;
  }
}
body.smc-website .smc-main-header .smc-mobile-navlink {
  font-size: 17px !important;
  line-height: 1.45 !important;
}
body.smc-website .smc-main-header .smc-mobile-book {
  font-size: 16px !important;
  line-height: 1.4 !important;
}

/* The homepage hero location/date, supporting sentence, actions and facts. */
body.smc-website .smc-home-hero .smc-hero-eyebrow > span:not(.relative):not(.h-4) {
  font-size: 15px !important;
  line-height: 1.5 !important;
  letter-spacing: 0.12em !important;
}
body.smc-website .smc-home-hero .smc-hero-summary {
  font-size: 22px !important;
  line-height: 1.6 !important;
  max-width: 48rem !important;
  color: rgba(255,255,255,.86) !important;
}
body.smc-website .smc-home-hero .smc-hero-actions a {
  font-size: 17px !important;
  line-height: 1.35 !important;
  font-weight: 650 !important;
  min-height: 52px;
  padding-inline: 26px !important;
}
body.smc-website .smc-home-hero .smc-hero-facts > span {
  font-size: 16px !important;
  line-height: 1.4 !important;
  color: rgba(255,255,255,.85) !important;
}
body.smc-website .smc-home-hero .smc-hero-scroll-label {
  font-size: 12px !important;
  letter-spacing: .18em !important;
}
/* Other internal page hero eyebrow labels should be readable as well. */
body.smc-website main > section.relative.bg-neutral-900.overflow-hidden.py-28 p.text-xs.uppercase {
  font-size: 14px !important;
  line-height: 1.45 !important;
}

@media (max-width: 639px) {
  body.smc-website .smc-home-hero .smc-hero-eyebrow {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 6px;
    margin-bottom: 24px;
  }
  body.smc-website .smc-home-hero .smc-hero-eyebrow > span:not(.relative):not(.h-4) {
    font-size: 12.5px !important;
    letter-spacing: .075em !important;
  }
  body.smc-website .smc-home-hero .smc-hero-summary {
    font-size: 19px !important;
    line-height: 1.55 !important;
    max-width: 100% !important;
  }
  body.smc-website .smc-home-hero .smc-hero-actions {
    gap: 12px !important;
  }
  body.smc-website .smc-home-hero .smc-hero-actions a {
    font-size: 15px !important;
    min-height: 48px;
    padding-inline: 19px !important;
  }
  body.smc-website .smc-home-hero .smc-hero-facts {
    gap: 12px 18px !important;
  }
  body.smc-website .smc-home-hero .smc-hero-facts > span {
    font-size: 13px !important;
  }
  body.smc-website .smc-header-topbar span,
  body.smc-website .smc-header-topbar button {
    font-size: 12px !important;
  }
}
@media (min-width: 640px) and (max-width: 1023px) {
  body.smc-website .smc-home-hero .smc-hero-summary {
    font-size: 20px !important;
  }
  body.smc-website .smc-home-hero .smc-hero-actions a {
    font-size: 16px !important;
  }
  body.smc-website .smc-home-hero .smc-hero-eyebrow > span:not(.relative):not(.h-4) {
    font-size: 14px !important;
  }
}


/* SMC v1.1.17 — enlarge homepage News & Events cards and footer text.
   The site-wide paragraph system does not cover compact card headings,
   category badges, dates, links, contact details or the footer headings.
   Named component hooks avoid unintended changes to navigation and hero layout. */

/* Homepage News & Events featured and compact cards */
body.smc-website main .smc-home-news-card { min-width: 0; }
body.smc-website main .smc-home-news-card h3 {
  font-size: clamp(1.25rem, 1.65vw, 1.55rem) !important;
  line-height: 1.32 !important;
  letter-spacing: -.012em;
}
body.smc-website main .smc-home-news-card--featured h3 {
  font-size: clamp(1.5rem, 2.05vw, 1.85rem) !important;
  line-height: 1.27 !important;
}
body.smc-website main .smc-home-news-card p.text-sm {
  font-size: 1.14rem !important;
  line-height: 1.65 !important;
  color: #475569;
}
body.smc-website main .smc-home-news-card--compact p.text-sm {
  font-size: 1.045rem !important;
  line-height: 1.6 !important;
}
body.smc-website main .smc-home-news-card .text-xs {
  font-size: .89rem !important;
  line-height: 1.45 !important;
}
body.smc-website main .smc-home-news-card .text-sm:not(p) {
  font-size: 1rem !important;
  line-height: 1.48 !important;
}
body.smc-website main .smc-home-news-card--compact .text-sm:not(p) {
  font-size: .965rem !important;
}
body.smc-website main .smc-home-news-card--featured .text-2xl {
  font-size: 1.85rem !important;
}

/* Footer headings, navigation columns, contact details and newsletter. */
body.smc-website footer.smc-footer .smc-footer-heading {
  font-size: 1.065rem !important;
  line-height: 1.45 !important;
  letter-spacing: .075em !important;
  margin-bottom: 1.15rem;
}
body.smc-website footer.smc-footer .smc-footer-link {
  display: inline-block;
  font-size: 1.085rem !important;
  line-height: 1.55 !important;
  overflow-wrap: anywhere;
}
body.smc-website footer.smc-footer .smc-footer-about {
  font-size: 1.085rem !important;
  line-height: 1.68 !important;
}
body.smc-website footer.smc-footer .smc-footer-contact-line,
body.smc-website footer.smc-footer .smc-footer-contact-line span {
  font-size: 1.03rem !important;
  line-height: 1.58 !important;
  overflow-wrap: anywhere;
}
body.smc-website footer.smc-footer .smc-footer-copyright {
  font-size: .95rem !important;
  line-height: 1.55 !important;
}
body.smc-website footer.smc-footer .smc-newsletter-label p:first-child {
  font-size: .9rem !important;
}
body.smc-website footer.smc-footer .smc-newsletter-label p:last-child {
  font-size: clamp(1.6rem, 2.3vw, 1.9rem) !important;
}
body.smc-website footer.smc-footer .smc-newsletter-form input {
  font-size: 1.08rem !important;
}

/* Avoid crowding four footer columns on mid-width laptops. */
@media (min-width: 1024px) and (max-width: 1199px) {
  body.smc-website footer.smc-footer .grid.lg\:grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 2rem 3rem;
  }
}
@media (max-width: 639px) {
  body.smc-website main .smc-home-news-card h3,
  body.smc-website main .smc-home-news-card--featured h3 {
    font-size: 1.4rem !important;
  }
  body.smc-website main .smc-home-news-card p.text-sm,
  body.smc-website main .smc-home-news-card--compact p.text-sm {
    font-size: 1.06rem !important;
    line-height: 1.6 !important;
  }
  body.smc-website main .smc-home-news-card .text-xs { font-size: .82rem !important; }
  body.smc-website footer.smc-footer .smc-footer-heading { font-size: 1.02rem !important; }
  body.smc-website footer.smc-footer .smc-footer-link,
  body.smc-website footer.smc-footer .smc-footer-about { font-size: 1.02rem !important; }
  body.smc-website footer.smc-footer .smc-footer-contact-line,
  body.smc-website footer.smc-footer .smc-footer-contact-line span { font-size: 1rem !important; }
  body.smc-website footer.smc-footer .smc-footer-copyright { font-size: .89rem !important; }
}

/* Home news header / browse link share the same readable text hierarchy. */
body.smc-website main .smc-home-news-section p.text-xs.uppercase {
  font-size: .91rem !important;
  line-height: 1.45 !important;
}
body.smc-website main .smc-home-news-section a.text-sm {
  font-size: 1.025rem !important;
  line-height: 1.5 !important;
}
