/* We Being News 웹판 — 앱(theme.dart PaperPalette)과 같은 종이·잉크 색 */
:root {
  --paper: #F7F4ED; --card: #EFEAE0; --ink: #171717; --soft: #5F5B55; --rule: #D9D4CB;
  --accent: #8B6A45; --red: #C54A3C; --link: #355A73; --leaf: #FBF9F4; --shade: rgba(60, 45, 20, .12);
  --serif: 'Noto Serif KR', 'Nanum Myeongjo', Georgia, serif;
  --sans: 'Pretendard', 'Noto Sans KR', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --fs: 18px; --w: 1200px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1B1A18; --card: #292723; --ink: #E9E5DD; --soft: #A9A398; --rule: #3B3833;
    --accent: #C9A577; --red: #E2695B; --link: #8DB6D2; --leaf: #221F1C; --shade: rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1B1A18; --card: #292723; --ink: #E9E5DD; --soft: #A9A398; --rule: #3B3833;
  --accent: #C9A577; --red: #E2695B; --link: #8DB6D2; --leaf: #221F1C; --shade: rgba(0, 0, 0, .45);
  color-scheme: dark;
}
:root[data-size="l"] { --fs: 20px; }
:root[data-size="xl"] { --fs: 23px; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--fs)/1.75 var(--sans); word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 99; }
.skip:focus { left: 8px; }

/* ── 제호 */
.mast { border-bottom: 1px solid var(--ink); background: var(--paper); }
.mast-top { display: flex; align-items: center; justify-content: space-between; height: 44px; font-size: 13px; color: var(--soft); }
.mast-tools { display: flex; gap: 4px; }
.tool { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 20px; color: var(--ink); }
.tool:hover { background: var(--card); color: var(--ink); }
.tool b { font-size: 17px; line-height: 1; } .tool small { font-size: 11px; margin-left: 1px; }
button.tool { grid-auto-flow: column; align-items: end; }
.mast-name {
  display: block; text-align: center; font: 900 clamp(38px, 7.5vw, 84px)/1.05 var(--serif);
  letter-spacing: -.5px; padding: 6px 0 2px; color: var(--ink);
}
.mast-name:hover { color: var(--ink); }
.mast-tag { text-align: center; margin: 4px 0 12px; font-size: 14px; color: var(--soft); letter-spacing: 2px; }
.mast-tag::before, .mast-tag::after { content: '—'; margin: 0 10px; color: var(--rule); }
.tabs {
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; border-top: 3px double var(--ink);
  padding-top: 2px; padding-bottom: 2px; justify-content: center;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 10px 14px; font-size: 16px; font-weight: 500; color: var(--soft); border-bottom: 3px solid transparent; }
.tabs a.on { color: var(--ink); font-weight: 800; border-color: var(--ink); }
.tabs .tab-read { margin-left: 8px; color: var(--paper); background: var(--ink); border-radius: 22px; padding: 8px 16px; align-self: center; font-weight: 700; border: 0; }
.tabs .tab-read:hover { background: var(--accent); color: #fff; }
@media (max-width: 720px) { .tabs { justify-content: flex-start; } .mast-tag { display: none; } }

body.bare .mast-name { font-size: 30px; padding: 0; text-align: left; }
body.bare .mast-tag { display: none; }
body.bare .mast > .wrap:nth-child(2) { display: flex; align-items: center; }
body.bare .mast-top { display: none; }
body.bare .tabs { border-top: 0; justify-content: flex-start; }
body.bare .mast { display: grid; grid-template-columns: auto 1fr; align-items: center; max-width: var(--w); margin: 0 auto; border-bottom: 1px solid var(--rule); }
body.bare .mast .wrap { margin: 0; }

/* ── 속보 (한 건씩 바뀌는 한 줄) */
.ticker { display: flex; align-items: center; gap: 14px; height: 48px; border-bottom: 1px solid var(--rule); font-size: 15.5px; }
.tk-tag { flex: none; display: inline-flex; align-items: center; gap: 7px; color: var(--red); font-weight: 800; letter-spacing: .5px; padding-right: 14px; border-right: 1px solid var(--rule); line-height: 1; }
.tk-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 var(--red); animation: beat 2s infinite; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgba(197, 74, 60, .55); } 70% { box-shadow: 0 0 0 8px rgba(197, 74, 60, 0); } 100% { box-shadow: 0 0 0 0 rgba(197, 74, 60, 0); } }
.tk-list { flex: 1; min-width: 0; list-style: none; margin: 0; padding: 0; position: relative; height: 48px; overflow: hidden; }
.tk-list li { position: absolute; inset: 0; display: flex; align-items: center; }
.tk-list li[hidden] { display: none; }
.tk-list li.in { animation: tkin .45s ease-out; }
@keyframes tkin { from { opacity: 0; transform: translateY(60%); } to { opacity: 1; transform: none; } }
.tk-list a { display: flex; align-items: baseline; gap: 10px; min-width: 0; width: 100%; color: var(--ink); }
.tk-list a:hover .tk-t { text-decoration: underline; text-underline-offset: 4px; }
.tk-list em { flex: none; font-style: normal; font-size: 12.5px; font-weight: 800; color: var(--accent); border: 1px solid currentColor; border-radius: 4px; padding: 0 5px; line-height: 1.5; }
.tk-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.tk-list time { flex: none; font-size: 13px; color: var(--soft); }
.tk-nav { flex: none; display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; color: var(--soft); font-variant-numeric: tabular-nums; }
.tk-nav button { width: 30px; height: 30px; border-radius: 15px; font-size: 20px; line-height: 1; color: var(--soft); }
.tk-nav button:hover { background: var(--card); color: var(--ink); }
.tk-no { min-width: 44px; text-align: center; }
@media (max-width: 720px) { .ticker { gap: 10px; font-size: 14.5px; } .tk-tag { padding-right: 10px; } .tk-list time, .tk-no { display: none; } }
@media (prefers-reduced-motion: reduce) { .tk-tag i { animation: none; } .tk-list li.in { animation: none; } }

main { min-height: 50vh; }

/* ── 첫 화면 */
.front { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 36px; padding-top: 26px; }
.front-main { min-width: 0; }
.edline { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--ink); padding-bottom: 8px; margin-bottom: 18px; }
.edline h1, .edline h2 { margin: 0; font: 800 15px/1.4 var(--sans); letter-spacing: 1px; }
.edline a { font-size: 14px; color: var(--link); font-weight: 600; }
.lead { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.lead .ph { margin: 0; }
.lead .hl { font: 800 clamp(28px, 3.4vw, 40px)/1.3 var(--serif); margin: 6px 0 12px; letter-spacing: -.5px; }
.lead .hl a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.lead p { margin: 0 0 8px; color: var(--ink); }
.lead .more { display: inline-flex; gap: 8px; margin-top: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 26px; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 16px; }
.btn:hover { background: var(--accent); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 760px) { .lead { grid-template-columns: 1fr; } .lead .ph { order: -1; } }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 26px; }
.grid .card { padding: 20px 0; border-bottom: 1px solid var(--rule); }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; gap: 6px; }
.card:hover { color: var(--ink); }
.card:hover .hl { text-decoration: underline; text-underline-offset: 4px; }
.card .thumb { aspect-ratio: 16/10; overflow: hidden; border-radius: 4px; background: var(--card); margin-bottom: 4px; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .thumb img { transform: scale(1.03); }
.kick { font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: .3px; }
.dd { font-style: normal; display: inline-block; background: var(--red); color: #fff; border-radius: 4px; padding: 0 6px; font-size: 12px; font-weight: 800; margin-left: 4px; }
.card .hl { font: 700 21px/1.4 var(--serif); }
.card .lede { font-size: .86em; color: var(--soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.side { min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.side h2 { font: 800 15px/1.4 var(--sans); letter-spacing: 1px; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); display: flex; justify-content: space-between; }
.side h2 a { font-weight: 600; color: var(--link); letter-spacing: 0; }
.dl-list a { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 1.5; }
.dl-list .dd { margin: 3px 0 0; align-self: start; }
.promo { background: var(--card); border-radius: 10px; padding: 20px; }
.promo h3 { font: 800 20px/1.4 var(--serif); margin: 0 0 8px; }
.promo ul { margin: 0 0 14px; padding-left: 20px; font-size: 15px; color: var(--soft); }
.promo .mole { width: 64px; float: right; margin: -6px -4px 0 8px; }
@media (max-width: 1000px) { .front { grid-template-columns: 1fr; } }

/* ── 지표 */
.inds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ind { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n n" "v v" "c s"; background: var(--card); border-radius: 10px; padding: 12px 14px 10px; gap: 0 8px; color: var(--ink); }
.ind:hover { color: var(--ink); outline: 1.5px solid var(--rule); }
.ind-name { grid-area: n; font-size: 13px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ind-v { grid-area: v; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.4; }
.ind-ch { grid-area: c; font-size: 13px; font-weight: 700; color: var(--soft); align-self: end; }
.ind-sp { grid-area: s; width: 72px; height: 26px; color: var(--soft); align-self: end; }
.ind-sp .spark, .ind-big .spark { width: 100%; height: 100%; display: block; }
.up { color: var(--red) !important; } .down { color: var(--link) !important; }
details.ind { display: block; padding: 0; }
details.ind summary { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n n" "v v" "c s"; gap: 0 8px; padding: 14px 16px 12px; cursor: pointer; list-style: none; }
details.ind summary::-webkit-details-marker { display: none; }
details.ind[open] { grid-column: 1 / -1; }
details.ind .ind-sp { width: 110px; height: 34px; }
.ind-detail { padding: 0 16px 16px; }
.ind-big { height: 180px; color: var(--accent); background: linear-gradient(var(--rule) 1px, transparent 1px) 0 0 / 100% 50%; }
.ind-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--soft); margin: 4px 0 10px; }
.ind-detail dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; font-size: 15px; }
.ind-detail dt { color: var(--soft); } .ind-detail dd { margin: 0; font-weight: 700; text-align: right; }
.glance { padding: 28px 16px 40px; }
.glance h1 { font: 800 34px/1.3 var(--serif); margin: 0 0 6px; }
.glance .inds { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.glance h2 { font-size: 16px; color: var(--accent); margin: 30px 0 10px; }

/* ── 지면 (한 면) */
.sheet { font-size: var(--fs); }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 1px solid var(--ink); padding-bottom: 6px; }
.folio { font: 600 13px var(--serif); color: var(--soft); white-space: nowrap; }
.sheet .hl { font: 800 clamp(26px, 2.2em, 40px)/1.32 var(--serif); margin: 14px 0 14px; letter-spacing: -.5px; }
.sheet h3 { font: 800 15px/1.4 var(--sans); color: var(--accent); margin: 22px 0 6px; letter-spacing: .5px; }
.sheet p { margin: 0 0 10px; }
.easy p { font-size: 1.04em; }
.deadline { display: flex; align-items: center; gap: 10px; border-left: 4px solid var(--red); background: var(--card); padding: 10px 14px; font-weight: 700; margin: 0 0 16px; font-size: .92em; }
.deadline .dd { margin: 0; }
.ph { margin: 6px 0 16px; }
.ph img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 4px; background: var(--card); }
.ph figcaption { font-size: 12px; color: var(--soft); text-align: right; margin-top: 4px; }
.w5 { border-collapse: collapse; width: 100%; }
.w5 th { text-align: left; white-space: nowrap; color: var(--accent); font-weight: 800; padding: 6px 14px 10px 0; vertical-align: top; border-right: 1px solid var(--rule); width: 1%; }
.w5 td { padding: 6px 0 10px 14px; vertical-align: top; }
.segs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.segs button { border: 1.5px solid var(--rule); border-radius: 18px; padding: 3px 12px; font-size: 14px; color: var(--soft); }
.segs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 700; }
.why { background: var(--card); border-radius: 8px; padding: 14px 18px; margin: 20px 0 6px; }
.why b { font-size: .9em; } .why p { margin: 4px 0 0; }
.sheet-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; padding-top: 10px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--soft); }
.sheet-foot a { color: var(--link); }
.acts { display: flex; gap: 6px; }
.act { border: 1px solid var(--rule); border-radius: 16px; padding: 3px 12px; font-size: 13px; color: var(--ink) !important; }
.act:hover { border-color: var(--accent); }

/* /p/:id 한 면 보기 */
.single { max-width: 760px; margin: 0 auto; padding: 28px 16px 40px; }
.single .sheet .hl { font-size: clamp(30px, 5vw, 44px); }
.single-nav { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.related { margin-top: 36px; }
.related h2 { font: 800 15px var(--sans); border-bottom: 1px solid var(--ink); padding-bottom: 8px; }
.related .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .related .grid { grid-template-columns: 1fr; } }

/* ── 신문 넘기기 */
.reader { padding: 0 0 12px; }
.reader-bar { display: flex; align-items: center; gap: 6px; padding: 8px 16px; max-width: var(--w); margin: 0 auto; flex-wrap: wrap; }
.reader-bar .ed { font: 700 15px var(--serif); margin-right: auto; }
.chip { border: 1.5px solid var(--rule); border-radius: 18px; padding: 5px 14px; font-size: 14px; font-weight: 600; color: var(--ink); }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip:hover { border-color: var(--accent); }
.reader-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
#book { margin: 0 auto; max-width: var(--w); }
.reader:not(.booked) #book { max-width: 820px; padding: 0 16px; }
.reader:not(.booked) .leaf { background: var(--leaf); border: 1px solid var(--rule); border-radius: 6px; padding: 26px 28px 22px; margin: 18px 0; box-shadow: 0 2px 10px var(--shade); }
.reader.booked #book { padding: 0 8px; }
.reader.booked .leaf { background: var(--leaf); overflow-y: auto; overscroll-behavior: contain; padding: 30px 34px 28px; scrollbar-width: thin; }
.reader.booked .stf__item.--left .leaf, .reader.booked .leaf.--left { box-shadow: inset -18px 0 26px -18px var(--shade); }
.reader.booked .leaf.--right { box-shadow: inset 18px 0 26px -18px var(--shade); }
@media (max-width: 899px) { .reader.booked .leaf { padding: 22px 18px 24px; } }
.stf__parent { margin: 0 auto; }
.pager { display: none; }
.reader.booked .pager { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 10px 0 0; font-size: 14px; color: var(--soft); }
.pager button { width: 46px; height: 46px; border-radius: 23px; border: 1.5px solid var(--rule); font-size: 18px; color: var(--ink); }
.pager button:hover { border-color: var(--accent); }
.pager #pgno { min-width: 130px; text-align: center; font-variant-numeric: tabular-nums; }
.hint { text-align: center; font-size: 13px; color: var(--soft); margin: 6px 0 0; }
.reader:not(.booked) .hint { display: none; }

/* 표지 · 끝 면 */
.cover { display: flex; flex-direction: column; }
.cover .c-name { font: 900 clamp(34px, 4.6vw, 54px)/1.1 var(--serif); text-align: center; border-bottom: 3px double var(--ink); padding-bottom: 10px; margin: 6px 0 4px; }
.cover .c-date { text-align: center; font-size: 14px; color: var(--soft); border-bottom: 1px solid var(--ink); padding-bottom: 8px; margin-bottom: 18px; }
.cover .c-lead .hl { font: 800 clamp(24px, 2.6vw, 34px)/1.3 var(--serif); margin: 6px 0 10px; }
.cover ol { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: n; }
.cover li a { display: grid; grid-template-columns: 34px 1fr; gap: 6px; padding: 9px 0; border-top: 1px solid var(--rule); font-size: .92em; line-height: 1.45; }
.cover li b { font: 700 14px var(--serif); color: var(--accent); }
.cover li small { display: block; font-size: 12px; color: var(--soft); }
.endpage { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; min-height: 100%; }
.endpage h2 { font: 800 34px/1.3 var(--serif); margin: 0; }
.endpage p { color: var(--soft); margin: 0; }
.endpage img { width: 110px; }

dialog#toc { border: 0; border-radius: 12px; padding: 0; width: min(560px, 92vw); max-height: 80vh; background: var(--paper); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
dialog#toc::backdrop { background: rgba(0, 0, 0, .45); }
.toc-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--rule); font-weight: 800; position: sticky; top: 0; background: var(--paper); }
.toc-list a { display: grid; grid-template-columns: 48px 1fr; padding: 12px 18px; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 1.45; }
.toc-list b { font: 700 14px var(--serif); color: var(--accent); }

/* ── 상품 친구 */
.buddy { position: fixed; right: 12px; bottom: 0; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; pointer-events: none; }
.buddy > * { pointer-events: auto; }
.buddy-mole { width: 96px; transform: translateY(100%); transition: transform .6s cubic-bezier(.3, 1.6, .5, 1); margin-right: 18px; }
.buddy-bubble { width: 280px; background: #FFFBF2; color: #2A2420; border-radius: 18px; padding: 12px 14px 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); position: relative; transform: scale(0); transform-origin: 85% 100%; transition: transform .5s .3s cubic-bezier(.3, 1.6, .5, 1); margin-bottom: 8px; }
.buddy.on .buddy-mole { transform: translateY(18%); }
.buddy.on .buddy-bubble { transform: scale(1); }
.buddy-hi { display: block; color: #8B6A45; font-size: 14px; margin-bottom: 6px; }
.buddy-x { position: absolute; right: 8px; top: 6px; font-size: 20px; color: #7A6F66; width: 30px; height: 30px; }
.buddy-item { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; color: #2A2420 !important; }
.buddy-item img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.buddy-item .t { display: block; font-size: 14px; line-height: 1.35; }
.buddy-item .s { display: block; font-weight: 800; font-size: 15px; }
.buddy-item em { grid-column: 1 / -1; justify-self: start; font-style: normal; background: #2A2420; color: #fff; border-radius: 16px; padding: 4px 12px; font-size: 13px; font-weight: 700; }
.buddy-disc { display: block; font-size: 10.5px; line-height: 1.4; color: #7A6F66; margin-top: 8px; }
/* 넓은 화면: 글 바로 옆, 가운데 높이에 — 두더지가 글 가장자리에서 고개를 내밀고, 말풍선은 그 오른쪽. 자리는 site.js 가 재서 정한다 */
.buddy.side { top: 50%; bottom: auto; flex-direction: row; align-items: flex-end; transform: translateY(-50%); }
.buddy.side .buddy-mole { order: -1; width: 84px; margin: 0 -6px 0 0; transform: translateX(-28px); opacity: 0; transition: transform .6s cubic-bezier(.3, 1.6, .5, 1), opacity .4s; cursor: grab; }
.buddy.side .buddy-bubble { margin: 0 0 30px 0; transform-origin: 0 90%; }
.buddy.side.on .buddy-mole { transform: none; opacity: 1; }
/* 끌어서 옮기기 (두더지나 말풍선 머리말을 잡고) */
.buddy .buddy-hi, .buddy .buddy-mole { cursor: grab; user-select: none; touch-action: none; }
.buddy.drag, .buddy.drag * { cursor: grabbing !important; transition: none !important; }
.buddy.moved { transform: none; }

/* ── 목록 · 문서 */
.page-title { font: 800 34px/1.3 var(--serif); margin: 28px 0 6px; }
.page-sub { color: var(--soft); margin: 0 0 22px; }
.archive-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; padding-bottom: 40px; }
.archive-list a { background: var(--card); border-radius: 10px; padding: 16px 18px; }
.archive-list b { display: block; font: 700 19px var(--serif); }
.archive-list span { font-size: 14px; color: var(--soft); }
.search-form { display: flex; gap: 8px; margin: 10px 0 24px; }
.search-form input { flex: 1; font: inherit; padding: 12px 18px; border: 1.5px solid var(--ink); border-radius: 28px; background: var(--leaf); color: var(--ink); min-width: 0; }
.hits a { display: block; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.hits b { display: block; font: 700 20px/1.4 var(--serif); }
.hits span { font-size: .85em; color: var(--soft); }
.doc { max-width: 820px; margin: 0 auto; padding: 0 16px 50px; font-size: calc(var(--fs) * .92); }
.doc h1 { font: 800 34px/1.3 var(--serif); margin: 30px 0 4px; }
.doc .meta { color: var(--soft); font-size: 14px; margin-bottom: 26px; }
.doc h2 { font: 800 20px/1.4 var(--serif); margin: 34px 0 10px; padding-top: 14px; border-top: 1px solid var(--rule); }
.doc h3 { font-size: 17px; margin: 20px 0 6px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 10px 0; }
.doc th, .doc td { border: 1px solid var(--rule); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--card); }
.doc .lead-copy { font: 700 clamp(24px, 3.4vw, 34px)/1.45 var(--serif); margin: 18px 0 18px; }
.doc .note { background: var(--card); border-radius: 8px; padding: 14px 18px; font-size: 15px; }
.doc a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.doc a.btn { color: var(--paper); text-decoration: none; }
.doc a.btn.ghost { color: var(--ink); }
.doc a.btn:not(.ghost):hover { color: #fff; }
.doc a.btn.ghost:hover { color: var(--accent); }
.feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 16px 0; }
.feature div { background: var(--card); border-radius: 10px; padding: 16px 18px; }
.feature b { display: block; font: 700 18px var(--serif); margin-bottom: 4px; }
.feature span { font-size: 15px; color: var(--soft); }

form.contact { display: grid; gap: 14px; margin-top: 10px; }
form.contact label { display: grid; gap: 4px; font-size: 14px; font-weight: 700; }
form.contact input, form.contact select, form.contact textarea { font: inherit; font-size: 16px; padding: 11px 14px; border: 1.5px solid var(--rule); border-radius: 8px; background: var(--leaf); color: var(--ink); }
form.contact input:focus, form.contact textarea:focus, form.contact select:focus { border-color: var(--accent); outline: none; }
form.contact .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { form.contact .row2 { grid-template-columns: 1fr; } }
form.contact .hp { position: absolute; left: -5000px; }
form.contact .agree { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
form.contact .agree input { margin-top: 5px; }
.ok { background: var(--card); border-left: 4px solid var(--accent); padding: 14px 18px; border-radius: 6px; font-weight: 700; }

/* ── 바닥 */
.foot { margin-top: 40px; border-top: 3px double var(--ink); background: var(--card); padding: 34px 0 26px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 24px; }
.foot-grid h4 { font-size: 13px; letter-spacing: 1px; color: var(--soft); margin: 4px 0 10px; }
.foot-grid > div > a { display: block; padding: 4px 0; }
.foot-name { font: 900 26px var(--serif); }
.foot-brand p { color: var(--soft); font-size: 14px; margin: 8px 0; }
.foot-noad { display: inline-block; border: 1px solid var(--rule); border-radius: 14px; padding: 2px 10px; font-size: 12px !important; }
.foot-legal { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--soft); }
.foot-legal p { margin: 4px 0; } .foot-legal span { color: var(--rule); margin: 0 4px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 22px; font-size: 15px; transition: .3s; z-index: 80; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.empty { padding: 60px 0; text-align: center; color: var(--soft); }
@media print { .mast-tools, .tabs, .ticker, .foot, .pager, .reader-bar, .buddy, .appbar { display: none !important; } body { background: #fff; } }

/* ── 좁은 화면 보정 (2026-10-16) */
html, body { max-width: 100%; overflow-x: clip; }
.dd { white-space: nowrap; }
body.bare .mast { grid-template-columns: auto minmax(0, 1fr); }
.mast > *, .reader-bar > * { min-width: 0; }
@media (max-width: 720px) {
  body.bare .mast { grid-template-columns: 1fr auto; }
  body.bare .mast .tabs { display: none; }
  body.bare .mast-name { font-size: 24px; padding: 8px 0; }
  body.bare .mast::after { content: ''; }
  .reader-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 6px 12px; gap: 6px; }
  .reader-bar::-webkit-scrollbar { display: none; }
  .reader-bar .ed { display: none; }
  .reader-tabs { overflow: visible; flex: none; }
  .chip { flex: none; padding: 4px 12px; }
  .reader.booked #book { padding: 0; }
  .reader.booked .leaf { padding: 20px 16px 22px; }
  .sheet .hl { font-size: clamp(25px, 7vw, 32px); }
  .reader.booked .pager { padding-top: 6px; }
  .reader.booked .pager button { width: 42px; height: 42px; }
  .hint { display: none; }
}
/* 신문 펼치기 화면의 윗줄: 제호 · 분야 · 도구 한 줄 */
body.bare .mast { display: flex; align-items: center; gap: 8px; padding: 0 12px; }
body.bare .mast > .wrap:nth-child(2) { order: 1; flex: none; padding: 0; }
body.bare .mast .tabs { order: 2; flex: 1; min-width: 0; padding: 0; }
body.bare .mast-top { display: flex; order: 3; flex: none; height: auto; padding: 0; margin: 0; }
body.bare .mast-date { display: none; }

/* ── 배리어프리 · 자동 넘김 · 읽어 주기 (2026-10-16) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:root[data-size="xxl"] { --fs: 26px; }
:root[data-theme="contrast"] {
  --paper: #000; --card: #121212; --ink: #fff; --soft: #EDEDED; --rule: #9A9A9A;
  --accent: #FFD43B; --red: #FF8A80; --link: #8FD3FF; --leaf: #000; --shade: rgba(0, 0, 0, 0);
  color-scheme: dark;
}
:root[data-theme="contrast"] .sheet a, :root[data-theme="contrast"] .doc a, :root[data-theme="contrast"] .foot a { text-decoration: underline; text-underline-offset: 3px; }
:root[data-theme="contrast"] .dd, :root[data-theme="contrast"] .tk-tag i { background: #FFD43B; color: #000; }
:root[data-theme="contrast"] :focus-visible { outline: 4px solid #FFD43B; outline-offset: 3px; }
:root[data-theme="contrast"] .card .thumb img, :root[data-theme="contrast"] .ph img { filter: contrast(1.1); }

/* 속보: 아래에서 위로 밀려 올라오는 슬라이드 (앞 단추는 위에서 아래로) */
.tk-list li.in.up { animation: tk-in-up .52s cubic-bezier(.2, .8, .2, 1) both; }
.tk-list li.out.up { animation: tk-out-up .52s cubic-bezier(.5, 0, .7, .4) both; }
.tk-list li.in.down { animation: tk-in-down .52s cubic-bezier(.2, .8, .2, 1) both; }
.tk-list li.out.down { animation: tk-out-down .52s cubic-bezier(.5, 0, .7, .4) both; }
@keyframes tk-in-up { from { transform: translateY(105%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tk-out-up { from { transform: none; opacity: 1; } to { transform: translateY(-105%); opacity: 0; } }
@keyframes tk-in-down { from { transform: translateY(-105%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tk-out-down { from { transform: none; opacity: 1; } to { transform: translateY(105%); opacity: 0; } }
@keyframes tk-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes tk-fade-out { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .tk-list li.in.up, .tk-list li.in.down { animation: tk-fade-in .45s ease both; }
  .tk-list li.out.up, .tk-list li.out.down { animation: tk-fade-out .45s ease both; }
}
.tk-pause { font-size: 11px !important; letter-spacing: -1px; }
.tk-pause[aria-pressed="true"] { color: var(--red) !important; }

/* 넘기기 · 자동 넘김 · 읽어 주기 막대 (책 · 스크롤 보기 공통) */
.reader .pager, .reader.booked .pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 18px; padding: 12px 12px 6px; position: relative; max-width: var(--w); margin: 0 auto; }
.reader:not(.booked) .pager { position: sticky; bottom: 0; background: var(--paper); border-top: 1px solid var(--rule); z-index: 5; }
.pg-move { display: flex; align-items: center; gap: 10px; }
.pg-tools { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pager button.pill, .reader.booked .pager button.pill, .listen-row button.pill {
  width: auto; height: auto; display: inline-flex; align-items: center; gap: 6px; border-radius: 22px; padding: 8px 15px;
  font-size: 14.5px; font-weight: 700; background: var(--ink); color: var(--paper); border: 1.5px solid var(--ink);
}
.pager button.pill[aria-pressed="false"], .listen-row button.pill[aria-pressed="false"] { background: transparent; color: var(--ink); }
.pager button.pill.ghost, .listen-row button.pill.ghost { background: transparent; color: var(--ink); border-color: var(--rule); font-weight: 600; }
.pill .ic { font-size: 13px; line-height: 1; }
.auto-bar { position: absolute; left: 12px; right: 12px; top: 0; height: 3px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.auto-bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.listen-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.reading { background: rgba(201, 165, 119, .28); border-radius: 4px; box-shadow: 0 0 0 4px rgba(201, 165, 119, .28); transition: background .2s; }
:root[data-theme="contrast"] .reading { background: #FFD43B; color: #000; box-shadow: 0 0 0 4px #FFD43B; }
:root[data-theme="contrast"] .reading * { color: #000 !important; }
@media (max-width: 720px) {
  .reader .pager, .reader.booked .pager { gap: 6px 10px; padding: 10px 8px 4px; flex-wrap: nowrap; }
  .pager .pill .lb { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pager button.pill, .reader.booked .pager button.pill { width: 42px; height: 42px; padding: 0; justify-content: center; }
  .reader .pager button.pill.ghost, .reader.booked .pager button.pill.ghost { display: none; }
  .pg-move { gap: 6px; }
  .reader.booked .pager #pgno { min-width: 92px; font-size: 13px; }
}

/* ───────────── 초대 (/i/:code) */
.invite { padding-bottom: 50px; }
.inv-hero { max-width: 760px; margin: 28px auto 10px; padding: 26px 24px; background: var(--card); border-radius: 14px; position: relative; }
.inv-hero .mole { width: 84px; position: absolute; right: 18px; top: -26px; }
.inv-kick { margin: 0; color: var(--accent); font-weight: 800; font-size: 15px; }
.inv-hero h1 { font: 900 clamp(28px, 6vw, 40px)/1.25 var(--serif); margin: 4px 0 12px; padding-right: 70px; }
.inv-hero p { margin: 0 0 14px; }
.inv-acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.inv-code { font-size: 14px; color: var(--soft); }
.inv-code b { letter-spacing: 2px; color: var(--ink); font-size: 16px; }
.inv-today h2, .inv-why h2 { font: 800 20px/1.4 var(--serif); margin: 30px 0 12px; }
.inv-more { text-align: center; margin: 20px 0; }
.inv-why ul { padding-left: 20px; color: var(--soft); }
.inv-why li { margin: 6px 0; }
.inv-why b { color: var(--ink); }

/* ── 날씨 (머리 · 첫 화면 옆단) */
.mast-date { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wx { position: relative; }
.wx-now { display: inline-flex; align-items: baseline; gap: 4px; padding: 2px 10px; border: 1px solid var(--rule); border-radius: 14px; color: var(--ink); font-size: 13px; }
.wx-now:hover { border-color: var(--accent); }
.wx-now .wx-t { font-weight: 800; } .wx-now .wx-r { color: var(--soft); margin-left: 2px; }
.wx-pick { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: 280px; background: var(--paper); border: 1px solid var(--rule);
  border-radius: 10px; box-shadow: 0 8px 24px var(--shade); padding: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.wx-pick[hidden] { display: none; }
.wx-pick button { text-align: left; padding: 6px 8px; border-radius: 6px; font-size: 14px; }
.wx-pick button:hover, .wx-pick button[aria-pressed="true"] { background: var(--card); }
.wx-pick small { grid-column: 1 / -1; color: var(--soft); font-size: 11.5px; padding: 4px 6px 0; }
.wx-pick { max-height: min(70vh, 520px); overflow-y: auto; }
.wx-pick em { grid-column: 1 / -1; font-style: normal; font-weight: 700; font-size: 12.5px; color: var(--accent); padding: 8px 6px 0; }
.wx-pick em:first-child { padding-top: 2px; }
.wx-more { display: inline-flex; align-items: baseline; gap: 12px; padding: 2px 4px; color: var(--soft); font-size: 13px; }
.wx-more:hover { color: var(--ink); }
.wx-more b { color: var(--ink); font-weight: 700; }
.wx-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
.wx-cell { display: grid; grid-template-columns: 30px 1fr auto; grid-template-areas: 'ic name t' 'ic sub sub'; column-gap: 8px;
  padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; line-height: 1.35; }
.wx-cell .wx-ic { grid-area: ic; font-size: 22px; align-self: center; }
.wx-cell b { grid-area: name; font-weight: 700; }
.wx-cell .wx-t { grid-area: t; font-weight: 800; }
.wx-cell small { grid-area: sub; color: var(--soft); font-size: 12.5px; }
.wx-board h2 small { font-weight: 500; color: var(--soft); letter-spacing: 0; }
.wx-app { margin: 8px 0 0; font-size: 13px; color: var(--soft); }
@media (max-width: 560px) {
  .wx-now .wx-r { display: none; }
  .wx-more .wx-x:nth-child(n+3) { display: none; } /* 좁은 화면은 다른 나라 두 곳만 */
  /* 날짜와 날씨가 두 줄이 되면 제호를 덮지 않게 */
  .mast-top { height: auto; min-height: 44px; padding-top: 6px; padding-bottom: 4px; align-items: flex-start; }
  .mast-date { gap: 4px 10px; }
}

/* ── 오늘의 한 컷 (풍자 만평) */
.toon-card .toon-img img, .toon-more img, .toon-grid img, .toon-sheet figure img { display: block; width: 100%; height: auto; border-radius: 8px; background: var(--card); }
.toon-card .toon-t { display: block; margin-top: 10px; font: 700 18px/1.4 var(--serif); }
.toon-card .toon-c { margin: 4px 0 0; color: var(--ink); }
.toon-more { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.toon-more a span { display: block; font-size: 13px; margin-top: 4px; color: var(--soft); }
.toon-card .act { margin-top: 12px; }
.toon-sheet figure { margin: 16px 0 0; }
.toon-sheet figcaption { margin-top: 12px; font: 700 clamp(19px, 2.6vw, 24px)/1.5 var(--serif); text-align: center; }
.toon-src { margin-top: 14px; font-size: 15px; color: var(--soft); }
.toon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; margin-top: 18px; }
.toon-grid a { display: block; }
.toon-grid .kick { display: block; margin-top: 8px; }
.toon-grid b { display: block; font: 700 18px/1.4 var(--serif); }
.toon-grid small { display: block; color: var(--soft); font-size: 14px; margin-top: 2px; }

/* ── 쉼표 면 (오늘의 명언 · 살아가는 이야기) */
.notes blockquote, .quote-big blockquote { margin: 0; padding: 14px 18px; background: var(--card); border-left: 4px solid var(--accent); border-radius: 0 8px 8px 0; }
.notes blockquote p { margin: 0; font: 700 18px/1.6 var(--serif); }
.quote-big blockquote p { margin: 0; font: 700 clamp(22px, 3.2vw, 28px)/1.55 var(--serif); }
.notes blockquote footer, .quote-big blockquote footer { margin-top: 8px; font-size: 14px; color: var(--soft); }
.notes cite, .quote-big cite { font-style: normal; }
.story-link { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.story-link b { display: block; font: 700 18px/1.45 var(--serif); margin-top: 2px; }
.notes .act { margin-top: 12px; }
.qnote { color: var(--soft); margin: 12px 0 0; }
.note-sheet .story { margin-top: 28px; }

/* ── 언어 고르기 */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; width: auto; padding: 0 8px; gap: 4px; display: inline-flex; align-items: center; flex: none; white-space: nowrap; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-cur { font-size: 12px; font-weight: 800; }
.lang-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px;
  box-shadow: 0 8px 24px var(--shade); padding: 6px; display: grid; min-width: 190px; }
.lang-list a { padding: 8px 12px; border-radius: 6px; font-size: 15px; color: var(--ink); }
.lang-list a:hover, .lang-list a[aria-current="true"] { background: var(--card); font-weight: 700; }
.lang-list small { padding: 6px 12px 2px; color: var(--soft); font-size: 11.5px; }
.lang-hint { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 8px 16px; background: var(--card); font-size: 14px; }
.lang-hint button { font-weight: 700; color: var(--link); }
:root:lang(th) { --sans: 'Noto Sans Thai', 'Noto Sans KR', system-ui, sans-serif; }
:root:lang(ja) { --sans: 'Noto Sans JP', 'Noto Sans KR', system-ui, sans-serif; }
:root:lang(zh) { --sans: 'Noto Sans SC', 'Noto Sans KR', system-ui, sans-serif; }

/* ── 세계 · 교통 */
.world-group h2 { font: 800 20px/1.4 var(--serif); margin: 26px 0 4px; padding-bottom: 6px; border-bottom: 1px solid var(--ink); }
.traffic .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 16px; }
.tmap { width: 100%; height: min(62vh, 520px); border-radius: 10px; border: 1px solid var(--rule); margin-bottom: 6px; }
.tpin { width: 30px; height: 30px; border-radius: 15px; color: #fff; font-size: 15px; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.tinfo { padding: 8px 10px; font-size: 13px; line-height: 1.5; max-width: 240px; color: #222; }
.traffic-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 760px) { .traffic-cols { grid-template-columns: 1fr; } }
.traffic h2 { font: 800 17px/1.4 var(--sans); margin: 18px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--ink); }
.traffic h2 small { font-weight: 500; color: var(--soft); font-size: 13px; }
.ev-list, .cctv-list { list-style: none; margin: 0; padding: 0; }
.ev-list li, .cctv-list li { padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 1.5; display: grid; }
.ev-list li.hot b { color: var(--red); }
.ev-list span { color: var(--ink); } .ev-list small, .cctv-list small { color: var(--soft); font-size: 12.5px; }
.byline { color: var(--accent); font-weight: 700; font-size: 14px; margin: 4px 0 0; }

/* ── 시민기자 기사 */
.story-body p { margin: 0 0 12px; }
.more-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin: 12px 0; }
.more-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.citizen-note { font-size: 13px; color: var(--soft); border-left: 3px solid var(--accent); padding-left: 10px; margin: 14px 0; }
.byline a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* 쉼표 꾸러미 글 한 편 (/n/:id) — 종이 카드 */
.ncard { max-width: 640px; margin: 8px auto 24px; background: var(--leaf); border: 1px solid var(--rule); border-radius: 14px;
  box-shadow: 0 18px 40px -22px var(--shade); padding: 26px clamp(20px, 5vw, 44px) 22px; position: relative; overflow: hidden; }
.ncard::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--accent), #E8CFA4, var(--accent)); }
.nc-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; border-bottom: 1px solid var(--rule); padding-bottom: 12px; margin-bottom: 22px; }
.nc-mast { font: 800 17px/1 var(--serif); color: var(--ink); }
.nc-kick { font-size: 14px; font-weight: 800; color: var(--accent); }
.nc-day { margin-left: auto; font-size: 13px; color: var(--soft); }
.nc-quote { margin: 8px 0 18px; padding: 0; border: 0; }
.nc-quote p { font: 700 clamp(24px, 4.6vw, 32px)/1.55 var(--serif); margin: 0 0 14px; word-break: keep-all; }
.nc-quote footer { color: var(--soft); font-size: 15px; }
.nc-title { font: 800 clamp(26px, 4.4vw, 34px)/1.35 var(--serif); margin: 0 0 6px; word-break: keep-all; }
.nc-by { color: var(--accent); font-weight: 700; margin: 0 0 18px; }
.nc-poem { font: 500 clamp(18px, 3.2vw, 21px)/2 var(--serif); padding: 18px 20px; background: var(--card); border-radius: 10px; margin-bottom: 16px; word-break: keep-all; }
.nc-words { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14.5px; margin: 0 0 18px; color: var(--soft); }
.nc-words dt { font-weight: 800; color: var(--ink); }
.nc-words dd { margin: 0; }
.nc-lead { font-weight: 800; font-size: 18px; line-height: 1.6; word-break: keep-all; }
.nc-note, .nc-body p { font-size: 18px; line-height: 1.85; word-break: keep-all; }
.nc-aside { background: var(--card); border-radius: 10px; padding: 12px 16px; margin: 14px 0 4px; }
.nc-aside p { margin: 4px 0 0; }
.nc-src { font-size: 13px; color: var(--soft); }
.nc-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; border-top: 1px solid var(--rule); margin-top: 22px; padding-top: 14px; font-size: 13px; color: var(--soft); }

/* 우수 시민기자 표시 (금빛 띠) */
.badge-ex{display:inline-block;padding:2px 9px;border-radius:999px;background:linear-gradient(135deg,#f3dc8a,#c9a13b);color:#3b2a06;font-size:12.5px;font-weight:800;letter-spacing:.02em;vertical-align:1px}

/* 오늘의 위빙뉴스 방송 (YouTube) */
.show-card .show-img { position: relative; display: block; }
.show-card .show-img i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-style: normal; font-size: 22px; display: flex; align-items: center; justify-content: center; padding-left: 4px; box-sizing: border-box; }
.show-card .show-note { font-size: 13px; color: var(--muted, #6b665f); }

/* 앱 받기 띠 (안드로이드 휴대폰 브라우저) */
.appbar { position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 10px;
  background: var(--leaf); color: var(--ink); border: 1px solid var(--rule); border-radius: 16px; padding: 10px 8px 10px 12px;
  box-shadow: 0 8px 28px var(--shade); transform: translateY(140%); transition: transform .4s cubic-bezier(.2, .9, .3, 1); }
.appbar.on { transform: none; }
.appbar img { width: 44px; height: 44px; object-fit: contain; flex: none; }
.appbar-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.appbar-t b { font-size: 15px; }
.appbar-t span { font-size: 12.5px; color: var(--soft); }
.appbar-go { flex: none; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 14px; border-radius: 20px; padding: 9px 14px; text-decoration: none; }
.appbar-go:hover { color: var(--paper); background: var(--accent); }
.appbar-x { flex: none; width: 32px; height: 32px; border: 0; background: none; color: var(--soft); font-size: 22px; line-height: 1; cursor: pointer; }
.appbar-on .buddy:not(.side):not(.moved) { bottom: 84px; }
.appbar-on .foot { padding-bottom: 96px; }
@media (prefers-reduced-motion: reduce) { .appbar { transition: none; } }
