/* ─── 기본 ──────────────────────────────────────────
   색·타이포 토큰은 /css/tokens.css 가 소유한다. 테마는 그중
   바꾸고 싶은 변수만 여기서 다시 선언하면 이 값이 이긴다.       */
body {
    font-family: var(--font-sans);
    color: var(--text-body);
}

/* ─── 네비게이션 ────────────────────────────────── */
.navbar {
    border-bottom: 1px solid var(--border-hairline);
}
.navbar-brand {
    font-size: 1.3rem;
    font-weight: 700;
}
.nav-link {
    font-weight: 500;
    font-size: .9rem;
}
/* 현재 위치 표시 — aria-current 와 짝이 되는 시각 신호 */
.navbar-nav .nav-link.active {
    font-weight: 700;
    color: var(--primary);
    box-shadow: inset 0 -2px 0 var(--primary);
}

/* ─── 히어로 ─────────────────────────────────────── */
.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
}

/* ─── 페이지 콘텐츠 ──────────────────────────────── */
.page-content img {
    max-width: 100%;
    height: auto;
}
.page-content h2, .page-content h3 {
    margin-top: 1.5rem;
    margin-bottom: .75rem;
}

/* ─── 게시글 본문 ────────────────────────────────── */
.post-content {
    min-height: 200px;
    line-height: 1.8;
    overflow-wrap: break-word;
}
.post-content img {
    max-width: 100%;
    height: auto;
}

/* ─── 게시판 ─────────────────────────────────────── */
.board-table th {
    background: #f8f9fa;
    font-size: .8rem;
    font-weight: 600;
}
.board-table td {
    font-size: .875rem;
    vertical-align: middle;
}

/* ─── 카드 공통 ──────────────────────────────────── */
.card {
    --bs-card-border-radius: .75rem;
    --bs-card-inner-border-radius: calc(.75rem - 1px);
}

/* ─── 푸터 ───────────────────────────────────────── */
footer a {
    color: #adb5bd; /* 다크 푸터 배경 대비 7.4:1 */
    text-decoration: none;
}
footer a:hover {
    color: #fff;
}

/* ─── 유틸 ───────────────────────────────────────── */
.object-fit-cover {
    object-fit: cover;
}

/* ─── 배너 슬롯 ──────────────────────────────────── */
.sp-banner-slot {
    width: 320px;
}
.sp-banner-img {
    display: block;
    width: 300px;
    max-width: 100%;
    height: auto;
    margin-bottom: 8px;
}

/* ─── 메인 배너 ──────────────────────────────────── */
.main-banner-wrap {
    max-width: 1000px;
    margin: 0 auto;
}
.main-banner-wrap img {
    display: block;
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin-bottom: 8px;
}

/* ─── AILign 소개 ───────────────────────────────── */
.about-container {
    max-width: 1120px;
}
.about-hero {
    overflow: hidden;
    padding: 5.5rem 0 5rem;
    color: var(--on-dark-strong);
    background: #172638;
}
.about-hero h1,
.about-intro h2,
.about-section-heading h2,
.about-principles h2,
.about-cta h2 {
    letter-spacing: -.035em;
    font-weight: 700;
}
.about-hero h1 {
    max-width: 11ch;
    margin: 0 0 1.5rem;
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    line-height: 1.16;
}
.about-hero h1 span {
    color: #8ec5ff;
}
.about-hero-copy {
    max-width: 56ch;
    margin-bottom: 2rem;
    color: var(--on-dark-body);
    font-size: 1.08rem;
    line-height: 1.8;
}
.about-hero .btn-outline-secondary {
    border-color: #93a5b9;
    color: #fff;
}
.about-hero .btn-outline-secondary:hover {
    border-color: #fff;
    background: #fff;
    color: #172638;
}
.about-quote-sheet {
    position: relative;
    min-height: 390px;
    padding: 2.25rem;
    color: #172638;
    background: #f5f0e7;
    box-shadow: 18px 20px 0 rgba(8, 17, 28, .35);
    transform: rotate(2deg);
}
.about-sheet-topline {
    width: 52px;
    height: 6px;
    margin-bottom: 1.5rem;
    background: var(--primary);
}
.about-sheet-label {
    margin-bottom: .4rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
}
.about-sheet-title {
    margin-bottom: 2rem;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.35;
}
.about-sheet-steps {
    display: grid;
    gap: .8rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-weight: 600;
}
.about-sheet-steps span {
    display: inline-block;
    width: 2.3rem;
    color: #667586;
    font-size: .78rem;
    letter-spacing: .08em;
}
.about-sheet-stamp {
    position: absolute;
    right: 1.75rem;
    bottom: 1.75rem;
    padding: .55rem .7rem;
    border: 2px solid #2d5f96;
    color: #2d5f96;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1.35;
    text-align: center;
    transform: rotate(-8deg);
}
.about-intro,
.about-principles {
    padding: 6rem 0;
}
.about-intro {
    background: var(--surface-raised);
}
.about-intro h2,
.about-principles h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.25;
}
.about-intro p {
    max-width: 58ch;
    color: var(--text-body);
    font-size: 1.08rem;
    line-height: 1.85;
}
.about-workflow {
    padding: 6rem 0;
    background: #e9f1fa;
}
.about-section-heading {
    max-width: 58ch;
    margin-bottom: 3rem;
}
.about-section-heading h2 {
    margin-bottom: .85rem;
    font-size: clamp(2rem, 3.5vw, 3rem);
}
.about-section-heading p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}
.about-flow {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid #9db1c5;
}
.about-flow-item {
    position: relative;
    padding: 2rem 1.25rem 1.5rem 0;
}
.about-flow-item + .about-flow-item {
    padding-left: 1.25rem;
    border-left: 1px solid #9db1c5;
}
.about-flow-number {
    display: block;
    margin-bottom: 2.8rem;
    color: #416888;
    font-size: .82rem;
    font-weight: 700;
}
.about-flow-item > i {
    display: block;
    margin-bottom: 1.2rem;
    color: var(--primary);
    font-size: 2rem;
}
.about-flow-item h3 {
    margin-bottom: .75rem;
    font-size: 1.35rem;
    font-weight: 700;
}
.about-flow-item p {
    min-height: 5.25rem;
    margin-bottom: 1.35rem;
    color: var(--text-body);
    line-height: 1.7;
}
.about-flow-item ul {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #345874;
    font-size: .9rem;
    line-height: 2;
}
.about-flow-item li::before {
    content: '—';
    margin-right: .5rem;
}
.about-principles {
    overflow: hidden;
    background: #f5f0e7;
}
.about-principle {
    padding: 0 0 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #c9c1b3;
}
.about-principle:last-child {
    margin-bottom: 0;
}
.about-principle span {
    display: block;
    margin-bottom: .55rem;
    color: #254b72;
    font-size: 1.1rem;
    font-weight: 700;
}
.about-principle p {
    max-width: 60ch;
    margin: 0;
    color: var(--text-body);
    line-height: 1.75;
}
.about-cta {
    padding: 5.5rem 0;
    color: var(--on-dark-strong);
    background: #254b72;
}
.about-cta h2 {
    margin-bottom: .85rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
}
.about-cta p {
    margin-bottom: 2rem;
    color: #d4e4f4;
    font-size: 1.08rem;
}
@media (max-width: 991.98px) {
    .about-hero {
        padding: 4rem 0;
    }
    .about-quote-sheet {
        max-width: 460px;
        margin: 1rem auto 0;
    }
    .about-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .about-flow-item {
        padding: 1.75rem 1.5rem 1.75rem 0;
        border-bottom: 1px solid #9db1c5;
    }
    .about-flow-item + .about-flow-item {
        padding-left: 1.5rem;
        border-left: 1px solid #9db1c5;
    }
    .about-flow-item:nth-child(odd) {
        border-left: 0;
    }
    .about-flow-item:last-child {
        border-bottom: 0;
    }
    .about-flow-number {
        margin-bottom: 1.2rem;
    }
    .about-flow-item p {
        min-height: auto;
    }
}
@media (max-width: 575.98px) {
    .about-hero,
    .about-intro,
    .about-workflow,
    .about-principles,
    .about-cta {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
    .about-quote-sheet {
        min-height: 350px;
        padding: 1.75rem;
        box-shadow: 10px 12px 0 rgba(8, 17, 28, .35);
    }
    .about-flow {
        grid-template-columns: 1fr;
    }
    .about-flow-item,
    .about-flow-item + .about-flow-item {
        padding: 1.75rem 0;
        border-left: 0;
    }
}

/* ─── 팝업 레이어 ───────────────────────────────── */
.site-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    background: var(--surface-raised);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,.22);
    width: max-content;
    max-width: min(380px, calc(100vw - 40px));
}
.site-popup-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0 4px;
}
.site-popup-close:hover { color: var(--text-strong); }
.site-popup-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px 8px 0 0;
}
.site-popup-body {
    padding: 1rem 1rem .5rem;
    font-size: .9rem;
    line-height: 1.6;
}
.site-popup-body:first-child { padding-top: 2rem; }
.site-popup-footer {
    padding: .5rem 1rem .75rem;
    border-top: 1px solid var(--border-hairline);
}
.site-popup-today {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}
