/* Layout: 포털형 정보 매거진. 활자 중심, 이미지 없이 헤드라인 목록과 순위로 밀도를 만든다. 베이지 지면 + 짙은 나무색 띠 + 단풍색 포인트 */
:root {
  color-scheme: light;
  --paper: #FBF8F2;
  --paper-2: #F3ECE0;
  --ink: #33281E;
  --ink-2: #5E5144;
  --muted: #8A7D6F;
  --line: #E8DFD0;
  --wood: #3E2C1F;
  --wood-ink: #F3EBDD;
  --wood-muted: #C9B8A3;
  --maple: #B4462A;
  --green: #2F5B40;
  --serif: "Gowun Batang", "Noto Serif KR", "AppleMyungjo", serif;
  --sans: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
a:hover .hl, a.hl:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--maple); outline-offset: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
@media (max-width: 480px) { .wrap { padding-inline: 16px; } }

.only-dark { display: none; }

/* utility bar */
.util { background: var(--wood); color: var(--wood-muted); font-size: 12.5px; }
.util .wrap { display: flex; justify-content: space-between; gap: 12px; padding-block: 7px; }
.util nav { display: flex; gap: 14px; }
.util a:hover { color: var(--wood-ink); }

/* masthead: 로고 사진을 그대로 띠로 쓰고, 양옆은 같은 톤으로 녹인다 */
.mast { background: #EDE1CC; position: relative; padding-top: 6px; }
.mast-logo { display: block; max-width: 600px; margin-inline: auto; }
.mast-logo img { width: 100%; height: auto; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 60%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 60%, transparent 100%); }
.mast .motto { position: relative; margin-top: -14px; padding: 0 16px 16px; text-align: center; font-family: var(--serif); font-size: 13.5px; letter-spacing: .08em; color: #6E6046; }
@media (max-width: 560px) { .mast .motto { margin-top: -4px; font-size: 12.5px; letter-spacing: .03em; padding-bottom: 12px; } }

/* section nav + search */
.gnb { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; }
.gnb .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tabs { display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.tabs a { padding: 14px 16px 12px; font-weight: 500; font-size: 15.5px; white-space: nowrap; border-bottom: 2px solid transparent; color: var(--ink-2); }
.tabs a:first-child { padding-left: 0; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--maple); }
.tabs .sep { width: 1px; background: var(--line); margin: 14px 6px; flex: none; }
.tabs a.tool { color: var(--green); }
.tabs a[class*="c-"]:hover { border-bottom-color: var(--c); }
.tabs a[class*="c-"][aria-current="page"] { border-bottom-color: var(--c); color: var(--c); }
.search { display: flex; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: 999px; height: 36px; padding-inline: 14px 4px; width: 280px; flex: none; }
.search:focus-within { border-color: var(--ink-2); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink); outline: none; }
.search input::placeholder { color: var(--muted); }
.search button { border: 0; background: var(--green); color: #fff; font: inherit; font-size: 12.5px; font-weight: 600; height: 28px; padding-inline: 12px; border-radius: 999px; cursor: pointer; }
@media (max-width: 820px) { .gnb .wrap { flex-direction: column-reverse; align-items: stretch; gap: 0; } .search { width: 100%; margin-top: 10px; } }

/* kicker + meta */
.kicker { font-size: 13px; font-weight: 700; color: var(--c, var(--maple)); letter-spacing: .02em; display: inline-flex; align-items: center; gap: 6px; }
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--c, var(--maple)); }
.meta { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* home: lead + rail */
.front { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding-block: 32px 40px; }
@media (max-width: 900px) { .front { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
.lead-story { display: grid; gap: 12px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.lead-story h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.32; letter-spacing: -.01em; }
.lead-story .deck { font-size: 17px; color: var(--ink-2); max-width: 40em; }
.sub-leads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.sub-leads article { display: grid; gap: 8px; align-content: start; }
.sub-leads h3 { font-family: var(--serif); font-size: 20px; line-height: 1.4; }
.sub-leads p.deck { font-size: 15px; color: var(--ink-2); }
@media (max-width: 600px) { .sub-leads { grid-template-columns: 1fr; gap: 22px; } }

.block-title { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.block-title h2 { font-size: 16px; font-weight: 700; }
.block-title a { font-size: 13px; color: var(--muted); }
.block-title a:hover { color: var(--ink); }

.headlines { list-style: none; margin: 0; padding: 0; }
.headlines li { border-bottom: 1px solid var(--line); }
.headlines a { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding-block: 13px; }
.headlines .hl { font-size: 16.5px; font-weight: 500; }
@media (max-width: 560px) { .headlines a { grid-template-columns: 48px minmax(0, 1fr); } .headlines .meta { grid-column: 2; } }

.rail { display: grid; gap: 36px; align-content: start; }
.rank { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rank li { counter-increment: r; border-bottom: 1px solid var(--line); }
.rank a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding-block: 11px; font-size: 15px; line-height: 1.5; }
.rank a::before { content: counter(r); font-family: var(--serif); font-weight: 700; font-size: 17px; color: var(--maple); line-height: 1.35; font-variant-numeric: tabular-nums; }
.rank li:nth-child(n+4) a::before { color: var(--muted); }

.agenda { list-style: none; margin: 0; padding: 0; }
.agenda li { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.5; }
.agenda time { white-space: nowrap; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; font-size: 14px; }
.agenda li.past { color: var(--muted); }
.agenda li.past time { color: var(--muted); font-weight: 500; }
.agenda .tag { display: block; font-size: 12px; color: var(--muted); }

/* home: category columns */
.sections { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-block: 8px 44px; }
@media (max-width: 900px) { .sections { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sections { grid-template-columns: 1fr; } }
.sections ul { list-style: none; margin: 0; padding: 0; }
.sections li { padding-block: 11px; border-bottom: 1px solid var(--line); }
.sections li a { display: grid; gap: 4px; }
.sections .hl { font-size: 15.5px; font-weight: 500; line-height: 1.5; }

/* wood band */
.band { background: var(--wood); color: var(--wood-ink); }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding-block: 30px; }
.band .kicker { color: #E9A274; }
.band h2 { font-family: var(--serif); font-size: 24px; margin-top: 6px; }
.band p { color: var(--wood-muted); font-size: 15px; margin-top: 6px; max-width: 40em; }
.band .go { border: 1px solid var(--wood-muted); color: var(--wood-ink); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.band .go:hover { background: var(--wood-ink); color: var(--wood); }
@media (max-width: 640px) { .band .wrap { grid-template-columns: 1fr; } .band .go { justify-self: start; } }

/* ad slot */
.ad { border-block: 1px solid var(--line); color: var(--muted); font-size: 11px; letter-spacing: .14em; display: grid; place-items: center; min-height: 96px; }
.ad.box { min-height: 250px; border: 1px solid var(--line); }
body.no-ads .ad { display: none; }

/* category page */
.cat-head { padding-block: 32px 18px; display: grid; gap: 6px; border-bottom: 2px solid var(--ink); }
.cat-head h1 { font-family: var(--serif); font-size: 32px; }
.cat-head p { color: var(--ink-2); }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li { border-bottom: 1px solid var(--line); }
.cat-list a { display: grid; gap: 6px; padding-block: 20px; }
.cat-list h2 { font-family: var(--serif); font-size: 21px; line-height: 1.4; }
.cat-list p.deck { color: var(--ink-2); font-size: 15px; }

/* article */
.art { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-block: 28px 48px; }
@media (max-width: 900px) { .art { grid-template-columns: minmax(0, 1fr); } }
.art-main { min-width: 0; max-width: 680px; }
.crumb { font-size: 13px; color: var(--muted); display: flex; gap: 8px; }
.crumb a:hover { color: var(--ink); }
.art-head { display: grid; gap: 14px; padding-block: 18px 22px; border-bottom: 1px solid var(--line); }
.art-head h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 4vw, 36px); line-height: 1.34; letter-spacing: -.01em; }
.art-head .deck { font-size: 18px; color: var(--ink-2); line-height: 1.6; }
.byline { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.byline b { color: var(--ink-2); font-weight: 600; }
.body { font-size: 17.5px; line-height: 1.9; display: grid; gap: 20px; padding-top: 26px; }
.body h2 { font-family: var(--serif); font-size: 23px; line-height: 1.45; margin-top: 18px; }
.body ul, .body ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.body a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.body strong { font-weight: 700; }
.keypoints { border-block: 1px solid var(--ink); padding-block: 16px; display: grid; gap: 8px; }
.keypoints b { font-size: 13px; letter-spacing: .04em; color: var(--maple); }
.keypoints ul { font-size: 16px; line-height: 1.7; }
.tbl { overflow-x: auto; }
.body table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.55; font-variant-numeric: tabular-nums; }
.body th { text-align: left; font-weight: 600; color: var(--ink-2); border-bottom: 1.5px solid var(--ink); padding: 8px 10px 8px 0; font-size: 14px; }
.body td { border-bottom: 1px solid var(--line); padding: 10px 10px 10px 0; vertical-align: top; }
.sources { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 6px; }
.sources ul { padding-left: 1.2em; display: grid; gap: 4px; }
.sources a { color: var(--ink-2); }
.more { padding-top: 34px; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 28px; }
.prevnext a { display: grid; gap: 4px; font-size: 15px; font-weight: 500; }
.prevnext .next { text-align: right; }
.prevnext small { font-size: 12px; color: var(--muted); font-weight: 400; }

/* calculator */
.calc { border: 1px solid var(--line); background: var(--paper-2); padding: 22px; display: grid; gap: 18px; border-radius: 4px; }
.calc .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .calc .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 5px; font-size: 14px; line-height: 1.5; }
.field label, .field .lbl { font-weight: 600; }
.field input, .field select { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); width: 100%; font-variant-numeric: tabular-nums; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg label { display: flex; gap: 6px; align-items: center; border: 1px solid var(--line); background: var(--paper); padding: 8px 12px; border-radius: 4px; cursor: pointer; font-weight: 500; }
.seg input { accent-color: var(--green); }
.result { border-top: 1.5px solid var(--ink); padding-top: 14px; display: grid; gap: 6px; }
.result .big { font-family: var(--serif); font-size: 32px; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; line-height: 1.2; }
.result table td { border-bottom: 1px dashed var(--line); padding: 7px 0; }
.result table td:last-child { text-align: right; white-space: nowrap; }
.note { font-size: 13px; color: var(--muted); }

/* static page */
.page { max-width: 720px; padding-block: 32px 56px; }
.page h1 { font-family: var(--serif); font-size: 32px; margin-bottom: 8px; }

/* footer */
.foot { background: var(--wood); color: var(--wood-muted); font-size: 13.5px; }
.foot .wrap { padding-block: 36px 40px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
.foot img { width: 150px; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; color: var(--wood-ink); font-weight: 500; margin-bottom: 12px; }
.foot nav a:hover { text-decoration: underline; }
.foot p + p { margin-top: 6px; }
@media (max-width: 640px) { .foot .wrap { grid-template-columns: 1fr; gap: 18px; } }

/* post hero image & empty states */
.hero { margin: 0 0 22px; }
.hero img { width: 100%; height: auto; border-radius: 4px; display: block; }
.hero figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.body img { max-width: 100%; height: auto; border-radius: 4px; }
li.empty { color: var(--muted); font-size: 14px; padding: 14px 0; list-style: none; }
.preview-bar { background: var(--maple); color: #fff; text-align: center; font-size: 13px; padding: 8px 16px; }

/* calendar (챙길 날짜) */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 8px; }
.cal-head strong { font-family: var(--serif); font-size: 15px; }
.cal-nav { width: 28px; height: 28px; border: 1px solid var(--line); background: #fff; border-radius: 999px; font-size: 16px; line-height: 1; color: var(--ink-2); cursor: pointer; }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.cal-grid .wd { font-size: 11px; color: var(--muted); text-align: center; padding: 6px 0 4px; }
.cal-grid .wd.sun, .cd.sun b { color: #B4462A; }
.cd { min-height: 40px; padding: 4px 0 3px; text-align: center; text-decoration: none; color: var(--ink-2); display: flex; flex-direction: column; align-items: stretch; border-top: 1px solid #F0E9DC; }
.cd b { font-weight: 500; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.cd.out { background: transparent; }
.cd.has b { color: var(--ink); font-weight: 700; }
.cd.today b { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-inline: auto; border-radius: 999px; background: var(--ink); color: #fff; }
a.cd:hover { background: var(--paper-2); }
.cd .mk { display: flex; flex-direction: column; gap: 2px; margin-top: 3px; align-items: center; }
.cd .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--c); }
.cd .bar { align-self: stretch; height: 4px; background: var(--c); opacity: .85; }
.cd .bar.s { margin-left: 6px; border-radius: 2px 0 0 2px; }
.cd .bar.e { margin-right: 6px; border-radius: 0 2px 2px 0; }
.cal-list { list-style: none; margin: 10px 0 0; padding: 0; }
.cal-list li { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 8px; padding: 7px 0 7px 10px; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; position: relative; }
.cal-list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 4px; height: 12px; border-radius: 2px; background: var(--c); }
.cal-list time { font-weight: 700; color: var(--c); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cal-list a { color: var(--ink); text-decoration: none; }
.cal-list a:hover { text-decoration: underline; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cal-legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }

/* drag calculators */
.lg-calc { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 20px; margin: 24px 0; display: grid; gap: 16px; }
.lgc-title { font-family: var(--serif); font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.lgc-title::before { content: "🧮"; font-size: 16px; }
.lgc-inputs { display: grid; gap: 14px; }
.lgc-row { display: grid; gap: 6px; }
.lgc-lab { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }
.lgc-num { width: 9.5em; text-align: right; font: inherit; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; border: 1px solid transparent; border-radius: 4px; padding: 2px 6px; background: var(--paper-2); }
.lgc-num:hover, .lgc-num:focus { border-color: var(--line); background: #fff; outline: none; }
.lg-calc input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer; touch-action: pan-y; }
.lg-calc input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--green) 0 var(--p, 50%), #E3DACB var(--p, 50%) 100%); }
.lg-calc input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--green) 0 var(--p, 50%), #E3DACB var(--p, 50%) 100%); }
.lg-calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 999px; background: #fff; border: 2px solid var(--green); box-shadow: 0 1px 3px rgba(51,40,30,.25); }
.lg-calc input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 999px; background: #fff; border: 2px solid var(--green); }
.lgc-seg { display: flex; gap: 6px; flex-wrap: wrap; }
.lgc-seg button, .lgc-tabs button { font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; }
.lgc-seg button.on, .lgc-tabs button.on { background: var(--green); border-color: var(--green); color: #fff; }
.lgc-result { background: var(--paper-2); border-radius: 6px; padding: 16px; display: grid; gap: 10px; }
.lgc-main { display: grid; gap: 2px; }
.lgc-label { font-size: 13px; color: var(--muted); }
.lgc-big { font-family: var(--serif); font-size: 30px; color: var(--green); font-variant-numeric: tabular-nums; line-height: 1.2; }
.lgc-delta { font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.lgc-delta.up { color: #2F7D4F; }
.lgc-delta.up::before { content: "▲ "; }
.lgc-delta.down { color: #B4462A; }
.lgc-delta.down::before { content: "▼ "; }
.lgc-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--line); }
.lgc-bar span { transition: width .15s ease; }
.lgc-bar .s0 { background: #8A7D6F; } .lgc-bar .s1 { background: var(--green); } .lgc-bar .s2 { background: #C99A3B; }
.lgc-parts { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.lgc-parts td { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.lgc-parts td:last-child { text-align: right; }
.lgc-parts tr:nth-child(1) td:first-child::before, .lgc-parts tr:nth-child(2) td:first-child::before, .lgc-parts tr:nth-child(3) td:first-child::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.lgc-parts tr:nth-child(1) td:first-child::before { background: #8A7D6F; } .lgc-parts tr:nth-child(2) td:first-child::before { background: var(--green); } .lgc-parts tr:nth-child(3) td:first-child::before { background: #C99A3B; }
.lgc-note { font-size: 13px; color: var(--ink-2); margin: 0; }
.lgc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.lgc-actions button { font: inherit; font-size: 12px; color: var(--muted); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* floating quick calculator */
.lgc-fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px 0 14px; border-radius: 999px; border: 0; background: var(--wood); color: #F3ECE0; font: inherit; font-size: 13.5px; font-weight: 600; box-shadow: 0 4px 14px rgba(51,40,30,.25); cursor: pointer; }
.lgc-fab.open { background: var(--green); }
.lgc-panel { position: fixed; right: 18px; bottom: 72px; z-index: 40; width: min(380px, calc(100vw - 24px)); max-height: calc(100vh - 100px); overflow: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 40px rgba(51,40,30,.22); padding: 14px; }
.lgc-ph { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.lgc-ph strong { font-family: var(--serif); }
.lgc-ph .x { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.lgc-tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.lgc-panel .lg-calc { margin: 0; padding: 14px; border: 0; }
@media (max-width: 560px) { .lgc-fab .t { display: none; } .lgc-fab { padding: 0 14px; right: 12px; bottom: 12px; } .lgc-panel { right: 12px; bottom: 64px; } }
@media print { .lgc-fab, .lgc-panel { display: none; } }

/* maps & routes */
figure.map { margin: 24px 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.map-frame { position: relative; aspect-ratio: 16 / 9; background: var(--paper-2); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
figure.map figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 14px; font-size: 13.5px; color: var(--ink-2); }
figure.map figcaption > span:not(.map-links) { color: var(--muted); }
.map-links { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.map-links a, .body .map-links a { font-size: 12.5px; text-decoration: none; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; background: var(--paper); }
.map-links a:hover { border-color: var(--green); color: var(--green); }
.route { margin: 20px 0; border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; background: #fff; }
.route .od { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.route .od i { flex: 1; height: 0; border-top: 2px dashed var(--line); position: relative; }
.route .od i::after { content: "›"; position: absolute; right: -2px; top: -13px; color: var(--muted); font-style: normal; }
.route .legs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.route .leg, .body .route .leg { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--paper-2); text-decoration: none; color: var(--ink); font-size: 13.5px; }
.route .leg:hover { background: #E8DFD0; }
.route .leg .m { color: var(--muted); }
.route .leg b { font-variant-numeric: tabular-nums; }
.route-note { font-size: 12px; color: var(--muted); margin: 10px 0 0 !important; }
/* photos & illustrations */
figure.photo, figure.illust { margin: 24px 0; }
figure.photo img, figure.illust img, figure.illust svg { display: block; width: 100%; height: auto; border-radius: 6px; }
figure.photo figcaption, figure.illust figcaption { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
figure.photo figcaption a, figure.illust figcaption a { color: var(--muted); }
.callout { display: flex; gap: 10px; background: var(--t, var(--paper-2)); border-radius: 6px; padding: 12px 14px; margin: 18px 0; font-size: 15px; }
.callout .ic { font-size: 18px; line-height: 1.5; }

/* share */
.byline-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.share { display: flex; flex-wrap: wrap; gap: 6px; }
.share button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer; }
.share button:hover { border-color: var(--ink-2); color: var(--ink); }
.share .i { width: 16px; height: 16px; border-radius: 4px; display: inline-grid; place-items: center; font-size: 10px; font-weight: 800; color: #fff; }
.share .sh-kakao .i { background: #FEE500; color: #3A1D1D; } .share .sh-kakao .i::before { content: "K"; }
.share .sh-naver .i { background: #03C75A; } .share .sh-naver .i::before { content: "N"; }
.share .sh-facebook .i { background: #1877F2; } .share .sh-facebook .i::before { content: "f"; font-size: 12px; }
.share .sh-x .i { background: #111; } .share .sh-x .i::before { content: "X"; }
.share .sh-band .i { background: #2DB400; } .share .sh-band .i::before { content: "B"; }
.share .sh-mail .i { background: var(--ink-2); } .share .sh-mail .i::before { content: "@"; }
.share .sh-copy .i { background: var(--green); } .share .sh-copy .i::before { content: "🔗"; font-size: 9px; }
.share .sh-native .i { background: var(--maple); } .share .sh-native .i::before { content: "↗"; }
.share.compact button { height: 30px; padding: 0 10px; font-size: 12.5px; }
.share-box { margin: 32px 0 8px; padding: 18px; border-radius: 6px; background: var(--paper-2); }
.share-box h2 { font-size: 15px; margin: 0 0 12px; font-family: var(--serif); }
.lg-toast { position: fixed; left: 50%; bottom: 80px; transform: translate(-50%, 20px); background: var(--wood); color: #F3ECE0; font-size: 13.5px; padding: 10px 16px; border-radius: 999px; opacity: 0; pointer-events: none; transition: .2s; z-index: 50; max-width: calc(100vw - 32px); text-align: center; }
.lg-toast.on { opacity: 1; transform: translate(-50%, 0); }
/* comments */
.comments { margin-top: 36px; }
.comments.off { display: none; }
.c-count { color: var(--maple); font-size: .85em; }
.c-form { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 6px; padding: 14px; background: #fff; }
.c-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px; }
.c-form input, .c-form textarea { font: inherit; font-size: 14.5px; border: 1px solid var(--line); border-radius: 4px; padding: 9px 10px; background: var(--paper); color: var(--ink); width: 100%; }
.c-form textarea { resize: vertical; min-height: 84px; line-height: 1.6; }
.c-form input:focus, .c-form textarea:focus { outline: none; border-color: var(--green); background: #fff; }
.c-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.c-foot { display: flex; justify-content: space-between; align-items: center; }
.c-len { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.c-foot button { font: inherit; font-size: 14px; font-weight: 600; border: 0; border-radius: 999px; background: var(--green); color: #fff; height: 36px; padding: 0 18px; cursor: pointer; }
.c-foot button:disabled { opacity: .5; }
.c-rule { font-size: 12px; color: var(--muted); margin: 0; }
.c-replying { display: flex; justify-content: space-between; font-size: 13px; color: var(--green); background: #E1ECE4; padding: 6px 10px; border-radius: 4px; }
.c-replying button { border: 0; background: none; color: var(--muted); cursor: pointer; font: inherit; font-size: 12.5px; }
.c-list { list-style: none; margin: 14px 0 0; padding: 0; }
.c-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.c-item.child { padding-left: 22px; position: relative; }
.c-item.child::before { content: "↳"; position: absolute; left: 4px; top: 14px; color: var(--muted); }
.c-meta { display: flex; gap: 10px; align-items: baseline; font-size: 13.5px; }
.c-meta time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.c-item p { margin: 6px 0 4px; font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.c-item.deleted p { color: var(--muted); font-size: 13.5px; }
.c-act { display: flex; gap: 10px; }
.c-act button { border: 0; background: none; padding: 0; font: inherit; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.c-act button:hover { color: var(--ink); text-decoration: underline; }
.c-empty { color: var(--muted); font-size: 14px; padding: 16px 0; list-style: none; }
@media (max-width: 560px) { .c-row { grid-template-columns: 1fr; } .byline-row .share { width: 100%; } }
.c-replying[hidden], .share [hidden] { display: none; }

/* motion */
.mast { overflow: hidden; }
.mast-fx { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.mast-logo, .mast .motto { position: relative; z-index: 1; will-change: transform; }
.rv { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.rv.rv-in { opacity: 1; transform: none; }
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--maple), #D98A3D); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; pointer-events: none; }
.headlines a, .cat-list a, .rank a, .sections li a { transition: color .2s ease; }
.headlines a:hover .hl, .cat-list a:hover .hl, .rank a:hover, .sections li a:hover .hl { color: var(--maple); }
.lead-story .hl, .sub-leads .hl { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .45s cubic-bezier(.2,.7,.2,1); }
.lead-story a:hover .hl, .sub-leads a:hover .hl { background-size: 100% 1px; }
.share button, .lgc-seg button, .lgc-tabs button, .c-foot button, .lgc-fab, .cal-nav, .map-links a, .route .leg { transition: transform .15s ease, background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease; }
.share button:active, .c-foot button:active, .lgc-fab:active, .route .leg:active { transform: scale(.96); }
.lgc-fab:hover { box-shadow: 0 8px 22px rgba(51,40,30,.3); transform: translateY(-1px); }
figure.photo img, .hero img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
figure.photo, .hero { overflow: hidden; border-radius: 6px; }
figure.photo:hover img { transform: scale(1.02); }
.tabs a { transition: color .2s ease, border-color .25s ease; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1 !important; transform: none !important; } * { transition: none !important; animation: none !important; } }

.lg-calc input[type="range"]::-webkit-slider-thumb { transition: transform .12s ease, box-shadow .12s ease; }
.lg-calc input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.18); box-shadow: 0 0 0 6px rgba(47,91,64,.14), 0 1px 3px rgba(51,40,30,.25); }

/* share button + sheet */
.share-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--wood); color: #F6EFE3; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 8px rgba(51,40,30,.18); transition: transform .15s ease, box-shadow .2s ease; }
.share-btn:hover { box-shadow: 0 6px 16px rgba(51,40,30,.24); transform: translateY(-1px); }
.share-btn:active { transform: scale(.96); }
.share-btn.compact { height: 32px; padding: 0 12px; font-size: 13px; background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.share-box { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.share-box b { display: block; font-family: var(--serif); font-size: 15px; }
.share-box span { font-size: 12.5px; color: var(--muted); }
html.sheet-open { overflow: hidden; }
.lg-sheet { position: fixed; inset: 0; z-index: 80; }
.lg-sheet-bg { position: absolute; inset: 0; background: rgba(40,30,20,.38); opacity: 0; transition: opacity .25s ease; }
.lg-sheet-panel { position: absolute; left: 50%; bottom: 0; width: min(520px, 100%); transform: translate(-50%, 104%); transition: transform .3s cubic-bezier(.2,.8,.2,1); background: var(--paper); border-radius: 18px 18px 0 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(40,30,20,.2); max-height: 88vh; overflow: auto; }
.lg-sheet.on .lg-sheet-bg { opacity: 1; }
.lg-sheet.on .lg-sheet-panel { transform: translate(-50%, 0); }
.lg-sheet-grab { width: 40px; height: 5px; border-radius: 999px; background: #D9CFBF; margin: 2px auto 12px; }
@media (min-width: 700px) { .lg-sheet-panel { bottom: 50%; border-radius: 18px; transform: translate(-50%, 60%) scale(.96); opacity: 0; transition: transform .25s cubic-bezier(.2,.8,.2,1), opacity .2s; } .lg-sheet.on .lg-sheet-panel { transform: translate(-50%, 50%); opacity: 1; } .lg-sheet-grab { display: none; } }
.sh-head { display: flex; gap: 12px; align-items: center; padding: 4px 2px 14px; border-bottom: 1px solid var(--line); }
.sh-head img, .sh-logo { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; background: var(--paper-2) url(/assets/favicon.png) center/60% no-repeat; }
.sh-head b { display: block; font-size: 14.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sh-head span { font-size: 12px; color: var(--muted); }
.sh-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 6px; padding: 18px 0 10px; }
.sh-grid button { display: flex; flex-direction: column; align-items: center; gap: 7px; background: none; border: 0; cursor: pointer; font: inherit; color: var(--ink-2); padding: 0; }
.sh-grid .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; font-size: 19px; color: #fff; transition: transform .15s ease; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.sh-grid button:active .ico { transform: scale(.9); }
.sh-grid .lb { font-size: 12px; }
.sh-kakao .ico { background: #FEE500; color: #3A1D1D; } .sh-kakao .ico::before { content: "TALK"; font-size: 11px; letter-spacing: -.02em; }
.sh-insta .ico { background: radial-gradient(circle at 30% 110%, #FFD776 0 18%, #F77737 35%, #E1306C 60%, #833AB4 90%); } .sh-insta .ico::before { content: ""; width: 22px; height: 22px; border: 2.5px solid #fff; border-radius: 7px; box-shadow: inset 0 0 0 4.5px transparent; background: radial-gradient(circle, transparent 4.5px, #fff 5px 7px, transparent 7.5px); }
.sh-naver .ico { background: #03C75A; } .sh-naver .ico::before { content: "N"; }
.sh-facebook .ico { background: #1877F2; } .sh-facebook .ico::before { content: "f"; font-size: 26px; font-family: Arial, sans-serif; }
.sh-x .ico { background: #111; } .sh-x .ico::before { content: "𝕏"; }
.sh-band .ico { background: #2DB400; } .sh-band .ico::before { content: "b"; font-size: 24px; }
.sh-threads .ico { background: #000; } .sh-threads .ico::before { content: "@"; font-size: 24px; }
.sh-mail .ico { background: #5E5144; } .sh-mail .ico::before { content: "✉"; font-size: 22px; }
.sh-sms .ico { background: #34C759; } .sh-sms .ico::before { content: "💬"; font-size: 22px; }
.sh-copy .ico { background: var(--green); } .sh-copy .ico::before { content: "🔗"; font-size: 22px; }
.sh-more .ico { background: #E8DFD0; color: var(--ink); } .sh-more .ico::before { content: "•••"; font-size: 16px; }
.sh-cancel { display: block; width: 100%; height: 46px; margin-top: 8px; border-radius: 12px; border: 0; background: var(--paper-2); font: inherit; font-size: 15px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
/* numpad */
.np-head { text-align: center; padding: 6px 0 4px; }
.np-head b { display: block; font-family: var(--serif); font-size: 18px; }
.np-head span { font-size: 13px; color: var(--muted); }
.np-dots { display: flex; justify-content: center; gap: 16px; margin: 18px 0 20px; }
.np-dots i { width: 14px; height: 14px; border-radius: 999px; border: 2px solid #CFC3B0; transition: background .12s, border-color .12s, transform .12s; }
.np-dots i.on { background: var(--green); border-color: var(--green); transform: scale(1.1); }
.np-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 320px; margin: 0 auto; }
.np-keys button { height: 60px; border-radius: 14px; border: 0; background: #fff; font: inherit; font-size: 24px; font-weight: 500; color: var(--ink); cursor: pointer; box-shadow: 0 1px 2px rgba(51,40,30,.08); font-variant-numeric: tabular-nums; transition: transform .08s ease, background .12s; }
.np-keys button:active { transform: scale(.94); background: #EFE8DC; }
.numpad-sheet .sh-cancel { max-width: 320px; margin: 14px auto 0; }
/* comment form v2 */
.c-who { display: flex; align-items: center; gap: 8px; }
.c-avatar { width: 32px; height: 32px; border-radius: 999px; background: #E1ECE4; display: grid; place-items: center; font-size: 16px; flex: none; }
.c-who input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; font-weight: 700; padding: 6px 4px !important; border-bottom: 1px dashed var(--line) !important; border-radius: 0 !important; }
.c-who input:focus { border-bottom-color: var(--green) !important; }
.c-who input.pop { animation: pop .3s ease; }
@keyframes pop { 40% { transform: scale(1.04); color: var(--green); } }
.c-reroll { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 16px; transition: transform .2s ease; }
.c-reroll:active { transform: rotate(180deg) scale(.9); }
.c-foot { gap: 10px; }
.c-foot .c-len { margin-left: auto; }
.c-priv { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); cursor: pointer; user-select: none; }
.c-priv input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.c-priv .sw { width: 34px; height: 20px; border-radius: 999px; background: #DDD3C3; position: relative; transition: background .2s; flex: none; }
.c-priv .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s cubic-bezier(.2,.8,.2,1); }
.c-priv input:checked + .sw { background: var(--wood); }
.c-priv input:checked + .sw::after { transform: translateX(14px); }
.c-priv input:focus-visible + .sw { outline: 2px solid var(--maple); outline-offset: 2px; }
.c-form.is-private { border-color: var(--wood); background: #FBF7F0; }
.c-private { color: var(--muted); font-size: 14px !important; }
@media (max-width: 560px) { .c-foot { flex-wrap: wrap; } .c-foot button { width: 100%; height: 42px; } }
