/* Grace FertilityCare: responsive layout, preserving the existing artwork and palette. */
@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
:root { --blue: #1e7ab5; --blue-dark: #175b87; --blue-light: #dcecf6; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--blue); color: #111; font-family: "Times New Roman", Times, serif; font-size: 16px; line-height: 1.5; }
a { color: #064fb0; text-underline-offset: .15em; }
a:hover { color: #003b82; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #cc7200; outline-offset: 3px; }
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.site-wrap { position: relative; isolation: isolate; width: min(800px, calc(100% - 32px)); margin: 72px auto 48px; }
/* A single solid backing panel keeps the shadow continuous while scrolling. */
.site-wrap::before { content: ""; position: absolute; inset: 0 1.625% 0 0; z-index: -1; background: #fff; border-radius: 16px; box-shadow: 8px 3px 6px #0008; pointer-events: none; }
/* Crop the header's baked-in right shadow; the wrapper supplies one continuous shadow. */
.site-header { line-height: 0; clip-path: inset(0 1.625% 0 0); }
.site-header a { display: block; }
img.HEADER { display: block; width: 100%; height: auto; }
.TEXT { display: grid; grid-template-columns: 207px minmax(0, 1fr); grid-template-rows: auto 1fr auto; background: #fff; border-radius: 0 0 16px 16px; margin-right: 1.625%; min-width: 0; }
.MENU { grid-column: 1; grid-row: 1; padding: 28px 0 0; }
.MENU ul { list-style: none; margin: 0; padding: 0; font-size: 20px; line-height: 1.25; }
.MENU li { margin: 0; }
.MENU a { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 40px; padding: 5px 8px; text-align: center; color: #111; text-decoration: none; }
.MENU ul a { font-family: "Lato", Arial, sans-serif; font-size: 18px; font-weight: 600; }
.MENU a.CURR, .MENU a[aria-current="page"] { background: var(--blue); color: #fff; box-shadow: inset 2px 0 0 #fff; }
.MENU a:hover { background: #dcecf6; box-shadow: inset 2px 0 0 #fff; }
.MENU a.CURR:hover { background: var(--blue-dark); }
.MENU ul a.contact-button { width: calc(100% - 36px); min-height: 44px; margin: 14px 18px 6px; padding: 10px 8px; border: 2px solid var(--blue); border-radius: 6px; background: #fff; color: #000; font-size: 16px; }
.MENU .contact-button .contact-icon { flex: 0 0 18px; display: block; }
.MENU ul a.contact-button[aria-current="page"] { background: #fff; color: #000; }
.MENU ul a.contact-button:hover { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: none; }
.menu-toggle { display: none; }
.MENU .menu-toggle { font-family: "Lato", Arial, sans-serif; font-weight: 600; }
.TEXT_BOX { grid-column: 2; grid-row: 1 / 3; border-left: 4px solid #e5eff5; padding: 20px 30px 32px; min-width: 0; overflow-wrap: break-word; }
h1, h2 { color: var(--blue-dark); line-height: 1.2; margin: 1.1em 0 .55em; }
h1 { font-size: 26px; }
h2 { font-size: 23px; }
.TEXT_BOX > h1:first-child { margin-top: 0; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: .4em; }
.TEXT_BOX ul li { margin-bottom: .25em; }
ul.BLUE { list-style: none; padding: 0; margin: 1em 0; }
ul.BLUE > li { position: relative; padding-left: 17px; }
ul.BLUE > li::before { content: "•"; color: var(--blue); position: absolute; left: 0; }
ol.REF { font-size: 14px; overflow-wrap: anywhere; }
.TEXT_BOX img { height: auto !important; max-width: 100%; }
img.article-photo { border: 0; padding: 0; border-radius: 8px; margin: 4px 12px 10px 0; }
img.NO_BORDER_TEXT { margin: 0 12px 10px 0; }
img.practitioner-photo { border-radius: 10px; }
.TEXT_BOX::after { content: ""; display: block; clear: both; }
table { width: 100%; max-width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 16px; }
td, th { border: 1px solid #8aafc6; padding: 8px 12px; text-align: center; }
tr:first-child { background: #e9f3f9; }
.schedule-frame { width: min(100%, 300px); border: 1px solid #8aafc6; border-radius: 10px; overflow: hidden; margin: 1em 0; }
.schedule-frame table { margin: 0; }
.schedule-frame td, .schedule-frame th { padding: 4px 12px; line-height: 1.35; border: 0; border-right: 1px solid #8aafc6; border-bottom: 1px solid #8aafc6; }
.schedule-frame tr > :last-child { border-right: 0; }
.schedule-frame tr:last-child > * { border-bottom: 0; }
.sidebar { grid-column: 1; grid-row: 2; padding: 16px 18px 28px; min-width: 0; }
.sidebar > .MESSAGE_BOX { background: var(--blue); border-radius: 11px; color: white; padding: 15px 13px; box-shadow: 3px 3px 5px #0003; margin: 0 0 24px; }
h1.MESSAGE { font-size: 18px; color: white; text-align: center; font-style: normal; font-weight: bold; margin: 0 0 10px; }
p.MESSAGE_BOX { margin: 0 0 10px; text-align: center; font-size: 14px; font-weight: 500; }
p.MESSAGE_BOX::before { content: "\201C"; }
p.MESSAGE_BOX::after { content: "\201D"; }
p.AUTHOR { margin: 0; font-size: 14px; font-style: italic; font-weight: bold; text-align: center; }
.FCCA { text-align: center; margin: 16px 0; }
.FCCA a { display: block; }
.FCCA img { max-width: 100%; height: auto; }
.NOTICE_BOX { margin: 16px 0; text-align: center; font-size: 13px; }
.views-notice { background: #fff; border: 1px solid var(--blue); border-radius: 8px; padding: 12px 10px; font-weight: bold; }
.views-notice { padding: 10px 6px; }
.views-notice > p { margin: 0; font-size: 11px; line-height: 1.3; font-style: italic; font-weight: normal; }
.FOOTER { grid-column: 1 / -1; padding: 16px 24px 20px; border-top: 1px solid #dce9f1; color: #435764; text-align: center; font-size: 13px; overflow-wrap: anywhere; }
.FOOTER a { color: var(--blue-dark); }
#slider { margin: 0 0 20px; min-width: 0; }
#slider img { display: block; width: 100%; height: auto; margin: 0 auto; }
#slider.home-slider img, #slider.home-slider .carousel-stage, #slider.multimedia-slider img, #slider.multimedia-slider .carousel-stage { border-radius: 10px; }
#slider.home-slider .carousel-stage, #slider.multimedia-slider .carousel-stage { overflow: hidden; }
#slider > a { display: block; }
#slider > img, #slider > a { margin-bottom: 12px; }
#slider.enhanced > a, #slider.enhanced > img { margin: 0; }
.carousel-stage { display: flex; align-items: center; justify-content: center; width: 100%; background: #f1f6f9; }
#slider.home-slider .carousel-stage { aspect-ratio: 510 / 220; }
#slider.multimedia-slider .carousel-stage { aspect-ratio: 510 / 339; }
.carousel-slide { width: 100%; }
.carousel-slide img { max-height: 420px; object-fit: contain; }
.podcast-slide { position: relative; }
.podcast-slide::before { content: ""; position: absolute; inset: 0; border-radius: 10px; background: linear-gradient(90deg, #0007, transparent 43%); pointer-events: none; }
.podcast-overlay { position: absolute; left: 1%; top: 50%; transform: translateY(-50%); width: 35%; color: #fff; font-size: clamp(14px, 3vw, 24px); line-height: 1.18; text-align: center; text-shadow: 0 1px 3px #000; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 8px; padding-top: 8px; flex-wrap: wrap; }
.carousel-controls button { min-height: 44px; min-width: 44px; border: 1px solid #bed3e1; background: #fff; border-radius: 4px; color: var(--blue-dark); padding: 6px 10px; font-size: 15px; }
.carousel-controls button:hover { background: #e9f3f9; }
.carousel-controls button svg { display: block; margin: auto; }
#slider.home-slider .carousel-controls button, #slider.multimedia-slider .carousel-controls button { background: var(--blue-dark); color: #fff; border-color: var(--blue-dark); }
#slider.home-slider .carousel-controls button:hover, #slider.multimedia-slider .carousel-controls button:hover { background: var(--blue); border-color: var(--blue); }
.carousel-status { font-size: 13px; color: #455f70; min-width: 42px; text-align: center; }
#slider.home-slider .carousel-stage, #slider.multimedia-slider .carousel-stage { position: relative; }
#slider.home-slider .carousel-stage > .carousel-controls, #slider.multimedia-slider .carousel-stage > .carousel-controls { position: absolute; z-index: 2; bottom: 6px; left: 50%; transform: translateX(-50%); flex-wrap: nowrap; gap: 4px; padding: 3px; border-radius: 8px; background: #000b; }
#slider.home-slider .carousel-stage .carousel-controls button, #slider.multimedia-slider .carousel-stage .carousel-controls button { background: transparent; border-color: #ffffff66; color: #fff; }
#slider.home-slider .carousel-stage .carousel-controls button:hover, #slider.multimedia-slider .carousel-stage .carousel-controls button:hover { background: #ffffff33; border-color: #fff; }
#slider.home-slider .carousel-stage .carousel-status, #slider.multimedia-slider .carousel-stage .carousel-status { color: #fff; font-weight: bold; }
.carousel-caption { font-size: 14px; text-align: center; padding: 6px 0; }
#slider.multimedia-slider .carousel-caption { font-weight: bold; }
.nivo-html-caption { display: none; }
form input:not([type="checkbox"]):not([type="radio"]), form textarea { max-width: 100%; min-height: 44px; padding: 8px; }
@media (max-width: 650px) {
 body { font-size: 18px; line-height: 1.55; }
 .site-wrap { width: calc(100% - 16px); margin: 12px auto 24px; }
 .TEXT { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto; border-radius: 0 0 12px 12px; }
 .MENU { grid-column: 1; grid-row: 1; padding: 8px 16px 12px; border-bottom: 1px solid #dce9f1; }
 .menu-toggle { display: none; width: 100%; align-items: center; justify-content: space-between; background: white; color: var(--blue-dark); border: 1px solid #a6c5d9; padding: 10px 14px; min-height: 46px; font-weight: bold; font-size: 18px; border-radius: 4px; }
 .js .menu-toggle { display: flex; }
 .js #site-menu:not(.is-open) { display: none; }
 .MENU ul { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 10px 0 0; font-size: 18px; }
 .MENU li { margin: 0; }
 .MENU a { min-height: 46px; border-radius: 4px; padding: 10px 6px; }
 .MENU ul a { border-radius: 0; }
 .MENU ul a.contact-button { width: min(340px, calc(100% - 16px)); margin: 14px auto 6px; }
 .TEXT_BOX { grid-column: 1; grid-row: 2; border-left: 0; padding: 20px 20px 28px; }
 h1 { font-size: 27px; }
 h2 { font-size: 25px; }
 ol.REF { font-size: 15px; }
 .sidebar { grid-column: 1; grid-row: 3; padding: 24px 24px 16px; border-top: 1px solid #dce9f1; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
 .sidebar > * { width: 100%; max-width: 340px; }
 .sidebar > .MESSAGE_BOX { padding: 18px; }
 p.MESSAGE_BOX, p.AUTHOR { font-size: 16px; }
 .FCCA img { max-width: 167px; }
 .FOOTER { grid-column: 1; grid-row: 4; font-size: 14px; }
 .TEXT_BOX img[align="left"] { float: none; display: block; margin: 0 auto 18px; }
 table { font-size: 17px; }
 td, th { padding: 8px; }
}
@media (max-width: 360px) {
 .TEXT_BOX { padding-left: 16px; padding-right: 16px; }
 h1 { font-size: 25px; }
 .MENU ul { font-size: 17px; }
}
@media (min-width: 651px) { #site-menu { display: block !important; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
 body { background: white; font-size: 12pt; }
 .site-wrap { width: 100%; margin: 0; }
 .site-wrap::before { display: none; }
 .TEXT { display: block; box-shadow: none; margin: 0; }
 .MENU, .sidebar, .carousel-controls { display: none !important; }
 .TEXT_BOX { border: 0; padding: 16px 0; }
 .site-header { max-width: 6.5in; margin: auto; }
}
