/**
 * Reporter Panel — Press ID.
 * Portrait per face: width 2.15in × height 3.35in (templates 1–5).
 */

/* Beat .rp-wrapper Bangla font override on Reporter Panel pages */
.rp-id-satkhira,
.rp-id-satkhira * {
  font-family: "Roboto", "Noto Sans Bengali", "Noto Serif Bengali", "Segoe UI", system-ui, sans-serif !important;
}

:root {
  --rp-id-red: #e13333;
  --rp-id-green: #1b5e20;
  --rp-id-ink: #111827;
  /* User size: width 2.15in, height 3.35in */
  --rp-card-w: 2.15in;
  --rp-card-h: 3.35in;
  --rp-card-gap: 0.12in;
}

.rp-id-satkhira {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: var(--rp-card-gap);
  box-sizing: border-box;
  font-family: "Roboto", "Noto Sans Bengali", "Noto Serif Bengali", "Segoe UI", system-ui, sans-serif;
  color: var(--rp-id-ink);
  background: transparent;
}

.rp-id-sk-face {
  width: var(--rp-card-w);
  height: var(--rp-card-h);
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.14);
  background: #fff;
  flex: 0 0 auto;
}

/* ——— Front ——— */
.rp-id-sk-front {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

/* Stacked letters — no transform / writing-mode (fixes html2canvas mirror bugs) */
.rp-id-sk-front-bar {
  width: 13%;
  min-width: 34px;
  max-width: 44px;
  flex-shrink: 0;
  background: var(--rp-id-red);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  padding: 6px 2px;
  font-weight: 800;
  line-height: 1;
}

.rp-id-sk-bar-char {
  font-size: 25px;
  line-height: 1;
  display: block;
  text-transform: uppercase;
}

.rp-id-sk-front-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 6px 6px 8px;
  background: #fff;
}

.rp-id-sk-front-head {
  text-align: center;
  margin-bottom: 2px;
}

.rp-id-sk-head-logo .rp-id-sk-logo {
  display: block;
  margin: 0 auto;
  max-height: 28px;
  max-width: 94%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.rp-id-sk-head-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 0;
}

.rp-id-sk-head-logo + .rp-id-sk-head-meta {
  margin-top: 2px;
}

.rp-id-sk-site {
  font-size: 11px;
  font-weight: 800;
  color: var(--rp-id-green);
  line-height: 1.1;
  margin: 0;
}

.rp-id-sk-tagline {
  font-size: 7px;
  font-weight: 700;
  color: var(--rp-id-red);
  margin: 0;
  line-height: 1.15;
}

.rp-id-sk-url {
  font-size: 7px;
  font-weight: 700;
  color: var(--rp-id-green);
  margin: 0;
  word-break: break-all;
  line-height: 1.15;
}

/* Keep line height when site name / URL / tagline are toggled off (photo stays visually centered). */
.rp-id-sk-head-meta .rp-id-sk-head-slot--empty {
  visibility: hidden;
}

.rp-id-sk-centre {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  margin-top: -30px;
}

.rp-id-sk-photo {
  width: 72px;
  height: 88px;
  object-fit: cover;
  border: 2px solid #111;
  display: block;
  margin: 4px auto 3px;
  background: #f3f4f6;
}

.rp-id-sk-name {
  font-size: 10px;
  font-weight: 800;
  color: var(--rp-id-red);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
  line-height: 1.1;
  margin: 0;
  padding: 0 2px;
}

.rp-id-sk-role {
  font-size: 8.5px;
  font-weight: 600;
  color: #111;
  text-align: center;
  margin: 2px 0 2px;
}

.rp-id-sk-idno {
  font-size: 8px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 4px;
}

.rp-id-sk-front-foot {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: 4px;
  margin-top: auto;
  padding-top: 4px;
  border-top: 1px solid #e5e7eb;
}

.rp-id-sk-sign {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.rp-id-sk-sign-img {
  display: block;
  max-width: 72px;
  max-height: 22px;
  object-fit: contain;
  margin-bottom: 1px;
}

.rp-id-sk-sign-placeholder {
  height: 20px;
  border-bottom: 1px solid #9ca3af;
  max-width: 72px;
  margin-bottom: 1px;
}

.rp-id-sk-sign-label {
  font-size: 6.5px;
  font-weight: 700;
  color: #374151;
  text-transform: capitalize;
}

.rp-id-sk-qr {
  flex-shrink: 0;
}

.rp-id-sk-qr img {
  width: 54px;
  height: 54px;
  display: block;
  object-fit: contain;
  background: #fff;
  padding: 2px;
  border: 2px solid #000;
  border-radius: 3px;
}

/* ——— Back ——— */
.rp-id-sk-back {
  display: flex;
  flex-direction: column;
  background: #fff;
}

.rp-id-sk-back-top {
  background: var(--rp-id-red);
  color: #fff;
  text-align: center;
  padding: 5px 4px;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.15;
  word-break: break-all;
  flex-shrink: 0;
}

.rp-id-sk-back-terms {
  flex: 1;
  padding: 6px 6px 4px;
  font-size: 6.5px;
  line-height: 1.35;
  color: #1f2937;
  overflow: hidden;
  min-height: 0;
}

.rp-id-sk-back-terms ul {
  margin: 0;
  padding: 0 0 0 10px;
  list-style: square;
}

.rp-id-sk-back-terms li {
  margin-bottom: 3px;
}

.rp-id-sk-back-band {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex-shrink: 0;
}

.rp-id-sk-back-band-green {
  width: 5px;
  flex-shrink: 0;
  background: var(--rp-id-green);
}

.rp-id-sk-back-band-red {
  flex: 1;
  background: var(--rp-id-red);
  color: #fff;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 4px;
  padding: 5px 4px;
  font-size: 7px;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
}

.rp-id-sk-back-return {
  padding: 4px 5px 3px;
  font-size: 6px;
  line-height: 1.3;
  text-align: center;
  color: #374151;
  flex-shrink: 0;
}

.rp-id-sk-back-return .rp-id-sk-logo-inline {
  display: block;
  margin: 3px auto 0;
  max-height: 22px;
  max-width: 90%;
  object-fit: contain;
}

.rp-id-sk-back-addr {
  padding: 0 5px 4px;
  font-size: 6px;
  line-height: 1.35;
  color: #374151;
  flex-shrink: 0;
}

.rp-id-sk-back-contact {
  padding: 0 5px 4px;
  font-size: 6.5px;
  font-weight: 700;
  color: #111;
  flex-shrink: 0;
}

.rp-id-sk-back-foot {
  margin-top: auto;
  background: var(--rp-id-red);
  color: #fff;
  text-align: center;
  padding: 5px 4px;
  font-size: 7px;
  font-weight: 800;
  word-break: break-all;
  flex-shrink: 0;
}

/* ——— Template 2 — Midnight (navy & gold) — */
.rp-id-tpl--2 {
  --rp-id-red: #1e3a5f;
  --rp-id-green: #0f766e;
}
.rp-id-tpl--2 .rp-id-sk-front-bar {
  background: linear-gradient(180deg, #1e3a5f 0%, #152a45 100%);
}
.rp-id-tpl--2 .rp-id-sk-site {
  color: #1e3a5f;
}
.rp-id-tpl--2 .rp-id-sk-url {
  color: #0f766e;
}
.rp-id-tpl--2 .rp-id-sk-name {
  color: #b45309;
}
.rp-id-tpl--2 .rp-id-sk-tagline {
  color: #b45309;
}
.rp-id-tpl--2 .rp-id-sk-back-top,
.rp-id-tpl--2 .rp-id-sk-back-band-red,
.rp-id-tpl--2 .rp-id-sk-back-foot {
  background: linear-gradient(90deg, #1e3a5f 0%, #152a45 100%);
}
.rp-id-tpl--2 .rp-id-sk-back-band-green {
  background: #d4a012;
}
.rp-id-tpl--2 .rp-id-sk-face {
  box-shadow: 0 8px 32px rgba(30, 58, 95, 0.22);
}

/* ——— Template 3 — Slate (blue, bordered) — */
.rp-id-tpl--3 {
  --rp-id-red: #1d4ed8;
  --rp-id-green: #0369a1;
}
.rp-id-tpl--3 .rp-id-sk-front-bar {
  background: linear-gradient(180deg, #1e40af 0%, #1d4ed8 100%);
}
.rp-id-tpl--3 .rp-id-sk-site {
  color: #1e3a8a;
}
.rp-id-tpl--3 .rp-id-sk-url {
  color: #0369a1;
}
.rp-id-tpl--3 .rp-id-sk-name {
  color: #1d4ed8;
}
.rp-id-tpl--3 .rp-id-sk-front-foot {
  border-top-color: #bfdbfe;
}
.rp-id-tpl--3 .rp-id-sk-face {
  border: 1px solid #cbd5e1;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
}
.rp-id-tpl--3 .rp-id-sk-back-top,
.rp-id-tpl--3 .rp-id-sk-back-band-red,
.rp-id-tpl--3 .rp-id-sk-back-foot {
  background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
}
.rp-id-tpl--3 .rp-id-sk-back-band-green {
  background: #0ea5e9;
}

/* ——— Template 4 — Emerald — */
.rp-id-tpl--4 {
  --rp-id-red: #047857;
  --rp-id-green: #065f46;
}
.rp-id-tpl--4 .rp-id-sk-front-bar {
  background: linear-gradient(180deg, #065f46 0%, #047857 100%);
}
.rp-id-tpl--4 .rp-id-sk-site {
  color: #065f46;
}
.rp-id-tpl--4 .rp-id-sk-url {
  color: #059669;
}
.rp-id-tpl--4 .rp-id-sk-name {
  color: #047857;
}
.rp-id-tpl--4 .rp-id-sk-back-top,
.rp-id-tpl--4 .rp-id-sk-back-band-red,
.rp-id-tpl--4 .rp-id-sk-back-foot {
  background: linear-gradient(90deg, #059669 0%, #047857 100%);
}
.rp-id-tpl--4 .rp-id-sk-back-band-green {
  background: #6ee7b7;
}
.rp-id-tpl--4 .rp-id-sk-face {
  box-shadow: 0 8px 32px rgba(4, 120, 87, 0.18);
}

/* ——— Template 5 — Press ID Card 5 (Poppins layout: 30% red / 70% white card, dual photo border, foot bar) — */
.rp-id-tpl--5 {
  --rp-tpl5-teal: #2aa198;
  --rp-tpl5-red: #d60000;
  --rp-tpl5-green: #1b5e20;
}

.rp-id-tpl--5,
.rp-id-tpl--5 * {
  font-family: "Poppins", "Roboto", "Noto Sans Bengali", "Noto Serif Bengali", "Segoe UI", system-ui, sans-serif !important;
}

.rp-id-tpl--5 .rp-id-tpl5-front {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  background: #fff;
  container-type: size;
  container-name: rp-tpl5;
}

.rp-id-tpl--5 .rp-id-tpl5-card-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 5px 4px;
  box-sizing: border-box;
  background: linear-gradient(to bottom, var(--rp-tpl5-red) 30%, #ffffff 30%);
}

.rp-id-tpl--5 .rp-id-tpl5-press {
  flex-shrink: 0;
  color: #fff;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.06em;
  margin-top: 0.04in;
  margin-bottom: 0;
  text-transform: uppercase;
  font-size: 55px;
}

.rp-id-tpl--5 .rp-id-tpl5-profile {
  position: relative;
  flex-shrink: 0;
  width: 98px;
  height: 105px;
  margin: 0.08in auto 0.02in;
  border-radius: 12px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rp-id-tpl--5 .rp-id-tpl5-profile::before {
  content: none;
}

.rp-id-tpl--5 .rp-id-tpl5-profile-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 98px;
  height: 105px;
  object-fit: fill;
  border-radius: 12px;
  border: 5px solid #0374;
  background: #fff;
  box-sizing: border-box;
}

.rp-id-tpl--5 .rp-id-tpl5-name {
  margin: 7px 0 0;
  padding: 0 4px;
  font-size: clamp(9px, 7.2cqw, 13px);
  font-weight: 600;
  color: var(--rp-tpl5-teal);
  line-height: 1.15;
  text-transform: uppercase;
}

.rp-id-tpl--5 .rp-id-tpl5-role {
  margin: 1px 0 0;
  padding: 0 4px;
  font-size: clamp(7px, 6.5cqw, 11px);
  font-weight: 400;
  color: #111827;
  line-height: 1.2;
}

.rp-id-tpl--5 .rp-id-tpl5-idnum {
  margin: 1px 0 1px;
  padding: 0 4px;
  font-size: clamp(6.5px, 4.5cqw, 9px);
  font-weight: 400;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.rp-id-tpl--5 .rp-id-tpl5-qr {
  flex-shrink: 0;
  width: min(30cqw, 88px);
  height: min(30cqw, 88px);
  margin: 2px auto 0;
  border: 2px solid #d7d7d7;
  box-sizing: border-box;
  background: #fff;
}

.rp-id-tpl--5 .rp-id-tpl5-qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  box-sizing: border-box;
}

.rp-id-tpl--5 .rp-id-tpl5-divider {
  width: 80%;
  max-width: 1.75in;
  height: 1px;
  margin: 6px auto 4px;
  background: #000;
  position: relative;
  flex-shrink: 0;
}

.rp-id-tpl--5 .rp-id-tpl5-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: #000;
  transform: rotate(45deg);
}

.rp-id-tpl--5 .rp-id-tpl5-logo {
  flex-shrink: 0;
  width: 100%;
  margin-top: auto;
  padding-bottom: 2px;
}

.rp-id-tpl--5 .rp-id-tpl5-logo-img {
  display: block;
  margin: 0px auto 0;
  max-width: min(52cqw, 120px);
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.rp-id-tpl--5 .rp-id-tpl5-logo-title {
  margin: 2px 0 0;
  font-size: clamp(7px, 4cqw, 10px);
  font-weight: 700;
  color: var(--rp-tpl5-green);
  line-height: 1.15;
}

.rp-id-tpl--5 .rp-id-tpl5-logo-tag {
  margin: 1px 0 0;
  font-size: clamp(6px, 3.2cqw, 8px);
  font-weight: 600;
  color: var(--rp-tpl5-red);
  line-height: 1.2;
}

.rp-id-tpl--5 .rp-id-tpl5-logo-en {
  margin: 2px 0 0;
  font-size: clamp(6px, 3.2cqw, 8px);
  font-weight: 700;
  color: #111827;
  letter-spacing: 0.04em;
}

.rp-id-tpl--5 .rp-id-tpl5-foot-bar {
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 6px;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.rp-id-tpl--5 .rp-id-tpl5-foot-red {
  flex: 1 1 50%;
  background: var(--rp-tpl5-red);
  min-height: 6px;
}

.rp-id-tpl--5 .rp-id-tpl5-foot-green {
  flex: 1 1 50%;
  background: var(--rp-tpl5-green);
  min-height: 6px;
}

.rp-id-tpl--5 .rp-id-sk-face {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ——— Template 5 — back face (office / PRESS footer) — */
.rp-id-tpl--5 .rp-id-tpl5-back {
  container-type: size;
  container-name: rp-tpl5-back;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid #d32f2f;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 0;
  overflow: hidden;
  text-align: center;
  font-family: "Roboto", "Poppins", "Noto Sans Bengali", sans-serif !important;
}

.rp-id-tpl--5 .rp-id-tpl5-back-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

.rp-id-tpl--5 .rp-id-tpl5-back-header {
  flex-shrink: 0;
  padding-top: 5px;
  margin-bottom: 2px;
}

.rp-id-tpl--5 .rp-id-tpl5-back-header-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2px;
}

.rp-id-tpl--5 .rp-id-tpl5-back-header-logo {
  display: block;
  max-height: 36px;
  max-width: min(72cqw, 160px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.rp-id-tpl--5 .rp-id-tpl5-back-logo-text {
  font-size: clamp(14px, 9.5cqw, 26px);
  font-weight: 700;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}

.rp-id-tpl--5 .rp-id-tpl5-back-logo-red {
  color: #d32f2f;
}

.rp-id-tpl--5 .rp-id-tpl5-back-logo-green {
  color: #1b5e20;
}

.rp-id-tpl--5 .rp-id-tpl5-back-logo-full {
  color: #d32f2f;
}

.rp-id-tpl--5 .rp-id-tpl5-back-tagline {
  font-size: clamp(5px, 2.9cqw, 7px);
  font-weight: 700;
  color: #000;
  border-bottom: 2px solid #d32f2f;
  padding-bottom: 2px;
  display: inline-block;
  margin: 4px auto 0;
  max-width: 94%;
  line-height: 1.3;
}

.rp-id-tpl--5 .rp-id-tpl5-back-tagline-badge {
  background: #d32f2f;
  color: #fff;
  padding: 1px 4px;
  margin-left: 4px;
  font-size: 0.92em;
  font-style: normal;
  white-space: nowrap;
}

.rp-id-tpl--5 .rp-id-tpl5-back-content {
  flex: 1;
  min-height: 0;
  padding: 5px 7px 4px;
  font-size: clamp(7px, 4.2cqw, 10px);
  line-height: 1.35;
  color: #000;
  text-align: center;
  overflow: hidden;
}

.rp-id-tpl--5 .rp-id-tpl5-back-intro {
  margin: 0 0 5px;
  text-align: center;
  font-size: clamp(7px, 4.2cqw, 10px);
  line-height: 1.35;
}

.rp-id-tpl--5 .rp-id-tpl5-back-office-title {
  color: #d32f2f;
  font-weight: 700;
  font-size: clamp(7px, 9.2cqw, 14px);
  margin: 3px 0 3px;
}

.rp-id-tpl--5 .rp-id-tpl5-back-contact {
  font-size: clamp(7px, 4.2cqw, 10px);
  line-height: 1.35;
  text-align: center;
}

.rp-id-tpl--5 .rp-id-tpl5-back-addr {
  margin-bottom: 3px;
  font-size: clamp(7px, 4.2cqw, 10px);
  line-height: 1.35;
}

.rp-id-tpl--5 .rp-id-tpl5-back-line {
  margin-bottom: 2px;
  font-size: clamp(7px, 4.2cqw, 10px);
  line-height: 1.35;
}

.rp-id-tpl--5 .rp-id-tpl5-back-contact a {
  color: #000;
  text-decoration: none;
  word-break: break-all;
}

.rp-id-tpl--5 .rp-id-tpl5-back-meta {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  flex-shrink: 0;
  padding: 0 7px 4px;
  gap: 4px;
}

.rp-id-tpl--5 .rp-id-tpl5-back-dates {
  text-align: left;
  font-size: clamp(7px, 4.2cqw, 10px);
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}

.rp-id-tpl--5 .rp-id-tpl5-back-signature {
  text-align: right;
  flex-shrink: 0;
  max-width: 45%;
}

.rp-id-tpl--5 .rp-id-tpl5-back-sign-img {
  width: min(42cqw, 80px);
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  object-fit: contain;
}

.rp-id-tpl--5 .rp-id-tpl5-back-editor-label {
  font-size: clamp(7px, 4.2cqw, 10px);
  line-height: 1.35;
  border-top: 1px solid #000;
  display: inline-block;
  margin-top: 2px;
  padding-top: 2px;
}

.rp-id-tpl--5 .rp-id-tpl5-back-foot {
  flex-shrink: 0;
  background: #d32f2f;
  color: #fff;
  padding: 5px 4px 5px;
  margin-top: auto;
}

.rp-id-tpl--5 .rp-id-tpl5-back-press-word {
  font-size: clamp(18px, 12cqw, 32px);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  margin: 0;
  line-height: 1;
  text-transform: uppercase;
}

.rp-id-tpl--5 .rp-id-tpl5-back-return {
  font-size: clamp(4.5px, 2.7cqw, 6.5px);
  margin: 4px 0 0;
  font-style: italic;
  opacity: 0.96;
  line-height: 1.25;
}

/* ——— Template 6 — Modern Cyan (based on reference style) — */
.rp-id-tpl--6 {
  --rp-tpl6-cyan: #06b6d4;
  --rp-tpl6-navy: #0f172a;
  --rp-tpl6-dark: #0b1220;
  --rp-tpl6-accent: #f97316;
}

.rp-id-tpl--6 .rp-id-sk-face {
  position: relative;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(10, 20, 40, 0.2);
  container-type: size;
  border: 1px solid #e5e7eb;
}

.rp-id-tpl6-front,
.rp-id-tpl6-back {
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.rp-id-tpl6-front-bg,
.rp-id-tpl6-back-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.rp-id-tpl6-shape {
  position: absolute;
  display: block;
}

.rp-id-tpl6-shape--a {
  right: -26px;
  top: -20px;
  width: 120px;
  height: 150px;
  background: linear-gradient(180deg, #1c3f74, var(--rp-tpl6-navy));
  transform: rotate(18deg);
}

.rp-id-tpl6-shape--b {
  left: -50px;
  bottom: -10px;
  width: 170px;
  height: 72px;
  background: linear-gradient(90deg, #67e8f9 0%, var(--rp-tpl6-cyan) 100%);
  transform: rotate(-34deg);
}

.rp-id-tpl6-shape--c {
  right: -16px;
  bottom: -26px;
  width: 124px;
  height: 74px;
  background: linear-gradient(90deg, #67e8f9 0%, var(--rp-tpl6-cyan) 100%);
  transform: rotate(-34deg);
}

.rp-id-tpl6-shape--d {
  left: -36px;
  top: 58px;
  width: 160px;
  height: 74px;
  background: rgba(5, 194, 255, 0.26);
  transform: rotate(-24deg);
}

.rp-id-tpl6-shape--e {
  right: -45px;
  bottom: -8px;
  width: 170px;
  height: 72px;
  background: rgba(5, 194, 255, 0.9);
  transform: rotate(-30deg);
}

.rp-id-tpl--6 .rp-id-tpl6-front > *,
.rp-id-tpl--6 .rp-id-tpl6-back > * {
  position: relative;
  z-index: 1;
}

.rp-id-tpl6-front-header,
.rp-id-tpl6-back-header {
  text-align: center;
  padding: 14px 16px 8px;
}

.rp-id-tpl6-logo {
  max-height: 36px;
  max-width: 94%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.rp-id-tpl6-tagline {
  margin-top: 6px;
  font-size: 6.5px;
  line-height: 1.25;
  color: #0f172a;
  font-weight: 700;
}

.rp-id-tpl6-site-fallback {
  font-size: 11px;
  font-weight: 800;
  color: var(--rp-tpl6-dark);
}

.rp-id-tpl6-photo-wrap {
  margin: 4px auto 10px;
  width: 118px;
  height: 108px;
  border: 5px solid #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18), 0 0 0 1px #d0d7e2;
  background: #f3f4f6;
  border-radius: 8px;
}

.rp-id-tpl6-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.rp-id-tpl6-front-main {
  padding: 0 16px;
  text-align: center;
}

.rp-id-tpl6-name {
  display: inline-block;
  background: var(--rp-tpl6-accent);
  color: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 9.2px;
  font-weight: 800;
  text-transform: uppercase;
  max-width: 100%;
  line-height: 1.25;
  letter-spacing: 0.03em;
}

.rp-id-tpl6-role {
  margin-top: 6px;
  display: inline-block;
  background: linear-gradient(90deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.2;
}

.rp-id-tpl6-meta {
  margin-top: 8px;
  text-align: left;
  font-size: 7.2px;
  color: #111827;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 8px 8px 7px;
  border: 1px solid #e5e7eb;
}

.rp-id-tpl6-meta-line {
  display: flex;
  justify-content: flex-start;
  gap: 4px;
  line-height: 1.35;
  word-break: break-word;
}

.rp-id-tpl6-meta-line--id strong,
.rp-id-tpl6-meta-line--id span {
  color: #dc2626;
  font-weight: 900;
}

.rp-id-tpl6-front-foot {
  margin-top: auto;
  padding: 8px 16px 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.rp-id-tpl6-foot-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.rp-id-tpl6-qr img {
  width: 56px;
  height: 56px;
  display: block;
  background: #fff;
  border: 1px solid #0f172a;
  border-radius: 4px;
}

.rp-id-tpl6-url {
  font-size: 7px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.rp-id-tpl6-badge {
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #ea580c;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px 4px;
  border-radius: 4px;
}

.rp-id-tpl6-back {
  text-align: center;
  padding: 0 16px 12px;
}

.rp-id-tpl6-back-intro {
  margin-top: 2px;
  font-size: 7.2px;
  line-height: 1.35;
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  padding: 8px;
  border: 1px solid #e5e7eb;
}

.rp-id-tpl6-return {
  margin: 10px auto 7px;
  display: inline-block;
  border-radius: 999px;
  background: linear-gradient(90deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  font-size: 7.2px;
  font-weight: 800;
  padding: 4px 12px;
}

.rp-id-tpl6-office-title {
  color: #dc2626;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  margin: 0 0 4px;
}

.rp-id-tpl6-office-addr {
  font-size: 7px;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
}

.rp-id-tpl6-contact {
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 7px 8px 4px;
}

.rp-id-tpl6-contact-line {
  margin-bottom: 4px;
}

.rp-id-tpl6-contact-line strong {
  display: inline-block;
  border-radius: 999px;
  background: var(--rp-tpl6-accent);
  color: #fff;
  font-size: 6.2px;
  font-weight: 800;
  padding: 1px 6px;
  margin-bottom: 1px;
}

.rp-id-tpl6-contact-line span {
  display: block;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
  word-break: break-word;
}

.rp-id-tpl6-dates {
  margin-top: 7px;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
}

.rp-id-tpl6-exp {
  color: #dc2626;
  font-weight: 900;
}

.rp-id-tpl6-sign {
  margin-top: auto;
  padding-top: 8px;
  text-align: right;
}

.rp-id-tpl6-sign-img {
  max-width: 88px;
  max-height: 30px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 2px;
}

.rp-id-tpl6-sign-label {
  font-size: 7px;
  font-weight: 700;
  border-top: 1px solid #111827;
  display: inline-block;
  padding-top: 2px;
}

.rp-id-tpl--6 #rp-press-id-export {
  gap: 0.14in;
}

@media (max-width: 700px) {
  .rp-id-tpl--6 .rp-id-sk-face {
    border-radius: 10px;
  }
}

/* ——— Template 7 — AI CSS (user provided) — */
/* ===== COMMON CARD ===== */
.rp-id-tpl--7 .rp-id-tpl7-front,
.rp-id-tpl--7 .rp-id-tpl7-back {
    width: 340px;
    height: 540px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: #fff;
    font-family: "Segoe UI", sans-serif;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ===== SVG STYLE TOP CURVE ===== */
.rp-id-tpl--7 .rp-id-tpl7-front::before,
.rp-id-tpl--7 .rp-id-tpl7-back::before {
    content: "";
    position: absolute;
    top: -120px;
    left: -20%;
    width: 140%;
    height: 260px;
    background: #ea4335;
    border-radius: 50%;
    z-index: 0;
}

.rp-id-tpl--7 .rp-id-tpl7-front::after,
.rp-id-tpl--7 .rp-id-tpl7-back::after {
    content: "";
    position: absolute;
    top: -140px;
    left: -10%;
    width: 140%;
    height: 280px;
    background: #0f9d58;
    border-radius: 50%;
    z-index: 0;
    opacity: 0.95;
}

/* CONTENT FIX */
.rp-id-tpl--7 .rp-id-tpl7-front > *,
.rp-id-tpl--7 .rp-id-tpl7-back > * {
    position: relative;
    z-index: 2;
}

/* ===== FRONT DESIGN ===== */

/* Header */
.rp-id-tpl--7 .rp-id-tpl7-top {
    text-align: center;
    color: #fff;
    padding: 20px 10px 10px;
}

.rp-id-tpl--7 .rp-id-tpl7-logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
    margin: 0 auto 5px;
    display: block;
}

.rp-id-tpl--7 .rp-id-tpl7-site {
    font-size: 16px;
    font-weight: bold;
}

.rp-id-tpl--7 .rp-id-tpl7-tag {
    font-size: 12px;
    opacity: 0.9;
}

.rp-id-tpl--7 .rp-id-tpl7-url {
    font-size: 11px;
    opacity: 0.8;
}

/* Photo */
.rp-id-tpl--7 .rp-id-tpl7-photo-wrap {
    margin-top: 30px;
    text-align: center;
}

.rp-id-tpl--7 .rp-id-tpl7-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid #fff;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Info */
.rp-id-tpl--7 .rp-id-tpl7-main {
    text-align: center;
    padding: 15px;
}

.rp-id-tpl--7 .rp-id-tpl7-name {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.rp-id-tpl--7 .rp-id-tpl7-role {
    font-size: 14px;
    color: #0f9d58;
    margin-top: 4px;
    font-weight: 600;
}

.rp-id-tpl--7 .rp-id-tpl7-id {
    font-size: 12px;
    margin-top: 6px;
    color: #555;
}

/* QR */
.rp-id-tpl--7 .rp-id-tpl7-qr {
    text-align: center;
    margin-top: 10px;
}

.rp-id-tpl--7 .rp-id-tpl7-qr img {
    width: 70px;
    height: 70px;
}

/* Bottom Curve */
.rp-id-tpl--7 .rp-id-tpl7-foot {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.rp-id-tpl--7 .rp-id-tpl7-foot::before {
    content: "";
    position: absolute;
    bottom: -60px;
    left: -20%;
    width: 140%;
    height: 180px;
    background: #ea4335;
    border-radius: 50%;
}

.rp-id-tpl--7 .rp-id-tpl7-foot::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -10%;
    width: 140%;
    height: 200px;
    background: #0f9d58;
    border-radius: 50%;
}


/* ===== BACK DESIGN ===== */

/* Header */
.rp-id-tpl--7 .rp-id-tpl7-back-head {
    text-align: center;
    color: #fff;
    padding: 20px 10px;
}

/* Body */
.rp-id-tpl--7 .rp-id-tpl7-back-body {
    padding: 15px;
    font-size: 12px;
    color: #333;
    line-height: 1.5;
}

.rp-id-tpl--7 .rp-id-tpl7-back-text {
    background: #f3f3f3;
    padding: 10px;
    border-left: 4px solid #0f9d58;
    border-radius: 6px;
    margin-bottom: 10px;
}

.rp-id-tpl--7 .rp-id-tpl7-back-title {
    font-weight: bold;
    color: #0f9d58;
    margin-bottom: 5px;
}

.rp-id-tpl--7 .rp-id-tpl7-back-addr {
    margin-bottom: 8px;
}

.rp-id-tpl--7 .rp-id-tpl7-back-line {
    margin-bottom: 4px;
}

.rp-id-tpl--7 .rp-id-tpl7-exp {
    color: #ea4335;
    font-weight: bold;
}

/* Signature */
.rp-id-tpl--7 .rp-id-tpl7-sign {
    position: absolute;
    bottom: 120px;
    right: 15px;
    text-align: right;
}

.rp-id-tpl--7 .rp-id-tpl7-sign-img {
    height: 40px;
    margin-bottom: 3px;
}

.rp-id-tpl--7 .rp-id-tpl7-sign-label {
    font-size: 11px;
}

/* Bottom */
.rp-id-tpl--7 .rp-id-tpl7-back-foot {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 120px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.rp-id-tpl--7 .rp-id-tpl7-back-foot::before {
    content: "";
    position: absolute;
    bottom: -60px;
    left: -20%;
    width: 140%;
    height: 180px;
    background: #ea4335;
    border-radius: 50%;
}

.rp-id-tpl--7 .rp-id-tpl7-back-foot::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -10%;
    width: 140%;
    height: 200px;
    background: #0f9d58;
    border-radius: 50%;
}

/* ——— Template 8 — Based on template 5, bigger fonts/logo, QR on back — */
.rp-id-tpl--8 .rp-id-tpl5-name {
  margin: 7px 0 0;
  font-size: clamp(10px, 8.2cqw, 15px);
  font-weight: 700;
  color: #135818;
}

.rp-id-tpl--8 .rp-id-tpl5-role {
  font-size: 12px;
  font-weight: 600;
}

.rp-id-tpl--8 .rp-id-tpl5-idnum {
  margin: 1px 0 1px;
  padding: 0 4px;
  font-size: clamp(6.5px, 4.5cqw, 9px);
  font-weight: 600;
}

.rp-id-tpl--8 .rp-id-tpl5-logo-img {
  max-width: 90%;
  max-height: 100px;
}

.rp-id-tpl--8 .rp-id-tpl5-profile-img {
  width: 102px;
  height: 105px;
  border-radius: 15px;
  border: 5px solid #1b5e20;
}

.rp-id-tpl--8 .rp-id-tpl5-divider {
  width: 100%;
  max-width: 95%;
  height: 1.5px;
}

.rp-id-tpl--8 .rp-id-tpl5-logo-title {
  font-size: clamp(8px, 5.2cqw, 12px);
}

.rp-id-tpl--8 .rp-id-tpl5-logo-tag {
  font-size: clamp(7px, 4.2cqw, 10px);
}

.rp-id-tpl--8 .rp-id-tpl5-back-content,
.rp-id-tpl--8 .rp-id-tpl5-back-contact,
.rp-id-tpl--8 .rp-id-tpl5-back-intro,
.rp-id-tpl--8 .rp-id-tpl5-back-addr,
.rp-id-tpl--8 .rp-id-tpl5-back-line,
.rp-id-tpl--8 .rp-id-tpl5-back-dates,
.rp-id-tpl--8 .rp-id-tpl5-back-editor-label {
  font-size: clamp(8px, 4.8cqw, 11px);
}

.rp-id-tpl--8 .rp-id-tpl5-back-intro,
.rp-id-tpl--8 .rp-id-tpl5-back-addr,
.rp-id-tpl--8 .rp-id-tpl5-back-line {
  font-size: 10px;
  font-weight: 600;
}

.rp-id-tpl--8 .rp-id-tpl5-back-dates {
  margin-bottom: 8px;
}

.rp-id-tpl--8 .rp-id-tpl5-back-content {
  flex: 1;
  padding: 1px 1px 1px;
  font-size: clamp(7px, 4.2cqw, 10px);
  line-height: 1;
}

.rp-id-tpl--8 .rp-id-tpl5-back-header-logo {
  max-height: 42px;
  max-width: min(80cqw, 180px);
}

.rp-id-tpl--8 .rp-id-tpl8-back-qr {
  display: flex;
  justify-content: center;
  margin-top: -2px;
  margin-bottom: 4px;
}

.rp-id-tpl--8 .rp-id-tpl8-back-qr img {
  width: min(26cqw, 72px);
  height: min(26cqw, 72px);
  border: 2px solid #d7d7d7;
  background: #fff;
  box-sizing: border-box;
}

.rp-id-tpl--8 .rp-id-tpl5-back-foot {
  flex-shrink: 0;
  background: #d60000;
  color: #fff;
  padding: 1px 1px 1px;
  margin-top: auto;
}

.rp-id-tpl--8 .rp-id-tpl5-back-meta {
  align-items: flex-end;
}

.rp-id-tpl--8 .rp-id-tpl5-back-sign-img {
  width: 80px;
  max-width: 100%;
  height: 30px;
  object-fit: contain;
}

/* Template 5: fixed sizes when container query units unsupported */
@supports not (width: 1cqw) {
  .rp-id-tpl--5 .rp-id-tpl5-press {
    font-size: 38px;
  }
  .rp-id-tpl--5 .rp-id-tpl5-profile {
    width: 76px;
    height: 76px;
    margin: 10px auto 2px;
  }
  .rp-id-tpl--5 .rp-id-tpl5-name {
    margin: 10px 0 0;
    font-size: 11px;
  }
  .rp-id-tpl--5 .rp-id-tpl5-role {
    font-size: 8px;
  }
  .rp-id-tpl--5 .rp-id-tpl5-idnum {
    font-size: 7.5px;
  }
  .rp-id-tpl--5 .rp-id-tpl5-qr {
    width: 82px;
    height: 82px;
  }
  .rp-id-tpl--5 .rp-id-tpl5-logo-img {
    max-width: 100px;
  }
  .rp-id-tpl--5 .rp-id-tpl5-logo-title {
    font-size: 8px;
  }
  .rp-id-tpl--5 .rp-id-tpl5-logo-tag,
  .rp-id-tpl--5 .rp-id-tpl5-logo-en {
    font-size: 7px;
  }
  .rp-id-tpl--5 .rp-id-tpl5-back-header-logo {
    max-height: 32px;
    max-width: 140px;
  }
  .rp-id-tpl--5 .rp-id-tpl5-back-logo-text {
    font-size: 20px;
  }
  .rp-id-tpl--5 .rp-id-tpl5-back-tagline {
    font-size: 6px;
  }
  .rp-id-tpl--5 .rp-id-tpl5-back-content,
  .rp-id-tpl--5 .rp-id-tpl5-back-contact,
  .rp-id-tpl--5 .rp-id-tpl5-back-intro,
  .rp-id-tpl--5 .rp-id-tpl5-back-addr,
  .rp-id-tpl--5 .rp-id-tpl5-back-line,
  .rp-id-tpl--5 .rp-id-tpl5-back-dates,
  .rp-id-tpl--5 .rp-id-tpl5-back-editor-label {
    font-size: 10px;
    line-height: 1.35;
  }
  .rp-id-tpl--5 .rp-id-tpl5-back-office-title {
    font-size: 14px;
  }
  .rp-id-tpl--5 .rp-id-tpl5-back-press-word {
    font-size: 26px;
    letter-spacing: 0.08em;
    text-indent: 0.08em;
  }
  .rp-id-tpl--5 .rp-id-tpl5-back-return {
    font-size: 5.5px;
  }
  .rp-id-tpl--5 .rp-id-tpl5-back-sign-img {
    width: 56px;
  }
}

@media print {
  body {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .rp-id-sk-face {
    box-shadow: none;
    border-radius: 2px;
  }
}
