/* Give the schedule room to open without stretching the contact information. */
body.ogh .ogh-visit-guide {
  container-type: inline-size;
  color: #18344b;
}

body.ogh .ogh-visit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(15rem, 1fr);
  align-items: start;
  gap: clamp(1.25rem, 4vw, 3rem);
  padding: clamp(1.15rem, 3vw, 2rem);
  border: 1px solid #cad9e4;
  border-radius: 4px;
  background-color: #fff;
  color: #18344b;
  box-sizing: border-box;
  text-align: start;
}

body.ogh .ogh-visit-layout :is(.ogh-visit-primary, .ogh-visit-location) {
  min-inline-size: 0;
}

body.ogh .ogh-visit-primary {
  display: grid;
  justify-items: stretch;
  align-content: start;
  gap: .7rem;
}

body.ogh :is(.ogh-visit-hours, .ogh-visit-holiday) {
  scroll-margin-block-start: 7.5rem;
  margin: 0;
  border: 1px solid #c3d3e1;
  border-radius: 4px;
  background-color: #f6f9fc;
  color: #173753;
  box-shadow: none;
}

body.ogh .ogh-visit-holiday {
  border-inline-start: 3px solid #dbac45;
  background-color: #fffdf6;
}

/* Give confirmed holiday changes a consistent calendar cue in the hero and schedule. */
body.ogh #main .p-hero.ph-full .p-btns > .ogh-visit-holiday-link.has-notice {
  gap: .55rem;
  background-color: #ffe4a5 !important;
  color: #382700 !important;
  border-color: #ffbf29 !important;
}
body.ogh #main .ogh-visit-holiday.has-notice {
  border-color: #d5a43b;
  border-inline-start: 4px solid #c88c0c;
  background-color: #fff2cd;
}
body.ogh #main .ogh-visit-holiday.has-notice > summary {
  grid-template-columns: auto minmax(0, 1fr) auto;
}
body.ogh #main .ogh-visit-holiday.has-notice > summary > small { grid-column: 2; }
body.ogh #main .ogh-visit-holiday.has-notice > summary::after { grid-column: 3; }
body.ogh #main .ogh-visit-holiday.has-notice > summary::before,
body.ogh #main .ogh-visit-holiday-link.has-notice::before {
  content: "";
  grid-area: 1 / 1 / span 2;
  flex: 0 0 1.15em;
  width: 1.15em;
  height: 1.15em;
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='16' rx='2'/%3E%3Cpath d='M3.5 10h17M8 3v4m8-4v4m-8 7h3m2 0h3'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Equal-size choices at the top of the location directory. */
body.ogh #ogh-visual-locations .v2-hero .wp-block-buttons {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: .65rem;
}
body.ogh #ogh-visual-locations .v2-hero .wp-block-button {
  display: flex;
  flex: 0 1 11.5rem;
  margin: 0;
}
body.ogh #ogh-visual-locations .v2-hero .wp-block-button__link {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 3rem;
  padding: .65rem .9rem;
  line-height: 1.3;
}
/* Give the patient action priority beside the white hospital or Facebook link. */
body.ogh #main #ogh-visual-locations .v2-hero .wp-block-button__link[href="#clinic-locations"],
body.ogh #main .p-body .p-btns:has(> .ogh-location-facebook) > .b26:not(.ogh-location-facebook) {
  background: #1549d6 !important;
  color: #fff !important;
  border-color: #1549d6 !important;
}
body.ogh #main #ogh-visual-locations .v2-hero .wp-block-button__link[href="#clinic-locations"] {
  border: 2px solid #fff !important;
}
body.ogh #main #ogh-visual-locations .v2-hero .wp-block-button__link[href="#clinic-locations"]:hover,
body.ogh #main .p-body .p-btns:has(> .ogh-location-facebook) > .b26:not(.ogh-location-facebook):hover {
  background: #002c7f !important;
}
body.ogh #main #ogh-visual-locations .v2-hero .wp-block-button__link:focus-visible,
body.ogh #main .p-body .p-btns:has(> .ogh-location-facebook) > a:focus-visible {
  outline: 3px solid #0c254b !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px white !important;
}
@media (max-width: 600px) {
  body.ogh #ogh-visual-locations .v2-hero .wp-block-buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The hospital uses the same full-width introduction and paper sections as its clinics. */
#main.ogh-hospital-location .hospital-campus-hero .ph-bg { object-position: 50% 57%; }
#main.ogh-hospital-location .hospital-location-section > .wrap,
#main.ogh-hospital-location .hospital-location-section > .wp-block-group__inner-container > .wrap {
  width: min(calc(100% - 2rem), 72rem);
  margin-inline: auto;
}
#main.ogh-hospital-location .hospital-location-section {
  padding-block: clamp(3.25rem, 6vw, 5.5rem);
}
#main.ogh-hospital-location .hospital-location-section h2 { margin-block: 0 1.1rem; }
#main.ogh-hospital-location .hospital-services,
#main.ogh-hospital-location .hospital-history-layout,
#main.ogh-hospital-location .hospital-services > .wp-block-group__inner-container,
#main.ogh-hospital-location .hospital-history-layout > .wp-block-group__inner-container {
  display: grid;
  gap: 1.35rem clamp(1.5rem, 4vw, 4rem);
}
#main.ogh-hospital-location :is(.hospital-services,.hospital-history-layout) > .wp-block-group__inner-container {
  grid-column: 1 / -1;
}
@media (min-width: 740px) {
  #main.ogh-hospital-location .hospital-services,
  #main.ogh-hospital-location .hospital-history-layout,
  #main.ogh-hospital-location .hospital-services > .wp-block-group__inner-container,
  #main.ogh-hospital-location .hospital-history-layout > .wp-block-group__inner-container {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
#main.ogh-hospital-location .hospital-service { padding-top: .8rem; border-top: 1px solid #b5c7d9; }
#main.ogh-hospital-location .hospital-service h3 { font-size: clamp(1.12rem, 2vw, 1.42rem); }
#main.ogh-hospital-location .hospital-service :is(h3,p) { margin-block: 0 .4rem; }
#main.ogh-hospital-location .hospital-services + .wp-block-buttons,
#main.ogh-hospital-location .hospital-history-copy .wp-block-buttons { margin-top: 1.35rem; }
#main.ogh-hospital-location .hospital-history-photo { margin: 0; }
#main.ogh-hospital-location .hospital-history-photo img { display: block; width: 100%; height: auto; }
#main.ogh-hospital-location .hospital-history-photo figcaption { margin-block: .45rem 0; color: #3d576f; }
#main.ogh-hospital-location .wp-block-button__link { background: #1549d6; color: white; font-weight: 700; }

body.ogh :is(.ogh-visit-hours, .ogh-visit-holiday) > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  align-items: center;
  gap: .15em .85em;
  min-height: 48px;
  box-sizing: border-box;
  margin: 0;
  padding: .75rem 1rem;
  color: #082f68;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  list-style: none;
  font-weight: 720;
  font-size: 1.05rem;
  line-height: 1.32;
}

body.ogh :is(.ogh-visit-hours, .ogh-visit-holiday) > summary::-webkit-details-marker {
  display: none;
}

body.ogh :is(.ogh-visit-hours, .ogh-visit-holiday) > summary::after {
  content: "";
  grid-area: 1 / 2 / span 2 / 3;
  width: .52em;
  height: .52em;
  margin-inline-end: .2em;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

body.ogh :is(.ogh-visit-hours, .ogh-visit-holiday)[open] > summary::after {
  transform: rotate(225deg);
}

body.ogh :is(.ogh-visit-hours, .ogh-visit-holiday) > summary > small {
  grid-column: 1;
  color: #43586c;
  font-size: .93rem;
  font-weight: 500;
}

body.ogh :is(.ogh-visit-hours, .ogh-visit-holiday)[open] > summary {
  border-bottom: 1px solid #d1dce5;
}

body.ogh :is(.ogh-visit-hours, .ogh-visit-holiday) > p {
  margin: .85rem 1rem 1rem;
  color: #203c50;
  font-size: 1rem;
  line-height: 1.48;
}

body.ogh .ogh-visit-schedule {
  display: block;
  margin: 0;
  padding: 0 1rem;
  font-variant-numeric: tabular-nums;
}

body.ogh .ogh-visit-schedule > div {
  display: grid;
  grid-template-columns: minmax(5.8rem, .8fr) minmax(0, 1.65fr);
  column-gap: 1rem;
  padding-block: .66rem;
  border-bottom: 1px solid #dbe4eb;
}

body.ogh .ogh-visit-schedule > div:last-child {
  border-bottom: 0;
}

body.ogh .ogh-visit-schedule :is(dt, dd) {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  line-height: 1.4;
  text-align: start;
}

body.ogh .ogh-visit-schedule dt {
  color: #173753;
  font-weight: 700;
}

body.ogh .ogh-visit-schedule dd {
  color: #253e50;
  font-weight: 450;
}

body.ogh .ogh-visit-contact {
  display: block;
  margin: 0;
  padding: 0;
}

body.ogh .ogh-visit-contact > div {
  padding-block: .62rem;
  border-top: 1px solid #d9e3ea;
}

body.ogh .ogh-visit-contact > div:first-child {
  border-top: 0;
  padding-top: 0;
}

body.ogh .ogh-visit-contact dt {
  margin: 0 0 .13rem;
  color: #475f72;
  font-size: .94rem;
  font-weight: 600;
  line-height: 1.35;
}

body.ogh .ogh-visit-contact dd {
  margin: 0;
  color: #173753;
  font-size: 1.06rem;
  font-weight: 650;
  line-height: 1.42;
}

body.ogh .ogh-visit-schedule time,
body.ogh .ogh-visit-contact dd small {
  color: #495f71;
  font-size: .93rem;
  font-weight: 450;
}

body.ogh .ogh-visit-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.1rem;
}

body.ogh .ogh-visit-hospital {
  margin-block-start: clamp(1.5rem, 3vw, 2.5rem);
}

body.ogh .ogh-visit-hospital > h3 {
  margin: 0 0 .75rem;
  color: #092f67;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

body.ogh .ogh-visit-directions {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #002c7f;
  text-decoration: underline;
  text-underline-offset: .18em;
  font-weight: 700;
}

body.ogh :is(.ogh-visit-book, .ogh-visit-call, .ogh-visit-close) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 46px;
  max-inline-size: 100%;
  gap: .5rem;
  padding: .6em 1.08em;
  border: 1px solid #002c7f;
  border-radius: var(--ogh-button-corner, 4px);
  background: #002c7f;
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease-out, box-shadow 160ms ease-out;
}

body.ogh .ogh-visit-primary .ogh-visit-book {
  justify-self: start;
  margin-block-start: .3rem;
}

body.ogh :is(.ogh-visit-guide, .ogh-visit-dialog) :is(a, button, summary):focus-visible {
  outline: 3px solid #a36300;
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  body.ogh :is(.ogh-visit-hours, .ogh-visit-holiday) > summary:hover {
    background-color: #e9f1f8;
  }
  body.ogh .ogh-visit-holiday > summary:hover {
    background-color: #fff4d4;
  }
  body.ogh :is(.ogh-visit-book, .ogh-visit-call, .ogh-visit-close):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgb(15 43 78 / 16%);
  }
}

/* Native dialogs keep the background inert and paint above the sticky header. */
body.ogh .ogh-visit-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  box-sizing: border-box;
  width: min(42rem, calc(100vw - 2.5rem));
  max-width: none;
  max-height: calc(100dvh - 2.5rem);
  overflow: auto;
  border: 0;
  border-top: 5px solid #f9bb41;
  border-radius: 4px;
  background-color: #fff;
  color: #18344b;
  box-shadow: 0 25px 100px rgb(4 22 52 / 30%);
}

body.ogh .ogh-visit-dialog:not([open]) {
  display: none;
}

body.ogh .ogh-visit-dialog::backdrop {
  background: rgb(6 24 48 / 72%);
}

body.ogh .ogh-visit-dialog-inner {
  position: relative;
  padding: clamp(4.5rem, 7vw, 5.5rem) clamp(1.4rem, 5vw, 3.5rem) clamp(2.5rem, 5vw, 3.5rem);
}

body.ogh .ogh-visit-dialog-inner :is(h2, h3) {
  margin: 0 0 .55em;
  color: #092f67;
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  line-height: 1.12;
  text-wrap: balance;
}

body.ogh .ogh-visit-dialog-inner p {
  max-inline-size: 43ch;
  margin: 0 0 1.25rem;
  font-size: 1.06rem;
  line-height: 1.5;
  color: #344e62;
}

body.ogh .ogh-visit-call {
  font-size: clamp(1.12rem, 3vw, 1.45rem);
  font-variant-numeric: tabular-nums;
}

body.ogh .ogh-visit-close {
  position: absolute;
  inset-block-start: .8rem;
  inset-inline-end: clamp(1rem, 3vw, 1.5rem);
  border-color: #bacad6;
  background: #fff;
  color: #113d66;
  font-size: 1rem;
}

@container (max-width: 42rem) {
  body.ogh .ogh-visit-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.15rem;
  }
  body.ogh .ogh-visit-location {
    padding-block-start: 1.1rem;
    border-block-start: 1px solid #cad9e4;
  }
}

@media (max-width: 600px) {
  body.ogh .ogh-visit-primary .ogh-visit-book {
    width: 100%;
  }
  body.ogh .ogh-visit-dialog {
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
  }
  body.ogh .ogh-visit-dialog-inner {
    padding-top: max(4.75rem, calc(env(safe-area-inset-top) + 4rem));
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  body.ogh :is(.ogh-visit-book, .ogh-visit-call, .ogh-visit-close),
  body.ogh :is(.ogh-visit-book, .ogh-visit-call, .ogh-visit-close):hover {
    transform: none;
    transition: none;
  }
}
