/* 덕화장학회 서브 페이지 공통 스타일 */

/* ---------- Page hero ---------- */
.page-hero { background: var(--green); color: #fff; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 360px at 90% 0%, rgba(255,255,255,.08), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(216,105,42,.16), transparent 60%); }
.page-hero .wrap { position: relative; padding-top: 64px; padding-bottom: 64px; }
.crumb { display: flex; gap: 8px; font-size: 14px; color: rgba(255,255,255,.65); }
.crumb span + span::before { content: "›"; margin-right: 8px; opacity: .6; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); line-height: 1.3; margin-top: 12px; }
.page-hero p { margin-top: 12px; color: rgba(255,255,255,.8); max-width: 640px; }

/* ---------- LNB ---------- */
.lnb { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 76px; z-index: 40; }
.lnb ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.lnb ul::-webkit-scrollbar { display: none; }
.lnb a { display: block; padding: 18px 18px; font-weight: 600; color: var(--ink-3); white-space: nowrap; border-bottom: 3px solid transparent; }
.lnb a:hover { color: var(--ink); }
.lnb a.on { color: var(--green); border-bottom-color: var(--accent); }

/* ---------- Content ---------- */
.content { padding: 80px 0 112px; }
.narrow { max-width: 880px; margin: 0 auto; }
.sec + .sec { margin-top: 88px; }
.sec-title { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 30px); line-height: 1.4; margin-bottom: 24px; }
.sec-title small { display: block; font-family: "Pretendard Variable", sans-serif; font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: .06em; margin-bottom: 6px; }
.lead { font-size: 19px; color: var(--ink-2); }
.prose p + p { margin-top: 16px; }
.prose { color: var(--ink-2); font-size: 17px; line-height: 1.85; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.muted { color: var(--ink-3); font-size: 15px; }
.mark { color: var(--accent); font-weight: 700; }

/* ---------- Greeting ---------- */
.greet { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.portrait { aspect-ratio: 3/4; border-radius: var(--radius); background: linear-gradient(160deg, #d9ded9, #b9c3bd); display: grid; place-items: center; color: #fff; font-size: 14px; }
.greet blockquote { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.55; color: var(--ink); margin-bottom: 32px; }
.greet blockquote em { font-style: normal; color: var(--green-2); }
.sign { margin-top: 40px; text-align: right; color: var(--ink-2); }
.sign strong { font-family: var(--serif); font-size: 24px; color: var(--ink); margin-left: 12px; letter-spacing: .2em; }
.purpose { background: var(--green-soft); border-radius: 20px; padding: 56px; text-align: center; }
.purpose p { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.7; }
.purpose em { font-style: normal; color: var(--accent); }

/* ---------- Tables ---------- */
.tbl { width: 100%; border-collapse: collapse; background: var(--white); border-top: 2px solid var(--ink); font-size: 16px; }
.tbl th, .tbl td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl thead th { background: var(--paper); font-size: 15px; color: var(--ink-2); font-weight: 700; }
.tbl tbody th { width: 180px; background: var(--paper); color: var(--ink-2); font-weight: 600; }
.tbl .num { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tr.hl td { background: #fffaf5; }
.tbl-wrap { overflow-x: auto; border-radius: 4px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 36px; }
.tl-item::before { content: ""; position: absolute; left: -36px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--green); }
.tl-item.key::before { background: var(--accent); border-color: var(--accent); }
.tl-year { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--green); line-height: 1.2; }
.tl-item ul { margin-top: 8px; color: var(--ink-2); }
.tl-item li { padding: 2px 0; }
.tl-item li b { color: var(--ink); font-weight: 600; margin-right: 10px; font-variant-numeric: tabular-nums; }

/* ---------- Org chart ---------- */
.org { display: flex; flex-direction: column; align-items: center; gap: 0; }
.org .node { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 28px; font-weight: 700; text-align: center; min-width: 160px; }
.org .node.top { background: var(--green); color: #fff; border-color: var(--green); }
.org .node small { display: block; font-weight: 500; font-size: 13px; color: var(--ink-3); }
.org .node.top small { color: rgba(255,255,255,.7); }
.org .v { width: 2px; height: 28px; background: var(--line); }
.org .row { display: flex; gap: 24px; position: relative; padding-top: 28px; }
.org .row::before { content: ""; position: absolute; top: 0; left: 80px; right: 80px; height: 2px; background: var(--line); }
.org .row .node { position: relative; }
.org .row .node::before { content: ""; position: absolute; top: -28px; left: 50%; width: 2px; height: 28px; background: var(--line); }

/* ---------- Scholarship ---------- */
.notice-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.key-dates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.kd { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.kd .k { font-size: 14px; font-weight: 700; color: var(--ink-3); }
.kd .v { font-size: 22px; font-weight: 800; margin-top: 6px; line-height: 1.35; }
.kd .s { font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.kd.main { background: var(--green); border-color: var(--green); color: #fff; }
.kd.main .k, .kd.main .s { color: rgba(255,255,255,.75); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: #eceae5; color: var(--ink-2); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.open { background: var(--accent-soft); color: var(--accent); }
.checklist li { position: relative; padding: 12px 0 12px 36px; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 14px; width: 22px; height: 22px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23234a3e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat; }
.checklist.x li::before { background: #f6e6e3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4432e' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E") center/12px no-repeat; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.bonus { border-left: 4px solid var(--accent); }
.bonus h4 { font-size: 18px; margin-bottom: 12px; }
.bonus li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.bonus li:last-child { border-bottom: 0; }
.bonus li b { color: var(--accent); white-space: nowrap; }
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; counter-reset: step; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 18px; position: relative; counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--accent); display: block; margin-bottom: 10px; }
.step strong { display: block; font-size: 16px; line-height: 1.45; }
.step span { display: block; font-size: 14px; color: var(--ink-3); margin-top: 6px; line-height: 1.5; }
.where { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { font-size: 14px; padding: 6px 14px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-weight: 600; }
.files li a { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); transition: .15s; }
.files li + li { margin-top: 10px; }
.files li a:hover { border-color: var(--green-2); background: var(--green-soft); }
.files .ext { flex: none; width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: #e5eef8; color: #2a5d93; }
.files .ext.pdf { background: #fbe7e4; color: #b4432e; }
.files .fn { flex: 1; font-weight: 600; }
.files .fn small { display: block; font-weight: 400; color: var(--ink-3); font-size: 14px; }
.files .dl { color: var(--green-2); font-weight: 700; font-size: 15px; white-space: nowrap; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--accent); font-family: var(--serif); margin-right: 12px; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--ink-3); }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 24px 22px 50px; color: var(--ink-2); }
.callout { display: flex; gap: 16px; align-items: flex-start; background: var(--accent-soft); border-radius: 12px; padding: 20px 24px; color: #8a3f13; }
.callout svg { flex: none; margin-top: 3px; }
.contact-bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--green); color: #fff; border-radius: 20px; padding: 32px 40px; }
.contact-bar strong { font-size: 22px; }
.contact-bar p { color: rgba(255,255,255,.75); font-size: 15px; }
.contact-bar a.tel { font-size: 26px; font-weight: 800; color: #fff; }

/* ---------- Business ---------- */
.biz-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.biz-hero .ph { border-radius: 20px; aspect-ratio: 4/3; }
.biz-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.biz-points .card h3 { font-size: 21px; margin: 12px 0 8px; }
.biz-points .card p { color: var(--ink-2); font-size: 16px; }
.ico-b { width: 52px; height: 52px; border-radius: 14px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.year-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.year-tabs button { font: inherit; font-weight: 700; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink-2); cursor: pointer; }
.year-tabs button.on { background: var(--green); color: #fff; border-color: var(--green); }
.year-panel { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.year-panel .ph { border-radius: var(--radius); aspect-ratio: 16/10; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini-stats div { background: var(--paper); border-radius: 12px; padding: 18px; }
.mini-stats b { display: block; font-family: var(--serif); font-size: 28px; color: var(--green); }
.mini-stats span { font-size: 14px; color: var(--ink-3); }
.other-biz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.other-biz a { display: flex; justify-content: space-between; align-items: center; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font-weight: 700; font-size: 18px; transition: .15s; }
.other-biz a:hover { border-color: var(--green-2); color: var(--green-2); }

/* ---------- Board list ---------- */
.board-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.board-tabs a { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-weight: 600; color: var(--ink-2); font-size: 15px; }
.board-tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.board-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.board-bar .total b { color: var(--accent); }
.search { display: flex; gap: 8px; }
.search select, .search input { font: inherit; font-size: 15px; height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; background: var(--white); color: var(--ink); }
.search input { width: 260px; }
.search button { height: 46px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--green); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.list { border-top: 2px solid var(--ink); background: var(--white); }
.list li a { display: grid; grid-template-columns: 72px 1fr 120px 72px; align-items: center; gap: 16px; padding: 20px 16px; border-bottom: 1px solid var(--line); }
.list li a:hover { background: var(--paper); }
.list li a:hover .tt { color: var(--green-2); text-decoration: underline; text-underline-offset: 3px; }
.list li.head { display: grid; grid-template-columns: 72px 1fr 120px 72px; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--ink-3); background: var(--paper); }
.list .no { text-align: center; color: var(--ink-3); font-size: 15px; }
.list .pin .no { color: var(--accent); font-weight: 700; }
.list .tt { font-weight: 500; display: flex; align-items: center; gap: 10px; min-width: 0; }
.list .tt span.t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .pin .tt { font-weight: 700; }
.list .dt, .list .vw { text-align: center; color: var(--ink-3); font-size: 15px; font-variant-numeric: tabular-nums; }
.clip { flex: none; color: var(--ink-3); }
.new { flex: none; font-size: 11px; font-weight: 800; color: #fff; background: var(--accent); border-radius: 4px; padding: 1px 5px; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.pager a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; color: var(--ink-2); font-weight: 600; }
.pager a.on { background: var(--green); color: #fff; }
.pager a:hover:not(.on) { background: var(--white); }

/* ---------- Board view ---------- */
.view-head { border-top: 2px solid var(--ink); padding: 32px 0 24px; border-bottom: 1px solid var(--line); }
.view-head h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.4; margin: 12px 0 16px; }
.view-meta { display: flex; gap: 20px; flex-wrap: wrap; color: var(--ink-3); font-size: 15px; }
.view-body { padding: 48px 0; border-bottom: 1px solid var(--line); }
.view-body h3 { font-size: 21px; margin: 40px 0 14px; display: flex; align-items: center; gap: 10px; }
.view-body h3:first-child { margin-top: 0; }
.view-body h3::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: var(--accent); }
.view-body p, .view-body li { color: var(--ink-2); }
.view-body ol { padding-left: 22px; list-style: decimal; }
.view-body ol li { padding: 4px 0; }
.attach { background: var(--paper); border-radius: 12px; padding: 24px; margin-top: 32px; }
.attach h4 { font-size: 15px; margin-bottom: 12px; color: var(--ink-2); }
.prevnext { border-top: 1px solid var(--line); margin-top: 48px; }
.prevnext a { display: grid; grid-template-columns: 80px 1fr 120px; gap: 16px; padding: 18px 16px; border-bottom: 1px solid var(--line); }
.prevnext a:hover { background: var(--white); }
.prevnext .lb { color: var(--ink-3); font-size: 15px; }
.prevnext .dt { color: var(--ink-3); font-size: 15px; text-align: right; }
.view-actions { display: flex; justify-content: center; margin-top: 40px; }
.btn-line { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.g-card .ph { border-radius: var(--radius); aspect-ratio: 4/3; }
.g-card .cat { display: inline-block; margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--accent); }
.g-card h3 { font-size: 19px; line-height: 1.45; margin-top: 4px; }
.g-card:hover h3 { color: var(--green-2); }
.g-card .d { font-size: 14px; color: var(--ink-3); margin-top: 6px; }
.feature { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; margin-bottom: 64px; }
.feature .ph { border-radius: 20px; aspect-ratio: 16/10; }
.feature h2 { font-family: var(--serif); font-size: clamp(24px, 2.8vw, 32px); line-height: 1.4; margin: 12px 0 16px; }

/* ---------- Support ---------- */
.give { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.give .account { border: 1px solid var(--line); }
.donors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.donor { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.donor .y { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.donor strong { display: block; font-size: 19px; margin-top: 6px; }
.donor span { font-size: 15px; color: var(--ink-2); }
.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.uses div { text-align: center; padding: 28px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.uses .ico-b { margin: 0 auto 14px; }
.uses strong { display: block; }
.uses span { font-size: 14px; color: var(--ink-3); }

/* ---------- Location ---------- */
.map { border-radius: 20px; overflow: hidden; aspect-ratio: 21/9; background: #e7ebe8; position: relative; display: grid; place-items: center; }
.map .pin { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--green); font-weight: 700; }
.map .label { position: absolute; left: 16px; bottom: 16px; font-size: 13px; color: var(--ink-3); background: rgba(255,255,255,.85); padding: 4px 10px; border-radius: 6px; }
.map-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.btn-map { border: 1px solid var(--line); background: var(--white); color: var(--ink); height: 44px; }
.btn-map:hover { border-color: var(--green-2); color: var(--green-2); }
.loc-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.loc-info .card h3 { font-size: 15px; color: var(--accent); margin-bottom: 8px; }
.loc-info .card p { font-size: 18px; font-weight: 600; }
.loc-info .card a { color: var(--green-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .greet { grid-template-columns: 220px 1fr; gap: 32px; }
  .notice-hero, .biz-hero, .year-panel, .feature, .give { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .gallery, .donors { grid-template-columns: repeat(2, 1fr); }
  .uses { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .lnb { top: 64px; }
  .lnb a { padding: 14px 12px; font-size: 15px; }
  .page-hero .wrap { padding-top: 40px; padding-bottom: 40px; }
  .content { padding: 48px 0 80px; }
  .sec + .sec { margin-top: 64px; }
  .card { padding: 24px 20px; }
  .greet { grid-template-columns: 1fr; }
  .portrait { max-width: 200px; }
  .purpose { padding: 36px 20px; }
  .tbl th, .tbl td { padding: 12px 12px; font-size: 15px; }
  .tbl tbody th { width: 110px; }
  .key-dates, .two, .biz-points, .other-biz, .loc-info { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact-bar { padding: 24px; }
  .search { width: 100%; }
  .search input { flex: 1; width: auto; min-width: 0; }
  .list li.head { display: none; }
  .list li a { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 16px 4px; }
  .list .no, .list .vw { display: none; }
  .list .tt { grid-column: 1 / -1; }
  .list .dt { text-align: left; font-size: 14px; }
  .prevnext a { grid-template-columns: 56px 1fr; }
  .prevnext .dt { display: none; }
  .gallery, .donors, .uses { grid-template-columns: 1fr; }
  .uses { grid-template-columns: 1fr 1fr; }
  .map { aspect-ratio: 4/3; }
  .org .row { flex-direction: column; gap: 12px; padding-top: 0; }
  .org .row::before, .org .row .node::before { display: none; }
}
@media (max-width: 720px) { .greet blockquote br, .purpose p br { display: none; } }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- 게시글 본문 (에디터 출력) ---------- */
.rich { color: var(--ink-2); font-size: 17px; line-height: 1.85; overflow-wrap: anywhere; }
.rich > * + * { margin-top: 14px; }
.rich h3 { font-size: 22px; color: var(--ink); margin-top: 36px; }
.rich h4 { font-size: 19px; color: var(--ink); margin-top: 28px; }
.rich ul { list-style: disc; padding-left: 22px; }
.rich ol { list-style: decimal; padding-left: 22px; }
.rich li + li { margin-top: 4px; }
.rich blockquote { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 14px 20px; border-radius: 0 10px 10px 0; color: #6b3712; }
.rich a { color: var(--green-2); text-decoration: underline; text-underline-offset: 3px; }
.rich figure img { max-width: 100%; height: auto; border-radius: 12px; display: block; }
.rich hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.rich pre { background: var(--paper); padding: 16px; border-radius: 10px; overflow-x: auto; font-size: 14px; }
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 32px; }
.photo-grid.single { grid-template-columns: 1fr; }
.photo-grid a { display: block; border-radius: 12px; overflow: hidden; background: var(--paper); }
.photo-grid img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .3s; }
.photo-grid.single img { aspect-ratio: auto; max-height: 640px; object-fit: contain; }
.photo-grid a:hover img { transform: scale(1.03); }
.empty { text-align: center; padding: 80px 0; color: var(--ink-3); background: var(--white); border-top: 2px solid var(--ink); }
.prevnext .none { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding: 18px 16px; border-bottom: 1px solid var(--line); }
@media (max-width: 720px) { .photo-grid { grid-template-columns: 1fr; } .prevnext .none { grid-template-columns: 56px 1fr; } }

/* ---------- 정관 및 시행세칙 ---------- */
.rule-downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 32px; }
.rule-dl { display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: .15s; }
.rule-dl:hover { border-color: var(--green-2); background: var(--green-soft); }
.rule-dl .ext { flex: none; width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: #e5eef8; color: #2a5d93; }
.rule-dl .fn { flex: 1; font-weight: 700; font-size: 17px; min-width: 0; }
.rule-dl .fn small { display: block; font-weight: 400; font-size: 14px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rule-dl .dl { font-size: 22px; color: var(--green-2); font-weight: 700; }
.rule-tabs { display: flex; gap: 8px; border-bottom: 2px solid var(--ink); margin-bottom: 40px; }
.rule-tabs a { padding: 14px 28px; font-weight: 700; font-size: 18px; color: var(--ink-3); border-radius: 12px 12px 0 0; }
.rule-tabs a.on { background: var(--ink); color: #fff; }
.rule-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.rule-toc { position: sticky; top: 150px; display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--line); padding-left: 16px; }
.rule-toc strong { font-size: 14px; color: var(--ink-3); margin-bottom: 8px; }
.rule-toc a { font-size: 15px; color: var(--ink-2); padding: 5px 0; }
.rule-toc a:hover { color: var(--green-2); }
.rule-title { font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); text-align: center; margin-bottom: 40px; }
.rule-chapter { scroll-margin-top: 150px; }
.rule-chapter + .rule-chapter { margin-top: 56px; }
.rule-chapter h3 { font-family: var(--serif); font-size: 22px; color: var(--green); padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.rule-article { padding: 18px 0; border-bottom: 1px dashed var(--line); }
.rule-article h4 { font-size: 17px; margin-bottom: 8px; }
.rule-article h4 span { color: var(--accent); margin-right: 8px; }
.rule-article p, .rule-addendum p { color: var(--ink-2); font-size: 16px; line-height: 1.85; }
.rule-article p.sub { padding-left: 1.2em; }
.rule-article p.sub2 { padding-left: 2.4em; }
.rule-addendum { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.rule-table { margin: 12px 0; font-size: 14px; }
.rule-table th, .rule-table td { padding: 8px 10px; text-align: center; border: 1px solid var(--line); vertical-align: middle; }
.rule-table th { background: var(--paper); }
@media (max-width: 1024px) {
  .rule-layout { grid-template-columns: 1fr; }
  .rule-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; border-left: 0; padding-left: 0; margin-bottom: 8px; }
  .rule-toc strong { width: 100%; }
  .rule-toc a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: 14px; }
}
@media (max-width: 720px) {
  .rule-downloads { grid-template-columns: 1fr; }
  .rule-tabs a { padding: 12px 20px; font-size: 16px; }
  .rule-chapter { scroll-margin-top: 120px; }
}

/* 권역별 임원 현황 */
.officer-table th, .officer-table td { text-align: center; vertical-align: middle; border: 1px solid var(--line); padding: 10px 12px; }
.officer-table .term { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 15px; }

/* 설립목적 */
.card.law + .card.law { margin-top: 12px; }
.card.law h3 { font-size: 18px; margin-bottom: 10px; }
.card.law h3 span { color: var(--accent); margin-right: 8px; }
.card.law p { color: var(--ink-2); line-height: 1.85; }
.card.law strong { color: var(--ink); }
.purpose-biz { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.purpose-biz .card { display: flex; gap: 16px; align-items: center; padding: 22px 24px; transition: .15s; }
.purpose-biz .card:hover { border-color: var(--green-2); }
.purpose-biz .card > div { flex: 1; }
.purpose-biz h3 { font-size: 18px; }
.purpose-biz p { font-size: 15px; color: var(--ink-2); }
.purpose-biz .go { color: var(--green-2); font-weight: 700; font-size: 18px; }
@media (max-width: 720px) { .purpose-biz { grid-template-columns: 1fr; } }
.portrait { overflow: hidden; } .portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- 인사말 ---------- */
.greet2 { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 72px; align-items: start; }
.greet2-photo { margin: 0; align-self: center; }
.greet2-photo img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; border-radius: 20px; display: block; box-shadow: 0 24px 48px rgba(28,36,32,.14); }
.greet2-photo figcaption { margin-top: 16px; text-align: center; color: var(--ink-3); font-size: 15px; }
.greet2-photo figcaption strong { color: var(--ink); margin-left: 4px; }
.greet2-text .eyebrow { margin-bottom: 14px; }
.greet2-text blockquote { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.45; color: var(--ink); padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.greet2-text blockquote em { font-style: normal; color: var(--green-2); box-shadow: inset 0 -0.35em 0 var(--accent-soft); }
.greet2-body p { color: var(--ink-2); font-size: 18px; line-height: 1.95; }
.greet2-body p + p { margin-top: 20px; }
.greet2-body .hello { font-size: 20px; font-weight: 700; color: var(--ink); }
.greet2-body .thanks { font-weight: 600; color: var(--ink); }
.greet2-sign { margin-top: 48px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.greet2-sign span { color: var(--ink-3); font-size: 16px; }
.greet2-sign strong { font-family: var(--serif); font-size: 34px; letter-spacing: .3em; color: var(--ink); margin-right: -.3em; }
.greet2-stats { background: var(--green-soft); padding: 72px 0; margin: 96px 0 0; }
.greet2-stats .stat { border-color: transparent; }
.greet2-next { padding: 88px 0 0; }
.next-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.next-cards .card { display: flex; align-items: center; gap: 16px; padding: 24px; transition: .15s; }
.next-cards .card:hover { border-color: var(--green-2); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(28,36,32,.08); }
.next-cards .card > div { flex: 1; }
.next-cards h3 { font-size: 18px; }
.next-cards p { font-size: 14px; color: var(--ink-3); margin-top: 2px; }
.next-cards .go { color: var(--green-2); font-weight: 700; font-size: 18px; }
@media (max-width: 1024px) {
  .greet2 { grid-template-columns: 1fr; gap: 40px; }
  .greet2-photo { position: static; max-width: 360px; margin: 0 auto; }
  .next-cards { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .greet2-body p { font-size: 16.5px; }
  .greet2-text blockquote br { display: none; }
  .greet2-sign strong { font-size: 28px; }
  .greet2-stats { padding: 48px 0; margin-top: 64px; }
  .greet2-next { padding-top: 56px; }
}

/* 조직구성도: 각 칸이 자기 몫의 가로선 · 세로선을 그려 연결이 어긋나지 않음 */
.org2 { --org-line: #b9c2bd; display: flex; flex-direction: column; align-items: center; }
.org2-node { background: var(--white); border: 1.5px solid var(--org-line); border-radius: 12px; padding: 16px 0; width: 180px; text-align: center; font-weight: 700; font-size: 17px; }
.org2-node.top { background: var(--green); border-color: var(--green); color: #fff; }
.org2-stem { width: 2px; height: 28px; background: var(--org-line); }
.org2-branch { display: flex; }
.org2-child { position: relative; padding: 28px 20px 0; }
.org2-child::before { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 28px; margin-left: -1px; background: var(--org-line); }
.org2-child::after { content: ""; position: absolute; top: 0; height: 2px; background: var(--org-line); }
.org2-child:first-child::after { left: 50%; right: 0; margin-left: -1px; }
.org2-child:last-child::after { left: 0; right: 50%; margin-right: -1px; }
@media (max-width: 720px) { .org2-node { width: 130px; } .org2-child { padding: 28px 10px 0; } }
.view-actions { gap: 10px; }
.board-bar .write-btn { height: 38px; padding: 0 16px; font-size: 14px; margin-left: 14px; vertical-align: middle; }

/* 사업안내 대표 사진 */
.biz-photo { margin: 0; }
.biz-photo img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: 20px; display: block; box-shadow: 0 20px 44px rgba(28,36,32,.14); }
.biz-photo figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-3); }
.biz-photo.illust img { box-shadow: none; border: 1px solid var(--line); }

/* 연도별 장학금 지급 현황 */
.payout-summary th, .payout-summary td { text-align: center; }
.payout-summary .num { text-align: right; font-variant-numeric: tabular-nums; }
.payout-summary tr.latest td { background: var(--accent-soft); }
.payout-summary .go a { font-size: 14px; color: var(--green-2); font-weight: 600; }
.payout-panel { margin: 0; scroll-margin-top: 150px; }
.payout-panel img { display: block; max-width: 760px; width: 100%; margin: 0 auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.payout-panel figcaption { text-align: center; margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.year-tabs { scroll-margin-top: 150px; }
@media (max-width: 720px) { .payout-summary .go { display: none; } }

/* 연도별 지급 현황표 */
.payout-table { min-width: 760px; font-size: 15px; }
.payout-table caption { caption-side: top; text-align: left; font-weight: 700; font-size: 18px; padding-bottom: 10px; }
.payout-table caption span { font-weight: 400; font-size: 14px; color: var(--ink-3); margin-left: 6px; }
.payout-table th, .payout-table td { border: 1px solid var(--line); padding: 9px 12px; text-align: center; vertical-align: middle; }
.payout-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.payout-table .date { font-weight: 600; white-space: nowrap; }
.payout-table .group { font-weight: 600; background: var(--paper); }
.payout-table .group small { display: block; font-weight: 400; color: var(--ink-3); font-size: 13px; }
.payout-table .subcat { background: var(--paper); font-size: 14px; white-space: nowrap; }
.payout-table tr.special td { background: #fffaf5; }
.payout-table .note { font-size: 14px; color: var(--ink-2); line-height: 1.6; min-width: 150px; }
.payout-table .note span { display: block; }
.payout-table .note span:nth-last-child(-n+2) { font-weight: 700; color: var(--ink); }
.payout-table tfoot th, .payout-table tfoot td { background: var(--green-soft); font-weight: 800; font-size: 16px; border-top: 2px solid var(--ink); }
.payout-src { text-align: right; margin-top: 10px; font-size: 14px; }
.payout-src a { color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }

/* 연혁 */
.timeline .tl-item ul { margin-top: 10px; }
.timeline .tl-item li { display: flex; gap: 12px; padding: 4px 0; line-height: 1.6; }
.timeline .tl-item li b { flex: none; min-width: 52px; color: var(--ink-3); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.timeline .tl-item li a { color: var(--ink-2); }
.timeline .tl-item li a:hover { color: var(--green-2); text-decoration: underline; text-underline-offset: 3px; }
.timeline .tl-item li a::after { content: " ›"; color: var(--ink-3); }
.tl-note { margin-top: 8px; line-height: 1.7; }
.tl-note a { color: var(--green-2); text-decoration: underline; text-underline-offset: 3px; }

/* 개인정보처리방침 */
.privacy h2 { font-size: 19px; color: var(--ink); margin: 36px 0 10px; }
.privacy p + p { margin-top: 8px; }
.privacy ul { list-style: disc; padding-left: 22px; margin: 8px 0; }
