/* Resume templates. One HTML structure, 12 looks via .layout-* classes. */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: #e9ecf2; font-family: var(--font); color: #1d2433; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
body.mode-thumb, body.mode-preview { background: #fff; }

.page {
  position: relative; width: 794px; min-height: 1123px; margin: 24px auto; background: #fff;
  padding: 48px 56px; font-size: 13.5px; line-height: 1.5; box-shadow: 0 1px 3px rgba(20, 30, 60, .12), 0 8px 30px rgba(20, 30, 60, .08);
}
.mode-thumb .page, .mode-preview .page { margin: 0 auto; box-shadow: none; }
h1, h2, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.rhead { margin-bottom: 18px; }
.rhead h1 { font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.jobtitle { font-size: 15px; color: var(--accent); font-weight: 600; margin-top: 2px; }
.contact { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: 12.5px; color: #4a5368; }
.contact.vertical { flex-direction: column; gap: 6px; word-break: break-word; }

.sec { margin-top: 16px; break-inside: avoid-page; }
.sec h2 { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.item { margin-bottom: 11px; break-inside: avoid; }
.item-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.role { font-weight: 700; font-size: 14px; }
.org { display: block; color: #4a5368; }
.dates { white-space: nowrap; color: #5b6478; font-size: 12.5px; }
.bullets { margin-top: 4px; padding-left: 18px; list-style: disc; }
.bullets li { margin: 2px 0; }
.details { color: #3c4457; margin-top: 2px; }
.plain li { margin: 2px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 2px 10px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 10%, white); color: color-mix(in srgb, var(--accent) 80%, black); font-size: 12.5px; }
.sign { margin-top: 18px; font-weight: 600; }

/* ---------- classic (Mumbai): centred, rules ---------- */
.layout-classic .rhead { text-align: center; border-bottom: 2px solid var(--accent); padding-bottom: 14px; }
.layout-classic .contact { justify-content: center; }
.layout-classic .sec h2 { border-bottom: 1px solid #d5d9e2; padding-bottom: 3px; color: #1d2433; }

/* ---------- clean (Pune) ---------- */
.layout-clean .rhead h1 { font-size: 32px; }
.layout-clean .sec h2 { text-transform: none; letter-spacing: 0; font-size: 16px; }
.layout-clean .sec { padding-top: 10px; border-top: 1px solid #e3e6ed; }

/* ---------- compact (Chennai) ---------- */
.layout-compact { font-size: 12.5px; line-height: 1.4; padding: 36px 44px; }
.layout-compact .rhead { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 3px solid var(--accent); padding-bottom: 10px; }
.layout-compact .rhead h1 { font-size: 26px; }
.layout-compact .contact { flex-direction: column; align-items: flex-end; gap: 1px; margin: 0; }
.layout-compact .rhead .hc { margin-left: auto; }
.layout-compact .sec { margin-top: 11px; display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.layout-compact .sec h2 { color: #1d2433; font-size: 11.5px; margin: 2px 0 0; }

/* ---------- band (Delhi) ---------- */
.layout-band { padding-top: 0; }
.layout-band .rhead { margin: 0 -56px 22px; padding: 38px 56px 22px; background: var(--accent); color: #fff; }
.layout-band .jobtitle { color: rgba(255,255,255,.85); }
.layout-band .contact { color: rgba(255,255,255,.9); }
.layout-band .sec h2 { display: inline-block; border-bottom: 3px solid var(--accent); padding-bottom: 2px; color: #1d2433; }

/* ---------- sidebar (Bengaluru) & sidebar-right (Hyderabad) ---------- */
.layout-sidebar, .layout-sidebar-right { display: grid; padding: 0; }
.layout-sidebar { grid-template-columns: 250px 1fr; }
.layout-sidebar-right { grid-template-columns: 1fr 240px; }
.layout-sidebar .side { background: var(--accent); color: #fff; padding: 48px 26px; }
.layout-sidebar .side h2 { color: #fff; opacity: .85; }
.layout-sidebar .side .contact { color: #fff; }
.layout-sidebar .side .chips li { background: rgba(255,255,255,.16); color: #fff; }
.layout-sidebar .main, .layout-sidebar-right .main { padding: 48px 40px; }
.layout-sidebar-right .side { order: 2; background: color-mix(in srgb, var(--accent) 7%, white); padding: 48px 24px; border-left: 3px solid var(--accent); }
.layout-sidebar-right .main { order: 1; }
.side .sec:first-child { margin-top: 0; }

/* ---------- split (Kolkata) ---------- */
.layout-split .rhead, .layout-duo .rhead { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid #1d2433; padding-bottom: 14px; }
.layout-split .contact, .layout-duo .contact { flex-direction: column; align-items: flex-end; gap: 1px; margin: 4px 0 0; }
.layout-split .cols { display: grid; grid-template-columns: 1fr 210px; gap: 30px; }
.layout-split .sec h2 { color: #1d2433; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

/* ---------- minimal (Kochi) ---------- */
.layout-minimal { padding: 64px 72px; font-weight: 400; }
.layout-minimal .rhead h1 { font-size: 36px; font-weight: 300; letter-spacing: -.02em; }
.layout-minimal .jobtitle { color: #4a5368; font-weight: 400; }
.layout-minimal .sec { display: grid; grid-template-columns: 130px 1fr; gap: 20px; margin-top: 24px; }
.layout-minimal .sec h2 { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 13px; }
.layout-minimal .role { font-weight: 600; }

/* ---------- creative (Jaipur) ---------- */
.layout-creative .rhead { display: grid; grid-template-columns: 84px 1fr; gap: 0 18px; align-items: center; }
.layout-creative .mono { grid-row: span 2; width: 84px; height: 84px; border-radius: 22px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 32px; font-weight: 700; }
.layout-creative .hc { grid-column: 2; }
.layout-creative .sec h2 { display: inline-block; background: var(--accent); color: #fff; padding: 3px 10px; border-radius: 6px; }

/* ---------- timeline (Goa) ---------- */
.layout-timeline .rhead { border-left: 6px solid var(--accent); padding-left: 16px; }
.layout-timeline .experience .item, .layout-timeline .education .item { position: relative; padding-left: 22px; border-left: 2px solid color-mix(in srgb, var(--accent) 30%, white); margin-left: 6px; padding-bottom: 6px; }
.layout-timeline .experience .item::before, .layout-timeline .education .item::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }

/* ---------- executive (Shimla) ---------- */
.layout-executive .rhead { text-align: left; border-bottom: 1px solid #1d2433; padding-bottom: 14px; }
.layout-executive .rhead h1 { font-family: 'Playfair Display', Georgia, serif; font-size: 40px; font-weight: 700; }
.layout-executive .jobtitle { color: #4a5368; letter-spacing: .08em; text-transform: uppercase; font-size: 12.5px; }
.layout-executive .summary { background: #f4f3f1; border-left: 4px solid var(--accent); padding: 12px 16px; }
.layout-executive .summary h2 { display: none; }
.layout-executive .sec h2 { font-family: 'Playfair Display', Georgia, serif; text-transform: none; letter-spacing: 0; font-size: 18px; color: #1d2433; }

/* ---------- fresher (Indore) ---------- */
.layout-fresher .rhead { background: color-mix(in srgb, var(--accent) 8%, white); margin: -48px -56px 18px; padding: 40px 56px 22px; }
.layout-fresher .sec h2 { color: var(--accent); }

/* ---------- modes ---------- */
.watermark { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 11px; color: #9aa1b2; }
.printbar { position: sticky; top: 0; z-index: 5; display: flex; gap: 16px; justify-content: center; align-items: center; padding: 12px; background: #172036; color: #fff; font: 15px system-ui, sans-serif; }
.printbar button { font: 600 15px system-ui, sans-serif; padding: 8px 18px; border-radius: 8px; border: 0; background: #f2a93b; color: #172036; cursor: pointer; }

@page { size: A4; margin: 0; }
@media print {
  body { background: #fff; }
  .printbar { display: none; }
  .page { margin: 0; box-shadow: none; width: 210mm; min-height: 297mm; }
}
@media screen and (max-width: 820px) {
  .mode-view .page, .mode-print .page { transform-origin: top left; }
}

/* label-column layouts: keep every item in the right-hand column */
.layout-compact .sec > h2, .layout-minimal .sec > h2 { grid-column: 1; grid-row: 1 / span 40; }
.layout-compact .sec > *:not(h2), .layout-minimal .sec > *:not(h2) { grid-column: 2; }
.layout-compact .sec, .layout-minimal .sec { row-gap: 0; }

/* ================= photos ================= */
.photo { display: block; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: #dfe3ea; }
.has-photo .rhead { display: grid; grid-template-columns: auto 1fr; column-gap: 22px; align-items: center; }
.has-photo .rhead > .photo { grid-row: span 2; }
.has-photo .rhead .hc { grid-column: 2; }
.side-photo { width: 124px; height: 124px; margin: 0 auto 24px; border: 4px solid rgba(255,255,255,.35); }
.side .rhead { display: block; }
.side .item-head { display: block; }
.side .dates { display: block; }
.layout-band.has-photo .photo { border: 3px solid rgba(255,255,255,.8); }
.twocol { columns: 2; column-gap: 24px; padding-left: 18px; list-style: disc; }
.twocol li { margin: 1px 0; break-inside: avoid; }
.sk li { padding-left: 12px; position: relative; margin: 3px 0; }
.sk li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .6; }

/* ================= pastel (Lucknow, Agra) ================= */
.layout-pastel { display: grid; grid-template-columns: 262px 1fr; padding: 0; }
.layout-pastel .side { background: color-mix(in srgb, var(--accent) 14%, white); padding: 46px 26px; }
.layout-pastel .side .photo { width: 112px; height: 112px; margin-bottom: 16px; border: 4px solid #fff; }
.layout-pastel .side .rhead h1 { font-size: 27px; line-height: 1.1; text-transform: uppercase; letter-spacing: .03em; color: color-mix(in srgb, var(--accent) 55%, black); }
.layout-pastel .side .jobtitle { color: #3c4457; font-weight: 500; font-size: 13.5px; }
.layout-pastel .side .rhead { margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, white); }
.layout-pastel .sec h2 { color: #1d2433; font-size: 12px; letter-spacing: .1em; }
.layout-pastel .main { padding: 46px 38px; }
.layout-pastel .main .sec h2 { padding-bottom: 5px; border-bottom: 1px solid #e3e6ed; }
.layout-pastel .side .contact { color: #3c4457; }

/* ================= slate (Surat, Nagpur) ================= */
.layout-slate { display: grid; grid-template-columns: 240px 1fr; padding: 0; }
.layout-slate .side { background: #30353d; color: #e9ebef; padding: 40px 24px; }
.layout-slate .side h2 { color: #fff; border-bottom: 1px solid rgba(255,255,255,.22); padding-bottom: 5px; }
.layout-slate .side .contact, .layout-slate .side .org, .layout-slate .side .dates, .layout-slate .side .details { color: #c9ced8; }
.layout-slate .main { padding: 0 0 40px; }
.layout-slate .main .rhead { background: color-mix(in srgb, var(--accent) 22%, white); padding: 40px 36px 26px; margin-bottom: 4px; }
.layout-slate .main .rhead h1 { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; font-size: 27px; }
.layout-slate .main .jobtitle { color: #30353d; }
.layout-slate .main .sec { padding: 0 36px; }
.layout-slate .main .sec h2 { color: #30353d; border-bottom: 1px solid #d5d9e2; padding-bottom: 4px; }

/* ================= heritage (Mysuru, Varanasi) ================= */
.layout-heritage { padding: 52px 64px; }
.layout-heritage .rhead { text-align: center; padding-bottom: 12px; border-bottom: 3px double var(--accent); }
.layout-heritage .rhead h1 { font-variant-caps: small-caps; letter-spacing: .06em; font-weight: 600; font-size: 32px; }
.layout-heritage .contact { justify-content: center; }
.layout-heritage .jobtitle { color: #4a5368; font-style: italic; font-weight: 400; }
.layout-heritage .sec h2 { display: flex; align-items: center; gap: 12px; text-transform: none; font-variant-caps: small-caps; letter-spacing: .08em; font-size: 15px; color: var(--accent); }
.layout-heritage .sec h2::before, .layout-heritage .sec h2::after { content: ""; flex: 1; border-top: 1px solid #c9ccd3; }
.layout-varanasi-fix {}
.layout-heritage.page { font-size: 14px; }

/* ================= portrait (Patna, Ranchi) ================= */
.layout-portrait .rhead { padding-bottom: 18px; border-bottom: 2px solid var(--accent); }
.layout-portrait .photo { width: 104px; height: 104px; border-radius: 18px; }
.layout-portrait .rhead h1 { font-size: 32px; }
.layout-portrait .sec h2 { text-transform: none; letter-spacing: 0; font-size: 16px; border-left: 4px solid var(--accent); padding-left: 10px; color: #1d2433; }

/* ================= blocks (Bhopal) ================= */
.layout-blocks .rhead h1 { font-size: 32px; }
.layout-blocks .sec { background: color-mix(in srgb, var(--accent) 7%, white); border-radius: 12px; padding: 14px 18px; margin-top: 12px; }
.layout-blocks .sec h2 { text-transform: none; letter-spacing: 0; font-size: 16px; }
.layout-blocks .chips li { background: #fff; }

/* ================= statement (Amritsar) ================= */
.layout-statement { border-left: 16px solid var(--accent); padding-left: 48px; }
.layout-statement .rhead h1 { font-size: 46px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.layout-statement .jobtitle { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; margin-top: 8px; }
.layout-statement .sec h2 { color: #1d2433; display: flex; align-items: center; gap: 8px; }
.layout-statement .sec h2::before { content: ""; width: 10px; height: 10px; background: var(--accent); }

/* ================= ledger (Kanpur, Noida) ================= */
.layout-ledger .rhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.layout-ledger .rhead .contact { flex-direction: column; align-items: flex-end; gap: 1px; margin: 0; }
.layout-ledger .sec h2 { border-bottom: 2px solid var(--accent); padding-bottom: 3px; color: #1d2433; }
.layout-ledger .item { display: grid; grid-template-columns: 112px 1fr; gap: 14px; }
.layout-ledger .ldate { white-space: normal; padding-top: 2px; }
.layout-ledger .sec > p, .layout-ledger .sec > ul { margin-left: 126px; }
.layout-ledger .sec > ul.twocol { margin-left: 126px; }

/* ================= duo (Gurugram) ================= */
.layout-duo .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.layout-duo .rhead { border-bottom: 4px solid var(--accent); padding-bottom: 14px; }
.layout-duo .sec h2 { color: #1d2433; border-top: 3px solid var(--accent); padding-top: 6px; display: inline-block; }

/* ================= ribbon (Udaipur) ================= */
.layout-ribbon .rhead { text-align: center; }
.layout-ribbon .rhead h1 { display: inline-block; background: var(--accent); color: #fff; padding: 6px 26px; border-radius: 999px; font-size: 28px; }
.layout-ribbon .jobtitle { margin-top: 8px; }
.layout-ribbon .contact { justify-content: center; }
.layout-ribbon .sec h2 { display: inline-block; border: 2px solid var(--accent); padding: 1px 12px; border-radius: 999px; text-transform: none; letter-spacing: 0; font-size: 14px; }

/* ================= metro (Vizag, Ahmedabad) ================= */
.layout-metro { padding-top: 0; }
.layout-metro .rhead { display: grid; grid-template-columns: 1fr 38%; margin: 0 -56px 22px; padding: 34px 56px 26px;
  background: linear-gradient(90deg, var(--accent) 62%, #2b2f36 62%); color: #fff; align-items: center; }
.layout-metro.has-photo .rhead { grid-template-columns: auto 1fr 38%; }
.layout-metro.has-photo .rhead > .photo { grid-row: auto; margin-right: 18px; width: 84px; height: 84px; border: 3px solid #fff; }
.layout-metro.has-photo .rhead .hc { grid-column: 3; }
.layout-metro .jobtitle { color: rgba(255,255,255,.85); }
.layout-metro .hc { padding-left: 26px; }
.layout-metro .contact { flex-direction: column; gap: 3px; color: #fff; margin: 0; }
.layout-metro .sec h2 { color: #1d2433; border-bottom: 2px solid var(--accent); padding-bottom: 3px; display: inline-block; }

/* ================= nordic (Shillong, Madurai) ================= */
.layout-nordic { display: grid; grid-template-columns: 1fr 236px; padding: 0; }
.layout-nordic .side { order: 2; background: #f3f4f6; padding: 52px 24px; }
.layout-nordic .main { order: 1; padding: 52px 40px; }
.layout-nordic .rhead h1 { font-size: 34px; font-weight: 400; letter-spacing: -.01em; }
.layout-nordic .sec h2 { color: #6b7280; font-size: 11.5px; letter-spacing: .16em; font-weight: 600; }
.layout-nordic .side-photo { border-color: #fff; }
.layout-ledger .projects .item { display: block; margin-left: 126px; }
