/* hosportal-basic — pd 디자인 보조 유틸 */
.pd-break {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hp-line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hp-line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pd-cms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .pd-cms-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pd-doctor-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--pd-border);
  border-radius: 10px;
  background: #fafbfc;
}

.pd-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.pd-gallery-swiper {
  position: relative;
  margin-top: 0.5rem;
  width: 100%;
  padding-bottom: 2rem;
}

.pd-gallery-swiper__slide {
  width: auto;
  height: auto;
  box-sizing: border-box;
}

.pd-gallery-swiper__figure {
  margin: 0;
}

.pd-gallery-swiper__trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--pd-border);
  border-radius: 8px;
  background: #f8fafc;
  cursor: zoom-in;
  overflow: hidden;
}

.pd-gallery-swiper__trigger:focus-visible {
  outline: 2px solid var(--pd-primary);
  outline-offset: 2px;
}

.pd-gallery-swiper__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 320px;
  max-height: 320px;
  object-fit: contain;
}

.pd-gallery-swiper__caption {
  margin-top: 0.35rem;
  max-width: 320px;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.pd-gallery-swiper .swiper-button-prev,
.pd-gallery-swiper .swiper-button-next {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
}

.pd-gallery-swiper .swiper-button-prev::after,
.pd-gallery-swiper .swiper-button-next::after {
  font-size: 0.9rem;
  font-weight: 700;
}

.pd-gallery-swiper .swiper-button-prev.swiper-button-disabled,
.pd-gallery-swiper .swiper-button-next.swiper-button-disabled {
  opacity: 0.3;
}

.pd-gallery-swiper__pagination.swiper-pagination-fraction {
  bottom: 0;
  font-size: 0.8125rem;
  color: var(--pd-muted, #64748b);
}

@media (min-width: 768px) {
  .pd-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pd-gallery-item {
  margin: 0;
}

.pd-gallery-item__trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}

.pd-gallery-item__trigger:focus-visible {
  outline: 2px solid var(--pd-primary);
  outline-offset: 2px;
  border-radius: 8px;
}

.pd-gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--pd-border);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pd-gallery-item__trigger:hover img,
.pd-gallery-item__trigger:focus-visible img {
  transform: scale(1.02);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.pd-gallery-item figcaption {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
}

body.pd-lightbox-open {
  overflow: hidden;
}

.pd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-lightbox[hidden] {
  display: none !important;
}

.pd-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
}

.pd-lightbox__viewport {
  position: relative;
  z-index: 1;
  width: min(92vw, 960px);
  max-height: 86vh;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.pd-lightbox__viewport.is-slide-next {
  transform: translateX(24px);
  opacity: 0.35;
}

.pd-lightbox__viewport.is-slide-prev {
  transform: translateX(-24px);
  opacity: 0.35;
}

.pd-lightbox__figure {
  margin: 0;
  text-align: center;
}

.pd-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(86vh - 3rem);
  margin: 0 auto;
  border-radius: 8px;
  background: #0f172a;
  object-fit: contain;
}

.pd-lightbox__caption {
  margin-top: 0.75rem;
  color: #f8fafc;
  font-size: 0.9375rem;
}

.pd-lightbox__caption[hidden] {
  display: none;
}

.pd-lightbox__counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  margin: 0;
  color: #e2e8f0;
  font-size: 0.875rem;
}

.pd-lightbox__close,
.pd-lightbox__nav {
  position: absolute;
  z-index: 2;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s ease;
}

.pd-lightbox__close:hover,
.pd-lightbox__nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.22);
}

.pd-lightbox__close {
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  font-size: 1.5rem;
}

.pd-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  font-size: 1.25rem;
}

.pd-lightbox__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.pd-lightbox__nav--prev {
  left: 1rem;
}

.pd-lightbox__nav--next {
  right: 1rem;
}

@media (max-width: 640px) {
  .pd-lightbox__nav--prev {
    left: 0.5rem;
  }

  .pd-lightbox__nav--next {
    right: 0.5rem;
  }

  .pd-lightbox__close {
    top: 0.5rem;
    right: 0.5rem;
  }
}

.pd-schedule-preview__modes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pd-schedule-preview__mode {
  border: 1px solid var(--pd-border);
  background: #fff;
  color: var(--pd-muted);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.pd-schedule-preview__mode.is-active {
  border-color: var(--pd-primary);
  background: var(--pd-primary);
  color: #fff;
}

.pd-schedule-preview__today {
  border: 1px solid var(--pd-border);
  background: #f8fafc;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.pd-schedule-preview__today-title {
  font-size: 0.875rem;
  font-weight: 600;
}

.pd-schedule-preview__today-label {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--pd-muted);
}

.pd-schedule-preview__today-status {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.pd-schedule-preview__today-line {
  margin-top: 0.25rem;
  font-size: 0.875rem;
}

.pd-schedule-preview__panel.is-hidden {
  display: none;
}

.pd-schedule-preview__day {
  border: 1px solid var(--pd-border);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
}

.pd-schedule-preview__day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.pd-schedule-preview__day-label {
  font-size: 0.875rem;
  font-weight: 600;
}

.pd-schedule-preview__badge {
  font-size: 0.6875rem;
  color: #b45309;
}

.pd-schedule-preview__day-body {
  margin-top: 0.5rem;
}

.pd-schedule-preview__line {
  font-size: 0.875rem;
  line-height: 1.45;
}

.pd-schedule-preview__line--muted {
  color: var(--pd-muted);
}

.pd-schedule-preview__line--title {
  font-weight: 600;
}

.pd-schedule-preview__line--note {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--pd-muted);
  white-space: pre-wrap;
}

.pd-schedule-preview__groups {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--pd-border);
}

.pd-schedule-preview__groups-title,
.pd-schedule-preview__group-name,
.pd-schedule-preview__notices-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pd-muted);
  margin-bottom: 0.35rem;
}

.pd-schedule-preview__group-line {
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

.pd-schedule-preview__group-line.is-muted {
  color: var(--pd-muted);
}

.pd-schedule-preview__group-label {
  font-weight: 600;
}

.pd-schedule-preview__group {
  border: 1px solid var(--pd-border);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.pd-schedule-preview__day--compact {
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 0.35rem;
  padding: 0.5rem;
}

.pd-schedule-preview__notice {
  border: 1px solid var(--pd-border);
  background: #f8fafc;
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  white-space: pre-wrap;
}

.pd-doctor-card__avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  border: 1px solid var(--pd-border);
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--pd-primary);
  flex-shrink: 0;
  overflow: hidden;
}

.pd-doctor-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-symptom-item {
  border-left: 3px solid var(--pd-primary);
  padding-left: 1rem;
  margin-bottom: 0.75rem;
}

.pd-blog-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--pd-border);
  border-radius: 10px;
}

.pd-blog-item:hover {
  border-color: rgba(15, 118, 110, 0.35);
}

.pd-blog-item__body {
  min-width: 0;
  flex: 1;
}

body.pd-inquiry-open {
  overflow: hidden;
}

.pd-inquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pd-inquiry-modal[hidden] {
  display: none !important;
}

.pd-inquiry-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.pd-inquiry-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18);
  padding: 1.25rem 1.25rem 1.5rem;
}

.pd-inquiry-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.pd-inquiry-modal__header h2 {
  margin: 0;
  font-size: 1.125rem;
}

.pd-inquiry-modal__close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--pd-muted, #64748b);
}

.pd-inquiry-form__field {
  margin-bottom: 0.875rem;
}

.pd-inquiry-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 480px) {
  .pd-inquiry-form__row {
    grid-template-columns: 1fr;
  }
}

.pd-inquiry-form__check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.pd-textarea {
  resize: vertical;
  min-height: 6rem;
}

.pd-inquiry-form__error {
  margin: 0 0 0.75rem;
  color: #b91c1c;
  font-size: 0.875rem;
}

.pd-inquiry-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.pd-inquiry-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.pd-footer-inquiry-btn {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pd-footer-inquiry-btn:hover {
  color: var(--pd-primary, #0f766e);
}
