/* ============================================================
   팀점 공통 스타일 — 모든 페이지가 공유
   브랜드 토큰은 이 파일에서만 정의한다 (페이지 CSS에서 재정의 금지)
============================================================ */
:root {
    /* ── KTNET 브랜드 토큰: CI 확정 hex로 이 두 줄만 교체 ── */
    --brand: #0056A4;
    --brand-deep: #003567;
    /* ──────────────────────────────────────────────────── */
    --brand-tint: #EAF2FA;
    --brand-soft: #8FC0EC;
    --paper: #F7F9FC;
    --ink: #16222E;
    --ink-soft: #5A6A7A;
    --card: #FFFFFF;
    --line: #DCE4EE;
    --display: 'Gowun Batang', serif;
    --body: 'Pretendard Variable', Pretendard, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── 상단 내비 (공통) ──────────────────────────────────── */
.nav {
    position: sticky; top: 0; z-index: 10;
    background: rgba(247, 249, 252, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    max-width: 720px; margin: 0 auto;
    padding: 12px 16px;
    display: flex; align-items: center; justify-content: space-between;
}
.brand {
    font-family: var(--display); font-weight: 700; font-size: 20px;
    color: var(--ink); text-decoration: none; letter-spacing: -0.02em;
}
.brand .dot { color: var(--brand); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.me { font-size: 14px; color: var(--ink-soft); }
.me b { color: var(--ink); font-weight: 700; }

/* ── 버튼 (공통) ───────────────────────────────────────── */
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; min-height: 44px;
    border-radius: 10px; text-decoration: none;
    font-size: 14px; font-weight: 600; color: var(--ink-soft);
}

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 20px;
    border: none; border-radius: 10px;
    font-family: var(--body); font-size: 15px; font-weight: 600;
    text-decoration: none; cursor: pointer;
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover {
    background: var(--brand-deep);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 86, 164, .28);
}
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--brand-tint); }

/* ── 본문 컨테이너 (공통) ──────────────────────────────── */
.container { max-width: 720px; margin: 0 auto; padding: 20px 16px; }
@media (max-width: 640px) {
    .container { padding: 16px 14px; }
}

/* ── htmx 로딩 인디케이터 (공통) ───────────────────────── */
.htmx-indicator { opacity: 0; transition: opacity .2s; }
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator { opacity: 1; }

/* ── 빈 상태 (공통) ────────────────────────────────────── */
.empty {
    text-align: center; padding: 56px 20px;
    color: var(--ink-soft); font-size: 15px;
}
.empty b {
    display: block; font-family: var(--display);
    font-size: 19px; color: var(--ink); margin-bottom: 6px;
}
/* ── 푸터 (공통) ───────────────────────────────────────── */
.footer {
    margin-top: 48px;
    border-top: 1px solid var(--line);
    background: var(--paper);
}
.footer-inner {
    max-width: 720px; margin: 0 auto;
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
    font-size: 12.5px; color: var(--ink-soft);
}
.footer .dot { color: var(--brand); }
.footer-links a {
    color: var(--ink-soft); text-decoration: none;
    padding: 8px 4px;               /* 터치 타겟 보정 */
}
.footer-links a:hover { color: var(--brand-deep); }
.footer-links { display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 640px) {
    .footer-inner { flex-direction: column; gap: 6px; text-align: center; }
}
/* ── 뒤로가기 (공통) ───────────────────────────────────── */
.back-btn {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 44px; padding: 0 10px 0 4px;
    margin: 0 0 6px -8px;              /* 본문 왼쪽 라인에 시각적으로 정렬 */
    border: none; background: none; cursor: pointer;
    font-family: var(--body); font-size: 14.5px; font-weight: 600;
    color: var(--ink-soft); text-decoration: none;
    border-radius: 10px;
}
.back-btn:hover { background: var(--brand-tint); color: var(--brand-deep); }
.back-btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.back-btn .arrow { font-size: 17px; line-height: 1; }
