.opening-popup { width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 16px; overflow: auto; background: #fff; color: #26354b; box-shadow: 0 20px 80px #001b4266; }
.opening-popup::backdrop { background: rgb(6 20 40 / 62%); }
.opening-popup-content { position: relative; padding: 28px 20px 20px; text-align: center; background: radial-gradient(ellipse at 8% 0%, rgba(163, 203, 244, .3), transparent 48%), radial-gradient(ellipse at 100% 12%, rgba(194, 219, 244, .26), transparent 44%), linear-gradient(180deg, #f1f7fe 0%, #fbfdff 35%, #fff 72%); }
.opening-popup-logo { display: block; width: 142px; max-width: 58%; height: 124px; margin: -10px auto 4px; }
.opening-popup-top-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #657184; font: 36px/1 sans-serif; cursor: pointer; }
.opening-popup-kicker { margin: 0 0 10px; color: #2375cf; font-size: 12px; font-weight: 700; letter-spacing: .2em; }
#opening-popup-title { margin: 0; color: #102e4d; font-size: clamp(21px, 6vw, 32px); line-height: 1.3; letter-spacing: -.045em; word-break: keep-all; }
#opening-popup-title strong { color: #1476d8; }
.opening-popup-intro { margin: 14px 0 20px; font-size: 15px; line-height: 1.7; word-break: keep-all; }
.opening-schedule { padding: 16px 18px; margin: 0 0 12px; border: 1px solid #dbe5f0; border-radius: 12px; text-align: left; background: #f7f9fc; }
.opening-schedule-label { color: #2368bf; font-size: 12px; font-weight: 800; }
.opening-schedule h3 { margin: 6px 0 0; color: #102e4d; font-size: 22px; line-height: 1.4; letter-spacing: -.035em; }
.opening-schedule h3 small { font-size: 15px; font-weight: 600; white-space: nowrap; }
.opening-schedule p { margin: 7px 0 0; font-size: 14px; line-height: 1.6; word-break: keep-all; }
.opening-schedule-celebration { background: #edf5fd; border-color: #c9def5; }
.opening-service-times { margin: 12px 0 0; }
.opening-service-times > div { display: grid; grid-template-columns: 84px minmax(0,1fr); gap: 10px; padding: 10px 0; border-top: 1px solid #d3e2f2; font-size: 15px; line-height: 1.5; }
.opening-service-times dt { color: #2368bf; font-weight: 800; }
.opening-service-times dd { margin: 0; font-weight: 700; }
.opening-service-times small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.6; font-weight: 400; word-break: keep-all; }
.opening-popup-welcome { margin: 18px 0; font-size: 14px; line-height: 1.8; word-break: keep-all; }
.opening-popup-details { margin: 0 0 18px; padding: 16px 20px; border-radius: 14px; background: #edf5fd; text-align: left; }
.opening-popup-details > div { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; align-items: baseline; }
.opening-popup-details > div + div { margin-top: 12px; }
.opening-popup-details dt { color: #226bb8; font-size: 14px; font-weight: 700; }
.opening-popup-details dd { margin: 0; color: #19354f; font-size: 14px; line-height: 1.5; font-weight: 600; word-break: keep-all; overflow-wrap: anywhere; }
.opening-popup-details a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.opening-popup-guide { display: flex; justify-content: center; align-items: center; gap: 18px; min-height: 48px; padding: 10px 16px; border-radius: 10px; background: #1e70cb; color: #fff; text-decoration: none; font-size: 16px; font-weight: 700; }
.opening-popup-guide:hover { background: #175ba6; }
.opening-popup-scenery { position: relative; aspect-ratio: 906 / 190; background: url('assets/church-opening-popup.png') center 86.65% / 119.87% 762.1% no-repeat; }
.opening-popup-scenery::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.8) 7%, rgba(255,255,255,.16) 23%, transparent 35%, transparent 73%, rgba(255,255,255,.55) 90%, #fff 100%), linear-gradient(90deg, #fff 0%, transparent 2%, transparent 98%, #fff 100%); }
.opening-popup-controls { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 16px; border-top: 0; background: #fff; }
.opening-popup-controls label { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; cursor: pointer; }
.opening-popup-controls input { width: 20px; height: 20px; accent-color: #2368bf; }
.opening-popup-controls button { min-width: 48px; min-height: 44px; border: 0; background: none; color: inherit; font: inherit; font-size: 14px; cursor: pointer; }
.opening-popup :focus-visible { outline: 3px solid #2368bf; outline-offset: -3px; }
#opening-popup-title:focus { outline: none; }
@media(max-width:480px){
  .opening-popup-content { padding: 24px 20px 16px; }
  .opening-popup-details { padding: 14px; }
  .opening-popup-details > div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .opening-popup-details dd { font-size: clamp(11px, 3.3vw, 14px); }
  .opening-popup-intro { font-size: 14px; }
}
