/* Univadmi 대학입시포털 — WP 네이티브 렌더 브랜드 오버라이드 */
@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@400;500;600;700;800&family=Noto+Serif+KR:wght@500;600;700&display=swap');

:root{
  --u-navy-900:#0b1c33; --u-navy-800:#122a4a; --u-navy-700:#1a3a63;
  --u-blue-600:#2f6fed; --u-blue-500:#3b82f6; --u-amber-500:#d9a441;
  --u-ink-900:#101826; --u-ink-700:#33404f; --u-ink-500:#5b6b7d;
  --u-paper-0:#ffffff; --u-paper-50:#f7f9fc; --u-paper-100:#eef2f8;
  --u-line:#e4e9f1;
  --u-radius-md:14px; --u-radius-lg:20px; --u-radius-pill:999px;
  --u-shadow-md:0 8px 24px rgba(16,24,38,.08);
}

body.wp-theme-twentytwentyfive{
  font-family:'Pretendard',-apple-system,BlinkMacSystemFont,'Malgun Gothic',sans-serif !important;
  color:var(--u-ink-900) !important;
  background:var(--u-paper-0) !important;
}
body.wp-theme-twentytwentyfive :where(h1,h2,h3,h4){
  font-family:'Noto Serif KR','Pretendard',serif !important;
  letter-spacing:-0.01em !important;
  color:var(--u-ink-900) !important;
}
body.wp-theme-twentytwentyfive a{ color:var(--u-blue-600); }
body.wp-theme-twentytwentyfive a:hover{ color:var(--u-navy-900); }
body.wp-theme-twentytwentyfive :focus-visible{
  outline:3px solid var(--u-blue-500) !important; outline-offset:2px !important;
}

/* 헤더(사이트 타이틀 블록)를 브랜드 헤더처럼 */
.wp-site-blocks > header.wp-block-template-part{
  background:rgba(255,255,255,.92) !important;
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--u-line) !important;
  position:sticky; top:0; z-index:100;
  padding:16px 24px !important;
}
.wp-block-site-title, .wp-block-site-title a{
  font-family:'Noto Serif KR','Pretendard',serif !important;
  font-weight:800 !important;
  color:var(--u-navy-900) !important;
  font-size:20px !important;
}
.wp-block-site-title a::before{
  content:'대'; display:inline-flex; align-items:center; justify-content:center;
  width:30px; height:30px; margin-right:8px; border-radius:9px; vertical-align:middle;
  background:linear-gradient(135deg,var(--u-navy-800),var(--u-blue-600));
  color:#fff; font-size:14px; font-weight:700;
}

/* 상단 카테고리 내비게이션(모든 WP 렌더 페이지 공통) */
.univadmi-topnav{
  background:var(--u-navy-900); position:sticky; top:0; z-index:99;
}
.univadmi-topnav .utn-inner{
  max-width:1200px; margin:0 auto; padding:0 24px; height:44px;
  display:flex; align-items:center; gap:24px; overflow-x:auto;
}
.univadmi-topnav a{ color:rgba(255,255,255,.82); font-size:13.5px; font-weight:600; white-space:nowrap; }
.univadmi-topnav a:hover{ color:#fff; }
.univadmi-topnav .utn-cta{
  margin-left:auto; background:var(--u-amber-500); color:var(--u-navy-900) !important;
  padding:6px 14px; border-radius:var(--u-radius-pill); font-weight:700;
}
/* 상단 내비 아래 사이트 타이틀 헤더가 오도록: sticky 겹침 보정 */
.wp-site-blocks > header.wp-block-template-part{ top:44px; }

/* 본문 컨텐츠 타이포/여백 */
.entry-content, .wp-block-post-content{
  font-size:17px !important; line-height:1.8 !important; color:var(--u-ink-900);
}
.entry-content p{ margin-bottom:1.3em; }
.entry-content h2{ font-size:24px !important; margin:2.2em 0 .7em !important; padding-top:.2em; border-top:1px solid var(--u-line); padding-top:1.4em; }
.entry-content h2:first-child{ border-top:none; padding-top:0; }
.entry-content h3{ font-size:19px !important; margin:1.6em 0 .5em !important; color:var(--u-blue-600) !important; }
.entry-content figure.post-img{ margin:2em 0; }
.entry-content figure.post-img img{
  border-radius:var(--u-radius-lg) !important; box-shadow:var(--u-shadow-md);
}
.entry-content p.post-lead{
  font-size:18px; color:var(--u-ink-700); background:var(--u-paper-50);
  border-left:3px solid var(--u-amber-500); padding:16px 20px; border-radius:0 var(--u-radius-md) var(--u-radius-md) 0;
}
.entry-content p.post-note{
  font-size:15px; color:var(--u-ink-500); background:var(--u-paper-100);
  padding:14px 18px; border-radius:var(--u-radius-md);
}
.entry-content p.ai-notice{ font-size:13px !important; color:#94a3b8 !important; }
.entry-content .legal-notice{ font-size:13px !important; }

/* 카테고리/태그 배지, 게시물 메타 */
.wp-block-post-terms a, .wp-block-post-date{
  color:var(--u-blue-600) !important; font-weight:600;
}

/* 대표이미지 */
.wp-block-post-featured-image img{
  border-radius:var(--u-radius-lg) !important; box-shadow:var(--u-shadow-md);
}

/* 목차(Easy Table of Contents) 카드화 */
#ez-toc-container{
  background:var(--u-paper-50) !important; border:1px solid var(--u-line) !important;
  border-radius:var(--u-radius-md) !important; padding:20px 24px !important;
}

/* 관련 게시물/최근 글 카드류 */
.wp-block-latest-posts, .wp-block-query{
  gap:24px;
}

/* 기본 코멘트/위젯 잔여 요소 숨김 */
#comments, .comments-area, .widget-area, .wp-block-comments, .wp-block-post-comments-form{
  display:none !important;
}

/* 브랜드 푸터(모든 WP 렌더 페이지 공통 삽입) */
.univadmi-footer-note{
  background:var(--u-navy-900); color:rgba(255,255,255,.72);
  padding:40px 24px 24px; margin-top:64px;
}
.univadmi-footer-note .ufn-inner{ max-width:1200px; margin:0 auto; }
.univadmi-footer-note .ufn-links{ display:flex; gap:20px; flex-wrap:wrap; margin-bottom:18px; }
.univadmi-footer-note .ufn-links a{ color:rgba(255,255,255,.8); font-size:14px; font-weight:600; }
.univadmi-footer-note .ufn-links a:hover{ color:#fff; }
.univadmi-footer-note .ufn-legal{ font-size:12.5px; color:rgba(255,255,255,.45); line-height:1.8; max-width:900px; margin-bottom:10px; }
.univadmi-footer-note .ufn-copy{ font-size:12.5px; color:rgba(255,255,255,.4); }

/* 기존 테마 기본 푸터 템플릿 파트는 숨기고 브랜드 푸터만 노출 */
.wp-site-blocks > footer.wp-block-template-part{ display:none !important; }

/* 읽기 컬럼 폭 제한 및 반응형 */
@media (max-width:640px){
  .entry-content{ font-size:16px !important; }
  .wp-block-site-title a{ font-size:17px !important; }
}
