/* The card: shared by the public card page and the editor's live preview. Tokens only. */
/* The card */
.tc-card { width: 100%; max-width: 420px; }
.tc-card__reveal { display: block; }
/* The card's surface, corners, edge and shadow come from the theme (Design Studio → Card). Every setting has the original
   look as its fallback, so a theme that sets nothing gives the card as it has always been. */
.tc-card__body { position: relative; background: var(--tc-card-texture, none), var(--tc-card-fill, var(--tc-color-surface)); background-blend-mode: var(--tc-card-blend, normal); border-radius: var(--tc-card-radius, var(--tc-radius-lg));
    padding: var(--tc-card-pad-top, 32px) var(--tc-card-pad-x, 20px) var(--tc-card-pad-bottom, 24px); text-align: var(--tc-card-align, center);
    border: var(--tc-card-border-width, 1px) solid var(--tc-card-border, var(--tc-surface-border)); box-shadow: var(--tc-card-shadow, var(--tc-shadow-lg));
    -webkit-backdrop-filter: var(--tc-card-blur, none); backdrop-filter: var(--tc-card-blur, none); }
/* Accents: a stripe of the brand colours along the top (::after), or a gradient edge all the way round (::before, drawn
   as a filled box with its middle masked out, so it follows the corners and works on a see-through card). */
.tc-card__body::before, .tc-card__body::after { content: ""; position: absolute; inset: calc(-1 * var(--tc-card-border-width, 1px)); border-radius: inherit; pointer-events: none; }
.tc-card__body::after { background: var(--tc-accent, none) top / 100% var(--tc-accent-bar, 0px) no-repeat; }
.tc-card__body::before { padding: var(--tc-frame-width, 0px); background: var(--tc-frame, none);
    -webkit-mask: linear-gradient(black 0 0) content-box, linear-gradient(black 0 0); -webkit-mask-composite: xor; mask: linear-gradient(black 0 0) content-box exclude, linear-gradient(black 0 0); }
/* A browser that can't mask the middle out would paint the whole card over: there, no edge at all. */
@supports not ((mask-composite: exclude) or (-webkit-mask-composite: xor)) { .tc-card__body::before { display: none; } }
.tc-card__name { font-size: var(--tc-name-size, 30px); line-height: 1.15; margin: var(--tc-name-top, 18px) var(--tc-card-inline, auto) 6px; width: var(--tc-name-width, auto); max-width: 100%;
    font-weight: var(--tc-name-weight, 650); letter-spacing: var(--tc-name-spacing, -0.025em); text-transform: var(--tc-name-case, none); overflow-wrap: anywhere;
    color: var(--tc-name-color, var(--tc-color-heading, var(--tc-color-text))); background: var(--tc-name-fill, none); -webkit-background-clip: text; background-clip: text;
    font-variant-caps: var(--tc-name-variant, normal); -webkit-text-stroke: var(--tc-name-stroke, 0); text-shadow: var(--tc-name-shadow, none);
    text-decoration: var(--tc-name-line, none); text-underline-offset: var(--tc-name-line-offset, auto); text-decoration-skip-ink: auto; }
/* First name and surname (Design Studio → Name): two-tone, a highlighter behind each line, or a line each. */
.tc-card__name > span { display: var(--tc-name-display, inline); background: var(--tc-name-mark, none);
    -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.tc-card__first { font-weight: var(--tc-name-first-weight, inherit); }
.tc-card__last { color: var(--tc-name-last-color, inherit); }
/* See-through, outlined or decorated names: where the system replaces colours (high contrast mode), use plain text. */
@media (forced-colors: active) {
    .tc-card__name, .tc-card__name > span { background: none; color: CanvasText; -webkit-text-stroke: 0; text-shadow: none; }
}
.tc-card__meta { color: var(--tc-color-text-muted); margin: 0 0 16px; }
/* Tiles: people choose their order, so spacing comes from the column gap, never from a particular neighbour. */
.tc-card__body { display: flex; flex-direction: column; gap: var(--tc-card-gap, 20px); }
/* "Tiles" card style: each part is its own small card. The ring around it is a shadow, so the part's own spacing is untouched. */
.tc-tile { margin: 0; min-width: 0; background: var(--tc-tile-bg, transparent); border-radius: var(--tc-tile-radius, 0); box-shadow: var(--tc-tile-shadow, none); }
.tc-card-section { border-top: var(--tc-section-divider, var(--tc-divider, 1px solid var(--tc-color-border))); padding-top: var(--tc-divider-pad, 16px); }
.tc-card__footer { margin-top: 20px; padding: var(--tc-footer-pad, var(--tc-foot-pad, 0)); border-radius: var(--tc-radius-md); background: var(--tc-footer-bg, var(--tc-foot-plate, transparent));
    color: var(--tc-footer-text, var(--tc-color-text-muted)); text-align: center; font-size: 13px; }
.tc-card__footer p { margin: 0; }
.tc-card__footer p + p { margin-top: 4px; }
.tc-card__powered { color: inherit; }
.tc-card__powered a { color: inherit; }

/* ---------- The card ---------- */
.tc-card__avatar { display: var(--tc-avatar-display, flex); justify-content: var(--tc-card-justify, center); }
/* Layouts (Design Studio → Card → Layout) rearrange the top of the card with settings only: the photo's size, whether it
   shows, and (for "side by side") a grid of photo, name and role. With none set it is the classic card. Grid places are
   set only by a layout that uses them, so the classic card never meets a named area. */
.tc-tile--header { display: var(--tc-hero-display, block); grid-template-columns: var(--tc-hero-cols, none); grid-template-areas: var(--tc-hero-areas, none); column-gap: 16px; }
.tc-tile--header > .tc-card__band { grid-area: var(--tc-area-band, auto); }
.tc-tile--header > .tc-card__avatar { grid-area: var(--tc-area-photo, auto); align-self: center; }
.tc-tile--header > .tc-card__name { grid-area: var(--tc-area-name, auto); align-self: var(--tc-hero-name-align, auto); }
.tc-tile--header > .tc-card__role { grid-area: var(--tc-area-role, auto); align-self: var(--tc-hero-role-align, auto); }
.tc-card__photo { width: var(--tc-photo-wrap, auto); }
.tc-card__photo .tc-avatar--xl { width: var(--tc-photo-w, 128px); height: var(--tc-photo-h, var(--tc-photo-w, 128px)); font-size: var(--tc-photo-font, 44px); }
/* Header band behind the photo (Design Studio → Header): a shade, a picture (the person's banner, or the theme's) and a fill. */
.tc-card__band { display: var(--tc-header-display, none); position: relative; overflow: hidden; height: var(--tc-header-height, 130px);
    margin: calc(-1 * var(--tc-band-lift, 0px)) calc(-1 * var(--tc-card-pad-x, 20px)) 0; border-radius: var(--tc-band-radius, var(--tc-radius-md));
    animation: var(--tc-header-anim, none);
    background: var(--tc-header-shade, none), var(--tc-header-pattern, none), var(--tc-card-banner, var(--tc-header-image, none)) center var(--tc-header-focus, 50%) / cover no-repeat, var(--tc-header-fill, var(--tc-hero-fill, none)); }
/* A person's own banner picture replaces the theme's dots or waves rather than sitting under them. */
.tc-card__band[style*="--tc-card-banner"] { --tc-header-pattern: none; }
/* At the top of the card the band runs right to the card's top edge. (A banner tile with no picture renders nothing and
   takes no space, so the header after it is still at the top.) */
.tc-tile--header:first-child .tc-card__band, .tc-tile:empty + .tc-tile--header .tc-card__band { margin-top: calc(-1 * var(--tc-card-pad-top, 32px)); border-radius: var(--tc-band-radius, var(--tc-card-top-radius, var(--tc-radius-lg) var(--tc-radius-lg) 0 0)); }
/* A ready-made header pattern: a layer of the second colour, cut to the pattern's shape. A person's own banner replaces it. */
.tc-card__band::before { content: ""; display: var(--tc-header-mask-display, none); position: absolute; inset: 0; background: var(--tc-header-ink, transparent);
    -webkit-mask: var(--tc-header-mask, none); mask: var(--tc-header-mask, none); }
.tc-card__band[style*="--tc-card-banner"]::before { display: none; }
/* Motion → Header: "sheen" is a soft light that crosses the band now and then. */
.tc-card__band::after { content: ""; display: var(--tc-header-sheen-display, none); position: absolute; inset: 0; transform: translateX(-120%);
    background: linear-gradient(110deg, transparent 36%, rgba(255, 255, 255, .32) 50%, transparent 64%); animation: var(--tc-header-sheen, none); }
/* The photo sits half over the band (the band's display follows the theme, so this only moves the photo when it shows). */
.tc-card__band + .tc-card__avatar { margin-top: calc(-64px * var(--tc-header-overlap, 0)); position: relative; }
/* The photo's shape, filter and border come from the theme (Design Studio → Photo): CSS settings only, no script. */
.tc-card__photo { position: relative; isolation: isolate; padding: calc(var(--tc-photo-ring-width, 0px) + var(--tc-photo-gap, 0px)); border-radius: var(--tc-photo-radius, 30%); background: var(--tc-photo-ring, none);
    overflow: var(--tc-photo-clip, visible); }
/* Motion → Photo. Float moves the photo gently; pulse sends a soft ring outwards; spin turns a ring of the brand colours
   (a bigger layer behind the photo that rotates, cut to the photo's shape). An award ring keeps its own shine instead. */
.tc-card__photo:not(.tc-card__photo--award) { animation: var(--tc-photo-anim, none); }
.tc-card__photo:not(.tc-card__photo--award)::before { content: ""; position: absolute; inset: var(--tc-photo-spin-inset, 0); z-index: -1; pointer-events: none; background: var(--tc-photo-spin-ring, none); animation: var(--tc-photo-spin, none); }
.tc-card__photo:not(.tc-card__photo--award)::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
    box-shadow: 0 0 0 3px var(--tc-color-primary); animation: var(--tc-photo-pulse, none); }
.tc-card__photo--award { overflow: visible; }
.tc-card__photo--award .tc-avatar { box-shadow: 0 0 0 3px var(--tc-color-surface), var(--tc-shadow-md); }
/* The photo's own edge in the card's colour. With a ring it is the thin gap between photo and ring (the ring is the
   frame's padding beyond it); without one it is what lifts the photo off a header band. */
.tc-card__photo .tc-avatar { border-radius: var(--tc-photo-radius, 30%); box-shadow: 0 0 0 var(--tc-photo-gap, 4px) var(--tc-color-surface), var(--tc-shadow-md); }
.tc-card__photo img.tc-avatar { filter: var(--tc-photo-filter, none); }
/* Award border: a metal ring with a slow shine, and the label under the photo. */
.tc-card__photo--award { padding: 8px; background: linear-gradient(120deg, var(--award-deep) 0%, var(--award-light) 35%, var(--award-deep) 50%, var(--award-light) 65%, var(--award-deep) 100%);
    background-size: 300% 100%; animation: tc-award-shine 6s linear infinite; }
.tc-award--gold { --award-light: var(--tc-award-gold-light); --award-deep: var(--tc-award-gold-deep); }
.tc-award--silver { --award-light: var(--tc-award-silver-light); --award-deep: var(--tc-award-silver-deep); }
.tc-award--bronze { --award-light: var(--tc-award-bronze-light); --award-deep: var(--tc-award-bronze-deep); }
.tc-card__award { position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); max-width: 90vw; padding: 3px 10px; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 700; line-height: 1.4; color: var(--tc-award-text); border-radius: 999px;
    background: var(--award-light); box-shadow: 0 4px 10px -4px color-mix(in srgb, var(--award-deep) 70%, transparent); }
@keyframes tc-award-shine { from { background-position: 0% 50%; } to { background-position: 300% 50%; } }
/* People who've asked their phone for less movement see a still ring. */
@media (prefers-reduced-motion: reduce) { .tc-card__photo--award { animation: none; } }
.tc-card__role { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.tc-card__job { color: var(--tc-color-text); font-size: 17px; font-weight: 500; }
.tc-card__company { color: var(--tc-color-text-muted); font-size: 15px; }
.tc-card__summary { margin: var(--tc-card-summary-margin, 0 auto); max-width: 36ch; }
.tc-card__actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; margin: 0; }
/* Button colours, shape and shadow come from the theme (Design Studio → Buttons). The text colours are worked out with
   the backgrounds, so they always read (WCAG AA); the fallbacks below are the original look. */
.tc-card-action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: calc(64px * var(--tc-btn-scale, 1));
    border-radius: var(--tc-btn-radius, var(--tc-radius-md)); background: var(--tc-btn2-bg, color-mix(in srgb, var(--tc-color-primary) 12%, var(--tc-color-surface)));
    color: var(--tc-btn2-text, var(--tc-color-primary-text)); box-shadow: inset 0 0 0 1.5px var(--tc-btn2-border, transparent), var(--tc-btn-shadow, 0 0 transparent);
    text-decoration: none; font-weight: 650; font-size: var(--tc-btn-font, 15px);
    transition: transform var(--tc-motion-fast) var(--tc-ease), filter var(--tc-motion-fast) var(--tc-ease); }
/* The first action (usually Call) is the solid brand colour; the rest are a soft tint of it. */
.tc-card-action:first-child { background: var(--tc-btn1-bg, var(--tc-color-primary)); color: var(--tc-btn1-text, var(--tc-color-on-primary));
    box-shadow: inset 0 0 0 1.5px var(--tc-btn1-border, transparent), var(--tc-btn-shadow, 0 0 transparent); }
.tc-card-action:hover { filter: brightness(1.06); }
.tc-card-action:active { transform: var(--tc-tap, scale(.96)); }
.tc-card__rows { list-style: none; padding: 0; margin: 0; text-align: left; }
.tc-card__rows li + li { border-top: var(--tc-divider, 1px solid var(--tc-color-border)); }
.tc-card__rows a { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 12px; min-height: 52px; padding: 6px 4px;
    color: var(--tc-color-text); text-decoration: none; }
.tc-card__rows a .tc-icon { color: var(--tc-color-primary-text); }
.tc-card__rows small { color: var(--tc-color-text-muted); font-size: 13px; }
.tc-card__rows span { overflow-wrap: break-word; min-width: 0; }
.tc-card__address { white-space: pre-line; }
.tc-card__action-bar:empty { display: none; }
.tc-card__action-bar { position: sticky; bottom: 0; z-index: 2; padding: 22px 0 calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 10px; background: linear-gradient(transparent, var(--tc-color-background) 26%); } /* whatever scrolls behind fades out, so nothing shows through the small link */

/* Staggered reveal (instant under reduce-motion, because the durations become 0ms) */
/* Which entrance, how long and how far apart the parts follow each other come from the theme (Design Studio → Motion);
   the fallbacks are the original gentle rise. */
.tc-card__reveal.tc-anim--card-reveal { animation-name: var(--tc-enter-wrap, tc-rise); }
/* A phone on its side has no room for a bar that stays on screen. */
@media (max-height: 500px) { .tc-card__action-bar { position: static; padding-top: 10px; background: none; } }
.tc-anim--card-reveal .tc-card__body > * { animation: var(--tc-enter, tc-rise) var(--tc-enter-time, var(--tc-motion-slow)) var(--tc-enter-ease, var(--tc-ease)) both; }
.tc-anim--card-reveal .tc-card__body > *:nth-child(2) { animation-delay: var(--tc-enter-step, calc(var(--tc-motion-fast) * .3)); }
.tc-anim--card-reveal .tc-card__body > *:nth-child(3) { animation-delay: calc(var(--tc-enter-step, calc(var(--tc-motion-fast) * .3)) * 2); }
.tc-anim--card-reveal .tc-card__body > *:nth-child(4) { animation-delay: calc(var(--tc-enter-step, calc(var(--tc-motion-fast) * .3)) * 3); }
.tc-anim--card-reveal .tc-card__body > *:nth-child(5) { animation-delay: calc(var(--tc-enter-step, calc(var(--tc-motion-fast) * .3)) * 4); }
.tc-anim--card-reveal .tc-card__body > *:nth-child(n+6) { animation-delay: calc(var(--tc-enter-step, calc(var(--tc-motion-fast) * .3)) * 5); }
@keyframes tc-enter-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tc-enter-late { 0%, 75% { opacity: 0; } 100% { opacity: 1; } }
@keyframes tc-enter-pop { 0% { transform: scale(.8); opacity: 0; } 60% { transform: scale(1.04); opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes tc-enter-slide { from { transform: translateX(-36px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tc-enter-drop { 0% { transform: translateY(-48px); opacity: 0; } 60% { transform: translateY(6px); opacity: 1; } 80% { transform: translateY(-3px); } 100% { transform: none; opacity: 1; } }
@keyframes tc-enter-flip { from { transform: perspective(700px) rotateX(-78deg); transform-origin: 50% 0; opacity: 0; } to { transform: perspective(700px) rotateX(0deg); transform-origin: 50% 0; opacity: 1; } }
@keyframes tc-enter-zoom { from { transform: scale(1.2); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tc-anim--card-reveal .tc-card__body > * { animation: none; } }

/* Editor preview: the card inside a phone-shaped frame */
.tc-phone-frame { width: 100%; max-width: 390px; margin: 0 auto; padding: 16px 12px 20px; border-radius: 32px; border: 8px solid var(--tc-color-text);
    background: var(--tc-backdrop, none), var(--tc-backdrop-base, radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--tc-color-primary) 16%, var(--tc-color-background)) 0%, var(--tc-color-background) 60%));
    font-family: var(--tc-font-body); line-height: 1.5; color: var(--tc-color-text); max-height: calc(100vh - 160px); overflow-y: auto; }
.tc-phone-frame h1 { font-family: var(--tc-font-heading); }

/* "Edit card": shown only to the card's owner or a managing admin */
.tc-card-edit { position: fixed; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; min-height: 44px;
    border-radius: var(--tc-radius-pill); background: var(--tc-color-surface); color: var(--tc-color-text); text-decoration: none; font-weight: 600; font-size: 14px;
    border: 1px solid var(--tc-color-border); box-shadow: 0 6px 20px color-mix(in srgb, var(--tc-color-primary) 16%, transparent); }
.tc-card-edit:hover { border-color: var(--tc-color-primary-text); }
/* On a phone just the pencil, so it doesn't cover the logo above the card. */
@media (max-width: 480px) { .tc-card-edit { padding: 0; width: 44px; justify-content: center; } .tc-card-edit__label { display: none; } }

/* Picture tiles (Images module). A tile whose picture isn't set renders nothing and takes no space. */
.tc-tile:empty { display: none; }
.tc-card__banner, .tc-card__footer-image { display: block; width: 100%; height: auto; border-radius: var(--tc-radius-md); }
.tc-card__banner { aspect-ratio: var(--tc-banner-ratio, 5 / 2); object-fit: cover; }
/* Banner at the very top: runs to the card's edges, and the photo overlaps its lower edge. */
.tc-card__body > .tc-tile--banner:first-child { margin: calc(-1 * var(--tc-card-pad-top, 32px)) calc(-1 * var(--tc-card-pad-x, 20px)) 0; }
.tc-card__body > .tc-tile--banner:first-child .tc-card__banner { border-radius: var(--tc-band-radius, var(--tc-card-top-radius, var(--tc-radius-lg) var(--tc-radius-lg) 0 0)); }
.tc-tile--banner:not(:empty) + .tc-tile--header { position: relative; margin-top: var(--tc-banner-overlap, -84px); }

/* The brand's logo above the card (the company's own when it has one). */
.tc-card-logo { display: flex; justify-content: var(--tc-card-logo-justify, center); margin: 0 auto 16px; --tc-logo-height: var(--tc-card-logo-height, 30px); }

/* QR tile (QrCodes module) */
.tc-card__qr { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0; }
.tc-card__qr img { width: 168px; height: 168px; border-radius: var(--tc-radius-md); box-shadow: 0 0 0 1px var(--tc-color-border); } /* the code has its own white margin */
/* The preview's stand-in for a QR code: a checked square with the three corner marks, drawn in CSS. */
.tc-card__qr-sample { width: 168px; height: 168px; border-radius: var(--tc-radius-md); box-shadow: 0 0 0 1px var(--tc-color-border); background-color: white;
    background-image: radial-gradient(circle at 26px 26px, black 0 7px, white 7px 13px, black 13px 19px, transparent 19px),
        radial-gradient(circle at 142px 26px, black 0 7px, white 7px 13px, black 13px 19px, transparent 19px),
        radial-gradient(circle at 26px 142px, black 0 7px, white 7px 13px, black 13px 19px, transparent 19px),
        conic-gradient(black 25%, transparent 0 50%, black 0 75%, transparent 0);
    background-size: auto, auto, auto, 14px 14px; background-position: 0 0, 0 0, 0 0, 7px 7px; }
.tc-card__qr figcaption { font-size: 13px; color: var(--tc-color-text-muted); }

/* Map tile (Maps module): a picture drawn by this site; tap for directions. */
.tc-card__map { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.tc-card__map-link { position: relative; display: block; border-radius: var(--tc-radius-md); overflow: hidden;
    box-shadow: 0 0 0 1px var(--tc-color-border); }
.tc-card__map img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.tc-card__map-cta { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
    border-radius: var(--tc-radius-pill); background: var(--tc-color-surface); color: var(--tc-color-text); font-size: 14px; font-weight: 600;
    box-shadow: var(--tc-shadow-md); }
.tc-card__map-link:active .tc-card__map-cta { transform: scale(0.97); }
.tc-card__map figcaption { font-size: 11px; color: var(--tc-color-text-muted); text-align: right; }
.tc-card__map figcaption a { color: inherit; }

/* Group companies, partners or sponsors (Group companies module): a calm strip of logos at the bottom of the card. */
.tc-companies__heading { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--tc-color-text-muted); }
.tc-companies__strip { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 20px; }
.tc-companies__strip a { display: inline-flex; border-radius: var(--tc-radius-sm); }
.tc-companies__strip a:focus-visible { outline: 2px solid var(--tc-color-primary-text); outline-offset: 3px; }
.tc-companies__strip img { display: block; height: 28px; width: auto; max-width: 120px; object-fit: contain; }
.tc-companies__name { font-weight: 600; font-size: 14px; color: var(--tc-color-text); }

/* Map pin on top of the map picture (Design Studio → Map). The pin's point is the picture's centre: the location. */
.tc-card__map--tall img { aspect-ratio: 3 / 2; }
.tc-map-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); color: var(--pin, var(--tc-color-primary));
    line-height: 0; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); }
.tc-map-pin .tc-icon { stroke: var(--tc-color-surface); stroke-width: 1px; paint-order: stroke; }
.tc-map-pin .tc-icon path[fill="none"] { stroke: none; } /* the icon's invisible frame must not get an outline */
.tc-map-pin--star { transform: translate(-50%, -50%); }
.tc-map-pin--flag { transform: translate(-20%, -92%); }
.tc-map-pin--logo { transform: translate(-50%, -100%); }
.tc-map-pin__badge { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 8px; border-radius: 50%; overflow: hidden;
    background: var(--tc-color-surface); box-shadow: 0 0 0 3px var(--pin, var(--tc-color-primary)); font-weight: 700; font-size: 18px; line-height: 1;
    color: var(--tc-color-text); position: relative; }
.tc-map-pin--logo::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 10px; height: 10px; transform: translate(-50%, -2px) rotate(45deg);
    background: var(--pin, var(--tc-color-primary)); z-index: -1; }
.tc-map-pin__badge img { width: 100%; height: 100%; object-fit: cover; }
.tc-map-pin__pulse { position: absolute; left: 50%; bottom: 0; width: 18px; height: 18px; margin-left: -9px; margin-bottom: -9px; border-radius: 50%;
    background: color-mix(in srgb, var(--pin, var(--tc-color-primary)) 45%, transparent); animation: tc-pin-pulse 1.8s ease-out infinite; }
@keyframes tc-pin-pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tc-map-pin__pulse { animation: none; opacity: .6; } }

/* Link buttons ("Book a meeting"…): styled by Design Studio → Buttons, or a button's own colour (with its readable text). */
.tc-card__links { display: grid; gap: 10px; margin: 0; }
.tc-link-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: calc(52px * var(--tc-btn-scale, 1)); padding: 10px 16px; text-decoration: none;
    font-weight: 650; font-size: var(--tc-btn-font, 15px); border-radius: var(--tc-btn-radius, var(--tc-radius-md));
    background: var(--lb-bg, var(--tc-btn2-bg, color-mix(in srgb, var(--tc-color-primary) 12%, var(--tc-color-surface))));
    color: var(--lb-text, var(--tc-btn2-text, var(--tc-color-primary-text)));
    box-shadow: inset 0 0 0 1.5px var(--tc-btn2-border, transparent), var(--tc-btn-shadow, 0 0 transparent);
    transition: transform var(--tc-motion-fast) var(--tc-ease), filter var(--tc-motion-fast) var(--tc-ease); }
.tc-link-btn:hover { filter: brightness(.97); }
.tc-link-btn:active { transform: var(--tc-tap, scale(.98)); }
.tc-link-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--tc-color-primary-text) 70%, transparent); outline-offset: 2px; }

/* Save contact (Features.SaveContact): the card's main action, always within reach at the bottom of the screen.
   No backing panel behind the bar: the button carries its own colour, so it stays readable, and the page (its backdrop
   and all) shows through cleanly instead of a solid shelf appearing under short cards. */
.tc-save { position: relative; flex: 1; display: grid; gap: 6px; justify-items: center; }
.tc-save__button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: calc(54px * var(--tc-btn-scale, 1)); padding: 10px 16px;
    text-decoration: none; font-weight: 650; font-size: var(--tc-btn-font-lg, 16px); border-radius: var(--tc-btn-radius, var(--tc-radius-md));
    background: var(--tc-btn1-bg, var(--tc-color-primary)); color: var(--tc-btn1-text, var(--tc-color-on-primary));
    box-shadow: inset 0 0 0 1.5px var(--tc-btn1-border, transparent), var(--tc-btn-shadow, 0 0 transparent);
    transition: transform var(--tc-motion-fast) var(--tc-ease), filter var(--tc-motion-fast) var(--tc-ease); }
.tc-save__button:hover { filter: brightness(1.06); }
.tc-save__button:active { transform: var(--tc-tap, scale(.98)); }
.tc-save__button:focus-visible, .tc-save__file:focus-visible { outline: 2px solid var(--tc-color-primary-text); outline-offset: 2px; }
.tc-save__file { font-size: 13px; color: var(--tc-color-text-muted); text-underline-offset: 3px; padding: 6px 10px; }
.tc-save__hint { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); display: grid; gap: 12px; padding: 16px; text-align: left;
    background: var(--tc-color-surface); color: var(--tc-color-text); border: 1px solid var(--tc-color-border); border-radius: var(--tc-radius-lg);
    box-shadow: 0 12px 32px color-mix(in srgb, var(--tc-color-text) 18%, transparent); }
.tc-save__hint[hidden] { display: none; }
.tc-save__hint p { margin: 0; font-size: 15px; line-height: 1.45; }
.tc-save__hint strong { display: block; margin-bottom: 2px; }
.tc-save__hint em { font-style: normal; font-weight: 650; }

/* Social links (Features.SocialLinks): a row of round icons. */
.tc-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tc-social__link { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--tc-color-primary-text);
    background: color-mix(in srgb, var(--tc-color-primary) 12%, var(--tc-color-surface));
    transition: transform var(--tc-motion-fast) var(--tc-ease), background var(--tc-motion-fast) var(--tc-ease); }
.tc-social__link:hover { background: color-mix(in srgb, var(--tc-color-primary) 22%, var(--tc-color-surface)); }
.tc-social__link:active { transform: scale(.94); }
.tc-social__link:focus-visible { outline: 2px solid var(--tc-color-primary-text); outline-offset: 2px; }

/* The privacy line under every card (POPIA). */
.tc-card__privacy { width: fit-content; margin: 14px auto 0; padding: var(--tc-foot-pad, 0); border-radius: 999px; background: var(--tc-foot-plate, transparent);
    text-align: center; font-size: 12px; color: var(--tc-color-text-muted); }
.tc-card__privacy a { color: inherit; text-underline-offset: 3px; }

/* Button shapes from the theme (Design Studio → Buttons): "cut" slices two corners off, and keeps the focus ring inside. */
.tc-card-action, .tc-link-btn, .tc-save__button { clip-path: var(--tc-btn-clip, none); }
.tc-card-action:focus-visible, .tc-link-btn:focus-visible, .tc-save__button:focus-visible { outline: 2px solid var(--tc-color-primary-text); outline-offset: var(--tc-btn-focus-offset, 2px); }

/* Group companies: tiles and list styles (the default is the logo strip above). */
.tc-companies__label { font-weight: 600; font-size: 13.5px; color: var(--tc-color-text); overflow-wrap: anywhere; }
.tc-companies--strip .tc-companies__label { display: none; }
.tc-companies--tiles .tc-companies__strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.tc-companies--tiles .tc-companies__strip li > a, .tc-companies--tiles .tc-companies__strip li > span { display: grid; justify-items: center; align-content: center; gap: 8px;
    min-height: 88px; padding: 12px 10px; text-align: center; text-decoration: none; border-radius: var(--tc-radius-md); border: 1px solid var(--tc-color-border);
    background: color-mix(in srgb, var(--tc-color-text) 3%, var(--tc-color-surface)); }
.tc-companies--list .tc-companies__strip { display: grid; gap: 0; justify-content: stretch; }
.tc-companies--list .tc-companies__strip li + li { border-top: 1px solid var(--tc-color-border); }
.tc-companies--list .tc-companies__strip li > a, .tc-companies--list .tc-companies__strip li > span { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 12px;
    min-height: 52px; padding: 8px 4px; text-align: left; text-decoration: none; }
.tc-companies--list .tc-companies__strip img { max-width: 96px; justify-self: start; }

/* ---------- Design Studio: button finishes and movement ----------
   One effects layer per button, UNDER its text (z-index -1 inside the button): the finish (gloss, stripes, dots) and the
   passing shine. A finish only ever pushes the button's colour away from its text colour, so text stays as readable as
   the readability check measured. (::after is left free: the tap heatmap draws its badges there.) */
.tc-card-action, .tc-link-btn, .tc-save__button { position: relative; isolation: isolate; }
.tc-card-action::before, .tc-link-btn::before, .tc-save__button::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background: var(--tc-btn-shine, none) 220% 0 / 250% 100% no-repeat, var(--tc-btn2-texture, none); }
.tc-card-action:first-child::before, .tc-save__button::before { background: var(--tc-btn-shine, none) 220% 0 / 250% 100% no-repeat, var(--tc-btn1-texture, none); }
/* A link button with its own colour keeps that colour clean. */
.tc-link-btn[style*="--lb-bg"]::before { background: none; }
/* Movement is for the main buttons only (Save contact, and the first of Call and Email): one thing asking to be tapped. */
.tc-card-action:first-child, .tc-save__button { animation: var(--tc-btn-idle, none); }
.tc-card-action:first-child::before, .tc-save__button::before { animation: var(--tc-btn-fx, none); }
.tc-card-action:first-child .tc-icon, .tc-save__button .tc-icon { animation: var(--tc-btn-icon-idle, none); }
/* A press always shows: the waiting animation steps aside while the button is held. */
.tc-card-action:first-child:active, .tc-save__button:active { animation: none; }
@keyframes tc-btn-shine { 0% { background-position: 220% 0, 0 0; } 38%, 100% { background-position: -120% 0, 0 0; } }
@keyframes tc-btn-pulse { 0%, 100% { transform: none; } 50% { transform: scale(1.035); } }
@keyframes tc-btn-float { 0%, 100% { transform: none; } 50% { transform: translateY(-4px); } }
@keyframes tc-btn-wiggle { 0%, 68%, 100% { transform: none; } 74% { transform: rotate(-16deg); } 80% { transform: rotate(13deg); } 86% { transform: rotate(-9deg); } 92% { transform: rotate(6deg); } }
@keyframes tc-photo-float { 0%, 100% { transform: none; } 50% { transform: translateY(-5px); } }
@keyframes tc-photo-pulse { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(1.2); opacity: 0; } }
@keyframes tc-photo-spin { to { transform: rotate(360deg); } }
@keyframes tc-header-pan { to { background-position: 0 0, var(--tc-header-pan, 0 0), center var(--tc-header-focus, 50%), 0 0; } }
@keyframes tc-header-flow { from { background-position: 0 0, 0 0, center var(--tc-header-focus, 50%), 0% 50%; } to { background-position: 0 0, 0 0, center var(--tc-header-focus, 50%), 100% 50%; } }
@keyframes tc-header-sheen { 0% { transform: translateX(-120%); } 42%, 100% { transform: translateX(120%); } }
@keyframes tc-backdrop-drift { from { transform: translate3d(-3%, -2%, 0) rotate(-2deg) scale(1.02); } to { transform: translate3d(3%, 2%, 0) rotate(3deg) scale(1.08); } }
/* People who've asked their phone for less movement get a card that stands still: nothing waits, drifts or shines. */
@media (prefers-reduced-motion: reduce) {
    .tc-card-action, .tc-card-action::before, .tc-card-action .tc-icon, .tc-save__button, .tc-save__button::before, .tc-save__button .tc-icon,
    .tc-card__photo, .tc-card__photo::before, .tc-card__photo::after, .tc-card__band, .tc-card__band::after, .tc-card__reveal { animation: none !important; }
}

/* ---------- Finish: small things that make every look feel made with care ---------- */
/* The name never leaves one short word alone on a line; the text under it wraps tidily. */
.tc-card__name { text-wrap: balance; }
.tc-card__summary { text-wrap: pretty; color: color-mix(in srgb, var(--tc-color-text) 86%, var(--tc-color-surface)); line-height: 1.55; }
.tc-card__job { letter-spacing: -0.005em; }
.tc-card__company { letter-spacing: .01em; }
/* Initials sit on a soft wash of the two brand colours instead of a flat tint. */
.tc-card__photo .tc-avatar--initials { letter-spacing: -0.02em;
    background: linear-gradient(145deg, color-mix(in srgb, var(--tc-color-primary) 24%, var(--tc-color-surface)), color-mix(in srgb, var(--tc-color-secondary) 12%, var(--tc-color-surface))); }
/* Contact rows: each icon in its own soft round chip, the kind of detail (Mobile, Email) as a quiet label. */
.tc-card__rows a { grid-template-columns: 40px 1fr auto; gap: 10px; min-height: 60px; padding: 8px 2px; border-radius: var(--tc-radius-md);
    transition: background-color var(--tc-motion-fast) var(--tc-ease); }
.tc-card__rows a .tc-icon { box-sizing: content-box; width: 20px; height: 20px; padding: 10px; border-radius: 50%; background: color-mix(in srgb, var(--tc-color-primary) 11%, var(--tc-color-surface)); }
.tc-card__rows a:hover { background: color-mix(in srgb, var(--tc-color-primary) 5%, transparent); }
.tc-card__rows a:active .tc-icon { transform: scale(.94); }
.tc-card__rows small { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.tc-card__rows span { font-weight: 500; }
/* A long email address: a little smaller, so it fits on one line, or two at most (it only breaks before the @). */
.tc-card__rows span.tc-card__long { font-size: .9em; letter-spacing: -.005em; }
/* The two main buttons: icon and word a little closer, the word a touch tighter. */
.tc-card-action { gap: 6px; letter-spacing: -0.005em; }
.tc-card-action .tc-icon { width: 22px; height: 22px; }

/* ---------- Live effects (card-fx.js; only on cards whose look uses one) ---------- */
/* The drawing surface behind the card. It never takes a tap. */
.tc-fx { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.tc-fx--front { z-index: 5; }
/* Tilt: the card leans a few degrees; the script only sets the two angles. */
.tc-card__body { transition: transform 180ms ease-out; }
/* Shine: a soft light where the finger is. */
.tc-card__shine { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: var(--tc-shine-on, 0); transition: opacity 300ms ease; animation: none !important;
    background: radial-gradient(220px circle at var(--tc-shine-x, 50%) var(--tc-shine-y, 0%), color-mix(in srgb, white 26%, transparent), transparent 70%); }
@media (prefers-reduced-motion: reduce) { .tc-fx, .tc-card__shine { display: none; } .tc-card__body { transform: none !important; } }

/* The original TapCard layout (Design Studio, Card, Layout, "Original TapCard"): the card as the first version drew it.
   Cards moved over from that version start on it. A full-width banner at its own shape, a round photo, the name with
   the job title, company and About text slanted beneath, then one row of small round icons in the button colour.
   Colours, fonts and the buttons' colour still come from the theme. */
.tc-card--original .tc-card__body { gap: 12px; }
.tc-card--original .tc-card__job, .tc-card--original .tc-card__company, .tc-card--original .tc-card__summary { font-style: italic; color: var(--tc-color-text); }
.tc-card--original .tc-card__name { font-size: var(--tc-name-size, 32px); font-weight: var(--tc-name-weight, 600); letter-spacing: var(--tc-name-spacing, 0); }
.tc-card--original .tc-card__job { font-size: 22px; font-weight: 400; }
.tc-card--original .tc-card__company { font-size: 19px; font-weight: 500; }
.tc-card--original .tc-card__summary { font-size: 18px; font-weight: 500; max-width: none; }
.tc-card--original .tc-card__role { gap: 4px; }
.tc-card__icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
/* The two groups of icons flow as one row. */
.tc-card__icons-own, .tc-card__icons .tc-social { display: contents; }
.tc-card-icon, .tc-card__icons .tc-social__link { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; text-decoration: none;
    background: var(--tc-btn1-bg, var(--tc-color-primary)); color: var(--tc-btn1-text, var(--tc-color-on-primary));
    transition: transform var(--tc-motion-fast) var(--tc-ease), filter var(--tc-motion-fast) var(--tc-ease); }
.tc-card-icon:hover, .tc-card__icons .tc-social__link:hover { filter: brightness(1.08); background: var(--tc-btn1-bg, var(--tc-color-primary)); }
.tc-card-icon:active, .tc-card__icons .tc-social__link:active { transform: scale(.94); }
.tc-card-icon:focus-visible { outline: 2px solid var(--tc-color-primary-text); outline-offset: 2px; }
/* The first version's order: call, WhatsApp, email, then the rest. */
.tc-card__icons [data-tc-el="call"] { order: -3; }
.tc-card__icons [data-tc-el="social:whatsapp"] { order: -2; }
.tc-card__icons [data-tc-el="email"] { order: -1; }

/* Design Studio extras: action rows, connector line, group headings, share tiles, closing line */
.tc-card__action-rows, .tc-card--rows .tc-card__links, .tc-card__share { display: grid; gap: 8px; }
.tc-card__share { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin-top: 8px; }
.tc-card-row, .tc-card--rows .tc-link-btn { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 12px; text-align: left; text-decoration: none; color: var(--tc-color-text);
    background: color-mix(in srgb, var(--tc-color-primary) 6%, transparent); border: 1px solid var(--tc-color-border); border-radius: var(--tc-btn-radius, 10px);
    transition: transform var(--tc-motion-fast) var(--tc-ease), border-color var(--tc-motion-fast) var(--tc-ease); }
.tc-card-row:hover, .tc-card--rows .tc-link-btn:hover { border-color: var(--tc-color-primary-text); }
.tc-card-row:active { transform: var(--tc-tap, scale(.98)); }
.tc-card-row__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 8px; color: var(--tc-color-primary-text); background: color-mix(in srgb, var(--tc-color-primary) 16%, transparent); }
.tc-card-row__text { display: grid; flex: 1; min-width: 0; }
.tc-card-row__text small { color: var(--tc-color-text-muted); overflow-wrap: break-word; }
.tc-card-row > .tc-icon:last-child { color: var(--tc-color-text-muted); }
.tc-card__label { margin: 12px 0 -6px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-align: left; color: var(--tc-color-text-muted); }
.tc-card__tagline { margin: 22px 4px 6px; font-family: var(--tc-font-heading); font-size: 25px; font-weight: 700; line-height: 1.2; text-align: left; color: transparent;
    background: linear-gradient(100deg, var(--tc-color-text) 15%, var(--tc-color-primary-text) 60%, var(--tc-color-secondary)); -webkit-background-clip: text; background-clip: text; }
.tc-card--link .tc-card__action-rows, .tc-card--link .tc-card__links, .tc-card--link .tc-card__rows, .tc-card--link .tc-card__actions, .tc-card--link .tc-card__share { position: relative; padding-left: 26px; }
.tc-card--link .tc-card__action-rows::before, .tc-card--link .tc-card__links::before, .tc-card--link .tc-card__rows::before, .tc-card--link .tc-card__actions::before, .tc-card--link .tc-card__share::before { content: ""; position: absolute; left: calc(9px - var(--tc-link-w) / 2); top: -10px; bottom: -10px; width: var(--tc-link-w); background: var(--tc-link-bg); box-shadow: var(--tc-link-glow, none); }
.tc-card--link-flow  .tc-card__action-rows::after, .tc-card--link-flow .tc-card__links::after, .tc-card--link-flow .tc-card__rows::after, .tc-card--link-flow .tc-card__actions::after, .tc-card--link-flow .tc-card__share::after {
    content: ""; position: absolute; left: 7px; top: -10px; bottom: -10px; width: 4px; background: linear-gradient(transparent 0 40%, var(--tc-color-secondary) 50%, transparent 60%) 0 0 / 100% 240px; animation: tc-link-flow 3s linear infinite; }
@keyframes tc-link-flow { to { background-position-y: 240px; } }
@media (prefers-reduced-motion: reduce) { .tc-card--link-flow .tc-card__action-rows::after, .tc-card--link-flow .tc-card__links::after, .tc-card--link-flow .tc-card__rows::after, .tc-card--link-flow .tc-card__actions::after, .tc-card--link-flow .tc-card__share::after { animation: none; display: none; } }
.tc-card--link .tc-card__action-rows::before, .tc-card--link .tc-card__links::before, .tc-card--link .tc-card__rows::before, .tc-card--link .tc-card__actions::before, .tc-card--link .tc-card__share::before { transform: scaleY(var(--tc-draw, 1)); transform-origin: top; }
/* The connector lines, shared with their small pictures in Design Studio. */
.tc-card--link-line, .tc-mini--link-line { --tc-link-w: 2px; --tc-link-bg: var(--tc-color-primary-text); }
.tc-card--link-dashed, .tc-mini--link-dashed { --tc-link-w: 2px; --tc-link-bg: repeating-linear-gradient(var(--tc-color-primary-text) 0 7px, transparent 7px 13px); }
.tc-card--link-circuit, .tc-mini--link-circuit { --tc-link-w: 6px; --tc-link-bg: linear-gradient(90deg, var(--tc-color-primary-text) 0 2px, transparent 2px 4px, var(--tc-color-primary-text) 4px); --tc-link-glow: 0 0 10px color-mix(in srgb, var(--tc-color-primary) 55%, transparent); }
.tc-card--link-pipe, .tc-mini--link-pipe { --tc-link-w: 8px; --tc-link-bg: linear-gradient(90deg, color-mix(in srgb, var(--tc-color-primary) 55%, black), var(--tc-color-primary), color-mix(in srgb, var(--tc-color-primary) 55%, black)); }
.tc-card--link-rail, .tc-mini--link-rail { --tc-link-w: 12px; --tc-link-bg: linear-gradient(90deg, var(--tc-color-text-muted) 0 2px, transparent 2px 10px, var(--tc-color-text-muted) 10px), repeating-linear-gradient(var(--tc-color-primary-text) 0 2px, transparent 2px 9px); }
.tc-card--link-road, .tc-mini--link-road { --tc-link-w: 12px; --tc-link-bg: repeating-linear-gradient(var(--tc-color-secondary) 0 8px, transparent 8px 16px) center / 2px 100% no-repeat, color-mix(in srgb, var(--tc-color-text) 72%, transparent); }
.tc-card--link-stitch, .tc-mini--link-stitch { --tc-link-w: 3px; --tc-link-bg: repeating-linear-gradient(var(--tc-color-primary-text) 0 10px, transparent 10px 16px); }
.tc-card--link-beads, .tc-mini--link-beads { --tc-link-w: 8px; --tc-link-bg: radial-gradient(circle, var(--tc-color-primary-text) 0 3px, transparent 3.5px) 0 0 / 8px 14px; }
.tc-card--link .tc-card-row, .tc-card--link .tc-link-btn, .tc-card--link .tc-card__rows a, .tc-card--link .tc-card-action { position: relative; }
.tc-card--link .tc-card-row::before, .tc-card--link .tc-link-btn::before, .tc-card--link .tc-card__rows a::before { content: ""; position: absolute; left: -22px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
    background: var(--tc-color-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tc-color-primary) 25%, transparent); }
.tc-card--link-circuit .tc-card-row::before, .tc-card--link-pipe .tc-card-row::before, .tc-card--link-rail .tc-card-row::before, .tc-card--link-circuit .tc-link-btn::before, .tc-card--link-pipe .tc-link-btn::before, .tc-card--link-rail .tc-link-btn::before { border-radius: 2px; }
.tc-card--link-circuit .tc-card__rows a::before, .tc-card--link-pipe .tc-card__rows a::before, .tc-card--link-rail .tc-card__rows a::before { border-radius: 2px; }
.tc-card--link .tc-card__share .tc-card-row::before { content: none; } /* side-by-side tiles have no line to sit on */
.tc-card--rows .tc-link-btn { justify-content: flex-start; font-weight: 600; }
.tc-card--link .tc-card__summary { position: relative; padding-left: 26px; text-align: left; max-width: none; }
.tc-card--link .tc-card__summary::before { content: ""; position: absolute; left: calc(9px - var(--tc-link-w) / 2); top: -14px; bottom: -14px; width: var(--tc-link-w); background: var(--tc-link-bg); box-shadow: var(--tc-link-glow, none); }

/* Card structures (Design Studio -> Card): each rebuilds how the card is arranged, not just its colours. */
.tc-card--comp .tc-card__label { margin: 0; }
.tc-card--comp .tc-card__share { margin-top: 0; }

/* Bento: everything is a tile on one grid */
.tc-card--comp-bento .tc-card__body { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding: 10px; background: none; border: 0; box-shadow: none; }
.tc-card--comp-bento .tc-card__body::before, .tc-card--comp-bento .tc-card__body::after { display: none; }
.tc-card--comp-bento .tc-tile, .tc-card--comp-bento .tc-card__share { grid-column: 1 / -1; min-width: 0; }
.tc-card--comp-bento .tc-tile--header, .tc-card--comp-bento .tc-tile--about, .tc-card--comp-bento .tc-tile--contact, .tc-card--comp-bento .tc-card-action, .tc-card--comp-bento .tc-card-row, .tc-card--comp-bento .tc-link-btn {
    background: var(--tc-card-fill, var(--tc-color-surface)); border: 1px solid color-mix(in srgb, var(--tc-color-text) 12%, transparent); border-radius: 18px; }
.tc-card--comp-bento .tc-tile--header { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 16px; text-align: left; }
.tc-card--comp-bento .tc-card__band { display: none; }
.tc-card--comp-bento .tc-card__avatar { grid-row: span 2; margin: 0; }
.tc-card--comp-bento .tc-card__avatar .tc-avatar { width: 76px; height: 76px; font-size: 26px; }
.tc-card--comp-bento .tc-card__name { font-size: 24px; margin: 0; align-self: end; text-align: left; }
.tc-card--comp-bento .tc-card__role { margin: 2px 0 0; align-self: start; text-align: left; }
.tc-card--comp-bento .tc-card__actions, .tc-card--comp-bento .tc-card__action-rows { display: contents; }
.tc-card--comp-bento .tc-card-action, .tc-card--comp-bento .tc-tile--actions .tc-card-row { grid-column: span 3; min-height: 92px; color: var(--tc-color-text); }
.tc-card--comp-bento .tc-card-action .tc-icon { color: var(--tc-color-primary-text); }
.tc-card--comp-bento .tc-tile--about { padding: 16px; }
.tc-card--comp-bento .tc-card__summary { margin: 0; text-align: left; max-width: none; }
.tc-card--comp-bento .tc-tile--contact { padding: 4px 14px; }
.tc-card--comp-bento .tc-card__links { display: grid; gap: 10px; }
.tc-card--comp-bento .tc-card__share { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Editorial: type first, hairlines, lots of air */
.tc-card--comp-editorial .tc-card__body { gap: 28px; padding: 32px 28px; background: var(--tc-card-fill, var(--tc-color-surface)); border-radius: 0; box-shadow: none; }
.tc-card--comp-editorial .tc-tile--header { position: relative; padding-right: 76px; text-align: left; }
.tc-card--comp-editorial .tc-card__band { display: none; }
.tc-card--comp-editorial .tc-card__avatar { position: absolute; top: 0; right: 0; margin: 0; }
.tc-card--comp-editorial .tc-card__avatar .tc-avatar { width: 60px; height: 60px; font-size: 20px; border-radius: 2px; box-shadow: none; }
.tc-card--comp-editorial .tc-card__photo { padding: 0; background: none; border-radius: 2px; }
.tc-card--comp-editorial .tc-card__name { margin: 0; font-size: 46px; line-height: 1.02; letter-spacing: -.03em; text-align: left; }
.tc-card--comp-editorial .tc-card__first, .tc-card--comp-editorial .tc-card__last { display: block; }
.tc-card--comp-editorial .tc-card__role { margin: 16px 0 0; display: grid; gap: 2px; text-align: left; font-size: 13px; letter-spacing: .04em; }
.tc-card--comp-editorial .tc-card__summary { margin: 0; max-width: none; text-align: left; font-size: 17px; line-height: 1.45; }
.tc-card--comp-editorial .tc-card__actions { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--tc-color-text); }
.tc-card--comp-editorial .tc-card-action { flex-direction: row; justify-content: space-between; min-height: 58px; padding: 0; background: none; color: var(--tc-color-text); border: 0; border-bottom: 1px solid color-mix(in srgb, var(--tc-color-text) 18%, transparent); border-radius: 0; box-shadow: none; font-size: 17px; }
.tc-card--comp-editorial .tc-card-action span { order: -1; }
.tc-card--comp-editorial .tc-card__links { gap: 0; }
.tc-card--comp-editorial .tc-link-btn { justify-content: space-between; min-height: 58px; padding: 0; background: none; color: var(--tc-color-text); border-bottom: 1px solid color-mix(in srgb, var(--tc-color-text) 18%, transparent); border-radius: 0; box-shadow: none; }
.tc-card--comp-editorial .tc-link-btn span { order: -1; }

/* Access pass: a lanyard pass with a slot and a tear line */
.tc-card--comp-pass .tc-card__body { gap: 0; padding: 0; overflow: hidden; border-radius: 22px; }
.tc-card--comp-pass .tc-tile--header { position: relative; padding: 52px 24px 24px; text-align: center; background: linear-gradient(160deg, var(--tc-color-primary), color-mix(in srgb, var(--tc-color-primary) 72%, black)); color: var(--tc-color-on-primary); }
.tc-card--comp-pass .tc-tile--header::before { content: ""; position: absolute; top: 16px; left: 50%; width: 64px; height: 12px; margin-left: -32px; border-radius: 999px; background: var(--tc-color-background); box-shadow: inset 0 1px 3px rgb(0 0 0 / .35); }
.tc-card--comp-pass .tc-card__band { display: none; }
.tc-card--comp-pass .tc-card__avatar { margin: 0 0 14px; }
.tc-card--comp-pass .tc-card__avatar .tc-avatar { width: 124px; height: 124px; border-radius: 16px; }
.tc-card--comp-pass .tc-card__photo { --tc-photo-radius: 16px; padding: 0; background: none; }
.tc-card--comp-pass .tc-card__name, .tc-card--comp-pass .tc-card__role, .tc-card--comp-pass .tc-card__job, .tc-card--comp-pass .tc-card__company { color: inherit; background: none; -webkit-text-fill-color: currentColor; }
.tc-card--comp-pass .tc-card__name { margin: 0; font-size: 28px; }
.tc-card--comp-pass .tc-card__role { margin: 4px 0 0; opacity: .9; }
.tc-card--comp-pass .tc-tile:not(.tc-tile--header), .tc-card--comp-pass .tc-card__share { margin: 0 20px; }
.tc-card--comp-pass .tc-tile--actions { position: relative; margin-top: 0; padding: 26px 0 16px; border-top: 2px dashed color-mix(in srgb, var(--tc-color-text) 22%, transparent); }
.tc-card--comp-pass .tc-tile--actions::before, .tc-card--comp-pass .tc-tile--actions::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--tc-color-background); }
.tc-card--comp-pass .tc-tile--actions::before { left: -32px; }
.tc-card--comp-pass .tc-tile--actions::after { right: -32px; }
.tc-card--comp-pass .tc-tile:not(.tc-tile--header):not(.tc-tile--actions) { padding-bottom: 16px; }
.tc-card--comp-pass .tc-card__body > :last-child { margin-bottom: 20px; }

/* Terminal: a machined, instrument-panel card */
.tc-card--comp-terminal { font-feature-settings: "tnum"; }
.tc-card--comp-terminal .tc-card__body { gap: 14px; padding: 22px 18px; border-radius: 4px; background-image: linear-gradient(color-mix(in srgb, var(--tc-color-primary) 7%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--tc-color-primary) 7%, transparent) 1px, transparent 1px); background-size: 22px 22px; border: 1px solid color-mix(in srgb, var(--tc-color-primary) 45%, transparent); }
.tc-card--comp-terminal .tc-card__body::before { display: block; inset: 6px; padding: 0; border-radius: 0; background: linear-gradient(var(--tc-color-primary), var(--tc-color-primary)) top left / 16px 2px, linear-gradient(var(--tc-color-primary), var(--tc-color-primary)) top left / 2px 16px, linear-gradient(var(--tc-color-primary), var(--tc-color-primary)) bottom right / 16px 2px, linear-gradient(var(--tc-color-primary), var(--tc-color-primary)) bottom right / 2px 16px; background-repeat: no-repeat; -webkit-mask: none; mask: none; }
.tc-card--comp-terminal .tc-tile--header { display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 16px; align-items: end; text-align: left; padding-bottom: 14px; border-bottom: 1px solid color-mix(in srgb, var(--tc-color-primary) 35%, transparent); }
.tc-card--comp-terminal .tc-card__band { display: none; }
.tc-card--comp-terminal .tc-card__avatar { grid-row: span 2; margin: 0; }
.tc-card--comp-terminal .tc-card__avatar .tc-avatar { width: 92px; height: 92px; border-radius: 2px; }
.tc-card--comp-terminal .tc-card__photo { --tc-photo-radius: 2px; padding: 3px; background: none; outline: 1px solid var(--tc-color-primary); }
.tc-card--comp-terminal .tc-card__name { margin: 0; font-size: 25px; line-height: 1.05; text-align: left; text-transform: uppercase; letter-spacing: .02em; }
.tc-card--comp-terminal .tc-card__first, .tc-card--comp-terminal .tc-card__last { display: block; }
.tc-card--comp-terminal .tc-card__role { margin: 6px 0 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-align: left; color: var(--tc-color-primary-text); }
.tc-card--comp-terminal .tc-card__summary { margin: 0; text-align: left; max-width: none; font-size: 14px; }
.tc-card--comp-terminal .tc-card__summary::before { content: "// "; color: var(--tc-color-primary-text); }
.tc-card--comp-terminal .tc-card__actions { gap: 8px; }
.tc-card--comp-terminal .tc-card-action, .tc-card--comp-terminal .tc-link-btn { border-radius: 2px; background: color-mix(in srgb, var(--tc-color-primary) 10%, transparent); color: var(--tc-color-primary-text); border: 1px solid color-mix(in srgb, var(--tc-color-primary) 55%, transparent); box-shadow: none; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.tc-card--comp-terminal .tc-card__rows a { border-radius: 0; }

/* Poster: a full-height colour or photo panel with the name set large on it */
.tc-card--comp-poster .tc-card__body { padding: 0; overflow: hidden; gap: 18px; }
.tc-card--comp-poster .tc-tile--header { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; padding: 22px; text-align: left; overflow: hidden; color: rgb(255 255 255); background: linear-gradient(170deg, var(--tc-color-primary), color-mix(in srgb, var(--tc-color-secondary) 70%, black)); }
.tc-card--comp-poster .tc-card__band { display: none; }
.tc-card--comp-poster .tc-card__avatar { position: absolute; inset: 0; margin: 0; }
.tc-card--comp-poster .tc-card__photo, .tc-card--comp-poster .tc-card__avatar .tc-avatar { width: 100%; height: 100%; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.tc-card--comp-poster .tc-card__avatar .tc-avatar:not(img) { background: none; color: transparent; } /* no photo: the colour panel alone, never initials behind the name */
.tc-card--comp-poster .tc-tile--header::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgb(0 0 0 / .62)); pointer-events: none; }
.tc-card--comp-poster .tc-card__name, .tc-card--comp-poster .tc-card__role { position: relative; z-index: 1; text-align: left; color: rgb(255 255 255); -webkit-text-fill-color: currentColor; background: none; }
.tc-card--comp-poster .tc-card__job, .tc-card--comp-poster .tc-card__company { color: inherit; }
.tc-card--comp-poster .tc-card__name { margin: 0; font-size: 42px; line-height: 1.02; letter-spacing: -.02em; }
.tc-card--comp-poster .tc-card__first, .tc-card--comp-poster .tc-card__last { display: block; }
.tc-card--comp-poster .tc-card__role { margin: 10px 0 0; }
.tc-card--comp-poster .tc-tile:not(.tc-tile--header), .tc-card--comp-poster .tc-card__share { margin-left: 18px; margin-right: 18px; }
.tc-card--comp-poster .tc-card__summary { margin: 0; text-align: left; max-width: none; }
.tc-card--comp-poster .tc-card__body > :last-child { margin-bottom: 18px; }

/* Dock: a compact header with a row of round actions, like a phone's dock */
.tc-card--comp-dock .tc-card__body { gap: 20px; padding: 26px 20px; }
.tc-card--comp-dock .tc-tile--header { display: grid; justify-items: center; text-align: center; }
.tc-card--comp-dock .tc-card__avatar .tc-avatar { width: 96px; height: 96px; }
.tc-card--comp-dock .tc-card__name { margin: 12px 0 0; font-size: 26px; }
.tc-card--comp-dock .tc-card__actions, .tc-card--comp-dock .tc-card__action-rows { display: flex; justify-content: center; gap: 18px; padding: 12px 18px; width: max-content; max-width: 100%; margin: 0 auto; border-radius: 999px; background: color-mix(in srgb, var(--tc-color-text) 7%, transparent); }
.tc-card--comp-dock .tc-card-action { flex: none; width: 60px; min-height: 60px; height: 60px; border-radius: 50%; padding: 0; }
.tc-card--comp-dock .tc-card-action span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tc-card--comp-dock .tc-card__summary { margin: 0; }

.tc-card__privacy a { display: inline-block; padding: 6px 2px; }

/* A long label with no spaces (a pasted web address, say) wraps inside its button instead of widening the page. */
.tc-card__links, .tc-link-btn { min-width: 0; max-width: 100%; }
.tc-link-btn span { min-width: 0; overflow-wrap: anywhere; }
.tc-card__footer-brand { margin-bottom: 8px; }
