@import url("https://cdn.jsdelivr.net/npm/pretendard@1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");
/* ========================================
   큐랩스(QRAPS) 블로그 — 홈페이지 색(assets/css/qraps.css)
   --q-blue #00A0E9 · --q-blue-lt #6BC3F0 · --q-blue-br #3ABCFF · --q-blue-dp #0A6FA8 · 서브페이지 머리 #1b2733→#3a4a58 + 하늘색 빛
   머리 · 발행처 박스 · 바닥은 짙은 남색, 흰 바탕 위 링크는 #0A6FA8(대비 5.4:1), 어두운 바탕 위 강조는 #6BC3F0 · #8FD3F7
   ======================================== */
:root{
	--bg: #F4F7FA;           /* 연한 청회색 */
	--surface: #ffffff;
	--ink: #222B33;          /* 본문 글자 */
	--ink-2: #545454;        /* 홈페이지 --q-text */
	--mute: #6B7480;
	--line: #E5E8EC;
	--brand: #0A6FA8;        /* 홈페이지 --q-blue-dp — 흰 바탕 링크·강조 */
	--brand-2: #6BC3F0;      /* 홈페이지 --q-blue-lt — 어두운 바탕 강조 */
	--dark: #1B2733;         /* 홈페이지 서브페이지 머리 */
	--gold: #6BC3F0;          /* 옛 토큰 이름 유지 */
	--shadow-sm: 0 4px 14px -6px rgba(27,39,51,0.12);
	--shadow-md: 0 16px 40px -18px rgba(27,39,51,0.22);
	--shadow-lg: 0 28px 60px -20px rgba(27,39,51,0.28);
}
*,*::before,*::after{ box-sizing:border-box; }
html,body{ margin:0; padding:0; background:var(--bg); color:var(--ink); font-family:'Pretendard Variable','Pretendard','Noto Sans KR','Hiragino Sans','Noto Sans JP','PingFang SC','Microsoft YaHei','Leelawadee UI','Thonburi','Noto Sans Thai','Malgun Gothic',sans-serif; line-height:1.7; word-break:keep-all; }
a{ color:var(--brand); text-decoration:none; }
img{ max-width:100%; height:auto; display:block; }

/* ── 상단 헤더 (짙은 남색 — 홈페이지 서브페이지 머리와 같은 색 + 시험실 사진) ── */
.bhead{
	background:linear-gradient(100deg, rgba(27,39,51,0.96) 0%, rgba(27,39,51,0.88) 48%, rgba(44,58,71,0.72) 100%), url('/assets/img/hist_1.jpg') center 60%/cover no-repeat, #1B2733;
	color:#fff; padding:40px 24px 62px; position:relative; overflow:hidden;
}
.bhead::before{ content:""; position:absolute; inset:0; background:radial-gradient(circle at 78% 30%, rgba(0,160,233,0.22), transparent 58%); pointer-events:none; z-index:1; }
/* 좁은 화면 — 사진이 글자 뒤로 오므로 고르게 짙게 */
@media (max-width: 860px){
	.bhead{ background:linear-gradient(180deg, rgba(27,39,51,0.94), rgba(27,39,51,0.90)), url('/assets/img/hist_1.jpg') center/cover no-repeat, #1B2733; }
}
.bhead .wrap{ max-width:1320px; margin:0 auto; position:relative; z-index:2; }
.bhead-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:28px; flex-wrap:wrap; gap:14px; }
.bhead-brand{ display:flex; align-items:center; gap:12px; color:#fff; font-weight:900; font-size:18px; letter-spacing:-0.01em; }
.bhead-brand .b-logo-img{ height:46px; width:auto; display:block; }
.bhead-brand .b-logo-sep{ width:1px; height:26px; background:rgba(255,255,255,0.35); }
.bhead-brand .b-logo-label{ font-size:12px; font-weight:800; letter-spacing:0.3em; color:#6BC3F0; }
.bhead-nav{ display:flex; flex-wrap:wrap; gap:8px 18px; }
.bhead-nav a{ white-space:nowrap; color:rgba(255,255,255,0.86); font-size:14px; font-weight:600; transition:color .2s; }
.bhead-nav a:hover{ color:#6BC3F0; }

/* 아이브로우 (하늘색 · 자간 넓게) */
.bhead-eyebrow{
	font-size:12px; font-weight:700;
	letter-spacing:0.22em; text-transform:uppercase; color:#6BC3F0; margin:0 0 14px;
	display:inline-flex; align-items:center; gap:8px;
}
.bhead-eyebrow::before{ content:""; width:26px; height:2px; background:#6BC3F0; display:inline-block; }
.bhead h1{ font-size:clamp(28px, 4vw, 46px); font-weight:900; margin:0 0 12px; letter-spacing:-0.03em; line-height:1.18; color:#fff; }
.bhead h1 .accent{ color:#3ABCFF; }
.bhead p.sub{ font-size:clamp(14px, 1.4vw, 17px); color:rgba(255,255,255,0.78); margin:0; max-width:720px; }

/* ── 언어 스위처 (4개, 한 줄) ── */
.b-langs{ display:flex; gap:7px; flex-wrap:wrap; margin-top:22px; }
.b-langs a{
	display:inline-flex; align-items:center; gap:5px;
	padding:6px 12px; border-radius:999px;
	background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.24);
	color:#fff; font-size:13px; font-weight:700; transition:all .2s;
}
.b-langs a:hover{ border-color:#6BC3F0; color:#6BC3F0; }
.b-langs a.active{ background:#fff; color:#0A6FA8; border-color:#fff; }
.b-langs a .flag{ font-size:14px; }

/* ── 검색 ── */
.b-search{ margin-top:22px; max-width:540px; position:relative; }
.b-search input{
	width:100%; padding:14px 18px 14px 48px; border-radius:12px; border:1px solid rgba(255,255,255,0.2);
	font-size:15px; background:#fff; color:var(--ink);
	box-shadow:0 10px 24px -14px rgba(0,0,0,0.45);
}
.b-search input:focus{ outline:none; border-color:#00A0E9; box-shadow:0 0 0 4px rgba(0,160,233,0.25), 0 10px 24px -14px rgba(0,0,0,0.45); }
.b-search svg{ position:absolute; left:16px; top:50%; transform:translateY(-50%); width:20px; height:20px; color:#6B7480; }

/* ── 본문 레이아웃 ── */
.bmain{ max-width:1320px; margin:-20px auto 60px; padding:0 24px; position:relative; z-index:3; }
.blay{ display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:30px; align-items:start; }
@media(max-width:960px){ .blay{ grid-template-columns:1fr; } }

/* ── 카테고리 탭 ── */
.b-cats{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:28px; padding:6px; background:#fff; border-radius:14px; box-shadow:var(--shadow-sm); }
.b-cats a{
	display:inline-flex; align-items:center; gap:6px;
	padding:9px 16px; border-radius:9px; font-size:14px; font-weight:700;
	color:var(--ink); transition:all .2s;
}
.b-cats a:hover{ background:#f1f5f9; }
.b-cats a.active{ background:var(--ink); color:#fff; box-shadow:0 6px 16px -4px rgba(27,39,51,0.35); }

/* ── 포스트 그리드 ── */
.b-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:22px; }
@media(max-width:640px){ .b-grid{ grid-template-columns:1fr; } }

.b-card{
	background:#fff; border-radius:16px; overflow:hidden; box-shadow:var(--shadow-sm);
	transition:transform .25s, box-shadow .25s; display:flex; flex-direction:column;
	color:inherit;
}
.b-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); }
.b-card .b-cover{
	aspect-ratio:16/9; display:flex; align-items:center; justify-content:center;
	font-size:64px; overflow:hidden; background:#f1f5f9;
}
.b-cover-img{ padding:0; }
.b-cover-img img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .4s ease; }
.b-card:hover .b-cover-img img{ transform:scale(1.05); }
.b-post-hero .b-cover-img{ aspect-ratio:21/9; }
.b-post-hero .b-cover-img img{ object-fit:cover; }
.b-card .b-body{ padding:22px 22px 24px; flex:1; display:flex; flex-direction:column; }
.bcat{
	display:inline-flex; align-items:center; gap:5px;
	padding:4px 10px; border-radius:999px;
	font-size:11px; font-weight:800; letter-spacing:0.04em;
	border:1px solid; align-self:flex-start; margin-bottom:10px;
}
.b-card h3{ font-size:18px; font-weight:800; color:var(--ink); margin:0 0 10px; line-height:1.4; letter-spacing:-0.01em; }
.b-card .b-exc{ font-size:14px; color:var(--mute); line-height:1.6; margin:0 0 14px; flex:1; }
.b-card .b-meta{ display:flex; align-items:center; gap:10px; font-size:12px; color:var(--mute); padding-top:14px; border-top:1px solid var(--line); }
.b-card .b-meta .auto-tag{ background:#fef3c7; color:#92400e; padding:2px 7px; border-radius:5px; font-weight:700; font-size:10px; }

/* ── 사이드바 ── */
.b-side{ display:flex; flex-direction:column; gap:18px; }
.b-side .sbox{ background:#fff; border-radius:14px; padding:22px; box-shadow:var(--shadow-sm); }
.b-side .sbox h4{ margin:0 0 14px; font-size:15px; font-weight:900; color:var(--ink); letter-spacing:-0.01em; }
.b-side .b-cat-list{ list-style:none; padding:0; margin:0; }
.b-side .b-cat-list li{ margin-bottom:6px; }
.b-side .b-cat-list a{ display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 12px; border-radius:8px; color:var(--ink); font-size:13px; font-weight:600; transition:background .2s; }
.b-side .b-cat-list a:hover{ background:#f1f5f9; }
.b-side .b-cat-list a .cnt{ background:#f1f5f9; color:var(--mute); padding:1px 8px; border-radius:999px; font-size:11px; font-weight:800; }
.b-side .b-recent{ list-style:none; padding:0; margin:0; }
.b-side .b-recent li{ padding:10px 0; border-bottom:1px solid var(--line); }
.b-side .b-recent li:last-child{ border-bottom:none; }
.b-side .b-recent a{ color:var(--ink); font-size:13px; font-weight:600; line-height:1.45; }
.b-side .b-recent .b-date{ font-size:11px; color:var(--mute); margin-top:3px; }

/* ── 단일 포스트 ── */
.b-post{ max-width:900px; margin:0 auto; }
.b-post .b-back{ display:inline-flex; align-items:center; gap:6px; color:var(--mute); font-size:13px; font-weight:700; margin-top:34px; margin-bottom:18px; }   /* margin-top: 본문이 머리 그림 위로 20px 올라가 있어 링크가 머리 아래 경계에 걸쳐 잘려 보이던 것 — 경계 아래 밝은 바탕으로 내림 (2026-10-19) */
.b-post .b-back:hover{ color:var(--brand); }
.b-post-hero{ background:#fff; border-radius:18px; overflow:hidden; box-shadow:var(--shadow-md); margin-bottom:30px; }
.b-post-hero .b-cover{ aspect-ratio:21/9; display:flex; align-items:center; justify-content:center; font-size:120px; }
.b-post-hero .b-cover-body{ padding:32px 36px 36px; }
.b-post-hero h1{ font-size:clamp(24px, 3vw, 36px); font-weight:900; margin:14px 0 16px; line-height:1.3; letter-spacing:-0.02em; color:var(--ink); }
.b-post-hero .b-meta-row{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; font-size:13px; color:var(--mute); }
.b-post-hero .b-meta-row .auto-tag{ background:#fef3c7; color:#92400e; padding:3px 9px; border-radius:6px; font-weight:700; font-size:11px; }
.b-post-content{ background:#fff; border-radius:18px; padding:36px 40px 44px; box-shadow:var(--shadow-sm); font-size:16px; line-height:1.85; color:#0f172a; }
.b-post-content h2{ font-size:24px; font-weight:900; margin:32px 0 14px; letter-spacing:-0.02em; }
.b-post-content h3{ font-size:19px; font-weight:800; margin:24px 0 10px; }
.b-post-content p{ margin:0 0 16px; }
.b-post-content strong{ color:var(--brand); }
.b-post-content blockquote{ background:#f1f5f9; border-left:4px solid var(--brand); padding:16px 22px; margin:18px 0; border-radius:8px; }
.b-post-content ul,.b-post-content ol{ padding-left:24px; margin:0 0 16px; }
.b-post-content li{ margin-bottom:6px; }
.b-post-content a{ text-decoration:underline; text-underline-offset:3px; }
.b-post-content code{ background:#f1f5f9; padding:2px 7px; border-radius:5px; font-size:0.92em; font-family:Consolas,monospace; }
/* 본문 표 — 칸 선 · 머리 줄 배경. 좁은 화면에서는 표만 가로로 밀어 본다(글 상자 밖으로 잘리지 않게) */
.b-post-content table{ width:100%; border-collapse:collapse; margin:0 0 18px; font-size:15px; line-height:1.6; }
.b-post-content th,.b-post-content td{ border:1px solid var(--line); padding:9px 12px; text-align:left; vertical-align:top; }
.b-post-content th{ background:#F4F7FA; font-weight:800; color:var(--ink); }
@media (max-width: 640px){
	.b-post-content table{ display:block; overflow-x:auto; font-size:14px; }
	.b-post-content th,.b-post-content td{ min-width:96px; }
}

/* ── AI 인용용 출처 카드 (글 시작 부분) ── */
.b-source-card{
	background:linear-gradient(135deg,#EAF5FC 0%,#f4f5f7 100%);
	border:1.5px solid #C6E3F3;
	border-radius:14px; padding:14px 18px; margin:0 0 24px;
}
.b-source-row{ display:flex; align-items:center; gap:14px; }
.b-source-logo{
	width:48px; height:48px; border-radius:12px;
	background:#E6F4FB; border:1px solid #C6E3F3;
	display:flex; align-items:center; justify-content:center;
	flex-shrink:0;
}
.b-source-logo img{ width:34px; height:34px; }
.b-source-info{ flex:1; }
.b-source-name{ font-size:14px; font-weight:700; color:#0f172a; margin-bottom:2px; }
.b-source-url{ font-size:12px; color:#64748b; line-height:1.5; }
.b-source-url a{ color:#0A6FA8; font-weight:700; }

/* ── 글 끝 발행처 박스 ── */
.b-publisher-box{
	margin-top:40px; padding:28px 32px;
	background:linear-gradient(135deg,#1B2733 0%,#123F5E 100%);
	color:#fff; border-radius:18px;
	box-shadow:var(--shadow-md);
}
.b-pub-head h3{ margin:0 0 18px; font-size:18px; font-weight:900; color:#8FD3F7; letter-spacing:-0.01em; }
.b-pub-grid{
	display:grid; grid-template-columns:repeat(2,1fr); gap:14px 22px;
	padding:18px 0; border-top:1px solid rgba(255,255,255,0.18);
	border-bottom:1px solid rgba(255,255,255,0.18);
}
.b-pub-block .b-pub-label{ font-size:11px; color:rgba(255,255,255,0.65); font-weight:700; letter-spacing:0.08em; margin-bottom:4px; }
.b-pub-block .b-pub-value{ font-size:14px; color:#fff; }
.b-pub-block .b-pub-value a{ color:#8FD3F7; text-decoration:underline; text-underline-offset:3px; }
.b-pub-foot{ display:flex; gap:10px; margin-top:18px; flex-wrap:wrap; }
.b-pub-cta{
	display:inline-flex; align-items:center; gap:6px;
	background:linear-gradient(135deg,#00A0E9,#8FD3F7);
	color:#1B2733; padding:11px 22px; border-radius:999px;
	font-size:13px; font-weight:900; text-decoration:none;
	transition:transform .2s, box-shadow .2s;
	box-shadow:0 8px 18px -6px rgba(0,160,233,0.5);
}
.b-pub-cta:hover{ transform:translateY(-2px); box-shadow:0 12px 24px -6px rgba(0,160,233,0.7); }
.b-pub-cta-ghost{
	background:transparent; color:#fff; border:1.5px solid rgba(255,255,255,0.4);
	box-shadow:none;
}
.b-pub-cta-ghost:hover{ background:rgba(255,255,255,0.1); border-color:#8FD3F7; color:#8FD3F7; }
.b-pub-cite{ margin-top:14px; padding-top:12px; border-top:1px solid rgba(255,255,255,0.12); }
.b-pub-cite small{ color:rgba(255,255,255,0.6); font-size:11px; }
.b-pub-cite code{
	background:rgba(0,0,0,0.3); color:#8FD3F7;
	padding:2px 8px; border-radius:5px; font-size:11px;
	word-break:break-all;
}
@media (max-width: 640px) {
	.b-pub-grid{ grid-template-columns:1fr; }
	.b-publisher-box{ padding:22px 20px; }
}

/* ── 태그 ── */
.b-tags{ display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.b-tag{
	display:inline-block; padding:3px 10px; border-radius:999px;
	background:#f1f5f9; color:#475569;
	font-size:12px; font-weight:600;
}

/* ── 리드 텍스트 (글 시작 요약) ── */
.b-lead{
	font-size:16px; color:#475569; line-height:1.7;
	margin:0 0 14px; font-weight:500;
	padding-left:14px; border-left:3px solid #8FD3F7;
}

/* 번역 자동 표시 알림 */
.b-translate-notice{
	background:#fef3c7; border:1px solid #fcd34d;
	border-radius:10px; padding:12px 18px; margin:0 0 22px;
	font-size:13px; color:#78350f; display:flex; align-items:center; gap:10px;
}
.b-translate-notice svg{ width:18px; height:18px; flex-shrink:0; color:#92400e; }

/* RTL (아랍어) */
[dir="rtl"] .b-card,
[dir="rtl"] .b-post-content{ text-align:right; }
[dir="rtl"] .b-post-content blockquote{ border-left:none; border-right:4px solid var(--brand); }

/* ── 관리자 화면 ── */
.b-admin{ max-width:1100px; margin:-30px auto 60px; padding:0 24px; position:relative; z-index:3; }
.b-admin-card{ background:#fff; border-radius:16px; padding:30px 36px; box-shadow:var(--shadow-md); }
.b-admin h2{ margin:0 0 8px; font-size:24px; font-weight:900; }
.b-admin .sub{ color:var(--mute); margin:0 0 24px; }
.b-form .row{ display:grid; gap:16px; margin-bottom:18px; }
.b-form .row.row-2{ grid-template-columns:1fr 1fr; }
.b-form label{ display:block; font-size:13px; font-weight:800; color:var(--ink); margin-bottom:6px; }
.b-form input,.b-form select,.b-form textarea{
	width:100%; padding:12px 14px; border:1.5px solid var(--line); border-radius:9px;
	font-size:14px; font-family:inherit; color:var(--ink); background:#fff;
}
.b-form input:focus,.b-form select:focus,.b-form textarea:focus{ outline:none; border-color:var(--brand); box-shadow:0 0 0 3px rgba(0,160,233,0.10); }
.b-form textarea{ min-height:200px; line-height:1.7; resize:vertical; font-family:Consolas,'Malgun Gothic',monospace; }

/* 언어 탭 */
.b-lang-tabs{ display:flex; gap:5px; flex-wrap:wrap; padding:6px; background:#f1f5f9; border-radius:10px; margin-bottom:18px; }
.b-lang-tabs button{
	border:none; background:transparent; padding:9px 14px; border-radius:7px;
	font-size:13px; font-weight:700; color:var(--mute); cursor:pointer; transition:all .2s;
	display:inline-flex; align-items:center; gap:5px;
}
.b-lang-tabs button:hover{ background:#fff; color:var(--ink); }
.b-lang-tabs button.active{ background:#fff; color:var(--ink); box-shadow:var(--shadow-sm); }
.b-lang-tabs button .has-content{ display:inline-block; width:6px; height:6px; border-radius:50%; background:#10b981; margin-left:4px; }
.b-lang-tabs button .auto-mark{ display:inline-block; padding:1px 6px; border-radius:4px; background:#fef3c7; color:#92400e; font-size:9px; font-weight:900; margin-left:3px; }
.b-lang-pane{ display:none; }
.b-lang-pane.active{ display:block; }

.b-btn{ display:inline-flex; align-items:center; gap:8px; padding:12px 24px; border-radius:9px; font-size:14px; font-weight:800; border:none; cursor:pointer; text-decoration:none; transition:all .2s; }
.b-btn-primary{ background:linear-gradient(135deg,#00A0E9,#8FD3F7); color:#1B2733; box-shadow:0 8px 20px -6px rgba(0,160,233,0.45); }
.b-btn-primary:hover{ transform:translateY(-2px); box-shadow:0 12px 28px -6px rgba(0,160,233,0.55); }
.b-btn-ghost{ background:transparent; color:var(--mute); border:1.5px solid var(--line); }
.b-btn-ghost:hover{ border-color:var(--mute); color:var(--ink); }
.b-btn-warn{ background:#fef3c7; color:#92400e; border:1.5px solid #fcd34d; }
.b-btn-warn:hover{ background:#fde68a; }
.b-btn-danger{ background:#fee2e2; color:#991b1b; border:1.5px solid #fecaca; }
.b-btn-danger:hover{ background:#fecaca; }

.b-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:24px; padding-top:24px; border-top:1px solid var(--line); }

/* 빈 상태 */
.b-empty{ text-align:center; padding:80px 20px; color:var(--mute); }
.b-empty .icon{ font-size:54px; margin-bottom:14px; opacity:.4; }
.b-empty h3{ font-size:20px; font-weight:800; color:var(--ink); margin:0 0 8px; }

/* 로그인 화면 */
.b-login{ max-width:420px; margin:80px auto; padding:36px 32px; background:#fff; border-radius:16px; box-shadow:var(--shadow-md); }
.b-login h2{ margin:0 0 20px; font-size:22px; font-weight:900; }
.b-login .err{ background:#fee2e2; color:#991b1b; padding:10px 14px; border-radius:8px; font-size:13px; margin-bottom:14px; }

/* 푸터 */
.bfoot{ background:#1B2733; color:rgba(255,255,255,0.7); text-align:center; padding:30px 20px; font-size:13px; margin-top:50px; }
.bfoot a{ color:#8FD3F7; }

/* 자동 번역 진행 표시 */
.b-translating{ display:none; align-items:center; gap:10px; padding:14px 18px; background:#E6F4FB; color:#0A6FA8; border-radius:10px; font-size:13px; font-weight:700; margin-bottom:14px; }
.b-translating.show{ display:flex; }
.b-translating .spin{ width:16px; height:16px; border:2px solid #0A6FA8; border-right-color:transparent; border-radius:50%; animation:bspin 0.7s linear infinite; }
@keyframes bspin{ to{transform:rotate(360deg);} }

/* 관리자 로그인 (하단, 한 줄, 은은하게) */
.bfoot .sep{ color:rgba(255,255,255,0.28); margin:0 6px; }
.bfoot a.bfoot-admin-link{ color:rgba(255,255,255,0.5); font-weight:600; }
.bfoot a.bfoot-admin-link:hover{ color:#8FD3F7; }

/* 푸터 회사 정보 줄 (2026-10-13) */
.bfoot-info{ margin-top:8px; font-size:12px; color:rgba(255,255,255,0.45); }
.bfoot-info a{ color:rgba(255,255,255,0.6); }

/* 발행처 박스(어두운 바탕) 안의 다른 이름 — 기본 회색(--mute)은 어두운 바탕에서 잘 안 보여 밝게 */
.b-publisher-box .b-pub-alt{ color:rgba(255,255,255,0.68); }
