/* Seoul Doctors Club — site design system
   Palette: paper / ink / scrub (accent) / mist (band) / rule / muted
   Type: MaruBuri (display serif) + Pretendard (text, UI) */
:root {
  --paper: #ffffff;
  --ink: #17211f;
  --scrub: #2e5e58;
  --scrub-dark: #234843;
  --mist: #eef3f1;
  --rule: #d3ddda;
  --muted: #5b6966;
  --danger: #a33a2e;
  --on-ink: #ffffff;
  --on-scrub: #ffffff;
  --surface: #ffffff;
  --header-bg: rgba(255,255,255,.94);
  --body-soft: #33403d;
  --row-hover: #f7faf9;
  --rule-soft: #edf1ef;
  --serif: 'MaruBuri', 'Noto Serif KR', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
}

/* Whole site uses the dark theme. */
body {
  color-scheme: dark;
  --paper: #0e1a18;
  --ink: #e6eeec;
  --scrub: #8fc7bc;
  --scrub-dark: #b3dcd4;
  --mist: #152623;
  --rule: #2b3f3b;
  --muted: #94a7a3;
  --danger: #e8998d;
  --on-ink: #0e1a18;
  --on-scrub: #0e1a18;
  --surface: #12211e;
  --header-bg: rgba(14,26,24,.92);
  --body-soft: #c4d1ce;
  --row-hover: #132420;
  --rule-soft: #1e302c;
}
body .brand .mark-dark, body .footer-logo .logo-on-light { display: none; }
body .brand .mark-light, body .footer-logo .logo-on-dark { display: block; }
.footer-logo .logo-on-dark { display: none; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.7 var(--sans); letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--scrub); }
:focus-visible { outline: 2px solid var(--scrub); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
.sound_only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--on-ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--on-ink); font-weight: 600; font-size: 15px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.button:hover { background: var(--scrub); border-color: var(--scrub); color: var(--on-scrub); }
.button.ghost { background: transparent; color: var(--ink); }
.button.ghost:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.text-link { color: var(--scrub); font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.text-link:hover { color: var(--ink); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--rule); }
.home .site-header.on-dark { background: #0e1a18; border-bottom-color: transparent; }
.home .site-header.on-dark .brand { color: #fff; }
.home .site-header.on-dark .brand small, .home .site-header.on-dark .nav a, .home .site-header.on-dark .account a { color: #a9bab6; }
.home .site-header.on-dark .nav a:hover, .home .site-header.on-dark .account a:hover { color: #fff; border-bottom-color: #fff; }
.home .site-header.on-dark .account .button { background: #fff; border-color: #fff; color: #0e1a18; }
.home .site-header.on-dark .nav-toggle span { background: #fff; }
.home .site-header.on-dark.open .nav a { color: #fff; border-bottom-color: #2c403c; }
.site-header .wrap { display: flex; align-items: center; height: 76px; gap: 40px; }
.brand { display: flex; align-items: baseline; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; white-space: nowrap; }
.brand { align-items: center; }
.brand .mark { display: inline-flex; width: 74px; height: 24px; margin-right: 2px; }
.brand .mark img { width: 74px; height: 24px; }
.brand .mark-light { display: none; }
.home .site-header.on-dark .brand .mark-dark { display: none; }
.home .site-header.on-dark .brand .mark-light { display: block; }
.footer-logo { display: inline-block; margin-bottom: 18px; }
.footer-logo img { width: 150px; height: auto; }
.brand small { font-family: var(--sans); font-weight: 500; font-size: 13px; color: var(--muted); letter-spacing: 0; }
.nav { display: flex; gap: 32px; margin-left: auto; }
.nav a { font-size: 15px; font-weight: 500; color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.account { display: flex; align-items: center; gap: 18px; font-size: 14px; white-space: nowrap; }
.account a { color: var(--muted); font-weight: 500; }
.account a:hover { color: var(--ink); }
.account .button { min-height: 40px; padding: 0 18px; font-size: 14px; color: var(--on-ink); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--ink); transition: transform .2s, opacity .2s; }
.site-header.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 64px 0 48px; margin-top: 120px; font-size: 14px; color: var(--muted); }
.home .site-footer { margin-top: 0; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: var(--ink); margin-bottom: 14px; }
.site-footer h2 { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.site-footer li { margin-bottom: 8px; }
.site-footer dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; }
.site-footer dd { margin: 0; }
.site-footer .copy { grid-column: 1 / -1; padding-top: 32px; border-top: 1px solid var(--rule); font-size: 13px; }

/* ---------- home ---------- */
.hero { position: relative; overflow: hidden; background: #0e1a18; color: #f3f6f5; padding: clamp(88px, 12vw, 176px) 0 clamp(88px, 11vw, 160px); }
.hero .wrap { position: relative; z-index: 1; }
.hero-copy { max-width: 760px; }
.hero-slides, .hero-slides span { position: absolute; inset: 0; }
.hero-slides span { background-size: cover; background-position: 60% 50%; opacity: 0; }
.hero-slides span:first-child { opacity: 1; }
.hero-slides::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,26,24,.94) 0%, rgba(14,26,24,.82) 38%, rgba(14,26,24,.35) 75%, rgba(14,26,24,.2) 100%), linear-gradient(0deg, rgba(14,26,24,.6), rgba(14,26,24,0) 40%); }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(38px, 4.5vw, 66px); line-height: 1.16; letter-spacing: -0.035em; color: #fff; }
.hero h1 .line { display: block; }
.hero .lede { max-width: 32em; margin: 36px 0 0; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.75; color: #b7c6c2; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero .button { background: #fff; border-color: #fff; color: #0e1a18; }
.hero .button:hover { background: #cfe0dc; border-color: #cfe0dc; color: #0e1a18; }
.hero .button.ghost { background: transparent; border-color: #5d736e; color: #fff; }
.hero .button.ghost:hover { border-color: #fff; background: transparent; color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .line { opacity: 0; transform: translateY(0.35em); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
  .hero h1 .line:nth-child(2) { animation-delay: .12s; }
  .hero h1 .line:nth-child(3) { animation-delay: .24s; }
  .hero .lede, .hero .actions { opacity: 0; animation: fade .8s .5s forwards; }
  .hero-slides span { animation: slide 28s infinite; }
  .hero-slides span:first-child { opacity: 0; }
  .hero-slides span:nth-child(2) { animation-delay: 7s; }
  .hero-slides span:nth-child(3) { animation-delay: 14s; }
  .hero-slides span:nth-child(4) { animation-delay: 21s; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes slide { 0% { opacity: 0; transform: scale(1.06); } 5% { opacity: 1; } 25% { opacity: 1; } 31% { opacity: 0; transform: scale(1); } 100% { opacity: 0; } }

.section { padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid var(--rule); }
.section.band { background: var(--mist); border-top: 0; }
.section-head { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.section-head h2 { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 46px); line-height: 1.2; letter-spacing: -0.03em; }
.section-head p { margin: 0; color: var(--muted); font-size: 17px; max-width: 34em; }
.section-head .more { justify-self: start; margin-top: 16px; }

/* thesis: sticky heading + principle list */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; }
.split > .sticky { position: sticky; top: 120px; align-self: start; }
.split h2 { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 46px); line-height: 1.2; letter-spacing: -0.03em; }
.split .intro { color: var(--muted); font-size: 17px; margin-top: 20px; max-width: 26em; }
.principles li { padding: 32px 0; border-top: 1px solid var(--rule); }
.principles li:last-child { border-bottom: 1px solid var(--rule); }
.principles h3 { font-family: var(--serif); font-size: 24px; letter-spacing: -0.02em; margin-bottom: 10px; }
.principles p { margin: 0; color: var(--muted); max-width: 36em; }

/* portfolio ledger */
.ledger { width: 100%; border-collapse: collapse; }
.ledger th { text-align: left; font-size: 13px; font-weight: 500; color: var(--muted); padding: 0 16px 14px 0; border-bottom: 1px solid var(--ink); }
.ledger td { padding: 28px 16px 28px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ledger .co { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; white-space: nowrap; }
.ledger .what { color: var(--muted); max-width: 28em; }
.ledger .round { font-weight: 600; white-space: nowrap; }
.ledger .when { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ledger .src a { color: var(--scrub); font-weight: 600; white-space: nowrap; border-bottom: 1px solid currentColor; }
.ledger tr:hover .co { color: var(--scrub); }
.ledger-note { margin-top: 20px; font-size: 14px; color: var(--muted); }

/* membership */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.tiers div { padding: 28px 24px 0 0; }
.tiers div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.tiers dt { font-family: var(--serif); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.tiers dd { margin: 6px 0 0; color: var(--muted); }
.member-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.member-paths h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 12px; letter-spacing: -0.02em; }
.member-paths p { color: var(--muted); margin: 0; }

/* community */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.programs a { display: block; padding: 28px 28px 32px 0; color: var(--ink); }
.programs a + a { padding-left: 28px; border-left: 1px solid var(--rule); }
.programs h3 { font-family: var(--serif); font-size: 26px; letter-spacing: -0.02em; margin-bottom: 10px; }
.programs p { margin: 0 0 18px; color: var(--muted); }
.programs .go { font-size: 14px; font-weight: 600; color: var(--scrub); }
.programs a:hover h3 { color: var(--scrub); }

/* press list */
.press-list li { border-top: 1px solid var(--rule); }
.press-list li:last-child { border-bottom: 1px solid var(--rule); }
.press-list a { display: grid; grid-template-columns: 140px 1fr 110px; gap: 24px; align-items: baseline; padding: 24px 0; }
.press-list .outlet { font-weight: 600; font-size: 15px; }
.press-list .title { font-family: var(--serif); font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; line-height: 1.45; letter-spacing: -0.02em; }
.press-list .summary { display: block; margin-top: 6px; font-family: var(--sans); font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: -0.01em; }
.press-list time { text-align: right; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.press-list a:hover .title { color: var(--scrub); }

/* closing call */
.closing { padding: clamp(80px, 11vw, 140px) 0; background: #142622; border-top: 1px solid var(--rule); color: #fff; }
.closing h2 { font-family: var(--serif); font-size: clamp(34px, 5vw, 64px); line-height: 1.15; letter-spacing: -0.03em; max-width: 14em; }
.closing p { color: #b9c6c2; max-width: 34em; margin: 24px 0 0; font-size: 17px; }
.closing .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.closing .button { background: #fff; color: #0e1a18; border-color: #fff; }
.closing .button:hover { background: #cfe0dc; border-color: #cfe0dc; color: #0e1a18; }
.closing .button.ghost { background: transparent; color: #fff; border-color: #5f706c; }
.closing .button.ghost:hover { border-color: #fff; }

/* ---------- sub pages ---------- */
.page-head { padding: clamp(56px, 8vw, 104px) 0 40px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--rule); }
.crumbs a:hover { color: var(--ink); }
.page-head h1 { font-family: var(--serif); font-size: clamp(36px, 5vw, 60px); line-height: 1.15; letter-spacing: -0.03em; }
.page-head .lede { margin: 18px 0 0; max-width: 40em; color: var(--muted); font-size: 18px; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.subnav a { padding: 8px 16px; border: 1px solid var(--rule); border-radius: 999px; font-size: 14px; color: var(--muted); }
.subnav a:hover { border-color: var(--ink); color: var(--ink); }
.subnav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.page-body { padding-top: 24px; }
.narrow { max-width: 760px; }

/* long-form text (about, terms) */
.prose { font-size: 17px; line-height: 1.85; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-family: var(--serif); font-size: 28px; letter-spacing: -0.02em; margin: 64px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1.2em; }
.prose ul li { position: relative; padding-left: 18px; margin-bottom: 8px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .8em; width: 6px; height: 1px; background: var(--ink); }
.prose a { color: var(--scrub); border-bottom: 1px solid currentColor; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--rule); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--mist); font-weight: 600; }
.legal { font-size: 15px; line-height: 1.85; color: var(--body-soft); }
.legal p { margin: 0 0 .9em; }

.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
.about-grid aside { position: sticky; top: 120px; align-self: start; }
.about-grid aside dl { margin: 0; border-top: 1px solid var(--ink); }
.about-grid aside dl div { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.about-grid aside dt { font-size: 13px; color: var(--muted); }
.about-grid aside dd { margin: 2px 0 0; font-weight: 600; }

/* FAQ */
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; gap: 24px; padding: 28px 0; cursor: pointer; list-style: none; font-family: var(--serif); font-size: clamp(20px, 2vw, 24px); font-weight: 700; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 28px; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 32px; max-width: 46em; color: var(--body-soft); }

/* forms */
.frm_input, .form input[type=text], .form input[type=password], .form input[type=email], .form input[type=url], .form input[type=date], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); font-size: 16px; transition: border-color .15s; }
textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.frm_input:focus, select:focus, textarea:focus, .form input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(46,94,88,.15); }
.frm_info { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
label { font-weight: 500; }
.form-card { max-width: 480px; }
.form-card .field { margin-bottom: 18px; }
.form-card .field label { display: block; margin-bottom: 8px; font-size: 14px; }
.form-card .button { width: 100%; }
.form-row { display: flex; gap: 12px; }
.form-row > * { flex: 1; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 400; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--scrub); }
.form-foot { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 24px; font-size: 14px; color: var(--muted); }
.notice { padding: 16px 18px; background: var(--mist); border-radius: 6px; color: var(--body-soft); font-size: 15px; }
.terms-box { height: 260px; overflow: auto; padding: 20px; border: 1px solid var(--rule); border-radius: 6px; font-size: 14px; line-height: 1.8; white-space: pre-wrap; background: var(--surface); }
.agree-block { margin-bottom: 40px; }
.agree-block h2 { font-family: var(--serif); font-size: 24px; margin-bottom: 16px; letter-spacing: -0.02em; }
.agree-block .check { margin-top: 14px; }

/* ---------- gnuboard-compatible board markup ---------- */
.btn, .btn_b01, .btn_b03, .btn_submit, .btn_cancel, .btn_close, .reg_btn_submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.btn:hover, .btn_b01:hover, .btn_b03:hover { border-color: var(--ink); color: var(--ink); }
.btn_submit, .reg_btn_submit { background: var(--ink); border-color: var(--ink); color: var(--on-ink); font-weight: 600; padding: 0 24px; min-height: 48px; }
.btn_submit:hover, .reg_btn_submit:hover { background: var(--scrub); border-color: var(--scrub); color: var(--on-scrub); }
.btn_cancel, .btn_close { min-height: 48px; padding: 0 24px; }

#bo_list, #bo_v, #bo_w { font-size: 15px; }
#bo_cate { margin-bottom: 24px; }
#bo_cate h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#bo_cate_ul { display: flex; flex-wrap: wrap; gap: 8px; }
#bo_cate_ul a { display: block; padding: 8px 16px; border: 1px solid var(--rule); border-radius: 999px; font-size: 14px; color: var(--muted); }
#bo_cate_ul a:hover { border-color: var(--ink); color: var(--ink); }
#bo_cate_on { background: var(--ink); border-color: var(--ink) !important; color: var(--on-ink) !important; }
#bo_btn_top, .bo_fx { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.bo_fx { justify-content: flex-end; margin-top: 24px; }
#bo_list_total { font-size: 14px; color: var(--muted); }
#bo_list_total span { color: var(--ink); font-weight: 600; margin-right: 8px; }
.btn_bo_user { display: flex; gap: 8px; }
.btn_bo_user .btn { width: 40px; padding: 0; }

.tbl_wrap { overflow-x: auto; }
.tbl_wrap table { width: 100%; border-collapse: collapse; }
.tbl_wrap caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tbl_head01 thead th { text-align: left; font-size: 13px; font-weight: 500; color: var(--muted); padding: 0 12px 12px; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.tbl_head01 thead th a { color: inherit; }
.tbl_head01 tbody td { padding: 18px 12px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.tbl_head01 tbody tr:hover td { background: var(--row-hover); }
.td_num, .td_num2, .td_datetime { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; width: 1%; }
.td_name { white-space: nowrap; width: 1%; color: var(--muted); }
.td_subject { width: auto; }
.bo_tit { font-weight: 600; font-size: 16px; }
.bo_tit a:hover { color: var(--scrub); }
.bo_tit .fa-lock { color: var(--muted); margin-right: 4px; }
.bo_cate_link { display: inline-block; font-size: 12px; color: var(--scrub); margin-bottom: 4px; }
.cnt_cmt { display: inline-block; margin-left: 6px; font-size: 13px; color: var(--scrub); font-weight: 600; }
.new_icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 6px; border-radius: 50%; background: var(--scrub); color: var(--on-scrub); font-size: 10px; font-weight: 700; vertical-align: 2px; }
.bo_tit .fa-download { margin-left: 6px; color: var(--muted); font-size: 13px; }
.notice_icon { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 600; }
.bo_notice td { background: var(--mist); }
.empty_table { padding: 80px 0 !important; text-align: center; color: var(--muted); }
.qnaIco { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.qnaIco3 { background: var(--mist); color: var(--muted); }
.qnaIco2 { background: var(--scrub); color: var(--on-scrub); }

.pg_wrap { display: flex; justify-content: center; margin-top: 40px; }
.pg { display: flex; gap: 4px; }
.pg_page, .pg_current { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; font-size: 14px; color: var(--muted); }
.pg_page:hover { background: var(--mist); color: var(--ink); }
.pg_current { background: var(--ink); color: var(--on-ink); font-weight: 600; }

.bo_sch_wrap { display: none; position: fixed; inset: 0; z-index: 80; }
.bo_sch_bg { position: absolute; inset: 0; background: rgba(23,33,31,.45); }
.bo_sch { position: relative; z-index: 1; max-width: 560px; margin: 18vh auto 0; padding: 32px; background: var(--surface); border: 0; border-radius: 10px; }
.bo_sch h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 16px; }
.bo_sch form { display: grid; gap: 10px; }
.bo_sch .sch_bar { display: flex; gap: 8px; }
.bo_sch .sch_input { flex: 1; min-height: 48px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 6px; }
.bo_sch .sch_btn { width: 48px; border: 0; border-radius: 6px; background: var(--ink); color: var(--on-ink); cursor: pointer; }
.bo_sch_cls { position: absolute; top: 16px; right: 16px; border: 0; background: none; font-size: 18px; color: var(--muted); cursor: pointer; }

/* view */
#bo_v header { padding-bottom: 24px; }
#bo_v_title { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); line-height: 1.3; letter-spacing: -0.02em; }
.bo_v_cate { display: block; font-family: var(--sans); font-size: 14px; color: var(--scrub); font-weight: 600; margin-bottom: 8px; }
#bo_v_info { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
#bo_v_info h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.profile_info_ct { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 14px; color: var(--muted); }
.profile_info_ct br { display: none; }
.profile_info_ct strong { font-weight: 500; }
.profile_info_ct .sv_member, .profile_info_ct .sv_guest { color: var(--ink); font-weight: 600; }
#bo_v_atc { padding: 40px 0; }
#bo_v_atc_title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#bo_v_img img { display: block; margin: 0 0 24px; border-radius: 6px; }
#bo_v_con { font-size: 17px; line-height: 1.85; min-height: 160px; }
#bo_v_con a { color: var(--scrub); border-bottom: 1px solid currentColor; }
#bo_v_file { padding: 20px 24px; background: var(--mist); border-radius: 8px; margin-bottom: 32px; }
#bo_v_file h2 { font-size: 14px; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
#bo_v_file li { padding: 6px 0; }
.view_file_download strong { font-weight: 600; }
.bo_v_file_cnt { font-size: 13px; color: var(--muted); }
.bo_v_nb { border-top: 1px solid var(--rule); margin-bottom: 40px; }
.bo_v_nb li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.nb_tit { color: var(--muted); white-space: nowrap; min-width: 64px; }
.nb_date { margin-left: auto; color: var(--muted); font-size: 13px; }
.cmt_btn { border: 0; background: none; padding: 0 0 12px; font-size: 16px; cursor: default; }
.cmt_btn b { font-family: var(--serif); font-size: 22px; margin-right: 6px; }
#bo_vc h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#bo_vc { border-top: 1px solid var(--ink); }
#bo_vc article { position: relative; padding: 20px 0; border-bottom: 1px solid var(--rule); }
#bo_vc header { display: flex; align-items: center; gap: 12px; font-size: 14px; }
#bo_vc header .sv_member, #bo_vc header .sv_guest { font-weight: 600; }
.bo_vc_hdinfo { color: var(--muted); font-size: 13px; }
.cmt_contents { margin-top: 8px; }
.cmt_contents p { margin: 0; }
.bo_vl_opt { position: absolute; top: 16px; right: 0; }
.bo_vl_opt .btn { min-height: 30px; font-size: 13px; }
#bo_vc_empty { padding: 40px 0; text-align: center; color: var(--muted); margin: 0; }
.bo_vc_w { margin-top: 24px; }
.bo_vc_w h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bo_vc_w textarea { width: 100%; min-height: 110px; padding: 14px; border: 1px solid var(--rule); border-radius: 6px; }
.bo_vc_w .btn_confirm { display: flex; justify-content: flex-end; margin-top: 10px; }
#bo_v_top .btn_bo_user .btn { width: 40px; padding: 0; }

/* write */
#bo_w form { display: grid; gap: 16px; max-width: 860px; }
.write_div { margin: 0; }
.bo_w_info { display: flex; gap: 12px; }
.bo_w_info .frm_input { flex: 1; }
.bo_v_option { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; color: var(--muted); font-size: 14px; }
.chk_box { display: flex; align-items: center; gap: 8px; }
.chk_box label span { display: none; }
.selec_chk { width: 18px; height: 18px; accent-color: var(--scrub); }
.file_wr { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px dashed var(--rule); border-radius: 6px; }
.lb_icon { color: var(--muted); }
.frm_file { font-size: 14px; }
.btn_confirm.write_div { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
#autosave_wrapper\ write_div { display: block; }

/* register/member */
.register .btn_confirm { display: flex; gap: 10px; margin-top: 32px; }
.register_form_inner { margin-bottom: 40px; }
.register_form_inner h2 { font-family: var(--serif); font-size: 24px; letter-spacing: -0.02em; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--ink); }
.register_form_inner ul { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.register_form_inner li { grid-column: 1 / -1; }
.register_form_inner li.half_input { grid-column: auto; }
.register_form_inner label { display: block; font-size: 14px; margin-bottom: 8px; }
#reg_result { padding: 8px 0 24px; }
.reg_result_p { font-family: var(--serif); font-size: 26px; line-height: 1.5; letter-spacing: -0.02em; }
.reg_result_p .fa { display: none; }
.btn_confirm_reg { margin-top: 24px; }
#pw_confirm h1 { font-family: var(--serif); font-size: 26px; margin-bottom: 8px; }
#pw_confirm fieldset { display: flex; gap: 10px; border: 0; padding: 0; margin: 20px 0 0; max-width: 420px; }

/* search, admin */
.search-form { display: flex; gap: 10px; max-width: 640px; margin-bottom: 40px; }
.search-form .frm_input { flex: 1; }
.search-form .btn_submit { flex: 0 0 auto; }
.search-count { margin-bottom: 8px; color: var(--muted); font-size: 15px; }
.search-results { border-top: 1px solid var(--ink); }
.search-results li { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.search-results a { display: block; }
.search-results .board { display: block; margin-bottom: 6px; color: var(--scrub); font-size: 13px; font-weight: 600; }
.search-results strong { display: block; font-family: var(--serif); font-size: 20px; letter-spacing: -0.02em; }
.search-results a:hover strong { color: var(--scrub); }
.search-results .snippet { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; }
.search-results .meta { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }
.search-results .empty { color: var(--muted); }
.inline-form { display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.inline-form select { height: 34px; padding: 0 8px; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); font: inherit; font-size: 14px; }
.btn.btn-sm { height: 34px; min-height: 0; padding: 0 12px; font-size: 13px; }
.admin-links { margin-top: 24px; }

/* group page boards */
.group-boards { border-top: 1px solid var(--ink); }
.group-board { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--rule); }
.group-board h2 { font-family: var(--serif); font-size: 24px; letter-spacing: -0.02em; }
.group-board h2 a:hover { color: var(--scrub); }
.group-board li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--rule-soft); }
.group-board li:last-child { border-bottom: 0; }
.group-board time { color: var(--muted); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.group-board .empty { color: var(--muted); }
.locked { color: var(--muted); font-size: 15px; }

/* admin press form */
.press_form { display: grid; gap: 12px; padding: 28px; border: 1px solid var(--rule); border-radius: 8px; margin-bottom: 40px; }
.press_form h3 { font-family: var(--serif); font-size: 22px; }
.press_form_row { display: flex; gap: 12px; }
.press_form .btn_submit { justify-self: end; }


/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-form { display: grid; gap: 22px; }
.contact-form .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.contact-form .chips legend { width: 100%; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.contact-form .chips label { cursor: pointer; }
.contact-form .chips input { position: absolute; opacity: 0; pointer-events: none; }
.contact-form .chips span { display: inline-block; padding: 9px 16px; border: 1px solid var(--rule); border-radius: 999px; font-size: 14px; color: var(--muted); transition: border-color .15s, color .15s, background .15s; }
.contact-form .chips label:hover span { border-color: var(--ink); color: var(--ink); }
.contact-form .chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.contact-form .chips input:focus-visible + span { outline: 2px solid var(--scrub); outline-offset: 2px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); font: 400 16px/1.6 var(--sans); color: var(--ink); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(46,94,88,.15); }
.field textarea { resize: vertical; min-height: 180px; }
.contact-form .check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.contact-form .check input { margin-top: 4px; }
.contact-form .button { justify-self: start; min-width: 180px; }
.contact-aside { border-top: 1px solid var(--ink); }
.contact-aside h2 { margin: 24px 0 6px; font-size: 15px; font-weight: 600; font-family: var(--sans); }
.contact-aside p { margin: 0; color: var(--muted); font-size: 15px; }
.contact-done { max-width: 36em; }
.contact-done h2 { font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; margin-bottom: 12px; }
.contact-done p { color: var(--muted); }
.inquiry-list { border-top: 1px solid var(--ink); }
.inquiry-list li { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.inquiry-list .meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; font-size: 14px; }
.inquiry-list time { margin-left: auto; color: var(--muted); font-size: 13px; }
.inquiry-list .flag { color: var(--danger); font-size: 13px; }
.inquiry-list p { margin: 10px 0 0; white-space: pre-wrap; }
.inquiry-list .empty { color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .nav-toggle { display: block; }
  .site-header .wrap { gap: 16px; }
  .nav, .account { display: none; }
  .site-header.open { border-bottom-color: var(--rule); }
  .site-header.open .wrap { flex-wrap: wrap; height: auto; min-height: 76px; padding-bottom: 24px; }
  .site-header.open .brand { height: 76px; align-items: center; display: flex; }
  .site-header.open .nav { display: flex; flex-direction: column; gap: 0; width: 100%; order: 3; }
  .site-header.open .nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 18px; color: var(--ink); }
  .site-header.open .account { display: flex; order: 4; width: 100%; padding-top: 20px; }
  .section-head, .split, .about-grid, .member-paths { grid-template-columns: 1fr; gap: 24px; }
  .split > .sticky, .about-grid aside { position: static; }
  .programs { grid-template-columns: 1fr; }
  .programs a + a { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > div:first-child { grid-column: 1 / -1; }
  .group-board { grid-template-columns: 1fr; gap: 12px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .brand small { display: none; }
  .brand { font-size: 20px; }
  .field-row { grid-template-columns: 1fr; }
  body { font-size: 15px; }
  .ledger thead { display: none; }
  .ledger, .ledger tbody, .ledger tr, .ledger td { display: block; }
  .ledger tr { padding: 24px 0; border-bottom: 1px solid var(--rule); }
  .ledger td { padding: 0; border: 0; }
  .ledger .what { margin: 8px 0 12px; }
  .ledger .round, .ledger .when { display: inline; margin-right: 12px; }
  .ledger .src { margin-top: 10px; }
  .tiers { grid-template-columns: 1fr; }
  .tiers div, .tiers div + div { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .press-list a { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .press-list .title { grid-column: 1 / -1; grid-row: 2; }
  .press-list time { grid-row: 1; grid-column: 2; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .tbl_head01 .mobile_no, .tbl_head01 thead th:nth-child(3), .tbl_head01 thead th:nth-child(4), .tbl_head01 tbody td.td_name, .tbl_head01 tbody td.td_num { display: none; }
  .register_form_inner ul { grid-template-columns: 1fr; }
  .form-row, .bo_w_info, .press_form_row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
