/* ========================================
   아해뜰 숲 어린이집 블로그 — 다국어 지원 스타일
   크레용 스케치북 톤 (공개 사이트·관리자와 통일)
   ======================================== */

/* 제목용 표시 글꼴 (학교안심 시간표 — 공개 사이트와 동일) */
@font-face{
	font-family:"Hakgyoansim Siganpyo";
	src:url("/assets/fonts/hakgyoansim-siganpyo-r.otf") format("opentype");
	font-weight:400 800; font-style:normal; font-display:swap;
}

:root{
	--bg: #FFFCEE;          /* 따뜻한 파스텔 크림 (공개 사이트 톤) */
	--surface: #fffdf7;
	--ink: #2B2118;
	--mute: #6B5744;
	--line: #E7DFC8;
	--brand: #55701F;
	--brand-2: #6E8F2A;
	--gold: #F4C430;
	--forest-100: #EDF3E0;
	/* 손그림 — 진한 테두리 + 종이에서 살짝 뜬 하드 그림자 */
	--sketch-ink: #40403A;
	--sketch-bd: 2.5px;
	--shadow-sm: 3px 4px 0 rgba(64,64,58,0.10);
	--shadow-md: 4px 6px 0 rgba(64,64,58,0.13);
	--shadow-lg: 6px 8px 0 rgba(64,64,58,0.16);
	--font-display: "Hakgyoansim Siganpyo", 'Pretendard', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}
h1, h2, h3, h4, .bhead-brand, .b-btn { font-family: var(--font-display); }
*,*::before,*::after{ box-sizing:border-box; }
html,body{ margin:0; padding:0; background:var(--bg); color:var(--ink); font-family:'Pretendard','Noto Sans KR','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(135deg,#EEF7E4 0%,#DDEECB 55%,#CDE6B6 100%);
	color:#2F4A1F; padding:50px 24px 60px; position:relative; overflow:hidden;
}
.bhead::before{
	content:""; position:absolute; inset:0;
	background:radial-gradient(800px 400px at 20% 10%, rgba(255,250,224,0.55), transparent 60%);
	pointer-events:none;
	z-index:1;
}

/* ── 애니메이션 SVG 배경 (깊은 우주 + 지구·위성) ── */
.bhead-svg{
	position:absolute; inset:0;
	width:100%; height:100%;
	pointer-events:none;
	z-index:1;
}
.bhead .wrap{ position:relative; z-index:2; }

/* ── 해 — 아주 천천히 숨쉬듯 ──
   좁은 화면에서는 slice 로 좌우가 잘려 해(x=1300)가 화면 밖으로 나간다.
   숨쉬기 애니메이션이 transform 을 쓰므로, 이동량은 변수로 넘겨 키프레임 안에서 합친다.
   (정적 transform 을 따로 주면 애니메이션에 덮어써진다) */
.fs-sun{ --sun-x:0px; transform-origin:1300px 150px; transform-box:view-box;
	animation: fs-sun-breathe 14s ease-in-out infinite; }
@keyframes fs-sun-breathe{
	0%,100%{ opacity:.9;  transform:translateX(var(--sun-x)) scale(1); }
	50%    { opacity:1;   transform:translateX(var(--sun-x)) scale(1.05); }
}

/* ── 구름 — 바람에 아주 느리게 흘러간다 ── */
.fs-cloud{ transform-box:view-box; }
.fs-cl-1{ animation: fs-drift 90s linear infinite; }
.fs-cl-2{ animation: fs-drift 120s linear infinite -30s; }
.fs-cl-3{ animation: fs-drift 105s linear infinite -60s; }
@keyframes fs-drift{
	0%  { transform:translateX(-260px); }
	100%{ transform:translateX(1700px); }
}

/* ── 새 — 날갯짓하며 지나간다 ── */
.fs-bird{ transform-box:view-box; }
.fs-bd-1{ animation: fs-fly 46s linear infinite,        fs-flap 1.1s ease-in-out infinite; }
.fs-bd-2{ animation: fs-fly 58s linear infinite -14s,   fs-flap 1.3s ease-in-out infinite; }
.fs-bd-3{ animation: fs-fly 52s linear infinite -28s,   fs-flap 0.9s ease-in-out infinite; }
@keyframes fs-fly{
	0%  { transform:translate(-160px, 20px); }
	100%{ transform:translate(1640px, -40px); }
}
@keyframes fs-flap{
	0%,100%{ opacity:.45; }
	50%    { opacity:.2; }
}

/* ── 나뭇잎 — 떨어지며 좌우로 흔들린다 ──
   translate 는 SVG transform 속성이 이미 위치를 잡아두었으므로
   여기서는 그 위에 얹히는 상대 이동만 준다. */
.fs-leaf{ transform-box:fill-box; transform-origin:center; }
.fs-lf-1{ animation: fs-fall 17s ease-in-out infinite; }
.fs-lf-2{ animation: fs-fall 21s ease-in-out infinite -4s; }
.fs-lf-3{ animation: fs-fall 19s ease-in-out infinite -9s; }
.fs-lf-4{ animation: fs-fall 23s ease-in-out infinite -13s; }
.fs-lf-5{ animation: fs-fall 18s ease-in-out infinite -6s; }
.fs-lf-6{ animation: fs-fall 25s ease-in-out infinite -17s; }
@keyframes fs-fall{
	0%  { opacity:0;   translate:0 -30px;  rotate:0deg; }
	10% { opacity:.75; }
	50% { translate:36px 150px; rotate:180deg; }
	90% { opacity:.6; }
	100%{ opacity:0;   translate:-12px 320px; rotate:360deg; }
}

/* ── 햇살 입자 — 부드럽게 깜빡 ── */
.fs-mote{ transform-box:fill-box; transform-origin:center; }
.fs-mt-1{ animation: fs-shimmer 5s ease-in-out infinite; }
.fs-mt-2{ animation: fs-shimmer 6.5s ease-in-out infinite -1s; }
.fs-mt-3{ animation: fs-shimmer 5.5s ease-in-out infinite -2s; }
.fs-mt-4{ animation: fs-shimmer 7s ease-in-out infinite -3s; }
.fs-mt-5{ animation: fs-shimmer 6s ease-in-out infinite -1.5s; }
.fs-mt-6{ animation: fs-shimmer 5.2s ease-in-out infinite -2.5s; }
@keyframes fs-shimmer{
	0%,100%{ opacity:.25; transform:scale(.8); }
	50%    { opacity:.85; transform:scale(1.25); }
}

/* ── 앞쪽 나무 — 바람에 아주 살짝 흔들린다 ── */
.fs-tr-6, .fs-tr-7, .fs-tr-8{ transform-box:fill-box; transform-origin:bottom center; }
.fs-tr-6{ animation: fs-sway 9s ease-in-out infinite; }
.fs-tr-7{ animation: fs-sway 11s ease-in-out infinite -3s; }
.fs-tr-8{ animation: fs-sway 10s ease-in-out infinite -6s; }
@keyframes fs-sway{
	0%,100%{ transform:rotate(-0.8deg); }
	50%    { transform:rotate(0.8deg); }
}

/* 모바일 — 요소를 덜어내 가볍게 */
@media (max-width: 900px){
	.fs-birds, .fs-motes{ display:none; }
}
@media (max-width: 900px){
	.fs-sun{ --sun-x:-300px; }             /* 잘리는 만큼 해를 안쪽으로 */
}
@media (max-width: 640px){
	.fs-cloud, .fs-leaf{ display:none; }   /* 작은 화면에선 언덕·해만 남긴다 */
	.fs-sun{ --sun-x:-500px; }
}

/* 모션 감소 옵션 — 움직임에 민감한 사용자를 위해 전부 정지 */
@media (prefers-reduced-motion: reduce){
	.fs-sun, .fs-cloud, .fs-bird, .fs-leaf, .fs-mote,
	.fs-tr-6, .fs-tr-7, .fs-tr-8 { animation: none !important; }
	.fs-leaf{ opacity:.6 !important; }
}
.bhead .wrap{ max-width:1240px; margin:0 auto; position:relative; z-index:2; }
.bhead-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:30px; flex-wrap:wrap; gap:14px; }
.bhead-brand{ display:flex; align-items:center; gap:12px; color:#2F4A1F; font-weight:900; font-size:18px; letter-spacing:-0.01em; }
.bhead-brand .b-logo{ width:42px; height:42px; border-radius:10px; background:rgba(255,255,255,0.15); display:flex; align-items:center; justify-content:center; font-size:20px; }
.bhead-nav{ display:flex; gap:18px; }
/* 해가 이 링크들 뒤에 깔린다 — 짙은 녹색이라야 노란 해 위에서도 읽힌다 */
.bhead-nav a{ color:#2F4A1F; font-size:14px; font-weight:700; transition:color .2s; }
.bhead-nav a:hover{ color:#55701F; text-decoration:underline; }

.bhead h1{ font-size:clamp(28px, 4vw, 44px); font-weight:900; margin:0 0 12px; letter-spacing:-0.02em; line-height:1.2; }
.bhead h1 .accent{ background:linear-gradient(135deg,#55701F,#6E8F2A); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.bhead p.sub{ font-size:clamp(14px, 1.4vw, 17px); color:#4A3B2E; margin:0; max-width:700px; }

/* ── 언어 스위처 ── */
.b-langs{ display:flex; gap:6px; flex-wrap:wrap; }
.b-langs a{
	display:inline-flex; align-items:center; gap:5px;
	padding:6px 12px; border-radius:999px;
	background:rgba(255,255,255,0.72); border:1px solid rgba(85,112,31,0.22);
	color:#4A3B2E; font-size:13px; font-weight:700; transition:all .2s;
}
.b-langs a:hover{ background:#fff; border-color:#6E8F2A; color:#2F4A1F; }
.b-langs a.active{ background:#55701F; color:#fff; border-color:#55701F; }
.b-langs a .flag{ font-size:14px; }

/* ── 검색 ── */
.b-search{ margin-top:24px; max-width:540px; position:relative; }
.b-search input{
	width:100%; padding:14px 18px 14px 48px; border-radius:14px;
	border:var(--sketch-bd) solid var(--sketch-ink);
	font-size:15px; background:#fff; color:#2B2118;
	box-shadow:var(--shadow-sm);
}
.b-search input:focus{ outline:none; border-color:var(--brand); box-shadow:0 0 0 3px rgba(110,143,42,0.30), var(--shadow-sm); }
.b-search svg{ position:absolute; left:16px; top:50%; transform:translateY(-50%); width:20px; height:20px; color:#6B5744; }

/* ── 본문 레이아웃 ── */
.bmain{ max-width:1240px; 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:8px; background:var(--surface); border:var(--sketch-bd) solid var(--sketch-ink); border-radius:16px; box-shadow:var(--shadow-sm); }
.b-cats a{
	display:inline-flex; align-items:center; gap:6px;
	padding:9px 16px; border-radius:999px; font-size:14px; font-weight:700;
	color:var(--ink); border:2px solid transparent; transition:all .15s;
}
.b-cats a:hover{ background:var(--forest-100); }
.b-cats a.active{ background:var(--brand); color:#fff; border-color:var(--sketch-ink); }

/* ── 포스트 그리드 ── */
.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:var(--surface); border:var(--sketch-bd) solid var(--sketch-ink);
	border-radius:18px; overflow:hidden; box-shadow:var(--shadow-sm);
	transition:transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s; display:flex; flex-direction:column;
	color:inherit;
}
.b-card:hover{ transform:translate(-2px,-4px); box-shadow:var(--shadow-lg); }
.b-card .b-cover{
	aspect-ratio:16/9; display:flex; align-items:center; justify-content:center;
	font-size:64px; overflow:hidden; background:var(--forest-100);
	border-bottom:var(--sketch-bd) solid var(--sketch-ink);
}
.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:#FFFAE0; 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:var(--surface); border:var(--sketch-bd) solid var(--sketch-ink); border-radius:16px; 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:#F0F7EA; }
.b-side .b-cat-list a .cnt{ background:#F0F7EA; 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-bottom:18px; }
.b-post .b-back:hover{ color:var(--brand); }
.b-post-hero{ background:var(--surface); border:var(--sketch-bd) solid var(--sketch-ink); border-radius:20px; 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:#FFFAE0; color:#92400e; padding:3px 9px; border-radius:6px; font-weight:700; font-size:11px; }
.b-post-content{ background:var(--surface); border:var(--sketch-bd) solid var(--sketch-ink); border-radius:20px; padding:36px 40px 44px; box-shadow:var(--shadow-sm); font-size:16px; line-height:1.85; color:#2B2118; }
.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:#F0F7EA; 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:#F0F7EA; padding:2px 7px; border-radius:5px; font-size:0.92em; font-family:Consolas,monospace; }

/* ── AI 인용용 출처 카드 (글 시작 부분) ── */
.b-source-card{
	background:linear-gradient(135deg,#F0F7EA 0%,#FFFAE0 100%);
	border:1.5px solid #fcd34d;
	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:linear-gradient(135deg,#2F4A1F,#55701F); color:#fff;
	display:flex; align-items:center; justify-content:center;
	font-weight:900; font-size:14px; letter-spacing:0.05em;
	flex-shrink:0;
}
.b-source-info{ flex:1; }
.b-source-name{ font-size:14px; font-weight:700; color:#2B2118; margin-bottom:2px; }
.b-source-url{ font-size:12px; color:#6B5744; line-height:1.5; }
.b-source-url a{ color:#55701F; font-weight:700; }

/* ── 글 끝 발행처 박스 ── */
.b-publisher-box{
	margin-top:40px; padding:28px 32px;
	background:linear-gradient(135deg,#2F4A1F 0%,#55701F 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:#F4C430; 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:#F4C430; 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,#F4C430,#E0A91F);
	color:#2F4A1F; 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(244,196,48,0.5);
}
.b-pub-cta:hover{ transform:translateY(-2px); box-shadow:0 12px 24px -6px rgba(244,196,48,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:#F4C430; color:#F4C430; }
.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:#F4C430;
	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:#F0F7EA; 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 #F4C430;
}

/* 번역 자동 표시 알림 */
.b-translate-notice{
	background:#FFFAE0; 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:var(--surface); border:var(--sketch-bd) solid var(--sketch-ink); border-radius:18px; 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:2px solid var(--line); border-radius:11px;
	font-size:15px; 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(110,143,42,0.15); }
.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:#F0F7EA; 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:#FFFAE0; 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:11px 22px; border-radius:12px; font-size:15px; font-weight:700; border:var(--sketch-bd) solid var(--sketch-ink); background:var(--surface); color:var(--ink); cursor:pointer; text-decoration:none; box-shadow:2px 3px 0 rgba(64,64,58,0.14); transition:transform .12s, box-shadow .12s, background .12s; }
.b-btn:hover{ transform:translate(-1px,-1px); box-shadow:3px 4px 0 rgba(64,64,58,0.16); }
.b-btn:active{ transform:translate(1px,1px); box-shadow:1px 1px 0 rgba(64,64,58,0.14); }
.b-btn-primary{ background:var(--brand); color:#fff; }
.b-btn-primary:hover{ background:var(--brand-2); color:#fff; }
.b-btn-ghost{ background:transparent; color:var(--mute); border-color:var(--line); box-shadow:none; }
.b-btn-ghost:hover{ border-color:var(--mute); color:var(--ink); box-shadow:none; }
.b-btn-warn{ background:#FFFAE0; color:#92400e; }
.b-btn-warn:hover{ background:#EEE59F; }
.b-btn-danger{ background:#fde8e6; color:#991b1b; }
.b-btn-danger:hover{ background:#fbd5d1; }

.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:var(--surface); border:var(--sketch-bd) solid var(--sketch-ink); border-radius:18px; 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:#2F4A1F; color:rgba(255,255,255,0.7); text-align:center; padding:30px 20px; font-size:13px; margin-top:50px; }
.bfoot a{ color:#F4C430; }

/* 관리자 링크 — 방문자에게는 눈에 띄지 않되, 원·교사는 찾을 수 있게 */
.bfoot-admin{ margin-top:12px; font-size:12.5px; }
.bfoot-admin a{
	color:rgba(255,255,255,0.55); font-weight:600;
	padding:6px 10px; border-radius:999px;
	display:inline-block; min-height:32px; line-height:20px;
	transition:color .2s, background .2s;
}
.bfoot-admin a:hover{ color:#F4C430; background:rgba(255,255,255,0.08); }
.bfoot-admin .sep{ color:rgba(255,255,255,0.25); }

/* 자동 번역 진행 표시 */
.b-translating{ display:none; align-items:center; gap:10px; padding:14px 18px; background:#EEE59F; color:#55701F; 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 #55701F; border-right-color:transparent; border-radius:50%; animation:bspin 0.7s linear infinite; }
@keyframes bspin{ to{transform:rotate(360deg);} }
