/* 金雅診所品牌頁尾（官網 + 診所系統 dev-clinic 共用） */
.jy-footer {
  --jy-footer-primary-deep: #0a3560;
  background: linear-gradient(180deg, var(--jy-footer-primary-deep) 0%, #061e38 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0;
  margin-top: 0;
}

.jy-footer a {
  color: #7dd4f5;
  text-decoration: none;
}

.jy-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.jy-footer-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

@media (min-width: 992px) {
  .jy-footer-aside {
    align-items: flex-end;
  }
}

.jy-footer-aside__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.jy-env-stamp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}

/* TEST 固定環境列（建置／部署版本） */
.clinic-env-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: #0f2744;
  color: rgba(255, 255, 255, 0.88);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  padding: 4px 12px;
  text-align: center;
  border-top: 1px solid #ffc107;
}

html.has-clinic-env-bar body {
  padding-bottom: 28px;
}

.clinic-env-stamp-dev {
  color: #9ec5fe;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  margin-right: 4px;
}

/* 左：三行文字決定高度；右：白底 LOGO 框跟隨同高 */
.jy-footer-left {
  display: grid;
  grid-template-columns: auto minmax(200px, 250px);
  gap: 0.85rem 1rem;
  width: fit-content;
  max-width: 100%;
}

.jy-footer-info {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.jy-footer-brand {
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  margin: 0;
  line-height: 1.15;
  white-space: nowrap;
}

.jy-footer-contact {
  font-size: 0.875rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

.jy-footer-parent-logo-cell {
  grid-column: 2;
  grid-row: 1;
  height: 0;
  min-height: 100%;
  min-width: 0;
}

.jy-footer-parent-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 0.08rem 0.45rem;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  line-height: 0;
}

.jy-footer-parent-lockup {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

@media (max-width: 575.98px) {
  .jy-footer-left {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 0.55rem;
  }

  .jy-footer-parent-logo-cell {
    height: auto;
    min-height: 0;
    max-width: min(300px, 100%);
  }

  .jy-footer-parent-logo {
    min-height: 3.1rem;
  }
}
