/* ============================================================
   뉴스토마토 IR클럽
   구조는 이투데이 위너스IR클럽 참고, 브랜딩은 뉴스토마토.

   ★ 브랜드 색상은 --brand 한 줄만 바꾸면 전체에 반영됩니다.
   ============================================================ */
:root {
    /* 뉴스토마토 본지 CSS(main.css)에서 추출한 브랜드 레드.
       .dred / .bg_dred 유틸리티, 헤더 내비 배경, 활성·호버 색으로 쓰이는 값이다. */
    --brand:      #a82127;
    --brand-700:  #8a191e;
    --brand-50:   #fbf2f2;

    --ink-900: #101014;
    --ink-700: #3f3f46;
    --ink-500: #71717a;
    --ink-400: #a1a1aa;

    --line:      #ececed;
    --line-2:    #f4f4f5;
    --surface:   #ffffff;
    --surface-2: #fafafa;

    /* 시세 상승/하락. 브랜드 색과 별개로, 국내 증시 관례대로 상승=빨강 하락=파랑.
       브랜드 레드보다 밝게 두어 시세 숫자가 눈에 먼저 들어오게 한다. */
    --up:   #e0242b;
    --down: #1266d6;

    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-full: 999px;

    --sh-1: 0 1px 2px rgba(16,16,20,.04);
    --sh-2: 0 4px 16px rgba(16,16,20,.08);
    --sh-3: 0 12px 32px rgba(16,16,20,.10);

    --wrap: 1200px;
    --ease: cubic-bezier(.32,.72,0,1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
                 system-ui, "Segoe UI", "Malgun Gothic", sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-900);
    background: var(--surface);
    letter-spacing: -.011em;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
input, button { font: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.page { padding-top: 28px; padding-bottom: 12px; }

@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ============================================================
   헤더
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(12px); }

/* ── 1층: 뉴스토마토 ── */
.top-bar { border-bottom: 1px solid var(--line-2); background: var(--surface-2); }
.top-bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 38px; }

.mother-brand { display: inline-flex; align-items: center; }
.mother-brand img { height: 15px; width: auto; opacity: .7; transition: opacity .18s var(--ease); }
.mother-brand:hover img { opacity: 1; }

.top-links { display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--ink-500); }
.top-links a { transition: color .15s; }
.top-links a:hover { color: var(--brand); }
.top-links .ext { font-size: 10px; }
.top-links .me { font-weight: 700; color: var(--ink-700); }
.top-links .me::after {
    content: ""; display: inline-block; width: 1px; height: 10px;
    background: var(--line); margin-left: 16px; vertical-align: -1px;
}

/* 회원사 바로가기 */
.member-select {
    flex: none; width: 168px; height: 38px; padding: 0 30px 0 13px;
    border: 1px solid var(--line); border-radius: var(--r-full);
    background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5L6 8.5L10 4.5' stroke='%23a1a1aa' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center / 12px;
    font-size: 13.5px; color: var(--ink-700); cursor: pointer;
    appearance: none; -webkit-appearance: none; outline: none;
    transition: border-color .16s, box-shadow .16s;
}
.member-select:hover { border-color: var(--ink-400); }
.member-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
@media (max-width: 1080px) { .member-select { display: none; } }

/* ── 2층: IR클럽 + GNB ── */
.nav-bar { border-bottom: 1px solid var(--line); }
.nav-bar .wrap { display: flex; align-items: center; gap: 10px; height: 62px; }

.service-brand {
    font-size: 23px; font-weight: 800; letter-spacing: -.05em;
    line-height: 1; margin-right: 18px; flex: none;
}
.service-brand em { font-style: normal; color: var(--brand); }

.gnb { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.gnb::-webkit-scrollbar { display: none; }
.gnb a {
    padding: 8px 15px; border-radius: var(--r-full);
    font-size: 15px; font-weight: 600; color: var(--ink-500);
    white-space: nowrap; transition: background .16s var(--ease), color .16s var(--ease);
}
.gnb a:hover { background: var(--line-2); color: var(--ink-900); }
.gnb a.active { background: var(--brand-50); color: var(--brand); font-weight: 700; }

.nav-search { position: relative; flex: none; width: 216px; }
.nav-search svg {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    width: 17px; height: 17px; color: var(--ink-400); pointer-events: none;
}
.nav-search input {
    width: 100%; height: 38px; padding: 0 14px 0 35px;
    border: 1px solid transparent; border-radius: var(--r-full);
    background: var(--surface-2); font-size: 14px; outline: none;
    transition: background .16s, border-color .16s, box-shadow .16s;
}
.nav-search input::placeholder { color: var(--ink-400); }
.nav-search input:focus {
    background: #fff; border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-50);
}

@media (max-width: 860px) { .nav-search { width: 150px; } }
@media (max-width: 640px) {
    .nav-bar .wrap { height: auto; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
    .service-brand { font-size: 20px; margin-right: 12px; }
    .nav-search { order: 3; width: 100%; margin-top: 10px; }
    .gnb { order: 2; }
}

/* ============================================================
   시장 지수 스트립
   ============================================================ */
.market-strip {
    display: flex; align-items: center;
    border: 1px solid var(--line); border-radius: var(--r-md);
    background: var(--surface); overflow-x: auto; scrollbar-width: none;
    margin-bottom: 26px; box-shadow: var(--sh-1);
}
.market-strip::-webkit-scrollbar { display: none; }
.market-item {
    flex: 1 0 auto; min-width: 158px; padding: 13px 18px;
    display: flex; align-items: baseline; gap: 8px; white-space: nowrap;
}
.market-item + .market-item { border-left: 1px solid var(--line-2); }
.mk-name { font-size: 12.5px; font-weight: 600; color: var(--ink-500); }
.mk-val  { font-size: 16px; font-weight: 700; letter-spacing: -.03em; }
.mk-diff { font-size: 12px; font-weight: 600; }
.market-item.is-up   .mk-val, .market-item.is-up   .mk-diff { color: var(--up); }
.market-item.is-down .mk-val, .market-item.is-down .mk-diff { color: var(--down); }
.mk-time { margin-left: auto; padding: 0 18px; font-size: 11.5px; color: var(--ink-400); white-space: nowrap; }

/* ============================================================
   페이지 헤더 / 툴바
   ============================================================ */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.page-head h1 { font-size: 27px; font-weight: 800; letter-spacing: -.04em; margin: 0; }
.page-head .lead { font-size: 14px; color: var(--ink-500); margin: 6px 0 0; }
.page-head .count { font-size: 13.5px; color: var(--ink-500); white-space: nowrap; }
.page-head .count b { color: var(--brand); font-weight: 700; }

.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }

/* 세그먼트 컨트롤 */
.segmented { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-2); border-radius: var(--r-full); }
.segmented a {
    padding: 7px 16px; border-radius: var(--r-full);
    font-size: 13.5px; font-weight: 600; color: var(--ink-500);
    transition: background .16s var(--ease), color .16s var(--ease);
}
.segmented a:hover { color: var(--ink-900); }
.segmented a.active { background: var(--surface); color: var(--ink-900); font-weight: 700; box-shadow: var(--sh-1); }

.sort-links { display: flex; gap: 14px; font-size: 13px; color: var(--ink-500); }
.sort-links a.active { color: var(--ink-900); font-weight: 700; }

/* ============================================================
   회원사 카드
   ============================================================ */
.member-grid {
    display: grid; gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
}

.member-card {
    position: relative;
    border: 1px solid var(--line); border-radius: var(--r-md);
    background: var(--surface); overflow: hidden;
    display: flex; flex-direction: column;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.member-card:hover { border-color: #dcdcde; box-shadow: var(--sh-2); transform: translateY(-3px); }

.member-logo {
    height: 112px; display: flex; align-items: center; justify-content: center;
    padding: 18px; background: var(--surface);
}
.member-logo img { max-height: 100%; object-fit: contain; }
.member-logo .no-logo {
    font-size: 16px; font-weight: 700; color: var(--ink-400);
    text-align: center; word-break: keep-all; line-height: 1.3;
}

.member-body { padding: 0 16px 14px; text-align: center; }
.member-name {
    display: block; font-size: 15.5px; font-weight: 700; letter-spacing: -.03em;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    transition: color .15s;
}
.member-card:hover .member-name { color: var(--brand); }
.member-code {
    display: inline-block; margin-top: 5px; padding: 1px 8px;
    font-size: 11px; font-weight: 600; color: var(--ink-500);
    background: var(--surface-2); border-radius: var(--r-full);
    font-variant-numeric: tabular-nums;
}

.member-actions { display: flex; border-top: 1px solid var(--line-2); margin-top: auto; }
.member-actions a {
    flex: 1; text-align: center; padding: 11px 0;
    font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: var(--ink-500);
    transition: background .15s, color .15s;
}
.member-actions a + a { border-left: 1px solid var(--line-2); }
.member-actions a:hover { background: var(--brand-50); color: var(--brand); }
.member-actions a.disabled { color: #d4d4d8; pointer-events: none; }

/* ============================================================
   기업 상세
   ============================================================ */
.stock-head {
    display: flex; align-items: center; gap: 24px;
    border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 22px 26px; margin-bottom: 20px;
    background: var(--surface); box-shadow: var(--sh-1);
}
.stock-head .logo {
    width: 150px; height: 64px; flex: none;
    display: flex; align-items: center; justify-content: center;
    padding-right: 24px; border-right: 1px solid var(--line-2);
}
.stock-head .logo img { max-height: 100%; object-fit: contain; }
.stock-head .logo .no-logo { font-size: 15px; font-weight: 700; color: var(--ink-400); text-align: center; }
.stock-head .name { font-size: 24px; font-weight: 800; letter-spacing: -.04em; margin: 0; }
.stock-head .code {
    font-size: 12px; font-weight: 600; color: var(--ink-500);
    background: var(--surface-2); border-radius: var(--r-full);
    padding: 2px 9px; margin-left: 9px; vertical-align: 4px;
    font-variant-numeric: tabular-nums;
}

.quote { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.quote .price { font-size: 28px; font-weight: 800; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.quote .diff { font-size: 14px; font-weight: 700; }
.quote.is-up   .price, .quote.is-up   .diff { color: var(--up); }
.quote.is-down .price, .quote.is-down .diff { color: var(--down); }

.quote-meta { margin-left: auto; text-align: right; font-size: 12px; color: var(--ink-500); }
.quote-meta dl { display: grid; grid-template-columns: auto auto; gap: 4px 16px; margin: 0; }
.quote-meta dt { font-weight: 500; }
.quote-meta dd { margin: 0; color: var(--ink-900); font-weight: 700; font-variant-numeric: tabular-nums; }

@media (max-width: 767px) {
    .stock-head { flex-wrap: wrap; gap: 16px; padding: 18px; }
    .stock-head .logo { width: 110px; height: 46px; padding-right: 0; border-right: 0; }
    .quote-meta { margin-left: 0; text-align: left; width: 100%; }
    .quote-meta dl { grid-template-columns: repeat(3, auto); justify-content: start; }
}

.detail-tabs { border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.detail-tabs ul { list-style: none; display: flex; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.detail-tabs ul::-webkit-scrollbar { display: none; }
.detail-tabs a {
    display: block; padding: 13px 22px; white-space: nowrap;
    font-size: 15px; font-weight: 600; color: var(--ink-500);
    border-bottom: 2px solid transparent; margin-bottom: -1px;
    transition: color .15s, border-color .15s;
}
.detail-tabs a:hover { color: var(--ink-900); }
.detail-tabs a.active { color: var(--brand); font-weight: 700; border-bottom-color: var(--brand); }

/* ============================================================
   섹션 / 표 / 리스트
   ============================================================ */
.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 34px 0 12px; }
.sec-head:first-child { margin-top: 0; }
.sec-head h2 { font-size: 18px; font-weight: 800; letter-spacing: -.035em; margin: 0; }
.sec-head h2 small { font-size: 12.5px; font-weight: 500; color: var(--ink-400); margin-left: 7px; }
.sec-head .more { font-size: 13px; font-weight: 600; color: var(--ink-500); transition: color .15s; }
.sec-head .more:hover { color: var(--brand); }

.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl thead th {
    border-top: 1px solid var(--ink-900); border-bottom: 1px solid var(--line);
    padding: 12px 10px; font-size: 13px; font-weight: 700; color: var(--ink-700);
    background: var(--surface-2);
}
.tbl tbody td, .tbl tbody th { border-bottom: 1px solid var(--line-2); padding: 13px 10px; font-weight: 400; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl .subject { text-align: left; }
.tbl .subject a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.tbl .date, .tbl .num { text-align: center; color: var(--ink-500); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl th.subject { font-weight: 700; color: var(--ink-700); background: var(--surface-2); }
.tbl-fin th, .tbl-fin td { text-align: right; font-variant-numeric: tabular-nums; }
.tbl-fin th:first-child, .tbl-fin td:first-child { text-align: left; font-weight: 600; font-variant-numeric: normal; }

.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li {
    display: flex; align-items: center; gap: 11px;
    padding: 13px 0; border-bottom: 1px solid var(--line-2);
}
.mini-list li:last-child { border-bottom: 0; }
.mini-list .co {
    flex: none; font-size: 11.5px; font-weight: 700; color: var(--brand);
    background: var(--brand-50); border-radius: var(--r-sm); padding: 3px 9px;
}
.mini-list .tt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.mini-list .tt:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.mini-list .dt { flex: none; font-size: 12.5px; color: var(--ink-400); font-variant-numeric: tabular-nums; }

.home-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-top: 44px; }
@media (max-width: 860px) { .home-cols { grid-template-columns: 1fr; gap: 10px; } }

/* ============================================================
   페이징 / 상태
   ============================================================ */
.pager { display: flex; justify-content: center; gap: 5px; margin-top: 34px; }
.pager a, .pager span {
    min-width: 36px; height: 36px; padding: 0 11px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600; color: var(--ink-500);
    transition: background .15s, color .15s;
}
.pager a:hover { background: var(--surface-2); color: var(--ink-900); }
.pager .current { background: var(--ink-900); color: #fff; font-weight: 700; }

.empty-box {
    border: 1px dashed var(--line); border-radius: var(--r-lg);
    background: var(--surface-2); padding: 64px 24px; text-align: center; color: var(--ink-500);
}
.empty-box p { margin: 0 0 6px; }
.empty-box p:last-child { margin-bottom: 0; }
.empty-box .muted { font-size: 13px; color: var(--ink-400); }
.notice-box {
    display: flex; gap: 10px; align-items: flex-start;
    border: 1px solid #f6d9d7; border-radius: var(--r-md);
    background: var(--brand-50); padding: 14px 16px;
    color: var(--brand-700); font-size: 13px; margin-bottom: 20px;
}
.notice-box::before { content: "!"; flex: none; width: 18px; height: 18px; border-radius: 50%;
    background: var(--brand); color: #fff; font-size: 12px; font-weight: 800;
    display: grid; place-items: center; margin-top: 1px; }
.notice-box code {
    display: block; margin-top: 8px; padding: 9px 11px;
    background: #fff; border: 1px solid #f6d9d7; border-radius: var(--r-sm);
    color: var(--brand-700); font-size: 11.5px; word-break: break-all;
}

/* ============================================================
   상세 탭 부속 요소
   ============================================================ */
.quote-na { font-size: 17px; font-weight: 600; color: var(--ink-400); }

.btn-ghost {
    display: inline-block; padding: 9px 16px;
    border: 1px solid var(--line); border-radius: var(--r-full);
    font-size: 13px; font-weight: 600; color: var(--ink-700);
    transition: border-color .15s, color .15s;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.row-preview { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-400); }

/* 목록 썸네일 */
.thumb-cell { width: 112px; padding: 10px 8px !important; }
.row-thumb {
    display: block; width: 96px; height: 60px; border-radius: var(--r-sm);
    object-fit: cover; background: var(--surface-2);
}
.row-thumb.is-empty {
    background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M3 17l5-5 4 4 3-3 6 6M4 4h16v16H4z' stroke='%23d4d4d8' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 22px;
}

/* 본문 텍스트 */
.prose { max-width: 780px; font-size: 15.5px; line-height: 1.85; color: var(--ink-700); word-break: keep-all; }
.prose p { margin: 0 0 14px; }
.prose a { color: var(--brand); font-weight: 600; }
.prose a:hover { text-decoration: underline; text-underline-offset: 3px; }
.prose ol, .prose ul { padding-left: 20px; margin: 0; }
.prose li { margin-bottom: 8px; }

/* 소개 페이지 기능 카드 */
.feature-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.feature {
    border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px;
    transition: border-color .15s, box-shadow .15s;
}
.feature:hover { border-color: #dcdcde; box-shadow: var(--sh-1); }
.feature h3 { font-size: 15.5px; font-weight: 800; margin: 0 0 7px; letter-spacing: -.03em; }
.feature h3::before {
    content: ""; display: inline-block; width: 3px; height: 12px;
    background: var(--brand); margin-right: 7px; vertical-align: -1px;
}
.feature p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--ink-500); word-break: keep-all; }
.feature a { color: var(--brand); font-weight: 600; }
.feature a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 기사 대표 사진 */
.article-photo { margin: 22px 0 0; }
.article-photo img { width: 100%; height: auto; border-radius: var(--r-md); display: block; }

.tag {
    display: inline-block; padding: 2px 7px; border-radius: 4px;
    font-size: 10.5px; font-weight: 800; letter-spacing: .03em;
    background: var(--surface-2); color: var(--ink-500); border: 1px solid var(--line);
}
.tag-vod { background: var(--brand-50); color: var(--brand); border-color: #f6d9d7; }
.tag-ok  { background: #edf7ee; color: #1c7a2b; border-color: #cfe8d2; }
.tag-own { background: var(--brand-50); color: var(--brand); border-color: #f0d5d5; font-weight: 700; }

.no-link { color: var(--ink-700); cursor: default; }
.ext-mark { font-size: 10px; margin-left: 5px; color: var(--ink-400); vertical-align: 1px; }
a:hover .ext-mark { color: var(--brand); }

/* 기사 원문 링크 */
.src-link { margin-left: auto; font-weight: 600; color: var(--brand); }
.src-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.src-note {
    margin-top: 26px; padding: 14px 16px;
    background: var(--surface-2); border-radius: var(--r-md);
    font-size: 13px; color: var(--ink-500);
}
.src-note a { color: var(--brand); font-weight: 600; margin-left: 6px; }
.src-note a:hover { text-decoration: underline; text-underline-offset: 3px; }
.article .meta { align-items: center; }
.tag-ng  { background: var(--brand-50); color: var(--brand); border-color: #f0d5d5; }
.mono { font-family: ui-monospace, Consolas, "Courier New", monospace; font-size: 12.5px; color: var(--ink-500); }

.reply-mark { color: var(--ink-400); margin-right: 4px; }
.cmt { margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--brand); }

/* 동영상 카드 */
.vod-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(224px, 1fr)); }
.vod-card { display: block; }
.vod-thumb {
    position: relative; aspect-ratio: 16 / 9; overflow: hidden;
    border-radius: var(--r-md); background: #1a1a1f;
    display: grid; place-items: center;
}
.vod-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.vod-card:hover .vod-thumb img { transform: scale(1.05); }
.vod-play {
    position: absolute; width: 44px; height: 44px; border-radius: 50%;
    background: rgba(0,0,0,.55); color: #fff; font-size: 15px;
    display: grid; place-items: center; padding-left: 3px;
    transition: background .2s;
}
.vod-card:hover .vod-play { background: var(--brand); }
.vod-body { padding: 10px 2px 0; }
.vod-title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 14px; font-weight: 600; line-height: 1.4;
}
.vod-card:hover .vod-title { color: var(--brand); }
.vod-meta { display: block; margin-top: 5px; font-size: 12px; color: var(--ink-400); }

/* 외부 페이지 임베드 (KISLINE) */
.embed-frame {
    border: 1px solid var(--line); border-radius: var(--r-md);
    overflow: hidden; background: var(--surface);
}
.embed-frame iframe { display: block; width: 100%; height: 1100px; border: 0; }
@media (max-width: 767px) { .embed-frame iframe { height: 780px; } }

/* 기사/공시 본문 */
.article { max-width: 820px; }
.article h1 { font-size: 26px; font-weight: 800; letter-spacing: -.04em; line-height: 1.35; margin: 0 0 12px; }
.article .meta {
    display: flex; gap: 14px; flex-wrap: wrap; padding-bottom: 16px;
    border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-500);
}
.article .sub { margin: 18px 0; padding: 16px 18px; background: var(--surface-2); border-radius: var(--r-md); }
.article .sub li { font-size: 14.5px; font-weight: 600; color: var(--ink-700); margin-bottom: 6px; }
.article .sub li:last-child { margin-bottom: 0; }
.article .body { padding: 22px 0; font-size: 16px; line-height: 1.85; word-break: keep-all; }
.article .body img { height: auto; border-radius: var(--r-sm); margin: 12px 0; }
.article .body pre { white-space: pre-wrap; font-family: inherit; margin: 0; }

.back-link { display: inline-block; margin-top: 24px; font-size: 13.5px; font-weight: 600; color: var(--ink-500); }
.back-link:hover { color: var(--brand); }

/* 이전글 / 다음글 */
.prevnext {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    margin-top: 28px; max-width: 820px;
}
@media (max-width: 640px) { .prevnext { grid-template-columns: 1fr; } }
.prevnext a {
    display: flex; flex-direction: column; gap: 4px; min-width: 0;
    padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md);
    transition: border-color .15s, background .15s;
}
.prevnext a:hover { border-color: var(--brand); background: var(--brand-50); }
.prevnext .dir { font-size: 11.5px; font-weight: 700; color: var(--ink-400); letter-spacing: .04em; }
.prevnext .tt { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   폼 / 버튼
   ============================================================ */
.auth-card {
    max-width: 420px; margin: 20px auto 0;
    border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 32px; box-shadow: var(--sh-1);
}
.auth-card h1 { font-size: 22px; font-weight: 800; letter-spacing: -.04em; margin: 0; }
.auth-desc { font-size: 13.5px; color: var(--ink-500); margin: 6px 0 22px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-700); margin-bottom: 6px; }
.field input {
    width: 100%; height: 44px; padding: 0 14px;
    border: 1px solid var(--line); border-radius: var(--r-sm);
    font-size: 14.5px; outline: none; background: var(--surface);
    transition: border-color .16s, box-shadow .16s;
}
.field input::placeholder { color: var(--ink-400); }
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }

.btn-primary {
    width: 100%; height: 46px; margin-top: 8px;
    border: 0; border-radius: var(--r-sm); cursor: pointer;
    background: var(--brand); color: #fff;
    font-size: 15px; font-weight: 700; letter-spacing: -.02em;
    transition: background .16s var(--ease);
}
.btn-primary:hover { background: var(--brand-700); }

/* ============================================================
   하단 회원사 배너 (구 irmember_banner.ascx 의 Marquee 대체)
   ============================================================ */
.member-strip {
    margin-top: 56px; padding: 18px 0;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    overflow: hidden; background: var(--surface);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.member-strip-track {
    display: flex; align-items: center; gap: 44px; width: max-content;
    animation: member-scroll 60s linear infinite;
}
.member-strip:hover .member-strip-track { animation-play-state: paused; }
@keyframes member-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.member-strip-item {
    flex: none; height: 34px; display: flex; align-items: center;
    filter: grayscale(1); opacity: .55; transition: filter .2s, opacity .2s;
}
.member-strip-item:hover { filter: none; opacity: 1; }
.member-strip-item img { max-height: 34px; width: auto; object-fit: contain; }
.member-strip-item span { font-size: 14px; font-weight: 700; color: var(--ink-500); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
    .member-strip-track { animation: none; }
    .member-strip { overflow-x: auto; }
}

.member-strip + .site-footer { margin-top: 0; }

/* ============================================================
   푸터
   ============================================================ */
.site-footer { margin-top: 72px; padding: 32px 0 48px; border-top: 1px solid var(--line); background: var(--surface-2); }
.foot-top { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 14px; }
.foot-logo { height: 14px; width: auto; opacity: .45; }
.foot-links { display: flex; gap: 18px; font-size: 13px; font-weight: 600; color: var(--ink-700); }
.foot-links a:hover { color: var(--brand); }
.foot-copy { font-size: 12px; color: var(--ink-400); margin: 0; letter-spacing: 0; }
