/* ============================================================
   Resume_v15 — «کارت ویزیت فشرده» / Compact Business-Card
   Dense, mostly above-the-fold card: left identity strip +
   right information-dense grid. Slate + single brass accent.
   All classes prefixed resume15-.
   ============================================================ */

.resume15-root {
    --r15-ink: #1f2733;
    --r15-ink2: #46505e;
    --r15-muted: #76808e;
    --r15-line: #e7ebf0;
    --r15-panel: #f4f6f9;
    --r15-slate: #2a3340;
    --r15-slate2: #353f4e;
    --r15-brass: #b08d57;
    --r15-brass-soft: #efe4d2;
    --r15-bg1: #eef1f5;
    --r15-bg2: #e2e7ee;

    font-family: Vazir, IRANYekan, Tahoma, sans-serif;
    direction: rtl;
    color: var(--r15-ink);
    background:
        radial-gradient(900px 520px at 12% -10%, #f7f4ee 0%, transparent 60%),
        linear-gradient(135deg, var(--r15-bg1), var(--r15-bg2));
    padding: 30px 18px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100%;
    box-sizing: border-box;
    line-height: 1.7;
}

.resume15-root *,
.resume15-root *::before,
.resume15-root *::after { box-sizing: border-box; }

/* ===== The compact card ===== */
.resume15-card {
    width: 100%;
    max-width: 820px;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid var(--r15-line);
    box-shadow: 0 24px 60px rgba(31, 39, 51, .16), 0 2px 0 rgba(176, 141, 87, .35);
    overflow: hidden;
    display: grid;
    grid-template-columns: 248px 1fr;
}

/* ===== Left identity strip ===== */
.resume15-strip {
    background:
        radial-gradient(420px 220px at 70% -20%, rgba(176,141,87,.28), transparent 65%),
        linear-gradient(180deg, var(--r15-slate), var(--r15-slate2));
    color: #eef1f5;
    padding: 26px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
}

.resume15-strip::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 3px;
    background: linear-gradient(180deg, transparent, var(--r15-brass), transparent);
}

.resume15-strip-top { text-align: center; }

.resume15-avatar {
    width: 104px;
    height: 104px;
    margin: 0 auto 12px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--r15-brass), #d9bd91);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
}

.resume15-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    border: 2px solid var(--r15-slate);
}

.resume15-name {
    font-size: 1.32rem;
    font-weight: 800;
    margin: 0 0 3px;
    letter-spacing: .2px;
}

.resume15-role {
    font-size: .92rem;
    color: var(--r15-brass-soft);
    font-weight: 600;
}

.resume15-years {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    font-weight: 700;
    color: #f3e8d6;
    background: rgba(176, 141, 87, .22);
    border: 1px solid rgba(176, 141, 87, .5);
    padding: 5px 12px;
    border-radius: 50px;
}

.resume15-years i { color: var(--r15-brass); font-size: .72rem; }

/* contact rows */
.resume15-contact {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.resume15-crow {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .8rem;
    color: #d7dde6;
    min-width: 0;
}

.resume15-crow i {
    width: 26px;
    height: 26px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: var(--r15-brass);
    font-size: .78rem;
}

.resume15-crow a,
.resume15-crow span {
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resume15-crow a:hover { color: #fff; text-decoration: underline; }

/* languages in strip */
.resume15-strip-langs {
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.resume15-strip-h {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--r15-brass);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.resume15-lang {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .8rem;
    color: #d7dde6;
}

.resume15-langlevel {
    font-size: .7rem;
    color: var(--r15-slate);
    background: var(--r15-brass-soft);
    padding: 2px 9px;
    border-radius: 50px;
    font-weight: 700;
}

/* download */
.resume15-dl {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    font-weight: 800;
    font-size: .86rem;
    color: var(--r15-slate);
    background: linear-gradient(135deg, var(--r15-brass), #d4b585);
    padding: 11px 16px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(176, 141, 87, .4);
    transition: transform .15s ease, box-shadow .15s ease;
}

.resume15-dl:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(176, 141, 87, .5);
    color: var(--r15-slate);
}

/* ===== Right dense main ===== */
.resume15-main {
    padding: 24px 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.resume15-block { min-width: 0; }

.resume15-summary-block {
    border-bottom: 1px dashed var(--r15-line);
    padding-bottom: 14px;
}

.resume15-pagetitle {
    font-size: 1.18rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--r15-ink);
    position: relative;
    padding-right: 14px;
}

.resume15-pagetitle::before {
    content: "";
    position: absolute;
    right: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 4px;
    background: var(--r15-brass);
}

.resume15-summary {
    font-size: .85rem;
    color: var(--r15-ink2);
    line-height: 1.85;
}

.resume15-summary p { margin: 0 0 .4em; }

/* the information-dense grid */
.resume15-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
    align-items: start;
}

.resume15-span2 { grid-column: 1 / -1; }

/* section heading */
.resume15-h {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .3px;
    color: var(--r15-slate);
    margin-bottom: 9px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--r15-line);
}

.resume15-h i { color: var(--r15-brass); font-size: .82rem; }

/* experience */
.resume15-exp-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
}

.resume15-exp {
    background: var(--r15-panel);
    border: 1px solid var(--r15-line);
    border-radius: 12px;
    padding: 11px 13px;
    border-right: 3px solid var(--r15-brass);
}

.resume15-exp-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.resume15-exp-role {
    font-size: .88rem;
    font-weight: 800;
    color: var(--r15-ink);
}

.resume15-exp-date {
    font-size: .68rem;
    color: var(--r15-muted);
    white-space: nowrap;
    flex: none;
}

.resume15-exp-org {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: .78rem;
    font-weight: 600;
    color: var(--r15-brass);
    margin: 2px 0 5px;
}

.resume15-exp-loc {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: .68rem;
    color: var(--r15-muted);
    font-weight: 500;
}

.resume15-exp-loc i { font-size: .62rem; }

.resume15-exp-desc {
    margin: 0;
    font-size: .76rem;
    color: var(--r15-ink2);
    line-height: 1.7;
}

/* skills chips */
.resume15-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.resume15-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .76rem;
    font-weight: 700;
    color: var(--r15-slate);
    background: #fff;
    border: 1px solid var(--r15-line);
    padding: 5px 11px;
    border-radius: 50px;
    box-shadow: 0 2px 6px rgba(31, 39, 51, .05);
}

.resume15-chip-dot {
    width: 30px;
    height: 5px;
    border-radius: 50px;
    background:
        linear-gradient(90deg, var(--r15-brass) var(--lvl, 70%), var(--r15-line) var(--lvl, 70%));
    flex: none;
}

/* education */
.resume15-edu-list { display: flex; flex-direction: column; gap: 10px; }

.resume15-edu {
    border-right: 2px solid var(--r15-brass-soft);
    padding-right: 10px;
}

.resume15-edu-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.resume15-edu-deg {
    font-size: .82rem;
    font-weight: 800;
    color: var(--r15-ink);
}

.resume15-edu-date {
    font-size: .68rem;
    color: var(--r15-muted);
    white-space: nowrap;
    flex: none;
}

.resume15-edu-inst {
    font-size: .76rem;
    color: var(--r15-brass);
    font-weight: 600;
    margin-top: 1px;
}

.resume15-edu-desc {
    font-size: .73rem;
    color: var(--r15-ink2);
    margin-top: 3px;
    line-height: 1.65;
}

/* certifications */
.resume15-cert-list { display: flex; flex-direction: column; gap: 9px; }

.resume15-cert {
    display: flex;
    align-items: center;
    gap: 10px;
}

.resume15-cert > i {
    width: 30px;
    height: 30px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--r15-brass-soft);
    color: var(--r15-brass);
    font-size: .82rem;
}

.resume15-cert-name {
    font-size: .8rem;
    font-weight: 700;
    color: var(--r15-ink);
}

.resume15-cert-meta {
    font-size: .7rem;
    color: var(--r15-muted);
}

/* projects */
.resume15-proj-list { display: flex; flex-direction: column; gap: 9px; }

.resume15-proj {
    background: var(--r15-panel);
    border: 1px solid var(--r15-line);
    border-radius: 10px;
    padding: 9px 11px;
}

.resume15-proj-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.resume15-proj-name {
    font-size: .8rem;
    font-weight: 800;
    color: var(--r15-ink);
}

.resume15-proj-link {
    width: 24px;
    height: 24px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: var(--r15-slate);
    color: #fff;
    text-decoration: none;
    font-size: .66rem;
}

.resume15-proj-link:hover { background: var(--r15-brass); }

.resume15-proj-desc {
    margin: 4px 0 0;
    font-size: .74rem;
    color: var(--r15-ink2);
    line-height: 1.65;
}

/* interests */
.resume15-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.resume15-tag {
    font-size: .73rem;
    font-weight: 600;
    color: var(--r15-ink2);
    background: var(--r15-panel);
    border: 1px solid var(--r15-line);
    padding: 4px 11px;
    border-radius: 50px;
}

/* ===== Floating download button ===== */
.resume15-fab {
    position: fixed;
    bottom: 22px;
    left: 22px;
    z-index: 9000;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    font-weight: 800;
    font-size: .85rem;
    color: #fff;
    background: linear-gradient(135deg, var(--r15-slate), var(--r15-slate2));
    padding: 12px 18px;
    border-radius: 50px;
    box-shadow: 0 12px 30px rgba(31, 39, 51, .4);
    transition: transform .15s ease;
}

.resume15-fab:hover { transform: translateY(-2px); color: #fff; }
.resume15-fab i { color: var(--r15-brass); }

/* ===== Responsive ===== */
@media (max-width: 720px) {
    .resume15-card { grid-template-columns: 1fr; }
    .resume15-strip { gap: 16px; }
    .resume15-dl { margin-top: 6px; }
    .resume15-grid { grid-template-columns: 1fr; }
    .resume15-exp-list { grid-template-columns: 1fr; }
    .resume15-strip::after { display: none; }
}

@media (max-width: 420px) {
    .resume15-root { padding: 14px 8px; }
    .resume15-main { padding: 18px 16px 20px; }
}

/* ===== Print (A4) ===== */
@media print {
    .resume15-root {
        background: #fff !important;
        padding: 0 !important;
    }
    .resume15-fab,
    .resume15-dl { display: none !important; }
    .resume15-card {
        max-width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
        grid-template-columns: 230px 1fr;
    }
    .resume15-strip {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .resume15-exp,
    .resume15-proj,
    .resume15-cert,
    .resume15-block { break-inside: avoid; }
}

.resume15-root {flex-direction:column;align-items:center;overflow-wrap:anywhere;}
.resume15-demo-note {max-width:820px;margin:0 0 18px;color:#46505e;text-align:center;}
.resume15-main, .resume15-strip, .resume15-block, .resume15-cert > div {min-width:0;}
.resume15-crow a, .resume15-crow span {white-space:normal;min-width:0;overflow-wrap:anywhere;}
.resume15-exp-date, .resume15-edu-date {white-space:normal;}
.resume15-chip, .resume15-lang {flex-wrap:wrap;gap:8px;}
.resume15-skill-level {color:#705426;font-size:.8rem;font-weight:700;}
.resume15-dl {font-family:inherit;border:0;white-space:normal;}
.resume15-root a:focus-visible, .resume15-root button:focus-visible {outline:3px solid #b08d57;outline-offset:4px;}
@media print {
 @page {size:A4;margin:14mm;}
 body:has(.resume15-root) > :not(.page-card-shell):not(script):not(style):not(link) {display:none!important;}
 body:has(.resume15-root) .page-card-shell {display:block;border:0;}
 .resume15-demo-note {display:none;}
 .resume15-root, .resume15-card, .resume15-main, .resume15-grid, .resume15-exp-list {display:block;overflow:visible;}
 .resume15-strip {display:block;background:#fff;color:#111;padding:4mm;border-bottom:1px solid #ddd;}
 .resume15-strip::after {display:none;}
 .resume15-strip-top {text-align:right;}
 .resume15-avatar {width:25mm;height:25mm;margin:0 0 3mm auto;}
 .resume15-name, .resume15-role, .resume15-years, .resume15-strip-h, .resume15-crow, .resume15-crow a, .resume15-crow span, .resume15-langlevel {color:#222;}
 .resume15-contact {display:flex;flex-wrap:wrap;gap:3mm;margin:3mm 0;}
 .resume15-strip-langs {margin:3mm 0;padding:0;}
 .resume15-main {padding:4mm 0;}
 .resume15-block {break-inside:auto;padding:3mm 0;margin:0 0 3mm;}
 .resume15-root [data-row-index] {break-inside:avoid;}
 .resume15-h, .resume15-strip-h {break-after:avoid;}
 .resume15-root p, .resume15-summary {font-size:10pt;line-height:1.65;}
 .resume15-root a {text-decoration:none;}
}

@media print { .resume15-lang {color:#222;} }
