/**
 * BiznizCard — template-01 only (tpl-* runtime from template-01.html).
 * Theme tokens --tpl-teal* are set inline on .tpl-preview-wrap from JS.
 */

.pub-card.pub-card--template-01,
.bc-card.bc-t-template-01 {
  border-radius: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  overflow: visible;
}

.pub-card--template-01,
.bc-card.bc-t-template-01 {
  --tpl-radius-xl: 32px;
  --tpl-radius-lg: 24px;
  --tpl-radius-md: 16px;
  --tpl-radius-ico: 12px;
  --tpl-row-gap: 0.58rem;
  --tpl-font: "Montserrat", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --tpl-text: #333333;
  --tpl-muted: #666666;
  --tpl-line: rgba(15, 23, 42, 0.1);
  --tpl-surface: #ffffff;
  --tpl-canvas: #f1f5f9;
  --tpl-shadow-soft: 0 2px 8px rgba(15, 23, 42, 0.06);
  --tpl-shadow-card: 0 4px 24px rgba(15, 23, 42, 0.07), 0 32px 64px rgba(15, 23, 42, 0.05);
  --tpl-shadow-hero: 0 8px 32px rgba(15, 23, 42, 0.08);
  font-family: var(--tpl-font);
  color: var(--tpl-text);
  box-sizing: border-box;
}

.pub-card--template-01 .tpl-preview-wrap,
.bc-card.bc-t-template-01 .tpl-preview-wrap {
  width: 100%;
  max-width: min(100%, 480px);
  margin: 0 auto;
  box-sizing: border-box;
}

.pub-card--template-01 .tpl-card-shell,
.bc-card.bc-t-template-01 .tpl-card-shell {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--tpl-line);
  box-shadow: var(--tpl-shadow-card);
  background: var(--tpl-surface);
}

.pub-card--template-01 .tpl-surface,
.bc-card.bc-t-template-01 .tpl-surface {
  flex: 1;
  min-width: 0;
  background: var(--tpl-surface);
  border-radius: 0;
  padding: clamp(1.35rem, 4vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.35rem, 3vw, 2.5rem);
}

.pub-card--template-01 .tpl-hero,
.bc-card.bc-t-template-01 .tpl-hero {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pub-card--template-01 .tpl-hero--digital-only .tpl-hero__physical,
.bc-card.bc-t-template-01 .tpl-hero--digital-only .tpl-hero__physical {
  display: none;
}

.pub-card--template-01 .tpl-hero__digital-fallback,
.bc-card.bc-t-template-01 .tpl-hero__digital-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 0.35rem 0 0.15rem;
}

.pub-card--template-01 .tpl-hero--digital-only .tpl-hero__digital-fallback,
.bc-card.bc-t-template-01 .tpl-hero--digital-only .tpl-hero__digital-fallback {
  display: flex;
}

.pub-card--template-01 .tpl-hero__digital-avatar,
.bc-card.bc-t-template-01 .tpl-hero__digital-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--tpl-teal-soft, rgba(0, 153, 174, 0.12)), rgba(241, 245, 249, 0.95));
  border: 3px solid rgba(0, 153, 174, 0.35);
  box-shadow: var(--tpl-shadow-soft);
  display: grid;
  place-items: center;
  color: var(--tpl-teal, #0099ae);
  overflow: hidden;
}

.pub-card--template-01 .tpl-hero__digital-avatar svg,
.bc-card.bc-t-template-01 .tpl-hero__digital-avatar svg {
  width: 36px;
  height: 36px;
  opacity: 0.85;
}

.pub-card--template-01 .tpl-hero__digital-avatar img,
.bc-card.bc-t-template-01 .tpl-hero__digital-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.pub-card--template-01 .tpl-hero__digital-caption,
.bc-card.bc-t-template-01 .tpl-hero__digital-caption {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--tpl-muted);
  max-width: 17rem;
  line-height: 1.45;
}

.pub-card--template-01 .tpl-hero__label,
.bc-card.bc-t-template-01 .tpl-hero__label {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tpl-muted);
}

.pub-card--template-01 .tpl-hero__optional,
.bc-card.bc-t-template-01 .tpl-hero__optional {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: none;
}

.pub-card--template-01 .tpl-hero__frame,
.bc-card.bc-t-template-01 .tpl-hero__frame {
  border-radius: var(--tpl-radius-lg);
  padding: clamp(0.5rem, 2vw, 0.65rem);
  background: linear-gradient(165deg, #f8fafc 0%, #eef2f7 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: var(--tpl-shadow-hero);
}

.pub-card--template-01 .tpl-hero__card,
.bc-card.bc-t-template-01 .tpl-hero__card {
  position: relative;
  width: 100%;
  aspect-ratio: 3.5 / 2;
  max-height: 220px;
  margin: 0 auto;
  border-radius: calc(var(--tpl-radius-md) - 2px);
  background: repeating-linear-gradient(-12deg, rgba(148, 163, 184, 0.06) 0 1px, transparent 1px 9px);
  border: 1px dashed rgba(100, 116, 139, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  padding: 1rem;
  overflow: hidden;
}

.pub-card--template-01 .tpl-hero__card > img,
.bc-card.bc-t-template-01 .tpl-hero__card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--tpl-radius-md) - 4px);
}

.pub-card--template-01 .tpl-hero__card-icon svg,
.bc-card.bc-t-template-01 .tpl-hero__card-icon svg {
  width: 22px;
  height: 22px;
}

.pub-card--template-01 .tpl-hero__card-title,
.bc-card.bc-t-template-01 .tpl-hero__card-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
}

.pub-card--template-01 .tpl-hero__card-hint,
.bc-card.bc-t-template-01 .tpl-hero__card-hint {
  margin: 0;
  font-size: 0.6875rem;
  color: var(--tpl-muted);
  max-width: 16rem;
}

.pub-card--template-01 .tpl-identity-stack,
.bc-card.bc-t-template-01 .tpl-identity-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 4vw, 2.5rem);
}

.pub-card--template-01 .tpl-profile,
.bc-card.bc-t-template-01 .tpl-profile {
  text-align: center;
}

.pub-card--template-01 .tpl-profile.tpl-profile--row,
.bc-card.bc-t-template-01 .tpl-profile.tpl-profile--row {
  text-align: left;
}

.pub-card--template-01 .tpl-profile__media,
.bc-card.bc-t-template-01 .tpl-profile__media {
  margin: 0 auto 0.85rem;
}

.pub-card--template-01 .tpl-profile__photo,
.bc-card.bc-t-template-01 .tpl-profile__photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border: 3px solid rgba(0, 153, 174, 0.35);
  box-shadow: var(--tpl-shadow-soft);
}

.pub-card--template-01 .tpl-hero__card--filled,
.bc-card.bc-t-template-01 .tpl-hero__card--filled {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  display: block;
  box-shadow: none;
}

.pub-card--template-01 .tpl-profile__name,
.bc-card.bc-t-template-01 .tpl-profile__name {
  margin: 0.5rem 0 0;
  font-size: var(--tpl-identity-name-size, max(1.22rem, 1.33rem));
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.14;
}

.pub-card--template-01 .tpl-profile__role,
.bc-card.bc-t-template-01 .tpl-profile__role {
  margin: 0.5rem 0 0;
  font-size: var(--tpl-identity-sub-size, max(1.02rem, 1.05rem));
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tpl-text);
  line-height: 1.22;
}

.pub-card--template-01 .tpl-profile__company,
.bc-card.bc-t-template-01 .tpl-profile__company {
  margin: 0;
  font-size: var(--tpl-identity-company-size, max(1rem, 1.12rem));
  color: var(--tpl-text);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.pub-card--template-01 .tpl-profile__headline,
.bc-card.bc-t-template-01 .tpl-profile__headline {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--tpl-text);
  font-weight: 500;
  line-height: 1.4;
}

.pub-card--template-01 .tpl-sec-title,
.bc-card.bc-t-template-01 .tpl-sec-title {
  margin: 0 0 0.22rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--tpl-text);
  opacity: 0.88;
}

.pub-card--template-01 .tpl-rows,
.bc-card.bc-t-template-01 .tpl-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--tpl-row-gap);
}

.pub-card--template-01 .tpl-row,
.bc-card.bc-t-template-01 .tpl-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: calc(var(--tpl-ico-size, 75px) + 2px);
}

.pub-card--template-01 .tpl-row--phantom,
.bc-card.bc-t-template-01 .tpl-row--phantom {
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

.pub-card--template-01 .tpl-ico,
.bc-card.bc-t-template-01 .tpl-ico {
  width: var(--tpl-ico-size, 75px);
  height: var(--tpl-ico-size, 75px);
  min-width: var(--tpl-ico-size, 75px);
  max-width: var(--tpl-ico-size, 75px);
  min-height: var(--tpl-ico-size, 75px);
  max-height: var(--tpl-ico-size, 75px);
  flex-shrink: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: var(--tpl-radius-ico);
  background: var(--tpl-chip-fill, var(--tpl-teal, #0099ae));
  color: var(--tpl-chip-icon, #fff);
  display: grid;
  place-items: center;
  box-shadow: var(--tpl-shadow-soft);
}

.pub-card--template-01 .tpl-ico svg,
.bc-card.bc-t-template-01 .tpl-ico svg,
.pub-card--template-01 .tpl-ico img.brand-ico,
.bc-card.bc-t-template-01 .tpl-ico img.brand-ico {
  width: var(--tpl-ico-svg, 38px) !important;
  height: var(--tpl-ico-svg, 38px) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: var(--tpl-ico-glyph-max, var(--tpl-ico-svg, 38px)) !important;
  max-height: var(--tpl-ico-glyph-max, var(--tpl-ico-svg, 38px)) !important;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
}

.pub-card--template-01 .tpl-ico img.brand-ico,
.bc-card.bc-t-template-01 .tpl-ico img.brand-ico {
  border-radius: 3px;
}

.pub-card--template-01 .tpl-ico .contact-icon-glyph,
.pub-card--template-01 .tpl-ico .social-icon-glyph,
.bc-card.bc-t-template-01 .tpl-ico .contact-icon-glyph,
.bc-card.bc-t-template-01 .tpl-ico .social-icon-glyph {
  display: block;
  line-height: 1;
  font-size: var(--tpl-ico-svg, 38px) !important;
}

.pub-card--template-01 .tpl-ico:has(> img.brand-ico),
.bc-card.bc-t-template-01 .tpl-ico:has(> img.brand-ico),
.pub-card--template-01 .tpl-ico:has(> .brand-ico-mask),
.bc-card.bc-t-template-01 .tpl-ico:has(> .brand-ico-mask) {
  background: var(--tpl-chip-fill, var(--tpl-teal, #0099ae));
  color: var(--tpl-chip-icon, #fff);
  box-shadow: var(--tpl-shadow-soft);
}

.pub-card--template-01 .tpl-ico .brand-ico-mask,
.bc-card.bc-t-template-01 .tpl-ico .brand-ico-mask {
  display: block;
  width: var(--tpl-ico-svg, 38px) !important;
  height: var(--tpl-ico-svg, 38px) !important;
  flex: 0 0 auto !important;
  max-width: var(--tpl-ico-glyph-max, var(--tpl-ico-svg, 38px)) !important;
  max-height: var(--tpl-ico-glyph-max, var(--tpl-ico-svg, 38px)) !important;
  background-color: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.pub-card--template-01 .tpl-ico:has(> img.brand-ico) img.brand-ico:not(.brand-ico--color):not(.brand-ico--client),
.bc-card.bc-t-template-01 .tpl-ico:has(> img.brand-ico) img.brand-ico:not(.brand-ico--color):not(.brand-ico--client) {
  filter: brightness(0) invert(1);
}

.pub-card--template-01 .tpl-ico img.brand-ico--color,
.bc-card.bc-t-template-01 .tpl-ico img.brand-ico--color {
  filter: none !important;
  display: block;
  width: var(--tpl-ico-svg, 38px) !important;
  height: var(--tpl-ico-svg, 38px) !important;
  max-width: var(--tpl-ico-glyph-max, var(--tpl-ico-svg, 38px)) !important;
  max-height: var(--tpl-ico-glyph-max, var(--tpl-ico-svg, 38px)) !important;
  object-fit: contain;
}

.pub-card--template-01 .tpl-ico .brand-ico-mask.brand-ico--client,
.bc-card.bc-t-template-01 .tpl-ico .brand-ico-mask.brand-ico--client {
  background-color: currentColor;
}

.pub-card--template-01 .tpl-row__link,
.bc-card.bc-t-template-01 .tpl-row__link {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  text-decoration: none;
  color: inherit;
}

.pub-card--template-01 .tpl-row__link--muted,
.bc-card.bc-t-template-01 .tpl-row__link--muted {
  pointer-events: none;
  opacity: 0.65;
}

.pub-card--template-01 .tpl-row__lbl,
.bc-card.bc-t-template-01 .tpl-row__lbl {
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tpl-muted);
}

.pub-card--template-01 .tpl-row__val,
.pub-card--template-01 .tpl-row__text,
.bc-card.bc-t-template-01 .tpl-row__val,
.bc-card.bc-t-template-01 .tpl-row__text {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.pub-card--template-01 .tpl-block,
.bc-card.bc-t-template-01 .tpl-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pub-card--template-01 .tpl-links-grid,
.bc-card.bc-t-template-01 .tpl-links-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  column-gap: 0;
  row-gap: 0.2rem;
  padding: 0.28rem 0 0;
  min-width: 0;
}

.pub-card--template-01 .tpl-links-grid::after,
.bc-card.bc-t-template-01 .tpl-links-grid::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--tpl-line);
  transform: translateX(-50%);
  pointer-events: none;
}

.pub-card--template-01 .tpl-links-grid.tpl-links-grid--t01-ledger::after,
.bc-card.bc-t-template-01 .tpl-links-grid.tpl-links-grid--t01-ledger::after {
  display: none;
}

.pub-card--template-01 .tpl-links-grid--contact-only,
.pub-card--template-01 .tpl-links-grid--social-only,
.bc-card.bc-t-template-01 .tpl-links-grid--contact-only,
.bc-card.bc-t-template-01 .tpl-links-grid--social-only {
  grid-template-columns: 1fr;
}

.pub-card--template-01 .tpl-links-grid--contact-only::after,
.pub-card--template-01 .tpl-links-grid--social-only::after,
.bc-card.bc-t-template-01 .tpl-links-grid--contact-only::after,
.bc-card.bc-t-template-01 .tpl-links-grid--social-only::after {
  display: none;
}

.pub-card--template-01 .tpl-links-grid--contact-only .tpl-lg-h-social,
.pub-card--template-01 .tpl-links-grid--contact-only .tpl-lg-ul-social,
.bc-card.bc-t-template-01 .tpl-links-grid--contact-only .tpl-lg-h-social,
.bc-card.bc-t-template-01 .tpl-links-grid--contact-only .tpl-lg-ul-social {
  display: none;
}

.pub-card--template-01 .tpl-links-grid--contact-only .tpl-lg-h-contact,
.pub-card--template-01 .tpl-links-grid--contact-only .tpl-lg-ul-contact,
.bc-card.bc-t-template-01 .tpl-links-grid--contact-only .tpl-lg-h-contact,
.bc-card.bc-t-template-01 .tpl-links-grid--contact-only .tpl-lg-ul-contact {
  grid-column: 1;
  padding-left: 0;
  padding-right: 0;
}

.pub-card--template-01 .tpl-links-grid--social-only .tpl-lg-h-contact,
.pub-card--template-01 .tpl-links-grid--social-only .tpl-lg-ul-contact,
.bc-card.bc-t-template-01 .tpl-links-grid--social-only .tpl-lg-h-contact,
.bc-card.bc-t-template-01 .tpl-links-grid--social-only .tpl-lg-ul-contact {
  display: none;
}

.pub-card--template-01 .tpl-links-grid--social-only .tpl-lg-h-social,
.pub-card--template-01 .tpl-links-grid--social-only .tpl-lg-ul-social,
.bc-card.bc-t-template-01 .tpl-links-grid--social-only .tpl-lg-h-social,
.bc-card.bc-t-template-01 .tpl-links-grid--social-only .tpl-lg-ul-social {
  grid-column: 1;
  padding-left: 0;
  padding-right: 0;
}

.pub-card--template-01 .tpl-lg-h-contact,
.bc-card.bc-t-template-01 .tpl-lg-h-contact {
  grid-column: 1;
  grid-row: 1;
  padding-right: 0.75rem;
}

.pub-card--template-01 .tpl-lg-h-social,
.bc-card.bc-t-template-01 .tpl-lg-h-social {
  grid-column: 2;
  grid-row: 1;
  padding-left: 0.75rem;
}

.pub-card--template-01 .tpl-lg-ul-contact,
.bc-card.bc-t-template-01 .tpl-lg-ul-contact {
  grid-column: 1;
  grid-row: 2;
  padding-right: 0.75rem;
  min-width: 0;
}

.pub-card--template-01 .tpl-lg-ul-social,
.bc-card.bc-t-template-01 .tpl-lg-ul-social {
  grid-column: 2;
  grid-row: 2;
  padding-left: 0.75rem;
  min-width: 0;
}

/* Template 01 — part 2 layout (reference: contact | divider | social + gallery / video / CTA) */
.pub-card--template-01 .tpl-profile__header-row,
.bc-card.bc-t-template-01 .tpl-profile__header-row {
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}

.pub-card--template-01 .tpl-profile__copy,
.bc-card.bc-t-template-01 .tpl-profile__copy {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.pub-card--template-01 .tpl-profile__mark--logo .tpl-profile__logo,
.pub-card--template-01 .tpl-profile__mark--avatar .tpl-profile__photo,
.bc-card.bc-t-template-01 .tpl-profile__mark--logo .tpl-profile__logo,
.bc-card.bc-t-template-01 .tpl-profile__mark--avatar .tpl-profile__photo {
  width: 115px;
  height: 115px;
  max-width: 115px;
  max-height: 115px;
  border-radius: 50%;
  border: 2px solid var(--tpl-brand-accent, #c5a059);
  box-shadow: none;
  object-fit: cover;
  object-position: center;
}

.pub-card--template-01 .tpl-links-grid--t01,
.bc-card.bc-t-template-01 .tpl-links-grid--t01 {
  --tpl-row-gap: 12px;
  --tpl-ico-pad: calc(var(--tpl-ico-size, 75px) * 0.14);
  --tpl-ico-svg: calc(var(--tpl-ico-size, 75px) * 0.5);
  --tpl-ico-glyph-max: calc(var(--tpl-ico-size, 75px) * 0.72);
  --tpl-radius-ico: 6px;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 0;
  position: relative;
}

.pub-card--template-01 .tpl-links-grid--t01::after,
.bc-card.bc-t-template-01 .tpl-links-grid--t01::after {
  display: none;
}

.pub-card--template-01 .tpl-links-grid--t01.tpl-links-grid--contact-only,
.pub-card--template-01 .tpl-links-grid--t01.tpl-links-grid--social-only,
.bc-card.bc-t-template-01 .tpl-links-grid--t01.tpl-links-grid--contact-only,
.bc-card.bc-t-template-01 .tpl-links-grid--t01.tpl-links-grid--social-only {
  grid-template-columns: 1fr;
}

.pub-card--template-01 .tpl-links-divider,
.bc-card.bc-t-template-01 .tpl-links-divider {
  width: 1px;
  background: #dddddd;
  min-height: 48px;
  align-self: stretch;
}

.pub-card--template-01 .tpl-links-grid--t01.tpl-links-grid--contact-only .tpl-links-divider,
.pub-card--template-01 .tpl-links-grid--t01.tpl-links-grid--social-only .tpl-links-divider,
.bc-card.bc-t-template-01 .tpl-links-grid--t01.tpl-links-grid--contact-only .tpl-links-divider,
.bc-card.bc-t-template-01 .tpl-links-grid--t01.tpl-links-grid--social-only .tpl-links-divider {
  display: none;
}

.pub-card--template-01 .tpl-links-grid--t01 .tpl-sec-title,
.bc-card.bc-t-template-01 .tpl-links-grid--t01 .tpl-sec-title {
  grid-column: unset;
  grid-row: unset;
  padding: 0;
  margin: 0 0 0.9375rem;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tpl-text);
  opacity: 1;
}

.pub-card--template-01 .tpl-links-grid--t01 .tpl-rows,
.bc-card.bc-t-template-01 .tpl-links-grid--t01 .tpl-rows {
  grid-column: unset;
  grid-row: unset;
  padding: 0;
}

.pub-card--template-01 .tpl-links-grid--t01.tpl-links-grid--t01-ledger,
.bc-card.bc-t-template-01 .tpl-links-grid--t01.tpl-links-grid--t01-ledger {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: stretch;
  grid-template-columns: unset;
  grid-template-rows: unset;
  padding: 0;
}

.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-row,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem 1.35rem;
  align-items: start;
  position: relative;
  min-width: 0;
}

.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-row--top-full,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-row--top-full {
  grid-template-columns: minmax(0, 1fr);
}

/* Contact full width, then Social below (not side-by-side) */
.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-row--stacked,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-row--stacked,
.pub-card--template-01b .tpl-links-grid--t01-ledger .tpl-links-row--stacked,
.bc-card.bc-t-template-01b .tpl-links-grid--t01-ledger .tpl-links-row--stacked {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0.85rem !important;
}

.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-row--stacked::before,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-row--stacked::before,
.pub-card--template-01b .tpl-links-grid--t01-ledger .tpl-links-row--stacked::before,
.bc-card.bc-t-template-01b .tpl-links-grid--t01-ledger .tpl-links-row--stacked::before {
  display: none !important;
}

.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-links-qcell--contact,
.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-links-qcell--social,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-links-qcell--contact,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-links-qcell--social,
.pub-card--template-01b .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-links-qcell--contact,
.pub-card--template-01b .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-links-qcell--social,
.bc-card.bc-t-template-01b .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-links-qcell--contact,
.bc-card.bc-t-template-01b .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-links-qcell--social {
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100%;
  max-width: 100%;
}

.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-links-qcell--social,
.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-links-qcell--delivery,
.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-links-qcell--payment,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-links-qcell--social,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-links-qcell--delivery,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-links-qcell--payment,
.pub-card--template-01b .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-links-qcell--social,
.pub-card--template-01b .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-links-qcell--delivery,
.pub-card--template-01b .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-links-qcell--payment,
.bc-card.bc-t-template-01b .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-links-qcell--social,
.bc-card.bc-t-template-01b .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-links-qcell--delivery,
.bc-card.bc-t-template-01b .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-links-qcell--payment {
  margin-top: 0.15rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--tpl-line, rgba(15, 23, 42, 0.12));
}

/* Full-width locked 4-across grids (contact, social, delivery, payment) */
.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-lg-ul-contact,
.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-lg-ul-social,
.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-lg-ul-delivery,
.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-links-qcell--payment .tpl-rows,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-lg-ul-contact,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-lg-ul-social,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-lg-ul-delivery,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-links-qcell--payment .tpl-rows,
.pub-card--template-01b .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-lg-ul-contact,
.pub-card--template-01b .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-lg-ul-social,
.pub-card--template-01b .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-lg-ul-delivery,
.pub-card--template-01b .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-links-qcell--payment .tpl-rows,
.bc-card.bc-t-template-01b .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-lg-ul-contact,
.bc-card.bc-t-template-01b .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-lg-ul-social,
.bc-card.bc-t-template-01b .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-lg-ul-delivery,
.bc-card.bc-t-template-01b .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-links-qcell--payment .tpl-rows {
  grid-template-columns: repeat(4, minmax(var(--tpl-ico-size, 75px), 1fr)) !important;
  column-gap: 0.5rem;
  row-gap: 0.55rem;
}

/* Full-width delivery / payment: same locked 4-across tracks as contact + social */
.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell--span-cols .tpl-lg-ul-delivery,
.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell--payment.tpl-links-qcell--span-cols .tpl-rows,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell--span-cols .tpl-lg-ul-delivery,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell--payment.tpl-links-qcell--span-cols .tpl-rows,
.pub-card--template-01b .tpl-links-grid--t01-ledger .tpl-links-qcell--span-cols .tpl-lg-ul-delivery,
.pub-card--template-01b .tpl-links-grid--t01-ledger .tpl-links-qcell--payment.tpl-links-qcell--span-cols .tpl-rows,
.bc-card.bc-t-template-01b .tpl-links-grid--t01-ledger .tpl-links-qcell--span-cols .tpl-lg-ul-delivery,
.bc-card.bc-t-template-01b .tpl-links-grid--t01-ledger .tpl-links-qcell--payment.tpl-links-qcell--span-cols .tpl-rows {
  grid-template-columns: repeat(4, minmax(var(--tpl-ico-size, 75px), 1fr)) !important;
  column-gap: 0.5rem;
  row-gap: 0.55rem;
  justify-items: stretch;
  width: 100%;
  max-width: 100%;
}

.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-row--top:not(.tpl-links-row--top-full)::before,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-row--top:not(.tpl-links-row--top-full)::before {
  content: "";
  position: absolute;
  left: calc(50% - 0.5px);
  top: 0;
  bottom: 0;
  width: 1px;
  background: #dddddd;
  pointer-events: none;
}

.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-row--bottom,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-row--bottom {
  border-top: 1px solid var(--tpl-line, rgba(15, 23, 42, 0.12));
  padding-top: 1.05rem;
  margin-top: 0.05rem;
}

.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-row--bottom:has(.tpl-links-qcell--span-cols)::before,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-row--bottom:has(.tpl-links-qcell--span-cols)::before {
  display: none;
}

.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-row--bottom:not(:has(.tpl-links-qcell--span-cols))::before,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-row--bottom:not(:has(.tpl-links-qcell--span-cols))::before {
  content: "";
  position: absolute;
  left: calc(50% - 0.5px);
  top: 1.05rem;
  bottom: 0;
  width: 1px;
  background: #dddddd;
  pointer-events: none;
}

.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell--social,
.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell--payment,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell--social,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell--payment {
  padding-left: 0.85rem;
  box-sizing: border-box;
}

.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell--contact,
.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell--delivery,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell--contact,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell--delivery {
  padding-right: 0.5rem;
  box-sizing: border-box;
}

/* Ledger: “Contact / Social / …” are not children of the old 2×2 links grid — clear tri-core grid placement */
.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-lg-h-contact,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-lg-h-contact,
.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-lg-h-social,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-lg-h-social,
.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-lg-h-delivery,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-lg-h-delivery {
  grid-column: unset !important;
  grid-row: unset !important;
  display: block;
  width: 100%;
  margin: 0 0 0.65rem;
  padding-left: 0 !important;
  padding-right: 0 !important;
  font-family: inherit;
  font-size: var(--tpl-heading-size, 0.9375rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tpl-text);
  opacity: 1;
}

.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell .tpl-lg-ul-contact,
.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell .tpl-lg-ul-social,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell .tpl-lg-ul-contact,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell .tpl-lg-ul-social {
  grid-column: unset !important;
  grid-row: unset !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Locked 2-column grids — contact / social / delivery / payment (Templates 1 & 2) */
.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-lg-ul-contact,
.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-lg-ul-social,
.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-lg-ul-delivery,
.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell--payment .tpl-rows,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-lg-ul-contact,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-lg-ul-social,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-lg-ul-delivery,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell--payment .tpl-rows,
.pub-card--template-01b .tpl-links-grid--t01-ledger .tpl-lg-ul-contact,
.pub-card--template-01b .tpl-links-grid--t01-ledger .tpl-lg-ul-social,
.pub-card--template-01b .tpl-links-grid--t01-ledger .tpl-lg-ul-delivery,
.pub-card--template-01b .tpl-links-grid--t01-ledger .tpl-links-qcell--payment .tpl-rows,
.bc-card.bc-t-template-01b .tpl-links-grid--t01-ledger .tpl-lg-ul-contact,
.bc-card.bc-t-template-01b .tpl-links-grid--t01-ledger .tpl-lg-ul-social,
.bc-card.bc-t-template-01b .tpl-links-grid--t01-ledger .tpl-lg-ul-delivery,
.bc-card.bc-t-template-01b .tpl-links-grid--t01-ledger .tpl-links-qcell--payment .tpl-rows {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  column-gap: 0.65rem;
  row-gap: var(--tpl-row-gap, 0.58rem);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-lg-ul-contact > .tpl-row,
.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-lg-ul-social > .tpl-row,
.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-lg-ul-delivery > .tpl-row,
.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell--payment .tpl-rows > .tpl-row,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-lg-ul-contact > .tpl-row,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-lg-ul-social > .tpl-row,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-lg-ul-delivery > .tpl-row,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell--payment .tpl-rows > .tpl-row,
.pub-card--template-01b .tpl-links-grid--t01-ledger .tpl-lg-ul-contact > .tpl-row,
.pub-card--template-01b .tpl-links-grid--t01-ledger .tpl-lg-ul-social > .tpl-row,
.pub-card--template-01b .tpl-links-grid--t01-ledger .tpl-lg-ul-delivery > .tpl-row,
.pub-card--template-01b .tpl-links-grid--t01-ledger .tpl-links-qcell--payment .tpl-rows > .tpl-row,
.bc-card.bc-t-template-01b .tpl-links-grid--t01-ledger .tpl-lg-ul-contact > .tpl-row,
.bc-card.bc-t-template-01b .tpl-links-grid--t01-ledger .tpl-lg-ul-social > .tpl-row,
.bc-card.bc-t-template-01b .tpl-links-grid--t01-ledger .tpl-lg-ul-delivery > .tpl-row,
.bc-card.bc-t-template-01b .tpl-links-grid--t01-ledger .tpl-links-qcell--payment .tpl-rows > .tpl-row {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Ledger grids: icon above label so text is not clipped (PHO / SPECIA / INSTAC…) */
.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-lg-ul-contact,
.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-lg-ul-social,
.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-lg-ul-delivery,
.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell--payment .tpl-rows,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-lg-ul-contact,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-lg-ul-social,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-lg-ul-delivery,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell--payment .tpl-rows,
.pub-card--template-01b .tpl-links-grid--t01-ledger .tpl-lg-ul-contact,
.pub-card--template-01b .tpl-links-grid--t01-ledger .tpl-lg-ul-social,
.pub-card--template-01b .tpl-links-grid--t01-ledger .tpl-lg-ul-delivery,
.pub-card--template-01b .tpl-links-grid--t01-ledger .tpl-links-qcell--payment .tpl-rows,
.bc-card.bc-t-template-01b .tpl-links-grid--t01-ledger .tpl-lg-ul-contact,
.bc-card.bc-t-template-01b .tpl-links-grid--t01-ledger .tpl-lg-ul-social,
.bc-card.bc-t-template-01b .tpl-links-grid--t01-ledger .tpl-lg-ul-delivery,
.bc-card.bc-t-template-01b .tpl-links-grid--t01-ledger .tpl-links-qcell--payment .tpl-rows {
  --tpl-ico-pad: calc(var(--tpl-ico-size, 75px) * 0.14);
  --tpl-ico-svg: calc(var(--tpl-ico-size, 75px) * 0.5);
  --tpl-ico-glyph-max: calc(var(--tpl-ico-size, 75px) * 0.72);
  column-gap: 0.45rem;
  row-gap: 0.55rem;
}

.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-lg-ul-contact > .tpl-row--contact > .tpl-row__link,
.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-lg-ul-contact > .tpl-row--contact > .tpl-row__btn,
.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-lg-ul-social > .tpl-row--social > .tpl-row__link,
.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-lg-ul-delivery > .tpl-row--social > .tpl-row__link,
.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell--payment .tpl-rows > .tpl-row--social > .tpl-row__link,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-lg-ul-contact > .tpl-row--contact > .tpl-row__link,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-lg-ul-contact > .tpl-row--contact > .tpl-row__btn,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-lg-ul-social > .tpl-row--social > .tpl-row__link,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-lg-ul-delivery > .tpl-row--social > .tpl-row__link,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell--payment .tpl-rows > .tpl-row--social > .tpl-row__link,
.pub-card--template-01b .tpl-links-grid--t01-ledger .tpl-lg-ul-contact > .tpl-row--contact > .tpl-row__link,
.pub-card--template-01b .tpl-links-grid--t01-ledger .tpl-lg-ul-contact > .tpl-row--contact > .tpl-row__btn,
.pub-card--template-01b .tpl-links-grid--t01-ledger .tpl-lg-ul-social > .tpl-row--social > .tpl-row__link,
.pub-card--template-01b .tpl-links-grid--t01-ledger .tpl-lg-ul-delivery > .tpl-row--social > .tpl-row__link,
.pub-card--template-01b .tpl-links-grid--t01-ledger .tpl-links-qcell--payment .tpl-rows > .tpl-row--social > .tpl-row__link,
.bc-card.bc-t-template-01b .tpl-links-grid--t01-ledger .tpl-lg-ul-contact > .tpl-row--contact > .tpl-row__link,
.bc-card.bc-t-template-01b .tpl-links-grid--t01-ledger .tpl-lg-ul-contact > .tpl-row--contact > .tpl-row__btn,
.bc-card.bc-t-template-01b .tpl-links-grid--t01-ledger .tpl-lg-ul-social > .tpl-row--social > .tpl-row__link,
.bc-card.bc-t-template-01b .tpl-links-grid--t01-ledger .tpl-lg-ul-delivery > .tpl-row--social > .tpl-row__link,
.bc-card.bc-t-template-01b .tpl-links-grid--t01-ledger .tpl-links-qcell--payment .tpl-rows > .tpl-row--social > .tpl-row__link {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: center !important;
  gap: 0.32rem !important;
  width: 100% !important;
  max-width: 100% !important;
  grid-template-columns: unset !important;
  grid-template-rows: unset !important;
  grid-template-areas: unset !important;
}

.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-row--contact .tpl-ico,
.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-row--social .tpl-ico,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-row--contact .tpl-ico,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-row--social .tpl-ico,
.pub-card--template-01b .tpl-links-grid--t01-ledger .tpl-row--contact .tpl-ico,
.pub-card--template-01b .tpl-links-grid--t01-ledger .tpl-row--social .tpl-ico,
.bc-card.bc-t-template-01b .tpl-links-grid--t01-ledger .tpl-row--contact .tpl-ico,
.bc-card.bc-t-template-01b .tpl-links-grid--t01-ledger .tpl-row--social .tpl-ico {
  grid-column: unset !important;
  grid-row: unset !important;
  grid-area: unset !important;
  justify-self: center !important;
  align-self: center !important;
  margin: 0 auto !important;
  width: var(--tpl-ico-size, 75px) !important;
  height: var(--tpl-ico-size, 75px) !important;
  min-width: var(--tpl-ico-size, 75px) !important;
  max-width: var(--tpl-ico-size, 75px) !important;
  min-height: var(--tpl-ico-size, 75px) !important;
  max-height: var(--tpl-ico-size, 75px) !important;
  flex-shrink: 0 !important;
}

.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-row__lbl,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-row__lbl,
.pub-card--template-01b .tpl-links-grid--t01-ledger .tpl-row__lbl,
.bc-card.bc-t-template-01b .tpl-links-grid--t01-ledger .tpl-row__lbl {
  grid-column: unset !important;
  grid-row: unset !important;
  grid-area: unset !important;
  width: 100% !important;
  max-width: 100% !important;
  font-size: clamp(0.5625rem, 2.6vw, 0.6875rem) !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: break-word !important;
  hyphens: auto;
  text-align: center !important;
  align-self: center !important;
  justify-self: center !important;
}

.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell--contact .tpl-rows + .tpl-sec-title,
.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell--contact .tpl-rows + .tpl-rows,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell--contact .tpl-rows + .tpl-sec-title,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell--contact .tpl-rows + .tpl-rows {
  margin-top: 0.75rem;
}

.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell--span-cols,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell--span-cols {
  grid-column: 1 / -1;
}

.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell--delivery .tpl-sec-title:not(:first-child),
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell--delivery .tpl-sec-title:not(:first-child) {
  margin-top: 1.05rem;
}

.pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell--delivery .tpl-rows + .tpl-sec-title,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell--delivery .tpl-rows + .tpl-sec-title {
  margin-top: 1.05rem;
}

.pub-card--template-01 .tpl-links-col--rest .tpl-sec-title:not(:first-child),
.bc-card.bc-t-template-01 .tpl-links-col--rest .tpl-sec-title:not(:first-child) {
  margin-top: 1.15rem;
}

/* Template 1 — icon + label only (e.g. Phone / Email). Full phone, URL, or address stays in href + aria-label; second line hidden. */
.pub-card--template-01 .tpl-links-grid--t01 .tpl-row--contact > .tpl-row__link,
.pub-card--template-01 .tpl-links-grid--t01 .tpl-row--contact > .tpl-row__btn,
.pub-card--template-01 .tpl-links-grid--t01 .tpl-row--social > .tpl-row__link,
.bc-card.bc-t-template-01 .tpl-links-grid--t01 .tpl-row--contact > .tpl-row__link,
.bc-card.bc-t-template-01 .tpl-links-grid--t01 .tpl-row--contact > .tpl-row__btn,
.bc-card.bc-t-template-01 .tpl-links-grid--t01 .tpl-row--social > .tpl-row__link {
  display: grid;
  grid-template-columns: var(--tpl-ico-size, 75px) minmax(0, 1fr);
  grid-template-rows: auto;
  column-gap: 0.65rem;
  row-gap: 0;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
}

.pub-card--template-01 .tpl-links-grid--t01 .tpl-row--contact .tpl-ico,
.pub-card--template-01 .tpl-links-grid--t01 .tpl-row--social .tpl-ico,
.bc-card.bc-t-template-01 .tpl-links-grid--t01 .tpl-row--contact .tpl-ico,
.bc-card.bc-t-template-01 .tpl-links-grid--t01 .tpl-row--social .tpl-ico {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: center;
}

.pub-card--template-01 .tpl-links-grid--t01 .tpl-row__lbl,
.bc-card.bc-t-template-01 .tpl-links-grid--t01 .tpl-row__lbl {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tpl-muted, #64748b);
}

.pub-card--template-01 .tpl-links-grid--t01 .tpl-row__val,
.pub-card--template-01 .tpl-links-grid--t01 .tpl-row__val--social,
.bc-card.bc-t-template-01 .tpl-links-grid--t01 .tpl-row__val,
.bc-card.bc-t-template-01 .tpl-links-grid--t01 .tpl-row__val--social {
  display: none !important;
}

/* Template 1 — contact list rows: block layout (avoids .tpl-row flex gap shifting link/button) */
.pub-card--template-01 .tpl-links-grid--t01 .tpl-lg-ul-contact > .tpl-row--contact,
.bc-card.bc-t-template-01 .tpl-links-grid--t01 .tpl-lg-ul-contact > .tpl-row--contact {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Template 1 — client icon rows (Coupons, Specials, …): align left edge with Phone / Website rows */
.pub-card--template-01 .tpl-links-grid--t01 .tpl-row--contact:has(.brand-ico-mask) > .tpl-row__link,
.pub-card--template-01 .tpl-links-grid--t01 .tpl-row--contact:has(.brand-ico-mask) > .tpl-row__btn,
.bc-card.bc-t-template-01 .tpl-links-grid--t01 .tpl-row--contact:has(.brand-ico-mask) > .tpl-row__link,
.bc-card.bc-t-template-01 .tpl-links-grid--t01 .tpl-row--contact:has(.brand-ico-mask) > .tpl-row__btn {
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  grid-template-areas: "ico lbl";
}

.pub-card--template-01 .tpl-links-grid--t01 .tpl-row--contact:has(.brand-ico-mask) > .tpl-row__link > .tpl-row__val,
.pub-card--template-01 .tpl-links-grid--t01 .tpl-row--contact:has(.brand-ico-mask) > .tpl-row__btn > .tpl-row__val,
.bc-card.bc-t-template-01 .tpl-links-grid--t01 .tpl-row--contact:has(.brand-ico-mask) > .tpl-row__link > .tpl-row__val,
.bc-card.bc-t-template-01 .tpl-links-grid--t01 .tpl-row--contact:has(.brand-ico-mask) > .tpl-row__btn > .tpl-row__val {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.pub-card--template-01 .tpl-links-grid--t01 .tpl-row--contact:has(.brand-ico-mask) .tpl-ico,
.bc-card.bc-t-template-01 .tpl-links-grid--t01 .tpl-row--contact:has(.brand-ico-mask) .tpl-ico {
  grid-area: ico;
  justify-self: start;
  align-self: center;
  margin: 0;
}

.pub-card--template-01 .tpl-links-grid--t01 .tpl-row--contact:has(.brand-ico-mask) .tpl-row__lbl,
.bc-card.bc-t-template-01 .tpl-links-grid--t01 .tpl-row--contact:has(.brand-ico-mask) .tpl-row__lbl {
  grid-area: lbl;
  align-self: center;
  justify-self: start;
  margin: 0;
  padding: 0;
}

.pub-card--template-01 .tpl-links-grid--t01 .tpl-row--contact:has(.brand-ico-mask) .brand-ico-mask,
.bc-card.bc-t-template-01 .tpl-links-grid--t01 .tpl-row--contact:has(.brand-ico-mask) .brand-ico-mask {
  display: block !important;
  width: var(--tpl-ico-svg, 38px) !important;
  height: var(--tpl-ico-svg, 38px) !important;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
}

.pub-card--template-01 .tpl-links-grid--t01 .tpl-row__text,
.bc-card.bc-t-template-01 .tpl-links-grid--t01 .tpl-row__text {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--tpl-text);
  word-break: normal;
  overflow-wrap: break-word;
}

.pub-card--template-01 .tpl-links-grid--t01 .tpl-lg-h-delivery,
.bc-card.bc-t-template-01 .tpl-links-grid--t01 .tpl-lg-h-delivery {
  margin-top: 0;
}

.pub-card--template-01 .tpl-links-grid--t01.tpl-links-grid--t01-ledger-pro,
.bc-card.bc-t-template-01 .tpl-links-grid--t01.tpl-links-grid--t01-ledger-pro {
  gap: 1.25rem;
}

.pub-card--template-01 .tpl-links-grid--t01-ledger-pro .tpl-links-row--bottom-single:has(.tpl-links-qcell--span-cols)::before,
.bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger-pro .tpl-links-row--bottom-single:has(.tpl-links-qcell--span-cols)::before {
  display: none;
}

.pub-card--template-01 .tpl-gallery-grid,
.bc-card.bc-t-template-01 .tpl-gallery-grid {
  gap: 10px;
  margin-bottom: 0;
}

.pub-card--template-01 .tpl-gallery-grid .tpl-gal-cell,
.bc-card.bc-t-template-01 .tpl-gallery-grid .tpl-gal-cell {
  border-radius: 12px;
}

.pub-card--template-01 .tpl-gallery-grid .tpl-gal-cell img,
.bc-card.bc-t-template-01 .tpl-gallery-grid .tpl-gal-cell img {
  border-radius: 12px;
}

.pub-card--template-01 .tpl-video__frame .bc-video-grid__cell > .corp-embed::after,
.pub-card--template-01 .tpl-video__frame .bc-video-grid__cell > .corp-embed-tiktok::after,
.bc-card.bc-t-template-01 .tpl-video__frame .bc-video-grid__cell > .corp-embed::after,
.bc-card.bc-t-template-01 .tpl-video__frame .bc-video-grid__cell > .corp-embed-tiktok::after {
  width: 60px;
  height: 60px;
  background-size: 24px 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pub-card--template-01 .tpl-cta--primary,
.bc-card.bc-t-template-01 .tpl-cta--primary {
  background: var(--tpl-brand, #632e32);
  background-image: none;
  border-radius: 8px;
  padding: 12px 30px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.pub-card--template-01 .tpl-cta-wrap,
.bc-card.bc-t-template-01 .tpl-cta-wrap {
  padding-bottom: 0.25rem;
}

.pub-card--template-01 .tpl-module,
.bc-card.bc-t-template-01 .tpl-module {
  padding: 0.15rem 0 0;
  font-weight: 400;
}

.pub-card--template-01 .tpl-module__title,
.bc-card.bc-t-template-01 .tpl-module__title {
  margin: 0 0 0.9375rem;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tpl-text);
  opacity: 1;
}

.pub-card--template-01 .tpl-gallery .pub-carousel,
.bc-card.bc-t-template-01 .tpl-gallery .pub-carousel {
  width: 100%;
}

.pub-card--template-01 .tpl-video__host .corp-embed,
.pub-card--template-01 .tpl-video__host .pub-embed,
.pub-card--template-01 .tpl-video__host .bc-embed,
.bc-card.bc-t-template-01 .tpl-video__host .corp-embed,
.bc-card.bc-t-template-01 .tpl-video__host .pub-embed,
.bc-card.bc-t-template-01 .tpl-video__host .bc-embed {
  border-radius: var(--tpl-radius-md);
  overflow: hidden;
}

.pub-card--template-01 .tpl-video__frame,
.bc-card.bc-t-template-01 .tpl-video__frame {
  position: relative;
  width: 100%;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.pub-card--template-01 .tpl-video__frame:has(.bc-video-grid),
.bc-card.bc-t-template-01 .tpl-video__frame:has(.bc-video-grid) {
  aspect-ratio: auto;
}

.pub-card--template-01 .tpl-video__caption,
.bc-card.bc-t-template-01 .tpl-video__caption {
  position: absolute;
  bottom: 0.45rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.55);
  pointer-events: none;
  z-index: 1;
}

.pub-card--template-01 .tpl-video__host iframe,
.bc-card.bc-t-template-01 .tpl-video__host iframe,
.pub-card--template-01 .tpl-video__frame iframe,
.bc-card.bc-t-template-01 .tpl-video__frame iframe {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  position: relative;
  z-index: 2;
}

.pub-card--template-01 .tpl-form__head,
.bc-card.bc-t-template-01 .tpl-form__head {
  margin-bottom: 0.65rem;
}

.pub-card--template-01 .tpl-form__title,
.bc-card.bc-t-template-01 .tpl-form__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pub-card--template-01 .tpl-form__helper,
.bc-card.bc-t-template-01 .tpl-form__helper {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--tpl-muted);
  line-height: 1.45;
}

.pub-card--template-01 .tpl-form__stack,
.bc-card.bc-t-template-01 .tpl-form__stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pub-card--template-01 .tpl-form__field,
.bc-card.bc-t-template-01 .tpl-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.pub-card--template-01 .tpl-form__lbl,
.bc-card.bc-t-template-01 .tpl-form__lbl {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tpl-muted);
}

.pub-card--template-01 .tpl-form__input,
.bc-card.bc-t-template-01 .tpl-form__input {
  height: 40px;
  border-radius: var(--tpl-radius-md);
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: #f8fafc;
}

.pub-card--template-01 .tpl-form__input--tall,
.bc-card.bc-t-template-01 .tpl-form__input--tall {
  height: 72px;
}

.pub-card--template-01 .tpl-form__actions,
.bc-card.bc-t-template-01 .tpl-form__actions {
  display: flex;
  justify-content: flex-end;
}

.pub-card--template-01 .tpl-form__submit,
.bc-card.bc-t-template-01 .tpl-form__submit {
  padding: 0.55rem 1.15rem;
  border: none;
  border-radius: var(--tpl-radius-md);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, var(--tpl-teal, #0099ae), var(--tpl-teal-dark, #007a8b));
  cursor: default;
}

.pub-card--template-01 .tpl-footer,
.bc-card.bc-t-template-01 .tpl-footer {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem 1rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  background: #f1f5f9;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pub-card--template-01 .tpl-footer-brand,
.bc-card.bc-t-template-01 .tpl-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.pub-card--template-01 .tpl-footer-brand__inner,
.bc-card.bc-t-template-01 .tpl-footer-brand__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  box-sizing: border-box;
}

.pub-card--template-01 .tpl-footer-brand__tagline,
.bc-card.bc-t-template-01 .tpl-footer-brand__tagline {
  margin: 0 0 0.35rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475569;
  text-align: center;
}

.pub-card--template-01 .tpl-footer-brand__mark,
.bc-card.bc-t-template-01 .tpl-footer-brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.pub-card--template-01 .tpl-footer__logo,
.bc-card.bc-t-template-01 .tpl-footer__logo {
  height: 28px;
  width: auto;
  max-width: 140px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 380px) {
  .pub-card--template-01 .tpl-links-grid,
  .bc-card.bc-t-template-01 .tpl-links-grid {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding-top: 0.4rem;
  }

  .pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-row:not(.tpl-links-row--stacked),
  .bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-row:not(.tpl-links-row--stacked),
  .pub-card--template-01 .tpl-links-grid--t01-family .tpl-links-row:not(.tpl-links-row--stacked),
  .bc-card.bc-t-template-01 .tpl-links-grid--t01-family .tpl-links-row:not(.tpl-links-row--stacked) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.5rem 0.65rem;
  }

  .pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-row--stacked,
  .bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-row--stacked {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-lg-ul-contact,
  .pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-lg-ul-social,
  .bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-lg-ul-contact,
  .bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-row--stacked .tpl-lg-ul-social,
  .pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell--span-cols .tpl-lg-ul-delivery,
  .bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell--span-cols .tpl-lg-ul-delivery,
  .pub-card--template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell--payment.tpl-links-qcell--span-cols .tpl-rows,
  .bc-card.bc-t-template-01 .tpl-links-grid--t01-ledger .tpl-links-qcell--payment.tpl-links-qcell--span-cols .tpl-rows {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .pub-card--template-01 .tpl-links-grid--t01,
  .bc-card.bc-t-template-01 .tpl-links-grid--t01 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-top: 0;
  }

  .pub-card--template-01 .tpl-links-grid--t01 .tpl-links-divider,
  .bc-card.bc-t-template-01 .tpl-links-grid--t01 .tpl-links-divider {
    display: none;
  }

  .pub-card--template-01 .tpl-links-grid::after,
  .bc-card.bc-t-template-01 .tpl-links-grid::after {
    display: none;
  }

  .pub-card--template-01 .tpl-lg-h-contact,
  .pub-card--template-01 .tpl-lg-h-social,
  .pub-card--template-01 .tpl-lg-ul-contact,
  .pub-card--template-01 .tpl-lg-ul-social,
  .bc-card.bc-t-template-01 .tpl-lg-h-contact,
  .bc-card.bc-t-template-01 .tpl-lg-h-social,
  .bc-card.bc-t-template-01 .tpl-lg-ul-contact,
  .bc-card.bc-t-template-01 .tpl-lg-ul-social {
    padding-left: 0;
    padding-right: 0;
  }

  .pub-card--template-01 .tpl-lg-h-social,
  .bc-card.bc-t-template-01 .tpl-lg-h-social {
    margin-top: 0.35rem;
  }
}

