/* ===========================================================
   금보리페어 — 데크시공
   구조 참고: https://uapti.kosininterior.com/ (IA·레이아웃·타이포만 참고, 컬러/텍스트/이미지는 미차용)
   =========================================================== */

:root {
    --ink: #24262b;
    --ink-soft: #5b5f66;
    --ink-faint: #8a8d93;
    --bg: #f6f4ee;
    --surface: #ffffff;
    --line: #e3ded2;
    --accent: #3d6b5c;
    --accent-dark: #294a3f;
    --accent-soft: #e7efec;
    --container-max: 1120px;
    --radius-sm: 4px;
    --radius-md: 10px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 2px rgba(20,24,22,.05), 0 1px 1px rgba(20,24,22,.04);
    --shadow-md: 0 10px 24px rgba(20,24,22,.09), 0 2px 8px rgba(20,24,22,.06);
    --shadow-lg: 0 24px 48px rgba(20,24,22,.16), 0 8px 20px rgba(20,24,22,.10);
    --ease: cubic-bezier(.22,.68,.28,1);
}

@media (min-width: 1400px) {
    :root { --container-max: 1320px; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Paperlogy", "Pretendard Variable", -apple-system, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    word-break: keep-all;
    overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { letter-spacing: -0.02em; }

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

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(246,244,238,0.86);
    backdrop-filter: blur(10px) saturate(1.4);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand-mark { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
.brand-mark span { color: var(--accent); }
.main-nav ul { display: flex; gap: 28px; align-items: center; }
.main-nav a { position: relative; font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); transition: color .2s var(--ease); }
.main-nav ul > li > a:not(.nav-cta)::after {
    content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--accent);
    transition: right .25s var(--ease);
}
.main-nav ul > li > a:not(.nav-cta):hover::after { right: 0; }
.main-nav a:hover { color: var(--accent); }
.main-nav .nav-cta {
    background: var(--accent); color: #fff; padding: 9px 18px; border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm); transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.main-nav .nav-cta:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); }

@media (max-width: 780px) {
    .main-nav { position: fixed; inset: 68px 0 0 0; background: var(--bg); transform: translateX(100%); transition: transform .25s ease; padding: 24px 20px; }
    .main-nav.open { transform: translateX(0); }
    .main-nav ul { flex-direction: column; align-items: flex-start; gap: 18px; }
    .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 93vh; overflow: hidden; display: flex; align-items: flex-end; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0; animation: heroFade 20s infinite; }
.hero__bg img:nth-child(1) { animation-delay: 0s; }
.hero__bg img:nth-child(2) { animation-delay: 4s; }
.hero__bg img:nth-child(3) { animation-delay: 8s; }
.hero__bg img:nth-child(4) { animation-delay: 12s; }
.hero__bg img:nth-child(5) { animation-delay: 16s; }
@keyframes heroFade { 0% { opacity: 0; } 4% { opacity: 1; } 20% { opacity: 1; } 24% { opacity: 0; } 100% { opacity: 0; } }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,18,17,.1) 0%, rgba(15,18,17,.55) 62%, rgba(12,16,15,.88) 100%); }
.hero__content { position: relative; z-index: 2; padding: 64px 0 48px; color: #fff; width: 100%; }
.hero__eyebrow { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; letter-spacing: .08em; text-transform: uppercase; color: #d8e6df; margin-bottom: 14px; font-weight: 600; }
.hero__eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; display: inline-block; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; line-height: 1.2; margin-bottom: 14px; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero p { font-size: 1.02rem; color: #eceeec; max-width: 560px; margin-bottom: 22px; }
.hero__badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.hero__badges span {
    display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: #fff;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(4px);
    padding: 7px 14px; border-radius: 30px;
}
.hero__badges span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #7fd6b4; flex: none; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: var(--radius-sm);
    font-weight: 700; font-size: 0.95rem; border: 1px solid transparent;
    transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); border-color: #fff; }
.btn-dark { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn-dark:hover { background: #000; transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Section shell ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-tag {
    display: flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 700; font-size: 0.85rem;
    letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px;
}
.section-tag::before { content: ''; width: 18px; height: 2px; background: var(--accent); display: inline-block; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- Photo wall (masonry-style photo grid) ---------- */
.photo-wall { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 130px; grid-auto-flow: dense; gap: 12px; }
.photo-wall .tile { position: relative; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .3s var(--ease); }
.photo-wall .tile:hover { box-shadow: var(--shadow-md); }
.photo-wall .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.photo-wall .tile:hover img { transform: scale(1.06); }
.photo-wall .tile .tile-label {
    position: absolute; inset: auto 0 0 0; padding: 14px 16px; color: #fff; font-size: .82rem; font-weight: 600;
    background: linear-gradient(0deg, rgba(0,0,0,.68), transparent); opacity: 0; transition: opacity .25s var(--ease);
}
.photo-wall .tile:hover .tile-label { opacity: 1; }
.photo-wall.labels-visible .tile-label { opacity: 1; background: linear-gradient(0deg, rgba(0,0,0,.6), transparent); }
.photo-wall .tile.big { grid-column: span 2; grid-row: span 2; }
.photo-wall .tile.tall { grid-row: span 2; }
.photo-wall .tile.wide { grid-column: span 2; }
@media (max-width: 900px) {
    .photo-wall { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
    .photo-wall .tile.big { grid-column: span 2; grid-row: span 2; }
    .photo-wall .tile.tall { grid-row: span 1; }
    .photo-wall .tile.wide { grid-column: span 2; }
}

/* ---------- Value proposition ---------- */
.value-strip { text-align: center; padding: 56px 0; }
.value-strip h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; margin-bottom: 14px; }
.value-strip p { color: var(--ink-soft); max-width: 620px; margin: 0 auto; }

/* ---------- Quick links ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quick-card {
    position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3;
    box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.quick-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.quick-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.quick-card:hover img { transform: scale(1.07); }
.quick-card__label { position: absolute; inset: auto 0 0 0; padding: 18px; background: linear-gradient(0deg, rgba(0,0,0,.76), transparent 70%); color: #fff; }
.quick-card__label strong { display: block; font-size: 1.02rem; margin-bottom: 2px; }
.quick-card__label span { font-size: .82rem; color: #e6e6e6; }
@media (max-width: 900px) { .quick-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .quick-grid { grid-template-columns: 1fr; } }

/* ---------- Brand / service definition (G-6) ---------- */
.brand-section { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.brand-section .brand-copy h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-bottom: 16px; }
.brand-section .brand-copy p { color: var(--ink-soft); margin-bottom: 16px; }
.brand-types { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.brand-type-card {
    position: relative; background: var(--accent-soft); border-radius: var(--radius-md); padding: 22px 20px 20px;
    box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
    border-top: 3px solid var(--accent);
}
.brand-type-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.brand-type-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--accent-dark); }
.brand-type-card p { font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 860px) { .brand-section { grid-template-columns: 1fr; } }

/* ---------- Trust / credentials ---------- */
.trust-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.trust-copy p { color: var(--ink-soft); margin-bottom: 14px; }
.trust-copy ul { margin-top: 18px; }
.trust-copy li { position: relative; padding-left: 20px; margin-bottom: 10px; color: var(--ink); font-size: .95rem; }
.trust-copy li::before { content: ''; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat-card {
    background: var(--surface); border-radius: var(--radius-md); padding: 22px 20px; text-align: left;
    box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-card .stat-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
    border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark); margin-bottom: 12px;
}
.stat-card strong { display: block; font-size: 1.15rem; font-weight: 800; color: var(--accent-dark); margin-bottom: 2px; }
.stat-card span { font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 860px) { .trust-wrap { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.process-step {
    position: relative; background: var(--surface); border-radius: var(--radius-md); padding: 24px 20px;
    box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
    border-top: 3px solid var(--accent);
}
.process-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.process-step .step-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
    border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); margin-bottom: 14px;
}
.process-step .num { position: absolute; top: 20px; right: 20px; font-size: 1.1rem; font-weight: 800; color: var(--line); }
.process-step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.process-step p { font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cases ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
    background: var(--surface); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column;
    box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.case-card__img { aspect-ratio: 4/3; overflow: hidden; }
.case-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.case-card:hover .case-card__img img { transform: scale(1.06); }
.case-card__body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.case-card__meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: .8rem; color: var(--ink-soft); }
.case-card__meta span { background: var(--accent-soft); color: var(--accent-dark); padding: 3px 10px; border-radius: 20px; font-weight: 600; }
.case-card h3 { font-size: 1.08rem; font-weight: 700; }
.case-card p { font-size: .88rem; color: var(--ink-soft); }
.case-card__link { margin-top: auto; font-weight: 700; color: var(--accent); font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; transition: gap .2s var(--ease); }
.case-card:hover .case-card__link { gap: 10px; }
@media (max-width: 900px) { .case-grid { grid-template-columns: 1fr; } }

/* ---------- Featured CTA banner ---------- */
.cta-banner { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 340px; display: flex; align-items: center; box-shadow: var(--shadow-lg); }
.cta-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15,20,18,.9) 15%, rgba(15,20,18,.45) 65%, rgba(15,20,18,.15) 100%); }
.cta-banner__content { position: relative; z-index: 2; color: #fff; padding: 44px; max-width: 560px; }
.cta-banner__content .section-tag { color: #a9d8c4; }
.cta-banner__content .section-tag::before { background: #a9d8c4; }
.cta-banner__content h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 14px; }
.cta-banner__content p { color: #e7e9e7; margin-bottom: 22px; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 18px 0; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 1rem; color: var(--ink); }
.faq-q::after { content: '+'; font-size: 1.3rem; color: var(--accent); }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .2s ease; color: var(--ink-soft); font-size: .92rem; }
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfd2ce; padding: 60px 0 0; position: relative; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), transparent 70%); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; letter-spacing: -0.01em; }
.footer-grid li { margin-bottom: 9px; font-size: .87rem; }
.footer-grid a { transition: color .2s var(--ease); }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: .8rem; color: #9a9d99; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: #9a9d99; transition: color .2s var(--ease); }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Floating call button ---------- */
.floating-call {
    position: fixed; right: 18px; bottom: 18px; z-index: 200; background: var(--accent); color: #fff; padding: 14px 20px;
    border-radius: 30px; font-weight: 700; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 8px;
    transition: background .2s var(--ease), transform .2s var(--ease);
}
.floating-call:hover { background: var(--accent-dark); transform: translateY(-3px); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .82rem; color: var(--ink-soft); margin-bottom: 20px; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Case detail story ---------- */
.case-detail-head { padding: 48px 0 36px; background: var(--surface); border-bottom: 1px solid var(--line); }
.case-detail-head h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 700; margin-bottom: 14px; }
.case-detail-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.case-detail-meta span { background: var(--accent-soft); color: var(--accent-dark); font-size: .82rem; font-weight: 700; padding: 5px 12px; border-radius: 20px; }

/* ---------- Stage sections (case detail) ---------- */
.stage-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.stage-num {
    display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none;
    border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: .85rem;
}
.stage-eyebrow span:last-child { font-weight: 700; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-dark); }
.story-block { max-width: 760px; margin: 0 auto; }
.story-text { font-size: 1.02rem; color: var(--ink); margin-bottom: 26px; }
.story-text h2, .story-text h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.story-photo { margin: 0 0 30px; }
.story-photo img { border-radius: var(--radius-md); width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-md); }
.story-photo figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: 8px; }
.summary-list li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.summary-list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.quote-block { background: var(--accent-soft); border-radius: var(--radius-md); padding: 24px; margin: 30px 0; border-left: 3px solid var(--accent); }
.quote-block p { font-size: 1rem; font-style: normal; color: var(--ink); margin-bottom: 10px; }
.quote-block span { font-size: .85rem; color: var(--ink-soft); font-weight: 700; }
.related-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.related-links a {
    background: var(--surface); border: 1px solid var(--line); padding: 10px 16px; border-radius: var(--radius-sm);
    font-weight: 700; font-size: .9rem; box-shadow: var(--shadow-sm);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.related-links a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Generic content page ---------- */
.page-head { padding: 48px 0 26px; }
.page-head h1 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); font-weight: 700; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.25rem; font-weight: 700; margin: 34px 0 12px; }
.prose h3 { font-size: 1.08rem; font-weight: 700; margin: 22px 0 8px; }
.prose p { color: var(--ink); margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 20px; list-style: disc; }
.prose li { margin-bottom: 6px; color: var(--ink); }
.prose figure { margin: 0; }
.prose img { width: 100%; height: auto; border-radius: var(--radius-md); margin: 10px 0 20px; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-md); }
.prose figcaption { font-size: .85rem; color: var(--ink-soft); margin: -12px 0 20px; }
.compare-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: .92rem; }
.compare-table th, .compare-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.compare-table th { background: var(--accent-soft); color: var(--accent-dark); }

/* ---------- Sitemap page ---------- */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sitemap-grid a {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; font-weight: 600;
    box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.sitemap-grid a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent); }
@media (max-width: 860px) { .sitemap-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Detail keyword pages (before/after cards, lead, wide blocks) ---------- */
.page-lead { max-width: 760px; margin-top: 14px; font-size: 1.05rem; color: var(--ink-soft); }
.wide-block { margin: 26px 0 34px; }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ba-card { background: var(--surface); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border-top: 3px solid var(--accent); }
.ba-card--after { border-top-color: var(--accent-dark); }
.ba-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.ba-card__body { padding: 16px 18px 18px; }
.ba-card__chip { display: inline-block; background: var(--accent-soft); color: var(--accent-dark); font-size: .78rem; font-weight: 800; padding: 3px 11px; border-radius: 20px; margin-bottom: 8px; }
.ba-card__body p { font-size: .9rem; color: var(--ink-soft); margin: 0; }
.detail-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.detail-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.prose .summary-list { list-style: none; padding-left: 0; }
@media (max-width: 700px) { .ba-grid, .detail-cards { grid-template-columns: 1fr; } }

/* ---------- 2차 보정: 섹션/제목 구분, 사진 비율, 하단 사진 카드 ---------- */
.prose img { aspect-ratio: 16 / 10; object-position: center 45%; max-height: 420px; margin: 14px 0 8px; }
.prose figure { margin: 8px 0 26px; }
.prose figcaption { margin: 0; padding-top: 4px; }
.ba-card img { aspect-ratio: 16 / 11; max-height: 300px; }
.section + .section { border-top: 1px solid var(--line); }
.section-alt + .section-alt { border-top-color: var(--line); }
.prose h2 { position: relative; margin: 54px 0 16px; padding: 30px 0 0 16px; border-top: 1px solid var(--line); font-size: 1.35rem; }
.prose h2::before { content: ''; position: absolute; left: 0; top: 34px; width: 4px; height: 1.25em; background: var(--accent); border-radius: 2px; }
.prose > h2:first-child, .prose > .section-tag + h2 { margin-top: 6px; padding-top: 0; border-top: 0; }
.prose > .section-tag + h2::before, .prose > h2:first-child::before { top: 4px; }
.prose h3 { margin: 28px 0 10px; padding-left: 12px; border-left: 3px solid var(--accent-soft); color: var(--accent-dark); font-size: 1.08rem; }
.prose .section-tag { margin-bottom: 8px; }
.prose p + p { margin-top: -2px; }
.wide-block { margin: 30px 0 40px; }
.related-section { border-top: 1px solid var(--line); }
.related-section .section-head { margin-bottom: 26px; }
.related-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.related-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.related-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.related-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.related-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.related-card:hover .related-card__img img { transform: scale(1.07); }
.related-card__body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; flex: 1; }
.related-card__body em { font-style: normal; font-size: .75rem; font-weight: 800; color: var(--accent); letter-spacing: .04em; }
.related-card__body strong { font-size: 1.02rem; font-weight: 700; color: var(--ink); line-height: 1.4; }
.related-card__go { margin-top: auto; padding-top: 8px; font-size: .85rem; font-weight: 700; color: var(--accent-dark); }
@media (max-width: 960px) { .related-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .related-cards { grid-template-columns: 1fr; } }
