/* 영동신문 시안 공통 — 시안마다 :root 변수만 바꿔 쓴다 */
:root {
  --brand: #008abe; --brand-d: #006a93; --accent: #e8692a; --ink: #15191e; --ink2: #4a5360; --ink3: #7b8592;
  --line: #e3e7ec; --bg: #ffffff; --bg2: #f5f7f9; --radius: 6px; --wrap: 1240px;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --head: var(--sans);
}
* { 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: 15px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-d); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cat { display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand); letter-spacing: -.01em; }
.mock-note { background: #fff8e6; color: #7a5200; font-size: 12.5px; text-align: center; padding: 6px 12px; border-bottom: 1px solid #f1dfb0; }
.mock-note a { text-decoration: underline; }

/* ── 사진 칸 · 샘플 표시 ── */
.ph { position: relative; overflow: hidden; background: var(--bg2); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.sample::after { content: "샘플 사진"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 5px 12px;
  background: rgba(10, 20, 30, .55); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .55); white-space: nowrap; pointer-events: none; }

/* ── 생활정보 상자(livingBox) ── */
.lv-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lv-box-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; }
.lv-box-h h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.lv-box-h h2 em { font-style: normal; color: var(--accent); }
.lv-box-h a { font-size: 13px; color: var(--ink3); }
.lv-tabs { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lv-tab { appearance: none; border: 0; background: #fff; cursor: pointer; padding: 10px 2px 9px; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--ink2); position: relative; border-right: 1px solid var(--line); }
.lv-tab:last-child { border-right: 0; }
.lv-tab .lv-ico { font-size: 22px; color: var(--ink3); }
.lv-tab .lv-name { font-size: 12.5px; font-weight: 600; letter-spacing: -.03em; white-space: nowrap; }
.lv-tab .lv-cnt { position: absolute; top: 5px; right: 6px; font-size: 10px; font-weight: 700; color: #fff; background: var(--ink3); border-radius: 9px; padding: 0 5px; line-height: 15px; }
.lv-tab.on { background: var(--brand); color: #fff; }
.lv-tab.on .lv-ico { color: #fff; }
.lv-tab.on .lv-cnt { background: var(--accent); }
.lv-panel { display: none; padding: 6px 16px 4px; }
.lv-panel.on { display: block; }
.lv-desc { margin: 6px 0 4px; font-size: 12.5px; color: var(--ink3); }
.lv-list { list-style: none; margin: 0; padding: 0; }
.lv-list li a { display: flex; gap: 10px; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.lv-list li:last-child a { border-bottom: 0; }
.lv-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-d { color: var(--ink3); font-size: 12.5px; flex: none; font-variant-numeric: tabular-nums; }
.lv-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 16px 16px; }
.lv-foot a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px; border-radius: var(--radius); font-size: 14px; font-weight: 700; }
.lv-write { background: var(--accent); color: #fff !important; }
.lv-write:hover { filter: brightness(.95); }
.lv-tel { background: var(--bg2); color: var(--ink) !important; white-space: nowrap; font-size: 13px !important; letter-spacing: -.02em; }

/* ── 기사 보기 ── */
.ar-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding-top: 28px; padding-bottom: 60px; align-items: start; }
.ar-crumb { font-size: 13px; color: var(--ink3); margin-bottom: 18px; }
.ar-head { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 26px; }
.ar-cat { font-size: 13px; font-weight: 700; color: var(--brand); }
.ar-head h1 { font-family: var(--head); font-size: 34px; line-height: 1.32; letter-spacing: -.03em; margin: 8px 0 10px; }
.ar-sub { font-size: 18px; color: var(--ink2); margin: 0 0 14px; font-weight: 500; }
.ar-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 13px; color: var(--ink3); }
.ar-tools { margin-left: auto; display: flex; gap: 6px; }
.ar-tools button { border: 1px solid var(--line); background: #fff; border-radius: 4px; padding: 3px 9px; font-size: 12.5px; cursor: pointer; color: var(--ink2); }
.ar-fig { margin: 0 0 26px; }
.ar-fig img { width: 100%; max-width: 640px; border-radius: var(--radius); }
.ar-body { font-size: var(--ar-fs, 18px); line-height: 1.85; color: #222; }
.ar-body p { margin: 0 0 1.15em; }
.ar-copy { font-size: 12.5px; color: var(--ink3); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 30px; }
.ar-rel { margin-top: 30px; }
.ar-rel h2 { font-size: 18px; margin: 0 0 8px; }
.ar-rel ul { list-style: none; padding: 0; margin: 0; }
.ar-rel li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ar-rel li span { color: var(--ink3); font-size: 13px; flex: none; }
.ar-side { position: sticky; top: 16px; display: grid; gap: 16px; }

/* ── 생활정보 화면 ── */
.lp { padding-top: 28px; padding-bottom: 60px; }
.lp-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 16px; }
.lp-head h1 { margin: 0; font-size: 34px; letter-spacing: -.03em; }
.lp-head p { margin: 4px 0 0; color: var(--ink2); }
.lp-write { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #fff !important; padding: 12px 20px; border-radius: var(--radius); font-weight: 700; white-space: nowrap; }
.lp-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 22px 0 10px; }
.lp-cat { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px; display: grid; gap: 4px; background: #fff; }
.lp-cat .lv-ico { font-size: 28px; color: var(--brand); }
.lp-cat b { font-size: 17px; }
.lp-cat small { color: var(--ink3); font-size: 12.5px; line-height: 1.4; }
.lp-cat em { font-style: normal; font-weight: 700; color: var(--accent); font-size: 13px; }
.lp-cat:hover { border-color: var(--brand); }
.lp-sec { margin-top: 34px; scroll-margin-top: 16px; }
.lp-sec h2 { display: flex; align-items: center; gap: 8px; font-size: 22px; margin: 0 0 10px; }
.lp-sec h2 .lv-ico { color: var(--brand); }
.lp-sec h2 small { font-size: 13px; color: var(--ink3); font-weight: 400; }
.lp-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.lp-table th { text-align: left; font-size: 13px; color: var(--ink3); font-weight: 600; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 8px 6px; }
.lp-table th:last-child, .lp-table td:last-child { width: 110px; text-align: right; color: var(--ink3); font-size: 13px; font-variant-numeric: tabular-nums; }
.lp-table td { border-bottom: 1px solid var(--line); padding: 11px 6px; }
.lp-form form { display: grid; gap: 12px; max-width: 640px; }
.lp-form label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.lp-form input, .lp-form select, .lp-form textarea { border: 1px solid #cfd6de; border-radius: var(--radius); padding: 10px 12px; font-weight: 400; background: #fff; }
.lp-form button { justify-self: start; background: var(--brand); color: #fff; border: 0; border-radius: var(--radius); padding: 12px 26px; font-weight: 700; cursor: pointer; }
.lp-done { color: var(--brand-d); font-size: 14px; margin: 0; }

@media (max-width: 960px) {
  .ar-wrap { grid-template-columns: 1fr; gap: 30px; }
  .ar-side { position: static; }
  .lp-cats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 16px; }
  .ar-head h1 { font-size: 26px; }
  .ar-body { --ar-fs: 17px; }
  .lp-head { flex-direction: column; align-items: start; }
  .lp-head h1 { font-size: 28px; }
  .lv-tab .lv-name { font-size: 11px; }
}
