/* SaveResume — Guided Builder catalog set 2: layout CSS.
 * Reuses .bldc-item / .bldc-item-row / .bldc-item-sub / .bldc-item-desc
 * / .bldc-date / .bldc-side-block / .bldc-side-item / .bldc-side-sub /
 * .page / .sr-photo from sr-builder-templates.css; everything specific
 * to this template set is prefixed tpl2-.
 */

/* ---- shells / grids ---- */
.tpl2-shell{display:grid;min-height:var(--sr-page-h,279.4mm)}
.tpl2-shell-sidebar-left{grid-template-columns:34% 66%}
.tpl2-shell-sidebar-right{grid-template-columns:66% 34%}
.tpl2-sidebar{padding:40px 30px}
.tpl2-main{padding:44px 48px}

/* ---- name / role / objective (shared) ---- */
.tpl2-main h1{font-size:32px;font-weight:800;margin:0 0 4px;letter-spacing:-.02em}
.tpl2-role{font-size:14px;letter-spacing:.12em;text-transform:uppercase;color:#6b7280;margin-bottom:16px}
.tpl2-objective{font-size:13.5px;line-height:1.7;color:#374151;margin:0 0 22px}
.tpl2-main-h{font-size:15px;font-weight:800;letter-spacing:.1em;margin:26px 0 16px;padding-bottom:8px;border-bottom:1.5px solid;break-after:avoid;page-break-after:avoid}
.tpl2-side-h{font-size:12px;font-weight:800;letter-spacing:.1em;margin:22px 0 12px;break-after:avoid;page-break-after:avoid}

/* ---- photo ---- */
.tpl2-photo-wrap{text-align:center;margin-bottom:20px}
.tpl2-photo-wrap img,.tpl2-photo-wrap .sr-photo{display:inline-block;margin:0 auto}
.tpl2-photo-wrap .sr-photo{display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.08);font-size:9px;text-align:center}
.tpl2-photo-rect{width:calc(100% + 60px);height:230px;margin:-40px -30px 24px;overflow:hidden;background:rgba(255,255,255,.1)}
.tpl2-photo-rect img{width:100%;height:100%;object-fit:cover;display:block}
.tpl2-photo-rect.sr-photo{display:flex;align-items:center;justify-content:center;font-size:10px;text-align:center;color:inherit}

/* ---- contact rows ---- */
.tpl2-contact-row{display:flex;align-items:center;gap:9px;font-size:12.5px;margin-bottom:9px;word-break:break-word}
.tpl2-contact-ic{flex:0 0 auto;display:flex}
.tpl2-contact-inline{display:inline-flex;margin:0 18px 14px 0}

/* ---- education (side) ---- */
.tpl2-side-edu{font-size:12px;line-height:1.5;margin-bottom:12px;break-inside:avoid;page-break-inside:avoid}
.tpl2-side-edu strong{display:block;font-size:12.5px}
.tpl2-side-date{opacity:.75;font-size:11px}

/* ---- skill bars ---- */
.tpl2-bars{margin-top:2px}
.tpl2-bar-row{margin-bottom:10px}
.tpl2-bar-label{font-size:12px;margin-bottom:4px}
.tpl2-bar-track{height:6px;background:rgba(120,120,120,.25);border-radius:3px;overflow:hidden}
.tpl2-bar-fill{height:100%;border-radius:3px}

/* ---- skill chips ---- */
.tpl2-chip-wrap{display:flex;flex-wrap:wrap;gap:8px}
.tpl2-chip{display:inline-block;padding:6px 12px;border-radius:14px;font-size:11.5px;font-weight:600}

/* ---- plain skill list / plain experience items (no timeline) ---- */
.tpl2-plain-list{font-size:12.5px;line-height:1.9}
.tpl2-plain-skill{margin-bottom:2px}
.tpl2-plain-item{margin-bottom:18px;break-inside:avoid;page-break-inside:avoid}
.tpl2-plain-item:last-child{margin-bottom:0}

/* ---- timeline experience ---- */
.tpl2-tl-wrap{position:relative}
.tpl2-tl-item{display:flex;gap:16px;margin-bottom:22px;break-inside:avoid;page-break-inside:avoid}
.tpl2-tl-item:last-child{margin-bottom:0}
.tpl2-tl-rail{flex:0 0 auto;width:14px;display:flex;flex-direction:column;align-items:center}
.tpl2-tl-dot{width:12px;height:12px;border-radius:50%;flex:0 0 auto;margin-top:4px}
.tpl2-tl-line{flex:1;width:2px;margin-top:4px}
.tpl2-tl-date{flex:0 0 100px;font-size:11.5px;color:#6b7280;padding-top:2px}
.tpl2-tl-body{flex:1;min-width:0}

/* ---- stat grid (Key Achievements / Key Metrics, main-content variant) ---- */
.tpl2-stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:8px}
.tpl2-stat-grid-wrap{border-radius:14px;padding:22px 24px}
.tpl2-stat{text-align:left;break-inside:avoid;page-break-inside:avoid}
.tpl2-stat-boxed{border-radius:12px;padding:16px}
.tpl2-stat-ic{margin-bottom:8px}
.tpl2-stat-num{font-size:22px;font-weight:800;margin-bottom:2px}
.tpl2-stat-label{font-size:11.5px;color:#6b7280;line-height:1.4}

/* ---- sidebar "Key Metrics" stacked rows ---- */
.tpl2-metric-list{display:flex;flex-direction:column;gap:14px}
.tpl2-metric-row{display:flex;align-items:center;gap:12px;break-inside:avoid;page-break-inside:avoid}
.tpl2-metric-ic{flex:0 0 auto;width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.tpl2-metric-num{font-size:16px;font-weight:800;line-height:1.2}
.tpl2-metric-label{font-size:11px;opacity:.85}

/* ---- Key Projects ---- */
.tpl2-proj-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.tpl2-proj{break-inside:avoid;page-break-inside:avoid}
.tpl2-proj-bar{height:4px;border-radius:2px;margin-bottom:10px}
.tpl2-proj-title{font-weight:800;font-size:13px;margin-bottom:4px}
.tpl2-proj-desc{font-size:12px;color:#4b5563;line-height:1.5}

/* ---- Tools badges ---- */
.tpl2-tool-grid{display:flex;flex-wrap:wrap;gap:8px}
.tpl2-tool-chip{display:inline-block;padding:5px 11px;border-radius:8px;font-size:11px;font-weight:700;background:rgba(120,120,120,.15)}

/* ---- Interests row ---- */
.tpl2-interest-row{display:flex;flex-wrap:wrap;gap:14px}
.tpl2-interest{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:10.5px;width:56px;text-align:center}
.tpl2-interest-ic{width:36px;height:36px;border-radius:50%;border:1.5px solid currentColor;display:flex;align-items:center;justify-content:center;opacity:.85}

/* ---- template 1 / 4 / 6: peach/cream stat card wrap inside sidebar ---- */
.tpl2-peach-card{border-radius:12px;padding:16px 14px;margin:18px 0}
.tpl2-peach-card .tpl2-stat-grid{grid-template-columns:1fr;gap:14px}
.tpl2-peach-card .tpl2-stat-label{color:#d9e0da}

/* ---- template 6 / 7: diagonal sidebar accent ---- */
.tpl2-sidebar-diagonal{position:relative;overflow:hidden}
.tpl2-sidebar-diagonal:before{content:"";position:absolute;top:0;right:-40%;width:80%;height:220px;background:rgba(255,255,255,.05);transform:rotate(-18deg);pointer-events:none}
.tpl2-sidebar-diagonal-r{position:relative}

/* ---- template 4: soft background shape accents ---- */
.tpl2-sidebar-shapes{position:relative;overflow:hidden}
.tpl2-sidebar-shapes:before{content:"";position:absolute;top:-30px;left:-30px;width:140px;height:140px;border-radius:50%;background:#c9d8ce88;pointer-events:none}
.tpl2-sidebar-shapes:after{content:"";position:absolute;top:60px;left:70px;width:70px;height:70px;border-radius:50%;background:#f3b79c55;pointer-events:none}
.tpl2-sidebar-shapes>*{position:relative;z-index:1}

/* ---- template 5: sidebar name block (no photo) ---- */
.tpl2-side-name{font-size:26px;font-weight:800;line-height:1.15;margin:0 0 6px}
.tpl2-side-role{font-size:11.5px;letter-spacing:.12em;margin-bottom:24px}

/* ---- template 8: monogram avatar ---- */
.tpl2-monogram-wrap{margin:-40px -30px 24px;padding:40px 30px 28px;text-align:center}
.tpl2-monogram{display:inline-flex;align-items:center;justify-content:center;width:120px;height:120px;border-radius:50%;border:3px solid;color:#fff;font-size:26px;font-weight:800;letter-spacing:.04em}
