/* ===== Template 14 – Imperial Gold (Premium Gold) (A4 = 794 x 1123 px) ===== */
.tpl-imperial {
  --ac: #9a7424; --ac-dark: #0f2a24; --ac-soft: #c9a54c; --ac-tint: #f5f0e0;
  --dens: 1; --ink: #232019; --gray: #6a6455; --photo: 100px; --bullet: "◆"; --bfs: .55em; --bfsn: .55;
  --ln: var(--ac-soft);
  position: relative; display: flex; flex-direction: column;
  width: 794px; min-height: 1123px; flex: none;
  padding: 0;
  background: #fff; color: var(--ink);
  font-family: var(--f-body, Calibri, Carlito, 'Segoe UI', Arial, Helvetica, sans-serif);
  font-size: calc(13px * var(--s-body, 1));
  line-height: calc(1.45 + (var(--dens) - 1) * .4);
  box-shadow: 0 10px 40px rgba(15, 42, 36, .22);
}
.tpl-imperial, .tpl-imperial * { box-sizing: border-box; }
/* double gold rules down both sides (the page frame) */
.tpl-imperial::before, .tpl-imperial::after { content: ''; position: absolute; top: 0; bottom: 0; width: 0; border-left: 4px double var(--ac-soft); }
.tpl-imperial::before { left: 18px; }
.tpl-imperial::after { right: 18px; }
.tpl-imperial .im-top, .tpl-imperial .im-bot { height: 12px; background: linear-gradient(90deg, var(--ac-dark), var(--ac), var(--ac-soft), var(--ac), var(--ac-dark)); }
.tpl-imperial .im-bot { margin-top: auto; }
.tpl-imperial.has-foot .im-bot { margin-bottom: 0; }
.tpl-imperial.hr-none .im-top, .tpl-imperial.hr-none .im-bot { height: 0; }
.tpl-imperial.hr-thick .im-top, .tpl-imperial.hr-thick .im-bot { height: 20px; }

.tpl-imperial .im-head { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 26px 60px 8px; }
.tpl-imperial .photo-wrap { flex: none; width: var(--photo); height: var(--photo); }
.tpl-imperial .im-sp { flex: none; width: var(--photo); }
.tpl-imperial .photo-wrap img { width: 100%; height: 100%; display: block; object-fit: contain; }
.tpl-imperial .im-id { flex: 1; min-width: 0; text-align: center; }
.tpl-imperial .im-orn { color: var(--ac); font-size: 11px; line-height: 1; margin-bottom: 7px; }
.tpl-imperial .name {
  margin: 0; font-family: var(--f-head, Georgia, 'Times New Roman', serif); font-weight: 700;
  font-size: calc(32px * var(--s-name, 1)); line-height: 1.12; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ac-dark); text-align: var(--a-name, center); overflow-wrap: anywhere;
}
.tpl-imperial.nc-off .name { text-transform: none; letter-spacing: .03em; }
.tpl-imperial .title-row { margin-top: 8px; text-align: var(--a-title, center); }
.tpl-imperial .title { display: inline-block; font-family: var(--f-head, Georgia, 'Times New Roman', serif); font-weight: 600; font-size: calc(12.5px * var(--s-title, 1)); line-height: 1.3; letter-spacing: .24em; text-transform: uppercase; color: var(--ac); }
.tpl-imperial.ts-plain .title { color: var(--ink); }
.tpl-imperial.ts-tag .title { background: var(--ac); color: #fff; padding: .35em .9em; border-radius: 2px; }
.tpl-imperial .im-contact { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 11px; font-size: calc(12.5px * var(--s-body, 1)); }
.tpl-imperial .im-contact span + span::before { content: '◆'; margin: 0 10px; color: var(--ac); font-size: .6em; vertical-align: .15em; }

.tpl-imperial .im-body { padding: 14px 60px 26px; }
.tpl-imperial.has-foot .im-body { padding-bottom: 46px; }
.tpl-imperial .sec { margin-bottom: calc(17px * var(--dens)); }
.tpl-imperial .sec h2 {
  display: flex; align-items: center; justify-content: center; gap: 12px; text-align: center;
  margin: 0 0 calc(10px * var(--dens)); padding: 0;
  font-family: var(--f-head, Georgia, 'Times New Roman', serif); font-weight: 700;
  font-size: calc(13.5px * var(--s-h2, 1)); line-height: 1.25; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ac);
}
.tpl-imperial .sec h2::before, .tpl-imperial .sec h2::after { content: ''; flex: 1; border-top: 1px solid var(--ac-soft); }
.tpl-imperial.hc-off .sec h2 { text-transform: none; letter-spacing: .03em; }
.tpl-imperial.hs-leftbar .sec h2, .tpl-imperial.hs-filled .sec h2 { border-left: 0; background: none; color: var(--ac); padding: 0; border-radius: 0; }
.tpl-imperial.hs-underline .sec h2, .tpl-imperial.hs-dashed .sec h2 { border-bottom: 0; }
.tpl-imperial .summary { margin: 0; text-align: var(--a-body, justify); white-space: pre-line; font-style: italic; }

.tpl-imperial .ent { margin-bottom: calc(14px * var(--dens)); }
.tpl-imperial .ent:last-child { margin-bottom: 0; }
.tpl-imperial .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tpl-imperial .it { font-weight: 700; font-size: calc(14.5px * var(--s-sub, 1)); line-height: 1.3; color: var(--ac-dark); text-align: var(--a-sub, left); }
.tpl-imperial .dt { flex: none; white-space: nowrap; color: var(--ac); font-size: .92em; font-weight: 700; }
.tpl-imperial .org { color: var(--gray); font-style: italic; margin: 1px 0 4px; text-align: var(--a-body, left); }

/* Three-column band: skills | languages | personal details */
.tpl-imperial .im-band { display: grid; margin: 4px 0 calc(16px * var(--dens)); border-top: 3px double var(--ac-soft); border-bottom: 3px double var(--ac-soft); padding: 14px 0; }
.tpl-imperial .im-band.im-n3 { grid-template-columns: repeat(3, 1fr); }
.tpl-imperial .im-band.im-n2 { grid-template-columns: repeat(2, 1fr); }
.tpl-imperial .im-col { padding: 0 16px; border-left: 1px solid var(--ac-soft); min-width: 0; }
.tpl-imperial .im-col:first-child { border-left: 0; padding-left: 0; }
.tpl-imperial .im-col:last-child { padding-right: 0; }
.tpl-imperial .im-col h3 { margin: 0 0 7px; font-family: var(--f-head, Georgia, serif); font-weight: 700; font-size: calc(12px * var(--s-h2, 1)); letter-spacing: .13em; text-transform: uppercase; color: var(--ac); }
.tpl-imperial .pd-i { margin-bottom: calc(6px * var(--dens)); line-height: 1.3; }
.tpl-imperial .pd-k { display: block; font-size: .72em; letter-spacing: .09em; text-transform: uppercase; color: var(--gray); }
.tpl-imperial .pd-v { display: block; font-weight: 700; color: var(--ac-dark); overflow-wrap: anywhere; }

.tpl-imperial ul { margin: 3px 0 0; padding-left: 15px; list-style: none; }
.tpl-imperial ul.grid { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 28px; }
.tpl-imperial li { --lh: calc(1.45 + (var(--dens) - 1) * .4); position: relative; margin-bottom: calc(2px * var(--dens)); line-height: var(--lh); text-align: var(--a-body, left); overflow-wrap: anywhere; }
.tpl-imperial li::before { content: var(--bullet); position: absolute; left: -13px; top: 0; font-size: var(--bfs); line-height: calc(var(--lh) / var(--bfsn, 1)); color: var(--ac); }
