/* LOJE Yeshua Site — old XE XEdition look */
:root { --yu-gold: #cda25a; --yu-text: #333; --yu-gray: #888; --yu-line: #e4e4e4; --yu-w: 1200px;
  --yu-font: 'Open Sans', '나눔바른고딕', NanumBarunGothic, 'Malgun Gothic', '맑은 고딕', 'Apple SD Gothic Neo', AppleGothic, Helvetica, sans-serif; }
body { font-family: var(--yu-font); color: var(--yu-text); font-size: 13px; background: #fff; }
a { color: inherit; text-decoration: none; }
.yu-wrap { width: var(--yu-w); max-width: calc(100% - 32px); margin: 0 auto; }

/* ---------- header (Astra) ---------- */
.site-header .ast-primary-header-bar, .main-header-bar { background: #fff; border-bottom: 0; }
.ast-primary-header-bar .site-primary-header-wrap { min-height: 100px; }
.site-header .ast-container, .ast-primary-header-bar .ast-builder-grid-row { max-width: var(--yu-w); }
.site-header .custom-logo { max-height: 64px; width: auto; }
.main-header-menu > .menu-item > .menu-link { font-family: var(--yu-font); font-size: 15px; font-weight: 700; color: #888; padding: 0 20px; line-height: 100px; }
.main-header-menu > .menu-item > .menu-link:hover, .main-header-menu > .menu-item.current-menu-item > .menu-link,
.main-header-menu > .menu-item.current-menu-ancestor > .menu-link { color: #444; }
.main-header-menu .ast-header-navigation-arrow, .main-header-menu .dropdown-menu-toggle { display: none !important; }
.main-header-menu .sub-menu { background: #333 !important; border: 0 !important; padding: 8px 0; width: auto; min-width: 170px; box-shadow: none; }
.main-header-menu .sub-menu::before { content: ''; position: absolute; top: -3px; left: 0; right: 0; height: 3px; background: var(--yu-gold); }
.main-header-menu .sub-menu .menu-link { font-size: 13px; color: #9d9d9d !important; padding: 0 30px 0 20px !important; line-height: 40px; height: 40px; border: 0 !important; white-space: nowrap; }
.main-header-menu .sub-menu .menu-link:hover, .main-header-menu .sub-menu .current-menu-item > .menu-link { color: var(--yu-gold) !important; background: transparent; }
.yu-search-item > a { padding: 0 0 0 30px !important; color: #888 !important; line-height: 100px; display: flex; align-items: center; height: 100px; }
.yu-user-item > a { padding: 0 0 0 14px !important; color: #888 !important; display: flex; align-items: center; height: 100px; }
.yu-user-on { display: flex; align-items: center; height: 100px; padding-left: 14px; }
.yu-user-on { position: relative; }
.yu-user-badge { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #d4d4d4; color: #fff; cursor: pointer; overflow: hidden; border: 0; padding: 0; }
.yu-user-badge:hover, .yu-user-badge:focus { background: #c4c4c4; }
/* small menu under the icon: opens on hover or tap (focus); the icon itself never signs out */
.yu-user-menu { display: none; position: absolute; top: calc(50% + 24px); right: -10px; z-index: 1000; min-width: 150px; background: #333; padding: 8px 0; text-align: left; }
.yu-user-on:hover .yu-user-menu, .yu-user-on:focus-within .yu-user-menu { display: block; }
.yu-user-on:hover .yu-user-menu::before, .yu-user-on:focus-within .yu-user-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.yu-user-menu .yu-user-name { display: block; padding: 4px 20px 8px; font-size: 12px; color: #777; white-space: nowrap; border-bottom: 1px solid #444; margin-bottom: 4px; }
.yu-user-menu a { display: block; padding: 0 20px; line-height: 36px; font-size: 13px; color: #9d9d9d !important; white-space: nowrap; }
.yu-user-menu a:hover { color: #fff !important; }
.yu-user-badge svg { width: 28px; height: 28px; margin-top: 8px; }
.yu-locked { border: 1px solid #e4e4e4; background: #fafafa; padding: 40px 20px; text-align: center; font-size: 14px; line-height: 1.7; }
.yu-locked .yu-btn { margin-top: 14px; padding: 8px 26px; }
.yu-search-layer { position: fixed; inset: 0 0 auto 0; z-index: 99999; background: #fff; border-bottom: 1px solid var(--yu-line); padding: 30px 16px; }
.yu-search-layer form { display: flex; gap: 10px; max-width: var(--yu-w); margin: 0 auto; }
.yu-search-layer input { flex: 1; border: 0; border-bottom: 2px solid #333; font-size: 22px; padding: 8px 0; outline: 0; }
.yu-search-layer button { background: none; border: 0; font-size: 34px; color: #888; cursor: pointer; }

/* ---------- home ---------- */
body { overflow-x: hidden; }
body, #page, .site-content, .ast-separate-container, .ast-plain-container { background: #fff !important; }
.yu-hero { position: relative; overflow: hidden; height: 600px; background: #222; width: 100vw; margin-left: calc(50% - 50vw); }
.home .elementor-element.e-con { --padding-top: 0; --padding-bottom: 0; }
.yu-hero .slide { position: absolute; inset: 0; background-size: cover; background-position: 50% 50%; opacity: 0; transition: opacity 1s; }
.yu-hero .slide.on { opacity: 1; }
.yu-hero .dots { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; z-index: 2; }
.yu-hero .dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; margin: 0 3px; background: rgba(255,255,255,.5); padding: 0; cursor: pointer; }
.yu-hero .dots button.on { background: #fff; }
.yu-hero .arr { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); background: none; border: 0; color: #fff; font-size: 40px; opacity: 0; transition: opacity .3s; cursor: pointer; padding: 10px 20px; }
.yu-hero:hover .arr { opacity: .8; }
.yu-hero .arr.l { left: 10px; } .yu-hero .arr.r { right: 10px; }
.yu-home { width: var(--yu-w); max-width: calc(100% - 32px); margin: 0 auto; padding: 30px 0 60px; }
.yu-headline { text-align: center; font-family: 'Noto Serif KR', 'Batang', serif; font-size: 24px; font-weight: 300; margin: 20px 0 30px; line-height: 1.5; }
.yu-headline .r { color: #e00; }
.yu-row { display: grid; gap: 20px; margin-bottom: 20px; }
.yu-row.c3 { grid-template-columns: repeat(3, 1fr); }
.yu-row.c2 { grid-template-columns: repeat(2, 1fr); }
.yu-panel { border: 1px solid #ccc; background: #fff; padding: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.08); min-width: 0; }
.yu-panel.plain { border: 0; box-shadow: none; padding: 0 10px; }
.yu-banners { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px 18px; margin: 30px 0 40px; }
.yu-banners a { display: block; border: 1px solid #ddd; }
.yu-banners img { display: block; width: 100%; height: auto; }
.yu-preview { background: #f5f5f5; border: 1px solid #e6e6e6; padding: 18px 20px 24px; margin: 30px 0; }
.yu-preview h3 { text-align: center; font-size: 13px; font-weight: 400; color: #555; margin: 0 0 18px; }
.yu-preview h3 b { color: #c0392b; }
.yu-preview ul { columns: 3; column-gap: 30px; margin: 0; padding: 0; list-style: none; }
.yu-preview li { break-inside: avoid; padding: 3px 0 3px 14px; position: relative; font-size: 12px; line-height: 1.5; }
.yu-preview li::before { content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: #e67e22; }
.yu-preview a { color: #2b5797; }
.yu-preview a:hover { text-decoration: underline; }

/* carousel box */
.yu-carousel { position: relative; height: 245px; overflow: hidden; }
.yu-carousel a { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.yu-carousel a.on { opacity: 1; z-index: 1; }
.yu-carousel img { width: 100%; height: 100%; object-fit: cover; }

/* tabs (newest_document_tab look) */
.yu-tabs { min-width: 0; }
.yu-tab-head { display: flex; flex-wrap: wrap; margin: 0 0 8px; padding: 0; list-style: none; border-bottom: 2px solid #555; }
.yu-tab-head li a { display: block; padding: 6px 14px 4px; font-size: 12px; color: #aaa; border: 1px solid transparent; border-bottom: 0; margin-bottom: -2px; }
.yu-tab-head li.on a { color: #333; border-color: #ccc; border-bottom: 2px solid #fff; background: #fff; letter-spacing: -.3px; }
.yu-tab-body { list-style: none; margin: 0; padding: 0; }
.yu-tab-body[hidden] { display: none; }
.yu-list li, .yu-tab-body.yu-list li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 4px; font-size: 12px; line-height: 1.55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yu-tab-body.yu-list li a { overflow: hidden; text-overflow: ellipsis; }
.yu-tab-body.yu-list li a::before { content: '•'; margin-right: 4px; color: #999; }
.yu-tab-body.yu-list li time { color: #aaa; flex: none; }
.yu-list a:hover, .yu-tab-body a:hover { color: var(--yu-gold); }
.yu-gallery { display: grid; gap: 14px; list-style: none; margin: 0; padding: 6px 4px 0; }
.yu-gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.yu-gallery.cols-5 { grid-template-columns: repeat(5, 1fr); }
.yu-g-img { display: block; aspect-ratio: 4 / 3; background: #f1f1f1; overflow: hidden; border: 1px solid #ddd; padding: 2px; }
.yu-g-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yu-g-t { display: block; font-size: 11px; color: #555; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yu-g-t::before { content: '• '; }

/* ---------- sub pages ---------- */
#content > .ast-container:has(> .yu-frame) { display: block; max-width: none; padding: 0; }
.yu-frame { width: 100%; }
.yu-sub { padding: 70px 0; line-height: 30px; background: #ddd center / cover no-repeat; }
.yu-sub h1 { font-family: Raleway, var(--yu-font); font-weight: 400; font-size: 23px; letter-spacing: 1px; color: #fff; margin: 0; }
.yu-body { display: flex; gap: 40px; align-items: flex-start; }
.yu-lnb { width: 260px; flex: none; padding: 40px 0 16px; }
.yu-lnb ul { list-style: none; margin: 0; padding: 0; }
.yu-lnb li { margin-bottom: 40px; }
.yu-lnb a { display: block; font-size: 15px; line-height: 21px; color: #444; }
.yu-lnb li.on a, .yu-lnb a:hover { color: var(--yu-gold); }
.yu-content { flex: 1; min-width: 0; padding: 40px 0 100px; min-height: 400px; font-size: 13px; line-height: 1.6; }
.yu-content img { max-width: 100%; height: auto; }
.yu-content iframe { max-width: 100%; }
.yu-page-h { font-size: 26px; font-weight: 700; margin: 0 0 30px; color: #111; }
.yu-bd-top { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 10px; border-bottom: 1px solid #ccc; }
.yu-crumb { font-size: 12px; font-weight: 600; }
.yu-bd-search { display: flex; gap: 4px; }
.yu-bd-search input { border: 1px solid #ccc; padding: 3px 8px; font-size: 12px; width: 160px; border-radius: 2px; }
.yu-bd-search button, .yu-btn { border: 1px solid #ccc; background: #fff; color: #333; padding: 4px 12px; font-size: 12px; border-radius: 2px; cursor: pointer; box-shadow: 0 1px 1px rgba(0,0,0,.05); display: inline-block; }
.yu-bd { width: 100%; border-collapse: collapse; margin: 0; font-size: 12px; border: 0; }
.yu-bd th { background: #f9f9f9; border: 0; border-bottom: 1px solid #ccc; padding: 10px 6px; font-weight: 600; text-align: center; color: #333; }
.yu-bd td { border: 0; border-bottom: 1px solid #eee; padding: 9px 6px; text-align: center; color: #555; }
.yu-bd td.title { text-align: left; }
.yu-bd td.title a { color: #222; }
.yu-bd td.title a:hover { text-decoration: underline; }
.yu-bd .cnt { color: #e00; font-size: 11px; }
.yu-bd .no { width: 60px; } .yu-bd .author { width: 90px; } .yu-bd .date { width: 80px; } .yu-bd .views { width: 60px; }
.yu-pager { text-align: center; margin: 30px 0; }
.yu-pager .page-numbers { display: inline-block; min-width: 26px; padding: 2px 6px; margin: 0 3px; color: #555; font-size: 13px; }
.yu-pager .page-numbers.current { border: 1px solid #ccc; border-radius: 2px; font-weight: 700; }
.yu-read-h { display: flex; justify-content: space-between; align-items: center; background: #f9f9f9; border-bottom: 1px solid #ddd; padding: 10px 14px; }
.yu-read-h h2 { font-size: 13px; font-weight: 700; margin: 0; }
.yu-read-h time { font-size: 12px; color: #666; }
.yu-read-m { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid #eee; font-size: 12px; color: #555; }
.yu-read-m .r { color: #888; }
.yu-read-body { padding: 40px 14px; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.yu-read-body p { margin: 0 0 .4em; }
.yu-read-f { border-top: 1px solid #ccc; padding: 14px 4px; text-align: right; }
.yu-files { border: 1px solid #eee; background: #fafafa; padding: 10px 14px; margin-top: 30px; font-size: 12px; }
.yu-files a { color: #2b5797; }

/* lecture boxes */
.yu-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 20px; }
.yu-box { min-width: 0; }
.yu-box.yu-box-g { grid-column: 1 / -1; }
.yu-box-h { margin: 0 0 8px; border-bottom: 2px solid #555; font-size: 12px; font-weight: 700; }
.yu-box-h a { display: inline-block; padding: 6px 16px 4px; border: 1px solid #ccc; border-bottom: 0; color: #333; }
.yu-box .yu-list { list-style: none; margin: 0; padding: 0; }
.yu-box .yu-list li { font-size: 12px; padding: 1px 6px; }

/* ---------- footer ---------- */
.site-footer { display: none; }
.yu-footer { border-top: 1px solid var(--yu-line); border-bottom: 3px solid var(--yu-gold); background: #f1f1f1; }
.yu-f-band { height: 100px; }
.yu-f-cr { background: #555; padding: 19px; }
.yu-f-in { width: var(--yu-w); max-width: 100%; margin: 0 auto; color: #f1f1f1; font-size: 13px; line-height: 16px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; }
.yu-f-in a { color: #f1f1f1; }
.yu-f-in .logo { grid-column: 2; text-align: right; }
.yu-f-in img { max-width: 80px; height: auto; }

/* ---------- smaller screens ---------- */
@media (max-width: 1240px) {
  .yu-row.c3, .yu-row.c2 { grid-template-columns: 1fr 1fr; }
  .yu-banners { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 921px) {
  .main-header-menu > .menu-item > .menu-link { line-height: 46px; }
  .yu-user-on { height: 46px; padding-left: 20px; }
  .yu-search-item > a, .yu-user-item > a { height: 46px; line-height: 46px; padding-left: 20px !important; }
  .main-header-menu .sub-menu { background: #f6f6f6 !important; }
  .main-header-menu .sub-menu::before { display: none; }
  .yu-hero { height: 52vw; }
  .yu-row.c3, .yu-row.c2 { grid-template-columns: 1fr; }
  .yu-banners { grid-template-columns: repeat(3, 1fr); }
  .yu-preview ul { columns: 1; }
  .yu-body { display: block; }
  .yu-lnb { width: auto; padding: 16px 0 0; }
  .yu-lnb ul { display: flex; flex-wrap: wrap; gap: 6px 18px; }
  .yu-lnb li { margin: 0; }
  .yu-lnb a { font-size: 14px; }
  .yu-content { padding: 24px 0 60px; }
  .yu-boxes { grid-template-columns: 1fr 1fr; }
  .yu-bd .author, .yu-bd .views, .yu-bd .no { display: none; }
  .yu-f-in { grid-template-columns: 1fr; gap: 14px; }
  .yu-f-in .logo { grid-column: auto; text-align: left; }
  .yu-gallery.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .yu-sub { padding: 40px 0; }
}
@media (max-width: 600px) {
  .yu-boxes { grid-template-columns: 1fr; }
  .yu-banners { grid-template-columns: repeat(2, 1fr); }
  .yu-headline { font-size: 18px; }
}

/* old XE content tables were drawn without lines (border="0" or no border): drop the theme's table grid (boss 2026-12-02) */
:is(.yu-page-body, .yu-read-body, .entry-content) table:is(:not([border]), [border="0"]):not(.yu-bd),
:is(.yu-page-body, .yu-read-body, .entry-content) table:is(:not([border]), [border="0"]):not(.yu-bd) > * > tr > :is(td, th) { border: 0; }
