/*
 Theme Name:   천안아산 청약분양 센터
 Theme URI:    https://cheonan-asan.com
 Description:  천안아산 청약분양 센터 전용 독립 커스텀 테마 — Astra 불필요
 Author:       cheonan-asan
 Version:      2.1.0
 Text Domain:  cheonan-asan
*/

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #1F2937;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #0075DE; }

/* ── 레이아웃 ────────────────────────────────────── */
#main {
    min-height: 60vh;
}

/* 일반 페이지 콘텐츠 */
.ca-page-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px 64px;
}

/* 풀폭 페이지 (메인, CPT 등) */
body.page-home #main,
body.post-type-archive #main,
body.single-presale #main,
body.single-news #main,
body.single-guide #main {
    padding: 0;
}

/* ── WP 기본 요소 정리 ───────────────────────────── */
.screen-reader-text {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.wp-block-group { margin: 0; }
p:last-child { margin-bottom: 0; }

/* ── 청약 캘린더 쇼트코드 ─────────────────────────── */
.ca-mcal,
.ca-mcal-week,
.ca-mcal-upcoming,
.ca-mcal-alert {
    --ca-mcal-primary: #0075DE;
    --ca-mcal-text: #1F2937;
    --ca-mcal-muted: #6B7280;
    --ca-mcal-faint: #9CA3AF;
    --ca-mcal-border: rgba(15, 23, 42, 0.09);
    --ca-mcal-soft: #F8FAFC;
    --ca-mcal-hover: #F1F5F9;
    font-family: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
}
.ca-mcal { max-width: 1200px; margin: 0 auto; padding: 40px 24px; color: var(--ca-mcal-text); }
.ca-mcal__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.ca-mcal__title { margin: 0; font-size: 28px; line-height: 1.25; font-weight: 700; letter-spacing: 0; }
.ca-mcal__nav { display: flex; gap: 8px; }
.ca-mcal__nav-btn { min-width: 40px; height: 40px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ca-mcal-border); border-radius: 8px; background: #fff; color: #334155; text-decoration: none; font-size: 16px; font-weight: 600; }
.ca-mcal__nav-btn:hover { background: var(--ca-mcal-hover); border-color: rgba(15, 23, 42, 0.18); }
.ca-mcal__legend { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; padding: 12px 16px; margin-bottom: 14px; background: var(--ca-mcal-soft); border: 1px solid var(--ca-mcal-border); border-radius: 8px; color: #475569; font-size: 13px; }
.ca-mcal__legend span { display: inline-flex; align-items: center; gap: 6px; }
.ca-mcal__dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; flex: 0 0 auto; }
.ca-mcal__dot--notice     { background: #0075DE; }
.ca-mcal__dot--grand-open { background: #4F46E5; }
.ca-mcal__dot--special    { background: #EA580C; }
.ca-mcal__dot--active     { background: #10B981; }
.ca-mcal__dot--second     { background: #0D9488; }
.ca-mcal__dot--pickup     { background: #EF4444; }
.ca-mcal__dot--result     { background: #8B5CF6; }
.ca-mcal__dot--doc        { background: #B45309; }
.ca-mcal__dot--contract   { background: #334155; }
.ca-mcal__weekdays { display: grid; grid-template-columns: repeat(7, 1fr); padding: 9px 0; text-align: center; color: var(--ca-mcal-muted); font-size: 12px; font-weight: 700; border-bottom: 1px solid var(--ca-mcal-border); }
.ca-mcal__weekdays .is-sun { color: #EF4444; }
.ca-mcal__weekdays .is-sat { color: #2563EB; }
.ca-mcal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: hidden; background: #fff; border: 1px solid var(--ca-mcal-border); border-radius: 8px; }
.ca-mcal__cell { min-height: 112px; padding: 8px; border-right: 1px solid var(--ca-mcal-border); border-bottom: 1px solid var(--ca-mcal-border); }
.ca-mcal__cell:nth-child(7n) { border-right: 0; }
.ca-mcal__cell--empty { background: var(--ca-mcal-soft); }
.ca-mcal__day { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; border-radius: 50%; font-size: 13px; font-weight: 700; color: #334155; }
.ca-mcal__cell.is-sun .ca-mcal__day { color: #EF4444; }
.ca-mcal__cell.is-sat .ca-mcal__day { color: #2563EB; }
.ca-mcal__cell.is-today { background: rgba(0, 117, 222, 0.05); }
.ca-mcal__cell.is-today .ca-mcal__day { background: var(--ca-mcal-primary); color: #fff; }
.ca-mcal__events { display: flex; flex-direction: column; gap: 3px; }
.ca-mcal__event { display: block; min-width: 0; padding: 4px 6px; border-radius: 5px; text-decoration: none; color: #1F2937; background: var(--ca-mcal-soft); }
.ca-mcal__event:hover { background: var(--ca-mcal-hover); }
.ca-mcal__event-label { display: block; font-size: 10px; font-weight: 700; color: var(--ca-mcal-muted); line-height: 1.2; }
.ca-mcal__event-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; line-height: 1.35; }
/* ── 범위 바 (Range Bar) ──────────────────────────── */
.ca-mcal__ranges { display: flex; flex-direction: column; gap: 2px; margin-bottom: 3px; }
.ca-mcal__range-bar { display: flex; align-items: center; gap: 4px; min-height: 18px; padding: 2px 6px; font-size: 10px; font-weight: 700; text-decoration: none; overflow: hidden; border-radius: 3px; }
.ca-mcal__range-bar.is-start  { border-radius: 3px 0 0 3px; margin-right: -8px; }
.ca-mcal__range-bar.is-middle { border-radius: 0; margin: 0 -8px; padding: 2px 0; }
.ca-mcal__range-bar.is-end    { border-radius: 0 3px 3px 0; margin-left: -8px; justify-content: flex-end; }
.ca-mcal__range-bar.is-single { border-radius: 3px; }
.ca-mcal__range-label  { font-size: 9px; opacity: .85; white-space: nowrap; flex-shrink: 0; }
.ca-mcal__range-title  { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-mcal__range-end-mark { font-size: 9px; opacity: .85; white-space: nowrap; flex-shrink: 0; }
/* Range bar colors */
.ca-mcal__range-bar--special  { background: rgba(234,88,12,.18);  color: #9A3412; }
.ca-mcal__range-bar--doc      { background: rgba(180,83,9,.15);   color: #78350F; }
.ca-mcal__range-bar--contract { background: rgba(30,58,138,.12);  color: #1E3A8A; }
@media (max-width: 640px) {
  .ca-mcal__range-bar.is-start  { margin-right: -4px; }
  .ca-mcal__range-bar.is-middle { margin: 0 -4px; }
  .ca-mcal__range-bar.is-end    { margin-left: -4px; }
}
/* ─────────────────────────────────────────────────── */
.ca-mcal__event--notice     { background: rgba(0, 117, 222, 0.09); color: #075985; }
.ca-mcal__event--grand-open { background: rgba(79, 70, 229, 0.1);  color: #3730A3; }
.ca-mcal__event--special    { background: rgba(234, 88, 12, 0.1);  color: #C2410C; }
.ca-mcal__event--active     { background: rgba(16, 185, 129, 0.1); color: #047857; }
.ca-mcal__event--second     { background: rgba(13, 148, 136, 0.1); color: #0F766E; }
.ca-mcal__event--pickup     { background: rgba(239, 68, 68, 0.1);  color: #B91C1C; }
.ca-mcal__event--result     { background: rgba(139, 92, 246, 0.11); color: #6D28D9; }
.ca-mcal__event--doc        { background: rgba(180, 83, 9, 0.09);  color: #92400E; }
.ca-mcal__event--contract   { background: rgba(51, 65, 85, 0.09);  color: #334155; }
.ca-mcal__more { padding: 2px 6px; color: var(--ca-mcal-muted); font-size: 11px; }
.ca-mcal__list { display: grid; gap: 8px; margin-top: 32px; }
.ca-mcal__list h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.35; }
.ca-mcal__list-item { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 16px; border: 1px solid var(--ca-mcal-border); border-radius: 8px; background: #fff; color: inherit; text-decoration: none; }
.ca-mcal__list-item:hover { border-color: rgba(0, 117, 222, 0.28); background: #FBFDFF; }
.ca-mcal__list-date { width: 48px; flex: 0 0 auto; color: var(--ca-mcal-primary); font-size: 15px; font-weight: 800; }
.ca-mcal__list-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.ca-mcal__badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 5px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.ca-mcal__badge--primary { background: rgba(0, 117, 222, 0.09);   color: #075985; }
.ca-mcal__badge--indigo  { background: rgba(79, 70, 229, 0.1);   color: #3730A3; }
.ca-mcal__badge--orange  { background: rgba(234, 88, 12, 0.1);   color: #C2410C; }
.ca-mcal__badge--success { background: rgba(16, 185, 129, 0.1);  color: #047857; }
.ca-mcal__badge--teal    { background: rgba(13, 148, 136, 0.1);  color: #0F766E; }
.ca-mcal__badge--danger  { background: rgba(239, 68, 68, 0.1);   color: #B91C1C; }
.ca-mcal__badge--purple  { background: rgba(139, 92, 246, 0.11); color: #6D28D9; }
.ca-mcal__badge--amber   { background: rgba(180, 83, 9, 0.09);   color: #92400E; }
.ca-mcal__badge--slate   { background: rgba(51, 65, 85, 0.09);   color: #334155; }
.ca-mcal__empty,
.ca-mcal-empty { padding: 28px; text-align: center; color: var(--ca-mcal-muted); background: var(--ca-mcal-soft); border: 1px solid var(--ca-mcal-border); border-radius: 8px; }

.ca-mcal-alert { max-width: 1200px; margin: 18px auto; padding: 14px 18px; display: flex; align-items: center; gap: 14px; border: 1px solid rgba(16, 185, 129, 0.2); border-left: 4px solid #10B981; border-radius: 8px; background: linear-gradient(90deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.02)); color: var(--ca-mcal-text); }
.ca-mcal-alert--pickup { border-color: rgba(239, 68, 68, 0.2); border-left-color: #EF4444; background: linear-gradient(90deg, rgba(239, 68, 68, 0.08), rgba(239, 68, 68, 0.02)); }
.ca-mcal-alert__dday { flex: 0 0 auto; padding: 6px 10px; border-radius: 6px; background: #fff; font-size: 13px; font-weight: 800; color: #047857; }
.ca-mcal-alert--pickup .ca-mcal-alert__dday { color: #B91C1C; }
.ca-mcal-alert__body { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ca-mcal-alert__label { padding: 2px 8px; border-radius: 5px; background: rgba(255, 255, 255, 0.72); font-size: 12px; font-weight: 800; }
.ca-mcal-alert__title { color: var(--ca-mcal-text); font-weight: 800; text-decoration: none; }
.ca-mcal-alert__title:hover { color: var(--ca-mcal-primary); }
.ca-mcal-alert__date { color: var(--ca-mcal-muted); font-size: 13px; }
.ca-mcal-alert__cta { flex: 0 0 auto; padding: 7px 12px; border: 1px solid var(--ca-mcal-border); border-radius: 6px; background: #fff; color: var(--ca-mcal-text); text-decoration: none; font-size: 13px; font-weight: 700; }

.ca-mcal-week { max-width: 1280px; margin: 0 auto; padding: 40px 24px; color: var(--ca-mcal-text); }
.ca-mcal-week__header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.ca-mcal-week__title { margin: 0 0 4px; font-size: 26px; line-height: 1.3; font-weight: 800; letter-spacing: 0; }
.ca-mcal-week__desc { margin: 0; color: var(--ca-mcal-muted); font-size: 14px; }
.ca-mcal-week__link { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border: 1px solid var(--ca-mcal-border); border-radius: 7px; background: #fff; color: var(--ca-mcal-text); text-decoration: none; font-size: 13px; font-weight: 800; }
.ca-mcal-week__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.ca-mcal-week__day { min-height: 142px; padding: 12px; display: flex; flex-direction: column; border: 1px solid var(--ca-mcal-border); border-radius: 8px; background: #fff; }
.ca-mcal-week__day.has-events { border-color: rgba(0, 117, 222, 0.24); }
.ca-mcal-week__day.is-today { background: linear-gradient(180deg, rgba(0, 117, 222, 0.05), #fff); border-color: rgba(0, 117, 222, 0.42); }
.ca-mcal-week__date { display: flex; align-items: baseline; gap: 8px; padding-bottom: 8px; margin-bottom: 9px; border-bottom: 1px solid var(--ca-mcal-border); }
.ca-mcal-week__date span { color: var(--ca-mcal-muted); font-size: 12px; font-weight: 800; }
.ca-mcal-week__date strong { color: var(--ca-mcal-text); font-size: 21px; line-height: 1; }
.ca-mcal-week__day.is-sun .ca-mcal-week__date span,
.ca-mcal-week__day.is-sun .ca-mcal-week__date strong { color: #EF4444; }
.ca-mcal-week__day.is-sat .ca-mcal-week__date span,
.ca-mcal-week__day.is-sat .ca-mcal-week__date strong { color: #2563EB; }
.ca-mcal-week__events { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ca-mcal-week__empty { color: var(--ca-mcal-faint); font-size: 12px; text-align: center; padding: 14px 0; }
.ca-mcal-week__event { display: block; padding: 7px 8px; border-radius: 6px; text-decoration: none; background: var(--ca-mcal-soft); }
.ca-mcal-week__event:hover { background: var(--ca-mcal-hover); }
.ca-mcal-week__event span { display: block; margin-bottom: 2px; color: var(--ca-mcal-muted); font-size: 10px; font-weight: 800; }
.ca-mcal-week__event strong { display: -webkit-box; overflow: hidden; color: var(--ca-mcal-text); font-size: 12px; line-height: 1.35; font-weight: 700; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ca-mcal-week__event--active { border-left: 3px solid #10B981; background: rgba(16, 185, 129, 0.08); }
.ca-mcal-week__event--pickup { border-left: 3px solid #EF4444; background: rgba(239, 68, 68, 0.08); }
.ca-mcal-week__event--notice { border-left: 3px solid #0075DE; background: rgba(0, 117, 222, 0.08); }
.ca-mcal-week__event--result { border-left: 3px solid #8B5CF6; background: rgba(139, 92, 246, 0.08); }
.ca-mcal-week__event--contract { border-left: 3px solid #334155; background: rgba(51, 65, 85, 0.07); }

.ca-mcal-upcoming { max-width: 1200px; margin: 0 auto; padding: 20px; border: 1px solid var(--ca-mcal-border); border-radius: 8px; background: #fff; color: var(--ca-mcal-text); }
.ca-mcal-upcoming__title { margin: 0 0 14px; font-size: 17px; line-height: 1.35; font-weight: 800; letter-spacing: 0; }
.ca-mcal-upcoming__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.ca-mcal-upcoming__item { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 7px; }
.ca-mcal-upcoming__item:hover { background: var(--ca-mcal-soft); }
.ca-mcal-upcoming__dday { flex: 0 0 64px; padding: 6px 8px; border-radius: 6px; text-align: center; font-size: 12px; font-weight: 800; background: var(--ca-mcal-soft); color: #334155; }
.ca-mcal-upcoming__dday--active { background: rgba(16, 185, 129, 0.1); color: #047857; }
.ca-mcal-upcoming__dday--pickup { background: rgba(239, 68, 68, 0.1); color: #B91C1C; }
.ca-mcal-upcoming__body { min-width: 0; flex: 1; }
.ca-mcal-upcoming__title-link { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ca-mcal-text); text-decoration: none; font-size: 14px; font-weight: 800; }
.ca-mcal-upcoming__title-link:hover { color: var(--ca-mcal-primary); }
.ca-mcal-upcoming__meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--ca-mcal-muted); font-size: 12px; }

@media (max-width: 1024px) {
    .ca-mcal-week__grid { grid-template-columns: repeat(7, minmax(120px, 1fr)); overflow-x: auto; padding-bottom: 8px; }
}
@media (max-width: 768px) {
    .ca-mcal,
    .ca-mcal-week { padding: 30px 16px; }
    .ca-mcal__title,
    .ca-mcal-week__title { font-size: 22px; }
    .ca-mcal__grid { grid-template-columns: repeat(7, minmax(42px, 1fr)); }
    .ca-mcal__cell { min-height: 72px; padding: 4px; }
    .ca-mcal__event { padding: 3px; }
    .ca-mcal__event-label { display: none; }
    .ca-mcal__event-title { font-size: 0; }
    .ca-mcal__event::before { content: ''; display: block; width: 7px; height: 7px; margin: 0 auto; border-radius: 50%; background: currentColor; }
    .ca-mcal__list-item { gap: 8px; padding: 12px; }
    .ca-mcal-alert { align-items: flex-start; flex-direction: column; margin-left: 16px; margin-right: 16px; }
    .ca-mcal-alert__cta { width: 100%; text-align: center; }
}

/* ── 분양정보 archive/single ─────────────────────── */
.ca-presale-archive,
.ca-single-presale {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    color: #111827;
}
.ca-presale-archive__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}
.ca-presale-archive__eyebrow {
    margin: 0 0 8px;
    color: #0075DE;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.ca-presale-archive__title,
.ca-single-presale__title {
    margin: 0;
    font-size: 34px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0;
}
.ca-presale-archive__desc,
.ca-single-presale__summary {
    max-width: 720px;
    margin: 10px 0 0;
    color: #64748B;
    font-size: 15px;
}
.ca-presale-archive__calendar,
.ca-presale-filter__button,
.ca-single-presale__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    background: #0075DE;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    border: 0;
}
.ca-presale-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 4px;
    margin-bottom: 16px;
    border-radius: 10px;
    background: #F1F5F9;
}
.ca-presale-tabs__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 8px;
    color: #475569;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}
.ca-presale-tabs__item span {
    color: #94A3B8;
    font-size: 12px;
}
.ca-presale-tabs__item.is-active,
.ca-presale-tabs__item:hover {
    background: #fff;
    color: #0F172A;
    box-shadow: 0 1px 2px rgba(15,23,42,.06);
}
.ca-presale-filter {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, 180px)) auto;
    gap: 8px;
    margin-bottom: 14px;
}
.ca-presale-filter__search,
.ca-presale-filter__select {
    width: 100%;
    height: 42px;
    border: 1px solid rgba(15,23,42,.1);
    border-radius: 8px;
    background: #fff;
    color: #1F2937;
    font: inherit;
    padding: 0 12px;
}
.ca-presale-archive__count {
    margin: 0 0 18px;
    color: #64748B;
    font-size: 13px;
    font-weight: 700;
}
.ca-presale-list {
    display: grid;
    gap: 12px;
}
.ca-presale-item {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    padding: 14px;
    border: 1px solid rgba(15,23,42,.09);
    border-radius: 10px;
    background: #fff;
}
.ca-presale-item:hover {
    border-color: rgba(0,117,222,.28);
    box-shadow: 0 8px 24px rgba(15,23,42,.06);
}
.ca-presale-item__thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 148px;
    border-radius: 8px;
    background: #F1F5F9;
    color: #0075DE;
    font-weight: 900;
    text-decoration: none;
}
.ca-presale-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ca-presale-item__top,
.ca-single-presale__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}
.ca-presale-item__badge,
.ca-presale-item__schedule,
.ca-single-presale__badge,
.ca-single-presale__meta-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 6px;
    background: #EFF6FF;
    color: #075985;
    font-size: 12px;
    font-weight: 800;
}
.ca-presale-item__badge--active { background: #ECFDF5; color: #047857; }
.ca-presale-item__badge--pickup { background: #FEF2F2; color: #B91C1C; }
.ca-presale-item__badge--done { background: #F1F5F9; color: #475569; }
.ca-presale-item__schedule {
    background: #F8FAFC;
    color: #475569;
}
.ca-presale-item__title {
    margin: 0 0 8px;
    font-size: 21px;
    line-height: 1.35;
    letter-spacing: 0;
}
.ca-presale-item__title a {
    color: #0F172A;
    text-decoration: none;
}
.ca-presale-item__summary {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 14px;
    color: #64748B;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.ca-presale-item__meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}
.ca-presale-item__meta div {
    min-width: 0;
    padding: 10px;
    border-radius: 8px;
    background: #F8FAFC;
}
.ca-presale-item__meta dt {
    margin: 0 0 3px;
    color: #94A3B8;
    font-size: 11px;
    font-weight: 800;
}
.ca-presale-item__meta dd {
    overflow: hidden;
    margin: 0;
    color: #1F2937;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ca-presale-pagination ul {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 24px 0 0;
    margin: 0;
    list-style: none;
}
.ca-presale-pagination a,
.ca-presale-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border: 1px solid rgba(15,23,42,.1);
    border-radius: 8px;
    text-decoration: none;
}
.ca-presale-empty {
    padding: 48px 16px;
    border: 1px solid rgba(15,23,42,.09);
    border-radius: 10px;
    background: #F8FAFC;
    color: #64748B;
    text-align: center;
}
.ca-single-presale {
    max-width: 960px;
}
.ca-single-presale__back {
    display: inline-flex;
    margin-bottom: 22px;
    color: #64748B;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}
.ca-single-presale__back::before {
    content: '←';
    margin-right: 6px;
}
.ca-single-presale__header {
    margin-bottom: 26px;
}
.ca-single-presale__hero {
    overflow: hidden;
    margin-bottom: 18px;
    border-radius: 10px;
    background: #F1F5F9;
}
.ca-single-presale__hero img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}
.ca-single-presale__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    color: #0075DE;
    font-weight: 900;
}
.ca-single-presale__quick {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 34px;
}
.ca-single-presale__quick div {
    padding: 16px;
    border: 1px solid rgba(15,23,42,.09);
    border-radius: 10px;
    background: #fff;
}
.ca-single-presale__quick span {
    display: block;
    margin-bottom: 6px;
    color: #94A3B8;
    font-size: 12px;
    font-weight: 800;
}
.ca-single-presale__quick strong {
    display: block;
    color: #0F172A;
    font-size: 16px;
}
.ca-single-presale__section {
    margin-top: 34px;
}
.ca-single-presale__section h2 {
    margin: 0 0 14px;
    font-size: 22px;
    line-height: 1.35;
    letter-spacing: 0;
}
.ca-single-presale__timeline {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.ca-single-presale__timeline li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(15,23,42,.09);
    border-left: 4px solid #0075DE;
    border-radius: 8px;
    background: #fff;
}
.ca-single-presale__timeline li.is-done {
    border-left-color: #CBD5E1;
    color: #64748B;
}
.ca-single-presale__table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid rgba(15,23,42,.12);
}
.ca-single-presale__table th,
.ca-single-presale__table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(15,23,42,.08);
    text-align: left;
    vertical-align: top;
}
.ca-single-presale__table th {
    width: 160px;
    color: #64748B;
    background: #F8FAFC;
}
.ca-single-presale__content {
    line-height: 1.8;
}
.ca-single-presale__cta {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-top: 42px;
    padding: 22px;
    border-radius: 10px;
    background: #F8FAFC;
}
.ca-single-presale__cta h2 {
    margin: 0 0 6px;
    font-size: 22px;
}
.ca-single-presale__cta p {
    margin: 0;
    color: #64748B;
}
.ca-single-presale__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

@media (max-width: 900px) {
    .ca-presale-archive__header,
    .ca-single-presale__cta {
        align-items: flex-start;
        flex-direction: column;
    }
    .ca-presale-filter {
        grid-template-columns: 1fr 1fr;
    }
    .ca-presale-filter__search,
    .ca-presale-filter__button {
        grid-column: 1 / -1;
    }
    .ca-presale-item {
        grid-template-columns: 1fr;
    }
    .ca-presale-item__thumb {
        min-height: 220px;
    }
    .ca-presale-item__meta,
    .ca-single-presale__quick {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 560px) {
    .ca-presale-archive,
    .ca-single-presale {
        padding: 34px 16px 64px;
    }
    .ca-presale-archive__title,
    .ca-single-presale__title {
        font-size: 28px;
    }
    .ca-presale-filter,
    .ca-presale-item__meta,
    .ca-single-presale__quick {
        grid-template-columns: 1fr;
    }
    .ca-single-presale__timeline li {
        flex-direction: column;
        gap: 4px;
    }
}

/* ── 홈페이지 섹션 (WPCode 3342 이전) ──────────── */
.ca-home-cards-section { background: #fff; padding: 56px 0 64px; border-top: 1px solid rgba(0,0,0,.06); }
.ca-home-contact-section { background: #F9FAFB; padding: 56px 0 64px; border-top: 1px solid rgba(0,0,0,.06); }
.ca-home-section-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.ca-home-section-header { text-align: center; margin-bottom: 36px; }
.ca-home-section-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #0075DE; text-transform: uppercase; margin: 0 0 8px; }
.ca-home-section-title { font-size: 28px; font-weight: 800; color: #0f172a; margin: 0 0 6px; letter-spacing: -.02em; }
.ca-home-section-desc { font-size: 14px; color: #64748b; margin: 0; }
@media (max-width: 640px) {
    .ca-home-cards-section, .ca-home-contact-section { padding: 40px 0 48px; }
    .ca-home-section-inner { padding: 0 16px; }
}

/* ── ca-listing 구조 (mymumu 이식) ─────────────── */
.ca-listing {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    font-family: 'Inter','Noto Sans KR',-apple-system,BlinkMacSystemFont,sans-serif;
    color: #111827;
}
.ca-listing * { box-sizing: border-box; }
.ca-listing__header { margin-bottom: 24px; }
.ca-listing__header-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.ca-listing__title { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 30px; font-weight: 800; letter-spacing: -.025em; }
.ca-listing__title-icon { font-size: 28px; }
.ca-listing__desc { margin: 0; color: #64748B; font-size: 15px; }
.ca-listing__calendar-link { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 8px; background: #0075DE; color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.ca-listing__stats { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 14px 0; border-top: 1px solid rgba(15,23,42,.08); border-bottom: 1px solid rgba(15,23,42,.08); }
.ca-listing__stat { display: flex; align-items: center; gap: 6px; }
.ca-listing__stat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ca-listing__stat-value { font-size: 20px; font-weight: 800; color: #0F172A; }
.ca-listing__stat-label { font-size: 13px; color: #64748B; }
.ca-listing__toolbar { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 14px; padding: 16px; background: #F8FAFC; border: 1px solid rgba(15,23,42,.08); border-radius: 10px; }
.ca-listing__search { position: relative; display: flex; align-items: center; gap: 8px; }
.ca-listing__search-icon { position: absolute; left: 12px; color: #94A3B8; flex-shrink: 0; }
.ca-listing__search-input { flex: 1; height: 42px; padding: 0 12px 0 38px; border: 1px solid rgba(15,23,42,.12); border-radius: 8px; background: #fff; font: 14px/1 'Inter','Noto Sans KR',-apple-system,sans-serif; color: #1F2937; outline: none; }
.ca-listing__search-input:focus { border-color: #0075DE; box-shadow: 0 0 0 3px rgba(0,117,222,.08); }
.ca-listing__filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ca-listing__select { height: 38px; padding: 0 32px 0 10px; border: 1px solid rgba(15,23,42,.12); border-radius: 7px; background: #fff url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center; appearance: none; font: 13px/1 'Inter','Noto Sans KR',-apple-system,sans-serif; color: #374151; cursor: pointer; }
.ca-listing__search-btn { height: 38px; padding: 0 16px; border: 0; border-radius: 7px; background: #0075DE; color: #fff; font: 600 13px 'Inter','Noto Sans KR',-apple-system,sans-serif; cursor: pointer; white-space: nowrap; }
.ca-listing__toolbar-right { display: flex; align-items: center; gap: 8px; }
.ca-listing__view-toggle { display: flex; border: 1px solid rgba(15,23,42,.12); border-radius: 7px; overflow: hidden; }
.ca-listing__view-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 34px; border: none; background: #fff; color: #64748B; cursor: pointer; }
.ca-listing__view-btn.is-active { background: #0075DE; color: #fff; }
.ca-listing__reset-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid rgba(15,23,42,.12); border-radius: 7px; background: #fff; color: #64748B; font: 12px/1 'Inter','Noto Sans KR',-apple-system,sans-serif; text-decoration: none; }
.ca-listing__results-info { margin: 0 0 14px; color: #64748B; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 12px; }
.ca-listing__results-info span { color: #0F172A; }
.ca-listing__results-update { color: #94A3B8; font-weight: 400; }
/* Grid View */
.ca-listing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ca-listing__card { display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(15,23,42,.08); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .2s,transform .2s; }
.ca-listing__card:hover { box-shadow: 0 8px 24px rgba(15,23,42,.1); transform: translateY(-2px); }
.ca-listing__card-img { position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden; background: #F1F5F9; }
.ca-listing__card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ca-listing__card:hover .ca-listing__card-img img { transform: scale(1.04); }
.ca-listing__card-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #0075DE; font-size: 28px; font-weight: 900; }
.ca-listing__card-badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(31,41,55,.65); backdrop-filter: blur(6px); }
.ca-listing__card-badge--active     { background: rgba(5,150,105,.8); }
.ca-listing__card-badge--scheduled  { background: rgba(0,96,184,.8); }
.ca-listing__card-badge--pickup     { background: rgba(185,28,28,.8); }
.ca-listing__card-badge--done       { background: rgba(71,85,105,.8); }
.ca-listing__card-badge--announce   { background: rgba(0,96,184,.8); }
.ca-listing__card-badge--grand-open { background: rgba(79,70,229,.85); }
.ca-listing__card-badge--special    { background: rgba(234,88,12,.85); }
.ca-listing__card-badge--result     { background: rgba(109,40,217,.85); }
.ca-listing__card-badge--doc        { background: rgba(180,83,9,.85); }
.ca-listing__card-badge--contract   { background: rgba(30,58,138,.85); }
.ca-listing__card-badge--movein     { background: rgba(234,88,12,.9); }
.ca-listing__card-badge--pre-movein { background: rgba(100,116,139,.8); }
.ca-listing__card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ca-listing__card-location { margin: 0; color: #94A3B8; font-size: 12px; }
.ca-listing__card-title { margin: 0; font-size: 16px; font-weight: 700; color: #0F172A; line-height: 1.4; letter-spacing: -.01em; }
.ca-listing__card-excerpt { margin: 0; color: #64748B; font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ca-listing__card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: auto; padding-top: 10px; border-top: 1px solid rgba(15,23,42,.06); font-size: 12px; color: #475569; }
.ca-listing__card-meta strong { display: block; color: #94A3B8; font-weight: 600; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
/* Table View */
.ca-listing__table-wrap { overflow-x: auto; border: 1px solid rgba(15,23,42,.08); border-radius: 10px; }
.ca-listing__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ca-listing__th { padding: 11px 14px; background: #F8FAFC; font-size: 12px; font-weight: 700; color: #64748B; text-align: left; border-bottom: 1px solid rgba(15,23,42,.08); white-space: nowrap; }
.ca-listing__th--name { min-width: 200px; }
.ca-listing__td { padding: 12px 14px; border-bottom: 1px solid rgba(15,23,42,.05); color: #374151; }
.ca-listing__td--name a { color: #0F172A; font-weight: 600; text-decoration: none; }
.ca-listing__td--name a:hover { color: #0075DE; }
.ca-listing__tr:hover td { background: #F8FAFC; }
.ca-listing__status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.ca-listing__status-dot--active    { background: #10B981; }
.ca-listing__status-dot--scheduled { background: #0075DE; }
.ca-listing__status-dot--pickup    { background: #EF4444; }
.ca-listing__status-dot--done      { background: #94A3B8; }
/* Pagination & empty */
.ca-listing__pagination ul { display: flex; justify-content: center; gap: 6px; list-style: none; padding: 24px 0 0; margin: 0; }
.ca-listing__pagination a,
.ca-listing__pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; border: 1px solid rgba(15,23,42,.1); border-radius: 8px; text-decoration: none; color: #374151; font-size: 14px; }
.ca-listing__pagination .current { background: #0075DE; border-color: #0075DE; color: #fff; }
.ca-listing__empty { padding: 56px 16px; text-align: center; color: #64748B; font-size: 15px; background: #F8FAFC; border-radius: 10px; border: 1px solid rgba(15,23,42,.08); }

/* ── ns-timeline (presale schedule) ─────────────── */
.ns-timeline { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 0; }
.ns-timeline__item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid rgba(15,23,42,.09); border-left: 4px solid #0075DE; border-radius: 8px; background: #fff; margin-bottom: 8px; }
.ns-timeline__item:last-child { margin-bottom: 0; }
.ns-timeline__dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #0075DE; background: #fff; flex-shrink: 0; }
.ns-timeline__dot--done { border-color: #CBD5E1; background: #CBD5E1; }
.ns-timeline__dot--active { background: #0075DE; border-color: #0075DE; box-shadow: 0 0 0 3px rgba(0,117,222,.2); }
.ns-timeline__label { flex: 1; font-size: 14px; font-weight: 600; color: #334155; }
.ns-timeline__date { font-size: 13px; color: #64748B; font-weight: 500; white-space: nowrap; }
.ns-timeline__item:has(.ns-timeline__dot--done) { border-left-color: #CBD5E1; }
.ns-timeline__item:has(.ns-timeline__dot--done) .ns-timeline__label { color: #94A3B8; }
/* ── ns-floorplan (타입별 평면도 탭) ─────────────── */
.ns-floorplan { margin-bottom: 28px; }
.ns-floorplan__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ns-floorplan__tab { padding: 7px 18px; border: 1.5px solid #CBD5E1; border-radius: 6px; background: #fff; font-size: 13px; font-weight: 700; color: #475569; cursor: pointer; transition: all .15s; }
.ns-floorplan__tab:hover { border-color: #0075DE; color: #0075DE; }
.ns-floorplan__tab.is-active { border-color: #0075DE; background: #0075DE; color: #fff; }
.ns-floorplan__panel { display: none; text-align: center; }
.ns-floorplan__panel.is-active { display: block; }
.ns-floorplan__img { max-width: 100%; height: auto; border-radius: 10px; border: 1px solid rgba(15,23,42,.08); }
/* ── ns-gallery (입지환경·커뮤니티) ──────────────── */
.ns-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 28px; }
.ns-gallery__item { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; border: 1px solid rgba(15,23,42,.07); }
/* ── ns-img-section (동호수배치도 등 단일 이미지) ── */
.ns-img-section { margin-bottom: 28px; text-align: center; }
@media (max-width: 640px) {
    .ns-floorplan__tabs { gap: 4px; }
    .ns-floorplan__tab { padding: 5px 12px; font-size: 12px; }
    .ns-gallery { grid-template-columns: repeat(2, 1fr); }
}
/* ── ns-related ──────────────────────────────────── */
.ns-related { margin-top: 40px; }
.ns-related__title { margin: 0 0 16px; font-size: 20px; font-weight: 700; }
.ns-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ns-related__card { display: flex; flex-direction: column; border: 1px solid rgba(15,23,42,.09); border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; }
.ns-related__card:hover { box-shadow: 0 4px 16px rgba(15,23,42,.08); }
.ns-related__card-img img { width: 100%; height: 140px; object-fit: cover; display: block; }
.ns-related__card-body { padding: 12px; }
.ns-related__card-title { margin: 6px 0 4px; font-size: 14px; font-weight: 700; color: #0F172A; }
.ns-related__card-price { margin: 0; font-size: 13px; color: #0075DE; font-weight: 600; }

@media (max-width: 1024px) {
    .ca-listing__grid { grid-template-columns: repeat(2, 1fr); }
    .ns-related__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .ca-listing { padding: 28px 16px 60px; }
    .ca-listing__grid { grid-template-columns: 1fr; }
    .ca-listing__filters { flex-direction: column; align-items: stretch; }
    .ca-listing__select { width: 100%; }
    .ns-related__grid { grid-template-columns: 1fr; }
    .ns-timeline__item { flex-wrap: wrap; gap: 8px; }
}

/* ── Astra 컨테이너 전폭 리셋 ────────────────────── */
body.single-guide .ast-container,
body.single-guide .ast-grid-right-nav,
body.single-guide .comments-area,
body.single-news .ast-container,
body.single-news .ast-grid-right-nav,
body.single-news .comments-area,
body.post-type-archive-guide .ast-container,
body.post-type-archive-news .ast-container {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}
body.page-calendar .ast-container,
body.page-calendar .ast-grid-right-nav { max-width: none !important; padding: 0 !important; }

/* ── ns-single 공통 ─────────────────────────────── */
div.ns-single { max-width: 720px; margin: 0 auto; padding: 0 24px 60px; font-family: 'Inter','Noto Sans KR',-apple-system,sans-serif; color: #1F2937; line-height: 1.8; }
div.ns-single * { box-sizing: border-box; }
.ns-back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #6B7280; text-decoration: none; padding: 40px 0 20px; transition: color .15s; }
.ns-back-link:hover { color: #0075DE; }
.ns-back-link::before { content: '←'; font-size: 16px; }
.ns-category-tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; margin-bottom: 12px; }
.ns-category-tag--presale { background: #DBEAFE; color: #1E40AF; }
.ns-category-tag--guide   { background: #D1FAE5; color: #065F46; }
.ns-category-tag--news    { background: #FEF3C7; color: #92400E; }
.ns-post-header { margin-bottom: 32px; }
.ns-post-title { font-size: 36px; font-weight: 700; line-height: 1.25; color: #1F2937; margin: 0 0 12px; letter-spacing: -.02em; }
.ns-post-subtitle { font-size: 18px; font-weight: 400; color: #4B5563; line-height: 1.5; margin: 0 0 20px; }
.ns-post-meta { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #6B7280; flex-wrap: wrap; }
.ns-post-meta__date { font-weight: 500; }
.ns-post-meta__divider { width: 3px; height: 3px; border-radius: 50%; background: #6B7280; }
.ns-post-meta__reading-time { font-size: 13px; color: #9CA3AF; }
.ns-hero-image { width: calc(100% + 120px); margin-left: -60px; margin-bottom: 40px; border-radius: 12px; overflow: hidden; }
.ns-hero-image img { width: 100%; height: auto; display: block; object-fit: cover; max-height: 480px; }
.ns-callout { padding: 16px 20px; border-radius: 8px; margin: 24px 0; font-size: 15px; line-height: 1.7; display: flex; gap: 12px; }
.ns-callout__icon { font-size: 20px; flex-shrink: 0; line-height: 1.5; }
.ns-callout__content { flex: 1; }
.ns-callout__content p { margin: 0 0 8px; }
.ns-callout__content p:last-child { margin-bottom: 0; }
.ns-callout--summary { background: #F9FAFB; border: 1px solid #E5E7EB; }
.ns-info-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.ns-info-table th, .ns-info-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #F3F4F6; }
.ns-info-table th { width: 130px; font-weight: 600; color: #4B5563; background: #F9FAFB; white-space: nowrap; }
.ns-info-table tr:last-child th, .ns-info-table tr:last-child td { border-bottom: none; }
.ns-content { font-size: 16px; line-height: 1.85; color: #1F2937; }
.ns-content h2 { font-size: 24px; font-weight: 700; margin: 48px 0 16px; padding-bottom: 8px; border-bottom: 1px solid #F3F4F6; }
.ns-content h3 { font-size: 20px; font-weight: 600; margin: 36px 0 12px; }
.ns-content p { margin: 0 0 20px; }
.ns-content ul, .ns-content ol { margin: 0 0 20px; padding-left: 24px; }
.ns-content li { margin-bottom: 8px; }
.ns-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 24px 0; }
.ns-content blockquote { border-left: 3px solid #0075DE; margin: 24px 0; padding: 4px 0 4px 20px; color: #4B5563; font-style: italic; }
.ns-content a { color: #0075DE; text-decoration: underline; text-decoration-color: rgba(0,117,222,.3); text-underline-offset: 3px; }
.ns-cta { background: linear-gradient(135deg, #EFF6FF, #F0F9FF); border: 1px solid #BFDBFE; border-radius: 12px; padding: 32px; margin: 40px 0; text-align: center; }
.ns-cta__title { font-size: 20px; font-weight: 700; margin: 0 0 8px; color: #1F2937; }
.ns-cta__desc { font-size: 15px; color: #4B5563; margin: 0 0 20px; }
.ns-cta__button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; background: #0075DE; color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; text-decoration: none; }
.ns-cta__button:hover { background: #0060B8; color: #fff; }
.ns-share { display: flex; align-items: center; gap: 12px; padding: 32px 0; margin-top: 40px; border-top: 1px solid #E5E7EB; }
.ns-share__label { font-size: 13px; font-weight: 600; color: #6B7280; text-transform: uppercase; letter-spacing: .05em; }
.ns-share__btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid #E5E7EB; background: #fff; display: flex; align-items: center; justify-content: center; color: #4B5563; text-decoration: none; font-size: 16px; }
.ns-share__btn:hover { background: #F9FAFB; border-color: #0075DE; color: #0075DE; }

/* ── Guide 레이아웃 (Notion Academy 스타일) ──────── */
.ns-guide-layout { display: flex; max-width: 1400px; margin: 0 auto; min-height: 100vh; font-family: 'Inter','Noto Sans KR',-apple-system,sans-serif; }
.ns-guide-sidebar { width: 260px; flex-shrink: 0; border-right: 1px solid #E5E7EB; background: #FAFAFA; }
.ns-guide-sidebar__inner { position: sticky; top: 64px; padding: 24px 20px; max-height: calc(100vh - 64px); overflow-y: auto; }
.ns-guide-sidebar__back { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #6B7280; text-decoration: none; margin-bottom: 20px; }
.ns-guide-sidebar__back:hover { color: #0075DE; }
.ns-guide-sidebar__section { font-size: 14px; font-weight: 700; color: #1F2937; margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid #E5E7EB; }
.ns-guide-sidebar__nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 24px; }
.ns-guide-sidebar__link { display: block; padding: 8px 12px; font-size: 13px; color: #6B7280; text-decoration: none; border-radius: 6px; border-left: 2px solid transparent; line-height: 1.4; }
.ns-guide-sidebar__link:hover { color: #1F2937; background: #F3F4F6; }
.ns-guide-sidebar__link.is-active { color: #0075DE; background: #EFF6FF; border-left-color: #0075DE; font-weight: 600; }
.ns-guide-sidebar__toc { border-top: 1px solid #E5E7EB; padding-top: 16px; }
.ns-guide-sidebar__toc-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #9CA3AF; margin: 0 0 8px; }
.ns-guide-sidebar__toc-link { display: block; padding: 4px 12px; font-size: 12px; color: #9CA3AF; text-decoration: none; border-left: 2px solid transparent; line-height: 1.5; }
.ns-guide-sidebar__toc-link:hover { color: #4B5563; }
.ns-guide-sidebar__toc-link.is-active { color: #0075DE; border-left-color: #0075DE; }
.ns-guide-sidebar__toc-link--sub { padding-left: 24px; }
.ns-guide-content { flex: 1; min-width: 0; padding: 0 60px 60px; }
.ns-guide-content .ns-post-header { padding-top: 40px; }
.ns-guide-content .ns-hero-image { width: 100%; margin-left: 0; margin-bottom: 32px; }

/* ── ns-archive 공통 (뉴스/가이드) ─────────────── */
.ns-archive-page { max-width: 1280px; margin: 0 auto; padding: 48px 24px 80px; font-family: 'Inter','Noto Sans KR',-apple-system,sans-serif; }
.ns-archive-page__header { text-align: center; margin-bottom: 48px; }
.ns-archive-page__title { font-size: 36px; font-weight: 800; color: #0f172a; margin: 0 0 8px; letter-spacing: -.025em; }
.ns-archive-page__desc { font-size: 16px; color: #64748b; margin: 0 0 24px; }
.ns-archive-page__cats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ns-archive-page__cat-link { display: inline-flex; align-items: center; padding: 6px 16px; font-size: 14px; font-weight: 500; color: #4B5563; background: #F9FAFB; border: 1px solid rgba(0,0,0,.07); border-radius: 999px; text-decoration: none; }
.ns-archive-page__cat-link:hover,
.ns-archive-page__cat-link--active { background: #0075DE; color: #fff; border-color: #0075DE; }
.ns-archive-page__empty { text-align: center; padding: 60px 0; color: #94a3b8; font-size: 15px; }
.ns-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ns-post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: 12px; overflow: hidden; text-decoration: none; }
.ns-post-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
.ns-post-card__thumb { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #F1F5F9; }
.ns-post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ns-post-card__body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ns-post-card__cat { font-size: 12px; font-weight: 600; color: #0075DE; text-transform: uppercase; letter-spacing: .04em; }
.ns-post-card__title { font-size: 15px; font-weight: 700; color: #0f172a; line-height: 1.5; margin: 0; }
.ns-post-card__excerpt { font-size: 13px; color: #64748b; line-height: 1.6; margin: 0; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ns-post-card__date { font-size: 12px; color: #94a3b8; margin-top: auto; }

/* ── /calendar/ 페이지 ─────────────────────────── */
.cal-page { max-width: 1200px; margin: 0 auto; padding: 40px 24px 80px; }
.cal-header { text-align: center; margin-bottom: 40px; }
.cal-header__eyebrow { display: inline-block; padding: 6px 14px; background: #EFF6FF; color: #1E40AF; border-radius: 20px; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.cal-header__title { font-size: 40px; font-weight: 800; letter-spacing: -.03em; color: #111827; margin: 0 0 10px; line-height: 1.2; }
.cal-header__desc { font-size: 16px; color: #6B7280; margin: 0; }
.cal-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.cal-stats__item { background: #F9FAFB; border: 1px solid #E5E7EB; border-radius: 12px; padding: 20px 16px; text-align: center; }
.cal-stats__num { display: block; font-size: 28px; font-weight: 800; color: #111827; line-height: 1; }
.cal-stats__label { display: block; margin-top: 6px; font-size: 13px; color: #6B7280; }
.cal-stats__item--notice .cal-stats__num { color: #2563EB; }
.cal-stats__item--app    .cal-stats__num { color: #16A34A; }
.cal-stats__item--dead   .cal-stats__num { color: #DC2626; }
.cal-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
.cal-card { background: #fff; border: 1px solid #E5E7EB; border-radius: 16px; overflow: hidden; }
.cal-card__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid #F3F4F6; }
.cal-card__title { font-size: 20px; font-weight: 700; color: #111827; margin: 0; }
.cal-nav { display: flex; align-items: center; gap: 4px; }
.cal-nav__btn { width: 36px; height: 36px; border: 1px solid #E5E7EB; background: #fff; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: #374151; }
.cal-nav__btn:hover { background: #F9FAFB; }
.cal-nav__label { padding: 0 16px; font-size: 15px; font-weight: 700; color: #111827; min-width: 120px; text-align: center; }
.cal-grid { padding: 8px; }
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); padding: 8px 0; border-bottom: 1px solid #F3F4F6; }
.cal-weekdays > span { text-align: center; font-size: 12px; font-weight: 700; color: #6B7280; letter-spacing: .05em; }
.cal-weekdays > span:first-child { color: #DC2626; }
.cal-weekdays > span:last-child  { color: #2563EB; }
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: minmax(92px, 1fr); gap: 2px; padding: 2px; }
.cal-day { padding: 6px 8px; border: 1px solid transparent; border-radius: 8px; background: #fff; display: flex; flex-direction: column; }
.cal-day:hover { background: #F9FAFB; border-color: #E5E7EB; }
.cal-day--other  { background: #FAFAFA; }
.cal-day--today  { background: #EFF6FF; border-color: #BFDBFE; }
.cal-day--today .cal-day__num { color: #1E40AF; font-weight: 800; }
.cal-day__num { font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 4px; }
.cal-day--sun .cal-day__num { color: #DC2626; }
.cal-day--sat .cal-day__num { color: #2563EB; }
.cal-day__events { display: flex; flex-direction: column; gap: 2px; overflow: hidden; flex: 1; }
.cal-chip { display: block; font-size: 10.5px; font-weight: 600; padding: 2px 6px; border-radius: 4px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.cal-chip--notice      { background: #DBEAFE; color: #1E40AF; }
.cal-chip--application { background: #DCFCE7; color: #166534; }
.cal-chip--deadline    { background: #FEE2E2; color: #991B1B; }
.cal-day__more { font-size: 10px; color: #6B7280; padding: 0 4px; }
.cal-legend { display: flex; gap: 12px; flex-wrap: wrap; padding: 16px 24px; border-top: 1px solid #F3F4F6; background: #FAFAFA; }
.cal-legend__item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #4B5563; font-weight: 500; }
.cal-legend__dot { width: 10px; height: 10px; border-radius: 3px; }
.cal-legend__dot--notice      { background: #2563EB; }
.cal-legend__dot--application { background: #16A34A; }
.cal-legend__dot--deadline    { background: #DC2626; }
.cal-upcoming { background: #fff; border: 1px solid #E5E7EB; border-radius: 16px; padding: 24px; }
.cal-upcoming__title { font-size: 18px; font-weight: 700; color: #111827; margin: 0 0 6px; }
.cal-upcoming__desc { font-size: 13px; color: #6B7280; margin: 0 0 20px; }
.cal-up-list { display: flex; flex-direction: column; gap: 0; }
.cal-up-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid #F3F4F6; text-decoration: none; color: inherit; }
.cal-up-item:last-child { border-bottom: 0; }
.cal-up-item:hover { background: #F9FAFB; margin: 0 -12px; padding: 14px 12px; border-radius: 8px; }
.cal-up-item__date { flex-shrink: 0; width: 52px; text-align: center; border-radius: 8px; padding: 6px 0; background: #F3F4F6; }
.cal-up-item__m  { display: block; font-size: 11px; font-weight: 600; color: #6B7280; line-height: 1; }
.cal-up-item__d  { display: block; font-size: 20px; font-weight: 800; color: #111827; line-height: 1.2; margin-top: 2px; }
.cal-up-item__dow { display: block; font-size: 10px; color: #9CA3AF; line-height: 1; }
.cal-up-item__body { flex: 1; min-width: 0; }
.cal-up-item__type { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; margin-bottom: 4px; }
.cal-up-item__type--notice      { background: #DBEAFE; color: #1E40AF; }
.cal-up-item__type--application { background: #DCFCE7; color: #166534; }
.cal-up-item__type--deadline    { background: #FEE2E2; color: #991B1B; }
.cal-up-item__name   { font-size: 14px; font-weight: 700; color: #111827; margin: 0 0 2px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-up-item__region { font-size: 12px; color: #6B7280; }
.cal-up-item__arrow  { flex-shrink: 0; color: #9CA3AF; align-self: center; }
.cal-up-empty { text-align: center; padding: 32px 0; color: #9CA3AF; font-size: 14px; }

@media (max-width: 1024px) {
    .cal-layout { grid-template-columns: 1fr; }
    .ns-post-grid { grid-template-columns: repeat(2, 1fr); }
    .ns-guide-layout { flex-direction: column; }
    .ns-guide-sidebar { width: 100%; border-right: none; border-bottom: 1px solid #E5E7EB; }
    .ns-guide-sidebar__inner { position: static; max-height: none; padding: 16px; }
    .ns-guide-content { padding: 0 24px 40px; }
}
@media (max-width: 768px) {
    .cal-page { padding: 24px 16px 56px; }
    .cal-header__title { font-size: 26px; }
    .cal-stats { gap: 10px; margin-bottom: 20px; }
    .cal-days { grid-auto-rows: minmax(64px, 1fr); }
    .cal-chip { font-size: 9px; padding: 1px 3px; }
    div.ns-single { padding: 0 16px 40px; }
    .ns-back-link { padding: 24px 0 16px; font-size: 13px; }
    .ns-post-title { font-size: 24px; line-height: 1.3; }
    .ns-hero-image { width: calc(100% + 48px); margin-left: -24px; border-radius: 0; }
    .ns-content h2 { font-size: 20px; margin: 32px 0 12px; }
    .ns-content { font-size: 15px; line-height: 1.75; }
    .ns-cta { padding: 24px 16px; }
    .ns-cta__button { width: 100%; justify-content: center; }
    .ns-archive-page { padding: 32px 16px 60px; }
    .ns-archive-page__title { font-size: 28px; }
    .ns-post-grid { grid-template-columns: 1fr; gap: 16px; }
    .ns-guide-sidebar__nav { flex-direction: row; overflow-x: auto; gap: 0; }
    .ns-guide-sidebar__link { white-space: nowrap; border-left: none; border-bottom: 2px solid transparent; border-radius: 0; padding: 8px 14px; }
    .ns-guide-sidebar__link.is-active { border-left: none; border-bottom-color: #0075DE; background: none; }
    .ns-guide-sidebar__toc { display: none; }
    .ns-guide-content { padding: 0 16px 40px; }
}
