/* ===== Template 7 – Gold Standard (A4 = 794 x 1123 px) ===== */
.tpl-goldstd {
  --ac: #a87b1f; --ac-dark: #1c1c1c; --ac-soft: #d4b05a; --ac-tint: #faf5e8;
  --dens: 1; --ink: #25221b; --gray: #6b6556; --photo: 108px; --bullet: "◆"; --bfs: .55em; --bfsn: .55;
  --ln: var(--ac-soft);
  position: relative;
  width: 794px; min-height: 1123px; flex: none;
  padding: 38px 40px 34px 56px;
  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(60, 45, 10, .2);
}
.tpl-goldstd, .tpl-goldstd * { box-sizing: border-box; }
.tpl-goldstd.has-foot { padding-bottom: 58px; }

/* Gold ribbon on the left edge */
.tpl-goldstd .ribbon { position: absolute; left: 0; top: 0; bottom: 0; width: 16px; background: linear-gradient(180deg, var(--ac) 0%, var(--ac-soft) 50%, var(--ac) 100%); }
.tpl-goldstd.rb-off .ribbon { display: none; }
.tpl-goldstd.rb-off { padding-left: 42px; }

/* Header */
.tpl-goldstd .gs-head { display: flex; justify-content: space-between; align-items: center; gap: 22px; }
.tpl-goldstd .gs-id { min-width: 0; flex: 1; }
.tpl-goldstd .name {
  margin: 0; font-family: var(--f-head, Georgia, 'Times New Roman', serif); font-weight: 700;
  font-size: calc(34px * var(--s-name, 1)); line-height: 1.12; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ac-dark); text-align: var(--a-name, left); overflow-wrap: anywhere;
}
.tpl-goldstd.nc-off .name { text-transform: none; letter-spacing: .01em; }
.tpl-goldstd .title-row { margin-top: 7px; text-align: var(--a-title, left); }
.tpl-goldstd .title { display: inline-block; font-family: var(--f-head, Georgia, 'Times New Roman', serif); font-weight: 600; font-size: calc(13px * var(--s-title, 1)); line-height: 1.3; letter-spacing: .22em; text-transform: uppercase; color: var(--ac); }
.tpl-goldstd.ts-plain .title { color: var(--ink); }
.tpl-goldstd.ts-tag .title { background: var(--ac); color: #fff; padding: .35em .85em; border-radius: 2px; }
.tpl-goldstd .gs-contact { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; font-size: calc(12.5px * var(--s-body, 1)); }
.tpl-goldstd .ci { display: inline-flex; align-items: center; gap: 6px; }
.tpl-goldstd .ico { flex: none; width: 15px; height: 15px; border-radius: 50%; background: var(--ac); display: inline-flex; align-items: center; justify-content: center; }
.tpl-goldstd .ico svg { width: 8px; height: 8px; fill: #fff; }
.tpl-goldstd .txt { overflow-wrap: anywhere; }
.tpl-goldstd .photo-wrap { flex: none; width: var(--photo); height: var(--photo); }
.tpl-goldstd .photo-wrap img { width: 100%; height: 100%; display: block; object-fit: contain; }

/* Gold rule with a diamond in the middle */
.tpl-goldstd .gs-rule { position: relative; height: 0; margin: 18px 0 20px; border-top: 2px solid var(--ac); }
.tpl-goldstd .gs-rule::after { content: ''; position: absolute; left: 50%; top: -6px; width: 9px; height: 9px; margin-left: -5px; background: var(--ac); transform: rotate(45deg); box-shadow: 0 0 0 3px #fff; }
.tpl-goldstd.hr-thick .gs-rule { border-top-width: 4px; }
.tpl-goldstd.hr-thick .gs-rule::after { top: -7px; }
.tpl-goldstd.hr-none .gs-rule { border-top: 0; margin: 8px 0; }
.tpl-goldstd.hr-none .gs-rule::after { display: none; }

/* Body */
.tpl-goldstd .gs-body { display: grid; grid-template-columns: 1fr 232px; column-gap: 28px; align-items: start; }
.tpl-goldstd .sec { margin-bottom: calc(18px * var(--dens)); }
.tpl-goldstd .sec:last-child { margin-bottom: 0; }
.tpl-goldstd .sec h2 {
  margin: 0 0 calc(9px * var(--dens)); padding-bottom: 4px;
  font-family: var(--f-head, Georgia, 'Times New Roman', serif); font-weight: 700;
  font-size: calc(14px * var(--s-h2, 1)); line-height: 1.25; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ac-dark); text-align: var(--a-h2, left);
}
.tpl-goldstd .sec h2::before { content: '◆'; color: var(--ac); margin-right: 8px; font-size: .62em; vertical-align: .18em; }
.tpl-goldstd.hs-filled .sec h2::before { color: #fff; }
.tpl-goldstd.hc-off .sec h2 { text-transform: none; letter-spacing: .02em; }
.tpl-goldstd .summary { margin: 0; text-align: var(--a-body, justify); white-space: pre-line; }

.tpl-goldstd .ent { margin-bottom: calc(14px * var(--dens)); }
.tpl-goldstd .ent:last-child { margin-bottom: 0; }
.tpl-goldstd .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tpl-goldstd .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-goldstd .dt { flex: none; white-space: nowrap; color: var(--ac); font-size: .92em; font-weight: 700; }
.tpl-goldstd .org { color: var(--gray); font-style: italic; margin: 1px 0 4px; text-align: var(--a-body, left); }

/* Personal details box */
.tpl-goldstd .gs-box { background: var(--ac-tint); border: 1px solid var(--ac-soft); border-top: 3px solid var(--ac); padding: 12px 14px; }
.tpl-goldstd .pd-i { margin-bottom: calc(8px * var(--dens)); }
.tpl-goldstd .pd-i:last-child { margin-bottom: 0; }
.tpl-goldstd .pd-k { display: block; font-size: .76em; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); }
.tpl-goldstd .pd-v { display: block; font-weight: 700; color: var(--ac-dark); overflow-wrap: anywhere; }

/* Bullets */
.tpl-goldstd ul { margin: 3px 0 0; padding-left: 16px; list-style: none; }
.tpl-goldstd 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-goldstd li::before { content: var(--bullet); position: absolute; left: -14px; top: 0; font-size: var(--bfs); line-height: calc(var(--lh) / var(--bfsn, 1)); color: var(--ac); }
