@charset "utf-8";
/* [2026-11] 사이언스 바로가기 카드 (사이언스 화면 gallery_youtooth · 메인 '사이언스' latest_pic_youtooth 공통)
   카드 전체가 스트라우만 공식 사이트로 가는 하나의 링크다. 제목·설명은 이미지 대신 글자로 그린다.
   사이트 머리 CSS(main_header.css)가 span·a·p 에 line-height:1em·굵기 400 을 박으므로 클래스마다 직접 정한다. */
.sc-grid {
  --sc-teal: #007664;
  --sc-text: #1f2a33;
  --sc-sub: #5b6670;
  --sc-line: #e3e7ea;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
/* 사이언스 화면: 예전 #gall_ul 규칙(flex)보다 세게 */
.subpage.board#bo_gall ul#gall_ul.sc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; flex-wrap: nowrap; margin: 0; padding: 0; }
.sc-grid > li { min-width: 0; margin: 0; padding: 0; list-style: none; }
.sc-item { display: flex; flex-direction: column; height: 100%; }
.sc-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  border: 1px solid var(--sc-line);
  border-radius: 12px;
  background: #fff;
  color: var(--sc-text);
  text-decoration: none;
  line-height: 1.4;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.sc-card:hover { border-color: var(--sc-teal); box-shadow: 0 6px 20px rgba(0, 0, 0, .06); color: var(--sc-text); text-decoration: none; }
.sc-card:focus-visible { outline: 3px solid var(--sc-teal); outline-offset: 2px; }

/* 로고: 예전 이미지(202×150)는 위쪽 로고 + 아래 제목 글자. 위쪽 로고 칸만 보이게 자른다 */
.sc-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: #f2f2f2;
  overflow: hidden;
  line-height: 0;
}
/* 이미지 칸을 로고 부분 비율(202:92)로 정하고 위쪽만 보이게 한다 */
.sc-logo img { display: block; width: 100%; max-width: 240px; height: auto; aspect-ratio: 202 / 92; object-fit: cover; object-position: 50% 0; }
.sc-logo-empty { font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--sc-teal); }

.sc-body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 20px 22px 22px; }
.sc-title { display: block; font-size: 19px; font-weight: 700; line-height: 1.4; color: var(--sc-text); word-break: keep-all; }
.sc-desc { display: block; flex: 1; margin: 0; font-size: 15px; font-weight: 400; line-height: 1.65; color: var(--sc-sub); word-break: keep-all; overflow-wrap: anywhere; }
.sc-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--sc-teal);
  word-break: keep-all;
}
.sc-cta-text, .sc-cta-name { font: inherit; line-height: inherit; color: inherit; }
.sc-cta svg { flex: none; width: 16px; height: 16px; transition: transform .2s ease; }
.sc-card:hover .sc-cta svg { transform: translate(2px, -2px); }

/* 관리자 줄 (선택 상자 · 수정) */
.sc-admin { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 4px 0; font-size: 13px; line-height: 1.3; color: var(--sc-sub); }
.sc-admin label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; line-height: 1.3; }
.sc-admin input[type=checkbox] { width: 16px; height: 16px; margin: 0; accent-color: var(--sc-teal); }
.sc-admin a { color: var(--sc-teal); font-weight: 500; line-height: 1.3; text-decoration: none; }
.sc-admin a:hover { text-decoration: underline; }

.sc-empty { grid-column: 1 / -1; padding: 60px 0; font-size: 16px; line-height: 1.5; color: var(--sc-sub); text-align: center; }

/* 사이언스 화면 */
#bo_gall.sc-page > .inner_container { max-width: 1080px; }
#bo_gall.sc-page #gall_allchk { margin-bottom: 12px; }
#bo_gall.sc-page .sc-lead {
  max-width: 640px;
  margin: 24px auto 56px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--sc-sub, #5b6670);
  text-align: center;
  word-break: keep-all;
  text-wrap: balance;
}

/* 메인 '사이언스' */
.main .youtooth_sect .sc-grid--main .sc-body { padding: 18px 20px 20px; }
.main .youtooth_sect .sc-grid--main .sc-title { font-size: 18px; }
.main .youtooth_sect .sc-grid--main .sc-desc { font-size: 15px; }

@media (max-width: 900px) {
  .sc-grid { gap: 16px; }
  .sc-body { padding: 16px 18px 18px; }
}
@media (max-width: 767px) {
  .sc-grid, .subpage.board#bo_gall ul#gall_ul.sc-grid { grid-template-columns: minmax(0, 1fr); }
  #bo_gall.sc-page .inWrap { padding: 0 16px; }
  #bo_gall.sc-page .sc-lead { margin: 16px auto 32px; font-size: 15px; }
  /* 메인에서는 세 개가 한눈에 보이게 가로 줄로 */
  .sc-grid--main .sc-card { flex-direction: row; align-items: stretch; }
  .sc-grid--main .sc-logo { flex: none; width: 118px; padding: 8px; }
  .main .youtooth_sect .sc-grid--main .sc-body { gap: 4px; padding: 12px 14px; }
  .main .youtooth_sect .sc-grid--main .sc-title { font-size: 16px; }
  .main .youtooth_sect .sc-grid--main .sc-desc { font-size: 13px; line-height: 1.5; }
  .sc-grid--main .sc-cta { margin-top: 2px; font-size: 13px; }
  /* 좁은 칸에서 '뉴스레터 등록 바로가기'가 두 줄로 깨지지 않게 '바로가기'만 (제목은 바로 위에 있다) */
  .sc-grid--main .sc-cta-name { display: none; }
  .sc-grid--main .sc-cta svg { width: 14px; height: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .sc-card, .sc-cta svg { transition: none; }
  .sc-card:hover .sc-cta svg { transform: none; }
}
