@charset "utf-8";
/* =====================================================
   구성사례 목록 — reference/css/list.css
   자동화설비 · 표준품(탭 + 카드 그리드)과 달리
   번호가 붙은 가로형 인덱스 리스트 + 레이어팝업(이전 / 다음) 구조
   ===================================================== */

/* ── 목록 ── */
.refList { border-top:2px solid var(--c_base2); }
.refList .refItem { border-bottom:1px solid var(--c_line); }

.refList .refLink {
	display:grid; grid-template-columns:38% 1fr 26px; align-items:center; gap:14px;
	width:100%; padding:14px 0; background:none; border:0; text-align:left; cursor:pointer;
}

/* 사진 — 이미지가 없을 때도 틀이 무너지지 않도록 바탕색 · 비율 고정 */
.refList .pic {
	position:relative; display:block; overflow:hidden; aspect-ratio:600 / 521;
	border:1px solid var(--c_line); border-radius:8px; background:var(--c_soft);
}
.refList .pic img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .4s; }

.refList .tx { display:block; min-width:0; }
.refList .tit {
	display:block; font-family:var(--f_en), var(--f_title), var(--f_base1), sans-serif;
	color:var(--c_ink); font-size:var(--fs18); font-weight:800; letter-spacing:-.02em; line-height:1.35;
	word-break:keep-all; overflow-wrap:anywhere; transition:color .2s;
}
.refList .sub {
	display:-webkit-box; -webkit-line-clamp:2; line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
	margin-top:6px; color:var(--c_muted); font-size:var(--fs16); font-weight:500; line-height:1.5;
}
.refList .sub b { margin-right:6px; color:#8b99ab; font-weight:700; }
.refList .sub b:after { content:""; display:inline-block; width:1px; height:11px; margin-left:6px; background:#c6d2e2; vertical-align:0; }

/* 화살표 (인라인 SVG) */
.refList .arr {
	width:26px; height:26px; border-radius:50%; background-color:var(--c_soft);
	background-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='10'%20height='10'%20viewBox='0%200%2010%2010'%3E%3Cpath%20d='M3.6%201.8%206.8%205%203.6%208.2'%20fill='none'%20stroke='%236a7b8d'%20stroke-width='1.6'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat:no-repeat; background-position:55% 50%; background-size:10px 10px;
	transition:background-color .2s;
}
.refList .refLink:hover .pic img { transform:scale(1.05); }
.refList .refLink:hover .tit { color:var(--c_base1); }
.refList .refLink:hover .arr {
	background-color:var(--c_base1);
	background-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='10'%20height='10'%20viewBox='0%200%2010%2010'%3E%3Cpath%20d='M3.6%201.8%206.8%205%203.6%208.2'%20fill='none'%20stroke='%23ffffff'%20stroke-width='1.6'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
}
.refList .refLink:focus-visible { outline:2px solid var(--c_base1); outline-offset:2px; border-radius:8px; }

/* ════════════════════════════════════════════════════
   레이어팝업
   모바일 : 하단에서 올라오는 시트 / 600px~ : 가운데 박스
   ════════════════════════════════════════════════════ */
.refPop {
	display:none; position:fixed; left:0; top:0; right:0; bottom:0; z-index:500;
	align-items:flex-end; justify-content:center;
}
.refPop.on { display:flex; }
.refPop .refDim {
	position:absolute; left:0; top:0; right:0; bottom:0;
	background:rgba(8,14,24,.72); opacity:0; transition:opacity .25s;
}
.refPop.show .refDim { opacity:1; }

.refPop .refBox {
	position:relative; display:flex; flex-direction:column; width:100%; max-height:92vh; max-height:92dvh;
	border-radius:16px 16px 0 0; background:#fff; overflow:hidden;
	transform:translateY(40px); opacity:0; transition:transform .3s ease, opacity .3s ease;
}
.refPop.show .refBox { transform:none; opacity:1; }

/* 머리 : 번호 + 닫기 */
.refPop .refHead {
	flex:0 0 auto; display:flex; align-items:center; justify-content:space-between; gap:12px;
	padding:12px 12px 10px 18px; border-bottom:1px solid var(--c_line);
}
.refPop .refCount { display:flex; align-items:baseline; gap:5px; font-family:var(--f_en), var(--f_base1), sans-serif; line-height:1; }
.refPop .refCount b { color:var(--c_base1); font-size:var(--fs20); font-weight:700; }
.refPop .refCount span { color:#9aa8b8; font-size:var(--fs13); font-weight:600; }
.refPop .refClose {
	flex:0 0 auto; width:40px; height:40px; padding:0; border:0; border-radius:50%; background-color:transparent;
	background-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%3E%3Cg%20fill='none'%20stroke='%2314181d'%20stroke-width='1.8'%20stroke-linecap='round'%3E%3Cpath%20d='M4.5%204.5%2013.5%2013.5M13.5%204.5%204.5%2013.5'/%3E%3C/g%3E%3C/svg%3E");
	background-repeat:no-repeat; background-position:50% 50%; background-size:18px 18px;
	transition:background-color .2s;
}
.refPop .refClose:hover { background-color:var(--c_soft); }

/* 본문 스크롤 영역 : 제목 → 이미지 → 설명 */
.refPop .refScroll { flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:18px 18px 22px; }
.refPop .refTit {
	margin-bottom:14px; font-family:var(--f_en), var(--f_title), var(--f_base1), sans-serif;
	color:var(--c_ink); font-size:var(--fs22); font-weight:800; letter-spacing:-.02em; line-height:1.3; word-break:keep-all;
}
.refPop .refPic {
	overflow:hidden; aspect-ratio:600 / 521; border:1px solid var(--c_line); border-radius:10px; background:var(--c_soft);
	touch-action:pan-y;
}
.refPop .refPic img { width:100%; height:100%; object-fit:contain; display:block; transition:opacity .2s; }
.refPop .refPic.fade img { opacity:0; }

.refPop .refInfo { margin-top:16px; }
.refPop .refInfo ul { margin:0; padding:0; list-style:none; border-top:1px solid var(--c_ink); }
.refPop .refInfo li {
	display:flex; gap:12px; padding:12px 2px; border-bottom:1px solid var(--c_line);
	color:var(--c_ink); font-size:var(--fs14); font-weight:500; line-height:1.6; word-break:keep-all;
}
/* 라벨 있는 줄 : 라벨 | 값 */
.refPop .refInfo li b { flex:0 0 68px; color:var(--c_base1); font-size:var(--fs13); font-weight:700; line-height:1.75; }
/* 라벨 없는 줄 : 점 + 설명 */
.refPop .refInfo li:not(:has(b)):before {
	content:""; flex:0 0 4px; height:4px; margin-top:.75em; border-radius:50%; background:var(--c_base4);
}

/* 하단 이전 / 다음 */
.refPop .refNav {
	flex:0 0 auto; display:grid; grid-template-columns:1fr 1fr;
	border-top:1px solid var(--c_line); background:var(--c_soft);
	padding-bottom:env(safe-area-inset-bottom);
}
.refPop .refNav button {
	display:flex; align-items:center; gap:10px; min-width:0; height:66px; padding:0 14px;
	border:0; background:none; text-align:left; transition:background-color .2s;
}
.refPop .refNav .refNext { justify-content:flex-end; text-align:right; border-left:1px solid var(--c_line); }
.refPop .refNav button:hover { background-color:#e2eaf5; }
.refPop .refNav span { display:block; min-width:0; }
.refPop .refNav em {
	display:block; font-family:var(--f_en), var(--f_base1), sans-serif;
	color:#8b99ab; font-size:var(--fs12); font-weight:700; font-style:normal; letter-spacing:.08em; line-height:1.2;
}
.refPop .refNav strong {
	display:block; margin-top:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
	color:var(--c_ink); font-size:var(--fs13); font-weight:700; line-height:1.3;
}
.refPop .refNav i {
	flex:0 0 auto; width:34px; height:34px; border:1px solid var(--c_line); border-radius:50%; background-color:#fff;
	background-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%3E%3Cpath%20d='M7.6%202.4%204%206l3.6%203.6'%20fill='none'%20stroke='%231b54b2'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat:no-repeat; background-position:45% 50%; background-size:12px 12px;
}
.refPop .refNav .refNext i { transform:scaleX(-1); }

/* ── 태블릿 이상 (600px~) ── */
@media screen and (min-width: 600px) {
	.refList .refLink { grid-template-columns:240px 1fr 32px; gap:22px; padding:20px 0; }
	.refList .tit { font-size:var(--fs20); }
	.refList .sub { margin-top:8px; }
	.refList .arr { width:32px; height:32px; background-size:12px 12px; }

	.refPop { align-items:center; padding:30px 24px; }
	.refPop .refBox { max-width:680px; max-height:calc(100vh - 60px); max-height:calc(100dvh - 60px); border-radius:14px; box-shadow:0 24px 60px rgba(0,0,0,.35); }
	.refPop .refHead { padding:14px 14px 12px 24px; }
	.refPop .refScroll { padding:24px 24px 28px; }
	.refPop .refTit { margin-bottom:18px; font-size:var(--fs26); }
	.refPop .refInfo li b { flex-basis:80px; }
	.refPop .refNav button { height:74px; padding:0 20px; }
}

/* ── PC (1024px~) : 목록 2열 ── */
@media screen and (min-width: 1024px) {
	.refList { display:grid; grid-template-columns:1fr 1fr; column-gap:40px; }
	.refList .refLink { grid-template-columns:44% 1fr 32px; }
}

/* ── 더 보기 ── */
.refList .refItem.hide { display:none; }
.refList .refItem.new { animation:refIn .45s ease both; }
@keyframes refIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }

.refMoreWrap { margin-top:24px; text-align:center; }
.refMore {
	display:inline-flex; align-items:center; justify-content:center; gap:10px;
	width:100%; max-width:360px; height:52px; padding:0 20px;
	border:1px solid var(--c_base2); border-radius:8px; background:#fff;
	color:var(--c_base2); font-size:var(--fs16); font-weight:700; line-height:1;
	transition:background-color .2s, color .2s;
}
.refMore:after {
	content:""; flex:0 0 auto; width:14px; height:14px;
	background:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%3E%3Cpath%20d='M7%202.5v9M2.5%207h9'%20fill='none'%20stroke='%23273e82'%20stroke-width='1.8'%20stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 50% 50% / 14px 14px;
}
.refMore em { font-family:var(--f_en), var(--f_base1), sans-serif; color:#8b99ab; font-size:var(--fs14); font-weight:600; font-style:normal; }
.refMore em b { color:var(--c_base1); font-weight:700; }
.refMore:hover { background-color:var(--c_base2); color:#fff; }
.refMore:hover em, .refMore:hover em b { color:#fff; }
.refMore:hover:after {
	background-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%3E%3Cpath%20d='M7%202.5v9M2.5%207h9'%20fill='none'%20stroke='%23ffffff'%20stroke-width='1.8'%20stroke-linecap='round'/%3E%3C/svg%3E");
}

@media screen and (min-width: 600px) {
	.refMoreWrap { margin-top:32px; }
	.refMore { height:56px; }
}
