/* =========================================================
   tech-shared.css — 技術單元共用
========================================================= */

/* 內文段落間距 → shared-typography.css（.tech-page） */

.tech-page .tech-page-lead {
  margin: 0 0 28px;
  padding: 16px 20px;
  max-width: 52rem;
  color: var(--tech-primary-deep, #083d4d);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.6;
  background: linear-gradient(135deg, rgba(12, 89, 111, 0.06), rgba(25, 167, 184, 0.08));
  border-left: 4px solid var(--tech-primary, #0c596f);
  border-radius: 0 0.75rem 0.75rem 0;
}

/* 區塊間距 → shared-typography.css（.tech-page .tech-section） */
/* 圖卡 / 表格 → shared-content.css（.tech-figure-card、.tech-table、.tech-spec-table） */

/* ---- Accordion ---- */
.tech-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}

.tech-accordion .accord-title {
  position: relative;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #f8fafc;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.tech-accordion .accord-title:has(+ .collapse:not(.show)) {
  margin-bottom: 12px;
  border-radius: 0.75rem;
}

.tech-accordion .accord-title:has(+ .collapse.show) {
  border-radius: 0.75rem 0.75rem 0 0;
  border-bottom: 0;
  background: linear-gradient(135deg, var(--tech-primary, #0c596f), var(--tech-accent, #19a7b8));
  border-color: transparent;
}

.tech-accordion .accord-title a.btn-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  color: var(--tech-primary-deep, #083d4d);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  text-decoration: none;
  border: 0;
}

.tech-accordion .accord-title:has(+ .collapse.show) a.btn-link {
  color: #ffffff;
}

.tech-accordion .accord-body {
  padding: 20px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-top: 0;
  border-radius: 0 0 0.75rem 0.75rem;
  font-size: 1rem;
  line-height: 1.75;
}

.tech-accordion .collapse.show {
  margin-bottom: 12px;
}

.tech-accordion .accord-body p:last-child {
  margin-bottom: 0;
}

.tech-accordion .btn-link i.fa {
  position: static;
  flex-shrink: 0;
  font-size: 1.1rem;
  display: none;
}

.tech-accordion .btn-link[aria-expanded="true"] i.fa.fa-angle-up {
  display: block;
}

.tech-accordion .btn-link[aria-expanded="false"] i.fa.fa-angle-down {
  display: block;
}

.tech-accordion a {
  outline: none;
}

.tech-accordion a:focus-visible {
  outline: 2px solid var(--tech-accent, #19a7b8);
  outline-offset: 2px;
}

@media screen and (max-width: 767px) {
  .tech-accordion .accord-title a.btn-link {
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  .tech-accordion .accord-body {
    padding: 16px;
  }
}
