/* =============================================================================
   자격증 커뮤니티 - 스타일시트
   -----------------------------------------------------------------------------
   외부 CDN(Tailwind Play 등)에 의존하지 않고, 이 프로젝트에서 실제로 쓰이는
   유틸리티 클래스만 직접 구현한 순수 CSS 파일입니다. (완전한 Tailwind 재구현이
   아니라, 템플릿에서 사용하는 클래스 목록에 맞춘 "필요한 만큼만" 구현입니다.)
   인터넷 연결이 없어도(또는 사내망에서 외부 CDN이 막혀 있어도) 디자인이 항상
   동일하게 보이도록 하기 위한 선택입니다.
   ========================================================================== */

:root {
  /* =====================================================================
     자두잇! 브랜드 디자인 토큰 (2차 개편) — 화이트 캔버스 + 자두(Plum) UI + 라임 형광펜
     "자격증 + Do it!" — 화이트 배경 위에 Plum이 핵심 인터페이스를, Lime은 형광펜처럼
     정말 중요한 곳에만 쓰입니다. 자두(과일) 모티프는 로고 등 작은 요소로만 씁니다.
     ===================================================================== */
  --color-background: #ffffff;
  --color-surface: #f9f3fa;        /* 살짝 자두빛이 도는 거의-화이트. 화이트 배경 위에서 히어로/사이드바 패널을 은은하게 구분합니다. */
  --color-primary: #6b2c6f;        /* Plum — 로고·주요 버튼·활성 메뉴·핵심 링크 */
  --color-primary-light: #ebd7ee;  /* Soft Plum — 카드 배경·보조 영역·선택된 필터·hover */
  --color-primary-dark: #4a204e;   /* Deep Plum — hover/active 심화 톤 */
  --color-secondary: #4c9a6d;      /* 브랜드 컬러는 아니고, "합격" 등 시스템 성공 신호에만 쓰는 차분한 그린 */
  --color-secondary-light: #dcf3e4;
  --color-secondary-dark: #2e6e4a;
  --color-accent: var(--color-primary);       /* 게시판 말머리 등 링크형 강조는 Plum으로 통일 */
  --color-accent-light: var(--color-primary-light);
  --color-highlight: #d9f26b;      /* Lime — 형광펜, D-Day, 핵심 숫자 전용. 일반 UI 배색에는 쓰지 않습니다. */
  --color-text: #1f1f2e;           /* 짙은 네이비/블랙 — 주요 텍스트 */
  --color-text-muted: #5b5568;
  --color-text-faint: #9c96a8;
  --color-border: #ede6ef;
  --color-alert: #b8500d;          /* 마감임박/HOT 등 예외적 경고에만 제한적으로 쓰는 오렌지 */
  --color-alert-light: #fdead3;
  --color-pink: #f8e8f3;           /* Sub: Light Pink — Soft Plum과 함께 콘텐츠 영역을 구분하는 보조 색 */

  /* ---- 기존 유틸리티 클래스(bg-brand-*, text-slate-* 등)가 새 팔레트를
     그대로 쓰도록 팔레트 값만 교체합니다. 클래스명은 그대로 두어 템플릿을
     건드리지 않고도 전체 화면에 새 브랜드 컬러가 적용되게 했습니다. ---- */
  --brand-50: var(--color-primary-light); --brand-100: #e3c7e8; --brand-200: #d5aedc;
  --brand-300: #c08fc9; --brand-400: #a868b3; --brand-500: var(--color-primary);
  /* 600/700은 흰 글자 버튼(bg-brand-600 text-white)에 쓰이므로 WCAG AA 대비(4.5:1)를 만족합니다
     (Plum #6b2c6f = 9.5:1, Deep Plum #4a204e = 13:1 — 충분히 넉넉합니다). */
  --brand-600: var(--color-primary); --brand-700: var(--color-primary-dark); --brand-800: var(--color-text); --brand-900: var(--color-text);

  --slate-50: var(--color-surface); --slate-100: #f3eef4; --slate-200: var(--color-border);
  --slate-300: #d5ccd9; --slate-400: var(--color-text-faint); --slate-500: var(--color-text-muted);
  --slate-600: #4a4456; --slate-700: #32293a; --slate-800: var(--color-text); --slate-900: var(--color-text);

  --red-50: var(--color-alert-light); --red-100: #fbd9b0; --red-500: var(--color-alert); --red-600: var(--color-alert); --red-700: #8c400a;
  --amber-50: #fff8e8; --amber-100: #ffedc2; --amber-600: #b8860b; --amber-700: #8a640a;
  --emerald-50: var(--color-secondary-light); --emerald-100: #b9e8c9; --emerald-600: var(--color-secondary); --emerald-700: var(--color-secondary-dark);

  /* 카드/버튼에 은은한 입체감을 주는 그림자 톤. 너무 진하면 딱딱해 보여서 아주 옅게 잡았습니다. */
  --shadow-color: 300deg 25% 25%;
  --shadow-xs: 0 1px 2px hsl(var(--shadow-color) / 0.07);
  --shadow-sm: 0 1px 3px hsl(var(--shadow-color) / 0.08), 0 1px 2px hsl(var(--shadow-color) / 0.05);
  --shadow-md: 0 4px 10px hsl(var(--shadow-color) / 0.09), 0 2px 4px hsl(var(--shadow-color) / 0.05);
  --shadow-lg: 0 12px 24px hsl(var(--shadow-color) / 0.11), 0 4px 8px hsl(var(--shadow-color) / 0.06);

  /* =====================================================================
     Spacing 토큰 (3차 개편 — "여유 있는 UI")
     새 컴포넌트(버튼/카드/태그/네비게이션 등)는 임의의 rem 값 대신 아래 5단계 중
     하나를 쓰는 것을 기본으로 합니다. 페이지 레이아웃처럼 더 큰 값이 필요한 곳은
     기존 유틸리티(mt-16, py-12 등)를 그대로 써도 되지만, "요소 하나의 내부 여백"
     (버튼 padding, 카드 padding, 태그 padding 등)은 이 척도를 따라주세요.
       --space-xs : 아주 작은 간격 (아이콘-텍스트 사이, 인라인 요소 사이)
       --space-sm : 요소 내부 간격 (작은 배지/태그의 padding)
       --space-md : 일반적인 요소 사이 간격 (버튼/입력창 padding, 카드 내부 gap)
       --space-lg : 섹션 내부 요소들 사이의 넉넉한 간격 (카드 padding, 아코디언 항목 간격)
       --space-xl : 섹션과 섹션 사이의 큰 간격
     ===================================================================== */
  --space-xs: 0.375rem;   /* 6px */
  --space-sm: 0.625rem;   /* 10px */
  --space-md: 1rem;       /* 16px */
  --space-lg: 1.5rem;     /* 24px */
  --space-xl: 2.5rem;     /* 40px */
  --space-2xl: 4rem;      /* 64px — 큰 섹션 사이 (mt-16 등) */

  /* ---- Radius 스케일: rounded-lg/xl/2xl/full 유틸리티가 실제로 쓰는 값과 동일하게
     이름표를 붙여둔 것입니다(값 자체는 이미 .rounded-* 유틸리티에 고정돼 있습니다). ---- */
  --radius-sm: 0.5rem;    /* rounded-lg */
  --radius-md: 0.75rem;   /* rounded-xl */
  --radius-lg: 1rem;      /* rounded-2xl */
  --radius-pill: 9999px;  /* rounded-full — 버튼/배지/네비게이션 */

  /* ---- 상태색 별칭: "경고/마감임박/HOT" 등에는 항상 이 토큰만 사용하고,
     컴포넌트마다 새 색을 만들지 않습니다. ---- */
  --color-warning: var(--color-alert);
  --color-warning-light: var(--color-alert-light);
}

/* =============================================================================
   Typography 스케일 (문서화) — 아래 유틸리티 클래스 조합을 각 역할에 고정해서 씁니다.
   새 화면을 만들 때 임의의 font-size를 쓰지 말고 이 매핑을 따르세요.
     display : text-4xl~5xl font-extrabold  (홈 히어로 카피 등, 화면당 1곳)
     h1      : text-2xl~3xl font-extrabold  (페이지 제목)
     h2      : text-lg~xl font-bold         (섹션 제목)
     h3      : text-sm~base font-bold       (카드/위젯 제목)
     body    : text-sm~base                 (본문, 게시글 내용)
     small   : text-xs font-medium/semibold (메타 정보, 배지)
     caption : text-xs, color: var(--color-text-faint) (보조 설명, 타임스탬프)
   ========================================================================== */

/* ---- 기본 리셋 ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* position:fixed 요소(모바일 메뉴 드로어 등)를 transform으로 화면 밖에 감춰두면, 일부 브라우저가
   그 요소의 (transform 적용 전) 레이아웃 위치를 문서 스크롤 영역 계산에 포함시켜 실제로는
   보이지 않는데도 가로 스크롤이 생기는 경우가 있습니다. 안전하게 body 레벨에서 가로 스크롤
   자체를 막아둡니다(세로 스크롤에는 영향 없음, 표/코드블록 등 내부 가로 스크롤은 별도 유지). */
html, body { overflow-x: hidden; max-width: 100%; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.font-sans {
  /* 5차 개편(최종 보정): "공공기관/금융권 느낌"이 나는 시스템 기본 서체 대신, 더 둥글고
     친근한 Pretendard를 사이트 전체 유일한 폰트로 통일합니다(웹폰트 로드 실패 시에만
     시스템 서체로 자연스럽게 대체됩니다). */
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
.antialiased { -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
body { line-height: 1.5; }

/* ---- 인터랙션 기본기: 버튼/링크가 눌리는 느낌이 나야 서비스가 "만듦새 있어" 보입니다 ---------- */
button, a, .transition-all, .transition-colors { transition: all .15s ease; }
button:active, a[href]:active { transform: scale(0.98); }
button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand-400); outline-offset: 2px;
}
input, select, textarea { transition: border-color .15s ease, box-shadow .15s ease; }

/* ---- 카드: rounded-2xl + border 조합을 쓰는 모든 컨테이너에 공통으로 옅은 그림자를 줍니다 ------- */
.rounded-2xl.border { box-shadow: var(--shadow-xs); }

/* ---- 색상: 배경 ------------------------------------------------------------ */
.bg-white { background-color: #fff; }
.bg-white\/90 { background-color: rgba(255,255,255,.9); }
.bg-slate-50 { background-color: var(--slate-50); }
.bg-slate-100 { background-color: var(--slate-100); }
.bg-brand-50 { background-color: var(--brand-50); }
.bg-brand-100 { background-color: var(--brand-100); }
.bg-brand-500 { background-color: var(--brand-500); }
.bg-brand-600 { background-color: var(--brand-600); }
.bg-red-50 { background-color: var(--red-50); }
.bg-red-600 { background-color: var(--red-600); }
.bg-amber-50 { background-color: var(--amber-50); }
.bg-emerald-50 { background-color: var(--emerald-50); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-from, var(--brand-600)), var(--tw-to, var(--brand-500))); }
.from-brand-600 { --tw-from: var(--brand-600); }
.to-brand-500 { --tw-to: var(--brand-500); }

.bg-brand-700 { background-color: var(--brand-700); }
.bg-amber-100 { background-color: var(--amber-100); }
.bg-emerald-100 { background-color: var(--emerald-100); }
.bg-emerald-600 { background-color: var(--emerald-600); }
.bg-slate-800 { background-color: var(--slate-800); }
.bg-slate-900 { background-color: var(--slate-900); }

.hover\:bg-brand-50:hover { background-color: var(--brand-50); }
.hover\:bg-brand-100:hover { background-color: var(--brand-100); }
.hover\:bg-brand-700:hover { background-color: var(--brand-700); }
.hover\:bg-slate-50:hover { background-color: var(--slate-50); }
.hover\:bg-slate-100:hover { background-color: var(--slate-100); }
.hover\:bg-red-700:hover { background-color: var(--red-700); }
.hover\:bg-emerald-700:hover { background-color: #036c53; }
.focus\:bg-white:focus { background-color: #fff; }

/* ---- 색상: 글자 ------------------------------------------------------------ */
.text-white { color: #fff; }
.text-slate-400 { color: var(--slate-400); }
.text-slate-500 { color: var(--slate-500); }
.text-slate-600 { color: var(--slate-600); }
.text-slate-700 { color: var(--slate-700); }
.text-slate-800 { color: var(--slate-800); }
.text-slate-900 { color: var(--slate-900); }
.text-brand-100 { color: var(--brand-100); }
.text-brand-500 { color: var(--brand-500); }
.text-brand-600 { color: var(--brand-600); }
.text-brand-700 { color: var(--brand-700); }
.text-brand-800 { color: var(--brand-800); }
.text-brand-900 { color: var(--brand-900); }
.text-red-600 { color: var(--red-600); }
.text-amber-600 { color: var(--amber-600); }
.text-amber-700 { color: var(--amber-700); }
.text-emerald-700 { color: var(--emerald-700); }
.text-emerald-600 { color: var(--emerald-600); }
.text-red-500 { color: var(--red-500); }
.text-red-700 { color: var(--red-700); }

.hover\:text-brand-600:hover { color: var(--brand-600); }
.hover\:text-brand-700:hover { color: var(--brand-700); }
.hover\:text-red-500:hover { color: var(--red-500); }
.hover\:text-red-600:hover { color: var(--red-600); }
.hover\:text-slate-800:hover { color: var(--slate-800); }
.hover\:text-slate-900:hover { color: var(--slate-900); }
.group:hover .group-hover\:text-brand-600 { color: var(--brand-600); }

/* ---- 색상: 테두리 ---------------------------------------------------------- */
.border { border: 1px solid var(--slate-200); }
.border-t { border-top: 1px solid var(--slate-100); }
.border-b { border-bottom: 1px solid var(--slate-50); }
.border-slate-50 { border-color: var(--slate-50); }
.border-slate-100 { border-color: var(--slate-100); }
.border-slate-200 { border-color: var(--slate-200); }
.border-brand-100 { border-color: var(--brand-100); }
.border-brand-200 { border-color: var(--brand-200); }
.border-red-100 { border-color: var(--red-100); }
.border-red-200 { border-color: #fecaca; }
.border-amber-100 { border-color: #fde68a; }
.border-emerald-100 { border-color: var(--emerald-100); }
.border-transparent { border-color: transparent; }
.border-red-500 { border-color: var(--red-500); }
.border-brand-500 { border-color: var(--brand-500); }
.border-slate-300 { border-color: var(--slate-300); }
.border-2 { border-width: 2px; }
.border-l-4 { border-left: 4px solid transparent; }
.border-dashed { border-style: dashed; }
.hover\:border-brand-200:hover { border-color: var(--brand-200); }
.hover\:border-brand-300:hover { border-color: var(--brand-300); }
.hover\:border-amber-200:hover { border-color: #fde68a; }
.hover\:border-red-200:hover { border-color: #fecaca; }
.hover\:border-slate-300:hover { border-color: var(--slate-300); }
.last\:border-0:last-child { border-bottom-width: 0; border-width: 0; }

/* ---- 레이아웃: display ------------------------------------------------------ */
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
[hidden] { display: none !important; }

.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.flex-wrap { flex-wrap: wrap; }
.shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-around { justify-content: space-around; }
.min-w-0 { min-width: 0; }
.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }

/* ---- 간격: gap ------------------------------------------------------------- */
.gap-0\.5 { gap: .125rem; }
.gap-1 { gap: .25rem; } .gap-1\.5 { gap: .375rem; } .gap-2 { gap: .5rem; } .gap-2\.5 { gap: .625rem; }
.gap-3 { gap: .75rem; } .gap-3\.5 { gap: .875rem; } .gap-4 { gap: 1rem; } .gap-6 { gap: 1.5rem; } .gap-7 { gap: 1.75rem; } .gap-8 { gap: 2rem; }
.gap-x-4 { column-gap: 1rem; }
.gap-y-1 { row-gap: .25rem; }
/* 댓글 입력 글씨가 둥근 테두리에 붙지 않도록 실제 안쪽 여백을 지정합니다. */
#comment-input { padding-left:16px; padding-right:16px; min-width:0; }

/* 작성자 이름 옆에 작게 뜨는 소개 카드: 글 본문 높이는 바꾸지 않습니다. */
.post-author-card{position:relative;flex-shrink:0}
.post-author-card>summary{display:flex;align-items:center;gap:7px;border-radius:8px;color:#73617a}
.post-author-card>summary:hover{color:#713678}
.post-author-card>summary:focus-visible{outline:2px solid #9a70a6;outline-offset:4px}
.post-author-popover{position:absolute;z-index:40;top:calc(100% + 8px);left:0;width:230px;max-width:calc(100vw - 64px);padding:14px;background:#fff;border:1px solid #e8ddec;border-radius:14px;box-shadow:0 6px 24px #44234a20;color:#514358;font-size:12px;line-height:1.5}
.post-author-bio{margin:0 0 10px;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.post-author-popover dl{margin:0;display:grid;gap:5px}
.post-author-popover dl>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.post-author-popover dt{color:#8b7a92;font-weight:400}
.post-author-popover dd{margin:0;font-weight:700;color:#713678}

.study-timer{padding:24px;margin-bottom:24px;border:1px solid #e6d7eb;border-radius:20px;background:linear-gradient(135deg,#fff,#faf4fc);min-width:0}
.study-timer h1{font-size:18px;font-weight:800;margin:0 0 6px;color:#55325e}
.study-timer>p{font-size:13px;color:#8b7891;margin-bottom:14px}
.study-timer label{display:block;font-size:12px;font-weight:700;margin-bottom:6px}
.study-timer input{width:100%;padding:12px 14px;background:#fff;border:1px solid #dfd1e5;border-radius:12px;font-size:14px;min-width:0}
.study-timer input:disabled{color:#65466d;background:#f4edf7;opacity:1}
.study-timer-clock{font-size:clamp(38px,7vw,56px);font-weight:800;letter-spacing:2px;font-variant-numeric:tabular-nums;text-align:center;color:#713678;padding:20px 0 6px}
.study-timer .study-timer-status{text-align:center;font-size:12px}
.study-timer-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.study-timer button{border-radius:999px;padding:11px 24px;background:#713678;color:#fff;font-size:13px;font-weight:700;border:1px solid #713678;cursor:pointer}
.study-timer button[data-timer-action="finish"],.study-timer button[data-timer-refresh]{background:transparent;color:#713678}
.study-timer button:disabled{opacity:.5;cursor:wait}
.study-timer [hidden]{display:none!important}
.study-timer .study-timer-message{color:#713678;margin:12px 0;font-size:13px}
.study-timer .study-timer-help{font-size:12px;line-height:1.7;margin:14px 0;color:#918099}
.study-timer-history{font-size:12px;border-top:1px solid #e9ddef;padding-top:12px}
.study-timer-history summary{color:#72577b;font-weight:700}
.study-timer-history ul{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:8px}
.study-timer-history li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:8px 12px;padding:10px 0;border-bottom:1px solid var(--color-border)}
.study-timer-history li .timer-studylog-link{grid-column:1/-1;justify-self:end}
.timer-studylog-link{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border:1px solid #d9c5e3;border-radius:10px;background:var(--color-surface);color:var(--color-primary);font-size:12px;font-weight:700;white-space:nowrap}
.timer-studylog-link:hover{background:var(--color-primary-light)}
.timer-studylog-source{padding:16px 18px;margin-bottom:16px;border:1px solid #d9c5e3;border-radius:14px;background:var(--color-surface);color:var(--color-primary)}
.timer-studylog-source strong{font-size:14px}.timer-studylog-source p{font-size:12px;line-height:1.8;margin-top:6px}
.study-timer-history li span{overflow-wrap:anywhere;min-width:0}
.study-timer-history li strong{white-space:nowrap;color:#713678}
@media(max-width:639px){.study-timer{padding:18px}.study-timer-actions button{padding:11px 18px}.study-timer-clock{letter-spacing:1px}}
.study-timer-page{max-width:680px;margin:0 auto;padding:0 0 32px;min-width:0}
.study-timer-page .study-timer{background:#fff;margin:0;padding:32px;border-radius:24px;box-shadow:0 8px 32px #63346e08}
.study-timer-page .study-timer-clock{font-size:clamp(42px,8vw,72px);padding-top:28px}
.study-timer-entry{margin-bottom:20px}
.study-nav-group{position:relative}
.study-nav-group>summary{display:flex;align-items:center;gap:7px;list-style:none}
.study-nav-group>summary::marker,.mobile-study-nav>summary::marker{content:""}
.study-nav-group>summary::-webkit-details-marker,.mobile-study-nav>summary::-webkit-details-marker{display:none}
.study-nav-chevron{display:block;width:14px;height:14px;flex:0 0 14px;opacity:.7;transition:transform .18s ease;transform-origin:center}
details[open]>.nav-link .study-nav-chevron,details[open]>.mobile-nav-link .study-nav-chevron{transform:rotate(180deg)}
.study-nav-dropdown{position:absolute;top:calc(100% + 10px);left:0;min-width:160px;background:#fff;padding:6px;border:1px solid #e8ddec;border-radius:14px;box-shadow:0 8px 28px #44234a1a;z-index:50}
.study-nav-dropdown a{display:block;white-space:nowrap;padding:11px 14px;font-size:13px;color:#5f4b68;border-radius:9px}
.study-nav-dropdown a:hover,.study-nav-dropdown a[aria-current]{background:#f7f0fa;color:#713678}
.mobile-study-nav>summary{cursor:pointer}
.mobile-study-nav .study-nav-chevron{margin-left:auto}
.mobile-study-submenu{display:grid;gap:4px;margin:0 14px 8px 49px;padding:4px 0 4px 12px;border-left:2px solid #e8ddec}
.mobile-study-submenu a{display:block;padding:10px 12px;border-radius:9px;font-size:13px;color:#796280}
.mobile-study-submenu a:hover,.mobile-study-submenu a[aria-current]{background:#f7f0fa;color:#713678;font-weight:700}
@media(max-width:639px){.study-timer-page{margin:0 auto;padding:0 0 24px}.study-timer-page .study-timer{padding:22px 18px}}
.timer-subject-picker{position:relative}
.timer-subject-field{display:flex;align-items:center;border:1px solid #dfd1e5;border-radius:12px;background:#fff;padding-left:12px;gap:6px}
.timer-subject-field>span{font-size:22px;color:#94769f}
.timer-subject-field:focus-within{border-color:#9c6eac;box-shadow:0 0 0 3px #f1e5f7}
.study-timer .timer-subject-field input{border:0;background:transparent;padding:13px 0;outline:0;flex:1;width:0}
.study-timer .timer-subject-field button{background:transparent;color:#86628e;border:0;border-radius:10px;padding:12px 14px;flex-shrink:0}
.timer-subject-results{position:absolute;top:calc(100% + 7px);left:0;right:0;z-index:25;background:#fff;border:1px solid #e4d5ea;border-radius:14px;box-shadow:0 10px 30px #4e2c5d1a;padding:10px;max-height:330px;overflow:auto}
.timer-subject-results>p{font-size:12px;color:#88728f;padding:3px 6px 8px;margin:0;line-height:1.6}
.timer-subject-results>p>span{float:right}
.timer-subject-results [role=listbox]{display:grid;gap:3px}
.study-timer .timer-subject-results button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:12px 10px;border:0;border-radius:9px;background:#fff;color:#5c4665;text-align:left;font-weight:600;white-space:normal}
.study-timer .timer-subject-results button:hover,.study-timer .timer-subject-results button:focus,.study-timer .timer-subject-results button[aria-selected=true]{background:#f6edf9;outline:none}
.timer-subject-results button span{overflow-wrap:anywhere}
.timer-subject-results small{font-size:10px;font-weight:400;color:#a18aa7;white-space:nowrap}
.timer-subject-results>a{display:block;border-top:1px solid #f0e8f3;margin-top:6px;padding:10px 6px 2px;font-size:12px;color:#713678}
.study-timer .timer-subject-hint{font-size:11px;color:#9a84a1;margin:7px 0 0;line-height:1.5}
.timer-overview{margin:22px 0;padding:20px 0;border-top:1px solid #eee5f1;border-bottom:1px solid #eee5f1}
.timer-overview h2{font-size:14px;font-weight:700;margin:0 0 14px;color:#5f426a}
.timer-overview-totals{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:18px}
.timer-overview-totals>div{background:#f8f3fa;border-radius:12px;padding:12px 16px}
.timer-overview-totals span{display:block;font-size:11px;color:#9a83a2;margin-bottom:4px}
.timer-overview-totals strong{font-size:21px;color:#713678;font-weight:800;line-height:1.4}
.timer-week-bars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}
.timer-week-day{text-align:center;min-width:0}
.timer-week-value{display:block;font-size:10px;color:#a08aa7;min-height:29px;line-height:1.4;overflow-wrap:anywhere}
.timer-week-track{height:64px;background:#f7f2fa;border-radius:6px;display:flex;align-items:flex-end;overflow:hidden;margin:4px auto 7px;max-width:32px}
.timer-week-track>span{display:block;width:100%;background:#c4a5d0;border-radius:5px}
.timer-week-day.today .timer-week-track>span{background:#713678}
.timer-week-day small{font-size:11px;color:#9a83a2}
.timer-week-day.today small{font-weight:700;color:#713678}
.timer-overview>p{font-size:10px;color:#a28eaa;margin:14px 0 0;line-height:1.5}
.study-timer-history{border-top:0;padding-top:0}
.study-timer-history>summary{display:flex;align-items:center;justify-content:space-between}
.study-timer-history>summary>span{transition:transform .15s}
.study-timer-history[open]>summary>span{transform:rotate(180deg)}
.study-timer button[data-history-toggle]{display:block;width:100%;padding:9px;margin-top:12px;background:transparent;border:1px solid #e8daed;color:#86628e;font-size:12px}
@media(max-width:639px){.timer-week-bars{gap:5px}.timer-overview-totals>div{padding:11px}.timer-overview-totals strong{font-size:18px}.timer-subject-results small{display:none}}
.gap-x-3 { column-gap: .75rem; } .gap-y-0\.5 { row-gap: .125rem; }
.space-y-1 > * + * { margin-top: .25rem; }
.space-y-3 > * + * { margin-top: .75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* ---- 간격: padding ---------------------------------------------------------- */
.p-1 { padding: .25rem; } .p-1\.5 { padding: .375rem; }
.p-2 { padding: .5rem; } .p-3 { padding: .75rem; } .p-3\.5 { padding: .875rem; } .p-4 { padding: 1rem; } .p-5 { padding: 1.25rem; } .p-6 { padding: 1.5rem; }
.px-1 { padding-left: .25rem; padding-right: .25rem; }
.px-2 { padding-left: .5rem; padding-right: .5rem; }
.px-2\.5 { padding-left: .625rem; padding-right: .625rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
/* 로그인 입력칸은 안내 문구와 실제 입력 모두 테두리에서 충분히 떨어져 보이게 합니다.
   다른 화면의 입력창 크기에 영향을 주지 않도록 로그인 필드에만 적용합니다. */
#login-login-id, #login-password { padding-left:16px; padding-right:16px; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-0\.5 { padding-top: .125rem; padding-bottom: .125rem; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.py-1\.5 { padding-top: .375rem; padding-bottom: .375rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-2\.5 { padding-top: .625rem; padding-bottom: .625rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-3\.5 { padding-top: .875rem; padding-bottom: .875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.pt-2 { padding-top: .5rem; }
.pt-8 { padding-top: 2rem; }
.pb-2 { padding-bottom: .5rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-24 { padding-bottom: 6rem; }
.pl-3 { padding-left: .75rem; }
.pl-4 { padding-left: 1rem; }
.pl-5 { padding-left: 1.25rem; }
.pl-6 { padding-left: 1.5rem; }
.pl-9 { padding-left: 2.25rem; }
.pl-11 { padding-left: 2.75rem; }
.pl-12 { padding-left: 3rem; }
.pr-3 { padding-right: .75rem; }
.pr-4 { padding-right: 1rem; }
.pr-5 { padding-right: 1.25rem; }
.pr-6 { padding-right: 1.5rem; }
.pr-9 { padding-right: 2.25rem; }

/* ---- 간격: margin ------------------------------------------------------------ */
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .25rem; } .mb-1\.5 { margin-bottom: .375rem; } .mb-2 { margin-bottom: .5rem; } .mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; } .mb-5 { margin-bottom: 1.25rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-7 { margin-bottom: 1.75rem; } .mb-8 { margin-bottom: 2rem; } .mb-9 { margin-bottom: 2.25rem; } .mb-10 { margin-bottom: 2.5rem; } .mb-12 { margin-bottom: 3rem; }
.mt-0\.5 { margin-top: .125rem; } .mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; } .mt-4 { margin-top: 1rem; } .mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; } .mt-10 { margin-top: 2.5rem; } .mt-12 { margin-top: 3rem; } .mt-16 { margin-top: 4rem; }
.-mt-6 { margin-top: -1.5rem; }
.-ml-3 { margin-left: -.75rem; }
.-mx-2 { margin-left: -.5rem; margin-right: -.5rem; }
.-mx-4 { margin-left: -1rem; margin-right: -1rem; }
.mx-0 { margin-left: 0; margin-right: 0; }
.ml-1 { margin-left: .25rem; }
.mr-1 { margin-right: .25rem; }

/* ---- 크기 ---------------------------------------------------------------- */
.w-2 { width: .5rem; } .w-4 { width: 1rem; } .w-5 { width: 1.25rem; } .w-6 { width: 1.5rem; } .w-7 { width: 1.75rem; }
.w-8 { width: 2rem; } .w-9 { width: 2.25rem; } .w-10 { width: 2.5rem; } .w-12 { width: 3rem; } .w-14 { width: 3.5rem; } .w-16 { width: 4rem; } .w-80 { width: 20rem; }
.h-2 { height: .5rem; } .h-4 { height: 1rem; } .h-5 { height: 1.25rem; } .h-6 { height: 1.5rem; } .h-7 { height: 1.75rem; }
.h-8 { height: 2rem; } .h-9 { height: 2.25rem; } .h-10 { height: 2.5rem; } .h-11 { height: 2.75rem; } .h-12 { height: 3rem; }
.h-14 { height: 3.5rem; } .h-16 { height: 4rem; } .h-20 { height: 5rem; }
.w-11 { width: 2.75rem; }
.max-w-xs { max-width: 20rem; } .max-w-sm { max-width: 24rem; } .max-w-md { max-width: 28rem; } .max-w-lg { max-width: 32rem; } .max-w-5xl { max-width: 64rem; } .max-w-7xl { max-width: 80rem; } .max-w-8xl { max-width: 90rem; }

/* ---- 타이포그래피 ----------------------------------------------------------- */
.text-xs { font-size: .75rem; line-height: 1rem; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1.15; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.leading-none { line-height: 1.1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-tighter { letter-spacing: -0.04em; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.italic { font-style: italic; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-pre-wrap { white-space: pre-wrap; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- 테두리 반경 / 그림자 / 효과 ---------------------------------------------- */
.rounded { border-radius: .375rem; }
.rounded-lg { border-radius: .5rem; }
.rounded-xl { border-radius: .75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.rounded-t-2xl { border-top-left-radius: 1rem; border-top-right-radius: 1rem; }
.rounded-r-lg { border-top-right-radius: .5rem; border-bottom-right-radius: .5rem; }

.shadow-xs { box-shadow: var(--shadow-xs); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-none { box-shadow: none; }
.hover\:shadow-sm:hover { box-shadow: var(--shadow-sm); }
.hover\:shadow-md:hover { box-shadow: var(--shadow-md); }
.hover\:shadow-lg:hover { box-shadow: var(--shadow-lg); }
.backdrop-blur { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.transition-all { transition: all .15s ease; }
.transition-colors { transition: color .15s ease, background-color .15s ease, border-color .15s ease; }
.transition-transform { transition: transform .15s ease; }
.hover\:-translate-y-0\.5:hover { transform: translateY(-2px); }
.focus\:outline-none:focus { outline: none; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--brand-300); }
.focus\:ring-brand-300:focus { box-shadow: 0 0 0 2px var(--brand-300); }
.cursor-pointer { cursor: pointer; }
.opacity-0 { opacity: 0; }
.opacity-60 { opacity: .6; }

/* ---- 포지셔닝 -------------------------------------------------------------- */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-x-0 { left: 0; right: 0; }
.top-0 { top: 0; }
.top-2\.5 { top: .625rem; }
.top-3 { top: .75rem; }
.top-16 { top: 4rem; }
.top-20 { top: 5rem; }
.bottom-0 { bottom: 0; }
.left-3 { left: .75rem; }
.left-4 { left: 1rem; }
.right-3 { right: .75rem; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* ---- 오버플로우 / 줄바꿈 (탭 바 가로 스크롤 등) --------------------------------- */
.overflow-x-auto { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.overflow-x-auto::-webkit-scrollbar { height: 0; }
.overflow-hidden { overflow: hidden; }
.whitespace-nowrap { white-space: nowrap; }
.list-none { list-style: none; }

/* =============================================================================
   반응형 (모바일 우선: 기본 스타일이 모바일, sm/md 이상에서 확장)
   ========================================================================== */
@media (min-width: 640px) {
  .sm\:flex { display: flex; }
  .sm\:inline { display: inline; }
  .sm\:block { display: block; }
  .sm\:hidden { display: none; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sm\:col-span-1 { grid-column: span 1 / span 1; }
  .sm\:col-span-2 { grid-column: span 2 / span 2; }
  .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1.15; }
  .sm\:py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .sm\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:p-6 { padding: 1.5rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:items-center { align-items: center; }
  .sm\:mb-0 { margin-bottom: 0; }
  .sm\:mx-0 { margin-left: 0; margin-right: 0; }
  .sm\:px-0 { padding-left: 0; padding-right: 0; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:block { display: block; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:flex-row { flex-direction: row; }
  .lg\:w-80 { width: 20rem; }
  .lg\:flex { display: flex; }
  .lg\:block { display: block; }
  /* !important: 이 유틸리티 클래스는 뒤에 나오는 컴포넌트 클래스(예: .header-icon-btn)가
     display를 지정해도 항상 이겨야 하는 "반응형 숨김" 용도이므로, 소스 순서와 무관하게
     동작하도록 강제합니다(그렇지 않으면 나중에 정의된 컴포넌트 클래스가 이 규칙을 덮어써서
     데스크톱에서도 모바일 전용 버튼이 계속 보이는 문제가 생깁니다). */
  .lg\:hidden { display: none !important; }
}

/* details/summary 화살표 마커 숨김 (시험 후기 작성 폼 등에서 사용) */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }

/* =============================================================================
   모바일 하단 탭 바 — 학생·취준생이 주로 쓰는 손 닿는 위치에 핵심 메뉴를 고정합니다.
   데스크탑(md 이상)에서는 상단 네비게이션만 쓰고, 이 바는 숨깁니다.
   ========================================================================== */
.mobile-tabbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--slate-100);
  box-shadow: 0 -4px 16px hsl(var(--shadow-color) / 0.08);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mobile-tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .125rem; padding: .5rem .25rem .375rem; font-size: .6875rem; font-weight: 600;
  color: var(--slate-400);
}
.mobile-tabbar a .tabbar-icon { font-size: 1.25rem; line-height: 1; }
.mobile-tabbar a.active { color: var(--brand-600); }
.mobile-tabbar a.active .tabbar-icon { transform: translateY(-1px); }
@media (min-width: 1024px) {
  .mobile-tabbar { display: none; }
}
@media (max-width: 1023px) {
  footer { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)) !important; }
}

/* ---- 히어로 배경: 홈 화면 등에 아주 옅게 깔아 "딱딱한 관공서 사이트" 느낌을 덜어냅니다 ------ */
.hero-gradient {
  background-color: var(--color-surface);
  background-image:
    radial-gradient(900px 420px at 12% -15%, var(--color-primary-light), transparent 60%),
    radial-gradient(700px 360px at 100% -10%, #f8e8f3, transparent 55%);
}

/* ---- 히어로 프레임: 화이트 배경이 "빈 공백"처럼 보이지 않도록 Plum 테두리 + 모서리 브래킷 +
   도트 텍스처로 하나의 "틀"을 만들어줍니다. ------------------------------------------------ */
.hero-frame {
  position: relative;
  border: 2px solid var(--color-primary);
  background-color: var(--color-surface);
  background-image:
    radial-gradient(rgba(31,31,46,0.06) 1.3px, transparent 1.6px),
    radial-gradient(900px 420px at 12% -15%, var(--color-primary-light), transparent 60%),
    radial-gradient(700px 360px at 100% -10%, #f8e8f3, transparent 55%);
  background-size: 22px 22px, auto, auto;
}
.hero-frame-corner {
  position: absolute; width: 26px; height: 26px; border-color: var(--color-text); pointer-events: none;
}
.hero-frame-corner.tl { top: -2px; left: -2px; border-top: 4px solid; border-left: 4px solid; border-radius: 14px 0 0 0; }
.hero-frame-corner.tr { top: -2px; right: -2px; border-top: 4px solid; border-right: 4px solid; border-radius: 0 14px 0 0; }
.hero-frame-corner.bl { bottom: -2px; left: -2px; border-bottom: 4px solid; border-left: 4px solid; border-radius: 0 0 0 14px; }
.hero-frame-corner.br { bottom: -2px; right: -2px; border-bottom: 4px solid; border-right: 4px solid; border-radius: 0 0 14px 0; }

/* ---- 형광펜 강조: 밑줄이 아니라 글자 배경을 통째로 칠하는 방식입니다. 손으로 슥 그은 듯한
   느낌을 위해 좌우 비대칭 라운딩 + 살짝 기울임을 줬습니다. 자두잇의 핵심 시각 언어이므로
   화면당 정말 중요한 문구 1~2곳에만 제한적으로 사용하세요(D-Day, 선택된 개수 등). ------------ */
/* ---- Lime 형광펜 강조: 반듯한 사각형 대신, 손으로 대충 그은 듯 살짝 삐뚤빼뚤한 브러시
   자국(SVG 배경)을 텍스트 뒤에 깔아 "노트에 형광펜을 칠한" 느낌을 냅니다. --------------------- */
.highlight {
  position: relative;
  padding: 0.08em 0.5em 0.18em;
  color: var(--color-text);
  display: inline-block;
  transform: rotate(-0.6deg);
  z-index: 0;
}
.highlight::before {
  content: "";
  position: absolute;
  left: -0.12em; right: -0.12em; top: 0.02em; bottom: -0.06em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 60' preserveAspectRatio='none'%3E%3Cpath d='M3 21 C 22 5, 58 13, 98 8 C 150 1, 202 16, 252 9 C 277 6, 293 17, 297 24 L 295 44 C 268 55, 228 41, 188 49 C 138 58, 88 44, 48 52 C 24 56, 7 46, 3 40 Z' fill='%23D9F26B'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: -1;
  opacity: var(--hl-opacity, 1); /* 요청 22/27번: 관리자가 형광펜 강도(연하게/보통/진하게)를 조절할 수 있게 하는 변수. 기본값 1(기존과 동일). */
}

/* ---- 아바타: 원형 프로필 자리. 예전엔 닉네임 첫 글자를 보여줬지만, 이제는 기본적으로
   avatar-illustrated 아바타(SVG 일러스트)가 이 자리를 채웁니다. 혹시 초기화되지 않은 곳에서
   여전히 글자만 넣더라도 배경/색이 어색하지 않도록 기본 배경은 유지해둡니다. -------------------- */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px; font-weight: 800; flex-shrink: 0;
  background: var(--color-primary-light); color: var(--color-primary-dark);
}
/* ---- 기본 프로필 아바타(남/여 일러스트): 글자용 배경/폰트 스타일은 필요 없고, 원 밖으로
   튀어나오는 SVG 모서리만 안전하게 잘라내면 됩니다(SVG 자체가 이미 원형 배경을 그리므로
   .avatar의 배경색은 보이지 않게 감춥니다). ------------------------------------------------- */
.avatar-illustrated {
  background: none;
  padding: 0;
  overflow: hidden;
}
.avatar-illustrated svg { display: block; }

/* ---- 아바타 스택: "오늘 공부한 사람들"처럼 여러 명이 함께한다는 느낌을 겹친 원으로 표현합니다.
   숫자는 항상 실제 집계값만 씁니다 — 꾸며낸 인원수를 넣지 않습니다. ------------------------------ */
.avatar-stack { display: flex; align-items: center; }
.avatar-stack .avatar { border: 2px solid #fff; margin-left: -0.5rem; }
.avatar-stack .avatar:first-child { margin-left: 0; }

/* ---- 로고 심볼: Soft Plum 배지 위에 Plum + Lime 브랜드 마크를 얹는 컨테이너 -------------------- */
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: var(--color-primary-light); border-radius: 0.85rem;
}

/* ---- 크롬 자동완성 파란 배경 방지: 로그인 폼에 저장된 계정이 있으면 브라우저가 강제로
   옅은 파란 배경을 입히는데, 우리 화이트 인풋 스타일을 덮어써서 트랜지션으로 무력화합니다. --- */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--color-text);
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
  box-shadow: 0 0 0 1000px #ffffff inset;
  transition: background-color 9999s ease-in-out 0s;
}

/* ---- D-Day / 핵심 숫자 배지: Lime 배경 + 진한 텍스트. 배지 톤 중 유일하게 형광펜 컬러를 씁니다. --- */
.badge-lime { background-color: var(--color-highlight); color: var(--color-text); }

/* ---- 상단 네비게이션 브랜드 라인: Plum → Pink → Lime로 흐르는 얇은 그라데이션.
   화면 전체를 색으로 채우지 않으면서 헤더에 브랜드 존재감을 줍니다. -------------------------- */
.nav-accent-bar {
  height: 3px;
  background: linear-gradient(to right, var(--color-primary) 0%, var(--color-primary) 35%, #e7b8d9 65%, var(--color-highlight) 100%);
}

/* =============================================================================
   3차 개편: 정보 위계 & 여백 (헤더/네비게이션/카테고리 아코디언/자격증 태그)
   ========================================================================== */

/* ---- 상단 메뉴: "홈"처럼 글자가 짧아도 최소 너비 + 넉넉한 padding으로 다른 메뉴와
   비슷한 시각적 무게를 갖게 합니다. 활성 메뉴는 배경이 있는 하나의 독립된 UI 요소로
   보이도록 상하 padding도 충분히 줍니다. ------------------------------------------- */
.nav-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 3.75rem;
  padding: 0.5rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--slate-600);
  white-space: nowrap;
}
.nav-link:hover { background: var(--slate-50); color: var(--color-primary); }
.nav-link.active { background: var(--color-primary-light); color: var(--color-primary-dark); font-weight: 700; }

/* ---- 헤더 안의 버튼(로그인/회원가입 등)도 nav-link와 통일된 넉넉한 크기를 씁니다 ------------- */
.header-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ---- 카테고리 카드 그리드: 자격증이 많아진 목록/게시판 페이지에서 카테고리를 1열로 길게
   나열하지 않고, 3열(태블릿 2열/모바일 1열) 카드 그리드로 보여줍니다. 각 카드는 네이티브
   <details>/<summary>라서 별도 JS 없이 클릭하면 그 카드 내부에서만 자격증 목록이 펼쳐집니다.
   align-items: start를 줘서, 한 카드를 펼쳐도 같은 행의 다른 카드가 억지로 늘어나지 않습니다. */
.cat-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
  align-items: start;
}
@media (max-width: 900px) {
  .cat-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .cat-card-grid { grid-template-columns: 1fr; }
}
.cat-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.cat-card > summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  list-style: none;
}
.cat-card > summary::-webkit-details-marker { display: none; }
.cat-card:hover > summary { background: var(--color-surface); }
.cat-card-title {
  display: flex; align-items: center; gap: var(--space-sm);
  font-size: 0.975rem;
  font-weight: 800;
  color: var(--color-text);
  min-width: 0;
}
.cat-card-title-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.cat-card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; flex-shrink: 0;
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
  font-size: 1.15rem;
}
.cat-card-count {
  font-size: 0.75rem; font-weight: 600; color: var(--color-text-faint);
}
.cat-card-chevron {
  flex-shrink: 0; color: var(--color-text-faint);
  transition: transform .18s ease;
}
.cat-card[open] > summary .cat-card-chevron { transform: rotate(180deg); }
.cat-card[open] > summary { border-bottom: 1px solid var(--color-border); }
.cat-card-body {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
}

/* ---- 카테고리를 펼쳤을 때 나오는 자격증 목록: 이름 길이와 상관없이 높이·여백·글자 크기가
   모두 동일한 Pill을 CSS Grid로 정렬합니다. "예쁘게 흩어놓기"가 아니라 "규칙적으로 정렬된
   정보"가 목표라, 내부 스크롤 없이도 자연스럽게 다음 줄로 넘어가게 합니다. ----------------- */
.cert-pill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
}
@media (min-width: 420px) {
  .cert-pill-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.cert-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 3.75rem;
  height: auto;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--color-border);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  line-height: 1.45;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
  box-shadow: var(--shadow-xs);
  text-decoration: none;
}
.cert-pill:hover { border-color: var(--brand-200); color: var(--color-primary); background: var(--color-primary-light); }


/* =============================================================================
   홈 Hero 오른쪽 "브랜드 장면" — 자두 캐릭터 + 워드마크/JADOO IT! 사인보드 + 손글씨 말풍선 +
   포스트잇을 하나의 장면처럼 묶어서 보여줍니다. 데스크탑에서는 Hero 오른쪽 40~45%,
   모바일에서는 텍스트 아래로 자연스럽게 쌓입니다(더 이상 숨기지 않습니다).
   ========================================================================== */
.hero-scene {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: 0.5rem;
}
@media (min-width: 1024px) {
  .hero-scene { width: auto; padding-top: 0; }
}
.hero-scene-callout {
  position: relative;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--color-primary-dark);
  text-align: center;
  transform: rotate(-3deg);
  margin-bottom: 0.25rem;
}
.hero-scene-callout .heart { color: #e8578a; }
.hero-scene-sparkle {
  position: absolute;
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.9;
  pointer-events: none;
}
.hero-character-wrap {
  position: relative;
  width: 9.5rem;
  z-index: 2;
}
@media (min-width: 1024px) {
  .hero-character-wrap { width: 11rem; }
}
.hero-character-wrap svg { width: 100%; height: auto; }
.brand-signboard {
  position: relative;
  margin-top: -1.1rem;
  z-index: 1;
  background: #fff;
  border: 2px solid var(--color-primary-light);
  border-radius: 1.1rem;
  padding: 0.55rem 1.35rem 0.7rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.brand-signboard-word {
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--color-text);
  white-space: nowrap;
}
.brand-signboard-word span { color: var(--color-primary); }
.brand-signboard-sub {
  font-weight: 800;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--color-text-faint);
  margin-top: 0.05rem;
}
.sticky-note {
  position: relative;
  background: var(--color-highlight);
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.4;
  padding: 0.75rem 0.9rem 0.65rem;
  border-radius: 0.2em 0.9em 0.3em 0.8em / 0.8em 0.25em 0.9em 0.3em;
  transform: rotate(-3deg);
  box-shadow: var(--shadow-sm);
  display: inline-block;
}
.sticky-note.hero-sticky {
  margin-top: 0.65rem;
  max-width: 12rem;
  transform: rotate(3deg);
}
.sticky-note-tape {
  position: absolute;
  top: -0.6rem;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  width: 2.5rem;
  height: 1.1rem;
  background: hsl(0 0% 100% / 0.55);
  border: 1px solid hsl(0 0% 100% / 0.7);
}
.sticky-note-heart {
  display: block;
  text-align: right;
  margin-top: 0.3rem;
  color: #c2185b;
  opacity: 0.75;
}

/* ---- 순위 목록: "지금 많이 이야기하는 주제"처럼 숫자로 랭킹을 보여줄 때 씁니다. Lime이 아니라
   Plum 톤의 원형 숫자 배지를 써서, 형광펜 강조(Lime)와 역할을 겹치지 않게 구분합니다. ------------- */
.rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.5rem; height: 1.5rem; flex-shrink: 0;
  border-radius: 9999px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-size: 0.75rem;
  font-weight: 800;
}

/* =============================================================================
   시험 일정 달력 — Multi-day Event Bar
   접수기간처럼 여러 날짜에 걸친 일정을 날짜 셀마다 반복해서 적지 않고, 하나의 연속된
   막대(Bar)가 시작일부터 종료일까지 가로지르는 것처럼 보이게 합니다. 한 주(7일)를 하나의
   CSS Grid로 두고, 날짜 숫자는 배경 레이어(cal-day-guide)로, 일정 막대는 그 위에 겹쳐서
   grid-column을 여러 칸 span 시키는 방식입니다(달력 UI에서 흔히 쓰는 패턴).
   ========================================================================== */
.cal-grid { display: flex; flex-direction: column; }
.board-sort-tabs{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.board-sort-tabs>a{display:inline-flex;align-items:center;justify-content:center;min-width:84px;min-height:42px;padding:10px 18px;line-height:1.4;white-space:nowrap;flex-shrink:0}
.pass-review-survey{border:1px solid #E4D8E9;border-radius:14px;background:#FAF7FC;padding:18px;min-width:0}
.pass-review-survey[hidden]{display:none}
.pass-review-survey legend{font-size:15px;font-weight:800;color:var(--color-primary);padding:0 5px}
.pass-review-survey>p{font-size:12px;line-height:1.7;color:var(--color-text-muted);margin:0 0 14px}
.survey-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.survey-form-grid>label{display:grid;gap:7px;font-size:13px;color:var(--color-text);min-width:0}
.survey-form-grid input,.survey-form-grid select{width:100%;min-width:0;border:1px solid #DCCDE4;border-radius:9px;background:white;padding:10px 12px;min-height:42px;font-size:14px}
.survey-duration{display:grid;grid-template-columns:minmax(0,1fr) 80px;gap:6px}
.survey-methods{display:flex;gap:10px 18px;flex-wrap:wrap;margin-top:16px;font-size:13px}
.survey-methods>span{flex-basis:100%;font-weight:600}
.survey-methods label{display:inline-flex;align-items:center;gap:6px;min-height:32px}
.survey-methods input{accent-color:var(--color-primary)}
.cert-statistics{margin-top:32px;padding:20px;border:1px solid var(--color-border);border-radius:18px;background:white;min-width:0;scroll-margin-top:145px}
.cert-statistics>h2{font-size:19px;font-weight:800;margin:0 0 8px}
.cert-statistics>p{font-size:13px;line-height:1.7;color:var(--color-text-muted);margin:0 0 16px}
.official-stats-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.survey-stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.official-stat-card,.survey-stats-card{border:1px solid #E7DFEC;border-radius:12px;padding:16px;background:#FCFAFD;min-width:0}
.official-stat-card h3,.survey-stats-card h3{font-size:15px;font-weight:800;margin:0 0 12px;display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}
.official-stat-card small,.survey-stats-card small{font-size:11px;font-weight:400;color:var(--color-text-muted)}
.official-pass-rate{font-size:30px;font-weight:800;color:var(--color-primary)}
.official-stat-card p,.survey-stats-card p{font-size:12px;line-height:1.7;color:var(--color-text-muted)}
.official-stat-card summary{cursor:pointer;margin-top:14px;font-size:12px;font-weight:700;color:var(--color-primary)}
.official-stat-card table{width:100%;border-collapse:collapse;font-size:11px;margin-top:10px;text-align:right}
.official-stat-card caption{text-align:left;color:var(--color-text-muted);font-size:11px;margin-bottom:6px}
.official-stat-card th,.official-stat-card td{padding:8px 3px;border-bottom:1px solid #E9E1EE;white-space:nowrap}
.survey-stat-metrics{display:grid;gap:12px;margin:0 0 16px}
.survey-stat-metrics dt{font-size:12px;color:var(--color-text-muted)}
.survey-stat-metrics dd{font-size:21px;font-weight:800;color:var(--color-primary);margin:4px 0}
.study-preparation .survey-stats-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr))}
.study-survey-rule{padding:12px 14px;border-radius:10px;background:#F4EFF7;line-height:1.7;font-size:12px}
.study-data-source{display:inline-block;margin:4px 0 6px;padding:3px 7px;background:#EEE7F2;color:#655271;border-radius:5px;font-size:10px;font-weight:600}
.study-data-source.is-survey{background:#E8F1DE;color:#4E6334}
.study-reference-values{list-style:none;padding:0;margin:3px 0 7px;display:grid;gap:7px;font-size:13px;line-height:1.65;color:var(--color-text);overflow-wrap:anywhere}
.study-reference-values li{display:flex;gap:7px;align-items:baseline}
.study-reference-number{flex:none;font-size:10px;font-weight:700;color:#79598B;background:#EEE6F3;border-radius:50%;width:17px;height:17px;display:inline-flex;align-items:center;justify-content:center}
.study-metric[data-source="external"] dd:empty{display:none}
.study-metric small,.survey-stats-card [data-study-metric] > small{display:block}
.study-reference-sources{margin-top:18px;border-top:1px solid #E7DFEC;padding-top:12px;font-size:12px}
.study-reference-sources summary{cursor:pointer;color:#6D407E;font-weight:600;padding:5px 0}
.study-reference-sources ol{padding-left:20px;display:grid;gap:10px}
.study-reference-sources a{color:#633675;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.study-reference-sources li span{display:block;margin-top:4px;font-size:11px;color:var(--color-text-muted);line-height:1.6}
.cert-detail-source{display:block;margin-top:10px;color:#79548A;font-size:11px;font-weight:500;text-decoration:underline;text-underline-offset:3px}
.cert-detail-pending{color:var(--color-text-muted);font-weight:500}
.cert-detail-full{line-height:1.8}
.cert-detail-full summary{cursor:pointer}
.cert-detail-full summary span{display:block;color:#79548A;font-size:12px;margin-top:7px}
.cert-detail-full[open] summary{margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid #EEE7F2}
.survey-stats-card h4{font-size:12px;font-weight:700;margin:16px 0 7px}
.survey-method-results>div{display:grid;grid-template-columns:1fr auto;gap:5px;font-size:12px;margin:10px 0}
.survey-method-results meter{grid-column:1/-1;width:100%;height:10px;accent-color:var(--color-primary)}
.cert-statistics .statistics-footnote{font-size:11px;margin:14px 0 0;line-height:1.8}
.cert-statistics a{font-size:12px;color:var(--color-primary);text-decoration:underline}
.statistics-survey-link{display:inline-block;margin-top:14px;font-weight:700}
@media(max-width:767px){.survey-stats-grid{grid-template-columns:minmax(0,1fr)}.cert-statistics{padding:16px}.official-stats-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:479px){.survey-form-grid{grid-template-columns:minmax(0,1fr)}.pass-review-survey{padding:14px}}
.calendar-expand-controls,.calendar-week-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;font-size:12px;color:var(--color-text-muted)}
.calendar-expand-controls{margin:4px 0 14px}
.calendar-expand-controls>span{margin-right:auto;font-size:11px}
.calendar-expand-controls a,.calendar-week-actions a{padding:5px 9px;border:1px solid #DDD4E4;border-radius:7px;background:#FAF8FC;color:var(--color-primary);font-weight:700}
.calendar-week-actions{padding:8px 3px;border-bottom:1px solid var(--color-border)}
.calendar-week-actions>span{margin-right:auto}
.cal-week[id]{scroll-margin-top:110px}
.cal-week {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: 26px repeat(var(--calendar-week-rows,3), 20px);
  row-gap: 2px;
  border-bottom: 1px solid var(--color-border);
}
.cal-week.is-last { border-bottom: none; }
.cal-day-guide {
  grid-row: 1 / -1;
  /* 여러 날짜를 잇는 막대가 세로 구분선을 가리지 않도록 주 단위 가로선만 남깁니다.
     클릭 가능한 날짜 칸의 그리드 영역과 바깥 프레임은 그대로 유지합니다. */
  border-right: none;
  padding: 4px 4px 0;
  text-decoration: none;
  display: block;
}
.cal-day-guide.is-empty { background: var(--color-surface); }
.cal-day-guide.is-selected {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.cal-daynum { font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; }
/* 선택 표시는 일정 막대와 겹치는 칸 전체가 아니라 날짜 숫자에만 둡니다.
   현재 파스텔 핑크와 같은 계열을 사용하고 작은 화면의 날짜 행 높이 안에 맞춥니다. */
.cal-day-guide.is-selected .cal-daynum {width:22px;height:22px;justify-content:center;border-radius:50%;background:#F8DCE7;color:#79394D!important;box-shadow:inset 0 0 0 1px #F27D91}
.cal-day-guide.is-selected .cal-today-dot {display:none}
@media(max-width:640px){.cal-day-guide.is-selected .cal-daynum{width:18px;height:18px}}
.cal-today-dot {
  display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--color-primary); margin-right: 3px;
}
.cal-event-bar {
  margin: 0 2px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  line-height: 20px;
  padding: 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  align-self: start;
  position: relative;
  z-index: 2;
}
.cal-bar-exam { background: var(--calendar-exam-bg,var(--color-primary)); color: var(--calendar-exam-text,#ffffff); }
.cal-bar-interest { background: var(--calendar-interest-bg,#EAF2D5); color: var(--calendar-interest-text,#536537); }
.cal-bar-urgent { background: var(--calendar-urgent-bg,var(--color-alert-light)); color: var(--calendar-urgent-text,var(--color-alert)); }
.cal-bar-accept { background: var(--calendar-general-bg,var(--slate-100)); color: var(--calendar-general-text,var(--color-text-muted)); }
.cal-event-overflow {
  grid-column: 1 / -1;
  align-self: start;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-text-faint);
  padding: 0 8px;
  line-height: 20px;
  position: relative;
  z-index: 2;
}
@media (max-width: 640px) {
  .cal-week { grid-template-rows: 22px repeat(var(--calendar-week-rows,3), 18px); }
  .cal-event-bar, .cal-event-overflow { font-size: 9px; line-height: 18px; }
}

/* =============================================================================
   4차 개편: 최종 레이아웃 시안 반영 — Header 아이콘 버튼 / 알림 드롭다운 /
   홈 대시보드 4카드 Row / 목록 Divider / Community 2단 구성(카테고리+Topic 패널)
   ========================================================================== */

/* ---- 헤더 아이콘 버튼(알림 등): 원형 배경 없이도 다른 헤더 버튼과 크기가 맞도록 통일.
   크기는 2.75rem(44px)로, 모바일 터치 가이드라인(최소 40~44px)을 만족하도록 잡았습니다. ------ */
.header-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 9999px;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  position: relative;
}
.header-icon-btn:hover { background: var(--slate-50); color: var(--color-primary); }

/* ---- 알림 드롭다운: 실제 알림 기능은 아직 없으므로, 있지도 않은 알림을 지어내지 않고
   "아직 알림이 없어요"라는 정직한 빈 상태만 보여줍니다. ------------------------------------- */
.notif-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 15rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  z-index: 50;
  text-align: left;
}
.notif-dropdown-title { font-size: 0.8125rem; font-weight: 800; color: var(--color-text); margin-bottom: 0.35rem; }
.notif-dropdown-body { font-size: 0.8125rem; color: var(--color-text-faint); line-height: 1.5; }

/* ---- 홈 대시보드 4번째 카드: 자두잇의 응원 메시지. 정보 카드가 아니라 "분위기 있는" 카드라서
   Soft Plum → Light Pink 그라데이션과 인용부호 느낌의 타이포를 씁니다. -------------------------- */
.msg-card {
  border-radius: 1rem;
  padding: 1rem;
  background: linear-gradient(155deg, var(--color-primary-light), var(--color-pink));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}
.msg-card-quote {
  font-size: 0.975rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--color-primary-dark);
}
.msg-card-sign {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.85;
}

/* ---- 목록 Divider: "다가오는 시험 / 인기 자격증 / 최근 인기글"처럼 한 카드 안에 여러 행이
   나열될 때, 행 사이에 얇은 구분선을 넣습니다(행 전체에 hover 배경을 칠하지 않고 텍스트
   색상만 살짝 바뀌는 정도로 담백하게). ------------------------------------------------------ */
.list-row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--color-border);
}
.list-row:last-child { border-bottom: none; }

/* ---- "나의 시험 일정" 카드의 진행률 바: 접수 시작일 ~ 시험일 사이에서 오늘이 어디쯤인지
   보여줍니다. 실제 날짜(application_start~exam_date)로만 계산하며, 두 날짜를 모두 알 수
   없으면 아예 표시하지 않습니다(가짜 진행률을 지어내지 않음). ------------------------------- */
.progress-track {
  width: 100%;
  height: 0.375rem;
  border-radius: 9999px;
  background: rgba(107, 44, 111, 0.12);
  overflow: hidden;
  margin: 0.5rem 0 0.45rem;
}
.progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: var(--color-primary);
}

/* ---- Community "지금 많이 이야기하는 주제" 옆 작은 응원 카드 ------------------------------- */
.mini-cta-card {
  border-radius: 1rem;
  padding: 1.1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text-muted);
  line-height: 1.45;
}
.mini-cta-card .mini-cta-icon { font-size: 1.5rem; margin-bottom: 0.35rem; }

/* =============================================================================
   5차 개편: 최종 디자인 보정 (새 디자인 창작이 아니라, 확정된 시안에 정확히 맞추는 보정 작업)
   - 검색 버튼을 동그란 Plum 아이콘 버튼으로 통일 (더 이상 텍스트 "검색" 버튼 X)
   - 자격증 페이지: "검색 영역"과 "카테고리 영역"을 시각적으로 분리
   - 자격증 페이지 여백에 히어로와 같은 톤의 작은 잎사귀/손글씨 장식을 더함(데이터 아님, 순수 장식)
   ========================================================================== */

/* ---- 검색 입력창 옆 동그란 Plum 아이콘 버튼 (자격증/커뮤니티 검색 공통) ------------------------ */
.search-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.25rem; height: 3.25rem;
  border-radius: 9999px;
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.search-icon-btn:hover { background: var(--color-primary-dark); }

/* ---- 자격증 페이지: 제목 + 설명 + 검색을 하나의 "검색 영역"으로 묶고, 아주 옅은 Soft Plum
   톤(거의 화이트에 가까운 --color-surface)으로 아래 "카테고리 영역"과 구분합니다. 색을 칠한
   영역처럼 보이지 않도록 White보다 살짝만 어둡게 유지합니다. ------------------------------------- */
.cert-search-zone {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem;
  overflow: hidden;
}
@media (min-width: 640px) {
  .cert-search-zone { padding: 2.75rem 2.5rem; }
}
.cert-search-zone-inner {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}

/* ---- 히어로의 손글씨 말풍선/잎사귀와 같은 언어를 자격증 페이지 여백에도 아주 은은하게 사용합니다.
   실제 정보가 아니라 순수 장식이라, 모바일처럼 좁은 화면에서는 겹침을 피하기 위해 숨깁니다. --------- */
.cert-flourish {
  display: none;
  position: absolute;
  z-index: 0;
  font-weight: 800;
  color: var(--color-primary-dark);
  opacity: 0.8;
  line-height: 1.35;
  pointer-events: none;
}
@media (min-width: 900px) {
  .cert-flourish { display: block; }
}
.cert-flourish-top {
  top: 1.75rem;
  right: 2.25rem;
  font-size: 0.9rem;
  text-align: right;
  transform: rotate(-3deg);
}
.cert-flourish-bottom {
  bottom: 1.5rem;
  right: 2.5rem;
  font-size: 1.05rem;
  text-align: right;
  transform: rotate(2deg);
}

/* ---- "기본 게시판" 태그: 여러 개가 다닥다닥 붙어 하나의 메뉴줄처럼 보이지 않도록, 각 태그
   내부 여백/높이와 태그 사이 간격을 캡슐 버튼답게 여유 있게 조정합니다(둥근 Pill 형태와
   화이트+Plum 톤은 그대로 유지 — "여백과 호흡"만 개선). ------------------------------------- */
.board-chip-row {
  gap: 0.9rem;
}
.board-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.4rem 0.7rem 0.85rem;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--slate-600);
  box-shadow: var(--shadow-xs);
}
.board-chip:hover { border-color: var(--brand-200); background: var(--color-primary-light); color: var(--color-primary-dark); }
.board-chip-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; flex-shrink: 0;
  border-radius: 9999px;
  font-size: 1.1rem;
  line-height: 1;
}
.board-chip-label {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .board-chip { padding: 0.6rem 1.1rem 0.6rem 0.7rem; gap: 0.55rem; }
  .board-chip-row { gap: 0.6rem; }
}

/* ---- 시험 일정 페이지: "선택한 날짜" 사이드 패널 강조. 예전엔 달력과 똑같이 White 배경이라
   시선이 잘 안 갔는데, 처음엔 진한 Plum→Deep Plum 그라데이션으로 구분했다가, 자두잇 톤(화이트
   캔버스 + Plum + Soft Plum/Light Pink)에 비해 채도·대비가 너무 강해 튀어 보인다는 피드백을
   반영해 Soft Plum → Light Pink의 아주 옅은 그라데이션으로 톤을 낮췄습니다. 대신 살짝 진한
   보더 + 그림자로 "여전히 구분되는 카드"라는 느낌은 유지합니다(Lime은 여전히 버튼 등
   포인트에만 쓰고, 패널 전체 배경으로는 쓰지 않습니다). --------------------------------- */
.selected-day-panel {
  background: linear-gradient(160deg, var(--color-primary-light), var(--color-pink));
  border: 1px solid var(--brand-100);
  box-shadow: var(--shadow-sm);
}

/* ---- 공부 인증 카드 좋아요 버튼: 커뮤니티 게시글 좋아요와 같은 하트 토글 원칙을 쓰되,
   카드 크기에 맞춰 더 작고 담백하게 배치합니다. ------------------------------------------- */
.study-log-like-btn {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
}
.study-log-like-btn:hover { border-color: #f3b4c4; }
.study-log-like-btn.is-liked { background: #fdeef2; border-color: #f6c6d4; color: #c2185b; }

/* =============================================================================
   모바일/태블릿(lg 미만, 1024px 미만) 상단 네비게이션 대체 — 햄버거 드로어.
   데스크톱 상단바(로고+가로 메뉴)는 그대로 두고, 화면이 좁아 가로 메뉴를 넣을 자리가 없을 때만
   이 드로어로 같은 메뉴(+검색+로그인 상태별 메뉴)를 제공합니다. 검색은 별도 아이콘으로 항상
   접근 가능하게 분리합니다(검색 기능 자체는 기존 그대로, 배치만 아이콘 토글로 바꿈).
   햄버거 버튼이 헤더 왼쪽(로고 옆)으로 옮겨감에 따라, 드로어도 오른쪽이 아닌 왼쪽에서
   슬라이드인 하도록 맞췄습니다 — 버튼이 있는 쪽에서 패널이 나와야 자연스럽기 때문입니다.
   배경 딤 처리도 기존보다 훨씬 옅게 낮춰서(0.45 → 0.16) 화면이 지나치게 어두워지지 않게 했습니다. */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(74, 32, 78, 0.16);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.mobile-nav-backdrop.open { opacity: 1; pointer-events: auto; }

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 82vw);
  background: #fff;
  z-index: 71;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  border-top-right-radius: 1.25rem;
  border-bottom-right-radius: 1.25rem;
  box-shadow: 12px 0 32px hsl(var(--shadow-color) / 0.18);
  transform: translateX(-100%);
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}
.mobile-nav-drawer.open { transform: translateX(0); pointer-events: auto; }
.mobile-nav-drawer-topbar {
  height: 4px;
  flex-shrink: 0;
  background: linear-gradient(to right, var(--color-primary) 0%, var(--color-primary) 35%, #e7b8d9 65%, var(--color-highlight) 100%);
}
.mobile-nav-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1rem 0.5rem;
  flex-shrink: 0;
}
.mobile-nav-drawer-title { font-size: 1rem; font-weight: 800; color: var(--color-text); }
.mobile-nav-drawer-links {
  display: flex; flex-direction: column; gap: 0.3rem;
  padding: 0.5rem 0.85rem;
}
.mobile-nav-link {
  display: flex; align-items: center; gap: 0.9rem;
  min-height: 3.1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-600);
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}
.mobile-nav-link:hover { background: var(--slate-50); }
.mobile-nav-link.active { background: var(--color-primary-light); color: var(--color-primary-dark); font-weight: 700; }
.mobile-nav-link-icon { font-size: 1.2rem; width: 1.6rem; text-align: center; flex-shrink: 0; }
.mobile-nav-drawer-divider { height: 1px; background: var(--slate-100); margin: 0.4rem 1.1rem 0.6rem; flex-shrink: 0; }
.mobile-nav-drawer-auth {
  display: flex; flex-direction: column; gap: 0.3rem;
  padding: 0 0.85rem 1.75rem;
}
.mobile-nav-drawer-auth form { margin: 0; }
.mobile-nav-cta { background: var(--color-primary); color: #fff; font-weight: 700; }
.mobile-nav-cta:hover { background: var(--color-primary-dark); color: #fff; }

@media (min-width: 1024px) {
  .mobile-nav-backdrop, .mobile-nav-drawer { display: none; }
}

/* ---- 사용자 입력 본문 줄바꿈: 공부 인증/댓글/게시글 본문처럼 사용자가 자유롭게 입력하는
   텍스트는 공백이 있는 문장은 물론, 공백 없는 긴 문자열(숫자 나열, URL 등)이 들어와도 카드
   너비를 절대 넘지 않고 줄바꿈되어야 합니다. overflow-wrap: anywhere가 word-break보다
   더 안전하게(단어 중간에 하이픈 없이) 아무 위치에서나 줄을 바꿔주므로 이걸 기본으로 쓰고,
   word-break도 함께 지정해 구형 브라우저에서도 같은 효과를 내도록 이중으로 안전장치를 둡니다.
   가로 스크롤이 생기지 않도록 min-width:0도 함께 줍니다(부모가 flex/grid일 때 자식이 내용
   때문에 줄어들지 못하는 문제 방지). --------------------------------------------------------- */
.break-anywhere {
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

/* ---- 회원가입/프로필 수정: 남성/여성 기본 프로필 아바타 중 하나를 고르는 라디오 카드.
   실제 라디오는 화면에서 숨기고, 선택된 카드만 :has()로 Soft Plum 테두리/배경을 입혀
   강조합니다(별도 JS 없이도 선택 상태가 눈에 보입니다). ------------------------------------- */
.profile-type-picker { display: flex; gap: 0.75rem; }
.profile-type-option {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 1rem 0.75rem;
  border-radius: 1rem;
  border: 2px solid var(--color-border);
  cursor: pointer;
  text-align: center;
  transition: border-color .15s ease, background .15s ease;
}
.profile-type-option:hover { border-color: var(--brand-200); }
.profile-type-option input {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.profile-type-avatar {
  width: 3.5rem; height: 3.5rem;
  border-radius: 9999px;
  overflow: hidden;
  display: block;
}
.profile-type-avatar svg { display: block; }
.profile-type-label { font-size: 0.8125rem; font-weight: 600; color: var(--color-text-muted); }
.profile-type-option:has(input:checked) {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}
.profile-type-option:has(input:checked) .profile-type-label { color: var(--color-primary-dark); font-weight: 700; }

/* =============================================================================
   관리자(/gonggam) 전용 스타일
   -----------------------------------------------------------------------------
   일반 사용자 화면과 같은 Plum 브랜드 토큰(--color-primary 등)을 그대로 쓰되,
   장식적인 일러스트/여백 대신 사이드바 + 데이터 테이블 중심의 "정보 밀도 높은" 톤으로
   의도적으로 다르게 구성합니다(스펙 18번). 클래스는 전부 admin- 접두사로 스코프해서
   기존 공개 페이지 스타일과 절대 충돌하지 않도록 합니다.
   ========================================================================== */

.admin-body { margin: 0; background: var(--color-surface); color: var(--color-text); min-height: 100vh; }

.admin-shell { display: flex; min-height: 100vh; align-items: stretch; }

/* 긴 본문에서도 왼쪽 배경은 페이지 끝까지 이어집니다. */
@media (min-width: 901px) {
  .admin-shell {
    background: linear-gradient(to right, #fff 0, #fff 239px, var(--color-border) 239px, var(--color-border) 240px, transparent 240px);
  }
}

.admin-sidebar {
  width: 240px; flex-shrink: 0;
  background: #ffffff; border-right: 1px solid var(--color-border);
  display: flex; flex-direction: column; gap: 1.25rem;
  padding: 1.25rem 1rem;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar-brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 800; font-size: 1.0625rem; color: var(--color-text);
  padding: 0.25rem 0.5rem;
}
.admin-sidebar-brand small { font-size: 0.6875rem; font-weight: 700; color: var(--color-primary); background: var(--color-primary-light); padding: 0.15rem 0.4rem; border-radius: 0.4rem; margin-left: 0.25rem; }
.admin-sidebar-nav { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; }
.admin-nav-link {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.65rem 0.75rem; border-radius: 0.75rem;
  font-size: 0.875rem; font-weight: 600; color: var(--color-text-muted);
  white-space: nowrap;
}
.admin-nav-link:hover { background: var(--color-surface); color: var(--color-text); }
.admin-nav-link.active { background: var(--color-primary-light); color: var(--color-primary-dark); }
.admin-nav-icon { font-size: 1rem; }
.admin-sidebar-footer { border-top: 1px solid var(--color-border); padding-top: 0.75rem; }
.admin-sidebar-footer a { font-size: 0.8125rem; font-weight: 600; color: var(--color-text-faint); }
.admin-sidebar-footer a:hover { color: var(--color-primary); }

/* 돌아가기 링크는 화면 높이가 아닌 전체 본문의 끝에 배치합니다.
   메뉴와 하단 링크 사이의 여백을 늘려 짧은 페이지에서도 아래 정렬을 유지합니다. */
@media (min-width: 901px) {
  .admin-sidebar { position: relative; height: auto; min-height: 100vh; overflow: visible; }
  .admin-sidebar-nav { flex: 0 0 auto; }
  .admin-sidebar-footer { margin-top: auto; flex-shrink: 0; }
}

.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.5rem; background: #fff; border-bottom: 1px solid var(--color-border);
  position: sticky; top: 0; z-index: 10;
}
.admin-topbar-title { font-size: 1.125rem; font-weight: 800; }
.admin-topbar-user { display: flex; align-items: center; gap: 0.75rem; font-size: 0.8125rem; color: var(--color-text-muted); font-weight: 600; }
.admin-role-badge { background: var(--color-primary); color: #fff; font-size: 0.6875rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 999px; margin-left: 0.35rem; }
.admin-content { padding: 1.5rem; max-width: 1200px; width: 100%; }

.admin-flash { padding: 0.75rem 1rem; border-radius: 0.75rem; font-size: 0.875rem; font-weight: 600; margin-bottom: 1.25rem; }
.admin-flash-ok { background: var(--color-secondary-light); color: var(--color-secondary-dark); }
.admin-flash-error { background: var(--color-alert-light); color: var(--color-alert); }

.admin-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.admin-stat-tile { background: #fff; border: 1px solid var(--color-border); border-radius: 1rem; padding: 1.1rem 1.25rem; }
.admin-stat-value { font-size: 1.5rem; font-weight: 800; color: var(--color-primary-dark); }
.admin-stat-label { font-size: 0.8125rem; color: var(--color-text-muted); font-weight: 600; margin-top: 0.15rem; }

.admin-panel { background: #fff; border: 1px solid var(--color-border); border-radius: 1rem; padding: 1.25rem; margin-bottom: 1.5rem; }
.admin-panel-title { font-size: 1rem; font-weight: 800; margin-bottom: 1rem; }

.admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.admin-table th { text-align: left; font-weight: 700; color: var(--color-text-faint); padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--color-border); white-space: nowrap; }
.admin-table td { padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.admin-table tr:hover td { background: var(--color-surface); }

.admin-badge { display: inline-flex; align-items: center; padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.6875rem; font-weight: 700; white-space: nowrap; }
.admin-badge-slate { background: var(--slate-100); color: var(--slate-600); }
.admin-badge-brand { background: var(--color-primary-light); color: var(--color-primary-dark); }
.admin-badge-amber { background: var(--amber-50); color: var(--amber-700); }
.admin-badge-red { background: var(--red-50); color: var(--red-700); }
.admin-badge-emerald { background: var(--emerald-50); color: var(--emerald-700); }

.admin-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.5rem 0.9rem; border-radius: 0.6rem; font-size: 0.8125rem; font-weight: 700;
  background: var(--color-primary); color: #fff;
}
.admin-btn:hover { background: var(--color-primary-dark); }
.admin-btn-ghost { background: transparent; color: var(--color-text-muted); border: 1px solid var(--color-border); }
.admin-btn-ghost:hover { background: var(--color-surface); color: var(--color-text); }
.admin-btn-danger { background: var(--red-50); color: var(--red-600); }
.admin-btn-danger:hover { background: var(--red-100); }
.admin-btn-sm { padding: 0.35rem 0.65rem; font-size: 0.75rem; }

.admin-form-group { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.admin-form-group label { font-size: 0.8125rem; font-weight: 700; color: var(--color-text); }
.admin-form-group input[type="text"], .admin-form-group input[type="number"], .admin-form-group input[type="date"],
.admin-form-group input[type="password"], .admin-form-group input[type="email"],
.admin-form-group select, .admin-form-group textarea {
  padding: 0.6rem 0.8rem; border: 1px solid var(--color-border); border-radius: 0.6rem;
  font-size: 0.8125rem; font-family: inherit; width: 100%;
}
.admin-form-group input:focus, .admin-form-group select:focus, .admin-form-group textarea:focus {
  outline: none; border-color: var(--brand-300); box-shadow: 0 0 0 2px var(--brand-300);
}
.admin-form-hint { font-size: 0.75rem; color: var(--color-text-faint); }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 1rem; }

.admin-toolbar { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-bottom: 1.25rem; }
.admin-empty { padding: 2.5rem 1rem; text-align: center; color: var(--color-text-faint); font-size: 0.875rem; }

.admin-image-preview {
  width: 100%; max-width: 320px; aspect-ratio: 16/9; border-radius: 0.85rem; overflow: hidden;
  background: var(--color-surface); border: 1px dashed var(--color-border);
  display: flex; align-items: center; justify-content: center; color: var(--color-text-faint); font-size: 0.8125rem;
  margin-bottom: 0.75rem;
}
.admin-image-preview img { width: 100%; height: 100%; object-fit: cover; }

.admin-danger-note { background: var(--color-alert-light); color: var(--color-alert); border-radius: 0.75rem; padding: 0.75rem 1rem; font-size: 0.8125rem; font-weight: 600; margin-bottom: 1rem; }

@media (max-width: 900px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar {
    width: 100%; height: auto; position: sticky; top: 0; z-index: 20;
    flex-direction: row; align-items: center; overflow-x: auto; overflow-y: visible;
    border-right: 0; border-bottom: 1px solid var(--color-border); padding: 0.6rem 0.75rem; gap: 0.75rem;
  }
  .admin-sidebar-brand, .admin-sidebar-footer { display: none; }
  .admin-sidebar-nav { flex-direction: row; flex: none; }
  .admin-nav-link span:last-child { display: none; }
  .admin-nav-link { padding: 0.6rem 0.7rem; }
  .admin-content { padding: 1rem; }
  .admin-stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .admin-form-grid { grid-template-columns: 1fr; }
}
@media (min-width: 640px) {
  .admin-stat-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

/* ---------------------------------------------------------------------------
   홈/디자인 관리 — 저장 전 실시간 미리보기 + 배너 요소 위치 편집기 (요청 23~28번)
   --------------------------------------------------------------------------- */
.hb-editor-layout { display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 1100px) {
  .hb-editor-layout { flex-direction: row; align-items: flex-start; }
  .hb-editor-panel { flex: 0 0 380px; max-width: 380px; }
  .hb-editor-preview { flex: 1 1 auto; min-width: 0; position: sticky; top: 1rem; }
}
.hb-editor-panel { display: flex; flex-direction: column; gap: 1rem; }
.hb-preview-toolbar { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.hb-preview-frame-wrap {
  border: 1px solid var(--color-border); border-radius: 1rem; background: var(--slate-100);
  padding: 1rem; overflow-x: auto; display: flex; justify-content: center;
}
.hb-preview-frame {
  width: 100%; max-width: 1040px; height: 520px; border: 1px solid var(--color-border); border-radius: 0.75rem;
  background: #fff; transition: width 0.2s ease;
}
.hb-preview-frame.mobile { max-width: 390px; height: 640px; }
.hb-position-list { display: flex; flex-direction: column; gap: 0.4rem; }
.hb-position-row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.5rem 0.65rem; border: 1px solid var(--color-border); border-radius: 0.6rem; font-size: 0.8125rem;
}
.hb-position-row .hb-coords { color: var(--color-text-faint); font-variant-numeric: tabular-nums; }
.hb-unsaved-dot { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--red-700); margin-left: 0.35rem; vertical-align: middle; }

/* iframe 내부(미리보기 페이지)에서만 쓰는 드래그 손잡이 — 실제 사용자 홈 화면에는 절대 삽입되지 않음 */
.hb-drag-handle {
  position: fixed; width: 24px; height: 24px; border-radius: 50%;
  background: var(--color-primary); color: #fff; font-size: 12px; line-height: 24px; text-align: center;
  cursor: grab; z-index: 9999; box-shadow: 0 2px 6px rgba(0,0,0,0.25); touch-action: none; user-select: none;
}
.hb-drag-handle.dragging { cursor: grabbing; background: var(--color-primary-dark, var(--color-primary)); }

/* ============================================================================
   홈 메인 배너("Hero") — 2026-09-30 구조 변경(고정 아트보드)
   브라우저 폭에 따라 배너 전체를 계속 축소하던 방식을 없애고, PC(1440×480)/
   Tablet(1024×500)/Mobile(390×520) 3개의 완전히 독립된 "고정 아트보드"로 바꿨습니다.
   각 아트보드의 실제 크기(px)는 lib/homeHero.js가 인라인 style(width/height)로 직접
   넣어주므로, 이 클래스 자체에는 크기를 두지 않습니다 — 실제 홈 화면(.hero-banner-crop
   이 감싸서 "자르기"만 함)과 관리자 편집기(.hbedit-stage가 감싸서 "축소 미리보기"만 함)가
   모두 같은 .hero-banner 마크업을 그대로 공유합니다(관리자 전용 디자인 없음).
   배경/장식은 관리자가 올리는 이미지 한 장(.hero-banner-bg의 background-image)으로만
   관리하고, 실제로 동작하는 요소(문구/검색창/검색버튼/바로가기)만 그 위에 얹는 별도
   HTML(.hb-el-abs)로 관리합니다.
   ============================================================================ */
.hero-banner {
  position: relative;
  overflow: visible;
  border-radius: 1.25rem;
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(0,0,0,0.06));
}
.hero-banner-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background-color: var(--color-primary-light);
  background-image: linear-gradient(135deg, var(--color-primary-light), #ffffff);
  background-size: cover;
  background-position: center;
}
.hero-banner-placeholder-hint {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--color-text-faint); font-size: 0.85rem; font-weight: 600; pointer-events: none;
}
.hero-banner-form-layer { position: absolute; inset: 0; margin: 0; pointer-events: none; }
.hb-el-abs { position: absolute; box-sizing: border-box; }
/* 2026-09-17: 글자 크기는 더 이상 cqw 배율이 아니라, 각 요소가 직접 들고 있는 리터럴
   px 인라인 스타일(font-size:Npx)로 정해집니다(요청 1-1/8번 — 관리자 미리보기와 실제
   홈 화면이 같은 값이면 항상 같은 절대 크기로 보이게 하기 위함). 아래 클래스들은 인라인
   스타일이 없을 때를 대비한 최소 fallback과, 글자 크기 이외의 공통 스타일(정렬 기준,
   기본 색/두께, 줄바꿈 규칙)만 담당합니다. */
.hero-banner-title { margin: 0; font-weight: 800; line-height: 1.18; color: var(--color-text); font-size: 2.4rem; }
.hero-banner-subtitle { margin: 0.4em 0 0; color: var(--color-text-muted); font-size: 1rem; }
.hero-banner-custom-text { margin: 0; color: var(--color-text); font-size: 1rem; }
.hero-banner-search-input {
  width: 100%; height: 100%; box-sizing: border-box; border-radius: 999px;
  border: 1px solid var(--color-border); background: #fff; padding: 0 5%;
  font-size: 1rem; pointer-events: auto; font-family: inherit;
}
.hero-banner-search-btn {
  width: 100%; height: 100%; box-sizing: border-box; border-radius: 999px; border: none;
  background: var(--color-primary); color: #fff; font-weight: 700; font-size: 1rem;
  cursor: pointer; pointer-events: auto; font-family: inherit;
  display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: hidden; white-space: normal; line-height: 1.15; padding: 0 6%;
}
/* 바로가기 버튼 3종(요청 7-1: 시험 일정/커뮤니티/공부 인증) — 이제 각각 독립된 위치·크기·
   글자크기를 가지는 별도 요소입니다. 버튼 안 글자는 크기가 줄어도 항상 정확히 가운데
   정렬되며(요청 7-3), 박스를 벗어나 튀어나오지 않도록 줄바꿈 후 overflow:hidden으로
   막습니다(요청 7-2 — "박스를 줄여도 글자가 밖으로 삐져나오면 안 됨"). */
.hero-banner-shortcut-btn {
  width: 100%; height: 100%; box-sizing: border-box; border-radius: 999px;
  background: rgba(255,255,255,0.92); border: 1px solid var(--color-border);
  font-weight: 600; color: var(--color-text); text-decoration: none; pointer-events: auto;
  display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: hidden; white-space: normal; line-height: 1.15; padding: 0 6%; overflow-wrap: anywhere;
}

/* 관리자 편집 모드에서만 붙는 선택/드래그/리사이즈 UI. 실제 사용자 홈 화면에는 editable이
   항상 false라 이 요소들 자체가 아예 렌더링되지 않습니다. */
.hero-banner.hb-editor .hb-el-abs { outline: 1px dashed transparent; }
.hero-banner.hb-editor .hb-el-abs:hover { outline-color: rgba(107,44,111,0.35); }
.hb-el-abs.hb-selected { outline: 2px dashed var(--color-primary) !important; outline-offset: 2px; z-index: 5; }
.hb-move-handle {
  position: absolute; top: -11px; left: -11px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--color-primary); color: #fff; font-size: 11px; line-height: 22px; text-align: center;
  cursor: move; z-index: 6; box-shadow: 0 1px 4px rgba(0,0,0,0.25); touch-action: none; user-select: none;
  pointer-events: auto; display: none;
}
.hb-resize-handle {
  position: absolute; bottom: -7px; right: -7px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 2px solid var(--color-primary); cursor: nwse-resize; z-index: 6;
  touch-action: none; pointer-events: auto; display: none;
}
.hero-banner.hb-editor .hb-el-abs:hover .hb-move-handle,
.hero-banner.hb-editor .hb-el-abs.hb-selected .hb-move-handle,
.hero-banner.hb-editor .hb-el-abs:hover .hb-resize-handle,
.hero-banner.hb-editor .hb-el-abs.hb-selected .hb-resize-handle { display: block; }

/* 숨김(visible=false) 처리된 요소 — 관리자 화면에서는 흐리게 표시해 계속 클릭해서
   선택/해제할 수 있게 두고(요청 4번: 삭제 대신 숨김이 적절한 기본 요소), 실제 홈 화면
   에서는 lib/homeHero.js가 아예 렌더링하지 않습니다. */
.hero-banner.hb-editor .hb-hidden-el { opacity: 0.35; }
.hero-banner.hb-editor .hb-hidden-el::after {
  content: "숨김"; position: absolute; top: -1.4em; left: 0; font-size: 0.65rem; font-weight: 700;
  color: #fff; background: var(--color-text-faint); padding: 0.05em 0.5em; border-radius: 999px; white-space: nowrap;
}
/* 관리자가 새로 추가한 커스텀 텍스트 요소는 다른 요소와 구분되는 얇은 점선(보라 계열
   대신 회색)으로 표시해서, "삭제 가능한 요소"라는 것을 시각적으로 살짝 구분합니다. */
.hero-banner.hb-editor .hb-custom-text { outline-style: dashed; outline-color: rgba(0,0,0,0.18); }

/* 관리자 "홈/디자인 관리"의 선택된 요소 편집 패널(요청 13번) */
.hb-select-fields { display: flex; flex-direction: column; gap: 0.85rem; }
.hb-select-fields textarea { width: 100%; resize: vertical; }
.hb-fs-chip-active,
.hb-select-fields [data-hb-fs-chip].hb-fs-chip-active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.hb-select-fields [data-hb-toggle].hb-toggle-active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* 관리자 미리보기 축소(scale-to-fit) 박스 — public/hero-banner-editor.js가 실제 패널 폭에
   맞춰 transform:scale()과 바깥 래퍼(.hb-editor-preview-outer)의 height를 계산해 넣습니다.
   transform-origin을 top left로 둬서, 스케일이 1이든 0.3이든 좌상단 기준으로만 줄어들고
   margin:0 auto가 (스케일 전) 원래 너비를 기준으로 좌우를 가운데 정렬합니다 — 아트보드가
   패널보다 넓을 때는 자동으로 왼쪽 정렬되어 잘리는 부분 없이 꽉 차 보입니다. */
.hbedit-stage { margin: 0 auto; transform-origin: top left; }
.hb-editor-preview-outer { position: relative; }

/* 실제 홈 화면 전용 "잘리기(crop)" 컨테이너(요청 3/4번) — 뷰포트가 그 기기의 아트보드보다
   좁아져도 배너를 축소하지 않고, 중앙 기준으로 넘치는 부분만 안 보이게(overflow:hidden)
   처리합니다. 기기별 커스텀 breakpoint(HERO_DEVICE_BREAKPOINTS — pc:1200/tablet:768)는
   사이트 전체에서 쓰는 lg=1024px 반응형 breakpoint와 별개이며, 이 클래스 밖의 어떤
   요소에도 영향을 주지 않습니다. */
.hero-banner-crop {
  display: none;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  border-radius: 1.25rem;
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(0,0,0,0.06));
}
.hero-banner-crop > .hero-banner {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: inherit;
  box-shadow: none;
}
.hero-banner-crop[data-device="mobile"] { display: block; height: 520px; max-width: 390px; }
.hero-banner-crop[data-device="tablet"],
.hero-banner-crop[data-device="pc"] { display: none; }
@media (min-width: 768px) {
  .hero-banner-crop[data-device="mobile"] { display: none; }
  .hero-banner-crop[data-device="tablet"] { display: block; height: 500px; max-width: 1024px; }
}
@media (min-width: 1200px) {
  .hero-banner-crop[data-device="tablet"] { display: none; }
  .hero-banner-crop[data-device="pc"] { display: block; height: 480px; max-width: 1440px; }
}

/* "풀블리드" 래퍼 — 사이트 본문 컨테이너(<main class="max-w-8xl mx-auto px-4 sm:px-6">)의
   좌우 여백(px-4=1rem, sm:px-6=1.5rem)을 정확히 상쇄해서, 화면이 충분히 넓을 때(≥1200px)
   PC 아트보드(1440px)가 잘림 없이 본문 폭까지 그대로 채워지도록 합니다. main 자체가
   max-w-8xl(1440px)로 캡되어 있어서, 이 음수 마진을 더해도 배너가 그 폭을 넘어가지
   않습니다. */
.hero-banner-bleed { margin-left: -1rem; margin-right: -1rem; }
@media (min-width: 640px) {
  .hero-banner-bleed { margin-left: -1.5rem; margin-right: -1.5rem; }
}
/* 자료 검토 전용: 기존 관리자 화면의 배치를 건드리지 않고 긴 출처/비교표도 읽기 쉽게 합니다. */
.catalog-workspace h2 { margin: 0 0 12px; font-size: 22px; font-weight: 800; }
.catalog-workspace h3 { margin: 12px 0 8px; font-size: 17px; font-weight: 700; }
.catalog-workspace p { margin: 10px 0; line-height: 1.65; }
.catalog-workspace summary { cursor: pointer; font-weight: 700; }
.catalog-workspace label { display: block; font-weight: 600; font-size: 13px; }
.catalog-workspace input:not([type="hidden"]):not([type="checkbox"]),
.catalog-workspace select, .catalog-workspace textarea {
  box-sizing: border-box; width: 100%; min-width: 0; margin-top: 6px; padding: 10px 12px;
  border: 1px solid #e2dce8; border-radius: 10px; background: white; font: inherit;
}
.catalog-workspace input[type="checkbox"] { width: auto; margin-right: 6px; }
.catalog-workspace .admin-table { width: 100%; table-layout: fixed; }
.catalog-workspace .admin-table td, .catalog-workspace .admin-table th { overflow-wrap: anywhere; }
.catalog-workspace .admin-btn:disabled { opacity: .5; cursor: not-allowed; }
/* 헤더는 로고·전체 메뉴·검색·계정 영역을 함께 놓을 공간이 필요합니다.
   본문 lg 기준과 분리해 1400px 미만에서는 기존 접이식 메뉴를 사용합니다.
   로고 묶음이 flex 축소로 메뉴 아래에 깔리지 않도록 최소 폭도 보존합니다. */
header.sticky > div > .flex > .flex:first-child > .flex:first-child { flex-shrink: 0; }
@media (min-width: 1024px) and (max-width: 1399px) {
  header.sticky .lg\:flex, header.sticky .lg\:block { display: none !important; }
  header.sticky .lg\:hidden { display: flex !important; }
  #mobile-search-panel.hidden { display: none !important; }
  #mobile-nav-backdrop { display: block !important; }
  #mobile-nav-drawer { display: flex !important; }
}
/* 자격증 상세 일정은 회차 → 주요 날짜 → 보조 정보 순으로 읽히게 합니다.
   작은 회색 문장 안에 묻혔던 날짜를 독립된 영역으로 나누고 모바일에서는 세로로 쌓습니다. */
#schedule { scroll-margin-top: 110px; }
#schedule > div { background: transparent; border: 0; padding: 0; }
#schedule > div > .border-l-4 { margin: 0 0 20px; padding: 24px; border: 1px solid #e5dce8; border-radius: 20px; background: #fff; box-shadow: 0 4px 18px rgba(74,32,78,.04); }
#schedule > div > .border-l-4 > .flex { flex-wrap: wrap; align-items: flex-start; gap: 18px; }
#schedule > div > .border-l-4 > .flex > .min-w-0 { flex: 1 1 520px; }
#schedule .font-semibold.text-sm.text-slate-800 { font-size: 21px; font-weight: 800; letter-spacing: -.025em; color: #34203c; margin-bottom: 16px; }
.cert-schedule-dates { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 0 0 16px; }
.cert-schedule-dates > div { padding: 16px; background: #faf7fb; border-radius: 12px; }
.cert-schedule-dates dt { font-size: 12px; font-weight: 700; color: #76687c; margin-bottom: 9px; }
.cert-schedule-dates dd { margin: 0; font-size: 16px; font-weight: 750; line-height: 1.6; color: #402149; font-variant-numeric: tabular-nums; word-break: keep-all; }
.cert-schedule-preview-note {padding:12px 0;color:var(--color-text-muted);font-size:13px;line-height:1.7}
.cert-detail-shortcuts {padding:16px 18px;background:rgba(255,255,255,.97);border:1px solid var(--color-border);border-radius:14px;backdrop-filter:blur(8px)}
.cert-detail-shortcuts-heading {font-size:13px;line-height:1.7;color:var(--color-text-muted);margin:0 0 11px;word-break:keep-all;overflow-wrap:anywhere}
.cert-detail-shortcuts-heading strong {font-weight:700;color:var(--color-primary)}
.cert-detail-shortcuts-buttons {display:flex;flex-wrap:wrap;gap:8px}
.cert-detail-shortcuts-buttons a {display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 17px;border:1px solid #d9c5e3;border-radius:10px;background:var(--color-surface);color:var(--color-primary);font-size:13px;font-weight:700;white-space:nowrap}
.cert-detail-shortcuts-buttons a:hover {background:var(--color-primary-light);border-color:var(--color-primary)}
@media(max-width:639px){.cert-detail-shortcuts{padding:13px 14px}.cert-detail-shortcuts-buttons{gap:6px}.cert-detail-shortcuts-buttons a{padding:8px 12px;font-size:12px}.cert-detail-shortcuts-heading{font-size:12px}}
.cert-schedule-more {margin-top:14px;border-top:1px solid var(--color-border)}
.cert-schedule-more>summary {display:flex;align-items:center;justify-content:center;gap:12px;padding:14px 16px;margin-top:12px;border:1px solid var(--color-border);border-radius:12px;background:var(--color-surface);color:var(--color-primary);font-size:14px;font-weight:700;list-style:none;cursor:pointer}
.cert-schedule-more>summary::-webkit-details-marker {display:none}
.cert-schedule-more>summary small {font-size:12px;margin-left:6px;font-weight:500}
.cert-schedule-more-open {display:none}
.cert-schedule-more[open] .cert-schedule-more-closed {display:none}
.cert-schedule-more[open] .cert-schedule-more-open {display:inline}
.cert-schedule-more[open] .cert-schedule-more-arrow {transform:rotate(180deg)}
.cert-schedule-more-list {max-height:600px;overflow-y:auto;overflow-x:hidden;padding:0 8px 0 12px;margin-top:12px;scrollbar-gutter:stable;overscroll-behavior:contain}
#schedule .border-l-4 > div.text-xs { font-size: 14px; line-height: 1.85; color: #665c6c; }
#schedule .border-l-4 > p { font-size: 12px; line-height: 1.8; padding-top: 12px; border-top: 1px solid #eee7f0; }
#schedule .border-l-4 > div.text-xs > p:first-child { font-weight: 750; color: #6b2c6f; }
@media(max-width: 639px) {
  #schedule > div > .border-l-4 { padding: 18px; }
  .cert-schedule-dates { grid-template-columns: 1fr; gap: 8px; }
  .cert-schedule-dates > div { display: grid; grid-template-columns: 72px 1fr; align-items: baseline; gap: 8px; padding: 12px; }
  .cert-schedule-dates dt { margin: 0; }
}
.cert-phase { display:inline-block; vertical-align:middle; padding:4px 10px; margin-left:6px; border-radius:8px; background:#f0e4f2; color:#6b2c6f; font-size:13px; font-weight:750; }
/* 국가/민간 구분은 탭, 등급과 시험 종류는 접이식 목록으로 분리합니다.
   관리자 테이블은 그룹 안에 유지해 기존 수정·공개·삭제 폼의 권한 흐름을 보존합니다. */
.cert-kind-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:20px 0; }
.cert-kind-tabs a { padding:11px 17px; border:1px solid #e9e0ec; border-radius:12px; background:#fff; color:#66566d; font-weight:700; text-decoration:none; }
.cert-kind-tabs a[aria-current="page"] { background:#6b2c6f; color:#fff; border-color:#6b2c6f; }
.cert-kind-tabs a span { font-size:12px; margin-left:7px; opacity:.75; }
.cert-group-list { display:grid; gap:12px; }
.cert-group { border:1px solid #e7ddeb; border-radius:16px; background:#fff; overflow:hidden; min-width:0; }
.cert-group > summary { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:20px 24px; cursor:pointer; list-style:none; }
.cert-group > summary::-webkit-details-marker { display:none; }
.cert-group > summary small { display:block; font-size:12px; color:#8a768e; margin-bottom:5px; }
.cert-group > summary strong { font-size:19px; color:#422849; }
.cert-group-count { display:inline-flex; align-items:center; gap:10px; flex-shrink:0; color:#806888; font-size:13px; white-space:nowrap; }
.cert-group-chevron { display:block; width:16px; height:16px; flex:0 0 16px; opacity:.75; transition:transform .18s ease; transform-origin:center; }
.cert-group[open] > summary { background:#faf6fb; border-bottom:1px solid #eee5f0; }
/* 부모가 열려도 접힌 하위 분야의 화살표까지 회전하지 않도록 직속 제목만 선택합니다. */
.cert-group[open] > summary > .cert-group-count .cert-group-chevron { transform:rotate(180deg); }
.cert-group-content { padding:20px; }
.cert-group-content .cert-pill-grid { grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); }
.cert-group-hint { color:#86778b; font-size:13px; margin:16px 0; }
.cert-field-filter > summary { cursor:pointer; font-size:14px; color:#796680; margin:16px 0; }
@media(max-width:639px) { .cert-group > summary { padding:16px; } .cert-group-content { padding:12px; } .cert-kind-tabs a { padding:9px 11px; } }
.cert-field-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; align-items:start; } .cert-field-group[open] { grid-column:1/-1; } .cert-field-group .cert-group > summary { padding:12px 16px; } .cert-field-group .cert-group > summary strong { font-size:16px; } @media(max-width:700px) { .cert-field-grid { grid-template-columns:1fr; } }
/* 관리자 공통 접이식 작업 패널: 제목은 남기고 실제 설정만 접습니다. */
.admin-fold { border:1px solid #e7ddea; border-radius:12px; background:white; margin:12px 0; overflow:hidden; }
.admin-fold > summary { padding:15px 18px; cursor:pointer; color:#48304f; font-size:15px; font-weight:750; }
.admin-fold[open] > summary { background:#faf7fb; border-bottom:1px solid #eee5f0; }
.admin-fold > .admin-panel { border:0; box-shadow:none; border-radius:0; margin:0; padding:18px; }
.admin-fold-tools,.admin-table-pages { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:10px 0 16px; }
.admin-table-pages { justify-content:flex-end; font-size:12px; color:#786780; padding:10px; }
.admin-body [hidden] { display:none !important; }
.admin-body .admin-panel p { line-height:1.65; }
.admin-body .admin-content > p { margin:10px 0; }
.admin-body .admin-form-hint { max-width:85ch; }
.admin-body .admin-table td { padding-top:10px; padding-bottom:10px; }
.admin-fold > summary { display:flex; align-items:center; justify-content:space-between; gap:12px; list-style:none; } .admin-fold > summary::after { content:"＋"; color:#927499; } .admin-fold[open] > summary::after { content:"−"; }
/* 모바일에서는 하단 메뉴와 중복되는 배너 검색·바로가기를 숨깁니다.
   검색은 공통 헤더의 아이콘으로 열고, PC·태블릿 배너 구성은 유지합니다. */
@media (max-width: 767px) {
  .hero-uploaded[data-device="mobile"] .hero-uploaded-actions { display: none; }
}
/* 홈 배너 문구는 장식 이미지와 대비되도록 단정한 자간과 얇은 강조선을 사용합니다. */
.hero-banner-title { letter-spacing:-.045em; line-height:1.3; word-break:keep-all; }
.hero-banner-crop:has(> .hero-uploaded) { height:auto; max-width:1440px; }
.hero-banner-crop > .hero-uploaded { position:relative; left:auto; transform:none; width:100% !important; height:auto !important; }
.hero-uploaded { background:#fffafb; }
.hero-uploaded-art { position:relative; overflow:hidden; }
.hero-uploaded-art img { display:block; width:100%; height:auto; }
.hero-uploaded-actions { display:flex; align-items:center; justify-content:center; gap:32px; padding:20px 32px 28px; }
.hero-uploaded-search { display:flex; gap:8px; flex:1; max-width:520px; margin:0; }
.hero-uploaded-search input { min-width:0; width:100%; border:1px solid #e5dce8; border-radius:12px; background:white; padding:14px 16px; font-size:15px; }
.hero-uploaded-search button { border:0; border-radius:12px; padding:12px 24px; background:#6b2c6f; color:white; white-space:nowrap; font-weight:700; }
.hero-uploaded-actions nav { display:flex; gap:24px; font-size:14px; font-weight:600; color:#66536b; }
.hero-uploaded[data-device="mobile"] .hero-uploaded-art { width:100%; }
.hero-uploaded[data-device="mobile"] .hero-uploaded-art img { position:static; width:100%; height:auto; }
.hero-uploaded[data-device="mobile"] .hero-uploaded-actions { flex-direction:column; gap:20px; padding:8px 20px 24px; }
.hero-uploaded[data-device="mobile"] .hero-uploaded-search { width:100%; }
.hero-uploaded[data-device="mobile"] .hero-uploaded-actions nav { justify-content:space-between; width:100%; }
.hero-uploaded[data-device="tablet"] .hero-uploaded-actions { gap:20px; padding:16px 24px 24px; }
.hero-banner-subtitle { letter-spacing:-.02em; line-height:1.7; word-break:keep-all; }
.hero-banner-title .highlight { padding:0 .06em; transform:none; color:inherit; }
.hero-banner-title .highlight::before { top:65%; bottom:2%; left:0; right:0; border-radius:4px; background-image:none; background-color:#d9f26b; }

/* 달력 안에서 보기 범위를 전환해 날짜 상세와 같은 필터를 공유합니다. */
.schedule-view-switch { display:flex; justify-content:flex-end; margin-bottom:14px; }
.schedule-view-tabs { display:inline-flex; padding:4px; gap:4px; border-radius:12px; background:#f3edf5; }
.schedule-view-tabs a { padding:9px 16px; border-radius:9px; font-size:14px; font-weight:700; color:#75637c; white-space:nowrap; }
.schedule-view-tabs a[aria-current="page"] { background:var(--color-primary); color:white; }
.schedule-view-tabs a:focus-visible { outline:2px solid var(--color-primary); outline-offset:2px; }
.schedule-mine-notice { padding:14px; margin-bottom:14px; border-radius:12px; background:#faf5fc; font-size:14px; }
.schedule-mine-notice a { font-weight:700; text-decoration:underline; }
@media(max-width:480px) { .schedule-view-tabs { width:100%; } .schedule-view-tabs a { flex:1; text-align:center; } }

/* 자격증 게시판 탐색은 페이지당 12개로 제한해 최신글이 아래로 밀리지 않게 합니다. */
#board-finder { scroll-margin-top:100px; }
.community-kind-tabs { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.community-kind-tabs a,.community-board-pages a { padding:8px 13px; border-radius:8px; background:#f5f1f7; font-size:14px; }
.community-kind-tabs [aria-current],.community-board-pages [aria-current] { background:var(--color-primary); color:white; }
.community-board-filters { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.community-board-filters input { flex:1 1 210px; min-width:0; }
.community-board-filters input,.community-board-filters select { border:1px solid var(--color-border); padding:10px; border-radius:8px; background:white; font-size:14px; }
.community-board-filters select { max-width:100%; }
.community-board-filters button { background:var(--color-primary); color:white; padding:10px 18px; border-radius:8px; }
.community-board-count { font-size:12px; color:var(--color-text-muted); margin-bottom:10px; }
.community-board-results { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border-top:1px solid var(--color-border); }
.community-board-results a { display:flex; flex-direction:column; gap:5px; padding:13px 10px; border-bottom:1px solid var(--color-border); min-width:0; }
.community-board-results a:hover { background:#faf6fc; }
.community-board-results strong { font-size:14px; overflow-wrap:anywhere; }
.community-board-results small { font-size:11px; color:var(--color-text-muted); }
.community-board-pages { display:flex; justify-content:center; gap:6px; margin-top:16px; }
@media(max-width:480px) { .community-board-results { grid-template-columns:1fr; } .community-board-filters select { flex:1; min-width:0; } }

/* 완성형 배너도 PC·태블릿의 검색과 바로가기는 문구 아래, 그림 안에 둡니다.
   모바일만 별도 하단 배치를 유지해 작은 화면의 입력 공간을 확보합니다. */
.hero-uploaded:not([data-device="mobile"]) .hero-uploaded-actions { position:absolute; left:11.5%; top:66%; width:43%; padding:0; flex-direction:column; align-items:stretch; gap:14px; }
.hero-uploaded:not([data-device="mobile"]) .hero-uploaded-search { flex:none; max-width:none; width:100%; }
.hero-uploaded:not([data-device="mobile"]) .hero-uploaded-actions nav { gap:8px; justify-content:space-between; }
.hero-uploaded:not([data-device="mobile"]) .hero-uploaded-actions nav a { flex:1; text-align:center; padding:10px 6px; border:1px solid var(--color-border); border-radius:12px; background:rgba(255,255,255,.9); white-space:nowrap; }
.hero-uploaded[data-device="tablet"] .hero-uploaded-actions { left:9.8%; top:63%; width:47%; gap:10px; }
.hero-uploaded[data-device="tablet"] .hero-uploaded-search input { padding:10px; font-size:13px; }
.hero-uploaded[data-device="tablet"] .hero-uploaded-search button { padding:10px 16px; }
.hero-uploaded[data-device="tablet"] .hero-uploaded-actions nav { font-size:12px; }

.hero-uploaded .hero-uploaded-actions nav a { display:flex; align-items:center; justify-content:center; gap:7px; }
.hero-shortcut-icon { width:21px; height:21px; flex-shrink:0; color:var(--color-primary); }

.social-login-buttons { display:grid; gap:10px; }
.social-login-button { display:flex; align-items:center; justify-content:center; width:100%; min-height:48px; padding:12px; border-radius:10px; font-size:14px; font-weight:700; border:1px solid transparent; gap:9px; }
.social-kakao { background:#fee500; color:#191919; }
.social-google { background:white; color:#1f1f1f; border-color:#dadce0; }
.social-naver { background:#03c75a; color:white; }
.social-login-button:disabled { cursor:default; }
.social-login-button small { font-size:11px; font-weight:400; }
.social-login-divider { display:flex; align-items:center; gap:12px; margin:22px 0; font-size:12px; color:#8b7d90; }
.social-login-divider:before,.social-login-divider:after { content:''; height:1px; flex:1; background:#e6dce9; }

/* 사용자 제공 로고의 글자와 테두리 비율을 유지합니다. 위쪽 캐릭터 조각은 가립니다. */
.brand-image-logo { display:inline-block; position:relative; width:112px; height:44px; overflow:hidden; flex-shrink:0; }
.brand-image-logo img { display:block; position:absolute; width:100%; max-width:none; height:auto; top:-6px; left:0; }
.brand-image-logo-large { width:182px; height:73px; }
.brand-image-logo-large img { top:-10px; }

.brand-image-logo { width:120px; height:58px; overflow:visible; }
.brand-image-logo img { position:static; width:100%; height:100%; object-fit:contain; }
.brand-image-logo-large { width:200px; height:98px; }


.notification-dot {position:absolute;right:7px;top:5px;width:7px;height:7px;background:#ed2581;border-radius:50%;border:1px solid white}
.notif-dropdown {width:330px;max-width:calc(100vw - 24px);max-height:70vh;overflow:auto}
.notif-dropdown-title {display:flex;justify-content:space-between;gap:12px}
.notif-dropdown-title a,.notification-all {font-size:12px;color:#713678}
.notification-all {display:block;text-align:center;padding:14px}
.notification-item {display:block;padding:14px 16px;border-bottom:1px solid #eee5f0;font-size:13px}
.notification-item strong,.notification-item span,.notification-item small {display:block;line-height:1.6}
.notification-item span,.notification-item small {color:#837586}
.notification-item.unread {background:#faf4fc}
.notification-page {max-width:760px;margin:24px auto}
.notification-page h1 {font-size:25px;font-weight:800;margin-bottom:12px}
.notification-page h2 {font-size:17px;font-weight:700;margin-bottom:12px}
.notification-page p {font-size:13px;color:#76677b;line-height:1.7;margin:12px 0}
.notification-settings {border:1px solid #e9ddec;border-radius:16px;padding:20px;margin:24px 0;background:#fff}
.notification-settings label {display:inline-flex;align-items:center;gap:6px;margin:6px 18px 6px 0;font-size:14px}
.notification-page button {padding:9px 15px;border-radius:10px;background:#713678;color:white;font-size:13px}
.notification-list-heading {display:flex;align-items:center;justify-content:space-between;margin:20px 0}
.notification-pagination {display:flex;justify-content:center;gap:20px;margin:24px 0}
.notification-manage-link {display:block;margin-bottom:24px;padding:15px 20px;border:1px solid #e9ddec;border-radius:14px;font-weight:600;color:#713678}
@media(max-width:767px){.notif-dropdown{position:fixed;top:76px;right:12px}.notification-page{margin:10px auto}}

/* 자격증 검색 배너는 cover로 확대하지 않고 원본 비율을 유지합니다.
   모바일은 글과 그림을 분리하여 작은 화면에서도 캐릭터 전체를 보여줍니다. */
.cert-search-art-zone {padding:0;background:#fcf6ff;overflow:hidden}
/* 배너의 밝은 바탕이 페이지와 섞이지 않도록 얇은 선만 겹쳐 표시합니다.
   안쪽 크기와 이미지 비율을 바꾸지 않으며 검색 버튼의 클릭도 가리지 않습니다. */
.cert-search-art-zone::after {content:"";position:absolute;inset:0;border:1px solid #d9c5e3;border-radius:inherit;pointer-events:none}
.cert-search-art {display:block;width:100%;height:auto;object-fit:contain}
.cert-search-picture {display:block;width:100%;min-width:0}
/* 검색 범위와 입력창을 한 덩어리로 묶어 기존 둥근 검색창의 모양을 유지합니다.
   작은 화면에서도 선택 메뉴가 입력창을 밀어 가로 스크롤을 만들지 않게 합니다. */
.cert-search-input-group {display:flex;align-items:center;background:white;border:1px solid var(--color-border);border-radius:999px;box-shadow:var(--shadow-xs);overflow:hidden}
.cert-search-input-group:focus-within {outline:2px solid var(--brand-300);outline-offset:1px}
.cert-search-input-group .cert-search-scope {appearance:none;flex:0 0 106px;width:106px;min-width:0;padding:12px 26px 12px 16px;border:0;border-right:1px solid var(--color-border);border-radius:0;background:linear-gradient(45deg,transparent 50%,#6b2c6f 50%) calc(100% - 16px) 50%/5px 5px no-repeat,linear-gradient(135deg,#6b2c6f 50%,transparent 50%) calc(100% - 11px) 50%/5px 5px no-repeat;color:var(--color-primary);font-size:13px;font-weight:600;cursor:pointer}
.cert-search-input-group input {flex:1;min-width:0;width:0;border:0;box-shadow:none;padding-left:14px;padding-right:12px;background:transparent}
.cert-search-input-group input:focus,.cert-search-input-group select:focus {outline:0;box-shadow:none}
@media(max-width:767px){.cert-search-input-group .cert-search-scope{flex-basis:96px;width:96px;padding-left:12px;font-size:12px}.cert-search-input-group input{font-size:13px;padding-left:10px}.cert-search-zone-inner .search-icon-btn{width:44px;height:44px}}
/* 목록 배너는 메인 히어로보다 낮게 유지합니다. 그림 자체를 함께 축소해 오른쪽에
   두므로 캐릭터를 잘라 높이를 줄이거나 이미지를 세로로 찌그러뜨리지 않습니다. */
@media(min-width:768px) {
 .cert-search-art-zone .cert-search-picture {display:flex;justify-content:flex-end;aspect-ratio:2103 / 374;min-height:220px;max-height:280px}
 .cert-search-art-zone .cert-search-art {width:auto;height:100%;max-width:100%;object-fit:contain;flex:none;-webkit-mask-image:linear-gradient(to right,transparent,#000 18%);mask-image:linear-gradient(to right,transparent,#000 18%)}
}
.cert-search-art-zone .cert-search-zone-inner {position:absolute;left:5%;top:50%;transform:translateY(-50%);width:57%;max-width:620px}
.cert-search-art-zone .cert-search-zone-inner h1 {font-size:clamp(24px,2.3vw,34px);line-height:1.35;letter-spacing:-.035em;word-break:keep-all}
.cert-search-art-zone .cert-search-zone-inner p {word-break:keep-all;line-height:1.7}
@media(min-width:768px) and (max-width:1199px) {
 .cert-search-art-zone .cert-search-picture {min-height:200px}
 .cert-search-art-zone .cert-search-zone-inner {width:58%;left:4%}
 .cert-search-art-zone .cert-search-zone-inner h1 {font-size:24px}
 .cert-search-art-zone .cert-search-zone-inner p {font-size:13px}
 .cert-search-art-zone .cert-search-zone-inner .mb-7 {margin-bottom:18px}
 .cert-search-art-zone .search-icon-form input {font-size:12px}
}
@media(max-width:767px) {
 .cert-search-art-zone {display:flex;flex-direction:column}
 .cert-search-art-zone .cert-search-zone-inner {position:relative;left:auto;top:auto;transform:none;width:100%;max-width:none;padding:26px 22px 8px;order:0}
 .cert-search-art-zone .cert-search-zone-inner h1 {font-size:25px}
 .cert-search-art-zone .cert-search-zone-inner p {font-size:13px}
 .cert-search-art-zone .cert-search-zone-inner .mb-7 {margin-bottom:20px}
 .cert-search-art-zone .cert-search-picture {order:1}
}

/* 짧은 자격 종류는 한 화면에 모으고 선택한 종류의 분야만 표시합니다.
   모바일도 가로 스크롤 없이 줄바꿈하여 모든 종류를 찾을 수 있게 합니다. */
.cert-compact-browser {scroll-margin-top:100px}
.cert-grade-tabs {display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 20px}
.cert-grade-tabs a {display:inline-flex;align-items:center;gap:7px;padding:10px 14px;border:1px solid #e7ddeb;border-radius:12px;background:#fff;color:#67506f;font-size:14px;line-height:1.4}
.cert-grade-tabs a small {font-size:11px;color:#927d98}
.cert-grade-tabs a b {font-size:11px;font-weight:500;opacity:.7}
.cert-grade-tabs a[aria-current="page"] {border-color:#713678;background:#713678;color:white}
.cert-grade-tabs a[aria-current="page"] small {color:#e8d8ef}
.cert-selection-heading {display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 14px}
.cert-selection-heading strong {font-size:18px;color:#422849}
.cert-selection-heading span {font-size:12px;color:#86778b}
.cert-compact-browser .cert-field-group > summary {padding:14px 16px;gap:10px}
.cert-compact-browser .cert-field-group > summary small {display:none}
.cert-compact-browser .cert-field-group > summary strong {font-size:15px}
.cert-compact-browser .cert-group-count {gap:8px}
@media(min-width:1100px){.cert-compact-browser .cert-field-grid {grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:639px){.cert-grade-tabs {gap:6px}.cert-grade-tabs a {padding:9px 11px;font-size:13px}.cert-compact-browser .cert-field-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.cert-compact-browser .cert-field-group > summary {padding:12px 10px}.cert-compact-browser .cert-field-group > summary strong {font-size:13px}.cert-compact-browser .cert-group-count {font-size:11px}.cert-compact-browser .cert-group-count {gap:6px}}
@media(max-width:359px){.cert-compact-browser .cert-field-grid{grid-template-columns:1fr}}

/* 커뮤니티는 글을 먼저 읽을 수 있는 제목 중심 목록으로 구성합니다. */
.community-home-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}
.community-home-heading h1{font-size:28px;font-weight:800;letter-spacing:-.035em}
.community-home-heading p{font-size:14px;color:#87758e;margin-top:6px}
.community-write-link{padding:11px 22px;background:#713678;color:white;border-radius:12px;font-size:14px;font-weight:700;white-space:nowrap}
.community-home-search{max-width:620px;margin-bottom:18px}
.community-general-links{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:26px;padding-bottom:18px;border-bottom:1px solid #eee5f0}
.community-general-links a{font-size:13px;padding:6px 12px;color:#685270;border-radius:8px;background:#faf6fb}
.community-feed-columns{display:grid;grid-template-columns:1fr;gap:32px;align-items:start;margin-bottom:30px}
.community-dashboard {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:28px;}
.community-dashboard>.community-feed-section {min-width:0;min-height:280px;padding:16px 20px 8px;border:1px solid #e9e0ed;border-radius:14px;background:#fff;}
.community-dashboard>.community-popular-panel {border-color:#d6b7e0;background:linear-gradient(150deg,#f8f0fb,#fff 80%);}
.community-dashboard .community-feed-heading {margin-bottom:3px;padding-bottom:8px;border-bottom:1px solid #e9e0ed;}
.community-dashboard .community-feed-heading h2 {display:flex;align-items:center;gap:8px;font-size:16px;}
.community-popular-label {display:inline-flex;align-items:center;padding:2px 6px;border-radius:5px;background:#f4dce8;color:#a64071;font-size:10px;font-weight:800;vertical-align:middle;}
.community-dashboard .community-feed-heading a {display:inline-flex;align-items:center;min-height:32px;color:#7a5c88;font-weight:650;}
.community-dashboard .community-feed-row {grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;gap:3px 10px;padding:10px 0;}
.community-dashboard .community-feed-row:last-child {border-bottom:0;}
.community-dashboard .community-feed-board {grid-column:1;grid-row:1;}
.community-dashboard .community-feed-meta {grid-column:2;grid-row:1;text-align:right;}
.community-dashboard .community-feed-title {grid-column:1;grid-row:2;min-width:0;}
.community-dashboard .community-feed-stats {grid-column:2;grid-row:2;align-self:center;font-size:10px;}
.community-dashboard .community-feed-empty {padding:28px 0;}
.community-back-link {font-size:13px;color:#713678;min-height:40px;display:inline-flex;align-items:center;}
.post-content-excerpt {display:block;min-width:0;max-width:100%;margin-top:3px;font-size:12px;line-height:1.5;font-weight:400;color:#928598;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.community-dashboard .community-feed-row {grid-template-rows:auto auto auto;padding:8px 0;}
.community-dashboard .post-content-excerpt {grid-column:1/-1;grid-row:3;margin-top:0;}
@media(max-width:767px){.community-dashboard{grid-template-columns:minmax(0,1fr);gap:16px;}.community-dashboard>.community-feed-section{min-height:0;padding:14px 16px 6px;}.community-dashboard .community-feed-heading a{min-height:44px;}.community-dashboard .community-feed-title{font-size:13px;}.community-dashboard .community-feed-stats{font-size:9px;}}
.community-feed-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;flex-wrap:wrap}
.community-feed-heading h2{font-size:17px;font-weight:750;color:#422849}
.community-feed-heading span,.community-feed-heading a{font-size:12px;color:#89728f}
.community-feed-row{display:grid;grid-template-columns:1fr auto;gap:5px 12px;padding:13px 0;border-bottom:1px solid #eee8f0;min-width:0}
.community-feed-row:hover .community-feed-title{color:#713678}
.community-feed-board{grid-column:1/-1;font-size:11px;color:#916b9b}
.community-feed-title{grid-column:1/-1;font-size:14px;color:#35283b;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.community-feed-comment{font-size:12px;color:#99588a}
.community-feed-meta{font-size:11px;color:#95869c;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.community-feed-stats{font-size:11px;color:#88728e;white-space:nowrap}
.community-feed-empty{padding:24px 0;font-size:13px;color:#8a768e}
.community-favorites{border-top:1px solid #eee5f0;padding-top:22px;margin-bottom:26px}
.community-favorites p,.community-all-boards-content>p{font-size:13px;color:#8a768e;margin:12px 0}
.community-favorites p a{color:#713678}
.community-favorite-links{display:flex;flex-wrap:wrap;gap:8px}
.community-favorite-links a{font-size:13px;padding:9px 14px;border:1px solid #e9ddec;border-radius:10px}
.community-all-boards{border:1px solid #e9ddec;border-radius:14px;margin-bottom:24px}
.community-all-boards>summary{display:flex;gap:10px;align-items:center;padding:16px 20px;cursor:pointer;list-style:none;font-size:14px;font-weight:700;scroll-margin-top:100px}
.community-all-boards>summary span{font-size:12px;color:#8a768e;font-weight:400}
.community-all-boards>summary::after{content:'＋';margin-left:auto;color:#8a768e}.community-all-boards[open]>summary::after{content:'−'}
.community-all-boards>summary::-webkit-details-marker{display:none}
.community-all-boards-content{padding:0 20px 20px}
@media(max-width:767px){.community-feed-columns{grid-template-columns:1fr;gap:28px}.community-home-heading h1{font-size:24px}.community-home-heading p{font-size:12px}.community-write-link{padding:10px 16px}.community-feed-row{padding:12px 0}.community-all-boards-content{padding:0 12px 14px}.community-all-boards>summary{padding:14px 12px}}

.community-feed-columns.community-feed-single{grid-template-columns:1fr}

/* 기본 게시판은 기존 원형 아이콘·둥근 버튼 스타일을 유지합니다. */
.community-general-links .board-chip {padding:10px 16px;border-radius:9999px;background:white;color:var(--color-text);font-size:13px;border:1px solid var(--color-border);box-shadow:0 1px 2px rgba(45,20,55,.04)}
.community-write-link {border-radius:9999px}

/* 마감 강조는 캘린더의 자두색과 이어지는 로즈 계열로 통일합니다. */
/* 일정 막대의 배경·글자색은 캘린더에만 한정합니다. 관심 일정과 다른 화면의 상태색은
   그대로 두고, 범례도 같은 토큰을 사용해 실제 막대와 안내 색상이 어긋나지 않게 합니다. */
.schedule-page {--color-alert:#995779;--color-alert-light:#f4e1eb;--calendar-exam-bg:#F8DCE7;--calendar-exam-accent:#F27D91;--calendar-exam-text:#79394D;--calendar-urgent-bg:#FFF0A8;--calendar-urgent-accent:#F4C94E;--calendar-urgent-text:#715919;--calendar-interest-bg:#EAF2D5;--calendar-interest-accent:#A5BF72;--calendar-interest-text:#536537;--calendar-general-bg:#E8E5F2;--calendar-general-accent:#ACA0CD;--calendar-general-text:#625775}
.schedule-update-status {padding:10px 14px;margin-bottom:14px;border:1px solid var(--color-border);border-radius:10px;background:var(--color-surface);color:var(--color-primary);font-size:13px;line-height:1.7}
.schedule-update-status[hidden] {display:none}
.schedule-update-status a {text-decoration:underline;font-weight:700}
.schedule-page .cal-bar-exam {border-left:3px solid var(--calendar-exam-accent)}
.schedule-page .cal-bar-interest {border-left:3px solid var(--calendar-interest-accent)}
.schedule-page .cal-bar-urgent {border-left:3px solid var(--calendar-urgent-accent);font-weight:700}
.schedule-page .cal-bar-accept {border-left:3px solid var(--calendar-general-accent)}
.selected-schedule-note {font-size:12px;line-height:1.6;color:#806888;padding:4px 0}
.selected-schedule-more {border:1px solid #dcc9e3;border-radius:12px;background:rgba(255,255,255,.6)}
.selected-schedule-more>summary {padding:12px;font-size:13px;font-weight:700;color:#713678;display:flex;align-items:center;justify-content:space-between;gap:8px;list-style:none}
.selected-schedule-more>summary::after {content:'＋';font-size:17px}
.selected-schedule-more[open]>summary::after {content:'−'}
.selected-schedule-more>summary::-webkit-details-marker {display:none}
.selected-schedule-scroll {max-height:420px;overflow-y:auto;overscroll-behavior:contain;padding:0 10px 10px;display:grid;gap:8px;scrollbar-width:thin}
@media(max-width:767px){.selected-schedule-scroll{max-height:360px}}

.schedule-more-open{display:none}.selected-schedule-more[open] .schedule-more-open{display:inline}.selected-schedule-more[open] .schedule-more-closed{display:none}
.selected-schedule-card {min-width:0;width:100%;max-width:100%}
.selected-schedule-card>.flex {min-width:0;align-items:flex-start}
.selected-schedule-card>.flex>.min-w-0 {flex:1;min-width:0}
.selected-schedule-card .truncate {white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;word-break:keep-all;line-height:1.5}
.selected-schedule-card .text-xs {overflow-wrap:anywhere;line-height:1.5}
.selected-schedule-card .badge {flex-shrink:0}
.selected-schedule-more>summary>span {min-width:0;overflow-wrap:anywhere}
.selected-schedule-more>summary::after {flex-shrink:0}

.selected-schedule-primary{font-weight:600;color:var(--color-primary);line-height:1.6}

.selected-schedule-card>.flex>.truncate {flex:1;min-width:0}
.selected-schedule-card>.flex>span {flex-shrink:0}
.selected-schedule-dates {display:grid;gap:10px;margin-top:10px;font-size:12px;line-height:1.6}
.selected-schedule-dates dt {font-weight:600;color:var(--color-primary)}
.selected-schedule-dates dd {margin:2px 0 0;color:var(--color-text-muted);overflow-wrap:anywhere}
.schedule-deadline-tag>span {background:var(--color-alert-light);color:var(--color-alert)}

.community-board-previews {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;margin:0 0 30px}
.community-board-preview {min-width:0;border:1px solid var(--color-border);border-radius:16px;padding:18px 20px;background:white}
.community-board-preview .community-feed-row:last-child {border-bottom:0;padding-bottom:0}
@media(max-width:767px){.community-board-previews{grid-template-columns:1fr;gap:16px}.community-board-preview{padding:16px}}

.pass-proof-badge {display:inline-flex;vertical-align:middle;margin-left:6px;padding:3px 7px;border-radius:7px;font-size:11px;font-weight:700;line-height:1.5;color:#496d38;background:#edf6e8;white-space:nowrap}
.pass-proof-upload {padding:16px;border:1px solid #e6d8eb;border-radius:14px;background:#faf6fc}
.pass-proof-upload[hidden]{display:none}
.pass-proof-upload p,.proof-page p {font-size:13px;color:#85728b;line-height:1.7;margin:10px 0}
.pass-proof-upload input[type=file]{display:block;max-width:100%;font-size:13px}
.pass-proof-owner-note {padding:14px;background:#faf6fc;border-radius:12px;margin-bottom:16px;font-size:13px;color:#713678}
.proof-page {max-width:760px;margin:24px auto}.proof-page h1{font-size:24px;font-weight:800;margin-bottom:14px}.proof-page form{margin:18px 0}.proof-page button{padding:11px 18px;border-radius:10px;background:#713678;color:white;margin-top:14px}.proof-page a{color:#713678;font-size:13px}.proof-status-row{padding:18px 0;border-bottom:1px solid #e9ddec}.proof-page nav{padding:20px 0}
.proof-admin-tabs{display:flex;gap:12px;margin:20px 0}.proof-admin-tabs a{padding:8px 14px;border:1px solid #e9ddec;border-radius:10px}.proof-admin-tabs a[aria-current=page]{background:#713678;color:white}.proof-review-item>summary{cursor:pointer;line-height:1.6}.proof-review-item p{margin:14px 0;font-size:13px}.proof-review-content{white-space:pre-wrap;max-height:200px;overflow:auto}.proof-review-item textarea{display:block;width:100%;border:1px solid #dcc9e3;border-radius:8px;padding:10px;margin:10px 0}.proof-review-item form{margin-top:20px}

.community-feed-title{display:flex;align-items:center;gap:4px}.community-feed-title-text{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.community-feed-title .pass-proof-badge{flex-shrink:0}

.inquiry-primary-button,.inquiry-secondary-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:11px 16px;border-radius:12px;font-size:13px;font-weight:700;line-height:1.5;text-decoration:none}
.inquiry-primary-button{background:#713678;color:white;box-shadow:0 3px 8px rgba(113,54,120,.13)}.inquiry-primary-button:hover{background:#5c2a63}
.inquiry-secondary-button{background:white;border:1px solid #d9c5e0;color:#713678}
.inquiry-form-own-link{width:100%;margin-top:12px;background:transparent;border-radius:999px;padding:12px 16px}
.footer-inquiry-actions{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 16px}
.mypage-inquiry-entry{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;padding:20px;border:1px solid #ddc9e6;border-radius:16px;background:#faf5fc;margin-bottom:24px}
.mypage-inquiry-entry strong{font-size:17px;color:#422849}.mypage-inquiry-entry p{font-size:12px;color:#85728b;margin-top:6px}.mypage-inquiry-actions{display:flex;flex-wrap:wrap;gap:8px}
.inquiry-own-entry{display:block;font-size:13px;color:#713678;margin-bottom:20px;text-align:right}
.my-inquiries-page{max-width:800px;margin:24px auto}.my-inquiries-page h1{font-size:24px;font-weight:800;line-height:1.4}.my-inquiries-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:24px}.my-inquiries-heading p{font-size:13px;color:#87758e;margin-top:8px}
.my-inquiries-count{font-size:12px;color:#95839c;margin:12px 0}.my-inquiry-row{display:block;padding:18px;border:1px solid #e9ddec;border-radius:14px;margin:10px 0;background:white}.my-inquiry-row h2{font-size:15px;font-weight:700;margin:10px 0;overflow-wrap:anywhere}.my-inquiry-row p{font-size:12px;color:#95839c}
.my-inquiry-row-top{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;color:#8a768e}.my-inquiry-status{padding:4px 8px;border-radius:8px;background:#f3eaf7;color:#713678;font-size:11px}
.my-inquiries-empty{padding:40px 20px;text-align:center;border:1px solid #e9ddec;border-radius:14px;color:#8a768e;font-size:14px;margin-bottom:20px}.my-inquiries-pages{display:flex;justify-content:center;gap:20px;margin:24px 0;font-size:13px}
.my-inquiry-detail,.my-inquiry-answer{padding:22px;border:1px solid #e9ddec;border-radius:16px;margin:20px 0}.my-inquiry-detail h1{font-size:21px;margin-top:16px;overflow-wrap:anywhere}.my-inquiry-answer{background:#faf5fc}.my-inquiry-answer h2{font-size:16px;font-weight:700;margin-bottom:14px}.my-inquiry-content{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.8}.my-inquiries-page>a{font-size:13px;color:#713678}
@media(max-width:639px){.mypage-inquiry-entry{padding:16px}.mypage-inquiry-actions{width:100%;display:grid;grid-template-columns:1fr}.footer-inquiry-actions{flex-direction:column;align-items:stretch}.my-inquiries-heading>.inquiry-primary-button{width:100%}.my-inquiry-detail,.my-inquiry-answer{padding:16px}}
/* 어학별 공식 채용 기준: 직무별 지원 자격과 가점을 분리합니다. */
.language-recruitment{margin:28px 0;padding:26px;border:1px solid #e5d8ed;border-radius:24px;background:#fcfafd;scroll-margin-top:180px;min-width:0}
.recruitment-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.recruitment-eyebrow{font-size:12px;font-weight:700;color:#866193}
.recruitment-heading h2{margin:5px 0 0;font-size:22px;line-height:1.4;font-weight:800;color:#342139}
.recruitment-example-label{padding:6px 10px;border:1px solid #e5d8ed;border-radius:999px;background:#fff;font-size:11px;font-weight:700;color:#72557e}
.recruitment-intro{margin:12px 0 22px;color:#706676;font-size:13px;line-height:1.8}
.recruitment-sector{margin-top:22px;min-width:0}
.recruitment-sector h3{display:flex;align-items:center;gap:9px;margin:0 0 12px;font-size:15px;font-weight:800;color:#43334a}
.recruitment-sector h3 span{font-size:11px;font-weight:500;color:#908294}
.recruitment-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.recruitment-card{display:flex;flex-direction:column;min-width:0;padding:18px;background:#fff;border:1px solid #ebe3ef;border-radius:16px;overflow-wrap:anywhere}
.recruitment-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.recruitment-card h4{margin:0;font-size:14px;line-height:1.6;font-weight:800;color:#36283c;word-break:keep-all;overflow-wrap:anywhere}
.recruitment-kind{flex-shrink:0;padding:3px 7px;border-radius:6px;background:#f1e9f5;color:#70417e;font-size:10px;font-weight:700;white-space:nowrap}
.recruitment-job{margin:8px 0 0;color:#8a7e90;font-size:11px;line-height:1.7}
.recruitment-score{margin:14px 0 7px;font-size:18px;font-weight:800;line-height:1.55;color:#6b307c;white-space:pre-line}
.recruitment-benefit{margin:0;color:#53485a;font-size:12px;font-weight:600;line-height:1.8}
.recruitment-notes{margin:9px 0 16px;color:#918697;font-size:11px;line-height:1.8}
.recruitment-source{margin-top:auto;padding-top:12px;border-top:1px solid #f0eaf3;display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}
.recruitment-source span{font-size:10px;color:#998e9e;line-height:1.7}
.recruitment-source a{font-size:11px;font-weight:700;color:#744582;text-decoration:none}
.recruitment-source a:hover{text-decoration:underline}
.recruitment-more{margin-top:12px}
.recruitment-more summary{width:fit-content;padding:9px 13px;border:1px solid #e5d8ed;border-radius:10px;background:#fff;cursor:pointer;font-size:12px;font-weight:700;color:#765081}
.recruitment-more[open] summary{margin-bottom:12px}
.recruitment-footnote,.recruitment-empty{margin:20px 0 0;font-size:11px;line-height:1.9;color:#8b7c93}
.recruitment-admin-list>div{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:14px 0;border-bottom:1px solid #eee}
.recruitment-admin-list span{font-size:12px;overflow-wrap:anywhere}
.recruitment-admin-list .admin-btn{margin-left:auto}
@media(max-width:1100px){.recruitment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.language-recruitment{padding:18px 15px;border-radius:18px;scroll-margin-top:150px}.recruitment-grid{grid-template-columns:minmax(0,1fr)}.recruitment-heading h2{font-size:20px}.recruitment-card{padding:16px}.recruitment-score{font-size:17px}}
.cert-request-list-entry,.cert-request-update-entry{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 18px}
.cert-request-list-entry p,.cert-request-update-entry p{margin:0;font-size:13px;color:var(--color-text-muted)}
.cert-request-list-entry a,.cert-request-update-entry a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 16px;border:1px solid #cbb5d5;background:#fff;color:#70417e;border-radius:11px;font-size:13px;font-weight:700;text-decoration:none}
.cert-request-list-entry a:hover,.cert-request-update-entry a:hover{background:#f6eff9;border-color:#9563a5}
.cert-request-update-entry{padding:12px 14px;background:#ffffffb3;border-radius:12px;margin-top:12px}
.cert-request-page{max-width:600px;margin:20px auto 48px;padding:26px;border:1px solid var(--color-border);border-radius:22px;background:white}
.cert-request-back{display:block;width:fit-content;margin-bottom:25px;font-size:13px;color:var(--color-text-muted);text-decoration:none}
.cert-request-eyebrow{font-size:12px;font-weight:700;color:#9766a4}
.cert-request-page h1{margin:8px 0 10px;font-size:25px;font-weight:800;color:var(--color-text)}
.cert-request-description{font-size:14px;line-height:1.8;color:var(--color-text-muted);margin-bottom:25px}
.cert-request-form{display:flex;flex-direction:column}
.cert-request-form>label{font-weight:700;font-size:14px;margin:18px 0 9px;color:var(--color-text)}
.cert-request-form>label span{font-size:11px;margin-left:5px;color:#9563a5}
.cert-request-form>label small{font-size:12px;font-weight:400;margin-left:4px;color:var(--color-text-faint)}
.cert-request-form>input:not([type=hidden]),.cert-request-form>textarea{width:100%;min-width:0;box-sizing:border-box;padding:13px 15px;border:1px solid #e0d4e6;border-radius:12px;background:#fff;font:inherit;font-size:14px;line-height:1.6;color:var(--color-text)}
.cert-request-form>textarea{resize:vertical;min-height:140px}
.cert-request-form>input:focus,.cert-request-form>textarea:focus{outline:2px solid #d8c5e2;outline-offset:2px}
.cert-request-field-hint{margin:7px 0 0;font-size:12px;color:var(--color-text-faint)}
.cert-request-notice{padding:13px 15px;background:#f7f1fa;border-radius:12px;margin:23px 0 15px;font-size:12px;line-height:1.8;color:#7e6488}
.cert-request-form>button{min-height:48px;padding:13px 18px;background:var(--color-primary);color:white;font:inherit;font-size:14px;font-weight:700;border:0;border-radius:12px;cursor:pointer}
.cert-request-own{display:flex;justify-content:center;align-items:center;min-height:44px;margin-top:10px;font-size:13px;font-weight:600;color:#7b5888;text-decoration:none}
.cert-request-target,.cert-request-info{padding:15px;background:#f8f4fa;border:1px solid #ece1f0;border-radius:12px;overflow-wrap:anywhere}
.cert-request-target span,.cert-request-info>strong{display:block;font-size:12px;color:#8f739b;margin-bottom:5px}
.cert-request-target strong,.cert-request-info p{font-size:15px;font-weight:700;color:#5c3768}
.cert-request-info{margin:12px 0 18px}.cert-request-info p{margin:5px 0 10px}.cert-request-info>div{display:flex;flex-wrap:wrap;gap:12px}.cert-request-info a{font-size:12px;color:#70417e;text-decoration:underline}
.cert-request-error{padding:12px;border-radius:10px;background:#fff0f3;color:#a4425a;font-size:13px;line-height:1.7}
.cert-request-success{padding:15px;background:#f2f7e6;color:#5e713c;border-radius:12px;font-size:13px;line-height:1.7;margin-top:15px}
@media(max-width:640px){.cert-request-page{padding:21px 17px;margin:12px auto 30px;border-radius:16px}.cert-request-page h1{font-size:22px}.cert-request-list-entry,.cert-request-update-entry{gap:9px}.cert-request-list-entry a,.cert-request-update-entry a{font-size:12px;padding:8px 12px}.cert-request-update-entry{padding:10px}}
/* 관리자 문구와 배경 그림을 분리한 홈 배너에서도 모바일 중복 메뉴를 숨깁니다. */
@media(max-width:767px){
 .hero-banner[data-device="mobile"] .hero-banner-form-layer,
 .hero-banner[data-device="mobile"] .hb-el-abs:has(> .hero-banner-shortcut-btn){display:none}
}
.hero-banner-shortcut-btn{gap:7px}
.hero-banner-search-input,.hero-banner-search-btn,.hero-banner-shortcut-btn{border-radius:12px}

/* 메인 세 목록: 최대 네 행을 같은 높이로 유지합니다. */
.home-preview-grid > section { min-width: 0; }
.home-preview-list { display: grid; grid-template-rows: repeat(4, minmax(112px, auto)); min-width: 0; }
.home-preview-list > .list-row, .home-preview-list > .home-post-row {
  min-width: 0; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--color-border);
}
.home-preview-list > :last-child { border-bottom: 0; }
.home-preview-list .list-row > .min-w-0 { flex: 1; }
.home-preview-list .list-row .truncate { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-preview-list .list-row > .flex { align-items: flex-start; flex-direction: column; gap: 4px; }
.home-preview-list .list-row .font-semibold { line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.home-post-row { display: flex; flex-direction: column; justify-content: center; gap: 4px; text-decoration: none; }
.home-post-row:hover .home-post-title { color: var(--color-primary); }
.home-post-label { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 11px; line-height: 14px; color: var(--color-accent); }
.home-post-label strong { color: var(--color-alert); font-size: 10px; }
.home-post-title { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; font-size:14px; font-weight:700; line-height:22px; color:var(--color-text); overflow:hidden; white-space:normal; overflow-wrap:anywhere; }
.home-post-row > * { flex-shrink:0; }
.home-post-meta { display: flex; gap: 8px; font-size: 11px; line-height: 15px; color: var(--color-text-faint); white-space: nowrap; }
.home-post-meta span { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 767px) { .home-preview-list { grid-template-rows: none; grid-auto-rows: minmax(112px, auto); } }
.home-preview-list .list-row .inline-flex { font-size: 10px; line-height: 14px; padding: 2px 8px; }

/* 배너 원본의 둥근 제목과 두 단계 서브 문구를 편집 가능한 글자로 표현합니다. */
@font-face { font-family: 'Jadu Hero'; src: url('/fonts/Jua-Regular.ttf') format('truetype'); font-style: normal; font-weight: 400 900; font-display: swap; }
.hero-banner-title { font-family: 'Jadu Hero', 'Pretendard', sans-serif; letter-spacing: -.025em; line-height: 1.18; }
.hero-banner-title .highlight { color: #790862; }
.hero-banner-subtitle { font-family: 'Pretendard', 'Malgun Gothic', sans-serif; letter-spacing: -.025em; line-height: 1.45; }
.hero-subtitle-emphasis { display: block; font-weight: 900; color: #222630; }
.hero-subtitle-emphasis > span { color: #ee087f; }

.hero-banner-subtitle { line-height: 1.4; }
.hero-subtitle-emphasis { font-size: 1.1em; line-height: 1.4; }

/* 자격증 상세 목차: 넓은 화면에서는 본문 옆에, 좁은 화면에서는 상단에 배치합니다. */
.cert-detail-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; align-items: start; }
.cert-detail-content { min-width: 0; }
.cert-detail-content > [id] { scroll-margin-top: 164px; }
.cert-section-title { margin: 0 0 16px; font-size: 19px; font-weight: 800; color: var(--color-text); }
.cert-detail-toc { position: sticky; top: 90px; z-index: 25; min-width: 0; }
.cert-toc-panel { border: 1px solid var(--color-border); border-radius: 16px; background: rgba(255,255,255,.98); box-shadow: 0 3px 14px #44234d08; overflow: hidden; }
.cert-toc-panel > summary { display: flex; align-items: center; gap: 14px; list-style: none; padding: 15px 18px; cursor: pointer; font-size: 14px; font-weight: 800; color: var(--color-primary); }
.cert-toc-panel > summary::-webkit-details-marker { display: none; }
.cert-toc-current { flex: 1; min-width: 0; font-size: 12px; color: var(--color-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.cert-toc-chevron { width: 7px; height: 7px; border-right: 1.6px solid; border-bottom: 1.6px solid; transform: rotate(45deg); margin: -4px 2px 0; }
.cert-toc-panel[open] .cert-toc-chevron { transform: rotate(225deg); margin-top: 4px; }
.cert-toc-panel nav { padding: 10px; max-height: min(65dvh,520px); overflow-y: auto; }
.cert-toc-heading { display: none; }
.cert-toc-links { display: grid; gap: 4px; }
.cert-toc-links a { display: flex; gap: 10px; align-items: baseline; padding: 11px 12px; border-radius: 9px; text-decoration: none; color: var(--color-text-muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.cert-toc-number { flex-shrink: 0; font-size: 11px; font-variant-numeric: tabular-nums; color: #a293a9; }
.cert-toc-links a:hover { background: #f8f4fa; color: var(--color-primary); }
.cert-toc-links a[aria-current="location"] { background: #f0e4f4; color: #612b70; font-weight: 800; }
.cert-toc-links a[aria-current="location"] .cert-toc-number { color: #875496; }
.cert-toc-links a:focus-visible,.cert-toc-panel > summary:focus-visible { outline: 2px solid var(--color-primary); outline-offset: -3px; }
@media (min-width:1280px) {
 .cert-detail-layout { grid-template-columns: minmax(0,1fr) 224px; gap: 28px; }
 .cert-detail-content { grid-column: 1; grid-row: 1; }
 .cert-detail-toc { grid-column: 2; grid-row: 1; top: 104px; }
 .cert-toc-panel > summary { display: none; }
 .cert-toc-panel nav { max-height: calc(100dvh - 128px); }
 .cert-toc-heading { display: grid; gap: 7px; padding: 12px 12px 15px; font-size: 14px; font-weight: 800; color: var(--color-text); }
 .cert-toc-heading small { font-size: 12px; font-weight: 500; color: var(--color-text-faint); overflow-wrap: anywhere; }
 .cert-detail-content > [id] { scroll-margin-top: 120px; }
}
html:has(.cert-detail-layout),body:has(.cert-detail-layout) { overflow-x: clip; overflow-y: visible; }
@media (max-width:1279px) { .cert-toc-panel { overflow:visible; } .cert-toc-panel nav { position:absolute; top:calc(100% + 8px); left:0; right:0; background:#fff; border:1px solid var(--color-border); border-radius:14px; box-shadow:0 10px 28px #44234d14; } }

.study-materials { margin-top:32px; padding:24px; border:1px solid var(--color-border); border-radius:18px; background:#fff; min-width:0; }
.study-materials > h2 { margin:0 0 10px; font-size:19px; font-weight:800; color:var(--color-text); }
.study-materials-intro,.study-materials-footnote { font-size:12px; line-height:1.7; color:var(--color-text-muted); }
.study-material-group { margin-top:22px; }
.study-material-group > h3 { margin:0 0 12px; font-size:14px; font-weight:800; color:var(--color-primary); }
.study-material-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.study-material-card { display:flex; align-items:flex-start; gap:16px; padding:18px; border:1px solid #e9e1ed; border-radius:14px; background:#fdfbfe; min-width:0; }
.study-material-cover { flex:0 0 90px; width:90px; height:128px; border-radius:6px; background:#f1eaf4; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.study-material-cover img { display:block; width:100%; height:100%; object-fit:contain; }
.study-material-cover svg { width:32px; height:32px; color:#ad91b7; }
.study-material-content { min-width:0; flex:1; }
.study-material-labels { display:flex; flex-wrap:wrap; gap:5px; margin-bottom:8px; }
.study-material-labels span { padding:3px 7px; border-radius:5px; background:#eee4f2; font-size:10px; color:#70457c; font-weight:700; }
.study-material-content h4 { font-size:14px; line-height:1.5; font-weight:800; color:var(--color-text); overflow-wrap:anywhere; margin:0 0 7px; }
.study-material-provider,.study-material-edition,.study-material-notes { font-size:11px; line-height:1.65; color:var(--color-text-muted); margin:4px 0; overflow-wrap:anywhere; }
.study-material-notes { margin-top:9px; }
.study-material-actions { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0 8px; }
.study-material-actions a { padding:7px 10px; border:1px solid #decde6; border-radius:7px; font-size:11px; font-weight:700; color:var(--color-primary); background:#fff; text-decoration:none; }
.study-material-actions a:hover { background:#f3ebf7; }
.study-material-content > small { font-size:10px; color:var(--color-text-faint); }
.study-materials-footnote { margin:18px 0 0; font-size:11px; }
.materials-admin-list article { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:14px 0; border-bottom:1px solid var(--color-border); }
.materials-admin-list article > div { min-width:0; overflow-wrap:anywhere; }
.materials-admin-list article p { font-size:12px; color:var(--color-text-muted); margin:6px 0 0; }
.material-admin-cover { display:block; width:90px; height:125px; object-fit:contain; border:1px solid var(--color-border); }
@media (max-width:1000px) { .study-material-grid { grid-template-columns:minmax(0,1fr); } }
@media (max-width:479px) { .study-materials { padding:16px; } .study-material-card { padding:14px; gap:12px; } .study-material-cover { flex-basis:68px; width:68px; height:98px; } }

/* 댓글 신고: 로그인 여부와 관계없이 발견할 수 있는 공통 진입점 */
.comment-report-button { display:inline-flex; align-items:center; justify-content:center; min-height:28px; padding:3px 9px; border:1px solid #e4dce8; border-radius:7px; background:#fff; color:#726077; font-size:12px; font-weight:600; line-height:1.4; text-decoration:none; }
.comment-report-button:hover { background:#faf3f7; border-color:#d6aabb; color:#85435f; }
.comment-report-button:focus-visible { outline:2px solid #85435f; outline-offset:2px; }
.comment-report-status { color:#726077; font-size:12px; }

.cert-schedule-more-arrow {display:block;flex:0 0 18px;width:18px;height:18px;transition:transform .18s ease;}
@media (prefers-reduced-motion:reduce) {.cert-schedule-more-arrow {transition:none;}}

.cert-detail-readable {line-height:1.75;overflow-wrap:anywhere;}
.cert-detail-readable p {margin:0;}
.cert-detail-phase {display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px;align-items:start;}
.cert-detail-phase + .cert-detail-phase {margin-top:14px;padding-top:12px;border-top:1px solid #eee7f1;}
.cert-detail-phase-label {display:inline-block;padding:2px 0;border-radius:5px;background:#f2e8f5;color:#713678;text-align:center;font-size:12px;line-height:1.6;}
.cert-detail-numbered {list-style:decimal;margin:0;padding-left:1.4em;}
.cert-detail-conditions {list-style:disc;margin:6px 0 0;padding-left:1.25em;}
.cert-detail-numbered li + li,.cert-detail-conditions li + li {margin-top:5px;}
.cert-detail-readable .cert-detail-note {margin-top:12px;font-size:12px;font-weight:400;color:#776a80;line-height:1.7;}
.cert-detail-intro {color:#51245d;}

.comment-like-area {margin-top:9px;}
.comment-like-area form {display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.comment-like-button {display:inline-flex;align-items:center;gap:5px;min-height:30px;padding:4px 9px;border:1px solid #e9e1ed;border-radius:20px;background:#fff;color:#7a6b80;font-size:12px;font-weight:600;line-height:1.5;text-decoration:none;cursor:pointer;}
.comment-like-button:hover {border-color:#cda9d5;background:#faf5fc;}
.comment-like-button.is-liked {color:#9c416f;border-color:#edc4d7;background:#fcf0f5;}
.comment-like-button:focus-visible {outline:2px solid #713678;outline-offset:2px;}
.comment-like-button:disabled {opacity:.55;cursor:wait;}
.comment-like-error {font-size:12px;color:#85435f;}

.best-comment-panel {padding:14px 16px 4px;margin-bottom:16px;border:1px solid #e3cce9;border-radius:14px;background:#fcf8fd;}
.best-comment-heading {display:flex;align-items:center;gap:8px;color:#713678;}
.best-comment-heading h3 {margin:0;font-size:13px;font-weight:700;}
.best-comment-badge {padding:2px 7px;border-radius:5px;background:#713678;color:white;font-size:10px;font-weight:800;letter-spacing:.04em;}
.best-comment-panel [data-comment-row] {border-bottom:0;}

.password-input-wrap {position:relative;}
.password-input-wrap input {padding-right:48px !important;}
.password-visibility-button {position:absolute;right:6px;top:50%;transform:translateY(-50%);width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:8px;background:transparent;color:#8d7d94;cursor:pointer;}
.password-visibility-button:hover {color:#713678;background:#f5edf8;}
.password-visibility-button:focus-visible {outline:2px solid #713678;outline-offset:1px;}
.password-eye-open {display:none;}
.password-eye-closed {display:block;}
.password-visibility-button[aria-pressed="true"] .password-eye-open {display:block;}
.password-visibility-button[aria-pressed="true"] .password-eye-closed {display:none;}

/* 위 핵심 정보 카드의 텍스트 여백과 일정 섹션의 시작선을 맞춥니다. */
.cert-detail-content > .cert-detail-schedule {padding-inline:20px;min-width:0;box-sizing:border-box;}
@media (min-width:640px) {.cert-detail-content > .cert-detail-schedule {padding-inline:32px;}}

.cert-detail-phase.is-combined {grid-template-columns:66px minmax(0,1fr);}

.avatar.avatar-pixel {background:transparent;border:0;border-radius:0;overflow:visible;flex-shrink:0;}
.pixel-plum {display:block;image-rendering:pixelated;}
.plum-color-picker {border:0;margin:0;padding:0;min-width:0;}
.plum-color-picker legend {font-size:14px;font-weight:700;color:#51245d;}
.plum-color-picker>p {font-size:12px;color:#8b7c94;margin:5px 0 12px;}
.plum-color-options {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;}
.plum-color-option {position:relative;display:flex;flex-direction:column;align-items:center;gap:5px;padding:9px 4px;border:1px solid #e9deed;border-radius:11px;background:white;cursor:pointer;color:#786981;font-size:11px;}
.plum-choice-icon {display:flex;align-items:center;justify-content:center;width:100%;height:64px;}
.plum-choice-icon > .pixel-plum {width:48px;height:48px;flex-shrink:0;}
.plum-choice-icon > .pixel-plum[data-character="coral"] {width:66px;height:66px;}
.plum-color-option input {position:absolute;opacity:0;width:1px;height:1px;}
.plum-color-option:has(input:checked) {background:#f5eaf8;border-color:#8b5095;box-shadow:0 0 0 1px #8b5095;color:#51245d;font-weight:700;}
.plum-color-option:has(input:focus-visible) {outline:2px solid #713678;outline-offset:3px;}

.comment-inline-editor[hidden] { display:none; }
.comment-inline-editor { margin-top:10px; }
.comment-inline-editor textarea { width:100%; min-height:88px; padding:12px 14px; border:1px solid #ddcce7; border-radius:12px; background:#fff; color:#253046; font:inherit; font-size:14px; resize:vertical; box-sizing:border-box; }
.comment-inline-editor textarea:focus { outline:2px solid #bd94ca; outline-offset:2px; }
.comment-inline-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:8px; font-size:12px; color:#8991a3; }
.comment-inline-footer > div { display:flex; gap:8px; }
.comment-inline-footer button { padding:8px 18px; border-radius:20px; border:1px solid #e6d9ed; color:#65316e; background:#fff; font-weight:600; }
.comment-inline-footer .comment-inline-save { color:white; background:#702b76; border-color:#702b76; }
.comment-inline-editor button:disabled { opacity:.55; cursor:wait; }
.comment-inline-error { color:#b42345; font-size:13px; margin-top:6px; }

.avatar.avatar-pixel.mypage-plum-avatar { background:#fff; border-radius:50%; padding:8px; box-sizing:border-box; overflow:hidden; box-shadow:none; }

.community-breadcrumb { display:flex; flex-wrap:wrap; gap:8px; font-size:12px; color:#8a7794; margin-bottom:18px; }
.community-breadcrumb a:hover,.community-cert-detail-link:hover { text-decoration:underline; }
.community-cert-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.community-cert-heading h1 { font-size:26px; font-weight:800; color:#232338; }
.community-cert-heading p { margin-top:6px; font-size:14px; color:#8a8393; }
.community-cert-detail-link { display:inline-block; margin:14px 0 22px; font-size:13px; color:#713779; }
.community-round-filter { display:flex; align-items:flex-end; gap:10px; background:#faf7fc; border:1px solid #eee3f3; border-radius:16px; padding:18px; margin-bottom:16px; }
.community-round-filter label { flex:1; min-width:0; font-size:13px; font-weight:600; color:#5f3a6b; }
.community-round-filter select,.community-post-round select { display:block; width:100%; min-height:44px; margin-top:8px; padding:10px 36px 10px 12px; border:1px solid #e5d6ed; border-radius:10px; background-color:#fff; color:#342a40; font-size:14px; }
.community-round-filter button { border-radius:10px; background:#713779; color:#fff; padding:12px 20px; flex-shrink:0; font-size:13px; font-weight:600; }
.community-type-tabs { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:22px; }
.community-type-tabs a { border:1px solid #eadff0; border-radius:20px; padding:9px 15px; font-size:13px; color:#796582; }
.community-type-tabs a[aria-current=page] { background:#eee0f3; color:#692d75; border-color:#ddc5e7; font-weight:700; }
.community-board-tools { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:16px; }
.community-board-tools > span { font-size:12px; color:#928898; }
.community-post-round { display:block; font-size:14px; font-weight:600; color:#475569; }
.community-post-round [data-round-status] { display:block; margin-top:6px; font-weight:400; font-size:12px; color:#8b7694; }
.community-finder-shortcut { display:inline-block; padding:10px 16px; margin-bottom:16px; border-radius:12px; background:#f4eaf7; color:#713779; font-size:13px; font-weight:700; }
.schedule-round-board-link { display:block; text-align:right; margin:7px 4px 12px; font-size:12px; font-weight:600; color:#713779; }
@media(max-width:639px) { .community-cert-heading h1 { font-size:22px; } .community-round-filter { padding:13px; } .community-type-tabs { gap:6px; } .community-type-tabs a { padding:8px 12px; } }

.qualification-dots { display:inline-flex; align-items:center; flex-wrap:wrap; gap:4px; margin-left:6px; vertical-align:middle; max-width:156px; }
.qualification-dot { position:relative; display:inline-block; width:12px; height:12px; margin-top:4px; flex-shrink:0; border-radius:46% 46% 48% 48% / 40% 40% 58% 58%; background:var(--qualification-color,#A38BD1); box-shadow:inset 0 0 0 1px rgba(50,25,60,.12); }
.qualification-dot::before { content:""; position:absolute; width:2px; height:5px; top:-4px; left:6px; border-radius:2px; background:#795849; transform:rotate(20deg); }
.qualification-dot::after { content:""; position:absolute; width:6px; height:3px; top:-3px; left:7px; border-radius:6px 0 6px 0; background:#7DA65B; transform:rotate(-12deg); }
.comment-author-name { display:inline-flex; align-items:center; flex-wrap:wrap; row-gap:4px; }
.post-author-card > summary { flex-wrap:wrap; }
.post-author-card > summary .qualification-dots { margin-left:0; }
.verified-qualifications { margin:14px 0; }
.verified-qualifications h3 { font-size:12px; font-weight:700; color:#65556e; margin-bottom:9px; }
.verified-qualifications h3 > span { color:#947a9e; margin-left:4px; }
.qualification-badges { display:flex; flex-wrap:wrap; gap:6px; }
.qualification-badge { display:inline-flex; align-items:center; gap:6px; max-width:100%; padding:6px 9px; border:1px solid #eadfee; border-radius:8px; background:#fff; color:#55425f; font-size:11px; line-height:1.45; font-weight:600; }
.qualification-badge > span:nth-child(2) { overflow-wrap:anywhere; }
.qualification-badge:hover { background:#faf5fc; border-color:#d5bee0; }
.qualification-badge:focus-visible { outline:2px solid #9a70a6; outline-offset:2px; }
.qualification-check { color:#8c7897; font-size:10px; }
.post-author-popover .verified-qualifications { padding:10px 0; margin:0 0 10px; border-bottom:1px solid #f0e7f4; }
.post-author-popover { max-height:min(70vh,520px); overflow-y:auto; }

.qualification-proof-page { max-width:760px; margin:0 auto; }
.qualification-proof-page > p { line-height:1.8; color:#82728b; }
.qualification-submit-card { margin:24px 0 32px; padding:22px; border:1px solid #e9dbef; border-radius:18px; background:#fcf9fe; }
.qualification-submit-card h2,.qualification-proof-list h2 { font-size:17px; font-weight:750; margin-bottom:18px; }
.qualification-submit-card label { display:block; font-size:14px; font-weight:600; margin:15px 0 8px; }
.qualification-submit-card select { display:block; width:100%; max-width:100%; min-width:0; padding:12px 34px 12px 12px; border:1px solid #e2d3e9; border-radius:10px; background:#fff; margin-top:8px; font-size:14px; }
.qualification-file-label input { display:block; width:100%; max-width:100%; margin-top:12px; font-size:13px; }
.qualification-file-label input::file-selector-button { padding:9px 13px; border:1px solid #dcccE5; border-radius:8px; background:white; color:#693675; margin-right:9px; }
.qualification-upload-help { font-size:12px; line-height:1.8; color:#8d7b96; margin:12px 0; }
.qualification-primary-button { padding:11px 20px; border:0; border-radius:22px; color:white; background:#713779; font-size:14px; font-weight:700; margin-top:5px; }
.qualification-proof-message { padding:12px 15px; background:#edf7ef; color:#42634b!important; border-radius:12px; }
.qualification-proof-message.is-error { background:#fff0f3; color:#a5415c!important; }
.qualification-proof-row-heading { display:flex; justify-content:space-between; gap:10px; align-items:center; flex-wrap:wrap; }
.qualification-status { flex-shrink:0; font-size:12px; border-radius:12px; padding:4px 10px; background:#f2eaf7; color:#7d5d8c; }
.qualification-status.is-approved { background:#edf7e5; color:#5b7945; }
.qualification-status.is-rejected { background:#fff0e6; color:#b3734d; }
.qualification-proof-row-actions { display:flex; flex-wrap:wrap; gap:16px; font-size:13px; color:#713779; margin-top:10px; }
.qualification-back-link { display:inline-block; margin-top:25px; font-size:13px; color:#795087; }
.qualification-review-reason { overflow-wrap:anywhere; }
.comment-qualification-verified { font-size:10px; color:#668047; background:#f0f7e8; border-radius:7px; padding:2px 5px; margin-left:6px; }
@media(max-width:639px) { .qualification-submit-card { padding:16px; } .qualification-proof-page { min-width:0; } .qualification-proof-page input { min-width:0; } }

#studylog-create-form .grid > * { min-width:0; max-width:100%; }
#studylog-create-form select { width:100%; }
@media(max-width:639px) { #studylog-create-form .grid { grid-template-columns:minmax(0,1fr); } }

/* Community stickers: reuse the supplied artwork without changing its pixels. */
.community-emoticon { display:inline-block; width:108px; height:132px; max-width:100%; vertical-align:middle; overflow:hidden; }
.emoticon-composer { position:relative; min-width:0; }
.comment-composer-field { flex:1; }
.emoticon-composer input[name="content"],.emoticon-composer textarea[name="content"] { width:100%; min-width:0; box-sizing:border-box; padding-right:46px; }
.emoticon-editor { margin:0; min-width:0; }
.emoticon-picker { min-width:0; }
.emoticon-picker>summary { position:absolute; top:4px; right:5px; display:flex; align-items:center; justify-content:center; width:36px; height:36px; padding:0; border:0; border-radius:50%; color:#68616b; background:transparent; cursor:pointer; list-style:none; }
.emoticon-picker>summary:hover,.emoticon-picker[open]>summary { color:#713678; background:#f1e8f5; }
.emoticon-picker>summary::-webkit-details-marker { display:none; }
.emoticon-picker>summary:focus-visible,.emoticon-grid button:focus-visible { outline:2px solid #9a70a6; outline-offset:2px; }
.emoticon-grid { position:absolute; top:46px; right:0; z-index:40; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; width:min(420px,100%); box-sizing:border-box; padding:8px; max-height:310px; overflow-y:auto; border:1px solid #eadfee; border-radius:12px; background:#fff; box-shadow:0 8px 28px rgba(61,34,71,.15); }
.emoticon-composer.emoticon-opens-above .emoticon-grid { top:auto; bottom:calc(100% + 6px); }
.emoticon-grid button { min-width:0; padding:0; border:1px solid transparent; border-radius:8px; background:#fff; cursor:pointer; }
.emoticon-grid button:hover { border-color:#b98bc6; background:#fbf6fc; }
.emoticon-grid .community-emoticon { width:100%; height:110px; }
.emoticon-preview { padding:10px; margin-top:8px; border:1px dashed #dac8e2; border-radius:10px; background:#fff; overflow-wrap:anywhere; }
.emoticon-preview-label { display:block; font-size:11px; color:#887591; margin-bottom:3px; }
[data-emoticon-preview-content] { white-space:pre-wrap; font-size:13px; }
.emoticon-error { font-size:12px; color:#b42348; margin:4px 0; }
.emoticon-error:empty { display:none; }
@media(max-width:480px) { .emoticon-grid { grid-template-columns:repeat(3,minmax(0,1fr)); max-height:280px; } }

/* Stickers occupy their own line in both saved content and the visual composer. */
.community-emoticon { display:block; margin:6px 0; }
.emoticon-visual-input { display:block; width:100%; min-width:0; min-height:44px; padding:10px 46px 10px 14px; box-sizing:border-box; border:1px solid #e2d3e9; border-radius:22px; background:#fff; color:#253046; font-size:14px; line-height:22px; white-space:pre-wrap; overflow-wrap:anywhere; outline:none; }
.emoticon-visual-input:focus { border-color:#b98bc6; box-shadow:0 0 0 1px #b98bc6; }
.emoticon-visual-input:empty::before { content:attr(data-placeholder); color:#9b91a2; pointer-events:none; }
.emoticon-visual-input[aria-disabled="true"] { opacity:.6; }
.emoticon-multiline-input { min-height:220px; border-radius:12px; }
.comment-inline-editor .emoticon-multiline-input { min-height:100px; }
.comment-composer-field .emoticon-multiline-input {min-height:76px;max-height:240px;overflow-y:auto;border-radius:12px;}
.comment-composer-field textarea {min-height:76px;resize:vertical;}
.emoticon-in-draft { display:block; width:fit-content; max-width:100%; }
.comment-composer-field + button { align-self:flex-end; }
.emoticon-grid .community-emoticon { margin:0; }
.emoticon-composer [name="content"][hidden] { display:none!important; }

/* Daedu keeps its larger silhouette wherever the member avatar is shown. */
.avatar.avatar-pixel > .pixel-plum[data-character="coral"] { transform:scale(1.3); transform-origin:center; }

.cert-search-picker { position:relative; min-width:0; align-self:start; }
.cert-search-picker-control { display:flex; align-items:center; min-width:0; border:1px solid #e2d3e9; border-radius:9px; background:#fff; }
.cert-search-picker-control:focus-within { border-color:#a374b2; box-shadow:0 0 0 2px #f1e5f7; }
.cert-search-picker-control input { flex:1; width:0; min-width:0; padding:11px 12px; border:0; background:transparent; border-radius:9px; font:inherit; font-size:14px; outline:none; }
.cert-search-picker-control > button { flex-shrink:0; display:flex; align-items:center; justify-content:center; width:40px; align-self:stretch; padding:0; border:0; background:transparent; color:#80648b; cursor:pointer; }
.cert-search-picker-panel { position:absolute; top:calc(100% + 6px); left:0; right:0; z-index:40; max-height:300px; overflow:auto; padding:6px; border:1px solid #e4d5ea; border-radius:12px; background:#fff; box-shadow:0 8px 25px #4e2c5d20; }
.cert-search-picker-panel [role=option] { display:block; width:100%; padding:10px; border:0; border-radius:7px; background:#fff; color:#4c3b55; text-align:left; font:inherit; font-size:13px; line-height:1.5; overflow-wrap:anywhere; cursor:pointer; }
.cert-search-picker-panel [role=option]:hover,.cert-search-picker-panel [aria-selected=true] { background:#f3eaf7; color:#713678; }
.cert-search-picker-note { padding:8px 10px; color:#92809b; font-size:12px; line-height:1.6; }

.studylog-minute-field { min-width:0; align-self:start; }
.studylog-minute-input { position:relative; }
.studylog-minute-input input { width:100%; min-width:0; padding-right:36px; box-sizing:border-box; appearance:textfield; -moz-appearance:textfield; }
.studylog-minute-input input::-webkit-inner-spin-button,.studylog-minute-input input::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
.studylog-minute-input > span { position:absolute; right:13px; top:50%; transform:translateY(-50%); font-size:13px; color:#897692; pointer-events:none; }
.studylog-minute-presets { display:flex; gap:6px; margin-top:7px; }
.studylog-minute-presets button { flex:1; min-width:0; padding:6px 5px; border:1px solid #e4d7eb; border-radius:8px; background:#fff; color:#7b6087; font-size:12px; line-height:18px; cursor:pointer; }
.studylog-minute-presets button:hover,.studylog-minute-presets button[aria-pressed=true] { border-color:#b58ac3; color:#713678; background:#f3eaf7; }
.studylog-minute-presets button:focus-visible { outline:2px solid #a374b3; outline-offset:2px; }

.studylog-leaderboard { margin:0 0 30px; padding:20px; border:1px solid #eadfee; border-radius:18px; background:linear-gradient(120deg,#fbf7fd,#fff); }
.studylog-leaderboard-heading h2 { margin:0; font-size:18px; line-height:1.5; font-weight:800; color:#35213f; }
.studylog-leaderboard-heading h2 span { color:#9860a5; font-size:13px; margin-left:4px; }
.studylog-leaderboard-heading p { margin:5px 0 15px; color:#95819f; font-size:12px; line-height:1.6; }
.studylog-leaderboard-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; list-style:none; padding:0; margin:0; }
.studylog-leader-card { display:flex; align-items:center; gap:12px; min-width:0; padding:16px; border:1px solid #eee5f2; border-radius:12px; background:#fff; }
.studylog-leader-rank { display:flex; justify-content:center; align-items:center; width:25px; height:25px; flex-shrink:0; border-radius:50%; background:#efe3f5; color:#8b5499; font-size:13px; font-weight:800; }
.studylog-leader-card:first-child .studylog-leader-rank { background:#fff0bd; color:#99741d; }
.studylog-leader-card>div { min-width:0; }
.studylog-leader-card strong { display:block; font-size:13px; color:#493253; overflow-wrap:anywhere; }
.studylog-leader-card div>span { display:block; margin-top:4px; font-size:17px; font-weight:800; color:#713678; }
.studylog-leader-empty { margin:0; padding:13px 0 3px; color:#8c7697; font-size:13px; line-height:1.7; }
@media(max-width:767px) { .studylog-leaderboard { padding:16px; } .studylog-leaderboard-list { grid-template-columns:minmax(0,1fr); gap:8px; } .studylog-leader-card { padding:12px; } .studylog-leader-card>div { display:flex; align-items:center; justify-content:space-between; gap:12px; flex:1; } .studylog-leader-card div>span { margin:0; font-size:16px; white-space:nowrap; } }

.home-my-exams-hint { margin:0 0 9px; font-size:10px; line-height:1.5; color:var(--color-text-faint); }
.home-my-exam + .home-my-exam { margin-top:12px; padding-top:12px; border-top:1px solid #d9c6df; }
.home-my-exam-title { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; overflow-wrap:anywhere; line-height:1.45; }

/* Replies remain one level deep, including replies to replies. */
.comment-thread-replies { margin-left:32px; padding-left:14px; border-left:2px solid #eee5f1; }
.comment-thread-replies:empty { display:none; }
.comment-like-area { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.comment-reply-button { display:inline-flex; align-items:center; min-height:32px; padding:5px 10px; color:#756580; font-size:12px; border-radius:8px; }
.comment-reply-button:hover { background:#f5eef8; color:#713678; }
.comment-reply-mention { color:#713678; font-weight:650; }
.comment-reply-context { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:10px 14px; margin-bottom:10px; border-radius:10px; background:#f6eff8; color:#713678; font-size:13px; }
.comment-reply-context[hidden] { display:none; }
.comment-reply-context button { padding:5px 10px; border-radius:8px; background:white; font-size:12px; }
.comment-deleted-placeholder,.comment-deleted-notice { padding:14px; color:#817789; font-size:13px; }
.comment-deleted-notice { margin-bottom:14px; background:#faf7fc; border:1px solid #e8deed; border-radius:10px; }
@media(max-width:639px) {
 .comment-thread-replies { margin-left:16px; padding-left:10px; }
 [data-comment-row]>.min-w-0>.flex:first-child { align-items:flex-start; flex-wrap:wrap; }
 [data-comment-row] .comment-author-name { overflow-wrap:anywhere; }
}

.materials-cert-filter .cert-search-picker { flex:1 1 280px; max-width:620px; align-self:center; }
.materials-cert-filter .cert-search-picker-control { min-height:44px; }

.admin-list-pagination { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:12px; margin:20px 0; font-size:13px; color:#75677d; }
.admin-design-pages { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:24px; }
.admin-design-pages a { padding:10px 14px; border:1px solid #e2d6e8; border-radius:10px; background:white; color:#715b7d; font-size:13px; font-weight:650; }
.admin-design-pages a[aria-current=page] { background:#713678; border-color:#713678; color:white; }

@media(min-width:1280px) { .cert-detail-toc { margin-top:var(--cert-toc-start-offset,47px); } }

#proof-submit { scroll-margin-top:120px; }
.qualification-review-context { padding:16px; border:1px solid #e5d8ed; border-radius:12px; background:white; overflow-wrap:anywhere; }
.qualification-review-context .qualification-review-reason { padding:12px; background:#fff4e9; border-radius:8px; color:#775130; white-space:pre-line; }

.post-list-pagination {display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:14px;margin:24px 0;font-size:13px;color:#796582;}
.post-list-pagination a {padding:10px 16px;background:white;border:1px solid #e4d7eb;border-radius:10px;color:#713678;font-weight:650;}
#post-list {scroll-margin-top:110px;}
.community-cert-filter {min-width:0;max-width:100%;width:320px;}
.community-cert-filter .cert-search-picker {width:100%;min-width:0;}
@media(max-width:639px){.community-cert-filter{width:100%;}.cert-group-content .cert-pill-grid{grid-template-columns:repeat(auto-fill,minmax(min(190px,100%),1fr));}}

/* Review refinements: readable calendar summaries and complete mobile date cards. */
.page-title {font-size:24px;font-weight:800;line-height:1.4;margin:0 0 20px;}
.section-more-link,.home-my-exam>a,.cert-exam-actions>a,.cert-detail-content a[target="_blank"],.header-btn {display:inline-flex;align-items:center;min-height:44px;}
.notification-settings label {display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer;}
.notification-settings input[type=checkbox] {width:20px;height:20px;flex-shrink:0;accent-color:#713678;}
.schedule-closing-row,.schedule-hot-row {min-width:0;max-width:100%;}
.schedule-closing-row>a,.schedule-hot-row>.truncate {min-width:0;flex:1;}
.schedule-hot-row>span:first-child {max-width:88px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
#selected-day-panel {scroll-margin-top:110px;}
.cert-exam-content {flex:1;}
.cert-exam-actions {flex-wrap:wrap;}
@media(max-width:639px){
 .cert-exam-layout {display:flex;flex-direction:column;align-items:stretch;gap:10px;}
 .cert-exam-content {width:100%;min-width:0;}
 .cert-exam-actions {width:100%;justify-content:space-between;}
 .cert-schedule-dates>div {grid-template-columns:62px minmax(0,1fr);padding:10px;gap:8px;}
 .cert-schedule-dates dd {font-size:14px;line-height:1.6;overflow-wrap:normal;word-break:keep-all;}
 .schedule-hot-row {flex-wrap:wrap;gap:3px 8px;}
 .schedule-hot-row>.truncate {order:3;flex-basis:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.6;}
 .schedule-hot-row>span:last-child {margin-left:auto;}
}

.sr-only {position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;}
.field-label {display:block;font-size:14px;font-weight:650;color:#55445f;margin-bottom:8px;}

@media(max-width:1279px){.cert-detail-content>[id]{scroll-margin-top:160px;}}

@media(max-width:1279px){.cert-detail-content #schedule{scroll-margin-top:160px;}}

.mypage-feedback {padding:12px 16px;margin:0 0 16px;border:1px solid #cce3d3;border-radius:10px;background:#f0f8f2;color:#28583a;line-height:1.6;}
.mypage-feedback.is-error {border-color:#edccd4;background:#fff4f5;color:#9b354c;}

[data-user-feedback],[data-action-error] {overflow-wrap:anywhere;}

/* User actions preserve drafts while refreshing completed changes on return. */

/* 개인정보 처리방침 (2026-10-29) */
.policy-doc { color:#334155; font-size:15px; line-height:1.75; word-break:keep-all; overflow-wrap:anywhere; }
.policy-doc h1 { font-size:26px; font-weight:800; color:#0f172a; margin:0 0 12px; }
.policy-doc h2 { font-size:18px; font-weight:800; color:#0f172a; margin:36px 0 10px; scroll-margin-top:90px; }
.policy-doc p { margin:0 0 10px; }
.policy-doc ol, .policy-doc ul { margin:0 0 10px; padding-left:22px; }
.policy-doc ol { list-style:decimal; } .policy-doc ul { list-style:disc; }
.policy-doc li { margin:4px 0; }
.policy-doc a { color:var(--brand-600, #7c3aed); font-weight:600; }
.policy-doc code { background:#f1f5f9; padding:1px 5px; border-radius:4px; font-size:13px; }
.policy-summary { background:#faf5ff; border:1px solid #ede9fe; border-radius:14px; padding:14px 16px; font-size:14px; }
.policy-toc { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:6px 16px; margin:18px 0 8px; padding:14px 16px; border:1px solid #f1f5f9; border-radius:14px; font-size:14px; }
.policy-toc a { font-weight:500; color:#475569; }
.policy-table-wrap { overflow-x:auto; margin:8px 0 12px; }
.policy-table { width:100%; border-collapse:collapse; font-size:14px; min-width:520px; }
.policy-table th, .policy-table td { border:1px solid #e2e8f0; padding:8px 10px; text-align:left; vertical-align:top; }
.policy-table th { background:#f8fafc; font-weight:700; color:#0f172a; white-space:nowrap; }
