/* 감람나무 상담센터 — 언론 소개 */
/* 외부 폰트, 외부 이미지, JavaScript를 사용하지 않습니다. */

.op-section,
.op-page-content,
.op-director {
  --op-ink: #354735;
  --op-text: #465243;
  --op-muted: #626d5f;
  --op-line: #dce3d4;
  --op-paper: #fffefa;
  --op-green: #4c6441;
  --op-soft: #eef3e7;

  color: var(--op-text);
}

.op-section *,
.op-page-content *,
.op-director * {
  box-sizing: border-box;
}

/* 홈 화면 */

.op-home {
  padding: 72px 0;
  background: #f5f7ef;
  border-top: 1px solid #e8ecdf;
  border-bottom: 1px solid #e8ecdf;
}

.op-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.op-section-heading > div {
  min-width: 0;
}

.op-eyebrow {
  margin: 0 0 10px;
  color: var(--op-green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .035em;
}

.op-section-heading h2 {
  margin: 0;
  color: var(--op-ink);
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.5;
  letter-spacing: -.045em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.op-section-description {
  max-width: 640px;
  margin: 16px 0 0;
  color: var(--op-muted);
  font-size: 15px;
  line-height: 1.85;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.op-more-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  flex-shrink: 0;
  color: var(--op-green);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.op-more-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 기사 카드 */

.op-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
}

.op-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--op-line);
  border-radius: 20px;
  background: var(--op-paper);
  box-shadow: 0 6px 22px rgba(48, 65, 37, .035);
}

.op-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.op-publisher {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 7px;
  background: var(--op-soft);
  color: #43573a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.op-date {
  color: var(--op-muted);
  font-size: 12px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.op-category {
  margin: 0 0 9px;
  color: var(--op-green);
  font-size: 12px;
  font-weight: 700;
}

.op-card .op-card-title {
  margin: 0 0 16px;
  color: var(--op-ink);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -.035em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.op-card-summary {
  margin: 0;
  color: var(--op-text);
  font-size: 14px;
  line-height: 1.9;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.op-card-note {
  margin: 17px 0 0;
  padding: 12px 13px;
  border-radius: 9px;
  background: #f5f3ed;
  color: #626356;
  font-size: 12px;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.op-card-bottom {
  margin-top: auto;
  padding-top: 24px;
}

.op-original-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 11px 0 0;
  border-top: 1px solid #e7ebdf;
  color: var(--op-green);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.op-original-link:hover {
  color: #304728;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.op-source-note {
  margin: 22px 0 0;
  color: var(--op-muted);
  font-size: 12px;
  line-height: 1.85;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* 전용 페이지 */

.op-page-heading {
  background: #f5f7ef;
}

.op-page-content {
  padding-top: 42px;
  padding-bottom: 70px;
}

.op-list-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 25px;
}

.op-list-intro > p {
  margin: 0;
  line-height: 1.85;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.op-count {
  color: var(--op-muted);
  font-size: 13px;
}

.op-editorial-note {
  margin-top: 32px;
  padding: 25px 28px;
  border: 1px solid #e3e7dc;
  border-radius: 15px;
  background: #f7f8f3;
}

.op-editorial-note h2 {
  margin: 0 0 12px;
  color: var(--op-ink);
  font-size: 16px;
  line-height: 1.6;
}

.op-editorial-note ul {
  margin: 0;
  padding-left: 19px;
  list-style: disc;
}

.op-editorial-note li {
  margin: 6px 0;
  color: var(--op-muted);
  font-size: 13px;
  line-height: 1.85;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.op-related {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 42px;
  padding-top: 32px;
  border-top: 1px solid var(--op-line);
}

.op-related > div {
  min-width: 0;
}

.op-related h2 {
  margin: 0;
  color: var(--op-ink);
  font-size: 20px;
  line-height: 1.65;
  letter-spacing: -.025em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.op-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 공통 버튼 */

.op-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 46px;
  padding: 11px 19px;
  border: 1px solid var(--op-green);
  border-radius: 11px;
  background: var(--op-green);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
}

.op-button:hover {
  border-color: #3c5333;
  background: #3c5333;
  color: #fff;
}

.op-button-secondary {
  border-color: #cdd8c2;
  background: #fffefa;
  color: var(--op-green);
}

.op-button-secondary:hover {
  border-color: #b6c7a8;
  background: #edf2e6;
  color: #354b2b;
}

/* 센터장 소개 연결 영역 */

.op-director {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-top: 42px;
  padding: 28px;
  border: 1px solid var(--op-line);
  border-radius: 18px;
  background: #f2f5ec;
}

.op-director-copy {
  min-width: 0;
}

.op-director h2 {
  margin: 0 0 10px;
  color: var(--op-ink);
  font-size: 23px;
  line-height: 1.5;
  letter-spacing: -.035em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.op-director-copy > p:last-child {
  max-width: 560px;
  margin: 0;
  color: var(--op-muted);
  font-size: 14px;
  line-height: 1.85;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.op-director > .op-button {
  flex-shrink: 0;
}

/* 빈 목록 및 접근성 */

.op-empty {
  padding: 48px 24px;
  border: 1px solid var(--op-line);
  border-radius: 18px;
  background: #f7f8f3;
  text-align: center;
}

.op-empty h2 {
  margin: 0 0 12px;
  color: var(--op-ink);
  font-size: 22px;
}

.op-empty p {
  margin: 0;
  color: var(--op-muted);
  line-height: 1.8;
}

.op-more-link:focus-visible,
.op-original-link:focus-visible,
.op-button:focus-visible {
  outline: 3px solid #7b914d;
  outline-offset: 5px;
  border-radius: 5px;
}

.op-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;
}

/* 활성 기사 전체 표시: PC 3열 / 태블릿 2열 / 모바일 1열 */

.op-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: row;
}

.op-card-summary,
.op-card-note {
  white-space: pre-line;
}

@media (max-width: 960px) {
  .op-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .op-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 태블릿·모바일: 자동 전환 없이 세로로 표시 */

@media (max-width: 960px) {
  .op-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .op-section-heading,
  .op-related,
  .op-director {
    flex-direction: column;
    align-items: flex-start;
  }

  .op-section-heading {
    gap: 14px;
  }

  .op-card-top {
    margin-bottom: 20px;
  }
}

@media (max-width: 640px) {
  .op-home {
    padding: 48px 0;
  }

  .op-section-heading {
    margin-bottom: 22px;
  }

  .op-section-heading h2 {
    font-size: 26px;
  }

  .op-section-description {
    font-size: 14px;
  }

  .op-card {
    padding: 23px 21px;
    border-radius: 16px;
  }

  .op-card .op-card-title {
    font-size: 20px;
  }

  .op-page-content {
    padding-top: 30px;
    padding-bottom: 45px;
  }

  .op-editorial-note {
    padding: 21px;
  }

  .op-related {
    margin-top: 30px;
    padding-top: 25px;
  }

  .op-related-links {
    width: 100%;
  }

  .op-related-links .op-button {
    flex: 1 1 150px;
  }

  .op-director {
    padding: 24px 21px;
    border-radius: 15px;
  }

  .op-director h2 {
    font-size: 21px;
  }

  .op-director > .op-button {
    width: 100%;
  }
}
