/* ============================================================
   Resume template styles — applied to .paper
   Each template reads --accent and --rfont set on .paper
   ============================================================ */

.paper { padding: 0; }
.paper * { font-family: inherit; }

/* density */
.paper.density-compact { --rline: 1.34; --rgap: 9px; --rblock: 13px; }
.paper.density-cozy { --rline: 1.5; --rgap: 13px; --rblock: 18px; }

/* shared atoms */
.r-name { font-weight: 700; letter-spacing: -.01em; color: #14202f; }
.r-headline { color: var(--accent); font-weight: 600; }
.r-contact { color: #515b6b; }
.r-contact a, .r-contact span { color: inherit; text-decoration: none; }
.r-sec-title { font-weight: 700; color: #14202f; }
.r-job-title { font-weight: 700; color: #1c2735; }
.r-job-co { color: var(--accent); font-weight: 600; }
.r-job-meta { color: #6a7585; }
.r-summary { color: #2f3947; line-height: var(--rline); }
.r-bullets { list-style: none; }
.r-bullets li { color: #2f3947; line-height: var(--rline); position: relative; }
.r-skill-tag { color: #2f3947; }
.r-empty-hint { color: #b6bcc7; font-style: italic; }

/* ============ MODERN ============ */
.template-modern { padding: 52px 56px; }
.template-modern .r-name { font-size: 30px; }
.template-modern .r-headline { font-size: 14px; margin-top: 3px; letter-spacing: .02em; }
.template-modern .r-contact { font-size: 11.5px; margin-top: 11px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.template-modern .r-contact > span { display: inline-flex; align-items: center; gap: 5px; }
.template-modern .r-header { border-bottom: 2px solid var(--accent); padding-bottom: 16px; margin-bottom: var(--rblock); }
.template-modern .r-section { margin-bottom: var(--rblock); }
.template-modern .r-sec-title { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 11px; padding-bottom: 5px; border-bottom: 1px solid #e6e9ee; }
.template-modern .r-entry { margin-bottom: var(--rblock); }
.template-modern .r-entry:last-child { margin-bottom: 0; }
.template-modern .r-entry-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.template-modern .r-job-title { font-size: 14.5px; }
.template-modern .r-job-co { font-size: 13px; margin-top: 1px; }
.template-modern .r-job-meta { font-size: 11.5px; text-align: right; white-space: nowrap; }
.template-modern .r-summary { font-size: 13px; }
.template-modern .r-bullets { margin-top: 7px; }
.template-modern .r-bullets li { font-size: 12.5px; padding-left: 16px; margin-bottom: var(--rgap); }
.template-modern .r-bullets li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 5px; height: 5px; border-radius: 1px; background: var(--accent); }
.template-modern .r-skills { display: flex; flex-wrap: wrap; gap: 7px; }
.template-modern .r-skill-tag { font-size: 12px; background: #f2f4f7; padding: 4px 11px; border-radius: 5px; }
.template-modern .r-proj-link { color: var(--accent); font-size: 11.5px; }

/* ============ CLASSIC ============ */
.template-classic { padding: 56px 64px; }
.template-classic .r-header { text-align: center; margin-bottom: var(--rblock); }
.template-classic .r-name { font-size: 28px; letter-spacing: .02em; }
.template-classic .r-headline { font-size: 13px; margin-top: 4px; text-transform: uppercase; letter-spacing: .18em; }
.template-classic .r-contact { font-size: 11.5px; margin-top: 9px; }
.template-classic .r-contact > span:not(:last-child)::after { content: "·"; margin: 0 8px; color: #b6bcc7; }
.template-classic .r-section { margin-bottom: var(--rblock); }
.template-classic .r-sec-title { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; text-align: center; margin-bottom: 12px; position: relative; }
.template-classic .r-sec-title::before, .template-classic .r-sec-title::after { content: ""; position: absolute; top: 50%; width: 28%; height: 1px; background: #d6dae1; }
.template-classic .r-sec-title::before { left: 0; } .template-classic .r-sec-title::after { right: 0; }
.template-classic .r-entry { margin-bottom: var(--rblock); }
.template-classic .r-entry-top { display: flex; justify-content: space-between; align-items: baseline; }
.template-classic .r-job-title { font-size: 14px; }
.template-classic .r-job-co { font-size: 13px; font-style: italic; font-weight: 600; }
.template-classic .r-job-meta { font-size: 11.5px; }
.template-classic .r-summary { font-size: 13px; text-align: justify; }
.template-classic .r-bullets { margin-top: 6px; }
.template-classic .r-bullets li { font-size: 12.5px; padding-left: 18px; margin-bottom: var(--rgap); }
.template-classic .r-bullets li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.template-classic .r-skills { font-size: 12.5px; text-align: center; line-height: 1.9; }
.template-classic .r-skill-tag::after { content: "•"; margin: 0 9px; color: var(--accent); }
.template-classic .r-skill-tag:last-child::after { content: ""; }

/* ============ MINIMAL ============ */
.template-minimal { padding: 60px 66px; }
.template-minimal .r-header { margin-bottom: 30px; }
.template-minimal .r-name { font-size: 26px; font-weight: 600; }
.template-minimal .r-headline { font-size: 13px; margin-top: 2px; color: #6a7585; font-weight: 500; }
.template-minimal .r-contact { font-size: 11.5px; margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.template-minimal .r-section { margin-bottom: 26px; display: grid; grid-template-columns: 130px 1fr; gap: 8px; }
.template-minimal .r-sec-title { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #8b94a3; font-weight: 600; padding-top: 2px; }
.template-minimal .r-entry { margin-bottom: 17px; }
.template-minimal .r-entry:last-child { margin-bottom: 0; }
.template-minimal .r-entry-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.template-minimal .r-job-title { font-size: 13.5px; }
.template-minimal .r-job-co { font-size: 12.5px; color: #6a7585; font-weight: 500; }
.template-minimal .r-job-meta { font-size: 11px; color: #9aa2af; white-space: nowrap; }
.template-minimal .r-summary { font-size: 12.5px; }
.template-minimal .r-bullets { margin-top: 6px; }
.template-minimal .r-bullets li { font-size: 12px; padding-left: 14px; margin-bottom: 5px; }
.template-minimal .r-bullets li::before { content: ""; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: #c2c7d0; }
.template-minimal .r-skills { display: flex; flex-wrap: wrap; gap: 5px 10px; }
.template-minimal .r-skill-tag { font-size: 12px; }
.template-minimal .r-skill-tag:not(:last-child)::after { content: ","; }

/* ============ TWO-COLUMN ============ */
.template-two { padding: 0; display: flex; min-height: 1123px; }
.template-two .r-side {
  width: 270px; flex-shrink: 0; background: var(--accent); color: #fff;
  padding: 46px 28px;
}
.template-two .r-side-soft { color: rgba(255,255,255,.82); }
.template-two .r-main { flex: 1; padding: 46px 40px; }
.template-two .r-name { color: #fff; font-size: 25px; line-height: 1.15; }
.template-two .r-headline { color: rgba(255,255,255,.85); font-size: 12.5px; margin-top: 6px; }
.template-two .r-side .r-sec-title { color: #fff; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; margin: 26px 0 11px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.25); }
.template-two .r-contact-v { font-size: 11.5px; line-height: 1.8; color: rgba(255,255,255,.9); margin-top: 16px; word-break: break-word; }
.template-two .r-contact-v div { display: flex; gap: 7px; align-items: flex-start; margin-bottom: 4px; }
.template-two .r-contact-v svg { flex-shrink: 0; margin-top: 2px; opacity: .8; }
.template-two .r-side-skills { display: flex; flex-direction: column; gap: 7px; }
.template-two .r-side-skill { font-size: 12px; }
.template-two .r-side-skill .bar { height: 4px; background: rgba(255,255,255,.22); border-radius: 4px; margin-top: 5px; overflow: hidden; }
.template-two .r-side-skill .bar i { display: block; height: 100%; background: rgba(255,255,255,.85); border-radius: 4px; }
.template-two .r-side .r-edu .r-job-title { color: #fff; font-size: 12.5px; }
.template-two .r-side .r-edu .r-job-co { color: rgba(255,255,255,.8); font-size: 11.5px; font-weight: 500; }
.template-two .r-side .r-edu .r-job-meta { color: rgba(255,255,255,.65); font-size: 11px; }
.template-two .r-side .r-edu .r-entry { margin-bottom: 14px; }
.template-two .r-main .r-sec-title { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 12px; }
.template-two .r-main .r-section { margin-bottom: 22px; }
.template-two .r-main .r-entry { margin-bottom: 16px; }
.template-two .r-main .r-entry-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.template-two .r-job-title { font-size: 14px; }
.template-two .r-job-co { font-size: 12.5px; }
.template-two .r-job-meta { font-size: 11px; white-space: nowrap; }
.template-two .r-summary { font-size: 12.5px; margin-bottom: 4px; }
.template-two .r-bullets { margin-top: 6px; }
.template-two .r-bullets li { font-size: 12px; padding-left: 15px; margin-bottom: 6px; }
.template-two .r-bullets li::before { content: ""; position: absolute; left: 1px; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.template-two .r-proj-link { color: var(--accent); font-size: 11.5px; }

/* font switch */
.paper.font-sans { --rfont: var(--resume-sans); }
.paper.font-serif { --rfont: var(--resume-serif); }
