:root {
  --ink: #17212b;
  --muted: #667485;
  --soft: #f5f8f7;
  --panel: #ffffff;
  --line: #dce5e2;
  --green: #0f8a68;
  --green-dark: #075c49;
  --blue: #2764d8;
  --sun: #ffd166;
  --coral: #f36f56;
  --lilac: #efeaff;
  --shadow: 0 18px 50px rgba(23, 33, 43, 0.12);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, "Noto Sans KR", sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.68;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 68px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--green-dark);
}

.nav-cta {
  padding: 9px 14px;
  border-radius: 999px;
  color: #fff !important;
  background: var(--ink);
  font-weight: 800;
}

.hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8, 42, 37, 0.88), rgba(8, 42, 37, 0.58), rgba(8, 42, 37, 0.24)),
    url("/assets/photos/appliance-kitchen.jpg") center/cover;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 610px;
  padding: 88px 20px 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 46px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sun);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: 56px;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero p {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-card,
.search-panel {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.hero-card h2,
.search-panel h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.25;
}

.deal-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.deal-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.deal-item strong {
  color: var(--green-dark);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 20px;
}

.section.tight {
  padding-top: 28px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}

.section-title h2,
.page-title h1,
.article h1 {
  margin: 0;
  line-height: 1.2;
  font-size: 36px;
  letter-spacing: 0;
}

.section-title p,
.page-title p {
  margin: 8px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.article-card,
.product-card,
.admin-panel,
.info-band {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(23, 33, 43, 0.05);
}

.info-band {
  padding: 28px;
}

.info-band h2 {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.25;
}

.info-band p {
  margin: 8px 0 0;
  color: var(--muted);
}

.article-card,
.product-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.article-card:hover,
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card h3,
.article-card h2,
.article-card h3,
.product-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.34;
}

.meta,
.small {
  color: var(--muted);
  font-size: 14px;
}

.button,
button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
  cursor: pointer;
  color: #fff;
  background: var(--green);
}

.button.secondary,
button.secondary {
  color: var(--green-dark);
  background: #dff4ec;
}

.button.dark {
  background: var(--ink);
}

.cta-banner {
  margin: 26px 0;
  padding: 26px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(15, 138, 104, 0.94), rgba(39, 100, 216, 0.92)),
    url("/assets/photos/install-repair.jpg") center/cover;
  box-shadow: var(--shadow);
}

.cta-banner h2,
.cta-banner h3 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.25;
}

.cta-banner p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.9);
}

.cta-banner .button {
  color: var(--green-dark);
  background: #fff;
}

.chips,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.chip,
.tag {
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
  color: var(--green-dark);
  background: #e5f5ef;
}

.compare-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  text-align: left;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  vertical-align: top;
}

th {
  color: var(--green-dark);
  background: #eef8f4;
}

.page-title {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 20px 22px;
}

.breadcrumb {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.article {
  max-width: 860px;
  margin: 0 auto;
  padding: 46px 20px 76px;
}

.article h2 {
  margin-top: 36px;
  font-size: 26px;
}

.article h3 {
  margin: 24px 0 8px;
  font-size: 20px;
  line-height: 1.35;
}

.article li {
  margin: 8px 0;
}

.article-image {
  margin: 24px 0 30px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.article-image img,
.product-card img,
.article-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-image figcaption {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 13px;
}

.image-credit {
  display: block;
  margin-top: 4px;
  color: #8290a0;
  font-size: 12px;
}

.product-card .image-credit,
.article-card .image-credit {
  margin: -8px 0 14px;
  padding: 0 2px;
}

.evidence-box,
.decision-box {
  margin: 24px 0;
  padding: 18px;
  border: 1px solid #cfe6dc;
  border-radius: 8px;
  background: #f1fbf7;
}

.evidence-box h2,
.decision-box h2,
.evidence-box h3,
.decision-box h3 {
  margin-top: 0;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.mini-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mini-card h3 {
  margin-top: 0;
}

.notice {
  margin: 24px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--sun);
  background: #fff8e6;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px 16px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
}

.footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.input-row,
.admin-menu,
.deal-stack {
  display: grid;
  gap: 10px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.admin-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px 70px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
}

.admin-menu {
  align-content: start;
}

.admin-menu button {
  justify-content: flex-start;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.admin-menu button.active {
  color: #fff;
  background: var(--green);
}

.check-list {
  display: grid;
  gap: 12px;
}

.check-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.check-item input {
  width: 18px;
  min-height: 18px;
  margin-top: 4px;
}

.admin-body {
  background: #f7f8fb;
}

.admin-body.admin-authed .admin-login {
  display: none !important;
}

.admin-body.admin-authed .admin-app {
  display: block !important;
}

.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(440px, 100%);
  display: grid;
  gap: 16px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin: 8px 0 0;
  font-size: 30px;
}

.post-admin {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px 70px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.status-tabs,
.filter-buttons,
.bulk-actions,
.row-actions,
.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status-tabs button {
  min-width: 132px;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.status-tabs button.active {
  color: #fff;
  background: #111;
}

.admin-page-count {
  margin: 0;
  color: var(--muted);
}

.admin-filter-panel,
.admin-table-wrap,
.editor-panel {
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(180px, 0.9fr) minmax(160px, 0.8fr) auto minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.filter-grid label,
.schedule-row label,
.editor-grid label,
.login-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.schedule-row {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) minmax(120px, 1fr) minmax(120px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
}

.bulk-actions {
  margin-top: 14px;
}

.admin-table {
  min-width: 1120px;
}

.admin-table th {
  background: #f3f5f7;
  color: var(--muted);
}

.admin-table input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
}

.status-pill {
  display: inline-flex;
  justify-content: center;
  min-width: 72px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.status-pill.published {
  color: #075c49;
  background: #dff4ec;
}

.status-pill.scheduled {
  color: #8a5c00;
  background: #fff2c7;
}

.status-pill.draft {
  color: #4a5361;
  background: #e9edf2;
}

.row-actions button {
  min-height: 36px;
  padding: 7px 10px;
}

.empty-cell {
  padding: 40px;
  text-align: center;
  color: var(--muted);
}

.editor-shell {
  padding: 24px;
  background: #fff;
}

.editor-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.editor-head h2 {
  margin: 0;
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.body-editor {
  min-height: 420px;
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.65;
}

.wysiwyg-editor {
  min-height: 420px;
  padding: 18px;
  border: 1px solid #d1d8df;
  border-radius: 14px;
  background: #fbfcfd;
  overflow-y: auto;
  line-height: 1.75;
  color: #182026;
  font-family: 'Noto Sans KR', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.wysiwyg-editor:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(16, 124, 252, 0.12);
  border-color: rgba(16, 124, 252, 0.45);
}

.wysiwyg-editor:empty::before {
  content: attr(data-placeholder);
  color: #8a99a6;
}

.wysiwyg-editor img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
}

.wysiwyg-editor figure.editable-image {
  position: relative;
  margin: 0 0 18px;
}

.wysiwyg-editor figure.editable-image .remove-image-button {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  opacity: 0;
  border: none;
  outline: none;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border-radius: 999px;
  padding: 8px 10px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.wysiwyg-editor figure.editable-image:hover .remove-image-button {
  opacity: 1;
}

.editor-body-toolbar {
  display: flex;
  gap: 8px;
  padding: 10px 0 14px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.editor-body-toolbar button {
  padding: 8px 12px;
  font-size: 0.9em;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.editor-body-toolbar button:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.editor-body-toolbar .small {
  margin: 0;
  color: #64748b;
  margin-left: auto;
  font-style: italic;
}

.image-toolbox {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px dashed #cfd6df;
  border-radius: 8px;
  background: #f8fafc;
}

.editor-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.full {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 20px;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-inner,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 39px;
  }

  .grid,
  .grid.two,
  .grid.four,
  .mini-grid,
  .filter-grid,
  .schedule-row,
  .editor-grid,
  .image-toolbox,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-title,
  .footer-inner {
    align-items: flex-start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}
