/* ==========================================================================
   생활알뜰노트 (offland.co.kr)
   컨셉: 흰색 + 그린 톤의 "생활정보 대시보드" — 가격표(price-tag) 시그니처
   이전 사이트(장부/세리프, 서류/모노스페이스)와 완전히 다른 레이아웃 문법:
   라운드 카드, 소프트 섀도, 칩(chip) 내비게이션, 가격 태그 배지
   ========================================================================== */

@font-face { font-family: dummy; src: local(""); }

:root {
  --white: #ffffff;
  --bg-soft: #f2fbf6;
  --green: #1f9d55;
  --green-deep: #167a43;
  --green-pale: #e2f6e9;
  --green-pale-2: #d3f0dd;
  --coral: #ff6d3f;
  --ink: #16241c;
  --ink-soft: #5c6d63;
  --line: #dfeee4;

  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 28px rgba(22, 60, 38, 0.08);
  --shadow-sm: 0 4px 14px rgba(22, 60, 38, 0.06);

  --max-w: 1080px;
  --font-body: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.7;
  background: var(--bg-soft);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-deep); text-decoration: none; }
a:hover { color: var(--green); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--green-deep); outline-offset: 3px; }
img { max-width: 100%; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ---------- Price-tag badge (signature element) ---------- */
.price-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px 6px 20px;
  border-radius: 0 8px 8px 0;
  position: relative;
  white-space: nowrap;
}
.price-tag::before {
  content: "";
  position: absolute;
  left: -9px; top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-right: 9px solid var(--green);
}
.price-tag::after {
  content: "";
  position: absolute;
  left: 6px; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--bg-soft);
}
.price-tag.coral { background: var(--coral); }
.price-tag.coral::before { border-right-color: var(--coral); }
.price-tag.outline {
  background: var(--white);
  color: var(--green-deep);
  border: 1.5px solid var(--green);
}
.price-tag.outline::before { border-right-color: var(--green); }
.price-tag.outline::after { background: var(--white); border: 1px solid var(--green); }

/* ---------- Header ---------- */
header.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; color: var(--ink); }
.logo .mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(155deg, var(--green) 0%, var(--green-deep) 100%);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 15px; font-weight: 800;
  flex-shrink: 0;
}
.logo .name b { color: var(--green-deep); }
.logo .tagline { font-size: 11px; color: var(--ink-soft); font-weight: 500; display: block; margin-top: -2px; }
nav.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav.main-nav a {
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  padding: 8px 13px; border-radius: 999px;
}
nav.main-nav a:hover { background: var(--green-pale); color: var(--green-deep); }

/* ---------- Hero (rounded banner card) ---------- */
.hero-band { padding: 34px 0 0; }
.hero {
  background: linear-gradient(155deg, var(--green) 0%, var(--green-deep) 100%);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.hero .eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
  background: rgba(255,255,255,0.16);
  display: inline-block; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.4; font-weight: 800; margin: 0 0 14px; max-width: 20ch;
}
.hero p.lead { font-size: 15.5px; opacity: 0.92; max-width: 58ch; margin: 0 0 26px; }
.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-chips a {
  background: rgba(255,255,255,0.14);
  color: var(--white); font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.3);
}
.hero-chips a:hover { background: rgba(255,255,255,0.26); color: var(--white); }

/* quick price strip under hero */
.quick-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: -26px;
  position: relative;
  z-index: 2;
  padding: 0 8px;
}
.quick-strip .qcard {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
  text-align: center;
}
.quick-strip .qcard .region { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.quick-strip .qcard .price { font-size: 19px; font-weight: 800; color: var(--green-deep); margin-top: 2px; }

/* ---------- Sections ---------- */
section.block { padding: 48px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.section-head .eyebrow-sm {
  font-size: 12px; font-weight: 700; color: var(--green-deep);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; display: block;
}
.section-head h2 { font-size: 22px; font-weight: 800; margin: 0; }
.section-head .desc { color: var(--ink-soft); font-size: 13.5px; max-width: 44ch; }

/* ---------- Card grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.card h3 { font-size: 16.5px; font-weight: 700; margin: 0; line-height: 1.45; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--green-deep); }
.card p { font-size: 13.5px; color: var(--ink-soft); margin: 0; flex-grow: 1; }
.card .card-foot { font-size: 12px; color: var(--ink-soft); display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; }

/* ---------- Region chip nav ---------- */
.cat-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-strip a {
  font-size: 13px; font-weight: 600; padding: 8px 15px;
  border-radius: 999px; color: var(--green-deep);
  background: var(--green-pale);
}
.cat-strip a:hover { background: var(--green-pale-2); }

/* ---------- Price comparison table ---------- */
.price-table-wrap { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; margin: 18px 0 30px; }
table.price-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.price-table th {
  background: var(--green-pale); color: var(--green-deep);
  text-align: left; padding: 12px 16px; font-size: 12.5px; font-weight: 700;
}
table.price-table td { padding: 12px 16px; border-top: 1px solid var(--line); }
table.price-table tr:hover td { background: var(--bg-soft); }

/* ---------- Article page ---------- */
.article-head { padding-top: 34px; }
.article-head .badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.badge {
  display: inline-block; font-size: 12px; font-weight: 700;
  background: var(--green-pale); color: var(--green-deep);
  padding: 5px 12px; border-radius: 999px;
}
.article-head h1 { font-size: clamp(24px, 3.2vw, 33px); font-weight: 800; line-height: 1.42; margin: 0 0 14px; }
.article-meta { font-size: 12.5px; color: var(--ink-soft); display: flex; gap: 16px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }

.article-body { max-width: 700px; padding-bottom: 20px; }
.article-body h2 { font-size: 19px; font-weight: 800; margin: 38px 0 14px; padding-left: 14px; border-left: 4px solid var(--green); }
.article-body h3 { font-size: 16px; font-weight: 700; margin: 24px 0 10px; }
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }

.callout {
  background: var(--green-pale);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 14px;
  margin: 22px 0 26px;
}
.callout b { display: block; margin-bottom: 6px; font-size: 12.5px; color: var(--green-deep); font-weight: 800; }
.callout.warn { background: #fff2e8; }
.callout.warn b { color: #b9541f; }
.callout.risk { background: #fdeceb; }
.callout.risk b { color: #b3392a; }

.disclaimer { font-size: 12px; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 30px; }
.source-note { font-size: 12px; color: var(--ink-soft); background: var(--bg-soft); border-radius: var(--radius-sm); padding: 12px 16px; margin: 20px 0; }

.related { padding: 26px 0 50px; }
.related h2 { font-size: 18px; font-weight: 800; margin: 0 0 18px; }

/* ---------- Static pages ---------- */
.page-body { max-width: 700px; padding: 34px 0 60px; }
.page-body h1 { font-size: clamp(24px,3.2vw,30px); font-weight: 800; margin: 0 0 22px; }
.page-body h2 { font-size: 17px; font-weight: 800; margin: 30px 0 12px; padding-left: 12px; border-left: 4px solid var(--green); }
.page-body p { margin: 0 0 14px; }
.page-body table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: 13.5px; border-radius: var(--radius-sm); overflow: hidden; }
.page-body th, .page-body td { border-top: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.page-body th { background: var(--green-pale); color: var(--green-deep); font-weight: 700; width: 28%; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 30px 0 40px; margin-top: 30px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; font-weight: 600; }
.footer-note { font-size: 11.5px; color: var(--ink-soft); max-width: 46ch; }

@media (max-width: 640px) {
  .hero { padding: 32px 24px; }
  .header-inner { padding: 14px 20px; }
  section.block { padding: 36px 0; }
  .quick-strip { margin-top: -18px; }
}
