/* 천왕역 모아엘가 트레뷰(11차) — official brochure-inspired project skin. */
.apt44-cmt-active {
  --dwbz-navy: #4f376f;
  --dwbz-navy-deep: #211b2d;
  --dwbz-ink: #292532;
  --dwbz-muted: #6c6674;
  --dwbz-champagne: #a98665;
  --dwbz-champagne-light: #ead8c6;
  --dwbz-ivory: #f5f2ed;
  --dwbz-paper: #fffdf9;
  --dwbz-line: rgba(79, 55, 111, .16);
  --dwbz-shadow: 0 30px 82px rgba(33, 27, 45, .16);
}

.apt44-cmt-active .dwbz-header {
  background: rgba(28, 23, 39, .92);
  backdrop-filter: blur(16px);
}
.apt44-cmt-active .dwbz-header.is-scrolled { background: rgba(28, 23, 39, .985); }
.apt44-cmt-active .dwbz-header,
.apt44-cmt-active .dwbz-footer { border-color: rgba(234, 216, 198, .16); }
.apt44-cmt-active .dwbz-footer { background: #17131f; }
.apt44-cmt-active .dwbz-brand { min-width: 250px; }
.apt44-cmt-active .dwbz-brand__mark {
  width: 46px;
  height: 34px;
  color: #fff;
  background: linear-gradient(135deg, #81589a, #be6d87);
  border-radius: 10px 2px 10px 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  box-shadow: 0 8px 22px rgba(190, 109, 135, .25);
}
.apt44-cmt-active .dwbz-brand__name strong { font-size: 15px; letter-spacing: .18em; }
.apt44-cmt-active .dwbz-brand__name small { color: rgba(255,255,255,.66); letter-spacing: .14em; }
.apt44-cmt-active .dwbz-nav { gap: clamp(5px, .62vw, 12px); }
.apt44-cmt-active .dwbz-nav > a { font-size: 11.5px; }
.apt44-cmt-active .dwbz-nav__call {
  min-width: 132px;
  background: linear-gradient(135deg, #7255a5, #9e5d82);
  border-color: rgba(255,255,255,.2);
}

.apt44-cmt-active .dwbz-hero { min-height: min(810px, calc(100svh - 76px)); }
.apt44-cmt-active .dwbz-hero::before {
  background:
    linear-gradient(90deg, rgba(23, 19, 31, .92) 0%, rgba(33, 27, 45, .62) 42%, rgba(33, 27, 45, .08) 76%),
    linear-gradient(0deg, rgba(23, 19, 31, .82) 0%, transparent 58%);
}
.apt44-cmt-active .dwbz-hero__media img { object-position: 52% 50%; }
.apt44-cmt-active .dwbz-hero h1 {
  max-width: 1020px;
  font-family: "Noto Serif KR", Georgia, serif;
  font-size: clamp(42px, 5.7vw, 78px);
  font-weight: 500;
  letter-spacing: -.065em;
}
.apt44-cmt-active .dwbz-kicker { color: #ead8c6; }
.apt44-cmt-active .dwbz-image-credit { max-width: 740px; }
.apt44-cmt-active .dwbz-section > h2,
.apt44-cmt-active .dwbz-section > .wp-block-heading,
.apt44-cmt-active .dwbz-section__inner > h2:first-of-type {
  font-family: "Noto Serif KR", Georgia, serif;
  font-weight: 500;
  letter-spacing: -.05em;
}
.apt44-cmt-active .dwbz-section--dark { color: rgba(255,255,255,.8); background: #211b2d; }
.apt44-cmt-active .dwbz-section--dark h2,
.apt44-cmt-active .dwbz-section--dark h3,
.apt44-cmt-active .dwbz-section--dark h4 { color: #fff; }
.apt44-cmt-active .dwbz-section--dark .dwbz-section-lead { color: rgba(255,255,255,.72); }

.cmt-actions { margin-top: 28px; gap: 10px; }
.cmt-actions .wp-block-button__link {
  min-height: 50px;
  padding: 13px 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #4f376f;
  border: 1px solid #4f376f;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}
.cmt-actions .is-style-outline .wp-block-button__link { color: #4f376f; background: transparent; }
.dwbz-section--dark .cmt-actions .is-style-outline .wp-block-button__link,
.dwbz-hero .cmt-actions .is-style-outline .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.62); }
.cmt-actions .wp-block-button__link:hover,
.cmt-actions .wp-block-button__link:focus-visible {
  transform: translateY(-2px);
  color: #211b2d;
  background: #ead8c6;
  border-color: #ead8c6;
}

.cmt-anchor { position: relative; top: -92px; display: block; visibility: hidden; }
.cmt-toc-section { padding-top: 38px; padding-bottom: 38px; background: #fff; border-bottom: 1px solid var(--dwbz-line); }
.cmt-toc { width: min(1180px,100%); margin: 0 auto; }
.cmt-toc strong { display: block; margin-bottom: 14px; color: #4f376f; font-size: 12px; letter-spacing: .16em; }
.cmt-toc ol {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 8px 20px;
  list-style: none;
  counter-reset: cmt-toc;
}
.cmt-toc li { counter-increment: cmt-toc; }
.cmt-toc a {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #4f376f;
  border-bottom: 1px solid var(--dwbz-line);
  text-decoration: none;
}
.cmt-toc a::before { content: "0" counter(cmt-toc); color: #a98665; font-size: 11px; }

.cmt-overview-columns,
.cmt-map-columns { margin-top: 42px; gap: clamp(28px,5vw,70px); align-items: center; }
.cmt-overview-columns > .wp-block-column,
.cmt-map-columns > .wp-block-column { min-width: 0; }
.cmt-overview-columns figure,
.cmt-map-columns figure { margin: 0; }
.cmt-overview-columns figure img { width: 100%; box-shadow: var(--dwbz-shadow); }
.cmt-map-columns figure { padding: 14px; background: #fff; border: 1px solid var(--dwbz-line); }
.apt44-cmt-active .wp-element-caption { margin-top: 11px; color: var(--dwbz-muted); font-size: 12px; line-height: 1.55; }

.cmt-gallery {
  margin-top: 42px;
  display: block;
}
.cmt-gallery > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px;
}
.cmt-gallery > figure,
.cmt-gallery > .wp-block-group__inner-container > figure {
  min-width: 0;
  margin: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--dwbz-line);
}
.cmt-gallery img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.cmt-floorplans > .wp-block-group__inner-container { grid-template-columns: repeat(2,minmax(0,1fr)); }
.cmt-floorplans img { aspect-ratio: auto; object-fit: contain; background: #fff; }
.dwbz-section--dark .cmt-gallery > figure,
.dwbz-section--dark .cmt-gallery > .wp-block-group__inner-container > figure { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.15); }
.dwbz-section--dark .wp-element-caption { color: rgba(255,255,255,.66); }

.cmt-info-grid { margin-top: 42px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.cmt-info-card { min-height: 205px; padding: 30px; background: #fff; border: 1px solid var(--dwbz-line); }
.cmt-info-card small { color: #7b5b94; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.cmt-info-card h3 { margin: 15px 0 9px; font-size: clamp(21px,2.2vw,28px); }
.cmt-info-card p { margin: 0; color: var(--dwbz-muted); }

.cmt-check-list { margin: 28px 0 0; padding: 0; list-style: none; }
.cmt-check-list li { position: relative; padding: 14px 8px 14px 29px; border-bottom: 1px solid var(--dwbz-line); line-height: 1.7; }
.cmt-check-list li::before { content: ""; position: absolute; top: 24px; left: 5px; width: 7px; height: 7px; background: #a98665; transform: rotate(45deg); }
.dwbz-section--dark .cmt-check-list li { border-color: rgba(255,255,255,.16); }

.cmt-source-list { margin-top: 36px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.cmt-source-list article { min-height: 190px; padding: 28px; background: #fff; border: 1px solid var(--dwbz-line); }
.cmt-source-list small { color: #7b5b94; font-weight: 700; letter-spacing: .13em; }
.cmt-source-list h3 { margin: 13px 0 8px; }
.cmt-source-list p { color: var(--dwbz-muted); }
.cmt-source-list a { color: #4f376f; font-weight: 700; }

.cmt-answer { padding: 22px 24px; color: #3c2c50; background: #fff; border-left: 3px solid #a98665; box-shadow: 0 16px 42px rgba(33,27,45,.08); }
.cmt-blog-intro { padding-bottom: 54px; }
.cmt-blog-intro .cmt-toc { margin-top: 32px; }
.cmt-experience { margin-top: 28px; padding: 18px 20px; color: #fff5eb; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.cmt-hashtags { margin-top: 24px; color: #6f4c8b; font-weight: 700; word-spacing: .45em; }
.cmt-cta { text-align: center; background: linear-gradient(135deg,#f5f2ed 0%,#fff 100%); }
.cmt-cta .dwbz-section-lead { margin-right: auto; margin-left: auto; }
.cmt-cta .cmt-actions { justify-content: center; }
.cmt-notice { margin-top: 28px; padding: 20px 22px; color: #554a5e; background: #fbf8f4; border: 1px solid rgba(169,134,101,.36); }
.cmt-official-visual { margin-top: 40px; padding: 14px; background: #fff; border: 1px solid var(--dwbz-line); }
.cmt-official-visual img { width: 100%; }
.cmt-official-visual > .wp-block-group__inner-container { grid-template-columns: 1fr; }
.cmt-official-visual > .wp-block-group__inner-container > figure { width: min(740px,100%); margin-inline: auto; }
.apt44-cmt-active .dwbz-table-hint { color: #6f4c8b; }
.apt44-cmt-active .dwbz-table-scroll { scroll-margin-bottom: 92px; }
.apt44-cmt-active .dwbz-footer { padding-bottom: 132px; }

.apt44-cmt-active .dwbz-footer-menu a {
  padding: 6px 10px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.08);
  animation: cmt-footer-nudge 8s ease-in-out infinite;
}
.apt44-cmt-active .dwbz-footer-menu a:nth-child(2n) { animation-delay: 1.2s; }
.apt44-cmt-active .dwbz-floating-call {
  right: 18px;
  bottom: max(16px,env(safe-area-inset-bottom));
  left: auto;
  width: auto;
  min-width: 178px;
  background: linear-gradient(135deg,#4f376f,#7c4f77);
  border-color: #d8bba3;
}

@media (max-width:1320px) {
  .apt44-cmt-active .dwbz-header__inner { width: min(100% - 28px,1120px); }
  .apt44-cmt-active .dwbz-menu-toggle {
    margin-left: auto;
    width: 62px;
    min-height: 48px;
    padding: 6px 8px;
    display: grid;
    grid-template-columns: 1fr 18px;
    grid-template-rows: 1fr 1fr;
    align-items: center;
    color: #fff;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    cursor: pointer;
    animation: cmt-menu-nudge 5.5s ease-in-out infinite;
  }
  .apt44-cmt-active .dwbz-menu-toggle span { grid-row: 1/3; font-size: 11px; }
  .apt44-cmt-active .dwbz-menu-toggle i { display: block; width: 16px; height: 1px; background: #fff; transition: transform 180ms ease; }
  .apt44-cmt-active .dwbz-menu-toggle[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
  .apt44-cmt-active .dwbz-menu-toggle[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }
  .apt44-cmt-active .dwbz-nav {
    position: fixed;
    z-index: 9991;
    top: 76px;
    right: 14px;
    left: 14px;
    max-height: calc(100dvh - 94px);
    margin: 0;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 6px;
    overflow-y: auto;
    background: rgba(28,23,39,.99);
    border: 1px solid rgba(234,216,198,.24);
    box-shadow: 0 24px 60px rgba(0,0,0,.34);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease,visibility 180ms ease,transform 180ms ease;
  }
  .apt44-cmt-active .dwbz-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .apt44-cmt-active .dwbz-nav > a { justify-content: flex-start; min-height: 48px; padding: 6px 12px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .apt44-cmt-active .dwbz-nav__call { grid-column: 1/-1; align-items: center; justify-content: center; }
}

@keyframes cmt-menu-nudge { 0%,86%,100% { transform: translateY(0); } 91% { transform: translateY(-3px); } }
@keyframes cmt-footer-nudge { 0%,88%,100% { transform: translateX(0); } 93% { transform: translateX(3px); } }

@media (max-width:860px) {
  .cmt-toc ol { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cmt-overview-columns,
  .cmt-map-columns { flex-wrap: wrap !important; }
  .cmt-overview-columns > .wp-block-column,
  .cmt-map-columns > .wp-block-column { flex-basis: 100% !important; }
  .cmt-gallery > .wp-block-group__inner-container,
  .cmt-floorplans > .wp-block-group__inner-container,
  .cmt-info-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cmt-official-visual > .wp-block-group__inner-container { grid-template-columns: 1fr; }
  .cmt-source-list { grid-template-columns: 1fr; }
}

@media (max-width:600px) {
  .apt44-cmt-active { padding-bottom: 0; }
  .apt44-cmt-active .dwbz-brand { min-width: 0; }
  .apt44-cmt-active .dwbz-brand__mark { width: 40px; height: 30px; font-size: 15px; }
  .apt44-cmt-active .dwbz-brand__name strong { font-size: 12px; }
  .apt44-cmt-active .dwbz-brand__name small { max-width: 145px; overflow: hidden; font-size: 7px; white-space: nowrap; }
  .apt44-cmt-active .dwbz-nav { top: 68px; grid-template-columns: 1fr; }
  .apt44-cmt-active .dwbz-hero { min-height: calc(100svh - 68px); }
  .apt44-cmt-active .dwbz-hero__content { padding-bottom: 126px; }
  .apt44-cmt-active .dwbz-hero__media img { object-position: 54% 48%; }
  .apt44-cmt-active .dwbz-hero h1 { font-size: clamp(35px,11.2vw,49px); }
  .apt44-cmt-active .dwbz-hero__facts li { min-width: 0; padding: 9px 10px; flex-direction: column; gap: 2px; }
  .cmt-actions { display: grid; grid-template-columns: 1fr; }
  .dwbz-hero .cmt-actions { padding-right: 160px; }
  .cmt-actions .wp-block-button,
  .cmt-actions .wp-block-button__link { width: 100%; }
  .cmt-toc ol,
  .cmt-gallery > .wp-block-group__inner-container,
  .cmt-floorplans > .wp-block-group__inner-container,
  .cmt-info-grid { grid-template-columns: 1fr; }
  .cmt-map-columns figure { padding: 8px; }
  .apt44-cmt-active .dwbz-floating-call {
    right: 10px;
    bottom: max(10px,env(safe-area-inset-bottom));
    left: auto;
    width: auto;
    min-width: 154px;
    min-height: 56px;
    padding: 9px 15px;
  }
  .apt44-cmt-active .dwbz-floating-call strong { font-size: 16px; }
}

@media (prefers-reduced-motion:reduce) {
  .apt44-cmt-active .dwbz-menu-toggle,
  .apt44-cmt-active .dwbz-footer-menu a { animation: none !important; }
}
