/* 강대신문동우회 — 차분하고 깔끔한 기본 스타일 */
:root {
  --bg: #f7f6f2;
  --paper: #ffffff;
  --ink: #1f2933;
  --ink-2: #4b5563;
  --muted: #8a8f98;
  --line: #e3e1da;
  --line-2: #d2cfc6;
  --accent: #1f3a5f;
  --accent-soft: #e8edf4;
  --star: #e3273b;
  --danger: #a33a3a;
  --ok: #2f6b4f;
  --radius: 10px;
  --serif: 'Noto Serif KR', 'Apple SD Gothic Neo', serif;
  --sans: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.3; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.hidden { display: none !important; }

/* 머리 */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-in { display: flex; align-items: center; gap: 16px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--serif); font-weight: 900; font-size: 1.15rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 46px; width: auto; }
@media (max-width: 400px) { .brand-logo { height: 38px; } }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink-2); padding: 8px 12px; border-radius: 8px; font-weight: 500; }
.nav a:hover { background: var(--bg); text-decoration: none; }
.nav a.on { color: var(--accent); background: var(--accent-soft); }
.nav-user { display: flex; gap: 6px; margin-left: 10px; align-items: center; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; width: 40px; height: 40px; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav-user { margin: 8px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
  .wrap { padding: 0 16px; }
}

main { padding: 32px 0 64px; min-height: 60vh; outline: none; }
.site-footer { border-top: 1px solid var(--line); background: var(--paper); padding: 20px 0; font-size: .86rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* 버튼·입력 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); font: inherit; font-size: .92rem; font-weight: 500; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--ink-2); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.1); }
.btn.danger { color: var(--danger); }
.btn.sm { min-height: 30px; padding: 0 10px; font-size: .84rem; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
input, select, textarea { font: inherit; color: inherit; border: 1px solid var(--line-2); border-radius: 8px; padding: 9px 12px; background: var(--paper); width: 100%; }
textarea { min-height: 260px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
label { display: block; font-size: .9rem; color: var(--ink-2); margin: 0 0 6px; }
.field { margin-bottom: 16px; }
.check { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.check input { width: auto; }

/* 카드·섹션 */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--muted); margin: 4px 0 0; font-size: .92rem; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.on { color: var(--accent); border-color: var(--accent); font-weight: 700; }
.tabs a:hover { text-decoration: none; color: var(--ink); }

/* 첫 화면 */
.home-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; }
.home-grid .full { grid-column: 1 / -1; }
.sec-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.sec-title h2 { margin: 0; }
.sec-title a { font-size: .88rem; }
.hero { padding: 4px 0 16px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.hero p { font-size: 1.05rem; }
.hero h1 { font-size: 2rem; font-weight: 900; margin-bottom: .2em; }
.hero p { color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .home-grid { grid-template-columns: 1fr; } .hero h1 { font-size: 1.6rem; } }

/* 목록 */
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list a.row { display: flex; gap: 12px; align-items: baseline; padding: 13px 4px; color: var(--ink); }
.list a.row:hover { background: var(--bg); text-decoration: none; }
.list .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .d { color: var(--muted); font-size: .86rem; white-space: nowrap; }
.pin { display: inline-block; font-size: .74rem; color: var(--accent); border: 1px solid var(--accent); border-radius: 4px; padding: 0 5px; margin-right: 6px; vertical-align: 1px; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.empty { color: var(--muted); padding: 28px 0; text-align: center; }

/* 글 보기 */
.post-head { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 20px; }
.post-body { font-size: 1.02rem; }
.post-body img { margin: 12px 0; border-radius: 6px; }
.post-body table { border-collapse: collapse; margin: 12px 0; }
.post-body td, .post-body th { border: 1px solid var(--line-2); padding: 6px 10px; }
.post-body ul, .post-body ol { padding-left: 1.3em; }

/* 갤러리 */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gallery.mini { grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ph { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: var(--line); cursor: zoom-in; border: 0; padding: 0; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ph:hover img { transform: scale(1.03); }
.ph .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; color: #fff; font-size: .82rem; background: linear-gradient(transparent, rgba(0,0,0,.55)); text-align: left; }
.ph .del { position: absolute; top: 6px; right: 6px; }
.lightbox { position: fixed; inset: 0; background: rgba(15,18,22,.92); display: flex; align-items: center; justify-content: center; z-index: 60; padding: 20px; }
.lightbox img { max-height: 86vh; max-width: 100%; object-fit: contain; }
.lightbox .lb-cap { color: #ddd; text-align: center; margin-top: 10px; font-size: .9rem; }
.lightbox .lb-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; }
.lightbox .lb-prev { left: 12px; } .lightbox .lb-next { right: 12px; }
.lightbox .lb-close { position: absolute; top: 14px; right: 14px; background: none; border: 0; color: #fff; font-size: 1.8rem; cursor: pointer; }
.drop { border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 24px; text-align: center; color: var(--ink-2); background: var(--paper); cursor: pointer; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 12px; }
.thumbs figure { margin: 0; font-size: .76rem; color: var(--muted); }
.thumbs img { aspect-ratio: 1; object-fit: cover; border-radius: 6px; width: 100%; }

/* 회보 */
.bulletin-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.b-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); display: block; }
.b-card:hover { text-decoration: none; border-color: var(--line-2); box-shadow: 0 4px 16px rgba(0,0,0,.05); }
.b-card .thumb { aspect-ratio: 3 / 4; background: var(--bg) center top / cover no-repeat; border-bottom: 1px solid var(--line); }
.b-card .meta { padding: 10px 14px; }
.b-card .no { font-family: var(--serif); font-weight: 700; }
.draft { font-size: .74rem; color: var(--star); border: 1px solid currentColor; border-radius: 4px; padding: 0 5px; margin-left: 6px; }
.b-view { max-width: 900px; margin: 0 auto; }
.b-view img { width: 100%; border: 1px solid var(--line); background: #fff; }
.home-bulletin img { width: 100%; border: 1px solid var(--line); max-height: 560px; object-fit: cover; object-position: top; }

/* 소개 */
.about-body { max-width: 760px; }
.org { display: grid; gap: 22px; }
.org-group h3 { font-size: .95rem; color: var(--ink-2); font-family: var(--sans); font-weight: 700; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.org-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.org-card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.org-card .role { font-size: .8rem; color: var(--muted); }
.org-card .nm { font-weight: 700; font-family: var(--serif); font-size: 1.05rem; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { padding: 0 0 16px 18px; position: relative; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); }
.timeline .when { font-weight: 700; color: var(--accent); margin-right: 8px; }

/* 회원 */
.gen-group { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.gen-group .g { font-family: var(--serif); font-weight: 700; color: var(--accent); }
.gen-group .names { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.paid-star { color: var(--star); font-size: .8em; vertical-align: super; line-height: 0; margin-left: 1px; }
.legend { font-size: .86rem; color: var(--muted); margin-bottom: 12px; }

.sheet-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); max-height: 70vh; }
table.sheet { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .9rem; }
table.sheet th, table.sheet td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 7px 9px; text-align: left; vertical-align: top; white-space: nowrap; }
table.sheet th { background: #f1efe9; position: sticky; top: 0; z-index: 1; font-weight: 700; color: var(--ink-2); }
table.sheet td.num, table.sheet th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.sheet td.wrap { white-space: normal; min-width: 180px; }
table.sheet tr.changed td { background: #fff8e6; }
table.sheet tr.removed td { background: #fbeaea; text-decoration: line-through; color: var(--muted); }
table.sheet tr.new td { background: #eef6f0; }
table.sheet td[contenteditable="true"] { cursor: text; }
table.sheet td[contenteditable="true"]:focus { outline: 2px solid var(--accent); outline-offset: -2px; background: #fff; }
table.sheet tfoot td { font-weight: 700; background: #f7f6f2; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar .grow { flex: 1; }
.toolbar input, .toolbar select { width: auto; min-height: 38px; padding: 6px 10px; }
.notice-box { background: var(--accent-soft); border-radius: 8px; padding: 12px 16px; font-size: .9rem; color: var(--accent); margin-bottom: 16px; }

/* 기록 */
.history { font-size: .86rem; }
.history li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: flex-start; }
.history .h-main { flex: 1; min-width: 0; }
.history .diff { color: var(--ink-2); }
.history .diff del { color: var(--danger); }
.history .diff ins { color: var(--ok); text-decoration: none; }
.badge { display: inline-block; padding: 0 6px; border-radius: 4px; font-size: .74rem; background: var(--bg); border: 1px solid var(--line-2); color: var(--ink-2); }

/* 회비 */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.stat .k { font-size: .84rem; color: var(--muted); }
.stat .v { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat .v.in { color: var(--ok); } .stat .v.out { color: var(--danger); }
.bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 160px; padding: 10px 0 0; }
.bars .m { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; font-size: .72rem; color: var(--muted); cursor: pointer; }
.bars .pair { display: flex; gap: 2px; align-items: flex-end; height: 120px; }
.bars .b { width: 10px; border-radius: 3px 3px 0 0; min-height: 1px; }
.bars .b.in { background: #6f9e86; } .bars .b.out { background: #c98b7c; }
.bars .m.on { color: var(--accent); font-weight: 700; }
.acct-tag { display: inline-block; font-size: .76rem; padding: 0 6px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } .bars .b { width: 6px; } }

/* 모달·알림 */
.modal-bg { position: fixed; inset: 0; background: rgba(20,24,30,.45); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal { background: var(--paper); border-radius: 12px; padding: 24px; width: 100%; max-width: 420px; box-shadow: 0 12px 40px rgba(0,0,0,.18); max-height: 90vh; overflow: auto; }
.modal.wide { max-width: 760px; }
.modal h2 { margin-bottom: 12px; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 8px; font-size: .9rem; opacity: 0; pointer-events: none; transition: .25s; z-index: 70; max-width: calc(100% - 32px); }
#toast.show { opacity: 1; transform: translateX(-50%); }
.auth-box { max-width: 400px; margin: 20px auto; }
.err { color: var(--danger); font-size: .9rem; min-height: 1.2em; }

/* ===== 회보 편집기 ===== */
.ed-layout { display: grid; grid-template-columns: 1fr 260px; gap: 16px; align-items: start; }
.ed-tools { position: sticky; top: 80px; display: grid; gap: 12px; }
.ed-tools .card { padding: 14px; }
.ed-tools h3 { font-size: .9rem; font-family: var(--sans); margin-bottom: 8px; color: var(--ink-2); }
.ed-tools .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ed-tools .seg { display: flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.ed-tools .seg button { flex: 1; border: 0; background: var(--paper); padding: 6px 0; cursor: pointer; font: inherit; font-size: .84rem; }
.ed-tools .seg button + button { border-left: 1px solid var(--line-2); }
.ed-tools .seg button.on { background: var(--accent); color: #fff; }
.ed-tools .row { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; font-size: .86rem; }
.ed-tools .row label { margin: 0; min-width: 52px; }
.ed-tools .row input, .ed-tools .row select { padding: 5px 8px; }
.ed-stage { overflow: auto; background: #e9e7e1; border-radius: var(--radius); padding: 20px; }
.ed-scale { transform-origin: top left; }
.np { width: 900px; background: #fff; position: relative; box-shadow: 0 2px 12px rgba(0,0,0,.08); font-family: var(--serif); color: #111; }
.np-mast { padding: 26px 36px 12px; border-bottom: 3px double #111; position: relative; }
.np-title { font-size: 54px; font-weight: 900; letter-spacing: -.02em; text-align: center; height: 76px; line-height: 1; padding-top: 8px; white-space: nowrap; }
.np-title img { display: inline-block; height: 64px; width: 64px; vertical-align: top; margin: -4px 14px 0 0; }
.np-title span { display: inline-block; vertical-align: top; }
.np-sub { display: flex; justify-content: space-between; border-top: 1px solid #111; margin-top: 12px; padding-top: 6px; font-family: var(--sans); font-size: 13px; }
.np-sub [contenteditable] { outline: none; padding: 0 2px; }
.np-sub [contenteditable]:hover, .np-sub [contenteditable]:focus { background: #fff6d6; }
.np-body { position: relative; }
.bx { position: absolute; box-sizing: border-box; }
.bx.sel { outline: 2px solid #3b82f6; outline-offset: 2px; }
.bx:not(.sel):hover { outline: 1px dashed #93b4e8; outline-offset: 2px; }
.bx .txt { width: 100%; height: 100%; overflow: hidden; outline: none; white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; }
.bx .txt.c2 { column-count: 2; column-gap: 22px; column-rule: 1px solid #ccc; }
.bx .txt.c3 { column-count: 3; column-gap: 18px; column-rule: 1px solid #ccc; }
.bx.t-title .txt { font-weight: 900; line-height: 1.25; letter-spacing: -.01em; }
.bx.t-body .txt { font-family: 'Noto Serif KR', serif; line-height: 1.7; text-align: justify; }
.bx.line-top { border-top: 2px solid #111; padding-top: 6px; }
.bx.img { overflow: hidden; display: flex; flex-direction: column; }
.bx.img .imgw { flex: 1; min-height: 0; background: #eee; display: flex; align-items: center; justify-content: center; color: #888; font-family: var(--sans); font-size: 13px; overflow: hidden; }
.bx.img img { width: 100%; height: 100%; object-fit: cover; }
.bx.img.contain img { object-fit: contain; }
.bx.img .icap { font-family: var(--sans); font-size: 12px; line-height: 1.4; color: #444; padding: 4px 0 3px; min-height: 24px; flex: none; }
.bx .hdl { position: absolute; width: 12px; height: 12px; right: -8px; bottom: -8px; background: #3b82f6; border: 2px solid #fff; border-radius: 3px; cursor: nwse-resize; display: none; }
.bx.sel .hdl { display: block; }
.bx .mv { position: absolute; left: -2px; top: -26px; background: #3b82f6; color: #fff; font: 12px var(--sans); padding: 2px 8px; border-radius: 4px 4px 0 0; cursor: move; display: none; user-select: none; }
.bx.sel .mv { display: block; }
.exporting .bx { outline: none !important; }
.exporting .hdl, .exporting .mv { display: none !important; }
.exporting .np-sub [contenteditable] { background: none !important; }
@media (max-width: 980px) { .ed-layout { grid-template-columns: 1fr; } .ed-tools { position: static; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }

/* 인쇄 (A4 PDF) */
.print-only { display: none; }
@media print {
  @page { size: A4; margin: 12mm 10mm 14mm; }
  body { background: #fff; font-size: 10pt; }
  .site-header, .site-footer, .no-print, .toolbar, .tabs, #toast, .nav-toggle { display: none !important; }
  main { padding: 0; }
  .wrap { max-width: none; padding: 0; }
  .sheet-wrap { max-height: none; overflow: visible; border: 0; }
  table.sheet { font-size: 8.5pt; }
  table.sheet th { position: static; background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  table.sheet th, table.sheet td { white-space: normal; padding: 3px 5px; border: 1px solid #999; }
  table.sheet tr { break-inside: avoid; }
  .print-only { display: block; }
  #print-stamp { position: fixed; right: 0; bottom: -8mm; font-size: 7pt; color: #777; }
  .print-title { font-family: var(--serif); font-size: 14pt; margin: 0 0 6mm; }
  .card { border: 0; padding: 0; }
}
.post-body figure { margin: 16px 0; }
.post-body figure img { border-radius: 6px; margin: 0; }
.post-body figcaption { font-size: .86rem; color: var(--muted); margin-top: 6px; }
.post-body img[src*="qr"] { width: 160px; }
.timeline .what { display: inline; }
.timeline li { display: grid; grid-template-columns: 116px 1fr; gap: 4px 10px; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; } }
.acct-sums { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.acct-sum { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; color: var(--ink); }
.acct-sum:hover { text-decoration: none; border-color: var(--accent); }
.acct-sum .in { color: var(--ok); } .acct-sum .out { color: var(--danger); }
.sec-title { flex-wrap: wrap; gap: 4px 12px; }
.btn.social { width: 100%; min-height: 48px; font-size: 1rem; margin-top: 10px; border: 0; gap: 10px; }
.btn.social:hover { text-decoration: none; filter: brightness(.97); }
.btn.social .ic { font-weight: 900; width: 20px; text-align: center; }
.btn.social { position: relative; }
.btn.social .recent { position: absolute; right: 12px; top: -11px; line-height: 1.3; border: 1px solid #d2cfc6; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #fff; color: #1f2933; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.btn.kakao { background: #FEE500; color: rgba(0,0,0,.85); }
.btn.naver { background: #03C75A; color: #fff; }
.pin.band { color: #1aa34a; border-color: #1aa34a; }
.band-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; }
.band-item .bi-main { flex: 1; min-width: 0; }
.band-item .bi-text { white-space: pre-wrap; font-size: .92rem; margin: 2px 0 6px; }
.band-item .bi-ph { display: flex; gap: 6px; }
.band-item .bi-ph img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
@media (max-width: 560px) { .band-item { flex-direction: column; } }
.grid-rules { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.grid-rules label { margin: 0; font-size: .84rem; }
.grid-rules input { margin-top: 4px; }
@media (max-width: 640px) { .grid-rules { grid-template-columns: 1fr; } }
.foot-in { align-items: center; }
.foot-band { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; }
.foot-band img { width: 22px; height: 22px; }
@media (max-width: 640px) { .foot-in { flex-direction: column; gap: 8px; text-align: center; } }

/* 지난 강대신문 */
.year-strip { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 16px; scrollbar-width: thin; }
.year-strip a { padding: 6px 10px; border-radius: 6px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.year-strip a.on { background: var(--accent); color: #fff; }
.year-strip a:hover { text-decoration: none; background: var(--accent-soft); }
.year-strip a.on:hover { background: var(--accent); }
/* 강대신문: 왼쪽 연도·달, 오른쪽 지면 */
.arc-layout { display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: start; }
.arc-layout > * { min-width: 0; }
.arc-side { position: sticky; top: 92px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.arc-side-toggle { display: none; }
.arc-years { position: relative; max-height: calc(100vh - 120px); overflow-y: auto; padding: 6px; scrollbar-width: thin; }
.yr-b { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: 0; padding: 7px 10px; border-radius: 6px; font: inherit; font-variant-numeric: tabular-nums; color: var(--ink-2); cursor: pointer; }
.yr-b:hover { background: var(--bg); }
.yr-b .chev { color: var(--muted, #999); transition: transform .15s; }
.yr.open > .yr-b { color: var(--accent); font-weight: 700; }
.yr.open > .yr-b .chev { transform: rotate(90deg); }
.mons { display: none; padding: 2px 0 8px 12px; }
.yr.open > .mons { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mons > span { grid-column: 1 / -1; padding: 4px 6px; }
.mons a { display: flex; justify-content: space-between; padding: 5px 8px; border-radius: 6px; color: var(--ink-2); font-size: .9rem; }
.mons a:hover { background: var(--accent-soft); text-decoration: none; }
.mons a .n { font-size: .72rem; color: var(--muted, #999); }
.mons a.on { background: var(--accent); color: #fff; }
.mons a.on .n { color: rgba(255,255,255,.75); }
.arc-guide h2 { margin-top: 0; }
.arc-guide ul { padding-left: 18px; margin-bottom: 0; }
.arc-month h2 { margin: 0 0 10px; font-size: 1.2rem; }
.arc-issues { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.arc-issues button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 7px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; font: inherit; cursor: pointer; color: var(--ink); }
.arc-issues button span { font-size: .78rem; color: var(--muted, #888); }
.arc-issues button:hover { border-color: var(--accent); }
.arc-issues button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.arc-issues button.on span { color: rgba(255,255,255,.8); }
@media (max-width: 760px) {
  .arc-layout { grid-template-columns: 1fr; gap: 12px; }
  .arc-side { position: static; }
  .arc-side-toggle { display: flex; width: 100%; justify-content: space-between; border: 0; border-radius: 0; background: none; font-weight: 700; padding: 12px 14px; }
  .arc-years { display: none; max-height: 55vh; border-top: 1px solid var(--line); }
  .arc-side.open .arc-years { display: block; }
  .yr.open > .mons { grid-template-columns: repeat(4, 1fr); }
  .arc-month h2 { display: none; }
  .arc-issues { gap: 6px; }
  .arc-issues button { padding: 6px 10px; font-size: .9rem; }
}
.arc { background: #2b2f35; border-radius: var(--radius); overflow: hidden; }
.arc-bar { display: flex; gap: 6px; align-items: center; padding: 10px 12px; background: #1f2328; color: #ddd; flex-wrap: wrap; }
.arc-bar .grow { flex: 1; }
.arc-bar .btn { background: #343a42; border-color: #444b55; color: #eee; }
.arc-bar .btn.primary { background: var(--accent); border-color: var(--accent); }
.arc-main { position: relative; display: flex; }
.arc-stage { flex: 1; height: calc(100vh - 230px); min-height: 420px; overflow: auto; text-align: center; cursor: grab; touch-action: pan-x pan-y; }
.arc-stage.grab { cursor: grabbing; }
.arc-stage img { display: inline-block; max-width: none; background: #fff; margin: 12px auto; user-select: none; }
.arc-toc { width: 280px; background: #fff; overflow: auto; height: calc(100vh - 230px); min-height: 420px; padding: 12px 16px; font-size: .88rem; display: none; }
.arc-toc.open { display: block; }
.arc-toc .toc-p > a { font-weight: 700; display: block; margin-top: 10px; }
.arc-toc ul { list-style: none; padding: 0 0 0 8px; margin: 4px 0; }
.arc-toc li a { color: var(--ink-2); display: block; padding: 3px 0; }
.arc-thumbs { position: relative; display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px; background: #1f2328; }
.arc-thumbs button { flex: none; width: 64px; border: 2px solid transparent; background: none; padding: 0; position: relative; cursor: pointer; border-radius: 4px; overflow: hidden; }
.arc-thumbs button.on { border-color: #6ea8ff; }
.arc-thumbs img { width: 100%; height: 88px; object-fit: cover; object-position: top; background: #fff; }
.arc-thumbs span { position: absolute; bottom: 2px; right: 4px; font-size: .7rem; color: #fff; background: rgba(0,0,0,.6); padding: 0 4px; border-radius: 3px; }
@media (max-width: 760px) {
  .arc-toc.open { position: absolute; inset: 0 0 0 auto; width: 85%; box-shadow: -8px 0 24px rgba(0,0,0,.3); z-index: 2; }
  .arc-stage, .arc-toc { height: calc(100vh - 260px); }
}
.np-mast2 { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 36px 6px; border-bottom: 2px solid #111; font-family: var(--serif); font-size: 15px; }
.np-mast2 .pno { font-size: 26px; font-weight: 700; }
.b-spread { display: grid; gap: 16px; max-width: 900px; margin: 0 auto; }
.b-spread.two { grid-template-columns: 1fr 1fr; max-width: 1400px; }
.b-spread figure { margin: 0; }
.b-spread img { width: 100%; border: 1px solid var(--line); background: #fff; }
.b-spread figcaption { font-size: .84rem; color: var(--muted); margin-top: 6px; text-align: center; }
@media (max-width: 860px) { .b-spread.two { grid-template-columns: 1fr; } }
.home-grid > * { min-width: 0; }
.hero { padding-top: 12px; }
