/* ==========================================================================
   Special announcement: Bonnie, 50 years. Shows December 1, 2026 only.
   Two pieces:
     .ogh-ann-bar  small bar above the header, every page, visitors can close it
     .ogh-ann      section on the home page, right after #patient-tasks
   Breakpoints follow the home page (700px and 1000px).
   To take it down: remove this file, ogh-announcement.php and its two calls.
   ========================================================================== */

html.ogh-ann-gone .ogh-ann-bar,
html.ogh-ann-gone .ogh-ann,
html.ogh-ann-off .ogh-ann-bar { display: none !important; }

.ogh-ann-bar,
.ogh-ann-bar *,
.ogh-ann,
.ogh-ann * { box-sizing: border-box; }

/* ---------- 1. Top bar ---------- */
.ogh-ann-bar {
  position: relative;
  background: #1549d6;
  color: #fff;
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 1.3;
}
.ogh-ann-bar .ogh-ann-bar__in {
  position: static;
  display: block;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px 14px;
}
.ogh-ann-bar a.ogh-ann-bar__link {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "photo tag" "msg msg" "btn btn";
  align-items: center;
  column-gap: 10px;
  row-gap: 8px;
  padding-top: 2px;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}
.ogh-ann-bar img.ogh-ann-bar__photo {
  grid-area: photo;
  display: block;
  width: 40px;
  height: 40px;
  max-width: none;
  border: 2px solid #fff;
  border-radius: 6px;
  background: #002c7f;
  object-fit: cover;
  object-position: 50% 30%;
}
.ogh-ann-bar .ogh-ann-bar__tag {
  grid-area: tag;
  justify-self: start;
  padding: 3px 10px;
  border-radius: 4px;
  background: #ffb81c;
  color: #002c7f;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 800;
  white-space: nowrap;
}
.ogh-ann-bar .ogh-ann-bar__msg {
  grid-area: msg;
  color: #fff;
  font-size: clamp(1rem, 4.4vw, 1.125rem);
  line-height: 1.3;
  font-weight: 700;
}
.ogh-ann-bar .ogh-ann-bar__btn {
  grid-area: btn;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 4px;
  background: #fff;
  color: #1549d6;
  font-size: 1.0625rem;
  line-height: 1.2;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .12s ease, background-color .12s ease;
}
.ogh-ann-bar .ogh-ann-bar__btn svg { flex: none; width: 18px; height: 18px; }
.ogh-ann-bar a.ogh-ann-bar__link:hover .ogh-ann-bar__btn { background: #e8f0f8; transform: translateY(-1px); }
.ogh-ann-bar a.ogh-ann-bar__link:focus-visible { outline: 3px solid #fff !important; outline-offset: 3px !important; box-shadow: none !important; }
.ogh-ann-bar__link::after { content: ""; position: absolute; inset: 0; }
.ogh-ann-bar button.ogh-ann-bar__x {
  z-index: 1;
  position: absolute;
  top: 6px;
  right: 4px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color .12s ease;
}
.ogh-ann-bar button.ogh-ann-bar__x svg { width: 18px; height: 18px; }
html:not(.ogh-ann-interactive) .ogh-ann-bar button.ogh-ann-bar__x { display: none; }
.ogh-ann-bar button.ogh-ann-bar__x:hover { background: rgb(255 255 255 / .18); }
.ogh-ann-bar button.ogh-ann-bar__x:focus-visible { outline: 3px solid #fff !important; outline-offset: 2px !important; box-shadow: none !important; }

@media (min-width: 701px) {
  .ogh-ann-bar .ogh-ann-bar__in { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 24px; }
  .ogh-ann-bar button.ogh-ann-bar__x { position: relative; top: auto; right: auto; }
  .ogh-ann-bar a.ogh-ann-bar__link {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "photo tag btn" "photo msg btn";
    column-gap: 14px;
    row-gap: 2px;
    padding-top: 0;
  }
  .ogh-ann-bar .ogh-ann-bar__msg { font-size: 1.125rem; }
  .ogh-ann-bar img.ogh-ann-bar__photo { width: 54px; height: 54px; }
  .ogh-ann-bar .ogh-ann-bar__btn { justify-self: end; }
}
@media (min-width: 1001px) {
  .ogh-ann-bar .ogh-ann-bar__in { min-height: 64px; padding: 8px 24px; }
  .ogh-ann-bar a.ogh-ann-bar__link { display: flex; align-items: center; gap: 16px; }
  .ogh-ann-bar img.ogh-ann-bar__photo { width: 46px; height: 46px; }
  .ogh-ann-bar .ogh-ann-bar__msg { font-size: 1.1875rem; white-space: nowrap; }
  .ogh-ann-bar .ogh-ann-bar__btn { margin-left: 8px; }
  .ogh-ann-bar button.ogh-ann-bar__x { margin-right: -12px; }
}

/* ---------- 2. Home page section ---------- */
#main .ogh-ann {
  position: relative;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 34px 0 86px;
  background: #fff;
  color: #1d2125;
  font-family: "Open Sans", Arial, sans-serif;
  scroll-margin-top: 6rem;
}
#main .ogh-ann .ogh-ann__wrap {
  width: 100%;
  max-width: 1184px;
  margin: 0 auto;
  padding: 0 24px;
}
#main .ogh-ann .ogh-ann__label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  max-width: none;
  margin: 0 0 22px;
  padding: 0;
}
#main .ogh-ann .ogh-ann__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 4px;
  background: #ffb81c;
  color: #002c7f;
  font-size: 1.0625rem;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
#main .ogh-ann .ogh-ann__tag svg { flex: none; width: 18px; height: 18px; }
#main .ogh-ann .ogh-ann__today {
  color: #002c7f;
  font-size: 1.0625rem;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
#main .ogh-ann .ogh-ann__rule { display: none; flex: 1 1 40px; height: 2px; background: #cfddf8; }

#main .ogh-ann .ogh-ann__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin: 0;
  padding: 0;
}
#main .ogh-ann h2.ogh-ann__title {
  max-width: none;
  margin: 0;
  padding: 0;
  color: #002c7f;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: clamp(1.875rem, 8vw, 3.25rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.02em;
  text-transform: none;
}
#main .ogh-ann h2.ogh-ann__title > span { display: block; }
#main .ogh-ann .ogh-ann__u {
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: #ffb81c;
  text-decoration-thickness: .12em;
  text-underline-offset: .14em;
  text-decoration-skip-ink: none;
}
#main .ogh-ann figure.ogh-ann__photo {
  position: relative;
  width: auto;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  margin: 0 14px 14px 0;
  padding: 0;
}
#main .ogh-ann figure.ogh-ann__photo::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border-radius: 8px;
  background: #ffb81c;
}
#main .ogh-ann figure.ogh-ann__photo img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: #002c7f;
  object-fit: cover;
  object-position: 50% 12%;
}
#main .ogh-ann .ogh-ann__dates { display: flex; flex-direction: column; margin: 0; padding: 0; }
#main .ogh-ann p.ogh-ann__date {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 12px;
  max-width: none;
  margin: 0;
  padding: 12px 16px;
  border-radius: 8px;
  background: #e8f0f8;
}
#main .ogh-ann .ogh-ann__k { color: #1d2125; font-size: 1rem; line-height: 1.5; font-weight: 700; }
#main .ogh-ann .ogh-ann__v { color: #002c7f; font-size: 1.25rem; line-height: 1.2; font-weight: 800; white-space: nowrap; }
#main .ogh-ann .ogh-ann__arrow {
  position: relative;
  z-index: 1;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  margin: -8px 0;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #ffb81c;
  color: #002c7f;
}
#main .ogh-ann .ogh-ann__arrow svg { width: 18px; height: 18px; transform: rotate(90deg); }
#main .ogh-ann p.ogh-ann__thanks {
  max-width: none;
  margin: 0;
  padding: 0;
  color: #1d2125;
  font-size: 1.125rem;
  line-height: 1.5;
  font-weight: 400;
}
#main .ogh-ann p.ogh-ann__thanks strong { display: block; color: #002c7f; font-weight: 800; }
#main .ogh-ann .ogh-ann__btns { display: flex; flex-wrap: wrap; gap: 10px 12px; margin: 0; padding: 0; }
#main .ogh-ann a.ogh-ann__btn {
  flex: 1 1 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  margin: 0;
  padding: 12px 18px;
  border: 2px solid #1549d6;
  border-radius: 4px;
  background: #fff;
  color: #1549d6;
  font-size: clamp(1rem, 4.4vw, 1.0625rem);
  line-height: 1.25;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
}
#main .ogh-ann a.ogh-ann__btn svg { flex: none; width: 20px; height: 20px; }
#main .ogh-ann a.ogh-ann__btn:hover { background: #e8f0f8; transform: translateY(-1px); }
#main .ogh-ann a.ogh-ann__btn--pri { background: #1549d6; color: #fff; }
#main .ogh-ann a.ogh-ann__btn--pri:hover { background: #002c7f; border-color: #002c7f; color: #fff; }
#main .ogh-ann a.ogh-ann__btn:focus-visible { outline: 3px solid #002c7f !important; outline-offset: 3px !important; box-shadow: 0 0 0 1px #fff !important; }

/* the paper edge into the next (white) section: a light blue sheet shows between two white ones */
#main .ogh-ann .ogh-ann__cut {
  position: absolute;
  inset: auto 0 -1px;
  height: 40px;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}
#main .ogh-ann .ogh-ann__cut > span { position: absolute; inset: auto 0 0; display: block; width: 100%; }
#main .ogh-ann .ogh-ann__cut > span:nth-child(1) {
  height: 100%;
  background: rgb(137 165 192 / .34);
  clip-path: var(--ogh-back-cut, polygon(0 48%,9% 21%,20% 42%,33% 15%,45% 56%,57% 32%,69% 44%,80% 22%,91% 51%,100% 30%,100% 100%,0 100%));
}
#main .ogh-ann .ogh-ann__cut > span:nth-child(2) {
  height: 68%;
  background: #e8f0f8;
  clip-path: var(--ogh-middle-cut, polygon(0 23%,11% 52%,22% 37%,34% 56%,46% 19%,59% 40%,71% 24%,82% 61%,92% 35%,100% 45%,100% 100%,0 100%));
}
#main .ogh-ann .ogh-ann__cut > span:nth-child(3) {
  height: 38%;
  background: #fff;
  clip-path: var(--ogh-front-cut, polygon(0 36%,8% 25%,17% 48%,28% 18%,40% 61%,52% 34%,64% 51%,76% 25%,88% 38%,95% 17%,100% 34%,100% 100%,0 100%));
}

/* Spanish dates are longer: on narrow screens each date sits under its label */
@media (max-width: 800px) {
  #main .ogh-ann .ogh-ann__v[lang="es"] { flex: 1 0 100%; }
}

/* iPad upright and small laptops: headline across the top, photo beside the dates */
@media (min-width: 701px) {
  #main .ogh-ann { padding: 44px 0 100px; }
  #main .ogh-ann .ogh-ann__wrap { padding: 0 30px; }
  #main .ogh-ann .ogh-ann__label { margin-bottom: 26px; }
  #main .ogh-ann .ogh-ann__rule { display: block; }
  #main .ogh-ann .ogh-ann__cut { height: 48px; }
  #main .ogh-ann a.ogh-ann__btn { flex: 1 1 0; padding: 12px 16px; font-size: 1rem; white-space: nowrap; }
}
@media (min-width: 701px) and (max-width: 1000px) {
  #main .ogh-ann .ogh-ann__grid {
    grid-template-columns: clamp(250px, 38vw, 330px) minmax(0, 1fr);
    grid-template-areas: "title title" "photo dates" "photo thanks" "btns btns";
    column-gap: 32px;
    row-gap: 22px;
    align-items: start;
  }
  #main .ogh-ann h2.ogh-ann__title { grid-area: title; font-size: clamp(2.75rem, 6vw, 3.5rem); margin-bottom: 6px; }
  #main .ogh-ann figure.ogh-ann__photo { grid-area: photo; max-width: none; }
  #main .ogh-ann .ogh-ann__dates { grid-area: dates; align-self: end; }
  #main .ogh-ann p.ogh-ann__thanks { grid-area: thanks; align-self: start; font-size: 1.1875rem; }
  #main .ogh-ann .ogh-ann__btns { grid-area: btns; margin-top: 6px; }
}
/* desktop and iPad on its side: words on the left, photo on the right */
@media (min-width: 1001px) {
  #main .ogh-ann { padding: 52px 0 108px; }
  #main .ogh-ann .ogh-ann__wrap { padding: 0 40px; }
  #main .ogh-ann .ogh-ann__label { gap: 10px 20px; margin-bottom: 34px; }
  #main .ogh-ann .ogh-ann__grid {
    grid-template-columns: minmax(0, 1fr) clamp(320px, 32vw, 416px);
    grid-template-areas: "title photo" "dates photo" "thanks photo" "btns photo";
    column-gap: clamp(40px, 4.4vw, 56px);
    row-gap: 22px;
  }
  #main .ogh-ann h2.ogh-ann__title { grid-area: title; align-self: start; margin-top: -.14em; font-size: clamp(2.75rem, 4.7vw, 3.75rem); }
  #main .ogh-ann figure.ogh-ann__photo { grid-area: photo; align-self: start; max-width: none; margin: 0 16px 16px 0; }
  #main .ogh-ann figure.ogh-ann__photo::before { inset: 16px -16px -16px 16px; }
  #main .ogh-ann .ogh-ann__dates { grid-area: dates; align-self: center; flex-direction: row; align-items: stretch; }
  #main .ogh-ann p.ogh-ann__date { flex: 1 1 0; flex-direction: column; flex-wrap: nowrap; align-items: flex-start; justify-content: center; gap: 2px; padding: 14px 20px; }
  #main .ogh-ann .ogh-ann__arrow + p.ogh-ann__date { padding-left: 30px; }
  #main .ogh-ann .ogh-ann__arrow { width: 46px; height: 46px; margin: 0 -10px; }
  #main .ogh-ann .ogh-ann__arrow svg { width: 22px; height: 22px; transform: none; }
  #main .ogh-ann .ogh-ann__v { font-size: clamp(1.25rem, 1.9vw, 1.5rem); }
  #main .ogh-ann .ogh-ann__v[lang="es"] { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); }
  #main .ogh-ann p.ogh-ann__thanks { grid-area: thanks; align-self: center; font-size: 1.3125rem; }
  #main .ogh-ann .ogh-ann__btns { grid-area: btns; align-self: end; margin-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ogh-ann-bar .ogh-ann-bar__btn,
  .ogh-ann-bar button.ogh-ann-bar__x,
  #main .ogh-ann a.ogh-ann__btn { transition: none; }
  .ogh-ann-bar a.ogh-ann-bar__link:hover .ogh-ann-bar__btn,
  #main .ogh-ann a.ogh-ann__btn:hover { transform: none; }
}
@media print {
  .ogh-ann-bar { display: none !important; }
}
