/* CHON 홈페이지 스타일시트 — 모든 페이지가 이 파일 하나를 불러온다.
   구획은 구성 요소·페이지 기준이다(토큰 → 기본 → 공통 → 서비스 페이지의 섹션들 → 하위 페이지들).
   한 구획 안에서는 규칙 순서가 우선순위다 — 같은 명시도라면 뒤의 규칙이 이긴다. 구획 안의 순서를 바꿀 때는 조심할 것.
   중단점: 480 · 640 · 760(모바일) · 900(본문 2단→1단) · 968(메뉴 → 햄버거) · 1100. 새 규칙은 이 값만 쓴다.
   맨 뒤의 "순서에 기대는 규칙"은 다른 구획의 규칙을 순서로 이기는 것들이라 제자리에 둔다. */

/* ==========================================================================
   디자인 토큰 (색 · 글꼴 · 간격 · 글자 크기)
   ========================================================================== */
/* Design System Variables */
:root {
    /* Primary Brand Colors (refined) */
    /* deep navy */
    /* vivid blue */
    /* warm red accent */
    /* Background Colors */
    /* Text Colors */
    --white: #ffffff;
    /* Border & Divider Colors */
    /* Gradients */
    /* Shadows */
    /* Border Radius */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    /* Border Radius — legacy aliases for --border-radius-* naming in style.css/pages.css */
    --border-radius-sm: var(--radius-sm);
    --border-radius-md: var(--radius-md);
    --border-radius-lg: var(--radius-lg);
    /* Spacing */
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    /* Typography */
    /* Noto Sans KR을 Inter보다 앞에 두어 한글 글리프 우선 적용 (Edge에서 한글 깨짐 방지) */
    /* Font Sizes */
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    /* Line Heights */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.65;
    /* Transitions */
    --transition-fast: 0.15s ease-out;
    --transition-base: 0.3s ease-out;
    /* Z-Index Scale */
    --z-fixed: 1030;
}
/* Corporate Visual Refinement */
:root {
    --gradient-subtle: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
    --shadow-md: 0 10px 24px rgba(15, 23, 36, 0.08);
    --shadow-lg: 0 18px 40px rgba(15, 23, 36, 0.08);
}
:root {
    /* 라이브 chon.ai(2026-09 리뉴얼)에서 뽑은 값입니다.
    브랜드는 오렌지이고, 바탕은 흰색에 가까운 따뜻한 회백색,
    글자는 검정에 가깝습니다. 저장소에 남아 있던 네이비·블루는
    그 이전 세대입니다. */
    --brand-blue: var(--brand-orange);  /* 이름은 유지하고 값만 브랜드색으로 */
    /* 기존 스타일시트가 쓰는 토큰도 같은 팔레트로 맞춥니다 */
    --primary-color: #1e1e1e;
    --text-dark: var(--ink);
    --text-light: var(--ink-2);
}

@media (max-width: 760px) {
    :root { --pad-section: 44px; }
}

@media (max-width: 968px) {
    :root { --nav-h: 72px; }
}
:root {
    --brand-orange: #ff9600;
    --brand-orange-text: #b85000;  /* 글자용 — #fafafa 위 4.8:1 (밝은 오렌지는 2.1:1 이라 점·선·면에만) */
    --ivory: #fafafa;
    --ivory-2: #f3f3f3;
    --ink: #1e1e1e;
    --rule: #e9e9e9;
    --border-light: #e9e9e9;
    --border-medium: #d9d9d9;
    --accent-color: #ff9600;
    --highlight-color: #ff9600;
    --gradient-primary: linear-gradient(135deg, #ff9600 0%, #ffb340 100%);
    --font-display: 'Inter', 'Pretendard', 'Noto Sans KR', system-ui, sans-serif;
    --font-sans: 'Pretendard', 'Noto Sans KR', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --pad-section: clamp(72px, 9vw, 128px);
    --nav-h: 80px;
}

@media (max-width: 760px) {
    :root { --pad-section: 56px; }
}
:root {
    --ink-2: #5f5f5f; --ink-3: #5f5f5f; --radius-card: 24px;
    --t-block: clamp(1.4rem, 2vw, 1.875rem); --t-card: clamp(1.2rem, 1.5vw, 1.375rem); --t-body: 17px; --t-small: 16px;
}

/* ==========================================================================
   기본 — 리셋 · 타이포그래피 · 공통 요소
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
/* Base Styles & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html { scroll-behavior: smooth; }
/* Edge(Chromium)에서 한글이 가는 가중치로 렌더링될 때
"촌"이 "천"처럼 보이는 sub-pixel anti-aliasing 문제 방지.
문서 lang="ko"이므로 :lang(ko)는 모든 요소에 매치됨 → 렌더링 품질만 전역 적용,
font-weight는 헤딩(h1~h6, strong 등)을 깨지 않도록 본문 인라인/블록 텍스트에만 한정 */
:lang(ko),
[lang="ko"] {
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* 본문 텍스트 요소: 최소 weight 400 보장 (light 300 fallback 차단) */
:lang(ko) p,
:lang(ko) span,
:lang(ko) a,
:lang(ko) li,
:lang(ko) td,
:lang(ko) th,
:lang(ko) label,
:lang(ko) input,
:lang(ko) textarea,
:lang(ko) select,
:lang(ko) button,
:lang(ko) blockquote,
:lang(ko) figcaption,
:lang(ko) small {
    font-weight: 400;
}
/* Enhanced Typography Scale */
h1, h2, h3, h4, h5, h6 {
    line-height: var(--leading-tight);
    color: var(--text-dark);
    margin-bottom: var(--space-md);
    letter-spacing: -0.025em;
}
h1 { font-size: var(--text-5xl); font-weight: 800; }
h2 { font-size: var(--text-4xl); font-weight: 700; }
h3 { font-size: var(--text-3xl); font-weight: 600; }
h4 { font-size: var(--text-2xl); font-weight: 600; }
h5 { font-size: var(--text-xl); font-weight: 500; }
h6 { font-size: var(--text-lg); font-weight: 500; }
p {
    margin-bottom: var(--space-md);
    line-height: var(--leading-relaxed);
    color: var(--text-light);
}
/* Enhanced Link Styles */
a {
    color: var(--brand-orange-text);
    text-decoration: none;
    transition: var(--transition-base);
    position: relative;
}
a:hover { color: var(--highlight-color); }
a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}

/* Hide every FontAwesome icon */
i[class*="fa-"] { display: none; }

@media (max-width: 968px) {
    [id] { scroll-margin-top: 76px; }
}
body {
    line-height: var(--leading-normal);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
    background: var(--ivory);
    color: var(--ink);
}
h1, h2, h3, h4, p, li, summary { word-break: keep-all; }
/* ── 언어별로 하나만 보이는 요소 ───────────────────────── */
html[lang="en"] .lang-ko, html:not([lang="en"]) .lang-en { display: none; }
@keyframes carousel-fill { from { width: 0; } to { width: 100%; } }

/* 클릭·탭 시 테두리(포커스 링·탭 하이라이트) 제거 — 키보드 포커스에만 남긴다 */
a, button, select, summary, [tabindex] { -webkit-tap-highlight-color: transparent; }

/* ==========================================================================
   공통 레이아웃 — 섹션 · 컨테이너 · 섹션 머리말 · 여러 구획에 걸친 규칙
   ========================================================================== */
/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}
/* Performance Optimizations */
.btn,
.service-card-new,
.news-card,
.partner-card {
    will-change: transform;
    transform: translateZ(0);
}

@media (max-width: 760px) {
    section { padding: 60px 0; }
}
/* Section */
/* Optimized Section Styles - Compact and Professional */
section {
    padding: 80px 0;
    position: relative;
}
.section-header { position: relative; }
.section-header::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

@media (max-width: 968px) {
    .container { padding: 0 16px; }
    section { padding: 60px 0; }
}

@media (max-width: 640px) {
    section { padding: 50px 0; }
}
.services-section,
.partners-section { padding: 110px 0; }
.section-header { margin: 0 auto 56px; }
.section-header::after,
.service-card-new::before,
.partner-card::before { display: none; }
.service-badge,
.tag {
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
}

@media (max-width: 968px) {
    body .news-tags .tag,
    body .news-card .tag,
    body span.tag {
        background: transparent;
        background-image: none;
        background-color: transparent;
        color: #565656;
        border: 0;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
        text-shadow: none;
        text-transform: none;
        letter-spacing: 0;
        font-size: 15px;
        font-weight: 600;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}
/* Hide icon wrappers/backgrounds and collapse the empty space they leave */
.overview-badge,
.partner-logo {
    display: none;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
}
/* Remove decorative icon list-markers (FontAwesome content via ::before) */
.feature-item::before {
    content: none;
    display: none;
}
.patent-status-badge,
.service-badge {
    background: none;
    background-color: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    text-shadow: none;
    list-style: none;
    font-weight: 600;
}
/* Status badges (patent, news featured) as bold inline labels */
.patent-status-badge,
.service-badge { display: inline-block; }
.feature-item span {
    background: none;
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    list-style: none;
    text-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
#services, #genealogy, #genealogy-detail,
#traction, #faq, #download, .partners-section { padding-block: var(--pad-section); }
/* 섹션 헤더: 제목과 본문 사이의 빈 구간을 좁힙니다 */
.section-header { padding-bottom: 0; }
/* 섹션 헤더의 남는 여백 정리 */
.section-header .section-subtitle { margin: 0 0 6px; }
.section-header .section-title { margin: 6px 0 8px; }
.section-header .section-description {
    margin-bottom: 0;
    margin-top: 8px;
}
/* 앵커로 이동했을 때 상단 고정 내비에 제목이 가리지 않도록 */
#services, #genealogy, #genealogy-detail, #traction,
#faq, #download, #company, #vision,
#team, #milestones, #location, #inquiry, #partners {
    scroll-margin-top: 84px;
}
.section-title, h1, h2, h3 { font-family: var(--font-sans); }
body, p, li, td, th, input, textarea, button, .btn { font-family: var(--font-sans); }
h1, h2, .section-title, .hero3-title { font-family: var(--font-display); }
.hero3-title, .section-title, .services-grid .service-card-new h3 { font-feature-settings: "ss01", "cv11"; }
/* Figma 는 면이 하나뿐입니다 — 섹션마다 바뀌던 배경을 걷어냅니다 */
.hero, #services, #film, #genealogy, #genealogy-detail, #traction,
#faq, .faq-section, #download, .partners-section, .footer { background: var(--ivory); }
/* 배경 리듬 (HOME-96): 서비스 페이지의 모든 섹션이 같은 #fafafa 라 8,000px 동안 경계가 여백뿐이었다 — 한 칸 건너 옅은 띠 */
body[data-page="index"] #genealogy, body[data-page="index"] #traction { background: var(--ivory-2); }
/* ── 섹션 헤더 ─────────────────────────────────────────────
기본은 왼쪽 정렬. 족보 개요·특허·다운로드만 가운데입니다. */
.section-header {
    max-width: 900px; margin-inline: 0; text-align: left;
    margin-bottom: clamp(32px, 4vw, 56px);
}
.section-subtitle {
    border-radius: var(--radius-full);
    background: transparent;
    border: 0;
    padding: 0;
    display: block;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: lowercase;
    color: var(--brand-orange-text);
    margin: 0 0 14px;
}
.section-subtitle::first-letter { text-transform: uppercase; }
.section-title {
    font-family: var(--font-display); font-weight: 800;
    font-size: clamp(2rem, 4.2vw, 3.75rem); line-height: 1.18;
    letter-spacing: -.03em; color: var(--ink);
    text-wrap: balance;
}
.section-description {
    line-height: 1.65;
    color: var(--ink-2); margin: 0; max-width: 60ch;
}
body[data-page] section[id], body[data-page] section[class] { padding-block: var(--pad-section); }
body[data-page] .section-header .section-subtitle { display: block; }
body[data-page="contact"] .inquiry-form input:not([type="checkbox"]), body[data-page="contact"] .inquiry-form select, body[data-page="contact"] .inquiry-form textarea {
    width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
    border: 1px solid var(--border-medium); border-radius: 12px; padding: 12px 14px; margin: 0; box-shadow: none;
}
/* 카드 1종 */
#traction .patent-card,
body[data-page="about"] .visual-card {
    background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-card);
    text-align: left; box-shadow: none; align-items: flex-start;
}
body[data-page="about"] .visual-card h4,
#traction .traction-brand h3 {
    font-family: var(--font-display); font-size: var(--t-card); font-weight: 700; line-height: 1.35; letter-spacing: -.02em; color: var(--ink); margin: 0 0 12px;
}
/* 라운드 24 하나로 */
#download .dl-box, .film, .carousel-slides, .service-photo, body[data-page="about"] .map-placeholder,
body[data-page="about"] .team-card img, body[data-page="ceo"] .ceo-photo {
    border-radius: var(--radius-card);
}
/* 섹션 간격·구분선 통일 (안내 페이지의 옛 구분선·여백 제거) */
body[data-page] section {
    background: var(--ivory);
    border: 0;
    margin: 0;
}
body[data-page] section::before, body[data-page] section::after, body[data-page] .company-section::before { display: none; }
.film-play:focus:not(:focus-visible), .carousel-toggle:focus:not(:focus-visible), .hero3-badges a:focus:not(:focus-visible), #download .store-button:focus:not(:focus-visible) { outline: none; }
.carousel-toggle:focus-visible, .hero3-badges a:focus-visible, #download .store-button:focus-visible { outline: 3px solid var(--brand-orange); outline-offset: 3px; }
body[data-page="about"] .location-info, body:is([data-page="about"], [data-page="contact"]) .location-details, body[data-page="about"] .location-content {
    border: 0; background: transparent; box-shadow: none; padding: 0; border-radius: 0;
}
/* 본문 17 / 보조 15 / 미세 13 */
body:is([data-page="about"], [data-page="contact"]) .location-item p, body[data-page="ceo"] .message-text p,
body[data-page="privacy-policy"] .privacy-section p, body[data-page="terms"] .privacy-section p,
body[data-page="privacy-policy"] .privacy-section li, body[data-page="terms"] .privacy-section li,
body[data-page="privacy-policy"] .intro-text {
    font-size: var(--t-body);
}
body[data-page="news"] .news-card .news-meta, body[data-page="news"] .news-card .news-date, body[data-page="news"] .news-card .news-source,
body[data-page="about"] .visual-card p, body[data-page="about"] .team-card p {
    font-size: var(--t-small);
}

@media (max-width: 760px) {
    .section-subtitle, .hero3-eyebrow, .section-header .section-subtitle { font-size: 16px; line-height: 1.5; margin: 0 0 14px; }
    .section-header .section-title { margin-top: 0; }
}

/* ==========================================================================
   상단 내비게이션 · 언어 선택 · 모바일 메뉴
   ========================================================================== */
/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    -webkit-backdrop-filter: blur(20px);
    z-index: var(--z-fixed);
    transition: var(--transition-base);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand a { text-decoration: none; }

@media (max-width: 968px) {
    body .nav-actions { gap: 10px; }
    body .nav-menu.active > li > a,
    body .nav-menu.active .dropdown > a { justify-content: space-between; }
}

@media (max-width: 640px) {
    body .nav-menu.active { padding: 16px; }
    body .nav-menu.active .dropdown > a,
    body .nav-menu.active > li > a { padding: 14px 16px; }
}
.nav-brand {
    display: flex;
    align-items: center;
    transition: var(--transition-base);
}
.nav-brand img { transition: var(--transition-base); }
.nav-menu > li { position: relative; }
.dropdown:hover .dropdown-menu {
    transition-delay: 0s;
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu a:hover {
    background: var(--gradient-subtle);
    color: var(--brand-orange-text);
    transform: translateX(4px);
}
/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}
.nav-menu > li > a {
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 16px;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: block;
}
.nav-menu > li > a::after { display: none; }
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}
.mobile-menu-toggle:hover {
    color: var(--brand-orange-text);
    background: rgba(26, 26, 46, 0.05);
}
.dropdown::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    transition-delay: 0.15s;
    pointer-events: none;
    z-index: 1001;
    list-style: none;
    padding: var(--space-sm);
    margin-top: 12px;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
    pointer-events: auto;
}
.dropdown-menu li {
    margin: 0;
    list-style: none;
}
.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
    border-radius: var(--radius-sm);
    margin: 0;
    position: relative;
    overflow: visible;
}
.dropdown-menu a:hover,
.dropdown-menu a:focus {
    background: var(--gradient-subtle);
    color: var(--brand-orange-text);
    transform: translateX(4px);
}
.dropdown-menu a::before,
.dropdown-menu a::after { display: none; }
/* Mobile Menu */
/* Mobile Menu Styles */
.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 16px 16px;
    z-index: 1002;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.nav-menu.active .dropdown { margin: 8px 0; }
.nav-menu.active .dropdown > a {
    padding: 16px 20px;
    border-radius: var(--border-radius-md);
    background: rgba(26, 26, 46, 0.02);
    margin-bottom: 8px;
}
.nav-menu.active .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    margin: 0;
    border-radius: 0;
    padding: 0;
    border: none;
}
.nav-menu.active .dropdown.active .dropdown-menu { display: block; }
.nav-menu.active .dropdown-menu a {
    padding: 10px 20px;
    margin: 0;
    font-size: 15px;
    color: var(--text-dark);
    background: transparent;
}

@media (max-width: 968px) {
    .nav-menu.active .dropdown.active .dropdown-menu { display: block; }
    .nav-menu { display: none; }
    /* Ensure mobile menu appears above all content */
    .navbar { z-index: 1003; }
    .nav-menu.active {
        max-height: calc(100vh - 92px);
        overflow-y: auto;
        gap: 12px;
        display: flex;
        z-index: 1002;
    }
    /* Navigation styles */
    .dropdown-menu {
        display: none;
        z-index: 1001;
    }
}

@media (max-width: 760px) {
    /* Navigation */
    .nav-menu { display: none; }
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    background: #eef3f8;
    color: var(--primary-color);
    transform: none;
}

@media (max-width: 968px) {
    .navbar .nav-menu.active {
        padding: 6px 0 14px; gap: 0;
        box-shadow: 0 18px 40px rgba(19,26,36,.10);
        border-bottom: 1px solid var(--rule);
        max-height: calc(100dvh - 72px); overflow-y: auto;
    }
    .navbar .nav-menu.active > li { width: 100%; }
    .navbar .nav-menu.active .dropdown-menu { padding: 4px 0 8px; background: var(--ivory); }
    .navbar .nav-menu.active .dropdown-menu a {
        display: block; text-align: left; padding: 11px 22px 11px 34px;
        font-size: 15px; color: var(--ink-2); position: relative;
    }
    .navbar .nav-menu.active .dropdown-menu a::before {
        content: ""; position: absolute; left: 22px; top: 50%;
        width: 4px; height: 1px; background: var(--ink-3);
    }
    .navbar .nav-menu.active .dropdown-menu a:active { color: var(--brand-blue); }
    .navbar .mobile-menu-toggle {
        width: 40px; height: 40px; display: inline-flex;
        align-items: center; justify-content: center; position: relative;
        background: transparent; border: 0; cursor: pointer;
    }
    .navbar .mobile-menu-toggle::before { top: 13px; }
    .navbar .mobile-menu-toggle::after { bottom: 13px; }
    .navbar .mobile-menu-toggle span.bar { top: 19px; }
    /* 열림 상태에서는 X 로 */
    .navbar .mobile-menu-toggle::before,
    .navbar .mobile-menu-toggle::after,
    .navbar .mobile-menu-toggle span.bar {
        content: "";
        position: absolute;
        left: 10px;
        width: 20px;
        height: 2px;
        background: var(--ink);
        border-radius: 2px;
        transition: transform var(--transition-fast), opacity var(--transition-fast);
    }
    .navbar .mobile-menu-toggle[aria-expanded="true"]::before { top: 19px; transform: rotate(45deg); }
    .navbar .mobile-menu-toggle[aria-expanded="true"]::after { bottom: 19px; transform: rotate(-45deg); }
    .navbar .mobile-menu-toggle[aria-expanded="true"] span.bar { opacity: 0; }
    .navbar .mobile-menu-toggle.active::before { top: 19px; transform: rotate(45deg); }
    .navbar .mobile-menu-toggle.active::after { bottom: 19px; transform: rotate(-45deg); }
    .navbar .mobile-menu-toggle.active span.bar { opacity: 0; }
}
/* ── 서비스 · 안내를 누르면 그 페이지로 갑니다 ────────────
모바일에서 상위 항목이 펼침 전용이라 index.html / about.html 자체에는
갈 수 없었습니다. 라벨은 이동, 오른쪽 버튼은 펼침으로 나눕니다. */
.dropdown > .dropdown-toggle { display: none; }

@media (max-width: 968px) {
    .navbar .nav-menu.active > li.dropdown {
        display: grid; grid-template-columns: 1fr 56px; align-items: stretch;
        border-bottom: 1px solid var(--rule);
    }
    .navbar .nav-menu.active > li.dropdown > .dropdown-menu { grid-column: 1 / -1; }
    body .navbar .nav-menu.active .dropdown > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        text-align: left;
        padding: 15px 22px;
        font-size: 16px;
        font-weight: 700;
        color: var(--ink);
        background: transparent;
        border-radius: 0;
        border-bottom: 0;
        padding-right: 8px;
    }
    .navbar .nav-menu.active .dropdown > .dropdown-toggle {
        display: flex; align-items: center; justify-content: center;
        background: transparent; border: 0; border-left: 1px solid var(--rule-2, #eee);
        cursor: pointer; padding: 0; position: relative;
    }
    .navbar .nav-menu.active .dropdown > .dropdown-toggle::after {
        content: ""; width: 9px; height: 9px;
        border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
        transform: rotate(45deg) translateY(-2px);
        transition: transform var(--transition-fast);
    }
    .navbar .nav-menu.active .dropdown.active > .dropdown-toggle::after {
        transform: rotate(-135deg) translateY(-2px);
        border-color: var(--brand-blue);
    }
    .navbar .nav-menu.active .dropdown > .dropdown-toggle:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: -3px; }
}
/* ── 내비게이션 ─────────────────────────────────────────── */
.navbar {
    background: rgba(250, 250, 250, .92);
    border-bottom: 1px solid transparent; padding: 22px 0;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.navbar.scrolled {
    padding: 14px 0;
    box-shadow: none;
    border-bottom-color: var(--rule);
}
/* 모바일 메뉴 항목 통일 (HOME-95): 서비스·문의는 15px/600·알약, 안내는 16px/700·다른 들여쓰기였고
   활성 항목은 옛 남색 시절의 푸른 회색 알약(#eef3f8)이었다 → 같은 크기·같은 선, 활성은 데스크톱처럼 글자색 */
@media (max-width: 968px) {
    body .navbar .nav-menu.active > li > a,
    body .navbar .nav-menu.active .dropdown > a {
        padding: 15px 22px; font-size: 16px; font-weight: 700; border-radius: 0;
        background: transparent; color: var(--ink);
    }
    body .navbar .nav-menu.active > li > a.active { color: var(--brand-orange-text); }
    .navbar .nav-menu.active > li, .navbar .nav-menu.active > li.dropdown { margin: 0; border-bottom: 1px solid var(--rule); }
    .navbar .nav-menu.active > li:last-child { border-bottom: 0; }
}
.nav-brand:hover { transform: none; }
.nav-brand img, .navbar.scrolled .nav-brand img { height: 26px; width: auto; }

@media (min-width: 969px) {
    .nav-menu { gap: 4px; }
    .nav-menu > li > a {
        font-family: var(--font-sans); font-weight: 500; font-size: 16px;
        color: var(--ink); padding: 10px 24px;
        background: transparent; transform: none; border-radius: 999px;
    }
    /* 옛 hover/.active 규칙(명시도 0,2,2)의 배경·색·이동을 데스크톱에서는 쓰지 않는다 */
    .nav-menu > li > a:hover, .nav-menu > li > a.active { background: transparent; transform: none; color: var(--ink); }
    .nav-menu.active .dropdown > a { background: transparent; }
    /* 모바일 메뉴를 연 채 창을 넓힌 경우 */
    .nav-menu > li > a.active { color: var(--brand-orange-text); }
    .nav-menu > li > a:hover { opacity: .55; }
}
/* 큰 글씨 (HOME-128) — 글자만 키우면 px 로 짜인 카드·칩·여백과 비율이 깨진다. 그래서 본문 전체를 같은 비율로 키운다(브라우저 확대와 같은 효과).
   내비는 뺀다: 고정 요소라 같이 커지면 모바일에서 화면을 더 가리고 버튼들이 넘친다. 미디어쿼리는 zoom 에 반응하지 않는다(실제 폭 기준). */
html[data-text-size="lg"] body > :not(.navbar, script, style) { zoom: 1.15; }
html[data-text-size="xl"] body > :not(.navbar, script, style) { zoom: 1.3; }
/* 아주 좁은 화면(≤360px): 로고와 간격을 조금 줄여 햄버거가 화면 밖으로 밀리지 않게 한다 */
@media (max-width: 360px) {
    body .nav-actions { gap: 6px; }
    .nav-brand img, .navbar.scrolled .nav-brand img { height: 22px; }
}
.lang-select {
    position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink);
}
.lang-select::before {
    content: ""; width: 22px; height: 22px; border-radius: 50%; flex: none;
    background: url("../images/figma/flag-kr.svg") center / cover no-repeat;
}
html[lang="en"] .lang-select::before { background-image: url("../images/figma/flag-us.svg"); }
.lang-select select {
    appearance: none; -webkit-appearance: none; border: 0; background: transparent;
    font: inherit; color: inherit; cursor: pointer; padding: 6px 18px 6px 0; margin: 0;
}
.lang-select select:focus-visible { outline: 2px solid var(--brand-orange); outline-offset: 2px; border-radius: 4px; }
.lang-select select.by-pointer:focus-visible { outline: none; }
/* 마우스·터치로 연 경우 (interactions.js) */
.lang-select::after {
    content: ""; position: absolute; right: 4px; top: 50%; width: 7px; height: 7px; margin-top: -5px;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg); pointer-events: none;
}
.lang-select:hover { opacity: .55; }
/* 글자 크기 선택 (HOME-131) — 언어 선택과 같은 드롭다운, 국기 자리에 '가'(영문 'A') */
.size-select::before {
    content: "가"; width: auto; height: auto; border-radius: 0; background: none;
    font-family: var(--font-sans); font-weight: 700; font-size: 18px; line-height: 1;
}
html[lang="en"] .size-select::before { content: "A"; background: none; }
/* 접힌 모습은 '가 ⌄' 만 — 옆의 'KO ⌄' 와 같은 무게. 네이티브 select 는 가장 긴 항목('글자 아주 크게') 너비로 잡혀
   고른 값과 화살표 사이가 벌어지고 모바일에서는 내비가 넘친다 → 투명한 select 가 라벨 위를 덮어, 누르면 목록이 열린다 */
.size-select { padding-right: 18px; min-height: 36px; }
.size-select select { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; opacity: 0; }
.size-select:focus-within { outline: 2px solid var(--brand-orange); outline-offset: 2px; border-radius: 4px; }
.size-select:has(select.by-pointer):focus-within { outline: none; }

/* ==========================================================================
   버튼
   ========================================================================== */

@media (max-width: 640px) {
    .btn { max-width: 280px; }
}
/* Button States */
/* Button States */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}
.btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}
/* Button System — Corporate Style (unified) */
/* Enhanced Button System */
/* Enhanced Button Styles */
.btn {
    letter-spacing: 0.01em;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
    user-select: none;
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}
.btn:hover::before { left: 100%; }
.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn:active { transform: translateY(0); }

/* ==========================================================================
   하위 페이지 머리말
   ========================================================================== */
.page-header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}
.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}
.breadcrumb {
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
}
.breadcrumb a {
    transition: all 0.3s ease;
}
.breadcrumb a:hover { opacity: 1; }
.breadcrumb span { opacity: 0.6; }

@media (max-width: 640px) {
    .breadcrumb { flex-direction: column; }
}

@media (max-width: 968px) {
    .page-header-background {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="header-dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23header-dots)"/></svg>');
    }
    .page-header-content {
        position: relative;
        z-index: 1;
        text-align: center;
    }
    .breadcrumb {
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 15px;
        /* 더 밝은 색상 */
    }
    .breadcrumb a {
        /* 더 밝은 색상 */
        transition: color 0.3s ease;
    }
    .breadcrumb span { color: rgba(255, 255, 255, 0.9); /* 더 밝은 색상 */ }
}
.page-header-background { opacity: .07; filter: grayscale(1); }
.page-header .page-title,
.page-header .page-subtitle,
.page-header .breadcrumb,
.page-header .breadcrumb a,
.page-header p {
    color: var(--ink); text-shadow: none;
}
.page-header .breadcrumb a { text-decoration: none; }
.page-header .breadcrumb, .page-header .breadcrumb * { background: transparent; }
/* about·ir의 페이지 제목이 흰 글자 + 그림자로 박혀 있어(어두운 배경 전제)
오렌지 헤더 위에서 읽히지 않습니다. 특이도를 올려 되돌립니다. */
body .page-header .page-title,
body[data-page] .page-header .page-title,
body .page-header h1.page-title {
    color: var(--ink);
    -webkit-text-fill-color: var(--ink);
    text-shadow: none;
}
.page-header-background { display: none; }
.page-header .page-subtitle, .page-header .breadcrumb { animation: none; opacity: 1; }
/* 어딘가에서 흰색 text-fill 이 박혀 글자가 사라졌습니다 — 글자색을 그대로 씁니다 */
body .page-header .page-subtitle, body .page-header .breadcrumb,
body .page-header .breadcrumb a, body .page-header .breadcrumb span {
    -webkit-text-fill-color: currentColor;
}
/* Page Header Styles */
/* ── 페이지 헤더를 전 페이지 같은 톤으로 ─────────────────
about·ir은 어두운 기술 패턴, ceo는 하늘색이라 페이지마다 인상이
달랐습니다. 히어로와 같은 오렌지 그라디언트에 어두운 글자로 통일합니다. */
/* 페이지 헤더: 왼쪽 정렬 제목 60 + 설명, 브레드크럼 없음 */
.page-header {
    position: relative;
    overflow: hidden;
    color: var(--ink);
    padding: calc(var(--nav-h) + clamp(40px, 6vw, 88px)) 0 clamp(24px, 3vw, 40px);
    text-align: left;
}
.page-header .page-header-content { max-width: 900px; margin: 0; }
body .page-header .page-subtitle { line-height: 1.65; margin: 0; text-align: left; max-width: 60ch; }
.page-header .breadcrumb { display: none; }
/* 페이지 머리: 아이브로 + 제목 60 + 설명 17 회색 */
body .page-header .page-title {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.03em;
    margin: 0 0 16px;
    text-align: left;
    font-size: clamp(2rem, 4.2vw, 3.75rem);
}
body .page-header .page-subtitle, body[data-page] .page-header .page-subtitle {
    text-shadow: none;
    color: var(--ink-2);
    font-size: var(--t-body);
}

@media (max-width: 760px) {
    /* 영문 전용 규칙(줄 간격 1.08)보다 모바일 줄 간격이 우선 */
    body[data-page] .page-header { text-align: left; }
}

/* ==========================================================================
   서비스 페이지 — 히어로
   ========================================================================== */
/* Enhanced Hero Section - Override existing styles */
.hero {
    position: relative;
    align-items: center;
}
.hero::before {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(79, 172, 254, 0.2) 0%, transparent 50%);
    z-index: 1;
}
.hero .container {
    position: relative;
    z-index: 2;
}
/* ── 히어로 ─────────────────────────────────────────────── */
body[data-page] section.hero.hero-v3 {
    min-height: 0; height: auto; display: block;
    overflow: visible; isolation: auto;
    padding: calc(var(--nav-h) + clamp(40px, 6vw, 88px)) 0 0;
}
.hero.hero-v3::before, .hero.hero-v3::after { content: none; display: none; }
.hero3-copy { padding: clamp(8px, 2vw, 32px) 0 clamp(16px, 2vw, 32px); }
.hero3-download { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hero3-dl-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink);
}
.hero3-dl-label img { height: 18px; width: auto; }
.hero3-badges { display: flex; flex-wrap: wrap; gap: 10px; }   /* 좁은 폭·큰 글씨에서는 두 줄로 — 한 줄 고정이면 가로로 넘친다 */
.hero3-badges a {
    height: 56px; padding: 0 20px 0 16px; gap: 10px; border: 2px solid var(--ink); border-radius: 12px;
    font-family: var(--font-display); font-weight: 700; font-size: 16px; white-space: nowrap;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--ink); text-decoration: none; background: #fff;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.hero3-badges a:hover { background: var(--ink); color: #fff; }
.hero3-badges a img { width: 28px; height: 28px; transition: filter var(--transition-fast); }
.hero3-badges a:hover img { filter: invert(1); }
/* 국문·영문 목업은 원본 구도가 달라(1217×1433 / 945×1248) 같은 상자에 맞춰 넣는다 */
.hero3-phones {
    justify-self: end; display: block; width: 100%; max-width: 560px;
    aspect-ratio: 1217 / 1433; height: auto; object-fit: contain; object-position: center bottom;
    filter: drop-shadow(0 30px 50px rgba(120, 70, 10, .18));
}

@media (max-width: 900px) {
    .hero3-copy { padding-bottom: 8px; }
    .hero3-phones { width: min(84%, 420px); justify-self: center; filter: none; }
}

@media (max-width: 760px) {
    .hero3-badges a { height: 52px; padding: 0 16px 0 12px; font-size: 16px; }
}
/* 히어로 아이브로·불릿 (아티팩트 문구 구조) */
.hero3-eyebrow { font-family: var(--font-display);     color: var(--brand-orange-text); margin: 0 0 18px; }
.hero3-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hero3-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-orange); }
/* 히어로: 제목 60, 아이브로·부제를 섹션과 같은 스타일로 */
.hero3-title {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.03em;
    color: var(--ink);
    margin: 0 0 clamp(20px, 2.4vw, 32px);
    text-wrap: balance;
    word-break: keep-all;
    font-size: clamp(2.2rem, 4.2vw, 3.75rem);
}
html[lang="en"] .hero3-title {
    line-height: 1.08;
    letter-spacing: -.035em;
    font-size: clamp(2.2rem, 4.2vw, 3.75rem);
}
p.hero3-eyebrow { font-size: clamp(15px, 1.25vw, 18px); font-weight: 500; letter-spacing: 0; text-transform: none; margin-bottom: 14px; }
.hero3-sub {
    line-height: 1.65;
    max-width: 34ch;
    margin: 0 0 clamp(24px, 3vw, 40px);
    font-size: var(--t-body);
    color: var(--ink-2);
}
.hero3-points li {
    color: var(--ink-2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--t-small);
}
/* 서비스 히어로 카피를 하위 페이지 제목과 같은 높이에서 시작 */
.hero3-copy { padding-top: 0; align-self: start; }
/* 카피(제목·설명·다운로드)는 왼쪽, 폰 목업은 오른쪽. 주황 박스는 뺐다(2026-09-18 검수). */
.hero3-grid {
    display: grid;
    column-gap: clamp(24px, 4vw, 64px);
    padding-bottom: clamp(24px, 3vw, 48px);
    align-items: start;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
}

@media (max-width: 900px) {
    .hero3-grid {
        row-gap: 8px;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    html[lang="en"] .hero3-title { line-height: 1.18; }
    .hero3-points { flex-direction: column; gap: 8px; }
}

/* ==========================================================================
   서비스 페이지 — 주요 서비스 카드
   ========================================================================== */
/* Optimized Services Section - Compact Design */
.services-section { position: relative; }
.services-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}
/* New Service Cards */
.service-card-new {
    max-width: 500px;
    display: flex;
    flex-direction: column;
}
.feature-item span { font-size: 15px; }

@media (max-width: 760px) {
    .services-grid {
        flex-direction: column;
        max-width: 500px;
    }
    .service-card-new { max-width: 100%; }
}
.service-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--radius-xl);
}
.service-card-new:hover::before { opacity: 1; }
.service-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.service-features-list { margin-top: 8px; }
.service-features-list .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0;
}
.service-features-list .feature-item span { font-weight: 500; }
.feature-item {
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
.feature-item p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-light);
}
.services-grid .service-badge {
    font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    margin-bottom: 16px;
}
.services-grid .feature-item span { color: inherit; }

@media (max-width: 760px) {
    .services-grid .service-badge { font-size: 10px; margin-bottom: 8px; }
}
.services-grid .service-badge { color: #a8500a; }
/* ── 핵심 서비스: 2 + 3 ─────────────────────────────────── */
.services-grid {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: start;
}
.services-grid .service-card-new:nth-child(-n + 2) { grid-column: span 3; }
.services-grid .service-card-content { padding: 0; }
.services-grid .service-badge { display: none; }
.services-grid .service-subtitle { color: var(--ink-2); font-weight: 400;  margin: 0 0 16px; }
.services-grid .service-description { color: var(--ink-2);  line-height: 1.65; margin: 0 0 22px; }
.services-grid .service-features-list {
    border-top: 0; padding-top: 0;
    display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px;
}
.services-grid .feature-item::before {
    font-weight: 700;
    margin-right: 8px;
    color: var(--brand-orange);
    content: none;
}
.services-grid .service-photo { transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.services-grid .service-card-new:hover .service-photo { transform: scale(1.02); }

@media (max-width: 760px) {
    .services-grid { grid-template-columns: 1fr; }
    .services-grid .service-features-list { gap: 6px; }
}
.services-grid .service-card-new h3 {
    color: var(--ink);
    text-wrap: balance;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0 0 6px;
    font-size: var(--t-block);
}

@media (min-width: 761px) and (max-width: 1100px) {
    .services-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .services-grid .service-card-new h3 { font-size: 20px; }
}
/* 서비스 카드: Figma 비율(위 590×450 · 아래 387×300), 카드 위 괘선, 칩은 테두리 없이 옅은 회색 면 */
.services-grid { border-top: 1px solid var(--rule); padding-top: 24px; gap: clamp(40px, 5vw, 64px) 24px; }
.services-grid .service-card-new:nth-child(n + 3) .service-photo { aspect-ratio: 387 / 300; }
.services-grid .service-card-new:nth-child(n + 3) { padding-top: 24px; }
.services-grid .feature-item {
    border-radius: 999px;
    font-size: 15px;
    color: var(--ink-2);
    line-height: 1.3;
    border: 0;
    background: var(--ivory-2);
    padding: 9px 16px;
}

@media (max-width: 760px) {
    .services-grid .service-card-new:nth-child(n + 3) { padding-top: 0; }
}
/* 카드 정렬 (HOME-94): 1행 카드가 옛 max-width 500px 에 걸려 컨테이너보다 56px 짧았다.
   한 줄의 카드는 높이를 맞추고 태그 줄을 아래로 붙여 줄이 어긋나지 않게 한다. */
#services .services-grid { align-items: stretch; }
#services .service-card-new { max-width: none; }
#services .service-card-content { display: flex; flex-direction: column; flex: 1; }
#services .service-features-list { margin-top: auto; }
/* 태그는 누를 수 없다 — 버튼처럼 보이던 그림자·떠오름을 뺀다 */
#services .feature-item, #services .feature-item:hover { box-shadow: none; transform: none; }

@media (max-width: 760px) {
    /* 모바일: 카드 5장이 세로로 3,400px 을 차지했다 → 옆으로 넘기는 한 줄 (다음 카드가 살짝 보인다) */
    #services .services-grid {
        display: flex; flex-flow: row nowrap; justify-content: flex-start; gap: 16px;
        max-width: none; margin-inline: -16px; padding-inline: 16px;
        overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
        scrollbar-width: none; overscroll-behavior-x: contain;
    }
    #services .services-grid::-webkit-scrollbar { display: none; }
    #services .service-card-new { flex: 0 0 84%; scroll-snap-align: start; }
    #services .service-card-new .service-photo { aspect-ratio: 387 / 300; }
}
.service-photo {
    display: block;
    object-fit: cover;
    background: var(--ivory-2);
    aspect-ratio: 590 / 450;
    margin-bottom: 24px;
    height: auto;
    width: 100%;
}

/* ==========================================================================
   서비스 페이지 — 브랜드 필름
   ========================================================================== */
/* 머리말 없이 서비스 카드 바로 밑에 영상만 붙어 있어 맥락 없이 나왔다 → 다른 섹션과 같은 머리말·여백 (HOME-101) */
#film { padding-block: var(--pad-section); }
/* ── 브랜드 필름 (YouTube, Figma 코드 컴포넌트와 같은 autoplay·mute·loop) ── */
.film { position: relative; margin: 0;  overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* 브랜드 필름 포스터 + 재생 버튼 (모바일은 탭해야 로드) */
.film-play { display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; position: relative; aspect-ratio: 16 / 9; }
.film-play img { display: block; width: 100%; height: 100%; object-fit: cover; }
.film-play-icon {
    position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px;
    border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    transition: transform var(--transition-fast), background var(--transition-fast);
}
.film-play-icon::after {
    content: ""; position: absolute; left: 29px; top: 22px; width: 0; height: 0;
    border-left: 20px solid var(--ink); border-top: 14px solid transparent; border-bottom: 14px solid transparent;
}
.film-play:hover .film-play-icon { transform: scale(1.06); background: #fff; }
.film-play:focus-visible { outline: 3px solid var(--brand-orange); outline-offset: 3px; }

/* ==========================================================================
   서비스 페이지 — 시작하기 · 서비스 개요 (캐러셀)
   ========================================================================== */
.overview-main { max-width: 900px; }
/* Genealogy Page Styles */
.genealogy-overview-section { padding: 100px 0; }
/* Getting Started Section */
.getting-started-section { padding: 100px 0; }
.getting-started-content { display: grid; }
.getting-started-info p {
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-light);
    margin-bottom: 35px;
}
.getting-started-steps {
    display: flex;
    flex-direction: column;
}
.step-item {
    display: flex;
    transition: all 0.3s;
}
.step-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}
.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.step-item span {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}
.getting-started-cta {
    justify-content: center;
    align-items: center;
}
.overview-badge {
    gap: 12px;
    font-weight: 600;
    align-items: center;
    border-radius: 999px;
    color: #23406a;
}
.overview-badge span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.overview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    width: 100%;
    align-items: center;
}

@media (max-width: 968px) {
    .overview-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}
#genealogy, #genealogy-detail { padding-block: var(--pad-section); }
/* ── 캐러셀 (Figma "Features carousel": 6초 페이드, 일시정지, 진행 막대) ── */
.carousel { position: relative; min-width: 0; width: 100%; }
.carousel-slides {
    position: relative; aspect-ratio: var(--ratio, 590 / 650); overflow: hidden;
    background: var(--ivory-2);
}
.carousel-slides > img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity .8s ease;
}
.carousel-slides > img.is-active { opacity: 1; }
.carousel-controls { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.carousel-toggle {
    position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%;
    border: 0; background: var(--ivory-2); cursor: pointer; padding: 0;
}
.carousel-toggle:hover { background: var(--rule); }
.carousel-toggle::before, .carousel-toggle::after {
    content: ""; position: absolute; top: 11px; left: 13px; width: 3px; height: 14px;
    background: var(--ink-2); border-radius: 1px;
}
.carousel-toggle::after { left: 20px; }
.is-paused .carousel-toggle::before {
    left: 14px; top: 10px; width: 0; height: 0; background: transparent; border-radius: 0;
    border-left: 12px solid var(--ink-2); border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}
.is-paused .carousel-toggle::after { display: none; }
.carousel-progress { display: flex; gap: 8px; flex: 1; }
.carousel-progress > span { position: relative; flex: 1; height: 4px; border-radius: 2px; background: var(--rule); overflow: hidden; }
.carousel-progress > span::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--ink-3); }
.carousel-progress > span.is-done::after { width: 100%; }
.carousel-progress > span.is-active::after { animation: carousel-fill var(--interval, 6s) linear forwards; }
.is-paused .carousel-progress > span.is-active::after, .is-hidden .carousel-progress > span.is-active::after { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
    .carousel-slides > img { transition: none; }
}
/* ── 시작하기 3단계 ──────────────────────────────────────── */
#genealogy .getting-started-content { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); }
#genealogy .getting-started-info h2 {
    font-family: var(--font-display); font-weight: 800;
    font-size: clamp(2rem, 4.2vw, 3.75rem); line-height: 1.18; letter-spacing: -.03em;
    margin: 0 0 18px; color: var(--ink); text-wrap: balance;
}
#genealogy .getting-started-steps { gap: 0; }
#genealogy .step-item {
    background: transparent; border-radius: 0; padding: 22px 0; gap: 28px;
    border-bottom: 1px solid var(--rule); align-items: baseline;
}
#genealogy .step-item:first-child { border-top: 1px solid var(--rule); }
#genealogy .step-item:hover { transform: none; box-shadow: none; }
#genealogy .step-number {
    width: auto; height: auto; border: 0; box-shadow: none; background: transparent;
    font-family: var(--font-display); font-weight: 500; font-size: 15px; color: var(--ink-2);
    font-variant-numeric: tabular-nums; border-radius: 0;
}
#genealogy .getting-started-cta { min-width: 0; display: block; }
/* ── 족보 개요 ───────────────────────────────────────────── */
#genealogy-detail .overview-content {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 80px); align-items: center;
}
#genealogy-detail .overview-main { margin: 0; }
#genealogy-detail .overview-description { line-height: 1.65; color: var(--ink-2); margin: 0; }

@media (max-width: 900px) {
    #genealogy .getting-started-content, #genealogy-detail .overview-content { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    #genealogy .step-item { gap: 18px; padding: 16px 0; }
    #genealogy .step-item span { font-size: 16px; }
}
/* 섹션 제목은 전부 왼쪽 — 다운로드 박스만 가운데 */
#genealogy-detail .section-header { margin-inline: 0; text-align: left; }
#genealogy-detail .overview-main h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.02em;
    margin: 0 0 16px;
    color: var(--ink);
    font-size: var(--t-block);
}
/* 640px 높이 그림 옆에 제목 한 줄 + 본문 두 줄뿐이라 칸이 비어 보였다 — 넓은 화면에서만 글을 키운다 (HOME-94) */
@media (min-width: 969px) {
    #genealogy-detail .overview-main h3 { font-size: 40px; line-height: 1.25; letter-spacing: -.03em; margin-bottom: 20px; }
    #genealogy-detail .overview-description { font-size: 20px; max-width: 26em; }
}
/* 레이아웃 */
#genealogy-detail .overview-main, #genealogy-detail .overview-main h3, #genealogy-detail .overview-description { text-align: left; margin-inline: 0; }
#genealogy .getting-started-content { align-items: center; }
#genealogy .step-item span strong { font-weight: 700; color: var(--ink); }
#genealogy .step-item span {
    color: var(--ink);
    line-height: 1.5;
    font-weight: 400;
}
#genealogy .getting-started-info > p {
    line-height: 1.65;
    color: var(--ink-2);
    margin: 0 0 40px;
    font-size: var(--t-body);
}

/* ==========================================================================
   서비스 페이지 — 도입 현황 카드
   ========================================================================== */
.patent-section { padding: 80px 0; }
/* --- Patent Cards Grid --- */
.patent-cards-grid { margin-bottom: 28px; }
.patent-card {
    display: flex;
    flex-direction: column;
}
.patent-card:hover { transform: translateY(-3px); }
.patent-card-header {
    display: flex;
    align-items: center;
}
.patent-status-badge {
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
}
.patent-status-badge::before {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2e7d32;
    flex-shrink: 0;
}
.patent-id { letter-spacing: 0.06em; }
.patent-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-direction: column;
    gap: 8px;
}
.patent-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.patent-feature-list li::before { display: none; }

@media (max-width: 640px) {
    .patent-section { padding: 60px 0; }
}

@media (max-width: 760px) {
    /* 2단으로 좁아진 카드에서 태그가 넘쳐 잘렸습니다 */
    #traction .patent-card { min-width: 0; overflow: hidden; }
    #traction .patent-card h3, #traction .patent-feature-list li { word-break: keep-all; overflow-wrap: anywhere; }
}
/* ── 특허 ────────────────────────────────────────────────── */
#traction .patent-status-badge::before { content: none; }
/* 트랙션 4장을 한 줄로 — 3+1로 떨어지면 마지막 칸이 비어 보입니다 */
/* ── 도입 현황 2×2 ───────────────────────────────────────── */
#traction .patent-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
#traction .patent-card:hover {
    border-color: var(--ink-3);
    transform: none;
}
#traction .patent-feature-list { display: block; }
#traction .patent-feature-list li::before { content: none; }
#traction .traction-brand .patent-id {
    display: block; font-size: 15px; color: var(--ink-2); font-weight: 400;
    background: transparent; padding: 0; margin-top: 2px;
}

@media (max-width: 760px) {
    #traction .patent-cards-grid { grid-template-columns: 1fr; gap: 14px; }
}
#traction .patent-card-header {
    justify-content: flex-start;
    margin: 0;
}
#traction .traction-brand h3 { font-size: 18px; margin: 0; }
/* 통일성 */
#traction .patent-card {
    transition: border-color var(--transition-base);
    padding: 28px;
    gap: 14px;
}
#traction .patent-feature-list li {
    color: var(--ink-2);
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: var(--t-body);
    line-height: 1.65;
}
#traction .traction-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 6px;
    margin-top: 4px;
}
#traction .traction-brand img {
    width: auto;
    max-width: 120px;
    object-fit: contain;
    height: 44px;
}
#traction .patent-status-badge {
    background: transparent;
    border: 0;
    padding: 0;
    font-weight: 600;
    color: var(--brand-orange-text);
    letter-spacing: 0;
    font-size: 15px;
}

/* ==========================================================================
   서비스 페이지 — 다운로드
   ========================================================================== */
/* App Download Section */
.app-download-section {
    padding: 100px 0;
    color: #1e1e1e;
}
.app-download-section .store-button span {
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}
.app-download-section .store-button strong { color: #ffffff; }
.app-download-section .store-button:hover { background: #1e293b; }
.store-button span { display: block; }
.store-button strong {
    display: block;
    font-weight: 700;
}
.store-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 23, 36, 0.08);
}
/* 다운로드: Figma 기준 — 흰 알약 버튼 2개(간격 70px), 흰 라운드 QR 2개(간격 150px), 박스 높이 810 */
#download .dl-box { flex-direction: column;  justify-content: center; }
#download .store-button span {
    line-height: 1.2;
    font-size: 11px;
    opacity: .8;
    letter-spacing: .02em;
}
#download .store-button span, #download .store-button strong { color: var(--ink); }
#download .store-button img {
    width: 26px;
    height: 26px;
    flex: none;
    margin-right: 12px;
}
#download .store-button > div { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
/* ── 다운로드: 아티팩트 기준 — 브랜드 주황 단색 박스, 흰 글자, 흰 알약 버튼, 흰 QR 프레임 ── */
#download .dl-box {
    min-height: 0;
    border-radius: var(--radius-card);
}
#download .store-button:hover {
    transform: translateY(-2px);
    background: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}
/* 다운로드: 2열 — 왼쪽 제목·설명·버튼, 오른쪽 QR 두 장 */
#download .dl-box {
    display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center;
    gap: clamp(32px, 5vw, 72px); text-align: left; padding: clamp(48px, 6vw, 80px) clamp(32px, 5vw, 72px);
}
#download .dl-copy { min-width: 0; }
#download .section-header { margin: 0 0 32px; text-align: left; max-width: none; }
#download .store-button strong {
    line-height: 1.2;
    font-size: 16px;
}

@media (max-width: 900px) {
    #download .dl-box { grid-template-columns: 1fr; text-align: left; }
}
/* 다운로드 배경: Figma 의 흰→복숭아 그라데이션으로 원복, 글자는 검정 (2열 레이아웃 유지) */
#download .dl-box { background: linear-gradient(155deg, #fffdf9 0%, #fff3df 45%, #ffe1b3 100%); color: var(--ink); }
#download .section-title {
    font-size: clamp(1.9rem, 3.4vw, 3rem);
    margin-bottom: 14px;
    color: var(--ink);
}
#download .section-description {
    margin: 0;
    max-width: 40ch;
    color: var(--ink-2);
}
#download .store-button {
    transition: transform var(--transition-fast), background var(--transition-fast);
    color: var(--ink);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    background: #fff;
    box-shadow: none;
    padding: 12px 22px 12px 18px;
    border: 1px solid var(--rule);
}
/* 다운로드 오른쪽: QR(글자 없음) 아래에 스토어 버튼, QR 사이 간격 확대 */
#download .dl-qr { display: flex; justify-content: flex-end; gap: clamp(28px, 4vw, 56px); }
#download .dl-store { display: flex; flex-direction: column; align-items: center; gap: 16px; }
#download .dl-qr-tile { background: #fff; border: 1px solid var(--rule);  padding: 16px; }
#download .dl-qr-tile img { display: block; width: 150px; height: 150px; }
#download .dl-store .store-button { min-width: 0; width: 100%; justify-content: center; }

@media (max-width: 900px) {
    #download .dl-qr { justify-content: flex-start; }
}

@media (max-width: 480px) {
    #download .dl-qr { gap: 16px; flex-wrap: wrap; }
    #download .dl-store { flex: 1 1 120px; min-width: 0; }   /* 아주 좁으면(큰 글씨 1.3배 + 360px) 두 타일이 세로로 쌓인다 */
    #download .dl-qr-tile { padding: 10px; width: 100%; }
    #download .dl-qr-tile img { width: 100%; height: auto; aspect-ratio: 1; }
    #download .dl-store .store-button { padding: 10px 12px; }
    #download .dl-store .store-button span { display: none; }
    #download .dl-store .store-button strong {
        white-space: nowrap;
        font-size: 16px;
    }
    #download .dl-store .store-button img { width: 22px; height: 22px; margin-right: 8px; }
}
#download .dl-qr-tile { border-radius: var(--radius-card); }
#download .section-subtitle {
    color: var(--brand-orange-text);
    font-size: clamp(15px, 1.25vw, 18px);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}
#download .section-subtitle::first-letter { text-transform: uppercase; }

@media (max-width: 760px) {
    #download .section-title { font-size: 32px; }
}

/* ==========================================================================
   서비스 페이지 — 파트너
   ========================================================================== */
/* Partners Section */
.partners-section { position: relative; }
.partners-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}
.partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-top: 60px;
}
.partner-logo { transition: all 0.3s ease; }
.partner-logo img { object-fit: contain; }
.partner-card p { line-height: 1.65; }

@media (max-width: 968px) {
    .partners-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
}
/* Enhanced Partner Card Styles */
.partner-card {
    text-align: center;
    position: relative;
}
.partner-card::before {
    height: 4px;
    transform: scaleX(0);
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.partner-card:hover::before {
    transform: scaleX(1);
    opacity: 0.05;
}
.partner-card:hover {
    border-color: rgba(26, 26, 46, 0.1);
    transform: translateY(-8px) scale(1.02);
}
.partners-section .partners-grid > * { margin: 0; }
.partners-section .partner-card h4 {
    margin: 0; font-size: 16px; font-weight: 700; color: var(--ink);
    letter-spacing: -.01em; white-space: nowrap;
}
.partners-section .partner-card p { margin: 0; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
/* ── 파트너: 이름 대신 로고 ─────────────────────────────── */
.partners-section .section-header { margin-bottom: clamp(32px, 4vw, 56px); }
/* 파트너 로고: 두 줄로 흩어져 있던 것을 한 줄에 담습니다 */
.partners-section .partners-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px 32px;
}
.partners-section .partner-card h4, .partners-section .partner-card p { display: none; }
.partners-section .partner-card .partner-logo, .partners-section .partner-logo {
    display: flex; align-items: center; justify-content: center;
    width: auto; height: auto; background: transparent;
    border: 0; border-radius: 0; box-shadow: none;
    padding: 0; margin: 0; transform: none;
}
.partners-section .partners-grid img {
    transition: opacity var(--transition-fast), filter var(--transition-fast);
    display: block;
    max-height: 40px;
    max-width: 128px;
    width: auto;
    height: auto;
    opacity: 1;
    filter: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}
.partners-section .partner-card:hover { opacity: .7; }

/* 태블릿: 두 줄로 넘어가면 space-between 이 마지막 줄 2개를 양 끝으로 벌렸다 → 가운데 모음 */
@media (max-width: 1100px) {
    .partners-section .partners-grid { justify-content: center; gap: 28px 48px; }
}
.partners-section .partners-grid img[src*="ana-logo"] { max-height: 26px; }
.partners-section .partners-grid img[src*="kspca-logo"] { max-height: 56px; }

@media (max-width: 760px) {
    .partners-section .partners-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; justify-items: stretch; }
    .partners-section .partner-card, .partners-section .partner-logo { width: 100%; }
    .partners-section .partners-grid img { width: 100%; height: 40px; max-width: none; max-height: none; object-fit: contain; }
    .partners-section .partners-grid img[src*="ana-logo"] { height: 26px; }
    .partners-section .partners-grid img[src*="kspca-logo"] { height: 52px; }
    /* 7개를 3열로 놓으면 마지막 줄에 1개 — 가운데 칸에 둔다 */
    .partners-section .partner-card:last-child:nth-child(3n + 1) { grid-column: 2; }
}

/* ==========================================================================
   자주 묻는 질문
   ========================================================================== */
/* FAQ Section */
.faq-section { padding: 120px 0; }
.faq-item {
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item.active .faq-answer {
    padding: 24px 30px;
    max-height: 200px;
}
.faq-answer p {
    color: var(--text-light);
    line-height: 1.65;
    margin: 0;
}
.faq-list { margin: 40px auto 0; }
.faq-item > summary {
    list-style: none; cursor: pointer;
    color: var(--ink);
    position: relative;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
    content: ""; position: absolute;  top: 50%;
    border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
    transform: rotate(45deg); transition: transform var(--transition-fast);
}
.faq-item[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-answer {
    transition: all 0.3s ease;
    margin: 0;
    color: var(--ink-2);
}
.faq-answer strong { color: var(--ink); font-weight: 700; }
.faq-section .faq-list .faq-item > summary { background: transparent; }
/* pages.css의 .faq-answer는 max-height:0으로 접혀 있고 자체 아코디언 JS가
펴는 구조입니다. 여기서는 네이티브 <details>를 쓰므로 그 JS를 거치지
않아 답이 한 줄로 잘렸습니다. 접고 펴는 것은 <details>가 이미 합니다. */
.faq-section .faq-list .faq-answer { max-height: none; overflow: visible; opacity: 1; }
.faq-item > summary:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 3px;
    border-radius: 4px;
    outline-color: var(--brand-orange);
}
/* ── FAQ ─────────────────────────────────────────────────── */
#faq .faq-list { max-width: none; margin-top: 0; border-top: 0; }
#faq .faq-item > summary::after {
    width: 14px; height: 14px; right: 10px; margin-top: -9px;
    border-color: var(--ink); border-width: 2px;
}
/* FAQ: 질문 hover 효과 없음, 답변 배경 없음 */
#faq .faq-item > summary:hover { color: var(--ink); }
#faq .faq-item > summary {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: clamp(var(--t-body), 1.6vw, 1.5rem);
    line-height: 1.45;
    padding: 28px 56px 28px 0;
    transition: none;
}
#faq .faq-answer, #faq .faq-item[open] > summary, #faq .faq-item[open] { background: transparent; box-shadow: none; }
/* FAQ 답변: 최대 폭 없이 화살표 자리(오른쪽 56px)만 비우고, 아래 여백 확대 */
#faq .faq-answer {
    line-height: 1.65;
    white-space: normal;
    max-width: none;
    padding: 4px 56px 36px 0;
}

@media (max-width: 760px) {
    #faq .faq-answer { padding: 2px 44px 28px 0; }
    #faq .faq-item > summary {
        padding: 20px 44px 20px 0;
        font-size: var(--t-body);
    }
}

/* ==========================================================================
   푸터
   ========================================================================== */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.footer-bottom p {
    margin: 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.64);
}
.footer-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
}
.footer-company-info p { margin: 0; }
.footer-links {
    display: grid;
    gap: 40px;
}
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-column li { margin-bottom: 12px; }
.footer-bottom {
    flex-wrap: wrap;
    gap: 18px;
}
.footer-legal a {
    text-decoration: none;
    transition: color 0.25s ease;
}
.footer-legal a:hover { color: #ffffff; }

@media (max-width: 968px) {
    .footer-links { gap: 32px; }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

@media (max-width: 640px) {
    .footer-legal { flex-direction: column; }
    .footer-legal .separator { display: none; }
}
/* Update footer-bottom layout to accommodate social icons */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
}
.footer-legal {
    flex-wrap: wrap;
    display: flex;
    align-items: center;
    gap: 15px;
}

@media (max-width: 760px) {
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        position: relative;
    }
    .footer-bottom .copyright { order: 3; }
    .footer-legal { order: 1; }
}
/* ── hover (Figma behaviors: 링크 opacity .55, 카드 변형) ─── */
.footer-column a:hover, .footer-legal a:hover { opacity: .55; }
/* Footer */
/* ── 푸터: 어두운 면에서 밝은 면으로 ───────────────────── */
.footer {
    position: relative;
    color: var(--ink);
    padding: clamp(56px, 7vw, 88px) 0 40px;
    border-top: 1px solid var(--rule);
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    display: none;
}
/* Enhanced Footer Styles */
.footer-top {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(320px, 1.4fr);
    gap: 48px;
    margin-bottom: 40px;
}
.footer-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* 열 4개(서비스 · 안내 · 도움말 · 문의). 그 전 minmax(160px, …) 는 969~1100px 에서 가로로 넘쳤다 — 그래서 0 바닥 */
.footer-logo {
    flex-shrink: 0;
    width: 36px;
    height: auto;
}
.footer-company-info {
    display: grid;
    line-height: 1.75;
    color: var(--ink);
    font-size: 15px;
    gap: 6px;
}
.footer-company-info strong {
    opacity: 0.95;
    color: var(--ink-2);
    font-weight: 500;
    margin-right: 6px;
}
.footer-company-info a { color: inherit; text-decoration: none; }
.footer-company-info a:hover { text-decoration: underline; }
.footer-column h4 {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
}
.footer-column a {
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
    display: inline-block;
    color: var(--ink-2);
    font-size: 15px;
}
.footer-column a:hover {
    color: var(--ink);
    transform: none;
}
.footer-bottom { border-top: 0; padding-top: 32px; }
.footer-bottom .copyright {
    margin: 0;
    font-size: 15px;
    opacity: 0.6;
    left: 50%;
    position: static;
    transform: none;
    margin-left: auto;
    text-align: right;
}

@media (max-width: 968px) {
    .footer-bottom .footer-legal { align-self: flex-end; align-items: flex-end; justify-content: flex-end; text-align: right; }
}
/* 세로로 쌓일 때 약관 링크도 저작권·회사 정보와 같은 오른쪽 선 */
.footer-bottom p, .footer-legal a { color: var(--ink-2); font-size: 15px; }
.footer-legal .separator {
    font-size: 12px;
    color: var(--rule);
}

@media (max-width: 900px) {
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px) {
    .footer-top { gap: 28px; margin-bottom: 24px; }
    /* 모바일 푸터: 링크 열(메뉴)은 왼쪽·터치 높이 44px (HOME-95), 회사 정보·약관·저작권은 오른쪽 선 (HOME-100 — 사용자 결정) */
    .footer-brand { align-items: flex-end; text-align: right; gap: 12px; }
    .footer-company-info { justify-items: end; gap: 2px; }
    /* 칸 너비는 내용에 맞추되(한국어 15px 에서 한 줄), 모자라면 줄어들어 줄바꿈한다 — auto 만 쓰면 영어 + 큰 글씨에서 가로로 넘친다 */
    .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); justify-content: space-between; gap: 8px 16px; }
    .footer-column h4 { margin-bottom: 4px; }
    .footer-column li { margin-bottom: 0; }
    .footer-column a { display: block; padding: 12px 0; overflow-wrap: anywhere; }  /* 글자는 데스크톱과 같은 14px — 모바일에서만 13px 로 줄이던 것을 뺐다 (HOME-98) */
    .footer-bottom { padding-top: 12px; }
    .footer-bottom .footer-legal { gap: 0; }
    .footer-legal a { display: block; padding: 12px 0; font-size: 15px; }
}

/* ==========================================================================
   하위 페이지 공통
   ========================================================================== */
:where(body[data-page="index"], body[data-page="about"]) .dropdown::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
}
:where(body[data-page="index"], body[data-page="about"]) .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    transition-delay: 0.15s;
    pointer-events: none;
    z-index: 1001;
    list-style: none;
    padding: var(--space-sm);
    margin-top: 12px;
}
:where(body[data-page="index"], body[data-page="about"]) .dropdown:hover .dropdown-menu,
:where(body[data-page="index"], body[data-page="about"]) .dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
    pointer-events: auto;
}
:where(body[data-page="index"], body[data-page="about"]) .dropdown-menu li {
    margin: 0;
    list-style: none;
}
:where(body[data-page="index"], body[data-page="about"]) .dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
    border-radius: var(--radius-sm);
    margin: 0;
    position: relative;
    overflow: visible;
}
:where(body[data-page="index"], body[data-page="about"]) .dropdown-menu a:hover,
:where(body[data-page="index"], body[data-page="about"]) .dropdown-menu a:focus {
    background: var(--gradient-subtle);
    color: var(--brand-orange-text);
    transform: translateX(4px);
}
:where(body[data-page="index"], body[data-page="about"]) .dropdown-menu a::before,
:where(body[data-page="index"], body[data-page="about"]) .dropdown-menu a::after {
    display: none;
}
/* Page Header - Enhanced v2.0 */
:where(body[data-page="index"], body[data-page="about"]) .page-header {
    position: relative;
    overflow: hidden;
}
:where(body[data-page="index"], body[data-page="about"]) .page-header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/hero-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
:where(body[data-page="index"], body[data-page="about"]) .page-header-content {
    position: relative;
    z-index: 2;
}
:where(body[data-page="index"], body[data-page="about"]) .page-subtitle {
    /* 더 밝은 색상 */
    font-weight: 400;
    /* 가독성을 위한 그림자 */
}
:where(body[data-page="index"], body[data-page="about"]) .breadcrumb {
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    /* 더 밝은 색상 */
}
:where(body[data-page="index"], body[data-page="about"]) .breadcrumb a {
    /* 더 밝은 색상 */
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
}
:where(body[data-page="index"], body[data-page="about"]) .breadcrumb a:hover { transform: translateY(-2px); }
:where(body[data-page="index"], body[data-page="about"]) .breadcrumb span { color: rgba(255, 255, 255, 0.9); /* 더 밝은 색상 */ }

@media (max-width: 760px) {
    :where(body[data-page="index"], body[data-page="about"]) .breadcrumb { flex-wrap: wrap; }
}
:where(body[data-page="index"], body[data-page="about"]) .page-subtitle,
:where(body[data-page="index"], body[data-page="about"]) .breadcrumb,
:where(body[data-page="index"], body[data-page="about"]) .breadcrumb a,
:where(body[data-page="index"], body[data-page="about"]) .breadcrumb span {
    color: rgba(255, 255, 255, 0.76);
    text-shadow: none;
}
:where(body[data-page="index"], body[data-page="about"]) .page-header .breadcrumb,
:where(body[data-page="index"], body[data-page="about"]) .page-header .breadcrumb a,
:where(body[data-page="index"], body[data-page="about"]) .page-header .breadcrumb span {
    color: rgba(255, 255, 255, 0.95);
    opacity: 1;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
    animation: none;
}
:where(body[data-page="index"], body[data-page="about"]) .page-header .breadcrumb a { border: 1px solid rgba(255, 255, 255, 0.2); }
/* Trim flex/grid gaps caused by hidden icons */
:where(body[data-page="index"], body[data-page="about"]) .store-button,
:where(body[data-page="index"], body[data-page="about"]) .section-header {
    gap: 0;
}
body:where([data-page="index"], [data-page="about"]) .page-header,
body:where([data-page="index"], [data-page="about"]) .page-header * {
    -webkit-text-fill-color: initial;
    text-fill-color: initial;
}
body:where([data-page="index"], [data-page="about"]) .page-header .page-title,
body:where([data-page="index"], [data-page="about"]) .page-header h1,
body:where([data-page="index"], [data-page="about"]) .page-header h1.page-title {
    text-fill-color: #ffffff;
    opacity: 1;
    visibility: visible;
    background: none;
    background-color: transparent;
    background-image: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    font-weight: 900;
    animation: none;
    transform: none;
    filter: none;
}
body:where([data-page="index"], [data-page="about"]) .page-header .page-subtitle,
body:where([data-page="index"], [data-page="about"]) .page-header p.page-subtitle {
    -webkit-text-fill-color: #ffffff;
    opacity: 1;
    background: none;
    animation: none;
    filter: none;
}
body:where([data-page="index"], [data-page="about"]) .page-header .breadcrumb,
body:where([data-page="index"], [data-page="about"]) .page-header .breadcrumb a,
body:where([data-page="index"], [data-page="about"]) .page-header .breadcrumb span {
    color: #ffffff;
    opacity: 1;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
    animation: none;
}
body:is([data-page="about"], [data-page="contact"]) .location-details { display: block; }
body:is([data-page="about"], [data-page="contact"]) .location-item .loc-icon {
    display: block; width: 30px; height: 30px; margin-top: calc((var(--t-card) * 1.35 - 30px) / 2);
}
/* Figma 아이콘(30 틀) — 항목 제목 첫 줄 가운데에 맞춘다 */
body:is([data-page="about"], [data-page="contact"]) .location-item strong {
    display: block; font-family: var(--font-display); font-size: var(--t-card); line-height: 1.35; font-weight: 700; color: var(--ink); margin-bottom: 10px;
}
body:is([data-page="about"], [data-page="contact"]) .location-item p { line-height: 1.65; color: var(--ink-2); margin: 0; }
body[data-page="contact"] .inquiry-form.submitted :is(input:not([type="checkbox"]), select, textarea):required:invalid {
    border-color: var(--brand-orange);
}
body:is([data-page="about"], [data-page="contact"]) .location-item p a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
body:is([data-page="about"], [data-page="contact"]) .location-item p a:hover { border-color: var(--ink); }
body:is([data-page="about"], [data-page="contact"]) .location-item {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 8px;
    align-items: start;
    padding: 24px 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    border: 0;
    border-top: 1px solid var(--rule);
}
body:is([data-page="about"], [data-page="contact"]) .location-item:last-child { border-bottom: 1px solid var(--rule); }
/* 하위 페이지 섹션 여백 56~96, 서비스 페이지만 128 */
body[data-page]:not([data-page="index"]) section[id], body[data-page]:not([data-page="index"]) section[class] { padding-block: var(--pad-section); }
body[data-page]:not([data-page="index"]) .page-header + section { padding-top: clamp(28px, 3vw, 40px); }
body[data-page]:not([data-page="index"]) section.page-header[class] { padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 88px)); padding-bottom: 0; }

@media (min-width: 901px) {
    /* Figma 높이는 600 — 본문과 출처 줄 사이 여백을 절반으로 줄이느라 540. 좁으면 내용 높이 */
    body[data-page="news"] .news-grid .news-card:not(:nth-child(3n)) { border-right: 1px solid var(--rule); }
}

/* ==========================================================================
   안내 페이지
   ========================================================================== */
/* Office Location Section */
.office-location-section { padding: 120px 0; }
.location-details {
    flex-direction: column;
    gap: 30px;
}
.location-item {
    gap: 20px;
    transition: all 0.3s ease;
}
.location-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.location-item strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.location-item p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.65;
}
.address-detail { opacity: 0.8; }
/* Company Section - Enhanced v2.0 */
.company-section {
    padding: 120px 0;
    position: relative;
}
.company-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}
.company-visual { display: grid; }
.visual-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.visual-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.visual-card:hover::before { transform: scaleX(1); }
.visual-card p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.65;
}
.team-grid { margin-top: 50px; }
.team-card { transition: all 0.3s; }
.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}
.company-intro-text h3 { word-break: keep-all; }
.company-intro-text p {
    margin-bottom: 18px;
    word-break: keep-all;
}
.company-intro-text p:last-child { margin-bottom: 0; }
.company-feature-grid { margin: 0 auto; }
.company-feature-grid .visual-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.company-feature-grid .visual-card h4 { word-break: keep-all; }
.company-feature-grid .visual-card p { word-break: keep-all; }
/* Tighten cards that previously reserved icon space */
.visual-card,
.company-feature-grid .visual-card { min-height: auto; }
/* Safety: ensure grid items never overflow their column */
.company-visual > .visual-card { min-width: 0; }
/* ── 마일스톤 타임라인 (안내 페이지) ─────────────────────── */
.timeline { margin: 44px auto 0; position: relative; }
.timeline::before {
    content: ""; position: absolute; left: 78px; top: 8px; bottom: 8px;
    width: 2px; background: var(--rule);
}
.tl-row { display: grid;    position: relative; }
.tl-year {
    color: var(--ink);
    font-variant-numeric: tabular-nums; padding-top: 1px;
}
.tl-body { position: relative; }
.tl-body::before {
    content: ""; position: absolute;
    border-radius: 50%;
}
.tl-title { color: var(--ink);  margin: 0 0 4px; }
.tl-desc { color: var(--ink-2);   margin: 0; }

@media (max-width: 640px) {
    .timeline::before { left: 5px; }
}
.tl-row.is-live .tl-body::before { border-color: var(--brand-orange); background: var(--brand-orange); }
/* ── 안내(about) ───────────────────────────────────────── */
body[data-page="about"] .page-header { display: none; }
/* 회사 소개 · 비전: 왼쪽 제목, 오른쪽 본문 */
body[data-page="about"] #company .container, body[data-page="about"] #vision .container {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); column-gap: clamp(32px, 5vw, 80px); align-items: start;
}
body[data-page="about"] #company .section-header, body[data-page="about"] #vision .section-header { margin-bottom: 0; }
body[data-page="about"] #company .company-intro-text { margin: 0; max-width: none; }
body[data-page="about"] #company .company-intro-text h3 {
    font-family: var(--font-display); font-size: clamp(1.35rem, 2vw, 1.875rem); font-weight: 700; line-height: 1.35; letter-spacing: -.02em; color: var(--ink); margin: 0 0 24px;
}
body[data-page="about"] #company .company-intro-text p { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
body[data-page="about"] #company .company-intro-text strong { color: var(--ink); font-weight: 600; }
body[data-page="about"] #company .company-feature-grid {
    grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(32px, 4vw, 56px);
}
body[data-page="about"] #vision .company-visual { grid-template-columns: 1fr; gap: 40px; margin: 0; }
body[data-page="about"] .visual-card::before { display: none; }
body[data-page="about"] #vision .visual-card { background: transparent; border: 0; padding: 0; }
body[data-page="about"] #vision .visual-card h4 { margin-bottom: 16px; }
body[data-page="about"] #vision .visual-card p { line-height: 1.65; }
body[data-page="about"] #vision .visual-card strong { display: block; font-weight: 400; color: var(--ink-2); }
/* 팀 */
body[data-page="about"] .team-lead { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: clamp(48px, 6vw, 80px); }
body[data-page="about"] .team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(48px, 6vw, 80px) 24px; }
body[data-page="about"] .team-card h4 {
    font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ink); margin: 0 0 10px;
}
/* base.css 의 :lang(ko) span { font-weight: 400 } 이 이름을 가늘게 만든다 */
body[data-page="about"] .team-card h4 span { font-weight: inherit; }
body[data-page="about"] .team-card h4 small { display: block; font-size: 20px; font-weight: 400; color: var(--ink); margin: 6px 0 0; }
body[data-page="about"] .team-card p { line-height: 1.65; color: var(--ink-2); margin: 0; }
/* 연혁: 연도 | 점·제목·설명, 행마다 괘선 */
body[data-page="about"] .timeline { max-width: none; margin-top: 8px; }
body[data-page="about"] .timeline::before { display: none; }
body[data-page="about"] .tl-row {
    grid-template-columns: minmax(120px, 1fr) minmax(0, 3fr); gap: 32px; padding: clamp(28px, 3.5vw, 48px) 0; border-top: 1px solid var(--rule);
}
body[data-page="about"] .tl-year {
    font-family: var(--font-display); font-size: clamp(1.75rem, 2.8vw, 2.5rem); font-weight: 700; text-align: left; letter-spacing: -.02em;
}
body[data-page="about"] .tl-body { padding-left: 22px; }
body[data-page="about"] .tl-body::before { left: 0; top: .5em; width: 8px; height: 8px; border: 0; background: var(--brand-orange); }
body[data-page="about"] .tl-title {
    font-family: var(--font-display); font-size: clamp(1.25rem, 1.9vw, 1.75rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: 12px;
}
body[data-page="about"] .tl-desc { font-size: 17px; line-height: 1.65; max-width: 60ch; }
body[data-page="about"] .location-info h3 {
    font-family: var(--font-display); font-size: clamp(2rem, 4.2vw, 3.75rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.18; color: var(--ink); margin: 0 0 clamp(32px, 4vw, 56px);
}

@media (max-width: 900px) {
    body[data-page="about"] #company .container, body[data-page="about"] #vision .container { grid-template-columns: 1fr; row-gap: 32px; }
    body[data-page="about"] #company .company-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
    /* 1단에서는 row-gap 이 간격을 만든다 */
    body[data-page="about"] .team-lead, body[data-page="about"] .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    body[data-page="about"] .tl-row { grid-template-columns: 1fr; gap: 8px; padding-left: 0; }
    body[data-page="about"] .tl-body::before { left: 0; }
    body[data-page="about"] .tl-body { padding-left: 22px; }
}
body[data-page="about"] .location-info, body[data-page="about"] .map-placeholder {
    width: auto; max-width: none; flex: none; grid-column: auto; margin: 0;
}
body[data-page="about"] .map-iframe {
    width: 100%;
    border: 0;
    display: block;
    height: 100%;
    min-height: 320px;
}
/* 문의: 지도(.map-placeholder)가 .location-content 밖의 형제라 컨테이너를 2열로 */
body[data-page="about"] .office-location-section .container {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 72px);
}
body[data-page="about"] .office-location-section .section-header {
    display: none;
    grid-column: 1 / -1;
}
/* 하위 페이지 보정 — 기존 시트의 고정 폭·카드·flex 를 확실히 덮는다 */
body[data-page="about"] .location-content {
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    display: block;
}

@media (max-width: 900px) {
    body[data-page="about"] .office-location-section .container { grid-template-columns: 1fr; }
}
body[data-page="about"] .team-card { background: transparent; border: 0; padding: 0; text-align: left; box-shadow: none; border-radius: 0; }
body[data-page="about"] .visual-card p {
    color: var(--ink-2);
    margin: 0;
    line-height: 1.65;
}
/* 팀 사진: 두 장 모두 800×911 (Figma 틀 361×411 과 같은 비율). Figma 자산은 늘어난 채로 나오고
Figma 가 틀에 fill 로 넣어 되돌려 보여 주므로, 파일을 그 비율로 다시 만들어 두었다 — 자르지도 늘리지도 않는다. */
body[data-page="about"] .team-card img {
    display: block;
    object-position: top;
    margin-bottom: 24px;
    filter: grayscale(1);
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 800 / 911;
    object-fit: cover;
}
body[data-page="about"] #company .company-feature-grid { max-width: none; width: 100%; margin-inline: 0; }
body[data-page="about"] .tl-year:empty { visibility: hidden; }
body[data-page="about"] .tl-row:has(.tl-year:empty) { border-top: 0; padding-top: 0; }
/* ── 안내 페이지 재검토 반영 (2026-09-18 밤) ── */
body[data-page="about"] #vision .visual-card h4, body[data-page="about"] .visual-card h4 {
    overflow: visible; text-indent: 0; margin-left: 0; padding-left: 0;
}
body[data-page="about"] .visual-card h4::before, body[data-page="about"] .visual-card h4::after { content: none; }
body[data-page="about"] section[id], body[data-page="about"] section[class] { padding-block: var(--pad-section); }
body[data-page="about"] .visual-card {
    transform: none;
    overflow: visible;
}
body[data-page="about"] .office-location-section .container { align-items: stretch; }
body[data-page="about"] .map-placeholder {
    overflow: hidden;
    background: var(--ivory-2);
    border: 0;
    box-shadow: none;
    padding: 0;
    aspect-ratio: auto;
    height: 100%;
    min-height: 360px;
}

@media (max-width: 900px) {
    body[data-page="about"] .map-placeholder { aspect-ratio: 4 / 3; height: auto; min-height: 0; }
}
/* 안내: 브랜드 스토리 제거 → 회사 소개가 첫 섹션 */
body[data-page="about"] #company { padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 88px)); }
/* 카드 패딩 28 · 라운드 24, 상태 배지 14 */
body[data-page="about"] #company .company-feature-grid .visual-card { padding: 28px; }

@media (max-width: 760px) {
    body[data-page="about"] #company .company-feature-grid .visual-card { padding: 20px; }
    body[data-page="about"] #company .company-feature-grid .visual-card h4 { font-size: 17px; word-break: keep-all; }
}

/* ==========================================================================
   CEO 인사말 페이지
   ========================================================================== */
/* CEO Page Styles */
.ceo-message-section { padding: 120px 0; }
.ceo-profile {
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
}
.ceo-photo { text-align: center; }
/* CEO page signature image styling */
.ceo-signature {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.message-content { margin: 0 auto; }
.message-quote {
    text-align: center;
    position: relative;
}
.message-text {
    font-size: 18px;
    line-height: 1.75;
}
.message-text p { margin-bottom: 24px; }
.signature-text { font-weight: 600; }
.signature-name {
    flex-direction: column;
    margin-bottom: 16px;
}
.signature-name strong {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-dark);
}
.signature-name span {
    font-size: 16px;
    color: var(--text-light);
}

@media (max-width: 640px) {
    .message-text { font-size: 16px; }
}
.ceo-info p {
    font-size: 16px;
    color: var(--text-light);
}
body[data-page="ceo"] .ceo-photo {
    display: block; width: 100%; max-width: 420px; aspect-ratio: 800 / 911; object-fit: cover; object-position: top;  filter: grayscale(1); margin-bottom: 24px;
}
body[data-page="ceo"] .ceo-info h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.35; color: var(--ink); }
body[data-page="ceo"] .ceo-info h3 span { font-weight: inherit; }
/* base.css 의 :lang(ko) span 400 되돌림 */
body[data-page="ceo"] .ceo-info h3 span:last-child { display: inline-block; margin-top: 6px; font-size: 20px; font-weight: 400; }
body[data-page="ceo"] .message-quote { margin: 0 0 24px; }
body[data-page="ceo"] .message-title {
    font-family: var(--font-display); font-size: var(--t-block); font-weight: 700; letter-spacing: -.02em; line-height: 1.35; color: var(--ink); margin: 0; text-align: left;
}
body[data-page="ceo"] .message-text p { line-height: 1.75; color: var(--ink-2); margin: 0 0 20px; text-align: left; }
body[data-page="ceo"] .message-text strong { color: var(--ink); font-weight: 600; }
body[data-page="ceo"] .message-text .message-closing { background: #fff; border: 1px solid var(--rule);   color: var(--ink); }
/* 옛 규칙이 세로 flex + 가운데 */
body[data-page="ceo"] .signature-content { max-width: none; margin: 0; }
body[data-page="ceo"] .signature-name strong, body[data-page="ceo"] .signature-name span, body[data-page="ceo"] .signature-date {
    display: block;  color: var(--ink-2); font-weight: 400;
}
body[data-page="ceo"] .signature-name strong { color: var(--ink); font-weight: 700; }
body[data-page="ceo"] .ceo-content {
    display: grid;
    max-width: none;
    margin: 0;
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
    background: transparent;
    box-shadow: none;
    border: 0;
    padding: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
}
body[data-page="ceo"] .ceo-profile {
    background: transparent;
    box-shadow: none;
    padding: 0;
    text-align: left;
    display: block;
    width: auto;
    max-width: none;
    flex: none;
    margin: 0;
}
body[data-page="ceo"] .ceo-info, body[data-page="ceo"] .ceo-info h3 {
    position: static; width: auto; margin: 0; padding: 0; background: transparent; text-align: left;
}
body[data-page="ceo"] .message-content {
    background: transparent; border: 0; padding: 0; box-shadow: none; border-radius: 0; width: auto; max-width: none;
}
body[data-page="ceo"] .message-text .message-intro { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
    body[data-page="ceo"] .ceo-content { grid-template-columns: 1fr; }
}
/* CEO: 이탤릭 제거, 서명 블록 압축, 모바일 사진 축소 */
body[data-page="ceo"] .message-title .highlight {
    display: block;
    font-size: var(--t-card);
    font-weight: 600;
    color: var(--ink);
    background: none;
    -webkit-text-fill-color: currentColor;
    margin-top: 12px;
    letter-spacing: 0;
    font-style: normal;
}
body[data-page="ceo"] .ceo-signature {
    text-align: right;
    border: 0;
    padding: 0;
    align-items: flex-end;
    margin-top: 28px;
}
body[data-page="ceo"] .signature-name strong, body[data-page="ceo"] .signature-name span { display: inline; margin: 0; }
body[data-page="ceo"] .signature-date { margin-top: 4px; }

@media (max-width: 900px) {
    body[data-page="ceo"] .ceo-profile {
        display: grid; grid-template-columns: 140px minmax(0, 1fr); column-gap: 16px; align-items: end; margin-bottom: 28px;
    }
    body[data-page="ceo"] .ceo-photo { width: 140px; max-width: 140px; margin: 0; }
    body[data-page="ceo"] .ceo-info h3 { font-size: 18.4px; }
}
body[data-page="ceo"] .ceo-photo { height: auto; }
/* 카드 규격 24/28 */
body[data-page="ceo"] .message-text .signature-text { text-align: right; }
body[data-page="ceo"] .signature-name {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    align-items: flex-end;
}
/* 서명 네 줄 모두 오른쪽 */
body[data-page="ceo"] .signature-name strong, body[data-page="ceo"] .signature-name span, body[data-page="ceo"] .signature-date {
    font-size: var(--t-body);
}

@media (max-width: 760px) {
    body[data-page="ceo"] .ceo-info h3, body[data-page="ceo"] .ceo-info h3 span, body[data-page="ceo"] .ceo-info h3 span:last-child {
        font-size: var(--t-body);
    }
}
/* 하위 페이지 모바일 재검토(2026-09-19) */
/* 영문 모바일 재검토(2026-09-19): 특허 스탯은 숫자+라벨 가로 행(한·영 공통), CEO 마무리 문단 굵기 통일 */
body[data-page="ceo"] .message-closing {
    border-radius: var(--radius-card);
    padding: 28px;
    font-weight: 400;
}
body.ceo-page { background: #faf9f7; }
.ceo-page .page-header { color: #1e1e1e; }
.ceo-page .page-header-background {
    background:
    radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.7) 0%, transparent 48%),
    radial-gradient(circle at 82% 14%, rgba(253, 185, 78, 0.45) 0%, transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 217, 168, 0.45) 100%);
}
.ceo-page .breadcrumb,
.ceo-page .breadcrumb span,
.ceo-page .breadcrumb a { opacity: 1; }
.ceo-page .breadcrumb a { border: 1px solid rgba(148, 163, 184, 0.35); }
.ceo-page .breadcrumb a:hover { transform: none; }
.ceo-page .message-text,
.ceo-page .message-text p { color: #1f2937; }
.ceo-page .signature-name span,
.ceo-page .signature-date { color: #475569; }

/* ==========================================================================
   뉴스 페이지
   ========================================================================== */
/* News Page Styles */
.news-section { padding: 80px 0; }
.news-card {
    overflow: hidden;
    transition: all 0.3s ease;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.news-meta { align-items: center; }
.news-title a { transition: color 0.3s ease; }
.news-title a:hover { color: var(--accent-color); }
.news-content-only { position: relative; }
.news-content-only .news-tags {
    flex-wrap: wrap;
    gap: 10px;
}
/* Update news grid layout for text-only cards */
.news-grid { margin-bottom: 50px; }

@media (max-width: 968px) {
    body .news-tags .tag:not(:last-child)::after {
        content: ' · ';
        margin: 0 4px;
        color: #8f8f8f;
        opacity: 0.7;
    }
}
/* ── 뉴스(news): 3열 카드 ──────────────────────────────── */
body[data-page="news"] .page-header { display: none; }
body[data-page="news"] .news-section .section-header { margin-inline: 0; text-align: left; }
body[data-page="news"] .news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
body[data-page="news"] .news-card { transform: none; display: flex; flex-direction: column; }
body[data-page="news"] .news-card .news-content-only { padding: 0; display: flex; flex-direction: column; flex: 1; }
body[data-page="news"] .news-card .news-source::after { content: " ·"; }
body[data-page="news"] .news-card .news-date, body[data-page="news"] .news-card .news-source { background: transparent; padding: 0; border: 0; }
body[data-page="news"] .news-card .news-title { order: 1; font-family: var(--font-display); }
body[data-page="news"] .news-card .news-title a { color: var(--ink); text-decoration: none; }
body[data-page="news"] .news-card .news-title a:hover { opacity: .6; }
body[data-page="news"] .news-card .news-excerpt { order: 2; }

@media (max-width: 900px) {
    body[data-page="news"] .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
body[data-page="news"] .news-thumb { max-height: none; }
body[data-page="news"] .news-card .news-tags { display: none; }
/* 뉴스: 주소 없는 기사 제목은 링크처럼 보이지 않게 */
body[data-page="news"] .news-title a.no-link { pointer-events: none; cursor: default; }

@media (max-width: 760px) {
    body[data-page="news"] .news-card .news-title, body[data-page="news"] .news-card .news-title a { font-size: 18px; }
}
body[data-page="news"] .news-grid { gap: 60px 0; }
body[data-page="news"] .news-grid .news-card {
    background: transparent; border: 0; border-radius: 0; box-shadow: none;
    padding: 0 clamp(16px, 2.1vw, 30px);
}
body[data-page="news"] .news-grid .news-thumb {
    display: block; width: 100%; height: auto; aspect-ratio: 340 / 186;
    object-fit: cover; border-radius: var(--radius-card); margin: 0 0 20px; background: var(--ivory-2);
}
body[data-page="news"] .news-grid .news-card .news-title,
body[data-page="news"] .news-grid .news-card .news-title a {
    font-size: clamp(1.25rem, 1.7vw, 1.5rem); font-weight: 600; line-height: 1.4; letter-spacing: -.02em;
}
body[data-page="news"] .news-grid .news-card .news-title { margin: 0 0 20px; }
body[data-page="news"] .news-grid .news-card .news-excerpt { font-size: var(--t-body); line-height: 1.65; color: var(--ink-2); margin: 0; }
body[data-page="news"] .news-grid .news-card .news-meta {
    order: 3;
    margin: auto 0 0;
    display: flex;
    padding-top: 16px;
    gap: .3em;
}
/* "출처 · 날짜" — 가운뎃점 양옆 간격을 같게 */
body[data-page="news"] .news-grid .news-card .news-meta,
body[data-page="news"] .news-grid .news-card .news-source,
body[data-page="news"] .news-grid .news-card .news-date {
    font-size: clamp(16px, 1.25vw, 18px); line-height: 1.65; font-weight: 400; color: rgba(0, 0, 0, .55);
}

@media (min-width: 901px) {
    body[data-page="news"] .news-grid .news-card { min-height: min(540px, 38vw); }
}

@media (min-width: 761px) and (max-width: 900px) {
    body[data-page="news"] .news-grid .news-card:nth-child(odd) { border-right: 1px solid var(--rule); }
}

@media (max-width: 760px) {
    body[data-page="news"] .news-grid { gap: 48px 0; }
    body[data-page="news"] .news-grid .news-card { padding: 0; }
    body[data-page="news"] .news-grid .news-card .news-meta { padding-top: 10px; }
}

/* ==========================================================================
   문의 페이지
   ========================================================================== */
.form-group { flex-direction: column; }
.form-group label { margin-bottom: 8px; }
.form-group input,
.form-group select,
.form-group textarea { transition: all 0.3s ease; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.1);
}
.contact-manager { margin: 24px 0; }
.contact-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.contact-item { transition: all 0.3s ease; }
.contact-item:hover { transform: translateY(-2px); }
.contact-item strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}
.contact-item p { margin: 0; }
.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}
.contact-item a:hover { color: var(--highlight-color); }

@media (max-width: 968px) {
    .contact-list { grid-template-columns: 1fr; }
}
/* ── 문의(contact): 본사 정보 + 지도, FAQ ──────────────── */
body[data-page="contact"] .page-header { display: none; }
/* ── 문의 양식 (www.chon.ai/contact 의 "문의 메일 보내기") — 왼쪽 제목·안내 | 오른쪽 양식 카드.
열·간격은 안내 페이지 본사 블록과 같고, 카드는 사이트 카드 규격(흰 면 · 괘선 · 라운드 24 · 패딩 28) ── */
body[data-page="contact"] .inquiry-section .container {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 72px); align-items: start;
}
body[data-page="contact"] .inquiry-form {
    background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-card); padding: 28px; display: grid; gap: 20px;
}
body[data-page="contact"] .inquiry-form .form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
body[data-page="contact"] .inquiry-form .form-group { display: grid; gap: 8px; margin: 0; }
body[data-page="contact"] .inquiry-form label { font-size: var(--t-small); font-weight: 500; color: var(--ink); }
/* 국기 전용 웹폰트 (HOME-114) — Windows 에는 국기 이모지가 없어 "KR" 두 글자로 보인다.
   unicode-range 가 국기 문자뿐이라 국기가 있는 페이지(문의)에서만 내려받고, 다른 글자에는 영향이 없다.
   Twemoji Country Flags: 그림 © Twitter/X, CC-BY 4.0 · 글꼴 묶음 country-flag-emoji-polyfill(TalkJS), MIT */
@font-face {
    font-family: "Twemoji Country Flags";
    src: url("../fonts/TwemojiCountryFlags.woff2") format("woff2");
    unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
    font-display: swap;
}
body[data-page="contact"] .inquiry-form #inq-phone-code { font-family: "Twemoji Country Flags", var(--font-sans); }
/* 전화번호: 국가번호 드롭다운 + 번호 (HOME-112) */
body[data-page="contact"] .inquiry-form .form-phone { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 8px; }
body[data-page="contact"] .inquiry-form textarea { resize: vertical; min-height: 140px; line-height: 1.65; }
body[data-page="contact"] .inquiry-form select {
    appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%231E1E1E' stroke-width='1.5'/%3E%3C/svg%3E") right 16px center no-repeat;
}
body[data-page="contact"] .inquiry-form :is(input, select, textarea):hover { border-color: var(--ink-3); }
/* 입력칸은 포커스 테두리를 그리지 않는다(캐럿이 위치를 알려 준다). 테두리는 제출을 눌렀을 때 비어 있는 필수 항목에만 */
body[data-page="contact"] .inquiry-form :is(input, select, textarea):is(:focus, :focus-visible) {
    outline: none; box-shadow: none; border-color: var(--border-medium);
}
body[data-page="contact"] .inquiry-form button:focus-visible { outline: 2px solid var(--brand-orange); outline-offset: 2px; }
body[data-page="contact"] .inquiry-form.submitted input[type="checkbox"]:required:invalid { outline: 1px solid var(--brand-orange); outline-offset: 1px; }
body[data-page="contact"] .inquiry-form .form-help { font-size: 15px; color: var(--ink-3); margin: 0; }
body[data-page="contact"] .inquiry-form .form-consent {
    display: flex; align-items: flex-start; gap: 10px; font-size: var(--t-small); font-weight: 400; color: var(--ink); cursor: pointer;
}
body[data-page="contact"] .inquiry-form .form-consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
body[data-page="contact"] .inquiry-form .form-consent-link {
    justify-self: start; margin: -12px 0 0 28px; font-size: 15px; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--rule);
}
body[data-page="contact"] .inquiry-form .form-consent-link:hover { border-color: var(--ink); color: var(--ink); }
body[data-page="contact"] .inquiry-form .form-submit {
    justify-self: start; font: inherit; font-size: 16px; font-weight: 600; color: #fff; background: var(--ink);
    border: 0; border-radius: 999px; padding: 14px 36px; cursor: pointer; transition: opacity var(--transition-fast);
}
body[data-page="contact"] .inquiry-form .form-submit:hover { opacity: .8; }
body[data-page="contact"] .inquiry-form .form-status { font-size: var(--t-small); color: var(--ink-2); margin: 0; }
body[data-page="contact"] .inquiry-form .form-status[data-state="done"] { color: var(--ink); font-weight: 600; }
body[data-page="contact"] .inquiry-form .form-status[data-state="error"] { color: #b3261e; }
body[data-page="contact"] .inquiry-form .form-submit:disabled { opacity: .5; cursor: default; }
/* 미끼 입력란 — 봇만 채운다. display:none 은 일부 봇이 건너뛰므로 화면 밖으로 */
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 900px) {
    body[data-page="contact"] .inquiry-section .container { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    body[data-page="contact"] .inquiry-form { padding: 20px; }
    body[data-page="contact"] .inquiry-form .form-row { grid-template-columns: 1fr; }
    /* 폭이 모자라면(큰 글씨 1.3배) 국가번호와 번호가 두 줄로 쌓인다 */
    body[data-page="contact"] .inquiry-form .form-phone { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}
body[data-page="contact"] .faq-item {
    background: transparent; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; box-shadow: none; margin: 0; padding: 0;
}
body[data-page="contact"] .faq-answer p {
    font-size: 17px; line-height: 1.65; color: var(--ink-2); padding: 0 56px 28px 0; margin: 0; max-width: 72ch;
}
/* 문의 페이지 FAQ: 서비스 페이지와 같은 <details> 스타일, 답변은 문장마다 줄바꿈 */
body[data-page="contact"] #faq .section-header { text-align: left; margin-inline: 0; }

/* ==========================================================================
   IR 페이지
   ========================================================================== */

/* ==========================================================================
   개인정보 처리방침 · 이용약관
   ========================================================================== */
/* Privacy Policy Page Styles */
.privacy-policy-section {
    padding: 80px 0;
    position: relative;
}
.privacy-intro { margin-bottom: 60px; }
.intro-text { margin-bottom: 30px; }
.effective-date {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
}
.privacy-section { transition: all 0.3s ease; }
.privacy-section:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.privacy-section h2 {
    align-items: center;
    gap: 16px;
}
.privacy-section > p { margin-bottom: 24px; }
.info-box p { margin: 0; }
.purpose-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.purpose-item span {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
}
.retention-item strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}
.retention-item ul {
    list-style: none;
    padding: 0;
}
.retention-item li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}
.retention-item li:last-child { border-bottom: none; }
.destruction-method p { margin-bottom: 16px; }
.destruction-method ul {
    list-style: none;
    padding: 0;
}
.destruction-method li {
    padding: 12px 0;
    position: relative;
    padding-left: 24px;
}
.destruction-method li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}
.exception-list { margin-top: 20px; }
.exception-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.exception-item span {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
}
.cookie-info { margin: 24px 0; }
.cookie-info p { margin-bottom: 16px; }
.cookie-settings { margin-top: 20px; }
.cookie-settings p { margin-bottom: 12px; }
.warning-note {
    display: flex;
    align-items: center;
    gap: 12px;
}
.warning-note span {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
}
.manager-item { gap: 16px; }
.manager-item strong {
    min-width: 80px;
    font-weight: 700;
}
.manager-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}
.manager-item a:hover { color: var(--highlight-color); }
.external-contacts { margin-top: 32px; }
.external-contacts h4 { line-height: 1.65; }

@media (max-width: 640px) {
    .privacy-section h2 {
        flex-direction: column;
        gap: 8px;
    }
    .effective-date {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
/* 이용약관: 항목에 ①② 번호가 있어 불릿을 뺀다 */
body[data-page="terms"] .privacy-section ul { list-style: none; padding-left: 0; }
body[data-page="terms"] .privacy-section li { margin: 6px 0; }
body[data-page="privacy-policy"] .privacy-content, body[data-page="terms"] .privacy-content { max-width: 900px; margin: 0; }
body[data-page="privacy-policy"] .privacy-intro, body[data-page="terms"] .privacy-intro {
    background: transparent; border: 0; box-shadow: none; padding: 0 0 8px; text-align: left;
}
body[data-page="privacy-policy"] .intro-text { color: var(--ink-2); line-height: 1.65; }
body[data-page="privacy-policy"] .effective-date strong, body[data-page="terms"] .effective-date strong { color: var(--ink-2); font-weight: 500; }
body[data-page="privacy-policy"] .privacy-section, body[data-page="terms"] .privacy-section {
    background: transparent; border: 0; box-shadow: none; border-radius: 0; padding: clamp(28px, 4vw, 48px) 0 0; margin: 0;
}
body[data-page="privacy-policy"] .privacy-section h2, body[data-page="terms"] .privacy-section h2 {
    font-family: var(--font-display); font-size: clamp(1.35rem, 2vw, 1.875rem); font-weight: 700; letter-spacing: -.02em; color: var(--ink); margin: 0 0 16px; padding: 0; border: 0;
}
body[data-page="privacy-policy"] .privacy-content { counter-reset: sec; }
body[data-page="privacy-policy"] .privacy-section p, body[data-page="terms"] .privacy-section p,
body[data-page="privacy-policy"] .privacy-section li, body[data-page="terms"] .privacy-section li {
    line-height: 1.75; color: var(--ink-2);
}
body[data-page="privacy-policy"] .privacy-section h4 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 20px 0 8px; }
body[data-page="privacy-policy"] .privacy-section strong { color: var(--ink); }
body[data-page="privacy-policy"] .info-box, body[data-page="privacy-policy"] .retention-info, body[data-page="privacy-policy"] .destruction-method,
body[data-page="privacy-policy"] .warning-note, body[data-page="privacy-policy"] .purpose-item, body[data-page="privacy-policy"] .manager-info,
body[data-page="privacy-policy"] .contact-item, body[data-page="privacy-policy"] .retention-item, body[data-page="privacy-policy"] .purpose-list {
    margin: 10px 0;
}
body[data-page="privacy-policy"] .contact-item, body[data-page="privacy-policy"] .manager-item { display: block; }
/* 약관: 하위 항목 들여쓰기 */
body[data-page="terms"] .privacy-section li.sub { padding-left: 1.6em; position: relative; color: var(--ink-2); }
body[data-page="terms"] .privacy-section li.sub::before { content: "–"; position: absolute; left: .6em; color: var(--ink-3); }
/* 개인정보: 강조 상자 통일(평문), 제목 왼쪽 정렬·번호 같은 줄 */
body[data-page="privacy-policy"] .privacy-section > div, body[data-page="privacy-policy"] .privacy-section div[class] {
    background: transparent; border: 0; box-shadow: none; padding: 0; border-radius: 0;
}
body[data-page="privacy-policy"] .privacy-section h2, body[data-page="privacy-policy"] .privacy-section h4,
body[data-page="privacy-policy"] .privacy-section p, body[data-page="privacy-policy"] .privacy-section li {
    text-align: left;
}
body[data-page="privacy-policy"] .privacy-section h2 { display: block; }
body[data-page="privacy-policy"] .privacy-section h2::before {
    counter-increment: sec;
    content: counter(sec) ". ";
    display: inline;
    margin-right: .4em;
}
body[data-page="privacy-policy"] .effective-date {
    border: 0;
    padding: 0;
    color: var(--ink-2);
    font-size: 16px;
    justify-content: flex-start;
    margin: 8px 0 0;
    background: transparent;
    box-shadow: none;
}
body[data-page="terms"] .privacy-section h2 { text-align: left; display: block; justify-content: flex-start; }

@media (max-width: 760px) {
    body[data-page="privacy-policy"] .privacy-intro { margin-bottom: 28px; }
}

/* ==========================================================================
   도움말 — 사용 설명서(guide) · 제품 업데이트(updates) · 릴리스 노트(release-notes)
   왼쪽 고정 메뉴(세 페이지 + 지금 페이지의 목차) · 본문 2단. 생성기: tools/docs/gen_docs.py
   화면 이미지는 크기가 제각각이라 같은 높이의 회색 틀(.dg-screen) 안에 맞춰 넣는다 — 글 옆에 빈칸이 생기지 않게.
   ========================================================================== */
.docs { padding: calc(var(--nav-h) + 32px) 0 var(--pad-section); }  /* 고정 내비 높이만큼 비운다 */
.docs-layout {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}
.docs-side {
    position: sticky;
    top: calc(var(--nav-h) + 20px);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - var(--nav-h) - 40px);
    padding: 4px 0 16px;
    font-size: 15px;
}
/* 세 페이지 링크 · PDF 는 늘 보이게 위에 고정, 긴 목차만 따로 스크롤 — 목차에 밀려 아래 메뉴가 안 보이던 문제 */
.docs-pages { flex: none; }
.docs-toc {
    min-height: 0;
    overflow-y: auto;
    margin-top: 20px;
    padding: 16px 8px 0 0;
    border-top: 1px solid var(--rule);
    overscroll-behavior: contain;
}
.docs-side-title { margin: 0 0 8px; padding: 0 12px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.docs-side-list, .docs-side-sub { list-style: none; margin: 0; padding: 0; }
.docs-side-list > li { margin: 0 0 2px; }
.docs-side-list > li > a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}
.docs-side-list > li > a:hover, .docs-side-list > li > a:focus-visible { background: var(--ivory-2); }
.docs-side-list > li > a.is-active { background: #fff4e5; color: var(--brand-orange-text); font-weight: 700; }
.docs-side-sub { margin: 0 0 0 12px; padding-left: 10px; border-left: 2px solid var(--rule); }
.docs-side-sub li { margin: 0; }
.docs-side-sub a {
    display: block;
    padding: 5px 8px;
    border-radius: 6px;
    color: var(--ink-2);
    font-weight: 500;
    text-decoration: none;
    line-height: 1.4;
}
.docs-side-sub a:hover, .docs-side-sub a:focus-visible { color: var(--ink); background: var(--ivory-2); }
.docs-side-group { margin: 14px 0 4px; padding: 0 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.docs-side-group:first-child { margin-top: 4px; }
.docs-main { min-width: 0; max-width: 880px; }
.docs-head { padding: 8px 0 32px; margin-bottom: 8px; border-bottom: 1px solid var(--rule); }
.docs-crumbs { margin: 0 0 14px; font-size: 14px; color: var(--ink-2); }
.docs-crumbs a { color: var(--ink-2); text-decoration: none; }
.docs-crumbs a:hover { color: var(--ink); }
.docs-title { margin: 0 0 12px; font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.docs-lead { margin: 0; max-width: 700px; font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.docs-lead strong { color: var(--ink); }
.dg-edition { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 18px; font-size: 15px; }
.dg-edition-badge { padding: 4px 12px; border-radius: var(--radius-full); background: var(--ink); color: var(--white); font-weight: 700; }
.dg-edition-note { color: var(--ink-2); }
.dg-edition-link { color: var(--brand-orange-text); font-weight: 600; text-decoration: none; }
.dg-edition-link:hover, .dg-edition-link:focus-visible { text-decoration: underline; }
.dg-edition-past { color: var(--ink-2); }
.dg-edition-past > span { font-weight: 600; margin-right: 4px; }

/* 설명서 — 목차 카드 · 주제 · 단계(카드 / 나란히 / 목록) */
.dg-overview { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; padding: 32px 0 24px; }
.dg-overview-card { padding: 20px 22px; background: var(--white); border: 1px solid var(--rule); border-radius: 16px; }
.dg-overview-title { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: var(--ink); }
.dg-overview-card ul { list-style: none; margin: 0; padding: 0; }
.dg-overview-card li { margin: 0; }
.dg-overview-card a { display: block; padding: 5px 0; color: var(--ink); font-weight: 500; text-decoration: none; }
.dg-overview-card a:hover, .dg-overview-card a:focus-visible { color: var(--brand-orange-text); text-decoration: underline; }
.dg-topic { padding: 56px 0; border-top: 1px solid var(--rule); scroll-margin-top: calc(var(--nav-h) + 16px); }
.dg-topic-head { max-width: 700px; margin-bottom: 28px; }
.dg-eyebrow { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--brand-orange-text); }
.dg-title { margin: 0 0 10px; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.dg-intro { margin: 0; font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.dg-intro strong { color: var(--ink); }
.dg-h3 { margin: 32px 0 14px; font-size: 1.125rem; font-weight: 700; color: var(--ink); }
.dg-topic-head + .dg-h3 { margin-top: 0; }
.dg-num {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand-orange);
    color: var(--ink);
    font: 800 14px/1 var(--font-display);
}
.dg-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #f1f1f3;
}
.dg-screen img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(15, 23, 36, 0.1);
}
.dg-screen:focus-visible { outline: 2px solid var(--brand-orange); outline-offset: -2px; }
.dg-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.dg-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: 16px;
}
.dg-card .dg-screen { height: 300px; }
.dg-card-body { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px 18px; }
.dg-card-body p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--ink); }
.dg-card--text { justify-content: center; background: var(--ivory-2); }
.dg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dg-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 0;
    padding: 14px 18px;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: 12px;
}
.dg-list p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink); }
.dg-split { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.dg-split > .dg-screen { height: 480px; border-radius: 16px; }
.dg-figure {
    max-width: 640px;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    margin: 24px 0 0;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: 16px;
}
.dg-figure .dg-screen { height: 320px; }
.dg-caption { padding-right: 24px; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.dg-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 20px 0 0;
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--ivory-2);
    font-size: 16.5px;
    line-height: 1.6;
}
.dg-note > strong:first-child { flex: none; min-width: 3.5em; padding-top: 2px; color: var(--ink-2); font-size: 14px; letter-spacing: 0.02em; }
.dg-note--tip { background: #fff6ea; }
.dg-note--tip > strong:first-child { color: var(--brand-orange-text); }
.dg-note--warn { background: #fdf0ef; }
.dg-note p { margin: 0; }
.dg-note--warn > strong:first-child { color: #a1271d; }
.dg-related { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 20px 0 0; font-size: 14px; color: var(--ink-2); }
.dg-related span { font-weight: 600; margin-right: 4px; }
.dg-related a { padding: 3px 10px; border-radius: var(--radius-full); background: var(--ivory-2); color: var(--ink); font-weight: 600; text-decoration: none; }
.dg-related a:hover, .dg-related a:focus-visible { background: #fff4e5; color: var(--brand-orange-text); }
.dg-xrefs { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: auto 0 0; padding-top: 6px; }
.dg-xref { color: var(--brand-orange-text); font-size: 15px; font-weight: 600; text-decoration: none; }
.dg-xref:hover, .dg-xref:focus-visible { text-decoration: underline; }
.guide-rules { list-style: none; counter-reset: guide-rule; margin: 0 0 20px; padding: 0 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; background: var(--white); border: 1px solid var(--rule); border-radius: 12px; }
.guide-rules li {
    counter-increment: guide-rule;
    position: relative;
    margin: 0;
    padding: 18px 0 18px 36px;
    border-top: 1px solid var(--rule);
    font-size: 17px;
    line-height: 1.55;
}
.guide-rules li:nth-child(-n+2) { border-top: 0; }
.guide-rules li::before {
    content: counter(guide-rule);
    position: absolute;
    left: 0;
    top: 18px;
    color: var(--brand-orange-text);
    font: 800 20px/1.3 var(--font-display);
    font-variant-numeric: tabular-nums;
}
.guide-colors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--white); border: 1px solid var(--rule); border-radius: 12px; }
.guide-color { padding: 16px 20px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.guide-color + .guide-color { border-left: 1px solid var(--rule); }
.guide-color p { margin: 0; }
.guide-color strong { display: table; margin-bottom: 8px; padding: 3px 12px; border-radius: var(--radius-full); font-size: 15px; }
.guide-color--green strong { background: #1b7a3a; color: var(--white); }
.guide-color--red strong { background: #b3261e; color: var(--white); }
.guide-color--none strong { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px #b5b5b5; }
.guide-faq { margin: 0; font-size: 17px; line-height: 1.6; }
.guide-faq dt { margin: 0; padding: 16px 18px 4px; font-weight: 700; color: var(--ink); background: var(--white); border: 1px solid var(--rule); border-bottom: 0; border-radius: 12px 12px 0 0; }
.guide-faq dd { margin: 0 0 12px; padding: 0 18px 16px; color: var(--ink); background: var(--white); border: 1px solid var(--rule); border-top: 0; border-radius: 0 0 12px 12px; }
.guide-faq a { color: var(--brand-orange-text); }

.dg-wide { margin: 24px 0 0; }
.dg-wide a { display: block; overflow: hidden; border: 1px solid var(--rule); border-radius: 14px; background: var(--white); box-shadow: var(--shadow-md); }
.dg-wide img { display: block; width: 100%; height: auto; }
.dg-wide .dg-caption { margin: 10px 4px 0; padding: 0; font-size: 15px; }
.dg-table-wrap { overflow-x: auto; margin: 20px 0 0; border: 1px solid var(--rule); border-radius: 12px; background: var(--white); }
.dg-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.55; }
.dg-table th, .dg-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.dg-table th { background: var(--ivory-2); font-weight: 700; color: var(--ink); white-space: nowrap; }
.dg-table tr:last-child td { border-bottom: 0; }

/* 제품 업데이트 — 달마다 카드 2열 */
.up-month { padding: 40px 0 16px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.up-month + .up-month { border-top: 1px solid var(--rule); }
.up-month-title { margin: 0 0 20px; font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.up-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.up-card { display: flex; flex-direction: column; overflow: hidden; background: var(--white); border: 1px solid var(--rule); border-radius: 16px; }
.up-card .dg-screen { height: 260px; }
.up-card--text { grid-column: 1 / -1; }
.up-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.up-ver { align-self: flex-start; padding: 1px 9px; border: 1px solid #f2c48a; border-radius: var(--radius-full); background: #fff8ee; color: var(--brand-orange-text); font-size: 13px; font-weight: 700; }
.up-title { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.up-text { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--ink); }

/* 릴리스 노트 — 왼쪽 버전 · 날짜, 오른쪽 변경 사항 */
.rn-entry {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 32px;
    padding: 36px 0;
    border-top: 1px solid var(--rule);
    scroll-margin-top: calc(var(--nav-h) + 16px);
}
.rn-timeline > .rn-entry:first-child { border-top: 0; }
.rn-meta { position: sticky; top: calc(var(--nav-h) + 20px); align-self: start; }
.rn-version { margin: 0; font: 800 1.75rem/1.1 var(--font-display); color: var(--ink); }
.rn-date { margin: 6px 0 0; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.rn-manuals { padding: 32px 0 24px; border-bottom: 1px solid var(--rule); scroll-margin-top: calc(var(--nav-h) + 16px); }
.rn-manuals-lead { margin: 0; font-size: 16.5px; color: var(--ink-2); }
.rn-manuals .dg-table td:nth-child(n+3) { white-space: nowrap; }
.rn-soon { display: inline-block; margin-left: 6px; padding: 0 8px; border: 1px solid #f2c48a; border-radius: var(--radius-full); background: #fff8ee; color: var(--brand-orange-text); font-size: 13px; font-weight: 700; }
.rn-pdfs { display: flex; flex-direction: column; gap: 4px; margin: 12px 0 0; }
.rn-pdfs .dg-xref { font-size: 14px; }
.rn-latest { display: inline-block; margin: 10px 0 0 4px; padding: 2px 10px; border-radius: var(--radius-full); background: #1b7a3a; color: var(--white); font-size: 13px; font-weight: 700; }
.rn-summary { margin: 0 0 16px; font-size: 18px; font-weight: 600; line-height: 1.55; color: var(--ink); }
.rn-group + .rn-group { margin-top: 18px; }
.rn-kind { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 8px; padding: 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.rn-kind::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9a9a9a; }
.rn-kind--new::before { background: #1b7a3a; }
.rn-kind--better::before { background: var(--brand-orange); }
.rn-list { margin: 0; padding-left: 1.2em; font-size: 16.5px; line-height: 1.65; color: var(--ink); }
.rn-list li { margin: 0 0 6px; }
.rn-list .dg-xref { margin-left: 8px; font-size: 14px; white-space: nowrap; }

@media (max-width: 1100px) {
    .docs-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
}
@media print {
    /* 인쇄용 PDF 는 이 페이지를 그대로 인쇄해서 만든다(tools/docs/print_pdf.py) */
    [data-site-shell], .navbar, .footer, footer, .docs-side, .dg-related, .dg-edition-link, .docs-crumbs { display: none !important; }
    .docs { padding: 0 !important; }
    .docs-layout { display: block; }
    .docs-main { max-width: none; }
    .dg-topic { break-before: page; padding: 0 0 24px; border-top: 0; }
    .dg-card, .dg-list li, .dg-figure, .dg-wide, .dg-note, .guide-rules li, .rn-entry, .up-card, .dg-table tr { break-inside: avoid; }
    .dg-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dg-card .dg-screen { height: 260px; }
    .dg-screen, .dg-card, .dg-wide a { box-shadow: none; }
    .dg-overview { break-after: page; }
    a { color: inherit; text-decoration: none; }
}
@media (max-width: 900px) {
    .docs { padding-top: calc(var(--nav-h) + 16px); }
    .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .docs-side { position: static; max-height: none; padding: 0; }
    .docs-side-title, .docs-toc { display: none; }
    .docs-side-list { display: flex; flex-wrap: wrap; gap: 8px; }
    .docs-side-list > li { margin: 0; }
    .docs-side-list > li > a { padding: 8px 14px; border: 1px solid var(--rule); border-radius: var(--radius-full); background: var(--white); }
        .dg-split { grid-template-columns: minmax(0, 1fr); }
    .dg-split > .dg-screen { height: 400px; }
    .dg-figure { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .dg-caption { padding: 16px 18px 18px; }
    .guide-rules { grid-template-columns: minmax(0, 1fr); }
    .guide-rules li:nth-child(2) { border-top: 1px solid var(--rule); }
    .rn-entry { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 28px 0; }
    .rn-meta { position: static; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
    .rn-date, .rn-latest { margin: 0; }
}
@media (max-width: 760px) {
    .guide-colors, .up-grid { grid-template-columns: minmax(0, 1fr); }
    .guide-color + .guide-color { border-left: 0; border-top: 1px solid var(--rule); }
    .dg-topic { padding: 40px 0; }
}
@media (max-width: 640px) {
    /* 단계 카드는 옆으로 밀어 넘긴다 — 세로로 쌓으면 화면 하나가 한 화면을 다 차지한다 */
    .dg-cards {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 80%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
    }
    .dg-card { scroll-snap-align: start; }
    .dg-card .dg-screen { height: 340px; }
}

/* ==========================================================================
   그 밖
   ========================================================================== */
.tag {
    background: transparent;
    color: #565656;
    padding: 0;
    font-weight: 600;
}

/* ==========================================================================
   순서에 기대는 규칙 — 앞 구획의 규칙과 명시도가 같아 뒤에 와야 이긴다. 옮기지 말 것
   ========================================================================== */
.services-grid .service-card-new { flex: 1 1 320px; }

@media (max-width: 968px) {
    .location-content,
    .ceo-profile {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
.news-card:hover,
.service-card-new:hover,
.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(15, 23, 36, 0.08);
}
/* ── 핵심 서비스 카드 ─────────────────────────────────────
카드가 흰 면으로 바뀌면서 흰색이던 배지·부제가 보이지 않게 됐습니다.
면 위에서 읽히도록 색을 다시 잡고, 이중으로 들어가던 안쪽 여백을 줄입니다. */
.services-grid .service-card-new { transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base); }
.services-grid .service-card-new {
    grid-column: span 2; background: transparent; border: 0;
    box-shadow: none; padding: 0; transform: none;
    border-radius: 0; overflow: visible;
}
/* 파트너: 카드가 7장 두 줄을 차지했습니다. 로고는 기존 스타일시트가
이미 숨겨 둔 상태라(텍스트 표기가 의도) 이름과 역할만 압축합니다. */
.partners-section .partner-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    transition: opacity var(--transition-fast);
    padding: 0;
    border-radius: 0;
    overflow: visible;
}

@media (max-width: 1100px) {
    .services-grid .service-card-new, .services-grid .service-card-new:nth-child(-n + 2) { grid-column: auto; }
}
/* 브레드크럼의 회색 알약 배경 제거 */
body .page-header .breadcrumb a, body .page-header .breadcrumb span {
    background: transparent;
    color: var(--ink-2);
}

@media (max-width: 760px) {
    body[data-page="about"] .team-lead, body[data-page="about"] .team-grid,
    body[data-page="about"] #company .company-feature-grid, body[data-page="news"] .news-grid {
        grid-template-columns: 1fr;
    }
}
/* 본문·보조 텍스트 크기 통일 */
.services-grid .service-subtitle, .services-grid .service-description, #faq .faq-answer, #genealogy .step-item span,
#genealogy-detail .overview-description, .section-description, body[data-page="ceo"] .message-text p {
    font-size: var(--t-body);
}

@media (max-width: 760px) {
    body[data-page="about"] #company .company-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

@media (min-width: 761px) and (max-width: 1100px) {
    .services-grid .service-card-new { grid-column: span 2; }
    .services-grid .service-card-new:nth-child(-n + 2) { grid-column: span 3; }
}
.services-grid .service-card-new { position: relative; }
a:focus:not(:focus-visible), button:focus:not(:focus-visible), select:focus:not(:focus-visible), summary:focus:not(:focus-visible) {
    outline: none; box-shadow: none;
}
/* 뉴스·문의: 숨긴 .page-header 뒤 첫 섹션 — 위 통일 규칙(.page-header + section)보다 특이도를 높여 내비 아래 여백을 되찾는다 */
body[data-page="news"] .page-header + section.news-section,
body[data-page="contact"] .page-header + section#faq {
    padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 88px));
}

@media (max-width: 760px) {
    .section-title, .hero3-title, body .page-header .page-title, #genealogy .getting-started-info h2 { font-size: 32px; line-height: 1.18; }
}

/* ==========================================================================
   보조 글자 가독성 (HOME-129) — 고연령 가독성 검토(HOME-126)의 방안 B.
   제목과 본문(17px)은 그대로 두고, 13~15px 이던 보조 글자만 15~16px 바닥으로 올렸다(위의 각 규칙에서).
   작은 글자는 옅은 회색·가는 굵기라 더 작아 보였다 → 색을 먹색으로, 굵기를 500 으로.
   ========================================================================== */
.services-grid .feature-item,
#traction .traction-brand .patent-id,
.footer-column a, .footer-company-info, .footer-legal a,
body[data-page="contact"] .inquiry-form .form-help,
body[data-page="contact"] .inquiry-form .form-consent-link,
body[data-page="news"] .news-grid .news-card .news-meta,
body[data-page="news"] .news-grid .news-card .news-source,
body[data-page="news"] .news-grid .news-card .news-date { color: var(--ink); font-weight: 500; }
