/*
 * drain24 editorial layout (home + category + area)
 * .he-* : shared home + category + area editorial UI
 * .ae-* : area-specific extensions (see drain24-area-editorial.php)
 * .ce-* : category-specific extensions (see drain24-category-editorial.php)
 */

:root {
  --he-ink: #0F172A;
  --he-ink-2: #334155;
  --he-mute: #64748B;
  --he-bg: #FFFFFF;
  --he-surface: #F8FAFC;
  --he-surface-2: #F1F5F9;
  --he-border: #E2E8F0;
  --he-brand: #0B5FFF;
  --he-brand-2: #0847BF;
  --he-cta: #FF5A36;
  --he-cta-2: #E64A28;
  --he-gold: #B7501C;
  --he-teal: #0F766E;
  --he-radius: 16px;
  --he-radius-sm: 10px;
  --he-shadow: 0 4px 24px rgba(15, 23, 42, .06);
  --he-shadow-hover: 0 10px 32px rgba(15, 23, 42, .10);
}
/* .site-content > * { max-width: none } 리셋에 대응. article 은 풀폭. */
.site-content > .he-article,
.he-main { display: block !important; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.he-article { margin: 0 !important; padding: 0 !important; max-width: none !important; }
.he-article > .he-hero,
.he-article > .he-trust,
.he-article > .he-section,
.he-article > .he-ctaband { display: block !important; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; box-sizing: border-box; }

/* ===== HERO ===== */
.he-article > .he-hero { padding: 32px 0 40px !important; background: var(--he-bg); }
.he-hero .he-hero__inner {
  max-width: 1200px !important; margin: 0 auto !important; padding: 0 20px !important;
  display: grid !important; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) !important;
  gap: 40px !important; align-items: center !important;
  box-sizing: border-box;
}
.he-hero .he-hero__body { min-width: 0 !important; }
.he-hero .he-hero__visual { min-width: 0 !important; max-width: 100% !important; }
.he-hero__eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--he-brand);
  background: #E8F0FF; padding: 6px 12px; border-radius: 999px; margin: 0 0 16px;
  letter-spacing: -.02em;
}
.he-hero__title {
  font-size: clamp(28px, 3.6vw, 44px); line-height: 1.28; letter-spacing: -.035em;
  color: var(--he-ink); margin: 0 0 20px; font-weight: 700;
}
.he-hero__title-em { color: var(--he-brand); }
.he-hero__desc {
  font-size: 16px; line-height: 1.75; color: var(--he-ink-2); margin: 0 0 28px;
  max-width: 560px; letter-spacing: -.01em;
}
.he-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.he-hero__visual {
  aspect-ratio: 4 / 3; border-radius: var(--he-radius); overflow: hidden;
  background-color: #E2E8F0;
  background-size: cover; background-position: center;
  box-shadow: var(--he-shadow);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.he-hero__visual:not([style*="background-image"]) {
  background: linear-gradient(135deg, #DBEAFE 0%, #E0E7FF 45%, #F1F5F9 100%);
}
.he-hero__visual-fallback svg { width: 60%; opacity: .35; color: var(--he-brand); }
@media (max-width: 767px) {
  .he-hero .he-hero__inner { grid-template-columns: 1fr !important; gap: 24px !important; }
  .he-hero .he-hero__visual { order: -1 !important; aspect-ratio: 16 / 10 !important; }
}

/* ===== CTA BUTTONS (공용) ===== */
.he-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 12px;
  font-size: 16px; font-weight: 700; letter-spacing: -.02em;
  text-decoration: none; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  border: 0;
}
.he-cta__icon { font-size: 18px; }
.he-cta--primary,
.he-cta--primary:link,
.he-cta--primary:visited,
.he-cta--primary:hover,
.he-cta--primary:active {
  background: var(--he-cta); color: #fff !important; text-decoration: none !important;
  box-shadow: 0 8px 22px rgba(255, 90, 54, .28), 0 2px 4px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.18);
  font-weight: 800;
}
.he-cta--primary:hover {
  background: var(--he-cta-2); transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 90, 54, .38), 0 3px 6px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.22);
}
.he-cta--secondary,
.he-cta--secondary:link,
.he-cta--secondary:visited {
  background: var(--he-surface-2); color: var(--he-ink) !important; text-decoration: none !important;
}
.he-cta--secondary:hover { background: #E2E8F0; color: var(--he-ink) !important; }
.he-cta--outline,
.he-cta--outline:link,
.he-cta--outline:visited,
.he-cta--outline:hover,
.he-cta--outline:active {
  background: rgba(255,255,255,.06); color: #fff !important; text-decoration: none !important;
  border: 2px solid rgba(255,255,255,.90);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.he-cta--outline:hover {
  background: rgba(255,255,255,.16); border-color: #fff; transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.he-cta--lg { min-height: 64px; padding: 0 36px; font-size: 17px; letter-spacing: -.01em; }
.he-cta__icon { display: inline-flex; align-items: center; justify-content: center; }
.he-cta__icon svg { width: 18px; height: 18px; }

/* ===== TRUST STRIP ===== */
.he-article > .he-trust { background: var(--he-surface) !important; border-top: 1px solid var(--he-border); border-bottom: 1px solid var(--he-border); padding: 20px 0 !important; }
.he-trust .he-trust__grid {
  max-width: 1200px !important; margin: 0 auto !important; padding: 0 20px !important;
  display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 20px !important;
  list-style: none !important;
  box-sizing: border-box;
}
.he-trust__grid li {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
}
.he-trust__grid strong { font-size: 22px; color: var(--he-brand); font-weight: 700; letter-spacing: -.03em; }
.he-trust__grid span { font-size: 13px; color: var(--he-mute); font-weight: 500; }
@media (max-width: 640px) { .he-trust .he-trust__grid { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; } }

/* ===== SECTION 공통 ===== */
.he-article > .he-section { max-width: 1200px !important; margin: 64px auto !important; padding: 0 20px !important; box-sizing: border-box; }
.he-section__head { text-align: center; max-width: 720px; margin: 0 auto 32px; }
.he-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--he-brand);
  letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px;
}
.he-section__title {
  font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; letter-spacing: -.028em;
  color: var(--he-ink); margin: 0 0 12px; font-weight: 700;
}
.he-section__desc { font-size: 15px; line-height: 1.7; color: var(--he-mute); margin: 0; }

/* ===== 문제 4카드 ===== */
.he-problems { background: transparent; }
.he-problems .he-problems__grid {
  display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 20px !important;
}
.he-problem-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--he-border);
  border-radius: var(--he-radius); overflow: hidden; text-decoration: none;
  color: inherit; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.he-problem-card:hover { transform: translateY(-3px); box-shadow: var(--he-shadow-hover); border-color: var(--he-brand); }
.he-problem-card__visual {
  aspect-ratio: 1 / 1; background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  color: var(--he-brand);
}
.he-problem-card__visual:not([style*="background-image"]) {
  background: linear-gradient(135deg, #F1F5F9 0%, #E0E7FF 100%);
}
.he-problem-card__visual--smell:not([style*="background-image"])      { background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%); color: #92400E; }
.he-problem-card__visual--backflow:not([style*="background-image"])   { background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%); color: #1D4ED8; }
.he-problem-card__visual--slow:not([style*="background-image"])       { background: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 100%); color: #0369A1; }
.he-problem-card__visual--recurrence:not([style*="background-image"]) { background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%); color: #B91C1C; }
.he-problem-card__icon { width: 46%; max-width: 96px; }
.he-problem-card__icon svg { width: 100%; height: auto; }
.he-problem-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.he-problem-card__title { font-size: 17px; letter-spacing: -.028em; color: var(--he-ink); margin: 0; font-weight: 700; }
.he-problem-card__desc { font-size: 14px; line-height: 1.65; color: var(--he-mute); margin: 0; }
.he-problem-card__more { font-size: 13px; color: var(--he-brand); font-weight: 600; margin-top: 4px; }
@media (max-width: 900px) { .he-problems .he-problems__grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 480px) { .he-problems .he-problems__grid { grid-template-columns: 1fr !important; } }

/* ===== 후기 3장 ===== */
.he-reviews { background: transparent; }
.he-reviews__band {
  position: relative; overflow: hidden;
  border-radius: var(--he-radius); background-color: #FFF8EC;
  background-size: cover; background-position: center;
  padding: 40px 24px; text-align: center; margin-bottom: 28px;
  border: 1px solid #F3E4C4;
}
.he-reviews__band[style*="background-image"]::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 90% at center,
    rgba(255,248,236,.92) 0%,
    rgba(255,248,236,.72) 40%,
    rgba(255,248,236,.28) 80%,
    rgba(255,248,236,.10) 100%);
}
.he-reviews__band:not([style*="background-image"]) {
  background: linear-gradient(90deg, #FFF8EC 0%, #FDF4E3 50%, #FFF8EC 100%);
}
.he-reviews__head { position: relative; z-index: 1; }
.he-reviews__head .he-eyebrow { color: var(--he-gold); }
.he-reviews__head .he-section__title { color: var(--he-ink); }
.he-reviews__head .he-section__desc { color: #6B5433; }
.he-reviews .he-reviews__grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 20px !important; }
.he-review-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--he-border);
  border-radius: var(--he-radius); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.he-review-card:hover { transform: translateY(-3px); box-shadow: var(--he-shadow-hover); border-color: var(--he-gold); }
.he-review-card__thumb { position: relative; aspect-ratio: 1 / 1; background: #0F172A; overflow: hidden; }
.he-review-card__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.he-review-card__badge {
  position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.94);
  color: var(--he-gold); font-size: 11px; font-weight: 700; letter-spacing: .06em;
  padding: 4px 10px; border-radius: 999px; text-transform: uppercase;
}
.he-review-card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.he-review-card__stars { color: #FFC107; font-size: 14px; letter-spacing: 1px; }
.he-review-card__title { font-size: 16px; letter-spacing: -.025em; color: var(--he-ink); margin: 0; font-weight: 700; line-height: 1.4; }
.he-review-card__desc { font-size: 13.5px; line-height: 1.65; color: var(--he-mute); margin: 0; }
@media (max-width: 900px) { .he-reviews .he-reviews__grid { grid-template-columns: 1fr !important; } }

/* ===== 프로세스 4스텝 ===== */
.he-process .he-process__grid {
  list-style: none !important; padding: 0 !important; margin: 0 !important;
  display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 20px !important;
}
.he-process-card {
  background: #fff; border: 1px solid var(--he-border); border-radius: var(--he-radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.he-process-card__visual {
  aspect-ratio: 1 / 1; background-color: #FFFFFF;
  background-size: contain; background-position: center; background-repeat: no-repeat;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.he-process-card__visual:not([style*="background-image"]) {
  background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
}
.he-process-card__num {
  font-size: 56px; font-weight: 700; color: rgba(11, 95, 255, .18); letter-spacing: -.05em;
  line-height: 1; font-variant-numeric: tabular-nums;
}
.he-process-card__visual[style*="background-image"] .he-process-card__num {
  position: absolute; top: 12px; left: 14px; bottom: auto; right: auto;
  color: #2563EB; background: rgba(37, 99, 235, .10);
  font-size: 14px; font-weight: 700; letter-spacing: 0;
  padding: 4px 12px; border-radius: 999px; text-shadow: none;
}
.he-process-card__body { padding: 18px 20px 22px; }
.he-process-card__title { font-size: 16px; letter-spacing: -.025em; color: var(--he-ink); margin: 0 0 6px; font-weight: 700; }
.he-process-card__desc { font-size: 14px; line-height: 1.65; color: var(--he-mute); margin: 0; }
@media (max-width: 900px) { .he-process .he-process__grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 480px) { .he-process .he-process__grid { grid-template-columns: 1fr !important; } }

/* ===== 매거진 그리드 ===== */
.he-magazines .he-mag__grid {
  display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 20px !important;
}
.he-mag-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--he-border);
  border-radius: var(--he-radius); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.he-mag-card:hover { transform: translateY(-3px); box-shadow: var(--he-shadow-hover); }
.he-mag-card__thumb { position: relative; aspect-ratio: 1 / 1; background: var(--he-surface); overflow: hidden; }
.he-mag-card__thumb img { width: 100%; height: 100%; object-fit: contain; background: #0F172A; display: block; transition: transform .3s ease; }
.he-mag-card:hover .he-mag-card__thumb img { transform: none; }
.he-mag-card__badge {
  position: absolute; top: 12px; left: 12px; background: rgba(15, 23, 42, .82); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px;
}
.he-mag-card__badge--issue  { background: #B7501C; }
.he-mag-card__badge--case   { background: #0B5FFF; }
.he-mag-card__badge--tips   { background: #0F766E; }
.he-mag-card__badge--review { background: #B7501C; }
.he-mag-card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.he-mag-card__title { font-size: 15.5px; letter-spacing: -.025em; color: var(--he-ink); margin: 0; font-weight: 600; line-height: 1.45; }
.he-mag-card__desc { font-size: 13px; line-height: 1.6; color: var(--he-mute); margin: 0; }
.he-mag__more { text-align: center; margin-top: 28px; }
.he-linkbtn {
  display: inline-flex; align-items: center; gap: 6px; padding: 12px 24px;
  border: 1.5px solid var(--he-border); border-radius: 999px; color: var(--he-ink);
  font-size: 14.5px; font-weight: 600; text-decoration: none; transition: all .15s ease;
}
.he-linkbtn:hover { border-color: var(--he-brand); color: var(--he-brand); }
@media (max-width: 900px) { .he-magazines .he-mag__grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 480px) { .he-magazines .he-mag__grid { grid-template-columns: 1fr !important; } }

/* ===== 서비스 8종 ===== */
.he-services .he-svc__grid {
  display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 16px !important;
}
.he-svc-card {
  background: #fff; border: 1px solid var(--he-border);
  border-radius: var(--he-radius-sm); text-decoration: none; color: inherit;
  transition: all .15s ease; display: flex; flex-direction: column; overflow: hidden;
}
.he-svc-card:hover { border-color: var(--he-brand); transform: translateY(-2px); box-shadow: var(--he-shadow); }
.he-svc-card__visual {
  aspect-ratio: 1 / 1; background-color: var(--he-surface-2);
  background-size: contain; background-position: center; background-repeat: no-repeat;
}
.he-svc-card__visual:not([style*="background-image"]) {
  background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
}
.he-svc-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.he-svc-card__title { font-size: 16px; letter-spacing: -.025em; color: var(--he-ink); margin: 0; font-weight: 700; }
.he-svc-card__desc { font-size: 13.5px; line-height: 1.6; color: var(--he-mute); margin: 0; }
.he-svc-card__more { font-size: 13px; color: var(--he-brand); font-weight: 600; margin-top: 4px; }
@media (max-width: 900px) { .he-services .he-svc__grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 480px) { .he-services .he-svc__grid { grid-template-columns: 1fr !important; } }

/* ===== 시도 그리드 ===== */
.he-areas .he-area__grid {
  display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 16px !important;
  list-style: none !important; padding: 0 !important; margin: 0 !important;
}
.he-area-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--he-border); border-radius: var(--he-radius-sm);
  text-decoration: none; color: inherit; transition: all .15s ease;
}
.he-area-card:hover { border-color: var(--he-brand); transform: translateY(-2px); box-shadow: var(--he-shadow); }
.he-area-card__visual {
  aspect-ratio: 1 / 1; background-color: var(--he-surface-2);
  background-size: cover; background-position: center;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.he-area-card__visual:not([style*="background-image"]) {
  background: linear-gradient(135deg, #F0F7FF 0%, #E0EFFF 60%, #DBEAFE 100%);
}
.he-area-card__ph {
  font-size: 20px; font-weight: 700; letter-spacing: -.03em;
  color: #0B5FFF; opacity: .55;
}
.he-area-card__body {
  padding: 12px 10px 14px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-align: center;
}
.he-area-card__body strong { font-size: 15px; font-weight: 700; letter-spacing: -.02em; color: var(--he-ink); }
.he-area-card__body span { font-size: 11.5px; color: var(--he-mute); }
@media (max-width: 900px) { .he-areas .he-area__grid { grid-template-columns: repeat(4, 1fr) !important; } }
@media (max-width: 480px) { .he-areas .he-area__grid { grid-template-columns: repeat(3, 1fr) !important; gap: 10px !important; } }

/* ===== CTA 밴드 ===== */
.he-article > .he-ctaband {
  margin: 64px 0 0 !important;
  background: #0F172A;
  background-size: cover; background-position: center;
  color: #fff !important; padding: 72px 20px !important; text-align: center !important;
  position: relative;
  min-height: clamp(360px, 42vw, 620px);
  display: flex !important; align-items: center; justify-content: center;
}
.he-ctaband:not([style*="background-image"]) {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 60%, #0B5FFF 200%);
}
.he-ctaband::before {
  content: ""; position: absolute; inset: 0; background: rgba(15, 23, 42, .55);
  pointer-events: none;
}
.he-ctaband[style*="background-image"]::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(15,23,42,.55) 0%, rgba(15,23,42,.78) 40%, rgba(15,23,42,.78) 60%, rgba(15,23,42,.55) 100%);
}
.he-ctaband__inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.he-ctaband__eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.85) !important; margin: 0 0 14px; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.he-ctaband__title { font-size: clamp(22px, 3vw, 32px); letter-spacing: -.03em; color: #fff !important; margin: 0 0 14px; font-weight: 700; line-height: 1.35; text-shadow: 0 2px 12px rgba(0,0,0,.55); }
.he-ctaband__desc { font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.92) !important; margin: 0 0 28px; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.he-ctaband__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ===== 기존 부모테마 heading gradient 제거 (편집자 톤 유지) ===== */
.entry-content .he-section h2::before,
.entry-content .he-section h2::after,
.entry-content .he-hero h1::before,
.entry-content .he-hero h1::after,
.entry-content .he-ctaband h2::before,
.entry-content .he-ctaband h2::after { display: none !important; content: none !important; }

/* ==========================================================================
   CATEGORY-EDITORIAL (.ce-*) — 서비스/대분류 카테고리 페이지 확장
   ========================================================================== */

/* 매거진 강조 카드 (대분류 hub 레이아웃) */
.ce-mag-hero__grid {
  display: grid !important;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) !important;
  gap: 20px !important;
  margin-bottom: 24px;
}
.ce-mag-hero__grid > .he-mag-card:first-child .he-mag-card__thumb { aspect-ratio: 1 / 1; }
.ce-mag-hero__grid > .he-mag-card:first-child .he-mag-card__title { font-size: 20px; line-height: 1.35; font-weight: 700; }
.ce-mag-hero__side { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) {
  .ce-mag-hero__grid { grid-template-columns: 1fr !important; }
  .ce-mag-hero__side { grid-template-rows: auto; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .ce-mag-hero__side { grid-template-columns: 1fr; }
}

/* 서비스 특징 카드 (landing 레이아웃) */
.ce-features .ce-feat__grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px !important;
}
.ce-feat-card {
  background: #fff; border: 1px solid var(--he-border);
  border-radius: var(--he-radius); padding: 24px 20px 22px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ce-feat-card:hover { transform: translateY(-3px); box-shadow: var(--he-shadow-hover); border-color: var(--ce-accent, var(--he-brand)); }
.ce-feat-card__icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: color-mix(in srgb, var(--ce-accent, var(--he-brand)) 12%, #fff);
  color: var(--ce-accent, var(--he-brand));
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.ce-feat-card__icon svg { width: 22px; height: 22px; }
.ce-feat-card__title { font-size: 16px; letter-spacing: -.025em; color: var(--he-ink); margin: 0; font-weight: 700; }
.ce-feat-card__desc { font-size: 14px; line-height: 1.65; color: var(--he-mute); margin: 0; }
@media (max-width: 900px) { .ce-feat__grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 480px) { .ce-feat__grid { grid-template-columns: 1fr !important; } }

/* FAQ 아코디언 */
.ce-faq__list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.ce-faq__item {
  border: 1px solid var(--he-border); border-radius: var(--he-radius-sm);
  background: #fff; overflow: hidden; transition: border-color .15s ease;
}
.ce-faq__item[open] { border-color: var(--ce-accent, var(--he-brand)); }
.ce-faq__item > summary {
  list-style: none; cursor: pointer;
  padding: 18px 22px; font-size: 16px; font-weight: 600; color: var(--he-ink); letter-spacing: -.02em;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.ce-faq__item > summary::-webkit-details-marker { display: none; }
.ce-faq__item > summary::after {
  content: "＋"; font-size: 22px; color: var(--he-mute); font-weight: 400;
  transition: transform .2s ease;
}
.ce-faq__item[open] > summary::after { content: "－"; color: var(--ce-accent, var(--he-brand)); }
.ce-faq__item > .ce-faq__answer {
  padding: 0 22px 20px; font-size: 14.5px; line-height: 1.75; color: var(--he-ink-2);
}

/* 히어로에 accent 컬러 오버라이드 */
.he-hero--accent .he-hero__eyebrow {
  background: color-mix(in srgb, var(--ce-accent, var(--he-brand)) 12%, #fff);
  color: var(--ce-accent, var(--he-brand));
}
.he-hero--accent .he-hero__title-em { color: var(--ce-accent, var(--he-brand)); }

/* ==========================================================================
   AREA-EDITORIAL (.ae-*) — 시도/시군구 지역 페이지 확장
   ========================================================================== */

/* 부모 single-area_service.php 의 기본 히어로 · narrow container 우회 */
body.dd-editorial-area .site-content > .hero,
body.dd-editorial-area .site-content > article > .hero,
body.dd-editorial-area .site-content > article > .entry-header { display: none !important; }
/* section wrapper 를 full-bleed 로 확장해 .he-article 가 정상 렌더 */
body.dd-editorial-area .site-content > .section {
  padding: 0 !important; margin: 0 !important;
  max-width: none !important; width: 100% !important;
}
body.dd-editorial-area .site-content > .section > .container,
body.dd-editorial-area .site-content > .section > .container--narrow {
  max-width: none !important; padding: 0 !important; margin: 0 !important; width: 100% !important;
}
body.dd-editorial-area .site-content > .section > .container > .page-content {
  max-width: none !important; padding: 0 !important; margin: 0 !important; width: 100% !important;
}
/* 부모의 "인근 서비스 지역" 섹션도 편집자 지역 페이지에서는 숨김 (편집자 renderer 가 자체 nearby 렌더) */
body.dd-editorial-area .site-content > .section--alt { display: none !important; }
/* 부모 dd_cta_block() 은 편집자 CTA 밴드와 중복이므로 숨김 */
body.dd-editorial-area .site-content > .section:last-of-type { display: none !important; }

/* 지역 파라랭스 히어로 */
.ae-hero {
  position: relative; overflow: hidden;
  min-height: clamp(320px, 40vw, 520px);
  display: flex; align-items: center;
  background-color: var(--ae-accent, #1E40AF);
  background-size: cover; background-position: center;
  color: #fff;
}
.ae-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--ae-accent, #1E40AF) 80%, transparent) 0%,
    rgba(15, 23, 42, .72) 70%);
}
.ae-hero__inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; padding: 60px 20px;
  width: 100%; box-sizing: border-box;
}
.ae-hero__eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: #fff !important; font-weight: 700; margin: 0 0 14px !important;
  padding: 6px 14px; background: rgba(255, 255, 255, .18); border-radius: 999px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.ae-hero__title {
  font-size: clamp(28px, 3.8vw, 48px) !important; line-height: 1.24 !important; letter-spacing: -.035em;
  color: #fff !important; margin: 0 0 18px !important; font-weight: 700 !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}
.ae-hero__title-em { color: #FCD34D !important; font-weight: 700; }
.ae-hero__desc {
  font-size: 16px !important; line-height: 1.75 !important;
  color: #fff !important; opacity: .96;
  margin: 0 0 26px !important;
  max-width: 620px; text-shadow: 0 1px 10px rgba(0, 0, 0, .5);
}
.ae-hero__stats {
  list-style: none !important; padding: 0 !important; margin: 0 0 28px !important;
  display: flex !important; flex-wrap: wrap; gap: 32px;
}
.ae-hero__stats li { display: flex; flex-direction: column; gap: 4px; }
.ae-hero__stats strong {
  font-size: 32px !important; color: #fff !important; font-weight: 700 !important;
  letter-spacing: -.035em; font-variant-numeric: tabular-nums; line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}
.ae-hero__stats span {
  font-size: 13px !important; color: #fff !important; opacity: .88;
  font-weight: 500 !important;
}
.ae-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 640px) {
  .ae-hero__stats { gap: 20px; }
  .ae-hero__stats strong { font-size: 26px; }
}

/* 시군구 그리드 (시도 페이지) */
.ae-sigungu__grid {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 10px !important;
  list-style: none !important; padding: 0 !important; margin: 0 !important;
}
.ae-sigungu__grid li { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.ae-sigungu__grid li::marker { content: '' !important; }
.ae-sigungu__grid li a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 18px 8px; background: #fff; border: 1px solid var(--he-border);
  border-radius: var(--he-radius-sm); text-decoration: none; color: var(--he-ink);
  transition: all .15s ease; min-height: 72px; text-align: center;
}
.ae-sigungu__grid li a:hover {
  border-color: var(--ae-accent, var(--he-brand));
  color: var(--ae-accent, var(--he-brand));
  transform: translateY(-2px);
  box-shadow: var(--he-shadow);
}
.ae-sigungu__grid strong { font-size: 14.5px; font-weight: 700; letter-spacing: -.02em; }
.ae-sigungu__grid small { font-size: 11px; color: var(--he-mute); font-weight: 500; }
@media (max-width: 900px) { .ae-sigungu__grid { grid-template-columns: repeat(4, 1fr) !important; } }
@media (max-width: 480px) { .ae-sigungu__grid { grid-template-columns: repeat(3, 1fr) !important; } }

/* 원본 지역 콘텐츠(흡수 섹션) 타이포 */
.ae-context__inner { max-width: 860px; margin: 0 auto; }
.ae-context__inner h2 {
  font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -.028em;
  color: var(--he-ink); margin: 32px 0 12px; font-weight: 700;
}
.ae-context__inner h3 {
  font-size: 18px; letter-spacing: -.024em;
  color: var(--he-ink); margin: 24px 0 10px; font-weight: 700;
}
.ae-context__inner p {
  font-size: 15.5px; line-height: 1.85; color: var(--he-ink-2); margin: 0 0 14px;
  letter-spacing: -.005em;
}
.ae-context__inner ul, .ae-context__inner ol { padding-left: 20px; margin: 0 0 14px; }
.ae-context__inner li { font-size: 15.5px; line-height: 1.8; color: var(--he-ink-2); margin: 0 0 6px; }
.ae-context__inner a { color: var(--he-brand); text-decoration: underline; text-underline-offset: 2px; }

/* 인근 시군구 (시군구 페이지 하단) */
.ae-nearby__grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  list-style: none !important; padding: 0 !important; margin: 0 !important;
}
.ae-nearby__grid li { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.ae-nearby__grid li::marker { content: '' !important; }
.ae-nearby__grid li a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 14px 16px; background: #fff; border: 1px solid var(--he-border);
  border-radius: var(--he-radius-sm); text-decoration: none; color: var(--he-ink);
  transition: all .15s ease;
}
.ae-nearby__grid li a:hover {
  border-color: var(--ae-accent, var(--he-brand));
  transform: translateY(-2px);
  box-shadow: var(--he-shadow);
}
.ae-nearby__grid strong { font-size: 14.5px; font-weight: 600; letter-spacing: -.02em; }
.ae-nearby__grid span { font-size: 12px; color: var(--ae-accent, var(--he-brand)); }
@media (max-width: 900px) { .ae-nearby__grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 480px) { .ae-nearby__grid { grid-template-columns: 1fr !important; } }

/* editorial 그리드 공통 - 브라우저 list marker 방어 (.site-content li::marker 상속 차단) */
.he-trust__grid li,
.he-process__grid li,
.he-area__grid li,
.ae-hero__stats li { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.he-trust__grid li::marker,
.he-process__grid li::marker,
.he-area__grid li::marker,
.ae-hero__stats li::marker { content: '' !important; }
