/* ==========================================================================
   Page Content — 3-3A 이후 실제 콘텐츠가 채워지는 서브페이지 공용 스타일
   HOME(css/home.css)과는 별도 파일이지만, 동일한 Design Token(tokens.css)과
   Button/Card 스타일 언어를 그대로 재사용한다. 새로운 색상/폰트를 추가하지 않는다.
   이 파일은 실제 콘텐츠가 채워진 서브페이지에서만 로드한다(Page Shell 상태인
   나머지 페이지는 계속 components.css의 .content-pending만 사용).
   ========================================================================== */

/* ---------- Page Hero 보조 요소 (components.css .page-hero 확장) ---------- */
/* .page-hero__desc, .page-hero__cta 는 css/components.css에 정의됨 */

/* ---------- Section 공통 (HOME의 .home-section과 동일한 패턴) ---------- */
.page-section {
  padding: 64px 0;
}

.page-section--alt {
  background: var(--color-section-bg);
}

.page-section__head {
  max-width: 640px;
  margin: 0 0 32px;
}

.page-section__eyebrow {
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}

.page-section__title {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 12px;
  line-height: 1.35;
}

.page-section__desc {
  font-size: var(--fs-body);
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .page-section {
    padding: 40px 0;
  }
}

/* ---------- Structure Flow (기업 ↔ LS 관련 사업구조 ↔ FEMS/재생에너지) ---------- */
.structure-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.structure-flow__node {
  flex: 1;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
}

.structure-flow__node-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 6px;
}

.structure-flow__node-desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.55;
}

.structure-flow__arrow {
  flex-shrink: 0;
  font-size: 20px;
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .structure-flow {
    flex-direction: column;
  }
  .structure-flow__arrow {
    transform: rotate(90deg);
  }
  .structure-flow__node {
    width: 100%;
  }
}

/* 실제 구조도 자산 미확보 상태 표시 */
.diagram-placeholder {
  margin-top: 24px;
  border: 1px dashed var(--color-border);
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  font-size: 12px;
  font-family: monospace;
  color: var(--color-text-secondary);
}

/* 실제 구조도 자산 연결 완료 (3-5) — 기존 ls-est.com FEMS 개념도 원본 */
.diagram-image-wrap {
  margin-top: 24px;
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.diagram-image-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.section-note {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin: 16px 0 0;
}

/* ---------- Value Cards ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.value-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
}

.value-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 8px;
}

.value-card__desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ---------- ESG / RE100 Flow (세로) ---------- */
.esg-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 420px;
  margin: 0 auto;
}

.esg-flow__step {
  width: 100%;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
}

.esg-flow__arrow {
  color: var(--color-accent);
  font-size: 18px;
  padding: 6px 0;
}

/* ---------- Page CTA band (HOME .final-cta와 동일 언어, 서브페이지용) ---------- */
.page-cta {
  background: var(--color-primary);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

.page-cta__title {
  font-size: var(--fs-h2);
  font-weight: 700;
  margin: 0 0 12px;
}

.page-cta__desc {
  font-size: 15px;
  color: #C9D4E5;
  margin: 0 0 28px;
}

.page-cta__group {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.page-cta .btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.page-cta .btn-secondary:hover,
.page-cta .btn-secondary:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* .page-cta 배경이 --color-primary라 .back-to-list(같은 색 텍스트)가 그대로 쓰이면
   보이지 않으므로, 이 배경 위에서만 흰색 계열로 override(3-14C-2 §19) */
.page-cta .back-to-list {
  color: #fff;
}

.page-cta .back-to-list:hover,
.page-cta .back-to-list:focus-visible {
  color: #C9D4E5;
}

@media (max-width: 768px) {
  .page-cta__group {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---------- Form (FEMS 도입효과 문의 등 문의 폼 공용) ---------- */
.form-section {
  padding: 56px 0 80px;
}

.form-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .form-layout {
    grid-template-columns: 1fr;
  }
}

.form-intro__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 12px;
}

.form-intro__desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0 0 16px;
}

.form-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.form-label .required {
  color: #C23B3B;
  margin-left: 2px;
}

.form-input,
.form-textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  min-height: 44px;
  color: var(--color-text-primary);
  background: #fff;
  width: 100%;
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

.form-input:focus-visible,
.form-textarea:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}

.form-consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.form-consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin: 2px 0 0;
  accent-color: var(--color-primary);
}

.form-consent label {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.form-consent a {
  color: var(--color-primary);
  text-decoration: underline;
}

.form-note {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--color-text-secondary);
  margin: 4px 0 0;
}

.form-submit {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.form-submit .btn {
  width: 100%;
}

.form-submit .btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ---------- Form Status (Formspree 제출 결과 메시지 — 3-9B) ---------- */
.form-status {
  grid-column: 1 / -1;
  font-size: 14px;
  line-height: 1.6;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-top: 4px;
}

.form-status--success {
  background: #E8F6F1;
  border: 1px solid var(--color-accent);
  color: var(--color-primary);
  font-weight: 600;
}

.form-status--error {
  background: #FBEAEA;
  border: 1px solid #C23B3B;
  color: #8A2A2A;
}

/* ---------- Checkbox Group (참석 이유 등 다중 선택) ---------- */
.checkbox-group {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-group__option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.checkbox-group__option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin: 2px 0 0;
  accent-color: var(--color-primary);
}

.checkbox-group__option label {
  font-size: 14px;
  color: var(--color-text-primary);
  line-height: 1.55;
}

/* ---------- Radio Group (배타적 단일 선택 — 있음/없음, 사용함/사용하지 않음, 상/중/하 등) ---------- */
.radio-field {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-field__legend {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-group__option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  min-height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.radio-group__option input[type="radio"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
}

.radio-group__option label {
  font-size: 14px;
  color: var(--color-text-primary);
  line-height: 1.4;
}

@media (max-width: 640px) {
  .radio-group {
    flex-direction: column;
  }
  .radio-group__option {
    width: 100%;
  }
}

/* ---------- Screen-reader Only (시각적으로 숨기되 스크린리더에는 노출) ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Select Pending (설명회 선택 필드, 실제 일정 데이터 확보 전) ---------- */
.select-pending-wrap {
  grid-column: 1 / -1;
}

.select-pending {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-section-bg);
  color: var(--color-text-secondary);
  font-family: inherit;
  font-size: 14px;
  cursor: not-allowed;
}

.field-note {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin: 6px 0 0;
  line-height: 1.5;
}

/* ---------- Form Select (일정 데이터 로딩 성공 후 활성화되는 select — 3-7B-2) ---------- */
.form-select {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  min-height: 44px;
  color: var(--color-text-primary);
  background: #fff;
  width: 100%;
}

.form-select:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}

/* ---------- Schedule Page (일정안내) ---------- */
.schedule-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.schedule-toolbar__year {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
}

.schedule-toolbar__year select {
  font-family: inherit;
  font-size: 14px;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  background: #fff;
  min-height: 40px;
}

.schedule-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .schedule-layout {
    grid-template-columns: 1fr;
  }
}

.schedule-panel {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.schedule-panel__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 16px;
}

/* 캘린더 placeholder — 실제 월간 달력 그리드 구조는 유지하되 데이터는 비움 */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.calendar-grid__weekday {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  padding: 6px 0;
}

.calendar-grid__cell {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--color-text-secondary);
  background: var(--color-section-bg);
}

.calendar-grid__cell--empty {
  background: transparent;
}

/* ---------- Calendar Nav / Event Cell (3-7B-3: 실제 날짜 매핑) ---------- */
.calendar-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.calendar-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.calendar-nav__btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  min-height: 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-primary);
  cursor: pointer;
}

.calendar-nav__btn:hover {
  background: var(--color-section-bg);
}

.calendar-nav__btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 1px;
}

.calendar-nav__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  min-width: 76px;
  text-align: center;
  display: inline-block;
}

.calendar-grid__cell--day {
  flex-direction: column;
  gap: 2px;
  padding: 2px;
}

.calendar-grid__day-number {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.calendar-grid__cell--event {
  background: #E7F0FB;
  border: 1px solid var(--color-accent);
  cursor: pointer;
  color: var(--color-primary);
}

.calendar-grid__cell--event .calendar-grid__day-number {
  color: var(--color-primary);
  font-weight: 700;
}

.calendar-grid__cell--event:hover,
.calendar-grid__cell--event:focus-visible {
  background: var(--color-accent);
  color: #fff;
}

.calendar-grid__cell--event:hover .calendar-grid__day-number,
.calendar-grid__cell--event:focus-visible .calendar-grid__day-number {
  color: #fff;
}

.calendar-grid__cell--event:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 1px;
}

.calendar-grid__event-label {
  font-size: 9px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.schedule-detail {
  margin-top: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  background: var(--color-section-bg);
}

.schedule-detail__round {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 8px;
}

.schedule-detail__row {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-primary);
  padding: 4px 0;
  line-height: 1.5;
}

.schedule-detail__row dt {
  flex-shrink: 0;
  width: 56px;
  font-weight: 700;
  color: var(--color-text-secondary);
}

.schedule-detail__row dd {
  margin: 0;
}

/* 일정 리스트/카드 공용 pending 상태 */
.schedule-pending {
  border: 1px dashed var(--color-border);
  background: var(--color-section-bg);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
}

.schedule-pending__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 8px;
}

.schedule-pending__desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* 모바일 Schedule Card (테이블 대신 사용) */
.schedule-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.schedule-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
  background: #fff;
}

/* ---------- Schedule Note (Calendar 부분구현 안내 — 3-7B-2, 정리 중 placeholder와는 별개) ---------- */
.schedule-note {
  border: 1px dashed var(--color-border);
  background: var(--color-section-bg);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  text-align: center;
}

.schedule-note__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 8px;
}

.schedule-note__desc {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* ---------- Schedule Status (로딩/오류 안내 — 3-7B-2) ---------- */
.schedule-status {
  font-size: 14px;
  color: var(--color-text-secondary);
  padding: 16px 0;
  text-align: center;
}

.schedule-status--error {
  color: #C23B3B;
  font-weight: 600;
}

.schedule-panel__count {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-secondary);
}

/* ---------- Schedule Table (Desktop) / Schedule Card 상세 (Mobile) — 3-7B-2 실데이터 연결 ---------- */
.schedule-table-wrap {
  overflow-x: auto;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.schedule-table th,
.schedule-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  color: var(--color-text-primary);
  line-height: 1.5;
}

.schedule-table thead th {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-border);
}

.schedule-table tbody th[scope="row"] {
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

.schedule-card__round {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 10px;
}

.schedule-card__meta {
  margin: 0;
}

.schedule-card__row {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid var(--color-border);
}

.schedule-card__row:first-child {
  border-top: none;
}

.schedule-card__row dt {
  flex-shrink: 0;
  width: 60px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-secondary);
}

.schedule-card__row dd {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-primary);
  line-height: 1.55;
}

/* Desktop: table 표시 / Mobile: card 표시 전환 (기존 .schedule-layout 900px 기준과 동일) */
@media (min-width: 901px) {
  .schedule-card-list {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .schedule-table-wrap {
    display: none !important;
  }
}

/* ---------- Form Help (입력 도움말 — 예시 리스트, 확정 서비스 목록 아님) ---------- */
.form-help {
  grid-column: 1 / -1;
  background: var(--color-section-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-top: -4px;
}

.form-help__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 8px;
}

.form-help__list {
  margin: 0 0 12px;
  padding-left: 18px;
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.form-help__list:last-child {
  margin-bottom: 0;
}

/* ---------- Contact Info Block (문의하기 좌측 컬럼) ---------- */
.contact-info-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-list__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-info-list__label {
  flex-shrink: 0;
  width: 56px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
}

.contact-info-list__value {
  font-size: 15px;
  color: var(--color-text-primary);
  line-height: 1.6;
}

.contact-info-list__value a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ---------- Location Page (오시는길) ---------- */
.map-placeholder {
  width: 100%;
  min-height: 280px;
  border: 1px dashed var(--color-border);
  background: var(--color-section-bg);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 24px;
}

.map-placeholder__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
}

.map-placeholder__desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.6;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .location-grid {
    grid-template-columns: 1fr;
  }
}

.location-panel {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.location-panel__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 16px;
}

.transit-pending {
  border: 1px dashed var(--color-border);
  background: var(--color-section-bg);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  text-align: center;
}

.transit-pending__desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.6;
}

.map-embed-wrap {
  position: relative;
  width: 100%;
  min-height: 280px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-section-bg);
}

.map-embed-wrap iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

@media (max-width: 480px) {
  .map-embed-wrap iframe {
    height: 240px;
  }
}

.map-embed-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: underline;
}

/* ---------- Legal Document (개인정보 처리방침 등 법률문서 원문 이전) ---------- */
.legal-doc {
  max-width: 960px;
  margin: 0 auto;
}

.legal-toc {
  background: var(--color-section-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 40px;
}

.legal-toc__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-toc__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.legal-toc__list a {
  display: block;
  padding: 8px 6px;
  font-size: 14px;
  color: var(--color-text-primary);
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

.legal-toc__list a:hover,
.legal-toc__list a:focus-visible {
  color: var(--color-primary);
  background: #fff;
}

@media (max-width: 640px) {
  .legal-toc__list {
    grid-template-columns: 1fr;
  }
}

.legal-article {
  padding: 32px 0;
  border-bottom: 1px solid var(--color-border);
  scroll-margin-top: 96px;
}

.legal-article:last-of-type {
  border-bottom: none;
}

.legal-article__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 16px;
  line-height: 1.55;
}

.legal-article__body p {
  font-size: 15px;
  color: var(--color-text-primary);
  line-height: 1.85;
  margin: 0 0 16px;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.legal-article__body p:last-child {
  margin-bottom: 0;
}

.legal-article__body ul {
  margin: 0 0 16px;
  padding-left: 20px;
  font-size: 15px;
  color: var(--color-text-primary);
  line-height: 1.85;
  overflow-wrap: break-word;
}

.legal-article__body strong {
  font-weight: 700;
  color: var(--color-text-primary);
}

@media (max-width: 768px) {
  .legal-article__title {
    font-size: 16px;
  }
  .legal-article__body p,
  .legal-article__body ul {
    font-size: 14px;
  }
}

/* ---------- Asset Placeholder (이미지 자산 미확보) ---------- */
.asset-placeholder {
  border: 1px dashed var(--color-border);
  background: var(--color-section-bg);
  border-radius: var(--radius-md);
  padding: 40px 20px;
  text-align: center;
  font-size: 12px;
  font-family: monospace;
  color: var(--color-text-secondary);
}

/* ==========================================================================
   3-14C-2 — Project Cases + RE100 Field Gallery 공용 컴포넌트
   ========================================================================== */

/* ---------- Breadcrumb ---------- */
.breadcrumb-bar {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  background: #fff;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--color-text-secondary);
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb a {
  color: var(--color-text-secondary);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--color-primary);
  text-decoration: underline;
}

.breadcrumb__sep {
  color: var(--color-border);
}

.breadcrumb__current {
  color: var(--color-text-primary);
  font-weight: 600;
}

/* ---------- Project Overview (사업개요: 사업유형/지역/설비용량) ---------- */
.project-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 0;
}

.project-overview__item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.project-overview__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 6px;
}

.project-overview__value {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .project-overview {
    grid-template-columns: 1fr;
  }
}

/* ---------- Project Description (Legacy 원본 설명) ---------- */
.project-desc p {
  font-size: 15px;
  color: var(--color-text-primary);
  line-height: 1.85;
  margin: 0 0 16px;
  word-break: keep-all;
}

.project-desc p:last-child {
  margin-bottom: 0;
}

/* ---------- Media Gallery (Project Gallery / RE100 Gallery 공용) ---------- */
.media-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.media-gallery-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  padding: 0;
  cursor: zoom-in;
  display: block;
  width: 100%;
}

.media-gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.media-gallery-item:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.media-gallery-figure {
  margin: 0;
}

.media-gallery-figure figcaption {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-top: 8px;
  text-align: center;
}

/* ---------- Lightbox Overlay ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(11, 37, 69, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-overlay.is-open {
  display: flex;
}

.lightbox-overlay__img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-overlay__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay__close:hover,
.lightbox-overlay__close:focus-visible {
  background: rgba(255, 255, 255, 0.2);
}

/* ---------- Back to List Link ---------- */
.back-to-list {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 8px;
}

.back-to-list:hover,
.back-to-list:focus-visible {
  text-decoration: underline;
}

/* ---------- Project Filter Tabs (/project/) ---------- */
.project-filter {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.project-filter__btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text-secondary);
  cursor: pointer;
  min-height: 40px;
}

.project-filter__btn:hover,
.project-filter__btn:focus-visible {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.project-filter__btn.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ---------- Project List Cards (/project/) ---------- */
.project-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

.project-list-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.project-list-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.project-list-card__img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-section-bg);
}

.project-list-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-list-card__body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.project-list-card__type {
  display: inline-flex;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-list-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.4;
}

.project-list-card__meta {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.project-list-card__link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-top: 6px;
}

.project-list-card__link:hover,
.project-list-card__link:focus-visible {
  text-decoration: underline;
}

/* ---------- RE100 Gallery Posts (/re100presentation/설명회-현장/) ---------- */
.gallery-post-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.gallery-post {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.gallery-post__meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--color-text-secondary);
  margin: 0 0 10px;
  flex-wrap: wrap;
}

.gallery-post__meta .badge {
  font-weight: 700;
  color: var(--color-primary);
}

.gallery-post__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 14px;
}

.gallery-post__body p {
  font-size: 15px;
  color: var(--color-text-primary);
  line-height: 1.8;
  margin: 0 0 18px;
}

@media (max-width: 768px) {
  .gallery-post {
    padding: 22px 18px;
  }
}

/* ---------- Asset Image (실제 자산 연결 완료, 3-5) ---------- */
.asset-image-wrap {
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.asset-image-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.asset-image-wrap--briefing img {
  max-width: 360px;
  width: 100%;
}

.asset-image-wrap--logo {
  background: #0B0B0B;
  display: flex;
  align-items: center;
  justify-content: center;
}

.asset-image-wrap--logo img {
  max-width: 260px;
  width: 100%;
}

@media (max-width: 480px) {
  .asset-image-wrap--briefing img {
    max-width: 100%;
  }
}
