/* AIBLOCK 테마 — easyclass-design 토큰 (파스텔 카드 · 오렌지 강조 1개 · 폭 1240px) */
:root {
  --c-bg: #EDEDF5; --c-card: #FFFFFF; --c-panel: #F0E7FB; --c-line: #E3E4EE;
  --c-text: #1C1C28; --c-muted: #9AA0AC; --c-dark: #1C1C28;
  --c-accent: #F97316; --c-accent-soft: #FEEBDC; --c-ok: #2FC272; --c-err: #F4506B;
  --pastel-blue: #D9E8F5; --pastel-purple: #E4D6F7; --pastel-pink: #F9D2DA; --pastel-mint: #D8F3E3; --pastel-yellow: #FCF0D4;
  --radius: 22px; --shadow: 0 8px 24px rgba(28, 28, 40, .06);
  --w: 1240px;
  --en-font: 'Pretendard Variable', 'Pretendard', -apple-system, 'Malgun Gothic', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.ab-site { margin: 0; font: 15px/1.6 var(--en-font); color: var(--c-text); background: var(--c-bg); word-break: keep-all; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
code { font: 13px Consolas, monospace; background: #e6e7f0; padding: 1px 6px; border-radius: 6px; }
.ab-wrap { width: min(var(--w), calc(100% - 48px)); margin: 0 auto; }

/* 머리글 */
.ab-head { background: var(--c-head-bg, #fff); color: var(--c-head-text, inherit); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(28, 28, 40, .06); }
.ab-util { border-bottom: 1px solid #f0f0f5; font-size: 12px; font-weight: 500; }
.ab-util-in { display: flex; justify-content: flex-end; align-items: center; gap: 18px; height: 34px; }
.ab-util a { text-decoration: none; color: var(--c-head-text, #4b5064); }
.ab-util a:hover { color: var(--c-accent); }
.ab-util form { margin: 0; }
.ab-util button { background: none; border: 0; padding: 0; font: inherit; color: #9AA0AC; cursor: pointer; }
.ab-bar { display: flex; align-items: center; gap: 48px; height: var(--hdr-h, 72px); }
.ab-logo { display: flex; align-items: center; font-weight: 800; font-size: calc(var(--hdr-logo-h, 40px) * .55); text-decoration: none; letter-spacing: -.5px; flex: none; }
.ab-logo img { height: var(--hdr-logo-h, 40px); width: auto; display: block; }
.ab-nav { flex: 1; }
.ab-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--hdr-menu-gap, 40px); }
.ab-nav > ul > li { position: relative; }
.ab-nav > ul > li > a { display: block; padding: 24px 0; font-size: var(--hdr-menu-size, 17px); font-weight: var(--hdr-menu-weight, 700); color: var(--hdr-menu-color, inherit); text-decoration: none; position: relative; }
.ab-nav > ul > li > a.on, .ab-nav > ul > li > a:hover { color: var(--hdr-menu-hover, var(--c-accent)); }
.ab-nav > ul > li > a.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: 14px; height: 3px; border-radius: 3px; background: var(--hdr-menu-hover, var(--c-accent)); }
.ab-sub { display: none; position: absolute; top: 100%; left: -16px; min-width: 210px; color: var(--c-text); background: #fff; border-radius: 16px; box-shadow: 0 16px 40px rgba(28, 28, 40, .12); list-style: none; margin: 0; padding: 10px; }
.has-sub:hover > .ab-sub, .has-sub:focus-within > .ab-sub { display: block; }
.ab-sub a { display: block; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 600; }
.ab-sub a:hover { background: var(--c-accent-soft); color: var(--c-accent); }
.ab-burger { display: none; margin-left: auto; font-size: 24px; cursor: pointer; }
/* 개발자 페이지 아이콘·버튼 묶음(Design::themeActions) 자리: 로고 · 메뉴 · 묶음 · (모바일)메뉴 단추 */
.ab-bar > .ab-nav { order: 1; }
.ab-bar > .enh--inline { order: 2; }
.ab-bar > .ab-burger { order: 3; }
.ab-bar:has(> .enh--inline) > .ab-burger { margin-left: 6px; }
.ab-acct { display: contents; }
@media (min-width: 961px) { .hdr-login .ab-acct { display: none; } }
@media (max-width: 960px) { .ab-bar > .enh--inline { margin-left: auto; } }
.ab-main { min-height: 60vh; }

/* 바닥글 */
.ab-foot { background: var(--c-foot-bg, #1C1C28); color: var(--c-foot-text, #9AA0AC); margin-top: 72px; padding: 44px 0 40px; font-size: 13px; }
.ab-foot-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.ab-foot-logo { color: #fff; font-size: 18px; }
.ab-foot-menu { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.ab-foot-menu a { text-decoration: none; color: var(--ftr-link, #c9cbd6); }
.ab-foot-info { margin: 22px 0 0; line-height: 1.8; }
.ab-foot-copy { margin: 14px 0 0; color: #6b7080; }

/* ── 공통 UI 키트 (플러그인 화면) ───────────────────────── */
.en-page { width: min(var(--w), calc(100% - 48px)); margin: 0 auto; padding: 32px 0 64px; display: flex; flex-direction: column; gap: 24px; }
.en-page > * { min-width: 0; }
.en-narrow { max-width: 460px; }
.en-full { width: 100%; }
.en-card { background: var(--c-card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.en-h1 { font-size: 28px; line-height: 1.35; margin: 0; letter-spacing: -.6px; font-weight: 800; }
.en-h2 { font-size: 19px; margin: 0 0 14px; font-weight: 700; }
.en-lead { font-size: 18px; margin: 6px 0 0; }
.en-muted { color: var(--c-muted); } .en-small { font-size: 13px; }
.en-meta { font-size: 12px; font-weight: 500; color: var(--c-muted); }
.en-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(var(--min, 260px), 1fr)); }
.en-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.en-hero { padding: 48px 44px; }
.en-empty { text-align: center; padding: 56px 20px; color: var(--c-muted); }
.en-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 13px 26px; border-radius: 9999px; border: 1px solid transparent; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .1s, filter .15s; }
.en-btn:hover { filter: brightness(1.05); } .en-btn:active { transform: translateY(1px); }
.en-btn-primary { background: var(--c-accent); color: #fff; box-shadow: 0 8px 18px rgba(249, 115, 22, .35); }
.en-btn-dark { background: var(--c-dark); color: #fff; }
.en-btn-ghost { background: #fff; border-color: var(--c-line); color: var(--c-text); }
.en-btn-block { width: 100%; } .en-btn-sm { padding: 8px 16px; font-size: 13px; }
.en-form { display: flex; flex-direction: column; gap: 16px; }
.en-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.en-field input, .en-field select, .en-field textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--c-line); border-radius: 14px; font: inherit; background: #fff; color: var(--c-text); }
.en-field input:focus, .en-field select:focus, .en-field textarea:focus { outline: 3px solid var(--c-accent-soft); border-color: var(--c-accent); }
.en-field input:disabled { background: #f5f5fa; color: var(--c-muted); }
.en-help { font-size: 12px; color: var(--c-muted); margin-top: 5px; }
.en-error { font-size: 13px; color: var(--c-err); margin-top: 5px; }
.en-check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.en-auth { padding: 40px 36px; display: flex; flex-direction: column; gap: 14px; }
.en-auth-foot { text-align: center; color: var(--c-muted); margin: 6px 0 0; }
.en-auth-foot a { color: var(--c-accent); font-weight: 700; text-decoration: none; }
.en-alert { border-radius: 14px; padding: 13px 18px; font-size: 14px; border: 0; }
.en-alert-success { background: var(--pastel-mint); color: #11632f; }
.en-alert-error { background: var(--pastel-pink); color: #8f1b1b; }
.en-alert-info { background: var(--pastel-blue); color: #1e3a8a; }
.en-badge { display: inline-block; padding: 4px 11px; border-radius: 9999px; background: var(--c-accent-soft); color: var(--c-accent); font-size: 12px; font-weight: 700; }
.en-badge.gray { background: #eeeef5; color: #5b6172; } .en-badge.dark { background: var(--c-dark); color: #fff; }
.en-table { width: 100%; border-collapse: collapse; }
.en-table th, .en-table td { padding: 14px 12px; border-bottom: 1px solid #f0f0f5; text-align: left; }
.en-table th { font-size: 12px; color: var(--c-muted); font-weight: 600; }
.en-table a { text-decoration: none; font-weight: 600; } .en-table a:hover { color: var(--c-accent); }
.en-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.en-tabs a { padding: 9px 18px; border-radius: 9999px; background: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
.en-tabs a.on { background: var(--c-dark); color: #fff; }
.en-pagination { display: flex; gap: 6px; justify-content: center; padding: 18px 0; }
.en-pagination a, .en-pagination strong, .en-pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; text-decoration: none; padding: 0 10px; font-weight: 600; }
.en-pagination a { background: #fff; } .en-pagination strong { background: var(--c-dark); color: #fff; }
.en-list { list-style: none; margin: 0; padding: 0; }
.en-list li { padding: 11px 0; border-bottom: 1px solid #f0f0f5; display: flex; justify-content: space-between; gap: 12px; }
.en-list a { text-decoration: none; font-weight: 600; }
.en-prose { font-size: 16px; line-height: 1.85; }
.en-prose h1, .en-prose h2, .en-prose h3 { line-height: 1.4; margin: 1.6em 0 .6em; }
.en-prose p { margin: 0 0 1em; }
.en-prose img { border-radius: 14px; }
.en-prose a { color: var(--c-accent); }
.en-prose a.en-btn { text-decoration: none; } .en-prose a.en-btn-primary, .en-prose a.en-btn-dark { color: #fff; } .en-prose a.en-btn-ghost { color: var(--c-text); }
.en-prose table { border-collapse: collapse; width: 100%; }
.en-prose td, .en-prose th { border: 1px solid var(--c-line); padding: 8px 10px; }

/* 이관된 Elementor 페이지가 테마 폭을 그대로 쓰도록 */
.page-full .en-full > .elementor { width: 100%; }

@media (max-width: 960px) {
  .ab-util-in { gap: 12px; overflow-x: auto; justify-content: flex-start; }
  .ab-bar { height: 60px; gap: 16px; }
  .ab-logo img { height: min(var(--hdr-logo-h, 32px), 36px); }
  .ab-burger { display: block; }
  .ab-nav { display: none; position: absolute; left: 0; right: 0; top: 94px; background: var(--c-head-bg, #fff); padding: 8px 24px 20px; box-shadow: 0 16px 30px rgba(28, 28, 40, .1); }
  #ab-nav:checked ~ .ab-nav { display: block; }
  .ab-nav > ul { flex-direction: column; gap: 0; }
  .ab-nav > ul > li > a { padding: 14px 0; border-bottom: 1px solid #f0f0f5; }
  .ab-nav > ul > li > a.on::after { display: none; }
  .ab-sub { display: block; position: static; box-shadow: none; padding: 0 0 0 12px; background: transparent; color: inherit; }
}
@media (max-width: 640px) {
  .ab-wrap, .en-page { width: calc(100% - 32px); }
  .en-page { gap: 16px; padding-top: 20px; }
  .en-card, .en-auth, .en-hero { padding: 22px; }
  .en-h1 { font-size: 24px; }
  .en-btns { flex-direction: column; } .en-btns .en-btn { width: 100%; }
}

/* ── 디자인 설정 (개발자 페이지 → EN\Design 이 body 에 붙이는 클래스) ── */
.ab-cta { flex: none; display: inline-flex; align-items: center; padding: 10px 20px; border-radius: 999px; background: var(--c-accent); color: #fff !important; font-weight: 700; font-size: 14px; text-decoration: none; }
.ab-cta:hover { filter: brightness(1.06); }
.hdr-static .ab-head { position: static; }
.hdr-no-util .ab-util { display: none; }
.ftr-columns .ab-foot-top { align-items: flex-start; }
.ftr-columns .ab-foot-menu { flex-direction: column; gap: 8px; text-align: right; }
.ftr-minimal .ab-foot { margin-top: 40px; padding: 20px 0; }
.ftr-minimal .ab-foot-top, .ftr-minimal .ab-foot-info { display: none; }
.ftr-minimal .ab-foot-copy { margin: 0; text-align: center; }
@media (max-width: 960px) {
  .hdr-no-util .ab-nav { top: 60px; }
  .ab-cta { display: none; }
  .ftr-columns .ab-foot-menu { text-align: left; }
}

/* 메뉴 배지 (관리자 › 메뉴 › 배지) */
.en-menu-badge { display: inline-flex; align-items: center; height: 17px; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--c-accent, #f97316); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .02em; line-height: 1; vertical-align: 3px; }
