/* 성균추진연구회 소개 사이트. 밝고 깔끔한 연구실 스타일. 로고의 초록(#124532)이 중심이고 금색은 패치에서 가져와 아주 조금만 쓴다. */
:root {
  --green: #124532;
  --green-2: #1c6a4c;
  --ink: #16211c;
  --muted: #56655d;
  --line: #dde6e0;
  --soft: #f3f7f4;
  --bg: #ffffff;
  --gold: #b8892b;
  --radius: 14px;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: Pretendard, "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.7; font-size: 17px; overflow-wrap: anywhere; word-break: keep-all; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--green-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 0.5em; color: var(--green); }
h1 { font-size: clamp(2rem, 5.2vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: 0.4em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--green); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section.soft { background: var(--soft); }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.9rem; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 46em; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* 버튼: 글자는 한 줄, 묶음이 줄바꿈된다 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 1rem; white-space: nowrap; flex-shrink: 0; border: 2px solid var(--green); background: var(--green); color: #fff; cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: var(--green-2); border-color: var(--green-2); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--green); }
.btn.ghost:hover { background: var(--soft); }
.btn.light { background: #fff; border-color: #fff; color: var(--green); }
.btn.light:hover { background: var(--soft); }
.btn.outline-light { background: transparent; border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn.outline-light:hover { background: rgba(255, 255, 255, 0.12); }
.btn.sm { min-height: 38px; padding: 0 16px; font-size: 0.9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* 머리글 */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 36px; width: auto; display: block; }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: 0.97rem; white-space: nowrap; }
.nav a:hover { background: var(--soft); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--green); background: var(--soft); }
.header-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lang { font-size: 0.85rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.lang a { color: inherit; padding: 4px 6px; }
.lang [aria-current="true"] { color: var(--green); }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--soft); }
.menu .bars, .menu .bars::before, .menu .bars::after { display: block; width: 20px; height: 2px; background: var(--green); border-radius: 2px; content: ""; position: relative; }
.menu .bars::before { position: absolute; top: -6px; }
.menu .bars::after { position: absolute; top: 6px; }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06); padding: 10px var(--gutter) 18px; }
.menu-panel a { display: block; padding: 12px 6px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.menu-panel .btn { margin-top: 14px; width: 100%; }

@media (max-width: 980px) {
  .nav { display: none; }
  .menu { display: block; margin-left: auto; }
  .header-tools { margin-left: 0; }
  .header .wrap { gap: 10px; }
}
@media (max-width: 480px) { .header-tools .btn { display: none; } }

/* 첫 화면 */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--soft) 100%); padding: clamp(40px, 7vw, 84px) 0 clamp(48px, 8vw, 96px); }
.hero::before { content: ""; position: absolute; right: -6%; bottom: -12%; width: min(62vw, 620px); aspect-ratio: 1915 / 1585; background: url("/assets/symbol.svg") no-repeat center / contain; opacity: 0.06; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 0.4em; }
.hero .patch { display: block; width: 100%; max-width: 380px; margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(18, 69, 50, 0.18)); }
@media (max-width: 800px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .patch { max-width: 260px; order: -1; }
}
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 28px; padding: 0; list-style: none; color: var(--muted); font-size: 0.95rem; }
.facts li { margin: 0; display: flex; gap: 8px; align-items: baseline; }
.facts b { color: var(--green); }

/* 카드와 격자 */
.grid { display: grid; gap: 20px; margin-top: 32px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cols-4, .cols-3, .cols-2 { grid-template-columns: minmax(0, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.soft .card { border-color: transparent; box-shadow: 0 1px 0 var(--line); }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card .num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--soft); color: var(--green); font-weight: 800; margin-bottom: 12px; }
.card.link { display: block; color: inherit; transition: transform .15s, box-shadow .15s; }
.card.link:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(18, 69, 50, 0.12); }
.card .more { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--green-2); }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; color: var(--green); background: var(--soft); border-radius: 999px; padding: 3px 12px; white-space: nowrap; margin-bottom: 12px; }

/* 안전 띠 */
.band { background: var(--green); color: #fff; }
.band h2, .band h3 { color: #fff; }
.band .lead { color: rgba(255, 255, 255, 0.82); }
.band .card { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.18); color: #fff; }
.band .eyebrow { color: #e3c47a; }

/* 본문 페이지 */
.page-head { background: linear-gradient(180deg, #fff, var(--soft)); padding: clamp(36px, 6vw, 72px) 0 clamp(28px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
.prose { max-width: 46em; }
.two { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
@media (max-width: 800px) { .two { grid-template-columns: 1fr; } }
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 12px; margin: 24px 0 0; }
.steps li { counter-increment: step; display: flex; gap: 14px; align-items: flex-start; margin: 0; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.steps li::before { content: counter(step); flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 0.9rem; }
.timeline { list-style: none; padding: 0; margin: 28px 0 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 24px 26px; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); }
.timeline time { display: block; font-weight: 800; color: var(--green); }
.notice { border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px 20px; color: var(--muted); background: #fff; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.dl dt { font-weight: 700; color: var(--green); }
.dl dd { margin: 0; }
@media (max-width: 560px) { .dl { grid-template-columns: 1fr; gap: 0; } .dl dd { margin-bottom: 12px; } }
.cta { text-align: center; }
.cta .actions { justify-content: center; }


/* 연구 분야 사진(출처 표기 포함) */
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--soft); aspect-ratio: 16 / 10; object-fit: cover; }
.photo figcaption { margin-top: 8px; font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

/* 활동 사진과 소식 */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; margin-top: 24px; }
.gallery.small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 10px; }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.shot { margin: 0; }
.shot a { display: block; border-radius: 12px; overflow: hidden; background: var(--soft); }
.shot img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s; }
.shot a:hover img { transform: scale(1.03); }
.shot figcaption { margin-top: 8px; font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
.shot figcaption time { display: block; font-size: 0.8rem; opacity: 0.8; }
.posts { display: grid; gap: 28px; margin-top: 24px; max-width: 46em; }
.post time { display: block; font-size: 0.85rem; font-weight: 700; color: var(--gold); margin-bottom: 4px; }
.post h3 { margin-bottom: 0.4em; }
.post p { color: var(--ink); }

/* 운영진 소개 */
.person .avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; background: var(--soft); }
.person .who { font-weight: 800; font-size: 1.1rem; color: var(--ink); margin-bottom: 0.3em; }
.person .bio { color: var(--muted); font-size: 0.95rem; }
.person blockquote { margin: 14px 0 0; padding: 4px 0 4px 14px; border-left: 3px solid var(--gold); color: var(--ink); font-size: 0.97rem; }
.person blockquote span { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; color: var(--gold); margin-bottom: 2px; }
.band.cta { text-align: center; }
.band.cta .actions { justify-content: center; }

/* 바닥글 */
.footer { background: #0e3425; color: rgba(255, 255, 255, 0.82); padding: 48px 0 28px; font-size: 0.95rem; }
.footer a { color: #fff; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .footer .cols { grid-template-columns: 1fr; } }
.footer img { height: 34px; width: auto; margin-bottom: 14px; display: block; }
.footer h4 { margin: 0 0 10px; color: #fff; font-size: 0.95rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 6px; }
.footer .small { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .header, .footer, .menu { display: none; } }

/* 운영진 조직도 */
.org { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr); gap: 32px; margin-top: 36px; align-items: start; }
.org-branch { display: flex; flex-direction: column; align-items: center; }
.org-node { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 12px; text-align: center; width: 100%; }
.org-node h3 { margin: 0; font-size: 1rem; }
.org-node.head { max-width: 280px; background: var(--green); border-color: var(--green); color: #fff; }
.org-node.head h3, .org-node.head .who { color: #fff; }
.org-node .avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; background: var(--soft); }
.org-node .who { margin: 4px 0 0; font-weight: 700; font-size: 0.95rem; }
.org-node blockquote { margin: 10px 0 0; padding: 2px 0 2px 10px; border-left: 3px solid var(--gold); text-align: left; font-size: 0.88rem; }
.org-node blockquote span { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; color: var(--gold); }
.org-children { list-style: none; margin: 0; padding: 48px 0 0; display: flex; width: 100%; position: relative; }
.org-children::before { content: ""; position: absolute; top: 0; left: 50%; height: 24px; border-left: 2px solid var(--line); }
.org-children li { flex: 1 1 0; min-width: 0; padding: 0 5px; position: relative; display: flex; }
.org-children li::before { content: ""; position: absolute; top: -24px; left: 50%; height: 24px; border-left: 2px solid var(--line); }
.org-children li::after { content: ""; position: absolute; top: -24px; left: 0; right: 0; border-top: 2px solid var(--line); }
.org-children li:first-child::after { left: 50%; }
.org-children li:last-child::after { right: 50%; }
.org-children li:only-child::after { display: none; }
.roles { margin: 40px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.roles > div { padding: 14px 0; border-top: 1px solid var(--line); }
.roles dt { font-weight: 800; color: var(--green); }
.roles dd { margin: 4px 0 0; color: var(--muted); }
@media (max-width: 1000px) { .org { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .org-node.head { max-width: none; }
  .roles { grid-template-columns: minmax(0, 1fr); }
  .org-children { flex-direction: column; padding: 24px 0 0 18px; margin-left: 50%; width: auto; align-self: stretch; margin-left: 0; }
  .org-children::before { top: 0; left: 0; height: 100%; }
  .org-children li { padding: 0 0 10px 18px; }
  .org-children li::before { top: 50%; left: 0; width: 18px; height: 0; border-left: 0; border-top: 2px solid var(--line); transform: translateY(-5px); }
  .org-children li::after { display: none; }
}

/* 문의 메일 */
.mailbox .mail-addr { font-size: 1.25rem; font-weight: 800; color: var(--green); margin: 0 0 4px; overflow-wrap: anywhere; }
.mailbox .small { color: var(--muted); font-size: 0.9rem; margin: 12px 0 0; }
