:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --accent: #ea580c;
  --accent-hi: #c2410c;
  --accent-soft: #fff7ed;
  --teal: #0d9488;
  --navy: #0f172a;
  --line: #dbe2ea;
  --radius: 12px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.66;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.ht-wrap { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }

/* Top Spec Bar Header */
.ht-header {
  background: var(--navy);
  color: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 3px solid var(--accent);
}
.ht-header-in {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 0; gap: 16px; flex-wrap: wrap;
}
.ht-brand { display: flex; align-items: baseline; gap: 10px; }
.ht-brand strong { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.ht-brand span { font-size: 0.72rem; font-weight: 700; color: #fdba74; letter-spacing: 0.12em; text-transform: uppercase; }
.ht-nav { display: flex; gap: 18px; font-size: 0.86rem; color: #cbd5e1; flex-wrap: wrap; }
.ht-nav a:hover { color: #fb923c; }

/* Hero + Power Cost Calculator */
.ht-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  padding: 36px 0 38px;
}
.ht-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; }
.ht-kicker {
  display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em;
  background: rgba(234, 88, 12, 0.2); color: #fdba74; border: 1px solid rgba(234, 88, 12, 0.45);
  padding: 4px 10px; border-radius: 6px; margin-bottom: 12px;
}
.ht-hero h1 { font-size: clamp(1.75rem, 3.1vw, 2.45rem); margin: 0 0 12px; line-height: 1.25; letter-spacing: -0.02em; }
.ht-hero p { color: #cbd5e1; margin: 0 0 18px; font-size: 0.95rem; }
.ht-btn {
  display: inline-block; padding: 10px 16px; border-radius: 8px; font-size: 0.86rem; font-weight: 700;
  background: var(--accent); color: #fff;
}
.ht-btn:hover { background: var(--accent-hi); }
.ht-btn.alt { background: #334155; color: #f8fafc; }
.ht-btn.alt:hover { background: #475569; }

.calc-box {
  background: #ffffff; color: var(--ink); border-radius: 14px; padding: 20px 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}
.calc-box h2 { font-size: 1.04rem; margin: 0 0 4px; color: var(--navy); }
.calc-box p { font-size: 0.8rem; color: var(--muted); margin: 0 0 12px; }
.calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.calc-box label { display: block; font-size: 0.74rem; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.calc-box input, .calc-box select {
  width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line);
  font-family: inherit; font-size: 0.88rem; background: var(--bg); color: var(--ink);
}
.calc-out {
  margin-top: 12px; padding: 11px 14px; border-radius: 8px;
  background: var(--accent-soft); border: 1px solid #fed7aa; font-size: 0.88rem;
}
.calc-out strong { color: var(--accent-hi); font-size: 1.06rem; }

/* Filter & Matrix Grid */
.ht-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 24px 0 16px; }
.ht-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.ht-pill {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font-size: 0.84rem; font-weight: 600; cursor: pointer; font-family: inherit;
}
.ht-pill.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.ht-search {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font-size: 0.86rem; min-width: 240px;
}

.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 44px; }
.spec-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.15s, transform 0.15s;
}
.spec-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.spec-banner {
  padding: 14px 18px; background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #fff; display: flex; justify-content: space-between; align-items: center;
}
.spec-banner .cat-badge {
  font-size: 0.7rem; font-weight: 800; background: var(--accent); color: #fff;
  padding: 3px 8px; border-radius: 4px;
}
.spec-banner .price-badge { font-size: 0.78rem; font-weight: 700; color: #fde68a; }
.spec-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; flex: 1; }
.spec-card h3 { font-size: 1.02rem; margin: 0; line-height: 1.35; color: var(--navy); }
.spec-card p { font-size: 0.84rem; color: var(--muted); margin: 4px 0 0; }
.spec-kv { display: flex; justify-content: space-between; font-size: 0.76rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }

/* Article Layout */
.ht-article { max-width: 900px; margin: 26px auto 60px; }
.ht-crumb { font-size: 0.8rem; color: var(--muted); margin-bottom: 12px; }
.ht-crumb a { color: var(--accent-hi); font-weight: 600; }
.ht-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px 32px; }
.ftc-box {
  font-size: 0.83rem; font-weight: 600; color: #7c2d12; background: var(--accent-soft);
  border: 1px solid #fdba74; border-left: 4px solid var(--accent);
  border-radius: 8px; padding: 10px 14px; margin: 0 0 18px; line-height: 1.5;
}
.ht-panel h1 { font-size: clamp(1.45rem, 2.5vw, 2rem); margin: 8px 0 10px; line-height: 1.3; }
.ht-panel h2 { font-size: 1.14rem; color: var(--navy); margin: 24px 0 10px; }
.kpi-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0 20px; }
.kpi-4 div { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 0.84rem; }
.kpi-4 strong { display: block; font-size: 0.72rem; color: var(--accent-hi); margin-bottom: 3px; }
.ht-tbl-wrap { overflow-x: auto; margin: 16px 0 22px; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 480px; }
th { background: var(--navy); color: #fff; text-align: left; padding: 11px 13px; }
td { padding: 10px 13px; border-bottom: 1px solid var(--line); color: var(--muted); }
td:first-child { font-weight: 700; color: var(--ink); }
tr:last-child td { border-bottom: none; }

/* Mid-Article High-CTR Strip & Cards */
.mid-cp-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 18px; margin: 18px 0 22px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fdba74; border-left: 4px solid var(--accent);
  border-radius: 10px; text-decoration: none; color: inherit; transition: transform 0.14s ease;
}
.mid-cp-strip:hover { transform: translateY(-1px); border-color: var(--accent-hi); }
.mid-cp-badge {
  display: inline-block; font-size: 0.7rem; font-weight: 800; color: #fff;
  background: var(--accent); padding: 2px 7px; border-radius: 4px; margin-bottom: 4px;
}
.mid-cp-strip strong { display: block; font-size: 0.96rem; color: var(--navy); }
.mid-cp-strip small { display: block; font-size: 0.79rem; color: var(--muted); margin-top: 2px; }
.mid-cp-go {
  flex-shrink: 0; padding: 9px 15px; border-radius: 8px;
  background: var(--accent); color: #fff; font-size: 0.82rem; font-weight: 800; white-space: nowrap;
}
.mid-cp-strip:hover .mid-cp-go { background: var(--accent-hi); }

.cp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.cp-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
}
.cp-card:hover { border-color: var(--accent); }
.cp-card strong { font-size: 0.92rem; color: var(--navy); display: block; margin-bottom: 3px; }
.cp-card span { font-size: 0.8rem; color: var(--muted); }
.cp-cta {
  display: inline-block; width: fit-content; padding: 7px 14px; border-radius: 6px;
  background: var(--navy); color: #fff; font-size: 0.8rem; font-weight: 700;
}
.cp-card:hover .cp-cta { background: var(--accent); }

.ht-faq details { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; background: var(--bg); }
.ht-faq summary { font-weight: 700; cursor: pointer; font-size: 0.92rem; color: var(--navy); }
.ht-faq p { margin: 8px 0 0; font-size: 0.86rem; color: var(--muted); }

.disclaimer-box {
  font-size: 0.8rem; color: var(--muted); background: #f8fafc; border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 15px; margin-top: 22px; line-height: 1.55;
}
.sticky-cp-bar {
  position: fixed; left: 50%; bottom: 16px; transform: translate(-50%, 140%);
  width: min(680px, calc(100% - 24px)); background: var(--navy); color: #fff;
  border: 2px solid var(--accent); border-radius: 12px; padding: 11px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.4); z-index: 60; transition: transform 0.25s ease;
}
.sticky-cp-bar.show { transform: translate(-50%, 0); }
.sticky-cp-text strong { display: block; font-size: 0.88rem; color: #fdba74; }
.sticky-cp-text span { display: block; font-size: 0.72rem; color: #cbd5e1; }
.sticky-cp-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sticky-cp-link {
  background: var(--accent); color: #fff; padding: 7px 14px; border-radius: 6px;
  font-size: 0.8rem; font-weight: 700; white-space: nowrap;
}
.sticky-cp-close {
  background: transparent; border: 1px solid rgba(255,255,255,0.3); color: #cbd5e1;
  width: 28px; height: 28px; border-radius: 6px; cursor: pointer;
}

.ht-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 26px 0 42px; color: var(--muted); font-size: 0.82rem; }
.ht-footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ht-footer a { margin-right: 14px; color: var(--ink); font-weight: 600; }

@media (max-width: 860px) {
  .ht-hero-grid, .spec-grid, .cp-grid { grid-template-columns: 1fr; }
  .kpi-4 { grid-template-columns: repeat(2, 1fr); }
  .calc-grid { grid-template-columns: 1fr; }
  .ht-panel { padding: 20px 18px; }
  .mid-cp-strip { flex-direction: column; align-items: flex-start; }
}
