@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

:root {
  --navy: #0b1f3a;
  --navy-2: #12305a;
  --blue: #1565d8;
  --blue-soft: #e8f0fc;
  --ink: #1b2430;
  --muted: #5d6b7c;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --radius: 10px;
  --wrap: 1200px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 16px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .6em; color: var(--navy); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section.alt { background: var(--bg-alt); }
.eyebrow { display: inline-block; color: var(--blue); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 760px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); height: var(--header-h); box-shadow: 0 2px 12px rgba(0,0,0,.15); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo img { height: 38px; width: auto; }
.nav { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav > li { position: relative; }
.nav > li > a { display: block; padding: 0 14px; line-height: var(--header-h); color: #fff; font-weight: 600; font-size: .98rem; }
.nav > li > a:hover, .nav > li.active > a { color: #8ab8ff; text-decoration: none; }
.nav .sub { position: absolute; top: 100%; left: 0; min-width: 210px; background: #fff; border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 12px 30px rgba(11,31,58,.18); list-style: none; margin: 0; padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.nav > li:hover .sub, .nav > li:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a { display: block; padding: 8px 20px; color: var(--ink); font-size: .93rem; }
.nav .sub a:hover { background: var(--blue-soft); color: var(--blue); text-decoration: none; }
.nav .sub .indent a { padding-left: 34px; color: var(--muted); }
.header-cta { background: var(--blue); color: #fff !important; border-radius: 6px; padding: 8px 16px; font-weight: 700; font-size: .92rem; white-space: nowrap; }
.header-cta:hover { background: #0f55bb; text-decoration: none; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1080px) {
  .header-cta { display: none; }
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--navy); flex-direction: column; gap: 0; padding: 8px 0 40px; overflow-y: auto; display: none; }
  .nav.open { display: flex; }
  .nav > li > a { line-height: 1.4; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-radius: 0; background: var(--navy-2); padding: 4px 0; display: none; }
  .nav > li.expanded .sub { display: block; }
  .nav .sub a { color: #d6e2f3; padding: 10px 36px; }
  .nav .sub .indent a { padding-left: 52px; color: #a9bbd4; }
  .nav .sub a:hover { background: transparent; color: #fff; }
  .nav > li.has-sub > a::after { content: '+'; float: right; font-weight: 400; }
  .nav > li.has-sub.expanded > a::after { content: '−'; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; min-height: min(78vh, 680px); display: flex; align-items: center;
  background: linear-gradient(100deg, rgba(8,22,44,.92) 0%, rgba(8,22,44,.7) 50%, rgba(8,22,44,.35) 100%), var(--hero-img) center/cover no-repeat; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); max-width: 760px; }
.hero p { font-size: clamp(1rem, 2vw, 1.2rem); max-width: 620px; color: #d7e3f4; }
.hero .btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-block; padding: 13px 26px; border-radius: 6px; font-weight: 700; border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #0f55bb; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn-outline:hover { background: var(--blue-soft); }
.btn-sm { padding: 7px 14px; font-size: .9rem; }

.stats { background: var(--navy-2); color: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat { padding: 18px 12px; text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(1.15rem, 2vw, 1.55rem); color: #8ab8ff; line-height: 1.25; margin-bottom: 2px; }
.stat span { display: block; font-size: .82rem; line-height: 1.4; color: #c8d6ea; }
@media (max-width: 720px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2n) { border-right: 0; } .stat { border-bottom: 1px solid rgba(255,255,255,.1); }
  .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stat { padding: 12px 8px; } .stat span { font-size: .74rem; } }

/* ---------- Sub page hero ---------- */
.page-hero { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 56px 0 48px; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 6px; }
.page-hero p { color: #c8d6ea; margin: 0; }
.crumbs { font-size: .88rem; color: #9fb4d0; margin-bottom: 10px; }
.crumbs a { color: #9fb4d0; }
.subnav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: var(--header-h); z-index: 20; }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav a { padding: 14px 16px; white-space: nowrap; color: var(--muted); font-weight: 600; font-size: .95rem; border-bottom: 3px solid transparent; }
.subnav a:hover { color: var(--blue); text-decoration: none; border-bottom-color: var(--blue); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .grid-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
a.card { color: inherit; }
a.card:hover { text-decoration: none; box-shadow: 0 14px 34px rgba(11,31,58,.12); transform: translateY(-3px); }
.card .thumb { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--bg-alt); }
.card .body { padding: 22px; flex: 1; }
.card h3 { margin-bottom: 8px; }
.card .more { color: var(--blue); font-weight: 700; font-size: .92rem; }
.feature { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.feature .num { font-size: .85rem; color: var(--blue); font-weight: 800; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

.prose { max-width: 860px; }
.prose h3 { margin-top: 1.8em; padding-left: 12px; border-left: 4px solid var(--blue); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.block { margin-bottom: 56px; }
.block:last-child { margin-bottom: 0; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline > li { position: relative; padding: 0 0 26px 28px; }
.timeline > li::before { content: ''; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.timeline .year { font-weight: 800; color: var(--navy); font-size: 1.15rem; }
.timeline ul { margin: 4px 0 0; padding-left: 1.1em; color: var(--ink); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 28px; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; background: #fff; }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: var(--navy); color: #fff; font-weight: 600; white-space: nowrap; }
tbody th { background: var(--bg-alt); font-weight: 600; white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
.spec td, .spec th { text-align: center; white-space: nowrap; }
.spec tbody th { text-align: left; }

/* ---------- Gallery / certificates / logos ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; }
.cert { text-align: center; font-size: .9rem; color: var(--ink); }
.cert img { width: 100%; aspect-ratio: 1 / 1.414; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 6px; cursor: zoom-in; margin-bottom: 8px; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.logo-grid div { border: 1px solid var(--line); border-radius: 8px; padding: 14px; text-align: center; background: #fff; font-size: .88rem; font-weight: 600; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; min-height: 110px; }
.logo-grid img { max-height: 50px; width: auto; object-fit: contain; }
.gallery { columns: 3 260px; column-gap: 16px; }
.gallery img { width: 100%; margin-bottom: 16px; border-radius: 8px; cursor: zoom-in; break-inside: avoid; }
.lightbox { position: fixed; inset: 0; background: rgba(5,12,24,.92); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; max-width: 100%; width: auto; }

.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.doc-list a { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-weight: 600; }
.doc-list a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.doc-list a::before { content: 'PDF'; font-size: .7rem; font-weight: 800; color: #fff; background: #d64545; padding: 3px 6px; border-radius: 4px; }
.doc-list a.video::before { content: '영상'; background: #e02424; }
.doc-list a.page::before { content: '보기'; background: var(--blue); }

.notice { background: var(--blue-soft); border-left: 4px solid var(--blue); padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 20px 0; }
.cta-band { background: linear-gradient(110deg, var(--blue) 0%, #0e4aa6 100%); color: #fff; }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding-top: 44px; padding-bottom: 44px; }
.cta-band h2 { color: #fff; margin: 0; font-size: clamp(1.3rem, 2.6vw, 1.8rem); }
.cta-band p { margin: 4px 0 0; color: #dbe7fb; }
.cta-band .btn { background: #fff; color: var(--blue); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .93rem; }
.form input, .form select, .form textarea { font: inherit; padding: 11px 13px; border: 1px solid #cfd7e2; border-radius: 6px; background: #fff; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: var(--blue); }
.form textarea { min-height: 160px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.msg { padding: 12px 16px; border-radius: 6px; display: none; }
.msg.ok { display: block; background: #e7f6ec; color: #17663a; }
.msg.err { display: block; background: #fdecec; color: #a32020; }

/* ---------- Board ---------- */
.board-tools { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs button { font: inherit; font-size: .92rem; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--muted); }
.tabs button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.search { display: flex; gap: 6px; }
.search input { font: inherit; padding: 8px 12px; border: 1px solid #cfd7e2; border-radius: 6px; width: 200px; }
.search button { white-space: nowrap; }
.board-table td.title a { color: var(--ink); font-weight: 600; }
.board-table .c { text-align: center; white-space: nowrap; color: var(--muted); }
.badge { display: inline-block; font-size: .75rem; padding: 2px 8px; border-radius: 99px; background: var(--blue-soft); color: var(--blue); font-weight: 700; white-space: nowrap; }
.clip { color: var(--muted); font-size: .85rem; margin-left: 6px; }
.new { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 6px; border-radius: 4px; background: #e5483d; color: #fff; font-size: .68rem; font-weight: 800; vertical-align: 2px; }
@media (max-width: 720px) {
  .board-table thead { display: none; }
  .board-table tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .board-table td { display: inline; padding: 0; border: 0; }
  .board-table td.title { display: block; margin: 4px 0; }
  .board-table td.num { display: none; }
  .board-table td.c { font-size: .82rem; margin-right: 10px; }
  .search input { width: 100%; } .search { flex: 1; }
}
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 22px; flex-wrap: wrap; }
.pager button { font: inherit; min-width: 38px; padding: 6px 10px; border: 1px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer; }
.pager button.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.post-head { border-bottom: 2px solid var(--navy); padding-bottom: 14px; margin-bottom: 20px; }
.post-head h2 { margin: 8px 0; font-size: clamp(1.3rem, 3vw, 1.7rem); }
.post-meta { color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 14px; }
.post-body { white-space: pre-wrap; min-height: 120px; padding-bottom: 24px; }
.post-body img { margin: 12px 0; border-radius: 6px; }
.post-files { background: var(--bg-alt); border-radius: 8px; padding: 16px 18px; margin: 10px 0 24px; }
.post-files h4 { margin: 0 0 8px; font-size: .95rem; }
.post-files a { display: block; padding: 4px 0; }
.empty { text-align: center; color: var(--muted); padding: 48px 0; }

/* ---------- Footer ---------- */
.site-footer { background: #08172b; color: #9fb0c6; font-size: .9rem; padding: 48px 0 28px; }
.site-footer .top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-footer .logo img { height: 34px; margin-bottom: 14px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 10px; }
.site-footer p { margin: 0 0 4px; }
.site-footer a { color: #c8d6ea; }
.site-footer .addr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.site-footer .certs { display: flex; gap: 12px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.site-footer .certs img { height: 44px; width: auto; background: #fff; border-radius: 6px; padding: 4px; }
.site-footer .bottom { padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .84rem; }
@media (max-width: 860px) { .site-footer .top { grid-template-columns: 1fr; } .site-footer .addr { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- Generated technical pages ---------- */
.tech h3 { margin-top: 1.6em; }
.tech h4 { margin: 1.3em 0 .4em; font-size: 1.05rem; color: var(--navy); }
.tech p.li { padding-left: 1.1em; margin-bottom: .45em; }
/* 문제 해결 페이지: 문제(q)는 진하게 + 주황 표시, 해결(a)은 → 로 들여쓰기 */
.tech p.li.q { position: relative; margin-top: 1.1em; color: var(--navy); font-weight: 700; }
.tech p.li.q::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-radius: 2px; background: #f08a24; }
.tech p.li.a { position: relative; padding-left: 2.2em; color: var(--ink); }
.tech p.li.a::before { content: "→"; position: absolute; left: 1.1em; color: var(--blue); font-weight: 700; }
.tech img { margin: 16px 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: zoom-in; }
.tech .doc-list { margin: 14px 0 22px; }

/* ---------- Organization chart ---------- */
.org { margin-top: 36px; text-align: center; }
.org-ceo { display: inline-block; background: var(--navy); color: #fff; font-weight: 800; font-size: 1.15rem; letter-spacing: .1em;
  padding: 16px 48px; border-radius: 10px; box-shadow: 0 10px 24px rgba(11,31,58,.2); position: relative; }
.org-ceo::after { content: ''; position: absolute; left: 50%; top: 100%; width: 2px; height: 28px; background: #b8c4d4; }
.org-depts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 56px; position: relative; text-align: left; }
.org-depts::before { content: ''; position: absolute; top: -28px; left: calc(100% / 12); right: calc(100% / 12); height: 2px; background: #b8c4d4; }
.org-dept { position: relative; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 10px; padding: 18px 16px; }
.org-dept::before { content: ''; position: absolute; left: 50%; top: -32px; width: 2px; height: 28px; background: #b8c4d4; }
.org-dept h3 { font-size: 1.05rem; text-align: center; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.org-dept ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.org-dept li { background: var(--bg-alt); border-radius: 6px; padding: 7px 10px; font-size: .92rem; text-align: center; }
.org-dept.direct { border-top-color: #0f8f7e; }
.org-dept.direct li { background: #e6f5f2; }
.org-tag { position: absolute; top: -12px; right: 10px; background: #0f8f7e; color: #fff; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
@media (max-width: 960px) {
  .org-depts { grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
  .org-depts::before, .org-dept::before, .org-ceo::after { display: none; }
}
@media (max-width: 560px) { .org-depts { grid-template-columns: repeat(2, 1fr); gap: 12px; } .org-ceo { padding: 14px 36px; } }

/* ---------- Video in board posts ---------- */
.video { position: relative; width: 100%; max-width: 860px; aspect-ratio: 16 / 9; margin: 14px 0 18px; background: #000; border-radius: 8px; overflow: hidden; white-space: normal; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Control valve guide ---------- */
.valve-diagram { margin: 0 auto 28px; max-width: 900px; width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: zoom-in; }
.valve-jump { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px; position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; }
.valve-jump a { min-width: 46px; text-align: center; padding: 6px 10px; border-radius: 99px; background: #fff; border: 1px solid #b9dcc6; color: #17663a; font-weight: 700; font-size: .92rem; box-shadow: 0 2px 6px rgba(11,31,58,.06); }
.valve-jump a.red { border-color: #f0c2c2; color: #a32020; }
.valve-jump a:hover { text-decoration: none; background: var(--bg-alt); }
.valve { --c: #1f8a4c; --c-soft: #e9f6ee; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--c); border-radius: 10px; margin-bottom: 20px; overflow: hidden; scroll-margin-top: calc(var(--header-h) + 64px); }
.valve.red { --c: #c43c3c; --c-soft: #fbeeee; }
.valve header { display: flex; align-items: center; gap: 16px; padding: 16px 22px; background: var(--c-soft); border-bottom: 1px solid var(--line); }
.valve-no { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 800; font-size: 1.2rem; display: grid; place-items: center; }
.valve header h2 { font-size: 1.25rem; margin: 0; }
.valve header p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.valve-color { margin-left: auto; flex: none; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; color: #fff; }
.valve-color.green { background: #1f8a4c; } .valve-color.red { background: #c43c3c; }
.valve-body { display: grid; grid-template-columns: 1fr 280px; }
.valve-body > div { padding: 18px 22px; }
.valve-body > div + div { border-left: 1px solid var(--line); background: #fbfcfd; }
.valve-body h4 { margin: 0 0 10px; font-size: .85rem; letter-spacing: .04em; color: var(--muted); }
.valve-body p { margin: 0 0 .7em; }
.valve-body p:last-child { margin-bottom: 0; }
.valve-note { background: #fff8e6; border-left: 3px solid #e0a800; padding: 8px 12px; border-radius: 0 6px 6px 0; font-size: .93rem; }
.valve-spec { display: inline-block; background: var(--c-soft); color: var(--c); padding: 1px 8px; border-radius: 4px; margin-left: 4px; }
.turn { margin: 0; display: grid; gap: 8px; }
.turn dt { font-weight: 700; color: var(--navy); font-size: .9rem; }
.turn dd { margin: 0 0 6px; padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
@media (max-width: 760px) {
  .valve-body { grid-template-columns: 1fr; }
  .valve-body > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .valve header { padding: 14px 16px; gap: 12px; } .valve-body > div { padding: 16px; }
  .valve-no { width: 44px; height: 44px; font-size: 1.05rem; }
  .valve-jump { top: calc(var(--header-h) + 4px); }
}
.valve-jump { background: rgba(255,255,255,.96); padding: 8px; border-radius: 99px; border: 1px solid var(--line); width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; }
@media (max-width: 760px) {
  .valve-jump { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; border-radius: 10px; scrollbar-width: none; }
  .valve-jump a { flex: none; min-width: 42px; }
}
.valve-body.solo { grid-template-columns: 1fr; }
.valve-body.solo > div { border-left: 0; background: #fff; }
.valve-body.solo .turn { grid-template-columns: auto 1fr auto 1fr; align-items: center; column-gap: 12px; }
.valve-body.solo .turn dd { margin: 0; }
@media (max-width: 760px) { .valve-body.solo .turn { grid-template-columns: 1fr; } }
.form fieldset.post-files { border: 0; margin: 0; }
.form label.check { display: flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 400; padding: 4px 0; }
.form label.check input { width: auto; }

/* ---------- Troubleshooting video cases ---------- */
.cases { display: grid; gap: 12px; }
.case { display: grid; grid-template-columns: 40px 1fr auto; gap: 16px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.case-no { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: .9rem; display: grid; place-items: center; }
.case h3 { font-size: 1.02rem; margin: 6px 0 6px; }
.case p { margin: 0 0 4px; color: var(--ink); font-size: .95rem; }
.case p.li { color: var(--muted); font-size: .88rem; padding: 0; }
.case-actions { display: flex; flex-direction: column; gap: 6px; padding-top: 2px; }
.case-video { white-space: nowrap; font-size: .85rem; font-weight: 700; color: #c4302b; border: 1px solid #f0c9c7; background: #fff5f4; padding: 6px 12px; border-radius: 99px; }
.case-video:hover { background: #c4302b; color: #fff; text-decoration: none; }
@media (max-width: 640px) {
  .case { grid-template-columns: 32px 1fr; gap: 12px; padding: 14px; }
  .case-no { width: 30px; height: 30px; font-size: .8rem; }
  .case-actions { grid-column: 2; flex-direction: row; }
}

/* ---------- Content images fit the screen ---------- */
/* 본문 사진은 한 화면에 다 보이도록 높이를 제한하고, 원본보다 크게 늘리지 않습니다. 누르면 원래 크기로 크게 봅니다. */
.tech img, .valve-diagram, .split img, .post-body img, .post-files ~ img, article > img.zoom, #org img {
  width: auto; max-width: 100%; height: auto; max-height: calc(100vh - var(--header-h) - 64px); object-fit: contain;
}
/* 게시판 글의 그림은 글씨를 읽어야 하는 경우가 많아 높이 제한 없이 본문 폭(최대 860px)에 맞춤 */
#board .post-body img, #board article > img.zoom { max-height: none; max-width: min(100%, 860px); }
.lightbox { overflow: auto; align-items: flex-start; }
.lightbox img { max-height: none; max-width: min(100%, 1600px); margin: auto; }
/* 세로 영상: 폭 360px 이하, 그리고 화면 높이 안에 들어오도록 폭을 계산 */
.video.shorts { aspect-ratio: 9 / 16; width: min(100%, 360px, calc((100vh - var(--header-h) - 64px) * 9 / 16)); }

/* ---------- Resource lists (기타 자료, 문제 해결) ---------- */
.res-list, .prose .res-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 860px; }
.res { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); }
.res:hover { border-color: var(--blue); text-decoration: none; box-shadow: 0 6px 18px rgba(11,31,58,.08); }
.res-type { flex: none; font-size: .72rem; font-weight: 800; color: #fff; padding: 3px 8px; border-radius: 4px; background: var(--blue); }
.res-type.res-pdf { background: #d64545; } .res-type.res-video { background: #e02424; }
.res-title { flex: 1; font-weight: 700; font-size: 1.02rem; }
.res-go { flex: none; font-size: .88rem; font-weight: 700; color: var(--blue); white-space: nowrap; }
@media (max-width: 480px) { .res { gap: 10px; padding: 14px; } .res-go { font-size: 0; } .res-go::after { content: '→'; font-size: 1.1rem; } }

/* ---------- Grid tables (모든 칸에 선, 가운데 정렬) ---------- */
/* 옆으로 밀지 않고 화면 폭에 맞게: 폭이 좁아지면 글자와 여백이 함께 줄어듭니다 */
.grid-table { font-size: clamp(.58rem, 1.35vw, .93rem); }
.grid-table th, .grid-table td { border: 1px solid var(--line); text-align: center; vertical-align: middle; padding: .7em .45em; white-space: normal; word-break: keep-all; line-height: 1.35; }
.table-wrap:has(.grid-table) { overflow-x: visible; }
.grid-table { overflow-wrap: normal; }  /* 단어(Ø100, STKM 등) 중간에서 끊지 않음 */
@media (max-width: 560px) { .grid-table { font-size: .53rem; letter-spacing: -.02em; } .grid-table th, .grid-table td { padding: .55em .12em; } }
.grid-table thead th { background: var(--navy); color: #fff; border-color: #2a4468; }
.grid-table tbody th { background: var(--bg-alt); color: var(--navy); }
.grid-table tbody tr:hover td { background: #f8fbff; }
@media (max-width: 400px) { .table-wrap:has(.grid-table) { margin-left: -12px; margin-right: -12px; } }
.grid-table.zebra tbody tr:nth-child(odd) td, .grid-table.zebra tbody tr:nth-child(odd) th { background: #fdf1e6; }
.table-notes { font-size: .9rem; color: var(--muted); margin: -12px 0 24px; padding-left: 1.3em; }
.table-notes li { margin-bottom: 2px; }
.grid-table.zebra th, .grid-table.zebra td { padding-top: .42em; padding-bottom: .42em; }
/* 시험 결과 페이지: 사양 칸, 결과 요약, 설치 전/후 비교 */
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 28px; }
.spec-grid div { background: var(--bg-alt); border-radius: 8px; padding: 12px 14px; }
.spec-grid dt { font-size: .8rem; color: var(--muted); }
.spec-grid dd { margin: 0; font-weight: 700; color: var(--navy); }
.result-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 28px; }
.result-chips div { border: 1px solid #cfe0fb; background: #f3f8ff; border-radius: 10px; padding: 14px; text-align: center; }
.result-chips b { display: block; font-size: 1.3rem; color: var(--blue); }
.result-chips span { font-size: .85rem; color: var(--ink); }
.grid-table td.good { color: var(--blue); font-weight: 800; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare figure { margin: 0; border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #fff; }
.compare figcaption { font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.compare .tag { font-size: .75rem; color: #fff; padding: 2px 8px; border-radius: 4px; margin-right: 4px; vertical-align: 1px; }
.compare .tag.before { background: #8a96a8; } .compare .tag.after { background: var(--blue); }
@media (max-width: 640px) { .spec-grid { grid-template-columns: 1fr 1fr; } .result-chips, .compare { grid-template-columns: 1fr; } }
/* 제품 설명 페이지(오일 쿨러): 정보 상자, 체크 목록, 강조 문단, 번호 동그라미 */
.info-box { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.info-box h3 { font-size: 1.02rem; margin-top: 0; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 1.5em; margin-bottom: .45em; font-size: .95rem; }
.ticks li::before { content: "•"; position: absolute; left: .35em; color: var(--blue); font-weight: 800; }
.ticks.warn li::before { content: "!"; color: #e5483d; }
.ticks.good li::before { content: "✓"; left: .1em; color: var(--blue); }
.callout { background: #f3f8ff; border-left: 4px solid var(--blue); border-radius: 6px; padding: 14px 18px; margin: 0 0 32px; }
.callout b { display: block; color: var(--navy); margin-bottom: 2px; }
.callout.warn { background: #fff6ec; border-left-color: #f08a24; }
.callout.warn b { color: #c25e00; }
.code-tag { font-size: .8rem; color: #fff; background: var(--navy); border-radius: 4px; padding: 1px 7px; margin-right: 4px; vertical-align: 2px; }
.cert-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cert-row figure { margin: 0; border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: #fff; text-align: center; }
.cert-row img { margin: 0 auto; }
.cert-row figcaption { font-size: .85rem; font-weight: 700; color: var(--navy); margin-top: 6px; }
.num-dot { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: #f08a24; color: #fff; font-weight: 800; }
@media (min-width: 641px) { .split .spec-grid dd { white-space: nowrap; } }
@media (max-width: 640px) { .split .spec-grid { grid-template-columns: 1fr 1fr !important; } }
/* 계산서 표 (실린더 안전률): 공식·계산식은 왼쪽 정렬, 결과값은 굵게 */
.grid-table.calc { margin-bottom: 14px; }
.grid-table.calc td.f { text-align: left; padding-left: .8em; padding-right: .8em; }
.grid-table.calc td.v { font-weight: 800; color: var(--blue); }
.grid-table.calc tr.result th, .grid-table.calc tr.result td { background: #eef4ff; }
.grid-table.calc .pick { color: var(--blue); }
.sqrt { border-top: 1px solid currentColor; padding-top: 1px; }
.calc-note { font-size: .92rem; color: var(--ink); margin: 6px 0 14px; }

/* ---------- 모바일 하단 전화 바 + 맨 위로 버튼 ---------- */
.mobile-bar { display: none; }
.to-top { position: fixed; right: 18px; bottom: 22px; z-index: 60; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--navy); color: #fff;
  font-size: 1.3rem; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px rgba(11,31,58,.3); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue); }
@media (max-width: 1080px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(11,31,58,.12); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 6px; height: 56px; font-weight: 700; font-size: 1rem; color: var(--navy); }
  .mobile-bar a:hover { text-decoration: none; }
  .mobile-bar a.call { background: var(--blue); color: #fff; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .to-top { bottom: calc(70px + env(safe-area-inset-bottom)); right: 14px; width: 42px; height: 42px; }
}
@media (max-width: 1080px) { .nav { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }
/* 스팸 차단용 숨김 칸 (display:none 대신 화면 밖으로 — 일부 봇은 display:none 칸을 건너뜀) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
