/* Operator ID — Figma Option 3. The source vectors are used as CSS masks so
   the card Layout palette controls every colour instead of hard-coding SVG. */
[data-template="operator-id"] {
  --operator-accent: var(--qardora-brand, #d52b1e);
  --operator-shell: var(--qardora-action, #0b0f19);
  --operator-icon: var(--qardora-icon, var(--operator-accent));
  --operator-page: var(--qardora-page, #0b0f19);
  --operator-surface: var(--qardora-surface, #fff);
  --operator-ink: var(--qardora-ink, #0f172a);
  --operator-muted: var(--qardora-muted, #64748b);
  --operator-rule: var(--qardora-border, var(--operator-ink));
  position: relative;
  width: min(100%, 390px);
  min-height: 0;
  margin: 0 auto;
  overflow: hidden;
  background: var(--operator-surface);
  color: var(--operator-ink);
  box-shadow: 0 18px 40px rgb(0 0 0 / 22%);
  font-family: var(--qardora-operator-font, Inter, Arial, sans-serif);
}
body.public-card-classic:has([data-template="operator-id"]) { min-width: 0; min-height: 100svh; background: var(--operator-page); }
[data-template="operator-id"] > .template-powered-by { display: none !important; }
.operator-id-mobile { display: flex; min-height: 100svh; flex-direction: column; container-type: inline-size; background: var(--operator-surface); }
.operator-id-accent { display: block; height: 16px; flex: 0 0 16px; background: var(--operator-accent); }
.operator-id-mobile-content { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: clamp(22px, 6.2cqw, 28px); padding: clamp(28px, 8.2cqw, 32px); }
.operator-id-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.operator-id-brand { display: inline-flex; min-width: 0; align-items: center; gap: 6px; text-transform: uppercase; }
.operator-id-brand strong { min-width: 0; font-size: 16px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; overflow-wrap: anywhere; }
.operator-id-brand i { display: block; width: 16px; height: 16px; flex: 0 0 16px; background: var(--operator-icon); -webkit-mask: url('vcard-templates/operator-id-truck.svg') center / 100% 100% no-repeat; mask: url('vcard-templates/operator-id-truck.svg') center / 100% 100% no-repeat; }
.operator-id-vcard--without-image .operator-id-brand-row { justify-content: center; text-align: center; }
.operator-id-portrait { display: grid; width: 160px; height: 160px; margin: 0; place-items: center; overflow: hidden; border: 1px solid var(--operator-rule); border-radius: 50%; background: color-mix(in srgb, var(--operator-surface) 94%, var(--operator-page)); }
.operator-id-portrait img { display: block; box-sizing: border-box; width: 100%; height: 100%; padding: clamp(8px, 1vw, 16px); object-fit: contain; }
.operator-id-portrait > span { color: var(--operator-accent); font-size: 58px; font-weight: 900; }
.operator-id-mobile .operator-id-portrait { align-self: center; margin-top: 20px; margin-bottom: 10px; }
.operator-id-mobile-identity { display: grid; gap: 12px; }
.operator-id-rule { display: block; width: 100%; height: 1px; background: var(--operator-rule); -webkit-mask: url('vcard-templates/operator-id-rule.svg') center / 100% 100% no-repeat; mask: url('vcard-templates/operator-id-rule.svg') center / 100% 100% no-repeat; }
.operator-id-mobile-identity h1,.operator-id-mobile-identity p,.operator-id-desktop-identity h1,.operator-id-desktop-identity p { margin: 0; overflow-wrap: anywhere; text-transform: uppercase; }
.operator-id-mobile-identity h1 { font-size: 32px; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.operator-id-mobile-identity p { margin-top: 4px; color: var(--operator-accent); font-size: 12px; font-weight: 500; line-height: 1.15; }
.operator-id-mobile-data { display: grid; gap: 12px; }
.operator-id-mobile-data > *, .operator-id-desktop-data > * { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; gap: 16px; color: var(--operator-ink); text-decoration: none; }
.operator-id-mobile-data small,.operator-id-desktop-data small { flex: 0 0 auto; color: var(--operator-muted); font-size: 11px; font-weight: 500; letter-spacing: .02em; line-height: 1; text-transform: uppercase; }
.operator-id-mobile-data strong,.operator-id-desktop-data strong,.operator-id-mobile-data .operator-id-custom-contact > span { min-width: 0; font-size: 13px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; text-align: right; }
.operator-id-mobile-data a:hover,.operator-id-desktop-data a:hover { color: var(--operator-accent); }
.operator-id-mobile-data > .operator-id-custom-contact { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.operator-id-mobile-actions { display: grid; min-height: 64px; margin: auto -32px -32px; grid-template-columns: 1fr 1fr; background: var(--operator-shell); color: #fff; }
  .operator-id-mobile-actions > a,.operator-id-mobile-actions > button { display: flex; min-width: 0; min-height: 64px; align-items: center; justify-content: center; gap: 8px; border: 0; border-left: 1px solid rgb(255 255 255 / 24%); background: transparent; color: inherit; cursor: pointer; font: 700 12px/1 var(--qardora-operator-font, Inter, Arial, sans-serif); text-decoration: none; }
.operator-id-mobile-actions > a { border-left: 0; }
.operator-id-mobile-actions > a:hover,.operator-id-mobile-actions > button:hover { background: rgb(255 255 255 / 12%); }
.operator-id-mobile-actions svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.operator-id-social { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(10px, 2.6cqw, 14px); }
.operator-id-social:empty { display: none; }
.operator-id-social > a { display: grid; width: clamp(46px, 12cqw, 54px); height: clamp(46px, 12cqw, 54px); place-items: center; border: 1px solid var(--operator-rule); border-radius: 50%; background: transparent; color: var(--operator-ink); text-decoration: none; }
.operator-id-social svg { width: clamp(20px, 5.6cqw, 25px); height: clamp(20px, 5.6cqw, 25px); fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.operator-id-social > a svg { fill: currentColor; stroke: none; }
.operator-id-social > a:hover { border-color: var(--operator-accent); color: var(--operator-accent); }
.operator-id-social > a:focus-visible,.operator-id-mobile-actions > a:focus-visible,.operator-id-mobile-actions > button:focus-visible { outline: 2px solid var(--operator-accent); outline-offset: -4px; }
.operator-id-desktop-social,.operator-id-desktop-actions { display: none; }
.operator-id-desktop { display: none; }

@media (min-width: 760px) {
  body.public-card-classic:has([data-template="operator-id"]) { display: grid; box-sizing: border-box; padding: clamp(16px, 4vw, 48px); place-items: center; }
  body.public-card-classic:not([data-preview-device]) [data-template="operator-id"] { display: grid; width: min(calc(100vw - clamp(32px, 8vw, 96px)), calc((100svh - clamp(32px, 8vw, 96px)) * 2)); min-height: 0; height: auto; aspect-ratio: 2 / 1; grid-template-rows: minmax(0, 1fr) 18px; border: 1px solid var(--operator-rule); box-shadow: 0 18px 40px rgb(0 0 0 / 24%); }
  body.public-card-classic:not([data-preview-device]) [data-template="operator-id"],body[data-preview-device="desktop"] [data-template="operator-id"] { container-type: inline-size; }
  body[data-preview-device="desktop"] [data-template="operator-id"] { display: grid; width: min(calc(100vw - 64px), calc((100svh - 144px) * 2)); min-height: 0; height: auto; aspect-ratio: 2 / 1; grid-template-rows: minmax(0, 1fr) 18px; border: 1px solid var(--operator-rule); box-shadow: 0 18px 40px rgb(0 0 0 / 24%); }
  .operator-id-mobile { display: none; }
  .operator-id-desktop { display: grid; width: 100%; height: 100%; min-height: 0; grid-row: 1; grid-template-columns: minmax(0, 220fr) minmax(0, 380fr); background: var(--operator-surface); }
  .operator-id-desktop-portrait { position: relative; display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: clamp(24px, 2.1cqw, 42px); padding: clamp(24px, 2.3cqw, 48px); border-right: 1px solid var(--operator-rule); background: color-mix(in srgb, var(--operator-surface) 96%, var(--operator-page)); }
  .operator-id-sidebar-accent { position: absolute; top: 0; bottom: 0; left: 0; width: clamp(8px, .55vw, 12px); background: var(--operator-accent); }
  .operator-id-desktop-portrait .operator-id-portrait { width: clamp(152px, 13.5cqw, 248px); height: clamp(152px, 13.5cqw, 248px); }
  .operator-id-desktop-info { display: flex; box-sizing: border-box; width: 100%; height: 100%; min-width: 0; min-height: 0; flex-direction: column; gap: clamp(20px, 1.8cqw, 36px); padding: clamp(36px, 2.9cqw, 64px) clamp(36px, 2.9cqw, 64px) 0; }
  .operator-id-desktop .operator-id-brand strong { font-size: clamp(20px, 1.8cqw, 38px); }
  .operator-id-desktop-identity h1 { font-size: clamp(34px, 3.45cqw, 72px); font-weight: 900; letter-spacing: -.04em; line-height: 1; }
  .operator-id-desktop-identity p { margin-top: clamp(5px, .4cqw, 8px); color: var(--operator-accent); font-size: clamp(15px, 1.3cqw, 26px); font-weight: 600; line-height: 1.15; }
  .operator-id-desktop-identity--no-picture { width: 100%; text-align: center; }
  .operator-id-desktop-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 1.5cqw, 30px) clamp(28px, 2.2cqw, 44px); }
  .operator-id-desktop-data > * { display: grid; align-content: start; justify-content: start; gap: clamp(5px, .4cqw, 8px); }
  /* Custom data (for example Fax) is a native grid row, never the generic
     rounded custom-field card used by the other templates. */
  .operator-id-desktop-data > .operator-id-custom-contact { min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; overflow-wrap: anywhere; }
  .operator-id-desktop-data strong,.operator-id-desktop-data .operator-id-custom-contact > span { width: 100%; min-width: 0; text-align: left; }
  .operator-id-desktop-data small { font-size: clamp(12px, 1.05cqw, 20px); font-weight: 600; }
  .operator-id-desktop-data strong,.operator-id-desktop-data .operator-id-custom-contact > span { font-size: clamp(18px, 1.65cqw, 34px); font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
  .operator-id-mobile-actions { display: none; }
  .operator-id-desktop-social { display: flex; min-height: clamp(60px, 3.6cqw, 72px); align-items: center; justify-content: center; gap: clamp(10px, .8cqw, 16px); margin-top: auto; }
  .operator-id-desktop-social:empty { display: none; }
  .operator-id-desktop-social a { display: grid; width: clamp(52px, 2.8cqw, 60px); height: clamp(52px, 2.8cqw, 60px); place-items: center; border: 1px solid color-mix(in srgb, var(--operator-icon) 38%, transparent); border-radius: 50%; color: var(--operator-icon); text-decoration: none; }
  .operator-id-desktop-social a:hover { background: var(--operator-accent); color: #fff; }
  .operator-id-desktop-social svg { width: clamp(22px, 1.35cqw, 28px); height: clamp(22px, 1.35cqw, 28px); fill: currentColor; }
  .operator-id-desktop-actions { display: grid; min-height: clamp(74px, 5.2cqw, 106px); margin: 0 clamp(-64px, -2.9cqw, -36px); flex: 0 0 auto; grid-template-columns: 1fr 1fr; background: var(--operator-shell); color: #fff; }
  .operator-id-desktop-actions > a,.operator-id-desktop-actions > button { display: flex; min-height: clamp(74px, 5.2cqw, 106px); align-items: center; justify-content: center; gap: clamp(10px, .8cqw, 16px); border: 0; border-left: 1px solid rgb(255 255 255 / 24%); background: transparent; color: inherit; cursor: pointer; font: 700 clamp(16px, 1.3cqw, 26px)/1 var(--qardora-operator-font, Inter, Arial, sans-serif); text-decoration: none; }
  .operator-id-desktop-actions > a { border-left: 0; }
  .operator-id-desktop-actions > a:hover,.operator-id-desktop-actions > button:hover { background: rgb(255 255 255 / 12%); }
  .operator-id-desktop-actions svg { width: clamp(24px, 1.5cqw, 32px); height: clamp(24px, 1.5cqw, 32px); flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
  [data-template="operator-id"] > .template-powered-by { display: flex !important; box-sizing: border-box; height: 18px; min-height: 0 !important; align-items: center; justify-content: center; grid-row: 2; padding: 3px 12px !important; border: 0 !important; background: var(--operator-surface) !important; color: var(--operator-muted) !important; font: 800 .55rem/1 var(--qardora-operator-font, Inter, ui-sans-serif, system-ui, sans-serif) !important; letter-spacing: .07em !important; text-align: center; }
  [data-template="operator-id"] > .template-powered-by .template-powered-link { color: var(--operator-muted) !important; -webkit-text-fill-color: var(--operator-muted); text-decoration: none !important; }
  [data-template="operator-id"] > .template-powered-by .template-powered-link:hover,[data-template="operator-id"] > .template-powered-by .template-powered-link:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

  /* The editor can request a mobile preview while its own viewport is wide. */
  body[data-preview-device="mobile"] [data-template="operator-id"] { width: min(100%, 390px); min-height: 0; height: auto; aspect-ratio: auto; border: 0; box-shadow: 0 16px 32px rgb(44 23 53 / 18%); }
  body[data-preview-device="mobile"] .operator-id-mobile { display: flex; min-height: 0; }
  body[data-preview-device="mobile"] .operator-id-mobile-actions { display: grid; }
  body[data-preview-device="mobile"] .operator-id-desktop { display: none; }
}

@media (max-width: 759px) {
  body[data-preview-device] [data-template="operator-id"] { width: min(100%, 390px); min-height: 0; border: 0; box-shadow: 0 16px 32px rgb(44 23 53 / 18%); }
}

@media (max-width: 359px) {
  .operator-id-mobile-content { padding: 24px; }
  .operator-id-portrait { width: 136px; height: 136px; }
  .operator-id-mobile-identity h1 { font-size: 27px; }
}

/* Device previews reserve space for the fixed switcher without shrinking the
   desktop card; the mobile preview remains a compact phone-sized card. */
body[data-preview-device="desktop"]:has([data-template="operator-id"]) { display: grid; box-sizing: border-box; min-height: 100svh; padding: 112px 32px 32px !important; place-items: center; }
body[data-preview-device="mobile"]:has([data-template="operator-id"]) { display: block; padding: 82px 24px 24px !important; }

/* Desktop cards use the available viewport instead of a smaller fixed ratio.
   This keeps the card proportional to the user's current screen size. */
@media (min-width: 1024px) {
  body.public-card-classic:not([data-preview-device]):has([data-template="operator-id"]) { --operator-desktop-gutter: clamp(16px, 1.5vw, 28px); min-height: var(--qardora-card-viewport-height, 100svh); padding: var(--operator-desktop-gutter); }
  body.public-card-classic:not([data-preview-device]) [data-template="operator-id"] { width: calc(100vw - (var(--operator-desktop-gutter) * 2)); height: calc(var(--qardora-card-viewport-height, 100svh) - (var(--operator-desktop-gutter) * 2)); aspect-ratio: auto; }
  body[data-preview-device="desktop"]:has([data-template="operator-id"]) { min-height: var(--qardora-card-viewport-height, 100svh); padding: 96px 16px 16px !important; }
  body[data-preview-device="desktop"] [data-template="operator-id"] { width: calc(100vw - 32px); height: calc(var(--qardora-card-viewport-height, 100svh) - 112px); aspect-ratio: auto; }
}

/* One subtle load sequence gives the operational card a sense of arrival
   without moving its final layout. Reduced-motion users see the card instantly. */
@media (prefers-reduced-motion: no-preference) {
  [data-template="operator-id"] { animation: operator-id-card-in 420ms cubic-bezier(.2, .8, .2, 1) both; }
  .operator-id-accent,.operator-id-sidebar-accent { transform-origin: left center; animation: operator-id-accent-in 520ms cubic-bezier(.2, .8, .2, 1) both; }
  .operator-id-brand-row,.operator-id-mobile-identity,.operator-id-desktop-identity,.operator-id-rule { animation: operator-id-content-in 420ms 90ms cubic-bezier(.2, .8, .2, 1) both; }
  .operator-id-portrait { animation: operator-id-portrait-in 480ms 130ms cubic-bezier(.2, .8, .2, 1) both; }
  .operator-id-mobile-data,.operator-id-desktop-data { animation: operator-id-content-in 440ms 190ms cubic-bezier(.2, .8, .2, 1) both; }
  .operator-id-social,.operator-id-desktop-social { animation: operator-id-content-in 400ms 250ms cubic-bezier(.2, .8, .2, 1) both; }
  .operator-id-mobile-actions,.operator-id-desktop-actions,[data-template="operator-id"] > .template-powered-by { animation: operator-id-footer-in 460ms 310ms cubic-bezier(.2, .8, .2, 1) both; }
}
@keyframes operator-id-card-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes operator-id-accent-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes operator-id-content-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes operator-id-portrait-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@keyframes operator-id-footer-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
