/* ==========================================================================
   팜아이온 FarmEyeOn · farmeyeon.com · v7
   모든 페이지 공통 (홈 · 공고 · 개인정보처리방침 · 404)
   원칙: 요소를 줄인다 · 사실만 쓴다 · 장식용 그라데이션/글로우/아이콘 카드 없음
   ========================================================================== */

@font-face {
  font-family: "DM Mono";
  src: url("../fonts/dm-mono/dm-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --bg: #0a110e;
  --bg-2: #0e1713;
  --bg-3: #070c0a;
  --hl: rgba(255, 255, 255, .09);
  --hl-2: rgba(255, 255, 255, .16);
  --tx: #eef3ef;
  --tx-2: rgba(238, 243, 239, .72);
  --tx-3: rgba(238, 243, 239, .48);
  --accent: #59cb2b;
  --accent-hover: #6ad63c;
  --ink: #0f1a13;
  --alert: #c95a24;
  --alert-2: #f2884f;
  --pad: clamp(20px, 4.4vw, 64px);
  --maxw: 1480px;
  --header-h: 76px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-bg: rgba(10, 17, 14, .9);
  --header-bg-scrolled: rgba(10, 17, 14, .84);
  --nav: rgba(255, 255, 255, .86);
  --nav-strong: #fff;
  --line-btn: rgba(255, 255, 255, .3);
  --line-btn-hover: rgba(255, 255, 255, .06);
  --link: #59cb2b;
  --hero-tx-2: rgba(238, 243, 239, .82);
  --glass: rgba(10, 17, 14, .42);
}

/* 새벽빛이 퍼진 반경 (해 뜨기 전환용, 지원 안 되는 브라우저는 그냥 서서히 바뀜) */
@property --sun-r { syntax: '<length>'; inherits: false; initial-value: 0px; }

/* 낮 테마: 헤더의 해·달 버튼으로 켠다 (data-theme은 <head> 스크립트와 main.js가 정함) */
html[data-theme="day"] {
  --bg: #f5f6f1;
  --bg-2: #eceee6;
  --bg-3: #e3e6dd;
  --hl: rgba(15, 26, 19, .10);
  --hl-2: rgba(15, 26, 19, .18);
  --tx: #0f1a13;
  --tx-2: rgba(15, 26, 19, .74);
  --tx-3: rgba(15, 26, 19, .52);
  --header-bg: rgba(245, 246, 241, .9);
  --header-bg-scrolled: rgba(245, 246, 241, .86);
  --nav: rgba(15, 26, 19, .82);
  --nav-strong: #0f1a13;
  --line-btn: rgba(15, 26, 19, .3);
  --line-btn-hover: rgba(15, 26, 19, .05);
  --link: #2d7a14;
  --hero-tx-2: rgba(15, 26, 19, .8);
  --glass: rgba(245, 246, 241, .58);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); background: var(--bg-3); }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65;
  color: var(--tx-2); background: var(--bg);
  word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--tx); font-weight: 560; letter-spacing: -.03em; line-height: 1.15; }
p, dl, dd, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; }
::selection { background: var(--accent); color: var(--ink); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.skip-link { position: absolute; left: 12px; top: -64px; z-index: 200; padding: 10px 16px; background: var(--tx); color: var(--ink); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: stretch; gap: 3px; text-decoration: none; color: var(--ink); cursor: pointer; border: 0; padding: 0; background: none; }
.btn-label { display: inline-flex; align-items: center; height: 52px; padding: 0 22px; background: var(--accent); font-size: 16px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; transition: background-color .2s, border-color .2s; }
.btn-arrow { display: grid; place-items: center; width: 52px; height: 52px; background: var(--accent); transition: background-color .2s; }
.btn-arrow svg { transition: transform .25s var(--ease); }
.btn:hover .btn-label, .btn:hover .btn-arrow { background: var(--accent-hover); }
.btn:hover .btn-arrow svg { transform: translateX(3px); }
.btn--sm .btn-label { height: 40px; padding: 0 16px; font-size: 15px; }
.btn--sm .btn-arrow { width: 40px; height: 40px; }
.btn--line .btn-label { background: transparent; color: var(--tx); border: 1px solid var(--line-btn); }
.btn--line:hover .btn-label { background: var(--line-btn-hover); border-color: var(--tx); }

/* ---------- Header (모든 페이지 같은 메뉴: 사업 · 공고 + 문의) ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--header-bg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--hl); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { position: relative; display: flex; align-items: center; flex-shrink: 0; margin-right: auto; }
.brand img { height: 38px; width: auto; }
.site-nav ul { display: flex; gap: 2px; }
.site-nav a { display: block; padding: 8px 12px; font-size: 15.5px; font-weight: 500; color: var(--nav); text-decoration: none; }
.site-nav a:hover { color: var(--nav-strong); }
.site-nav a[aria-current="page"] { color: var(--nav-strong); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; text-decoration-color: var(--accent); }

/* 보조 메뉴(언어 · 낮/밤): 핵심 메뉴와 세로선으로 나누고, 작고 흐리게. 문의 버튼이 가장 눈에 띄게 */
.header-util { display: flex; align-items: center; gap: 2px; padding-left: 14px; border-left: 1px solid var(--line-btn); }
.lang-link { display: inline-flex; align-items: center; height: 36px; padding: 0 8px; font-size: 13.5px; font-weight: 500; letter-spacing: .04em; color: var(--nav); text-decoration: none; transition: color .2s; }
.lang-link:hover { color: var(--nav-strong); }
.theme-toggle { position: relative; display: inline-grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; padding: 0; border: 0; background: transparent; color: var(--nav); cursor: pointer; transition: color .2s, background-color .2s; }
.theme-toggle:hover { color: var(--nav-strong); background: var(--line-btn-hover); }
.theme-toggle svg { grid-area: 1 / 1; width: 19px; height: 19px; transition: opacity .45s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.theme-toggle .ic-moon { opacity: 0; transform: rotate(-60deg) scale(.6); }
html[data-theme="day"] .theme-toggle .ic-sun { opacity: 0; transform: rotate(90deg) scale(.6); }
html[data-theme="day"] .theme-toggle .ic-moon { opacity: 1; transform: none; }
/* 마우스를 올리면 '해 뜨기 / 해 지기' 말풍선 */
.theme-toggle::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, -4px); padding: 5px 9px; font-size: 12px; font-weight: 500; line-height: 1.2; letter-spacing: 0; white-space: nowrap; color: var(--bg); background: var(--tx); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.theme-toggle:hover::after, .theme-toggle:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .theme-toggle::after { display: none; } }
/* 처음 들어왔을 때 한 번, 해가 살짝 돌며 눈길을 끈다 */
@keyframes sun-nudge { 0%, 100% { transform: rotate(0); } 45% { transform: rotate(60deg) scale(1.12); } }
.theme-toggle.nudge .ic-sun { animation: sun-nudge 1.3s cubic-bezier(.4, 0, .2, 1) 1; }
/* 숨은 스위치: 제목의 '켜다'(영문 'on')를 누르면 해가 뜨고 진다 */
.egg { cursor: pointer; transition: color .35s ease; }
.egg:hover { color: var(--accent); }

/* 홈: 첫 화면 사진 위에 투명하게 띄우고, 내리면 배경을 깐다 */
.home .site-header { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; transition: background-color .25s, border-color .25s; }
.home .site-header.is-scrolled { background: var(--header-bg-scrolled); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom-color: var(--hl); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; max-height: 1000px; overflow: hidden; background: var(--bg); }
.hero-img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; }
.hero-layer { position: absolute; inset: 0; z-index: 1; background-size: cover; background-position: 80% 50%; opacity: 0; pointer-events: none; }
html.has-day .hero-dawn { background-image: url("../img/photo/v8/hero_dawn.jpg"); }
html.has-day .hero-day { background-image: url("../img/photo/v8/hero_morning.jpg"); }
html[data-theme="day"] .hero-dawn, html[data-theme="day"] .hero-day { opacity: 1; }
/* 새벽 사진은 해 자리(--sx, --sy: JS가 계산)에서부터 둥글게 번지며 나타난다 */
.hero-dawn {
  --sun-r: -32vmax;
  -webkit-mask-image: radial-gradient(circle at var(--sx, 4%) var(--sy, 75%), #000 var(--sun-r), rgba(0, 0, 0, .5) calc(var(--sun-r) + 14vmax), transparent calc(var(--sun-r) + 32vmax));
          mask-image: radial-gradient(circle at var(--sx, 4%) var(--sy, 75%), #000 var(--sun-r), rgba(0, 0, 0, .5) calc(var(--sun-r) + 14vmax), transparent calc(var(--sun-r) + 32vmax));
}
html[data-theme="day"] .hero-dawn { --sun-r: var(--sun-end, 170vmax); }
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero::before { opacity: 0; background: linear-gradient(90deg, rgba(245, 246, 241, .74) 0%, rgba(245, 246, 241, .4) 38%, rgba(245, 246, 241, 0) 60%), linear-gradient(180deg, rgba(245, 246, 241, .42) 0%, rgba(245, 246, 241, 0) 18%, rgba(245, 246, 241, 0) 76%, rgba(245, 246, 241, .92) 100%); }
html[data-theme="day"] .hero::before { opacity: 1; }
html[data-theme="day"] .hero::after { opacity: 0; }
.hero::after {
  background: linear-gradient(90deg, rgba(10, 17, 14, .82) 0%, rgba(10, 17, 14, .45) 42%, rgba(10, 17, 14, 0) 68%), linear-gradient(180deg, rgba(10, 17, 14, 0) 72%, rgba(10, 17, 14, .85) 100%); }
.hero-copy { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: var(--header-h); }
.hero h1 { font-size: clamp(44px, 6vw, 96px); line-height: 1.04; letter-spacing: -.05em; font-weight: 600; }
.hero-lead { margin-top: 26px; max-width: 31em; text-wrap: pretty; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.7; color: var(--hero-tx-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }

/* ---------- Sections ---------- */
.section { padding: clamp(88px, 9vw, 150px) 0; border-top: 1px solid var(--hl); }
.section-title { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -.045em; font-weight: 560; margin-bottom: clamp(32px, 4vw, 56px); }

/* 사업 3개 */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.tile h3 { margin-top: 22px; font-size: clamp(20px, 1.7vw, 24px); letter-spacing: -.03em; font-weight: 560; }
.tile p { margin-top: 8px; font-size: 16px; line-height: 1.6; color: var(--tx-2); }
.tile-media { position: relative; margin: 0; overflow: hidden; aspect-ratio: 1672 / 941; border: 1px solid var(--hl); background: var(--bg-2); }
.tile-media > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tag { position: absolute; right: 10px; top: 10px; z-index: 3; padding: 3px 7px; font-size: 11.5px; line-height: 1.4; color: rgba(238, 243, 239, .8); background: rgba(10, 17, 14, .74); }

/* 측정 표시 공통 라벨 */
.m-label { position: absolute; font-style: normal; font-size: 11px; font-weight: 500; line-height: 1.25; white-space: nowrap; font-variant-numeric: tabular-nums; padding: 2px 5px; color: var(--ink); background: rgba(255, 255, 255, .93); }

/* 계측 장비 카드: 키 · 줄기 굵기 · 화방 높이 (장비는 보여 주지 않음) */
.dim { position: absolute; z-index: 2; --c: rgba(255, 255, 255, .95); filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, .7)); }
.dim--v { left: var(--x); top: var(--y1); height: calc(var(--y2) - var(--y1)); width: 0; border-left: 1px solid var(--c); }
.dim--v::before, .dim--v::after { content: ""; position: absolute; left: -5px; width: 9px; border-top: 1px solid var(--c); }
.dim--v::before { top: 0; }
.dim--v::after { bottom: 0; }
.dim--v .m-label { top: 50%; left: 8px; transform: translateY(-50%); }
.dim--v.lab-l .m-label { left: auto; right: 8px; }
.dim--h { left: var(--x1); top: var(--y); width: calc(var(--x2) - var(--x1)); height: 0; border-top: 1px solid var(--c); }
.dim--h::before, .dim--h::after { content: ""; position: absolute; top: -5px; height: 9px; border-left: 1px solid var(--c); }
.dim--h::before { left: 0; }
.dim--h::after { right: 0; }
.dim--h .m-label { left: calc(100% + 8px); top: 50%; transform: translateY(-50%); }
.dim--h.lab-l .m-label { left: auto; right: calc(100% + 8px); }
.js [data-measure] .dim { opacity: 0; transition: opacity .5s var(--ease) calc(var(--i, 0) * 140ms); }
.js [data-measure].is-on .dim { opacity: 1; }

/* 치수 보조선 (점선) */
.ext { position: absolute; z-index: 1; left: var(--x1); top: var(--y); width: calc(var(--x2) - var(--x1)); height: 0; border-top: 1px dashed rgba(255, 255, 255, .62); }
.js [data-measure] .ext { opacity: 0; transition: opacity .5s var(--ease); }
.js [data-measure].is-on .ext { opacity: 1; }

/* 데이터 카드: 과실 · 잎 표시 */
.m-box {
  --c: rgba(255, 255, 255, .95); --l: 10px; --t: 1.25px;
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h);
  background:
    linear-gradient(var(--c), var(--c)) left top / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) left top / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--t) var(--l) no-repeat;
  transition: opacity .35s var(--ease) calc(var(--i) * 90ms), transform .45s var(--ease) calc(var(--i) * 90ms);
}
.m-box i { position: absolute; left: 2px; top: 2px; padding: 1px 4px; font-style: normal; font-family: var(--mono); font-size: 9.5px; line-height: 1.2; color: var(--ink); background: rgba(255, 255, 255, .92); }
.m-box--alert { background: none; border: 1.5px dashed var(--alert-2); }
.m-box--alert i { color: #fff; background: var(--alert); }
.js [data-measure] .m-box { opacity: 0; transform: scale(1.12); }
.js [data-measure].is-on .m-box { opacity: 1; transform: none; }

/* 예측 카드: 차트 */
.tile-chart { display: flex; align-items: center; padding: 18px 16px 10px; background: #0e1713; }
.tile-chart svg { width: 100%; height: auto; }
.fc-ax text, .fc-now { font-family: var(--mono); font-size: 11px; fill: rgba(238, 243, 239, .5); }
.fc-now { fill: var(--tx); }

/* 공고 띠: 게시 중인 공고가 있을 때만 홈에 넣는다 (index.html 주석 참고) */
.notice-line { border-top: 1px solid var(--hl); }
.notice-line-in { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; padding-top: 26px; padding-bottom: 26px; font-size: 15.5px; }
.notice-line strong { color: var(--tx); font-weight: 600; }
.notice-line a { color: var(--tx); text-decoration: none; border-bottom: 1px solid var(--hl-2); }
.notice-line a:hover { color: var(--link); }
.notice-line time { color: var(--tx-3); font-variant-numeric: tabular-nums; }

/* 연혁: 최신순 세로 타임라인 (로고·사진·아이콘 없음) */
.history { padding: clamp(72px, 7vw, 112px) 0; }
.timeline { max-width: 880px; }
.timeline li { --dc: 120px; --gap: 40px; position: relative; display: grid; grid-template-columns: var(--dc) minmax(0, 1fr); column-gap: var(--gap); align-items: baseline; padding-bottom: 30px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: calc(var(--dc) + var(--gap) / 2); top: 13px; bottom: -13px; border-left: 1px solid var(--hl-2); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: calc(var(--dc) + var(--gap) / 2 - 3px); top: 10px; width: 7px; height: 7px; background: var(--tx); }
.timeline time { font-size: 15px; color: var(--tx-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-title { font-size: 17px; line-height: 1.55; font-weight: 500; color: var(--tx); }
.tl-desc { margin-top: 3px; font-size: 15px; line-height: 1.6; color: var(--tx-3); }
.timeline .plan time, .timeline .plan .tl-title { color: var(--tx-3); }
.timeline .plan::before { border-left-style: dashed; }
.timeline .plan::after { background: transparent; border: 1px solid var(--tx-3); }

/* 생육 타임랩스(이스터 에그): 데이터 카드와 예측 그래프가 주차별로 채워진다 */
.tl-run .m-box { transition-delay: 0s !important; }
.tile .m-box.tl-off { opacity: 0 !important; transform: scale(1.12) !important; }
[data-tl-chart] { cursor: pointer; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; transition: border-color .2s; }
[data-tl-chart]:hover, [data-tl-chart]:focus-visible { border-color: rgba(255, 255, 255, .3); }
.tl-play { position: absolute; left: 10px; top: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 7px; font-size: 11.5px; line-height: 1.4; color: rgba(238, 243, 239, .8); background: rgba(10, 17, 14, .74); pointer-events: none; transition: color .2s, background-color .2s, opacity .2s; }
.tl-play svg { width: 8px; height: 8px; }
[data-tl-chart]:hover .tl-play, [data-tl-chart]:focus-visible .tl-play { color: #fff; background: rgba(10, 17, 14, .92); }
.tl-run .tl-play { opacity: 0; }
.tl-readout { position: absolute; left: 12px; top: 10px; z-index: 3; display: grid; gap: 2px; padding: 6px 9px; background: rgba(10, 17, 14, .74); color: #eef3ef; font-size: 12px; line-height: 1.35; pointer-events: none; transition: opacity .3s; }
.tl-readout .tl-k { font-size: 11px; color: rgba(238, 243, 239, .6); }
.tl-readout b { font-weight: 600; font-variant-numeric: tabular-nums; }
.tl-readout.is-alert b { color: #f2884f; }

/* 문의 */
.contact { background: var(--bg-2); }
.mail { display: inline-block; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2; letter-spacing: -.03em; font-weight: 500; color: var(--tx); text-decoration: none; border-bottom: 1px solid rgba(89, 203, 43, .75); padding-bottom: 4px; word-break: break-all; }
.mail:hover { color: var(--link); }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.mail-row .btn-label { height: 38px; padding: 0 14px; font-size: 14.5px; }
.contact-addr { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--hl); max-width: 760px; font-size: 15.5px; line-height: 1.75; color: var(--tx-2); }
.contact-addr a { color: var(--tx-2); white-space: nowrap; }
.contact-addr a:hover { color: var(--tx); }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0 36px; background: var(--bg-3); border-top: 1px solid var(--hl); color: var(--tx-3); font-size: 14px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.footer-brand { position: relative; display: inline-flex; }
.footer-brand img { height: 26px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer-links a { color: var(--tx-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--tx); }
.biz { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--hl); line-height: 1.8; }
.biz strong { font-weight: 600; color: var(--tx-2); margin-right: 6px; }
.copy { margin-top: 14px; }

/* ---------- Sub pages ---------- */
.page { padding: clamp(56px, 7vw, 112px) 0 clamp(88px, 9vw, 140px); min-height: 56vh; }
.page-title { font-size: clamp(28px, 2.6vw, 36px); letter-spacing: -.035em; font-weight: 600; }
.page-lead { margin-top: 12px; font-size: 16.5px; color: var(--tx-2); }

.notice-list { margin-top: 36px; max-width: 880px; border-top: 1px solid var(--hl-2); }
.notice-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; padding: 18px 0; border-bottom: 1px solid var(--hl); font-size: 16px; }
.notice-list a { color: var(--tx); font-weight: 600; text-decoration: none; }
.notice-list a:hover { color: var(--link); }
.notice-list .meta { font-size: 14px; color: var(--tx-3); font-variant-numeric: tabular-nums; }
.notice-list .empty { color: var(--tx-3); font-size: 15.5px; }

.prose { margin-top: 28px; max-width: 820px; }
.prose h2 { margin: 44px 0 12px; font-size: 19px; letter-spacing: -.02em; font-weight: 600; }
.prose p, .prose li { color: var(--tx-2); font-size: 16px; }
.prose p + p { margin-top: 12px; }
.prose ul { margin-top: 10px; padding-left: 18px; list-style: disc; }
.prose li + li { margin-top: 6px; }
.prose table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 14.5px; }
.prose table + p { margin-top: 12px; }
.prose th, .prose td { padding: 12px; border: 1px solid var(--hl-2); text-align: left; vertical-align: top; color: var(--tx-2); }
.prose th { background: var(--bg-2); font-weight: 600; color: var(--tx); }
.prose a { color: var(--link); font-weight: 600; }
.prose .meta { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--hl); font-size: 14px; color: var(--tx-3); }

.nf-code { font-family: var(--mono); font-size: 14px; color: var(--tx-3); }
.notfound .page-title { margin-top: 10px; }
.notfound .btn { margin-top: 28px; }

/* ---------- 낮/밤 전환: 로고 ---------- */
.logo-d { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; }
html[data-theme="day"] .logo-d { opacity: 1; }
html[data-theme="day"] .logo-n { opacity: 0; }
html[data-theme="day"]:not(.theme-anim) .hero-img { visibility: hidden; }

/* ---------- 해 뜨기 · 해 지기 (전환할 때만 켜짐) ----------
   해 뜨기(약 4초): 지평선의 해 자리에서 새벽빛이 번져 나가고(밤 → 새벽), 이어서 아침 빛으로 바뀐다.
   해 지기: 아침 → 노을 → 빛이 해 자리로 모여 사라지며 밤. */
.theme-anim[data-theme="day"] .hero-dawn { transition: --sun-r 2.6s cubic-bezier(.3, .1, .3, 1) 0s, opacity .4s ease-out 0s; }
.theme-anim[data-theme="day"] .hero::after { transition: opacity 1.3s ease-out .1s; }
.theme-anim[data-theme="day"] .hero h1, .theme-anim[data-theme="day"] .hero-lead { transition: color 1.2s ease-in-out 1.4s; }
.theme-anim[data-theme="day"] .hero::before { transition: opacity 1.4s ease-in-out 1.8s; }
.theme-anim[data-theme="day"] .hero-day { transition: opacity 1.9s cubic-bezier(.4, 0, .2, 1) 1.9s; }
.theme-anim[data-theme="night"] .hero-day { transition: opacity 1.6s cubic-bezier(.4, 0, .2, 1) 0s; }
.theme-anim[data-theme="night"] .hero::before { transition: opacity 1.2s ease-in-out 0s; }
.theme-anim[data-theme="night"] .hero h1, .theme-anim[data-theme="night"] .hero-lead { transition: color 1.2s ease-in-out .2s; }
.theme-anim[data-theme="night"] .hero-dawn { transition: --sun-r 2.4s cubic-bezier(.6, 0, .7, .9) 1.0s, opacity .5s ease-in 3.3s; }
.theme-anim[data-theme="night"] .hero::after { transition: opacity 1.6s ease-in-out 1.8s; }
html.theme-anim,
.theme-anim body, .theme-anim .site-header, .theme-anim .site-nav a, .theme-anim .lang-link, .theme-anim .theme-toggle, .theme-anim .header-util, .theme-anim .logo-n, .theme-anim .logo-d,
.theme-anim .section, .theme-anim .section-title, .theme-anim .tile h3, .theme-anim .tile p, .theme-anim .tile-media,
.theme-anim .timeline time, .theme-anim .tl-title, .theme-anim .tl-desc, .theme-anim .timeline li::before, .theme-anim .timeline li::after,
.theme-anim .mail, .theme-anim .btn--line .btn-label, .theme-anim .contact-addr, .theme-anim .contact-addr a,
.theme-anim .site-footer, .theme-anim .footer-links a, .theme-anim .biz, .theme-anim .biz strong, .theme-anim .copy,
.theme-anim .page-title, .theme-anim .page-lead, .theme-anim .notice-list, .theme-anim .notice-list li, .theme-anim .notice-list a,
.theme-anim .prose h2, .theme-anim .prose p, .theme-anim .prose li, .theme-anim .prose th, .theme-anim .prose td, .theme-anim .nf-code {
  transition: background-color 2s ease-in-out 1.6s, color 2s ease-in-out 1.6s, border-color 2s ease-in-out 1.6s, opacity 2s ease-in-out 1.6s !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .brand img { height: 32px; }
  .tiles { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .header-inner { gap: 12px; }
  .header-cta .btn-arrow { display: none; }
  .header-util { padding-left: 8px; gap: 0; }
  .theme-toggle { width: 34px; height: 34px; }
  .br-d { display: none; }
  .hero { min-height: 680px; max-height: none; }
  .hero-img { object-position: 72% 50%; }
  .hero::after { background: linear-gradient(180deg, rgba(10, 17, 14, .86) 0%, rgba(10, 17, 14, .55) 45%, rgba(10, 17, 14, .2) 70%, rgba(10, 17, 14, .85) 100%); }
  .hero::before { background: linear-gradient(180deg, rgba(245, 246, 241, .82) 0%, rgba(245, 246, 241, .5) 45%, rgba(245, 246, 241, .1) 70%, rgba(245, 246, 241, .92) 100%); }
  .hero-layer { background-position: 72% 50%; }
  .hero-copy { justify-content: flex-start; padding-top: calc(var(--header-h) + 48px); }
  .hero-lead { margin-top: 18px; }
  .hero-actions { margin-top: 26px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .header-inner { gap: 10px; }
  .brand img { height: 27px; }
  .site-nav a { padding: 8px 8px; font-size: 15px; }
  .header-cta .btn-label { padding: 0 14px; }
  .header-cta .btn-arrow { display: none; }
  .lang-link { padding: 0 6px; font-size: 13px; }
  .mail { font-size: 22px; }
  .timeline li { --dc: 76px; --gap: 28px; padding-bottom: 26px; }
  .timeline time { font-size: 14px; }
  .tl-title { font-size: 16px; }
  .tl-desc { font-size: 14px; }
  .mail-row { gap: 10px 14px; }
  .mail-row .btn-label { height: 34px; padding: 0 11px; font-size: 13.5px; }
  .m-label { font-size: 10px; padding: 1px 4px; }
  .m-box { --l: 8px; }
  .m-box i { font-size: 8.5px; padding: 1px 3px; }
  .fc-ax text, .fc-now { font-size: 15px; }
  .prose table { display: block; overflow-x: auto; }
  .prose th, .prose td { min-width: 120px; }
  .notice-list li { display: block; }
  .notice-list .meta { display: block; margin-top: 4px; }
}
@media (max-width: 520px) {
  html[lang="en"] .lang-link { display: none; } /* 영어 페이지는 좁은 화면에서 '한국어'를 맨 아래 링크로만 */
}
@media (max-width: 470px) {
  html[lang="en"] .site-nav li:nth-child(2) { display: none; } /* 영어 페이지는 좁은 화면에서 'Notices'를 맨 아래 링크로만 */
}
@media (max-width: 420px) {
  .header-inner { gap: 8px; }
  .site-nav a { padding: 8px 6px; font-size: 14px; }
  .header-cta .btn-label { padding: 0 10px; font-size: 14px; }
}
@media (max-width: 380px) {
  .brand img { height: 25px; }
  .mail { font-size: 20px; }
  .mail-row { gap: 10px; }
}
@media (max-width: 356px) {
  .lang-link { display: none; } /* 아주 좁은 화면: 언어 링크는 맨 아래에서 */
}
@media (max-width: 350px) {
  .brand img { height: 21px; }
  .site-nav a { padding: 8px 4px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-measure] .dim, .js [data-measure] .ext, .js [data-measure] .m-box { opacity: 1; transform: none; transition: none; }
  .hero-dawn { -webkit-mask-image: none; mask-image: none; }
}
