/* /cv only. The A4 sheet is what prints; everything else is hidden when printing. */
.cv-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (min-width: 1100px) { .cv-layout { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); } .cv-stage { position: sticky; top: 80px; } }
.cv-opts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 70px; gap: .5rem; }
.cv-form details { border-top: 1px solid var(--line); padding: .6rem 0; }
.cv-form summary { cursor: pointer; font-weight: 700; padding: .3rem 0; }
.cv-item { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; padding: .6rem 2.4rem .6rem .6rem; margin-bottom: .5rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.cv-item label { display: flex; flex-direction: column; font-size: .78rem; gap: .15rem; margin: 0; }
.cv-item label:has(textarea) { grid-column: 1 / -1; }
.cv-item input, .cv-item textarea { min-height: 38px; width: 100%; }
.cv-item .g-x { position: absolute; top: .5rem; right: .5rem; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer; }
.cv-btns { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.cv-btns .btn { flex: 1 1 160px; }
.cv-stage { overflow-x: auto; border-radius: 16px; background: #d9dde3; padding: 12px; }
.cv-sheet { --cv: #0E7C86; width: 794px; min-height: 1123px; margin: 0 auto; background: #fff; color: #1b1f24; padding: 48px 52px; font: 14px/1.55 "Inter", "Hind Siliguri", Arial, sans-serif; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); transform-origin: top left; }
.cv-sheet.lang-bn { font-family: "Hind Siliguri", "Inter", sans-serif; font-size: 15px; }
.cvh { display: flex; gap: 22px; align-items: center; padding-bottom: 16px; margin-bottom: 14px; border-bottom: 3px solid var(--cv); }
.cv-photo { width: 120px; height: 140px; object-fit: cover; border-radius: 6px; border: 2px solid #ddd; }
.cvh h1 { margin: 0; font-size: 30px; color: #111; line-height: 1.2; }
.cv-role { margin: 2px 0 6px; color: var(--cv); font-weight: 700; font-size: 16px; }
.cv-contact { margin: 0; color: #444; font-size: 13px; }
.cvs h2 { font-size: 16px; color: var(--cv); text-transform: uppercase; letter-spacing: .04em; margin: 16px 0 6px; padding-bottom: 3px; border-bottom: 1px solid #ddd; }
.cv-sheet.lang-bn .cvs h2 { text-transform: none; letter-spacing: 0; font-size: 17px; }
.cvs p { margin: 0 0 6px; }
.cvt { width: 100%; border-collapse: collapse; font-size: 13px; }
.cvt th, .cvt td { border: 1px solid #ccc; padding: 5px 7px; text-align: left; }
.cvt th { background: #f2f4f6; }
.cvx { margin-bottom: 8px; } .cvx-t { float: right; color: #666; font-size: 12px; } .cvx p { margin: 3px 0 0; color: #333; }
.cvp th { text-align: left; font-weight: 600; padding: 2px 10px 2px 0; white-space: nowrap; vertical-align: top; } .cvp td { padding: 2px 0; }
.cvf { margin-top: 26px; font-size: 13px; color: #333; }
.cv-sign { margin-top: 40px; width: 200px; text-align: center; } .cv-sign span { display: block; border-top: 1px solid #333; margin-bottom: 4px; }
/* templates */
.tpl-modern .cvh { background: var(--cv); color: #fff; margin: -48px -52px 18px; padding: 34px 52px; border: 0; }
.tpl-modern .cvh h1, .tpl-modern .cv-role, .tpl-modern .cv-contact { color: #fff; }
.tpl-modern .cvs h2 { border: 0; background: color-mix(in srgb, var(--cv) 12%, #fff); padding: 4px 10px; border-left: 4px solid var(--cv); }
.tpl-simple .cvh { display: block; text-align: center; border-bottom: 1px solid #999; } .tpl-simple .cv-photo { float: right; width: 100px; height: 115px; }
.tpl-simple .cvs h2 { color: #111; border-bottom: 1px solid #111; }
@media print {
  @page { size: A4; margin: 0; }
  body * { visibility: hidden !important; }
  .cv-sheet, .cv-sheet * { visibility: visible !important; }
  .cv-sheet { position: absolute; left: 0; top: 0; zoom: 1 !important; box-shadow: none; width: 210mm; min-height: 297mm; }
  .bnav, .site-head, .site-foot, .announce { display: none !important; }
  body.has-bnav { padding: 0 !important; }
}
