/* ===== Template 6 – Modern Chips (A4 = 794 x 1123 px) ===== */
.tpl-chips {
  --ac: #0e7490; --ac-dark: #0b3b4a; --ac-soft: #7cc4d4; --ac-tint: #e6f3f6;
  --dens: 1; --ink: #1f2933; --gray: #667085; --photo: 104px; --bullet: "•"; --bfs: 1em; --bfsn: 1;
  --ln: var(--ac);
  width: 794px; min-height: 1123px; flex: none;
  padding: 40px 42px 34px;
  display: flex; flex-direction: column;
  background: #fff; color: var(--ink);
  font-family: var(--f-body, Arial, Helvetica, 'Liberation Sans', 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(11, 59, 74, .18);
}
.tpl-chips, .tpl-chips * { box-sizing: border-box; }
.tpl-chips.has-foot { padding-bottom: 58px; }

/* Header */
.tpl-chips .c-head { display: flex; align-items: center; gap: 22px; }
.tpl-chips .photo-wrap { flex: none; width: var(--photo); height: var(--photo); }
.tpl-chips .photo-wrap img { width: 100%; height: 100%; display: block; object-fit: contain; }
.tpl-chips .c-id { min-width: 0; flex: 1; }
.tpl-chips .name {
  margin: 0; font-family: var(--f-head, Arial, Helvetica, 'Liberation Sans', sans-serif); font-weight: 800;
  font-size: calc(32px * var(--s-name, 1)); line-height: 1.1; letter-spacing: .01em;
  text-transform: uppercase; color: var(--ac-dark); text-align: var(--a-name, left); overflow-wrap: anywhere;
}
.tpl-chips.nc-off .name { text-transform: none; }
.tpl-chips .title-row { margin-top: 6px; text-align: var(--a-title, left); }
.tpl-chips .title { display: inline-block; font-family: var(--f-head, Arial, Helvetica, sans-serif); font-weight: 600; font-size: calc(15px * var(--s-title, 1)); line-height: 1.3; color: var(--ac); }
.tpl-chips.ts-plain .title { color: var(--ink); }
.tpl-chips.ts-tag .title { background: var(--ac); color: #fff; padding: .25em .8em; border-radius: 999px; }
.tpl-chips .c-contact { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 11px; }
.tpl-chips .ci { display: inline-flex; align-items: center; gap: 7px; }
.tpl-chips .ico { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--ac); display: inline-flex; align-items: center; justify-content: center; }
.tpl-chips .ico svg { width: 9px; height: 9px; fill: #fff; }
.tpl-chips .txt { overflow-wrap: anywhere; text-align: var(--a-body, left); }
.tpl-chips .c-bar { margin: 18px 0 20px; height: 0; border-top: 4px solid var(--ac); border-radius: 2px; }
.tpl-chips.hr-none .c-bar { border-top: 0; margin: 8px 0; }
.tpl-chips.hr-thick .c-bar { border-top-width: 7px; }

/* Body */
.tpl-chips .c-body { flex: 1; display: grid; grid-template-columns: 1fr 250px; column-gap: 26px; align-items: start; }
.tpl-chips .sec { margin-bottom: calc(18px * var(--dens)); }
.tpl-chips .sec:last-child { margin-bottom: 0; }
.tpl-chips .sec h2 {
  margin: 0 0 calc(9px * var(--dens)); padding-bottom: 4px;
  font-family: var(--f-head, Arial, Helvetica, sans-serif); font-weight: 700;
  font-size: calc(13.5px * var(--s-h2, 1)); line-height: 1.25; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ac-dark); text-align: var(--a-h2, left);
}
.tpl-chips.hc-off .sec h2 { text-transform: none; letter-spacing: .02em; }
.tpl-chips .summary { margin: 0; text-align: var(--a-body, left); white-space: pre-line; }

.tpl-chips .ent { margin-bottom: calc(14px * var(--dens)); }
.tpl-chips .ent:last-child { margin-bottom: 0; }
.tpl-chips .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tpl-chips .it { font-weight: 700; font-size: calc(14px * var(--s-sub, 1)); line-height: 1.3; color: var(--ac-dark); text-align: var(--a-sub, left); }
.tpl-chips .dt { flex: none; white-space: nowrap; font-size: .86em; font-weight: 700; color: var(--ac-dark); background: var(--ac-tint); padding: 2px 10px; border-radius: 999px; }
.tpl-chips .org { color: var(--ac); font-weight: 600; margin: 2px 0 4px; text-align: var(--a-body, left); }

/* Aside cards (always plain headings so the card stays clean) */
.tpl-chips .card { background: var(--ac-tint); border-radius: 12px; padding: 14px 16px; margin-bottom: calc(14px * var(--dens)); }
.tpl-chips .card:last-child { margin-bottom: 0; }
.tpl-chips .c-aside .sec h2 { border: 0 !important; background: none !important; color: var(--ac-dark) !important; padding: 0 !important; border-radius: 0 !important; margin-bottom: 9px; }
.tpl-chips .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tpl-chips .chip { display: inline-block; background: #fff; color: var(--ac-dark); border-radius: 999px; padding: 3px 11px; font-size: .94em; line-height: 1.35; text-align: center; }
.tpl-chips.cs-solid .chip { background: var(--ac); color: #fff; }
.tpl-chips .pd-i { margin-bottom: calc(8px * var(--dens)); }
.tpl-chips .pd-i:last-child { margin-bottom: 0; }
.tpl-chips .pd-k { display: block; font-size: .76em; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); }
.tpl-chips .pd-v { display: block; font-weight: 700; color: var(--ac-dark); overflow-wrap: anywhere; }

/* Bullets */
.tpl-chips ul { margin: 3px 0 0; padding-left: 15px; list-style: none; }
.tpl-chips 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-chips 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); }
