/* Epivara 한국어 사이트 — epivara.com 원본 디자인 기준
   색: Brand Blue #000080 · Gold #C2A129 · Mint #F5FEFF · 본문 파랑 #3A54B4
   서체(브랜드 가이드): 제목 Playfair Display(한글 Noto Serif KR) / 소제목·본문 Glacial Indifference(파일 확보 전 Questrial, 한글 Noto Sans KR)
   크기: 제목 36 · 소제목 26 · 본문 16 기준, 화면 폭에 따라 자동 조절(clamp) · 자간 0.01em · 행간 1.4 */
:root {
  --navy: #000080;
  --blue: #3a54b4;
  --gold: #c2a129;
  --mint: #f5feff;
  --coral: #e86c5a;
  --grey: #737574;
  --ink: #1c1c1c;
  --line: #d9dde8;
  --pill: #b3c0ea;
  --wrap: 980px;
  --head: 'Playfair Display', 'Noto Serif KR', serif;
  --body: 'Glacial Indifference', 'Questrial', 'Noto Sans KR', sans-serif;
  --ui: var(--body);
  /* 반응형 글자 크기: clamp(최소, 기준, 최대) — 폰 390px ↔ PC 1366px 사이에서 자연스럽게 변함 */
  --fs-display: clamp(30px, 1.25rem + 2.6vw, 48px);  /* 메인·페이지 대제목 */
  --fs-h: clamp(24px, 1rem + 1.6vw, 36px);          /* 제목 36 */
  --fs-sub: clamp(19px, .9rem + .85vw, 26px);        /* 소제목 26 */
  --fs-h4: clamp(17px, .85rem + .45vw, 21px);        /* 카드·목록 제목 */
  --fs-lead: clamp(16px, .9rem + .3vw, 18px);
  --fs-body: clamp(15px, .875rem + .2vw, 16px);      /* 본문 16 */
  --fs-body-s: clamp(14px, .82rem + .12vw, 15px);
  --fs-small: clamp(12px, .72rem + .1vw, 13px);
  --fs-ui: clamp(13px, .78rem + .1vw, 14px);
  --gutter: clamp(24px, 4vw, 32px);  /* 화면 양옆 여백 */
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: var(--fs-body); line-height: 1.4; letter-spacing: .01em; color: var(--ink); background: #fff; word-break: keep-all; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4, p { margin: 0; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--navy); color: #fff; padding: 10px 14px; z-index: 99; }

/* type */
.serif { font-family: var(--head); font-weight: 400; }
.h-xl { font-family: var(--head); font-weight: 400; font-size: var(--fs-display); line-height: 1.25; color: var(--navy); }
.h-lg { font-family: var(--head); font-weight: 400; font-size: var(--fs-h); line-height: 1.35; color: var(--ink); }
.h-md { font-family: var(--body); font-weight: 400; font-size: var(--fs-sub); line-height: 1.4; color: var(--gold); }
.h-sm { font-family: var(--ui); font-weight: 600; font-size: var(--fs-h4); line-height: 1.4; color: var(--navy); }
.lead { font-size: var(--fs-lead); color: var(--ink); }
.small { font-size: var(--fs-small); color: var(--grey); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.br-m { display: none; }  /* 폰에서만 줄바꿈 */

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; font-family: var(--ui); font-size: var(--fs-ui); font-weight: 500; color: var(--navy); background: #fff; border: 2px solid var(--navy); text-decoration: none; transition: background .2s, color .2s; cursor: pointer; }
.btn:hover { background: var(--navy); color: #fff; }
.btn--fill { background: var(--navy); color: #fff; }
.btn--fill:hover { background: #fff; color: var(--navy); }
/* Keep the source site's CTA button shape when GnuBoard's common CSS loads later. */
a.btn, button.btn, input.btn {
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  min-height: 44px !important; padding: 0 22px !important; border: 2px solid var(--navy) !important;
  border-radius: 0 !important; font-family: var(--ui) !important; font-size: var(--fs-ui) !important;
  font-weight: 500 !important; line-height: 1.3 !important; color: var(--navy) !important;
  background: #fff !important; text-decoration: none !important; cursor: pointer !important;
}
a.btn:hover, button.btn:hover, input.btn:hover { color: #fff !important; background: var(--navy) !important; }
a.btn--fill, button.btn--fill, input.btn--fill { color: #fff !important; background: var(--navy) !important; }
a.btn--fill:hover, button.btn--fill:hover, input.btn--fill:hover { color: var(--navy) !important; background: #fff !important; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 18px; border-radius: 999px; background: var(--pill); color: var(--navy); font-family: var(--ui); font-size: var(--fs-ui); font-weight: 600; text-decoration: none; }
.pill:hover { background: #fff; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid #eef0f6; }
.nav { height: 84px; display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; margin-right: auto; }
.logo img { height: 30px; width: auto; }
.menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu > li > a, .menu > li > button { display: flex; align-items: center; height: 84px; padding: 0 14px; font-family: var(--ui); font-size: var(--fs-ui); color: var(--blue); text-decoration: none; background: none; border: none; cursor: pointer; }
.menu > li > a:hover, .menu > li > button:hover, .menu > li:focus-within > button { color: var(--coral); }
.menu [aria-current="page"], .menu .is-current > button { color: var(--coral); }
.sub { position: absolute; top: 72px; left: 50%; transform: translateX(-50%); min-width: 170px; list-style: none; margin: 0; padding: 8px 0; background: #fff; box-shadow: 0 8px 24px rgba(0,0,128,.12); border-top: 3px solid var(--navy); display: none; }
.menu > li:hover .sub, .menu > li:focus-within .sub { display: block; }
.sub a { display: block; padding: 10px 20px; font-family: var(--ui); font-size: var(--fs-ui); color: var(--blue); text-decoration: none; white-space: nowrap; }
.sub a:hover, .sub a[aria-current="page"] { color: var(--coral); background: var(--mint); }
.lang { display: flex; border: 1px solid var(--navy); font-family: var(--ui); font-size: 12px; font-weight: 600; }
.lang a, .lang span { padding: 4px 9px; text-decoration: none; color: var(--navy); }
.lang span { background: var(--navy); color: #fff; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--navy); background: #fff; align-items: center; justify-content: center; cursor: pointer; }
.site-header .nav > nav { display: flex; align-items: center; height: 100%; }
.site-header .nav > nav > .menu { align-items: center; height: 100%; }
.site-header .nav > nav > .menu > li { display: flex; align-items: center; height: 100%; margin: 0; padding: 0; }
.site-header .nav > nav > .menu > li > a, .site-header .nav > nav > .menu > li > button { box-sizing: border-box; height: 100%; margin: 0; line-height: 1.2; }
.drawer { display: none; }

/* hero slider */
.hero { padding: 10px 0 0; }
.slider { position: relative; height: 527px; overflow: hidden; background: #ddd; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide__panel { position: absolute; top: 0; left: 0; bottom: 0; width: 40%; background: rgba(255,255,255,.72); padding: 56px 34px 56px 80px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.slide__panel .h-xl { font-size: var(--fs-display); }
.slide__panel p { font-size: var(--fs-body); color: var(--navy); }
.slide__btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.slider__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; padding: 0; border-radius: 50%; background: rgba(255,255,255,.88); border: 1px solid rgba(0,0,128,.25); box-shadow: 0 2px 8px rgba(0,0,0,.12); cursor: pointer; color: var(--navy); }
.slider__arrow svg { width: 12px; height: 22px; }
.slider__arrow:hover { background: #fff; }
.slider__arrow--prev { left: 18px; }
.slider__arrow--next { right: 18px; }
.slider__dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.slider__dots button { width: 11px; height: 11px; padding: 0; border-radius: 50%; border: 1px solid #fff; background: rgba(255,255,255,.4); cursor: pointer; }
.slider__dots button[aria-current="true"] { background: #fff; }

/* bands */
.band-mint { background: var(--mint); }
.band-navy { background: var(--navy); color: #fff; }
.statement { padding: 70px 0; }
.statement .h-lg { max-width: 760px; margin: 0 auto; text-align: center; }

/* home feature rows */
.rows { position: relative; padding: 40px 0 0; }
.row { display: grid; grid-template-columns: 313px 1fr 200px; gap: 30px; align-items: start; padding: 30px 0; }
.row__img { width: 313px; height: 207px; object-fit: cover; }
.row__text { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.row__text p { font-size: var(--fs-body-s); }
.row__link { position: relative; align-self: stretch; height: 100%; display: flex; align-items: center; justify-content: center; }
.row__link::before { content: ""; position: absolute; top: -30px; bottom: -30px; left: calc(50% + 1px); border-left: 2px dashed var(--navy); }
.row__link .btn { position: relative; z-index: 1; }
.row:last-child .row__link::before { bottom: calc(50% - 22px); }
.connector { height: 70px; position: relative; }

/* mammals tree */
.mammals { padding: 40px 0 70px; }
@media (min-width: 1001px) {
  .mammals > .wrap > h2.h-lg.center { position: relative; top: -26px; width: 100%; text-align: center; }
  .connector, .tree { width: calc(100% - 200px); max-width: 760px; margin-left: auto; margin-right: auto; }
}
.tree { position: relative; margin: 30px auto 0; max-width: 760px; }
.tree__line { height: 30px; margin: 0 16.66%; border: 2px dashed var(--navy); border-bottom: none; position: relative; }
.tree__line::before { content: ""; position: absolute; left: 50%; top: -30px; height: 30px; border-left: 2px dashed var(--navy); }
.tree__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.tree__cols svg { height: 70px; width: auto; margin: 10px auto 14px; fill: var(--grey); }
.tree__cols h3 { font-family: var(--body); font-weight: 400; font-size: var(--fs-h4); color: var(--ink); margin-bottom: 8px; }
.tree__cols p { font-size: var(--fs-body-s); max-width: 230px; margin: 0 auto; }
.sexes { display: grid; grid-template-columns: repeat(2, 1fr); max-width: 520px; margin: 60px auto 0; padding-top: 12px; text-align: center; position: relative; }
.sexes::before { content: ""; position: absolute; left: 25%; right: 25%; top: -30px; height: 30px; border: 2px dashed var(--navy); border-bottom: none; }
.sexes img { width: 90px; height: 90px; margin: 14px auto; }
.sexes .h-md { font-style: normal; }
.sexes p { font-family: var(--head); font-size: var(--fs-lead); color: var(--grey); }

.cta { display: grid; grid-template-columns: 320px 1fr; gap: 50px; align-items: center; padding-top: 70px; padding-bottom: 40px; }
.cta img { width: 320px; height: 476px; object-fit: cover; }
.cta .h-xl { font-size: var(--fs-display); }
.partners { display: flex; flex-direction: column; align-items: center; gap: 20px; padding-top: 20px; padding-bottom: 70px; }
.partners .small { letter-spacing: .1em; }
.partners img { height: auto; }

/* page hero (sub pages) */
.page-head { padding: 60px 0 30px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split--img-left { grid-template-columns: 420px 1fr; }
.tall-img { width: 100%; height: 560px; object-fit: cover; }
.livestock-hero__media { width: 100%; height: 560px; }
.livestock-hero__desktop { display: block; width: 100%; height: 100%; object-fit: cover; }
.livestock-hero__mobile { display: none; }
.section { padding: 60px 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.note { margin-top: 24px; padding: 14px 18px; border-left: 4px solid var(--gold); background: #faf8ef; font-size: var(--fs-small); color: #555; }

/* technology */
.boxed { border: 2px solid var(--navy); padding: 36px 40px; max-width: 620px; }
.boxed h1 { font-family: var(--head); font-weight: 400; font-size: var(--fs-sub); line-height: 1.4; color: var(--ink); }
.boxed p.right { text-align: right; font-size: var(--fs-small); margin-top: 18px; }
.pipeline { max-width: 820px; margin: 30px auto 0; }
.pipeline__head, .pipeline__row { display: grid; grid-template-columns: 90px 1fr 170px; align-items: center; gap: 16px; }
.pipeline__stages { display: grid; grid-template-columns: repeat(4, 1fr); font-family: var(--ui); font-size: var(--fs-small); color: var(--blue); text-align: center; }
.pipeline__row { padding: 14px 0; border-bottom: 1px solid #eef0f6; }
.pipeline__row svg { height: 44px; width: auto; fill: var(--grey); justify-self: center; }
.pipeline__track { height: 34px; background: #f3f4f8; position: relative; }
.pipeline__bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--gold); }
.pipeline__label { font-family: var(--head); font-weight: 400; font-size: var(--fs-body); color: var(--grey); }

/* stats / cards */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; }
.fact { border-top: 2px solid var(--navy); padding-top: 18px; }
.fact .num { font-family: var(--head); font-weight: 400; font-size: var(--fs-h); color: var(--navy); line-height: 1.2; }
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; margin-top: 30px; }
.person { border-top: 2px solid var(--navy); padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.person h3 { font-family: var(--head); font-weight: 400; font-size: var(--fs-h4); color: var(--navy); }
.person .role { font-family: var(--ui); font-size: var(--fs-small); font-weight: 600; color: var(--gold); letter-spacing: .02em; }
.person p { font-size: var(--fs-body-s); }
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; margin-top: 30px; }
.board .person img { width: 100%; aspect-ratio: 292 / 285; object-fit: cover; margin-bottom: 8px; }
.list { list-style: none; margin: 30px 0 0; padding: 0; }
.list li { border-top: 1px solid var(--line); padding: 24px 0; display: grid; grid-template-columns: 120px 1fr; gap: 24px; }
.list li:last-child { border-bottom: 1px solid var(--line); }
.list .meta { font-family: var(--ui); font-size: var(--fs-small); color: var(--gold); font-weight: 600; }
.list h3 { font-family: var(--head); font-weight: 400; font-size: var(--fs-h4); color: var(--navy); line-height: 1.45; margin-bottom: 6px; }
.list p { font-size: var(--fs-body-s); }
.list a.more { font-family: var(--ui); font-size: var(--fs-small); font-weight: 600; text-decoration: none; display: inline-block; margin-top: 8px; }
/* 특허 제목과 해당 링크를 같은 행에 배치하고 좁은 화면에서는 자연스럽게 줄바꿈한다. */
.ip-patent-heading { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 16px; row-gap: 6px; margin-bottom: 6px; }
.ip-patent-heading h3 { min-width: 0; margin-bottom: 0; }
.list .ip-patent-heading a.more { flex: 0 0 auto; margin-top: 0; white-space: nowrap; }
.ip-patents > li { grid-template-columns: 120px minmax(0, 1fr); }
.ip-patents > li > .ip-patents__children { grid-column: 2; display: grid; gap: 12px; list-style: none; margin: 12px 0 0; padding: 0 0 0 18px; border: 0; background: transparent; }
.ip-patents__children > li { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: start; margin: 0; padding: 4px 0; border: 0; border-radius: 0; background: transparent; }
.ip-patents__children > li:last-child { border-bottom: 0; }
.ip-patents__children .meta { color: var(--blue); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-family: var(--ui); font-size: var(--fs-small); color: var(--navy); }
.form input, .form textarea { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--navy); background: #fff; }
.form textarea { min-height: 140px; resize: vertical; }
.info dt { font-family: var(--ui); font-size: var(--fs-small); font-weight: 600; color: var(--gold); margin-top: 18px; }
.info dd { margin: 4px 0 0; }

/* footer */
.site-footer { background: var(--navy); color: #fff; padding: 50px 0 0; position: relative; overflow: hidden; }
.site-footer h2 { font-family: var(--head); font-weight: 400; font-size: var(--fs-display); text-align: center; margin-bottom: 30px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; font-size: var(--fs-small); line-height: 1.7; padding-bottom: 40px; position: relative; z-index: 1; }
.foot-cols h3 { font-family: var(--ui); font-size: var(--fs-small); font-weight: 700; margin-bottom: 8px; }
.foot-cols a { color: #fff; }
.foot-cols .pill { margin: 6px auto 0; }
.foot-dog { width: 210px; margin: -10px auto 0; position: relative; z-index: 0; }
.foot-bottom { background: var(--mint); color: var(--grey); font-size: var(--fs-small); text-align: center; padding: 12px var(--gutter); }
.foot-bottom p + p { margin-top: 4px; }

/* responsive */
@media (max-width: 1000px) {
  .nav { height: 64px; }
  .menu, .nav .lang { display: none; }
  .burger { display: inline-flex; }
  .drawer { position: fixed; inset: 64px 0 0 0; background: #fff; overflow-y: auto; padding: 10px var(--gutter) 40px; border-top: 3px solid var(--navy); }
  .site-header.is-open .drawer { display: block; }
  .drawer details, .drawer > a { border-bottom: 1px solid var(--line); }
  .drawer summary, .drawer > a { display: flex; justify-content: space-between; align-items: center; min-height: 54px; font-family: var(--ui); font-size: 16px; font-weight: 600; color: var(--navy); text-decoration: none; list-style: none; cursor: pointer; }
  .drawer summary::-webkit-details-marker { display: none; }
  .drawer summary::after { content: "+"; color: var(--coral); font-size: 22px; font-weight: 400; }
  .drawer details[open] summary::after { content: "–"; }
  .drawer details a { display: flex; align-items: center; min-height: 44px; padding-left: 14px; color: var(--blue); text-decoration: none; }
  .drawer .lang { display: inline-flex; margin-top: 20px; }
  .slider { height: 460px; }
  .slide__panel { width: 100%; top: auto; padding: 56px 20px 72px; gap: 12px; background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,.5) 30%, rgba(255,255,255,.72) 100%); }
  .slide__panel .h-xl, .slide__panel p { text-shadow: 0 0 12px rgba(255,255,255,.9); }
  .slider__arrow { top: auto; bottom: 14px; transform: none; width: 40px; height: 40px; }
  .slider__arrow--prev { left: 20px; }
  .slider__arrow--next { right: 20px; }
  .slider__dots { bottom: 29px; }
  .slider__dots button { border-color: var(--navy); background: rgba(0,0,128,.15); }
  .slider__dots button[aria-current="true"] { background: var(--navy); }
  .row { grid-template-columns: 1fr; gap: 16px; }
  .row__img { width: 100%; height: auto; aspect-ratio: 313 / 207; }
  .row__link { justify-content: flex-start; }
  .row__link::before, .connector { display: none; }
  .cta, .split, .split--img-left, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta img { width: 100%; height: 360px; }
  .tall-img { height: 380px; }
  .livestock-hero__media { height: auto; }
  .livestock-hero__desktop { display: none; }
  .livestock-hero__mobile { display: grid; gap: 8px; }
  .livestock-hero__mobile img { display: block; width: 100%; height: auto; aspect-ratio: 1167 / 614; object-fit: cover; }
  /* 모바일 버튼의 콘텐츠 높이와 안쪽 여백을 확보한다. */
  a.btn, button.btn, input.btn {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 60px !important;
    padding: 18px 32px !important;
    box-sizing: border-box !important;
    line-height: 1.6 !important;
    white-space: normal !important;
    word-break: keep-all;
    overflow-wrap: anywhere;
    text-align: center;
    flex-shrink: 0;
  }
  .stack > a.btn, .stack > button.btn { align-self: flex-start; }
  .board { grid-template-columns: repeat(2, 1fr); }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .br-m { display: inline; }
  .tree__cols, .facts, .people, .board { grid-template-columns: 1fr; }
  .tree__line, .sexes::before { display: none; }
  .tree__cols > div { padding-bottom: 10px; }
  .pipeline__head, .pipeline__row { grid-template-columns: 56px 1fr; }
  .pipeline__head > :last-child, .pipeline__head > :first-child { display: none; }
  .pipeline__head { grid-template-columns: 1fr; padding-left: 72px; }
  .pipeline__label { grid-column: 1 / -1; }
  .pipeline__stages { font-size: 11px; }
  .list li { grid-template-columns: 1fr; gap: 6px; }
  .ip-patents > li { grid-template-columns: 1fr; }
  .ip-patents > li > .ip-patents__group-label, .ip-patents > li > .ip-patents__children { grid-column: 1; }
  .ip-patents > li > .ip-patents__children { margin: 12px 0 0; padding: 0 0 0 12px; }
  .ip-patents__children > li { grid-template-columns: 1fr; gap: 6px; }
  .foot-cols { grid-template-columns: 1fr; }
  .boxed { padding: 24px; }
}

/* 뉴스 목록 제목과 게시글 작성 버튼 */
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.title-row .h-xl { margin: 0; }
.btn--write { gap: 8px; }

/* 연구 지원 로고: 제목과 로고를 한 묶음으로 */
.partners { gap: 0; padding-top: 32px; padding-bottom: 72px; }
.partners .small { margin: 0 0 18px; font-size: var(--fs-ui); font-weight: 500; letter-spacing: .12em; color: var(--navy); display: flex; align-items: center; gap: 12px; }
.partners .small::before, .partners .small::after { content: ""; width: 32px; height: 1px; background: currentColor; opacity: .4; }
.partners__logos { display: flex; align-items: center; justify-content: center; gap: 56px; flex-wrap: wrap; padding: 22px 32px; border-top: 1px solid #e3e6ee; border-bottom: 1px solid #e3e6ee; }
.partners__logos img { width: auto; max-width: 100%; height: 56px; object-fit: contain; }
.partners__logos img + img { height: 30px; }
@media (max-width: 640px) {
  .partners__logos { flex-direction: column; gap: 22px; padding: 20px 8px; width: 100%; }
  .partners__logos img { height: 46px; }
  .partners__logos img + img { height: 24px; }
}

/* NSF 로고: 원본 이미지(900×500)에 투명 여백이 커서 로고 부분만 보이게 잘라 표시 */
.partners__logos img:first-child { width: 270px; height: auto; aspect-ratio: 4.24 / 1; object-fit: cover; object-position: center; }
@media (max-width: 640px) {
  .partners__logos img:first-child { width: 220px; height: auto; }
}

/* GnuBoard theme integration: native board UI uses the source site's local brand palette. */

/* Add-on form feedback, privacy copy, and the native GnuBoard news board. */
.epivara-status { margin: 0 0 16px; padding: 12px 16px; background: #e7f5ee; color: #1d4d3a; }
.epivara-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form .epivara-consent { display: block; font-size: var(--fs-small); color: var(--grey); }
.form .epivara-consent label { display: flex; flex-direction: row; align-items: flex-start; gap: 8px; color: var(--navy); }
.form .epivara-consent input { width: 17px; height: 17px; margin: 0; flex: 0 0 17px; }
.epivara-consent p { margin-top: 5px; padding-left: 25px; font-size: var(--fs-small); color: var(--grey); }
.epivara-board-manage { margin-top: 24px; }
.epivara-news-board .list { margin-top: 0; }
.epivara-news-board .search { display: flex; gap: 8px; margin-top: 30px; }
.epivara-news-board .search input[type="text"] { min-height: 42px; border: 1px solid var(--navy); padding: 8px 10px; font: inherit; }
.epivara-news-board .write-tools { display: flex; justify-content: flex-end; margin: 0 0 18px; }
.epivara-news-board .write-tools a { text-decoration: none; }
.epivara-news-board .board-empty { padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.epivara-news-board .pg_wrap { margin-top: 28px; text-align: center; }
.epivara-news-board .pg_page { display: inline-block; min-width: 32px; padding: 8px; margin: 0 2px; color: var(--navy); text-decoration: none; }
.epivara-news-board .pg_current { background: var(--navy); color: #fff; }
.epivara-news-write #fwrite { width: 100% !important; max-width: 860px; margin: 28px auto 0; }
.epivara-write-options { display: flex; flex-wrap: wrap; gap: 18px; margin: 0 0 18px; padding: 12px; border: 1px solid var(--line); }
.epivara-write-options legend { padding: 0 6px; color: var(--navy); }
.epivara-write-options label { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); }
.epivara-write-options input[type="checkbox"], .epivara-file-delete input[type="checkbox"] { width: 17px; height: 17px; margin: 0; }
.epivara-write-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.epivara-write-field { display: flex; flex-direction: column; gap: 8px; margin: 18px 0; color: var(--navy); }
.epivara-write-field input[type="text"], .epivara-write-field input[type="password"], .epivara-write-field input[type="file"], .epivara-write-field select, .epivara-write-field textarea,
.epivara-news-write #wr_subject, .epivara-news-write #wr_content { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); font: inherit; color: var(--ink); }
.epivara-write-field textarea, .epivara-news-write textarea { min-height: 260px; resize: vertical; }
.epivara-write-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.epivara-write-help, .epivara-file-delete { font-size: var(--fs-small); color: var(--grey); }
.epivara-file-delete { display: flex; align-items: center; gap: 8px; margin: 10px 0 18px; }
.epivara-autosave { position: relative; text-align: right; }
#autosave_pop { display: none; }
.epivara-captcha { align-items: flex-start; }
.epivara-news-view { min-height: 48vh; }
.epivara-news-view #bo_v { width: 100% !important; }
.epivara-news-view__head { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.epivara-news-view__head p { margin-top: 12px; color: var(--grey); font-size: var(--fs-small); }
.epivara-news-view__content { min-height: 220px; padding: 32px 0; line-height: 1.8; overflow-wrap: anywhere; }
.epivara-news-view__content img { max-width: 100%; height: auto; }
.epivara-news-view .btn_b01, .epivara-news-view .btn_b02, .epivara-news-view .btn_admin,
.epivara-news-view .btn_b01:link, .epivara-news-view .btn_b02:link, .epivara-news-view .btn_admin:link {
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  min-height: 42px !important; padding: 0 16px !important; border: 1px solid var(--navy) !important;
  border-radius: 0 !important; font-family: var(--ui) !important; font-size: var(--fs-ui) !important;
  color: var(--navy) !important; background: #fff !important; text-decoration: none !important;
}
.epivara-news-view__files { margin: 0; padding: 16px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.epivara-news-view__files li + li { margin-top: 8px; }
@media (max-width: 640px) { .epivara-write-row { grid-template-columns: 1fr; } }
