/* 바로차 — car life SEO site */
:root {
  --bg: #f4f6f9;
  --surface: #fff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --green: #059669;
  --orange: #ea580c;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(17, 24, 39, 0.06);
  --max: 960px;
  --header: 60px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  height: var(--header);
  display: flex; align-items: center; gap: 16px;
}
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 900; font-size: 1.15rem; letter-spacing: -0.03em;
}
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff; display: grid; place-items: center;
  font-size: 14px; font-weight: 900;
  box-shadow: 0 6px 14px rgba(37, 99, 235, .28);
}
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav a {
  padding: 8px 12px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; color: #374151; white-space: nowrap;
}
.nav a:hover, .nav a.active { background: var(--blue-soft); color: var(--blue); }

/* Hero */
.hero {
  padding: 40px 0 28px;
  background:
    radial-gradient(700px 240px at 10% -20%, #dbeafe 0%, transparent 55%),
    radial-gradient(500px 200px at 100% 0%, #ffedd5 0%, transparent 45%),
    #fff;
  border-bottom: 1px solid var(--line);
}
.hero-kicker {
  display: inline-flex; gap: 6px; align-items: center;
  padding: 6px 11px; border-radius: 999px;
  background: #ecfdf5; color: #047857;
  border: 1px solid #a7f3d0;
  font-size: 12.5px; font-weight: 800; margin-bottom: 14px;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  line-height: 1.2; font-weight: 900; letter-spacing: -0.03em;
  max-width: 16em;
}
.hero p {
  margin: 0 0 20px; color: var(--muted);
  font-size: 1.05rem; max-width: 36em; word-break: keep-all;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 18px; border-radius: 12px;
  font-weight: 800; font-size: 14.5px; border: 0; cursor: pointer;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(37,99,235,.28); }
.btn-primary:hover { background: #1d4ed8; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: #93c5fd; color: var(--blue); }

/* Sections */
.section { padding: 36px 0; }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.section-head h2 {
  margin: 0; font-size: 1.35rem; font-weight: 900; letter-spacing: -0.02em;
}
.section-head p { margin: 0; color: var(--muted); font-size: 13.5px; font-weight: 650; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: .15s ease;
}
a.card:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(17,24,39,.08);
}
.card .icon {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue);
  font-weight: 900; margin-bottom: 12px;
}
.card h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 900; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; word-break: keep-all; }
.card .meta {
  margin-top: 12px; font-size: 12px; font-weight: 800; color: var(--blue);
}

/* Article */
.article-hero {
  padding: 28px 0 10px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-size: 12.5px; color: var(--muted); margin-bottom: 10px;
}
.breadcrumb a:hover { color: var(--blue); }
.article-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 900; letter-spacing: -0.03em; line-height: 1.25;
  word-break: keep-all;
}
.article-hero .lead {
  margin: 0; color: var(--muted); font-size: 1rem; max-width: 40em; word-break: keep-all;
}
.article-body {
  padding: 28px 0 40px;
}
.article-body .content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 22px;
  box-shadow: var(--shadow);
}
.article-body h2 {
  margin: 28px 0 10px;
  font-size: 1.2rem; font-weight: 900; letter-spacing: -0.02em;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  margin: 18px 0 8px;
  font-size: 1.02rem; font-weight: 850;
}
.article-body p, .article-body li {
  color: #374151; font-size: 15px; line-height: 1.75; word-break: keep-all;
}
.article-body ul, .article-body ol { padding-left: 1.2em; }
.article-body .callout {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--blue-soft);
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-weight: 650;
  font-size: 14px;
}
.article-body .warn {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}
.article-body table {
  width: 100%; border-collapse: collapse; margin: 14px 0;
  font-size: 14px;
}
.article-body th, .article-body td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}
.article-body th { background: #f8fafc; font-weight: 800; }
.related {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}

/* Tools */
.tool-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  max-width: 520px;
}
.tool-box label {
  display: block; font-size: 13px; font-weight: 800;
  margin: 0 0 6px; color: #374151;
}
.tool-box input, .tool-box select {
  width: 100%; min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  font: inherit; font-weight: 700;
  margin-bottom: 12px;
  background: #f9fafb;
}
.tool-box input:focus, .tool-box select:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
  background: #fff;
}
.tool-result {
  margin-top: 8px;
  padding: 16px;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
}
.tool-result .label { font-size: 12px; opacity: .75; font-weight: 700; }
.tool-result .value { font-size: 1.5rem; font-weight: 900; margin-top: 4px; letter-spacing: -0.02em; }

/* Ad slot placeholder (keeps layout for AdSense) */
.ad-slot {
  margin: 20px 0;
  min-height: 100px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  display: grid; place-items: center;
  color: #94a3b8; font-size: 12px; font-weight: 700;
}

/* Footer */
.site-footer {
  margin-top: 20px;
  background: #0f172a;
  color: #94a3b8;
  padding: 32px 0 40px;
}
.site-footer .inner {
  display: flex; flex-wrap: wrap; gap: 18px 28px;
  justify-content: space-between;
}
.site-footer strong { color: #fff; display: block; margin-bottom: 6px; font-size: 15px; }
.site-footer p { margin: 0; font-size: 13px; max-width: 360px; line-height: 1.55; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.footer-links a { color: #e2e8f0; font-size: 13.5px; font-weight: 700; }
.footer-links a:hover { color: #fff; }
.footer-note {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12px; line-height: 1.5;
}

/* FAQ */
details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
}
summary { cursor: pointer; font-weight: 850; font-size: 15px; }
details p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

@media (max-width: 800px) {
  .grid-3, .grid-2, .related { grid-template-columns: 1fr; }
  .nav { display: none; }
  .hero { padding: 28px 0 22px; }
}

/* Article figures */
.figure {
  margin: 18px 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f8fafc;
}
.figure img { width: 100%; height: auto; display: block; }
.figure figcaption {
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.45;
  border-top: 1px solid var(--line);
}

/* Noise location map (code diagram - accurate Korean labels) */
.noise-map {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 14px;
  margin: 16px 0;
  align-items: start;
}
.noise-map .car-pane {
  background: linear-gradient(180deg, #eff6ff, #f8fafc);
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 16px;
  min-height: 220px;
  position: relative;
}
.noise-map .car-sil {
  width: 100%;
  max-width: 320px;
  margin: 20px auto;
  display: block;
}
.noise-map .pin {
  position: absolute;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 11px; font-weight: 900;
  display: grid; place-items: center;
  box-shadow: 0 4px 10px rgba(37,99,235,.35);
}
.noise-map .legend {
  display: flex; flex-direction: column; gap: 8px;
}
.noise-map .leg {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.noise-map .leg b {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: grid; place-items: center;
  font-size: 11px; flex-shrink: 0;
}
.noise-map .leg div { font-size: 13px; line-height: 1.45; color: #374151; }
.noise-map .leg strong { display: block; color: var(--ink); font-size: 13.5px; margin-bottom: 2px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.tag {
  font-size: 12px; font-weight: 800;
  padding: 5px 10px; border-radius: 999px;
  background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe;
}

@media (max-width: 800px) {
  .noise-map { grid-template-columns: 1fr; }
}

/* ===== Readability v2 ===== */
:root { --max: 880px; }
.article-body .content {
  padding: 28px 26px 32px;
  line-height: 1.75;
}
.article-body p { margin: 0 0 14px; }
.article-body h2 {
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eff6ff;
}
.article-body table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.article-body th { white-space: nowrap; }
.step-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 14px 0;
}
.step-list li {
  counter-increment: step;
  position: relative;
  padding: 12px 14px 12px 52px;
  margin-bottom: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #374151;
  font-size: 14.5px;
}
.step-list li::before {
  content: counter(step);
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: grid; place-items: center;
  font-weight: 900; font-size: 13px;
}
.toc {
  background: linear-gradient(180deg, #eff6ff, #f8fafc);
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0 0 20px;
}
.toc strong { display: block; margin-bottom: 10px; font-size: 14px; color: #1e40af; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin: 6px 0; font-size: 13.5px; font-weight: 700; }
.toc a { color: #1d4ed8; text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Visual cards with thumb */
.vgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin: 0 0 24px;
}
.vcard {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: .15s ease;
}
a.vcard:hover {
  border-color: #93c5fd;
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(17,24,39,.1);
}
.vcard .thumb {
  aspect-ratio: 16/10;
  background: #e2e8f0 center/cover no-repeat;
  position: relative;
}
.vcard .thumb .badge {
  position: absolute; left: 10px; top: 10px;
  background: rgba(15,23,42,.82); color: #fff;
  font-size: 11px; font-weight: 800;
  padding: 4px 8px; border-radius: 999px;
}
.vcard .body { padding: 14px 14px 16px; flex: 1; display: flex; flex-direction: column; }
.vcard h3 { margin: 0 0 6px; font-size: 1.02rem; font-weight: 900; line-height: 1.3; }
.vcard p { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.5; flex: 1; }
.vcard .meta { font-size: 12px; font-weight: 800; color: var(--blue); }

.section-label {
  display: flex; align-items: center; gap: 10px;
  margin: 8px 0 14px;
}
.section-label h2 { margin: 0; font-size: 1.25rem; font-weight: 900; border: 0; padding: 0; }
.section-label span {
  font-size: 12px; font-weight: 800; color: #64748b;
  background: #f1f5f9; padding: 4px 10px; border-radius: 999px;
}

.figure.hero-fig img { max-height: 360px; object-fit: cover; width: 100%; }
.img-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}
.img-row .figure { margin: 0; }

.quick-nav {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 18px;
}
.quick-nav a {
  font-size: 12.5px; font-weight: 800;
  padding: 8px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  color: #374151; text-decoration: none;
}
.quick-nav a:hover { border-color: #93c5fd; color: var(--blue); background: var(--blue-soft); }

@media (max-width: 900px) {
  .vgrid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 800px) {
  .vgrid, .img-row { grid-template-columns: 1fr; }
  .article-body .content { padding: 20px 16px 24px; }
  .figure.hero-fig img { max-height: 220px; }
}


/* Site search */
.site-search { margin-left: 8px; flex: 1; max-width: 280px; position: relative; }
.site-search input {
  width: 100%; min-height: 38px; border: 1px solid var(--line);
  border-radius: 999px; padding: 0 14px 0 36px;
  font: inherit; font-size: 13.5px; font-weight: 650;
  background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2394a3b8' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3-3'/%3E%3C/svg%3E") 12px center no-repeat;
}
.site-search input:focus {
  outline: none; border-color: var(--blue);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.site-search .nav { display: none; }
@media (max-width: 800px) {
  .site-search { max-width: none; margin-left: auto; flex: 1; min-width: 0; }
  .site-header .inner { gap: 8px; }
}
.code-box {
  margin: 20px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #0f172a;
  color: #e2e8f0;
}
.code-box strong { display: block; font-size: 13px; margin-bottom: 8px; color: #93c5fd; }
.code-box .codes {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px; font-weight: 700; letter-spacing: .02em;
  color: #fff; margin: 0 0 8px; word-break: break-word;
}
.code-box .code-note { margin: 0; font-size: 12px; color: #94a3b8; line-height: 1.5; }
.search-page .result {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 16px; margin-bottom: 10px;
  text-decoration: none; color: inherit; box-shadow: var(--shadow);
}
.search-page .result:hover { border-color: #93c5fd; }
.search-page .result h3 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 900; color: #1d4ed8; }
.search-page .result p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.search-page .result .meta { margin-top: 8px; font-size: 12px; font-weight: 800; color: #64748b; }
.search-page .hit { background: #fef08a; padding: 0 2px; border-radius: 3px; }
.search-page .empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.search-page .search-hero-box {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; box-shadow: var(--shadow); margin-bottom: 18px;
}
.search-page .search-hero-box input {
  width: 100%; min-height: 52px; border: 2px solid #dbeafe;
  border-radius: 12px; padding: 0 16px; font: inherit; font-size: 16px; font-weight: 700;
}
.search-page .search-hero-box input:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}
.search-page .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.search-page .chips button {
  border: 1px solid var(--line); background: #f8fafc; border-radius: 999px;
  padding: 7px 12px; font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer;
}
.search-page .chips button:hover { border-color: #93c5fd; color: var(--blue); }

