/* =========================================================
   sustainable-base.css
   永續發展專區共用內容樣式（舊版 class 相容層）
   載入：SustainablePageHead（全頁共用）
========================================================= */

.sustainable-page .module-article.article-white {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid var(--sustainable-border, #d4e5de);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.sustainable-page .module-article.article-white p {
  line-height: 1.85;
  color: var(--sustainable-text, #1a3040);
}

.sustainable-page .module-article.article-white img.img-fluid {
  max-width: 100%;
  height: auto;
}

/* 手風琴（沿用舊版 tech-accordion 結構） */
.sustainable-page .tech-accordion {
  border-bottom: 1px solid rgba(15, 23, 42, 0.85);
}

.sustainable-page .tech-accordion .accord-title {
  position: relative;
}

.sustainable-page .tech-accordion .accord-title:nth-child(4n+1) {
  background: rgba(26, 107, 82, 0.06);
}

.sustainable-page .tech-accordion .accord-title,
.sustainable-page .tech-accordion .accord-body {
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-bottom: 0;
}

.sustainable-page .tech-accordion .accord-body {
  background: linear-gradient(0deg, rgba(26, 107, 82, 0.06) 0%, rgba(255, 255, 255, 0) 20%);
  border-top: 0;
  font-size: 0.9rem;
}

.sustainable-page .tech-accordion .accord-title:last-of-type,
.sustainable-page .tech-accordion .accord-body:last-of-type {
  border-bottom: 1px solid rgba(15, 23, 42, 0.2);
}

.sustainable-page .tech-accordion .accord-title a,
.sustainable-page .tech-accordion .accord-body a {
  display: block;
  color: var(--sustainable-primary, #1a6b52);
  font-weight: 700;
}

.sustainable-page .tech-accordion .accord-body:last-of-type {
  border-top: 1px dashed rgba(15, 23, 42, 0.2);
  position: relative;
  top: 1px;
}

.sustainable-page .tech-accordion .btn-link i.fa {
  position: absolute;
  right: 15px;
  font-size: 120%;
  display: none;
  top: 15px;
}

.sustainable-page .zoom-toggle {
  cursor: zoom-in;
  transition: box-shadow 0.25s ease, outline-color 0.25s ease;
}

.sustainable-page .zoom-toggle.content-zoom-active {
  outline: 3px solid var(--sustainable-accent, #2d9b78);
  outline-offset: 3px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

/* 全螢幕預覽層（append 至 body，不受 section-main overflow 限制） */
.content-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: rgba(10, 20, 30, 0.88);
  cursor: zoom-out;
}

.content-zoom-overlay img {
  display: block;
  max-width: min(96vw, 1100px);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  cursor: default;
  background: #ffffff;
}

.content-zoom-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10051;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1a3040;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.content-zoom-close:hover {
  background: #ffffff;
}

.sustainable-page p.note-text {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--sustainable-muted, #6b8a7d);
  margin-top: 0.5rem;
}

/* 表格區塊內備註（位於 table 下方、content-table 內） */
.sustainable-page .content-table > .note-text {
  margin: 0;
  padding: 0.85rem 1.25rem 1rem;
  background: #f9fafb;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
}
