/* D&H Capital Management - site styles */
:root {
  --navy: #174172;
  --navy-700: #123460;
  --navy-900: #0b213d;
  --ink: #1b2230;
  --body: #3a4352;
  --muted: #6b7483;
  --line: #e2e6ec;
  --soft: #f4f6f9;
  --gold: #b48a4c;
  --radius: 10px;
  --wrap: 1120px;
  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  --serif: "Noto Serif KR", "Nanum Myeongjo", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--body);
  background: #fff;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-700); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; padding: 8px 14px; background: var(--navy); color: #fff; }
.skip:focus { left: 8px; top: 8px; color: #fff; }
.muted { color: var(--muted); font-size: 14px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { flex: none; }
.brand img { height: 46px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav li a {
  position: relative; display: block; padding: 8px 12px; border-radius: 6px;
  font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.site-nav li a:hover { color: var(--navy); background: var(--soft); }
.site-nav li a[aria-current="page"] { color: var(--navy); font-weight: 700; }
.site-nav li a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--navy);
}
.lang { display: flex; flex: none; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang a {
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted); text-decoration: none;
}
.lang a:hover { color: var(--navy); }
.lang a.on { background: var(--navy); color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 980px) {
  .header-inner { height: 64px; }
  .brand img { height: 38px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 8px; background: transparent; cursor: pointer;
  }
  .nav-toggle span:not(.sr) { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 18px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(11, 33, 61, .08);
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav li a { padding: 13px 8px; border-radius: 0; border-bottom: 1px solid var(--soft); font-size: 16px; }
  .site-nav li a[aria-current="page"]::after { display: none; }
  .lang { align-self: flex-start; margin-top: 14px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px;
  border: 1px solid #fff; border-radius: 8px; background: #fff;
  font-size: 15px; font-weight: 600; color: var(--navy); text-decoration: none;
}
.btn:hover { background: #e9eef5; color: var(--navy-700); }
.btn.ghost { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn.ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn.line { background: #fff; border-color: var(--line); color: var(--navy); }
.btn.line:hover { border-color: var(--navy); }

/* Home hero */
.hero {
  position: relative; overflow: hidden; padding: 120px 0 110px;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy) 62%, #255a93 100%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; right: -110px; top: 50%; width: 560px; height: 560px;
  transform: translateY(-50%); background: url(../img/emblem-white.png) center / contain no-repeat;
  opacity: .07; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #c9d6e8; }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(38px, 6vw, 64px); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; color: #fff; }
.hero .lead { max-width: 560px; margin: 22px 0 0; font-size: clamp(17px, 2.2vw, 20px); line-height: 1.7; color: #dbe4f0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
@media (max-width: 600px) {
  .hero { padding: 80px 0 72px; }
  .hero::after { width: 360px; height: 360px; right: -140px; }
}

.home-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding-top: 88px; padding-bottom: 88px; }
.pillar h2 { margin: 0 0 16px; font-family: var(--serif); font-size: 26px; line-height: 1.35; color: var(--ink); }
.pillar h2::before { content: ""; display: block; width: 36px; height: 2px; margin-bottom: 18px; background: var(--gold); }
.pillar p { margin: 0 0 16px; }
@media (max-width: 860px) {
  .home-intro { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
}

.band { padding: 72px 0; background: var(--soft); border-top: 1px solid var(--line); }
.latest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.latest { min-width: 0; padding: 26px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.latest-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.latest h2 { margin: 0; font-family: var(--serif); font-size: 22px; color: var(--ink); }
.latest h2 small { margin-left: 8px; font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--muted); }
.more { flex: none; font-size: 14px; font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }
.latest ul { margin: 0; padding: 0; list-style: none; }
.latest li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.latest li:last-child { border-bottom: 0; }
.latest li a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--ink); text-decoration: none; }
.latest li a:hover { color: var(--navy); text-decoration: underline; }
.latest time { flex: none; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.latest .empty { color: var(--muted); }
@media (max-width: 860px) {
  .band { padding: 48px 0; }
  .latest-grid { grid-template-columns: 1fr; gap: 20px; }
  .latest { padding: 22px 20px; }
}

/* Sub pages */
.page-hero { padding: 64px 0 56px; background: linear-gradient(135deg, var(--navy-900), var(--navy)); color: #fff; }
.page-hero .eyebrow { margin-bottom: 10px; }
.page-hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(30px, 4.5vw, 44px); line-height: 1.2; color: #fff; }

.content { max-width: 880px; padding-top: 64px; padding-bottom: 96px; }
.content.wide { max-width: 1040px; }
.content h2 { margin: 48px 0 14px; font-family: var(--serif); font-size: 24px; line-height: 1.4; color: var(--ink); }
.content > h2:first-child { margin-top: 0; }
.content p { margin: 0 0 18px; }
.lead { font-size: 18px; line-height: 1.8; color: var(--ink); }
.note { margin-top: 32px; padding: 18px 20px; background: var(--soft); border-left: 3px solid var(--navy); border-radius: 0 8px 8px 0; }
@media (max-width: 600px) {
  .page-hero { padding: 44px 0 40px; }
  .content { padding-top: 40px; padding-bottom: 64px; }
  .lead { font-size: 17px; }
}

.profile { margin-top: 48px; padding: 28px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, #fff, var(--soft)); }
.content .profile h2 { margin: 0 0 14px; font-size: 22px; }
.profile h2 span { display: block; margin-top: 4px; font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--muted); }
.profile ul, .checks { margin: 0 0 18px; padding: 0; list-style: none; }
.profile ul { margin: 0; }
.profile li, .checks li { position: relative; margin: 6px 0; padding-left: 20px; }
.profile li::before, .checks li::before {
  content: ""; position: absolute; left: 2px; top: .72em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--navy);
}

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { padding: 28px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: var(--radius); }
.content .card h2 { margin-top: 0; font-size: 21px; }
.card p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: minmax(260px, 1fr) 1.3fr; gap: 36px; align-items: start; }
.contact-info { display: grid; grid-template-columns: 88px 1fr; row-gap: 14px; column-gap: 16px; margin: 0; }
.contact-info dt { padding-top: 2px; font-size: 14px; font-weight: 700; color: var(--ink); }
.contact-info dd { margin: 0; }
.map { aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Boards */
.board-count { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.board-note { margin: 0 0 20px; padding: 14px 18px; background: var(--soft); border-radius: 8px; font-size: 15px; }
.board { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); font-size: 15px; }
.board th { padding: 14px 12px; background: var(--soft); border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); text-align: left; }
.board td { padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.board .num, .board .date { width: 1%; text-align: center; white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.board td.title a { font-weight: 500; color: var(--ink); text-decoration: none; }
.board td.title a:hover { color: var(--navy); text-decoration: underline; }
.board tbody tr:hover td { background: #fafbfd; }
.badge {
  display: inline-block; margin-right: 8px; padding: 5px 8px; border-radius: 5px; vertical-align: 2px;
  background: #e8eef6; color: var(--navy); font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap;
}
.badge[data-cat="수시공시"] { background: #f6efe3; color: #835d22; }
.badge[data-cat="기타공시"] { background: #eef0f3; color: #4c5565; }
.clip { display: inline-block; margin-left: 6px; vertical-align: -2px; color: var(--muted); }
.board .empty { padding: 48px 12px; text-align: center; color: var(--muted); }
@media (max-width: 640px) {
  .board thead { display: none; }
  .board, .board tbody, .board tr, .board td { display: block; width: 100%; }
  .board tr { padding: 14px 2px; border-bottom: 1px solid var(--line); }
  .board td { padding: 0; border: 0; text-align: left; }
  .board td.num { display: none; }
  .board td.date { width: auto; margin-top: 6px; text-align: left; font-size: 13px; }
  .board tbody tr:hover td { background: none; }
}

/* Post */
.post-head { margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.post-head h1 { margin: 0; font-family: var(--serif); font-size: clamp(24px, 3.4vw, 32px); line-height: 1.45; color: var(--ink); }
.post-head .badge { vertical-align: 6px; }
.post-meta { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.post-body { min-height: 48px; font-size: 16.5px; }
.attachments { margin-top: 36px; padding: 18px 22px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); }
.content .attachments h2 { margin: 0 0 10px; font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--ink); }
.attachments ul { margin: 0; padding: 0; list-style: none; }
.attachments li + li { margin-top: 8px; }
.attachments a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; word-break: break-all; }
.attachments a:hover { text-decoration: underline; }
.attachments svg { flex: none; }
.attachments .size { font-size: 13px; font-weight: 400; color: var(--muted); }
.post-nav { margin-top: 44px; border-top: 1px solid var(--line); }
.post-nav a { display: flex; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.post-nav a span { flex: none; width: 64px; font-size: 14px; color: var(--muted); }
.post-nav a strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.post-nav a:hover strong { color: var(--navy); text-decoration: underline; }
.back { margin-top: 28px; }

/* Footer */
.site-footer { padding: 48px 0 40px; background: var(--navy-900); color: #b9c5d6; font-size: 14px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: start; }
.f-logo { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: .92; }
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer strong { color: #e6ecf4; font-weight: 600; }
.site-footer a { color: #e6ecf4; }
.f-links { margin: 0; }
.copy { grid-column: 1 / -1; margin: 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: #8e9bb0; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr; gap: 18px; } }

@media print {
  .site-header, .site-footer, .hero::after, .post-nav, .back { display: none; }
  .page-hero, .hero { background: none; color: var(--ink); padding: 0 0 16px; }
  .page-hero h1, .hero h1 { color: var(--ink); }
}
