/* ============================================================
   doc.css - shared canon for resume / career documents (KR + EN)
   Single source of truth: variables, page frame, header, section
   title base, highlights, floating nav, screen/print media.
   Page-specific components stay in each file's inline <style>.
   ============================================================ */

@page { size: A4; margin: 0; }

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
    font-family: 'Inter', 'Pretendard Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    color: var(--text);
    background: #fff;
    font-size: 9pt;
    line-height: 1.36;
    -webkit-font-smoothing: antialiased;
}

.page {
    width: 210mm;
    min-height: 297mm;
    max-height: 297mm;
    padding: 12mm 18mm 10mm 18mm;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}
/* brand accent stripe */
.page::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
    background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 62%, var(--gold) 62%, var(--gold) 100%);
}

/* ===== Header (identical on both documents) ===== */
.header { margin: 0 -7px 9px; padding: 0 7px 6px; border-bottom: 2px solid var(--navy); }
.header .h1-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.header h1 { font-size: 21pt; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 1px; }
.header h1 span { font-weight: 500; font-size: 13pt; color: var(--text-2); margin-left: 6px; }
.header .doc-type { font-size: 8.4pt; font-weight: 700; color: var(--gold); letter-spacing: 1px; white-space: nowrap; }
.header .role { font-size: 9.5pt; font-weight: 700; color: var(--gold); letter-spacing: .2px; margin-bottom: 3px; }
.header .sub { font-size: 8.5pt; font-weight: 600; color: var(--text-2); margin-bottom: 3px; }
.header-contact { display: flex; gap: 7px; flex-wrap: wrap; font-size: 8.2pt; color: var(--text-2); margin-top: 3px; }
.header-contact a { color: var(--link); text-decoration: none; }
.header-contact .sep { color: var(--sep); }

/* ===== Section title base (tracking is script-specific, per file) ===== */
.section-title {
    font-size: 9.5pt; font-weight: 800;
    color: var(--navy); border-bottom: 1px solid var(--rule);
    background: var(--band); border-radius: 3px 3px 0 0;
    padding: 3px 7px 2px; margin: 0 -7px 4px; 
}

/* ===== Shared inline accents ===== */
.hl { color: var(--gold); font-weight: 700; }

/* ===== Floating nav (screen only; hidden in print/PDF) ===== */
.top-nav {
    position: fixed; top: 18px; right: 18px; z-index: 1000;
    display: flex; flex-direction: column; align-items: stretch; gap: 10px;
    width: 141px;
}
.top-nav a {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 9px 14px; border-radius: 9px;
    text-decoration: none; font-size: 10pt; font-weight: 700; letter-spacing: .2px;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.top-nav .to-career, .top-nav .to-resume { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.top-nav .to-career:hover, .top-nav .to-resume:hover { background: var(--navy); color: #fff; }
.top-nav .lang { background: #fff; color: var(--gold); border: 1.5px solid var(--gold); }
.top-nav .lang:hover { background: var(--gold); color: #fff; }
.top-nav .download-pdf { background: var(--navy); border: 1.5px solid var(--navy); color: #fff; box-shadow: 0 4px 14px rgba(10, 41, 71, .30); }
.top-nav .download-pdf:hover { background: var(--gold); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(138, 84, 16, .38); }
.top-nav .download-pdf:active { transform: translateY(0); }

@media screen {
    body { background: #fff; padding: 24px 0; }
    .page { margin-bottom: 18px; border: 1px solid #eceef2; box-shadow: 0 2px 14px rgba(20, 35, 63, .14); }
}

@media print {
    body { background: #fff; padding: 0; }
    .page { margin: 0; border: none; box-shadow: none; }
    .top-nav { display: none !important; }
}
