/* E-name card V2, matched to the approved design (docs/JA_Implementation_Handoff_20261114/assets/APPROVED_NAME_CARD_V2.png).
   Measurements were taken from the approved 852 px image and mapped to a ~426 px phone (×0.5), with text sizes raised
   slightly where the image would fall below comfortable phone reading sizes. One design for every industry.
   Contrast on --ground: --text 16:1, --soft 8.9:1, --gold 9.9:1; white on --green 4.6:1 (18 px bold = large text). */
@font-face{font-family:'Montserrat';font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/montserrat-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Montserrat';font-style:italic;font-weight:400;font-display:swap;src:url(/static/fonts/montserrat-latin-400-italic.woff2) format('woff2')}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:500;font-display:swap;src:url(/static/fonts/montserrat-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:600;font-display:swap;src:url(/static/fonts/montserrat-latin-600-normal.woff2) format('woff2')}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:700;font-display:swap;src:url(/static/fonts/montserrat-latin-700-normal.woff2) format('woff2')}
.digital-card.ecard{
 --ground:#171b1a;--surface:#272c2a;--text:#f5f3eb;--soft:#b3b6ae;--gold:#dcc08a;--line:#3b403e;--green:#1a8c3c;--green-2:#147532;
 max-width:520px;margin:0 auto;padding:0 0 22px;background:var(--ground);color:var(--text);border-radius:0;box-shadow:none;overflow:hidden;
 font-family:'Montserrat','Noto Sans SC','PingFang SC','Microsoft YaHei','Segoe UI',Roboto,sans-serif;font-size:16px;line-height:1.35;
}
body:has(.digital-card.ecard){background:#0f1211}
.ecard .ecard-icon{width:24px;height:24px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ecard .ecard-fill{width:24px;height:24px;flex:none;fill:currentColor}
.ecard a,.ecard button{-webkit-tap-highlight-color:transparent}
.ecard a:focus-visible,.ecard button:focus-visible{outline:3px solid var(--gold);outline-offset:3px;border-radius:8px}

/* Cover: the photo fades into the ground; the logo and name sit on the faded lower part. */
.ecard .ecard-cover{position:relative;height:200px;margin:0;overflow:hidden;background:var(--surface)}
.ecard .ecard-cover.no-photo{height:110px;background:linear-gradient(170deg,#2a302d,var(--ground))}
.ecard .ecard-cover>img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;margin:0;border-radius:0;object-fit:cover;object-position:50% 35%}
.ecard .ecard-cover:after{content:'';position:absolute;inset:auto 0 0;height:58%;background:linear-gradient(rgba(23,27,26,0),rgba(23,27,26,.8) 60%,var(--ground));pointer-events:none}
.ecard .ecard-cover-share{position:absolute;top:12px;right:12px;z-index:2;display:grid;place-items:center;width:44px;height:44px;min-height:0;padding:0;border:0;border-radius:50%;background:rgba(18,21,20,.82);color:#fff;cursor:pointer}
.ecard .ecard-cover-share .ecard-icon{width:21px;height:21px}
.ecard .ecard-caption{position:absolute;left:12px;top:14px;z-index:2;max-width:calc(100% - 80px);padding:3px 8px;border-radius:6px;background:rgba(0,0,0,.6);color:#fff;font-size:11px;line-height:1.4}

/* Identity */
.ecard .ecard-identity{position:relative;z-index:1;margin-top:-50px;padding:0 30px}
.ecard .ecard-badge{display:flex;align-items:center;min-height:56px}
.ecard .ecard-mark{display:grid;place-items:center;flex:none;width:56px;height:56px;border:1.5px solid var(--gold);border-radius:11px;background:#1c1f1e;overflow:hidden;box-shadow:0 4px 14px rgba(0,0,0,.35)}
.ecard .ecard-mark img{width:100%;height:100%;object-fit:contain;padding:5px;background:#fff}
.ecard img.ecard-mark-portrait{object-fit:cover;padding:0;background:#fff}
/* Person card: the face is the identity, so the portrait is larger and round (2026-11-15). */
.ecard.is-person img.ecard-mark-portrait{width:96px;height:96px;border-radius:50%;border-width:2px}
.ecard .ecard-mark-initial{font:600 30px/1 Georgia,'Noto Serif CJK SC','Noto Serif SC',serif;color:var(--gold)}
.ecard .ecard-tag{min-width:0;margin-left:17px;padding-left:15px;border-left:1px solid rgba(220,192,138,.55);color:var(--gold);font-size:12.5px;font-weight:600;letter-spacing:.28em;line-height:1.9;text-transform:uppercase;overflow-wrap:anywhere}
.digital-card.ecard .ecard-identity h1{margin:11px 0 0;font-family:inherit;font-size:28px;font-weight:700;line-height:1.2;letter-spacing:-.005em;color:var(--text);overflow-wrap:anywhere}
.ecard .ecard-second{margin:3px 0 0;font-size:15px;font-weight:400;line-height:1.4;color:var(--soft);overflow-wrap:anywhere}
.ecard .ecard-tagline{margin:6px 0 0;font-size:15px;font-style:italic;font-weight:400;line-height:1.45;color:var(--text);overflow-wrap:anywhere}

/* The one green button */
.digital-card.ecard .ecard-primary{display:flex;align-items:center;justify-content:center;gap:13px;min-height:48px;margin:20px 20px 0;padding:8px 16px;border-radius:9px;background:linear-gradient(var(--green),var(--green-2));color:#fff;font-size:17.5px;font-weight:700;line-height:1.2;text-align:center;text-decoration:none;box-shadow:0 6px 18px rgba(0,0,0,.28)}
.ecard .ecard-primary .ecard-icon{width:28px;height:28px;stroke-width:1.9}

/* Call / Directions / Save contact: solid gold icons, white labels, short dividers; a hairline below */
.ecard .ecard-actions{display:grid;align-items:center;margin:12px 22px 0;padding-bottom:14px;border-bottom:1px solid var(--line)}
.ecard .ecard-actions a{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:60px;padding:4px;color:var(--text);font-size:13.5px;font-weight:500;line-height:1.25;text-align:center;text-decoration:none}
.ecard .ecard-actions a+a:before{content:'';position:absolute;left:0;top:14%;bottom:14%;border-left:1px solid var(--line)}
.ecard .ecard-actions .ecard-fill{width:25px;height:25px;color:var(--gold)}
.ecard .ecard-actions a[aria-disabled="true"]{opacity:.55}
.ecard .ecard-help{margin:8px 22px 0;font-size:13px;line-height:1.5;color:var(--soft);text-align:center}
.ecard .ecard-help:empty{display:none}

.ecard .cols-1{grid-template-columns:minmax(0,1fr)}.ecard .cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.ecard .cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.ecard .cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
/* Sections: bold white headings, compact rows */
.ecard .ecard-section{margin:16px 22px 0}
.digital-card.ecard .ecard-section h2{margin:0 0 6px;font-family:inherit;font-size:21px;font-weight:700;line-height:1.25;letter-spacing:0;color:var(--text)}
.ecard .ecard-services ul,.ecard .ecard-online ul{list-style:none;margin:0;padding:0}
.ecard .ecard-services li{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;min-height:30px}
.ecard .ecard-services li .ecard-fill{justify-self:center;width:24px;height:24px;color:var(--gold)}
.ecard .ecard-services li span{display:flex;align-items:center;min-height:30px;padding:4px 0;font-size:14.5px;font-weight:400;line-height:1.3;color:var(--text);overflow-wrap:anywhere}
.ecard .ecard-services li+li span{border-top:1px solid var(--line)}
.ecard .ecard-services ul{margin-left:-2px}

/* Visit us */
.ecard .ecard-visit{margin-top:20px}
.ecard .ecard-place{display:grid;grid-template-columns:30px 1px minmax(0,1fr) 22px;gap:0 14px;align-items:center;min-height:50px;margin:0 -2px;padding:8px 14px 8px 18px;border-radius:10px;background:var(--surface);color:var(--text);text-decoration:none}
.ecard .ecard-place:before{content:'';grid-column:2;grid-row:1;align-self:stretch;margin:4px 0;background:var(--line)}
.ecard .ecard-place>.ecard-fill{grid-column:1;grid-row:1;width:28px;height:28px;color:var(--gold)}
.ecard .ecard-place>span{grid-column:3;grid-row:1}
.ecard .ecard-place>.ecard-icon{grid-column:4;grid-row:1;width:22px;height:22px;color:var(--text)}
.ecard div.ecard-place{grid-template-columns:30px 1px minmax(0,1fr)}
.ecard .ecard-place strong{display:block;font-size:14.5px;font-weight:500;line-height:1.35;overflow-wrap:anywhere}
.ecard .ecard-place small{display:block;margin-top:1px;font-size:13.5px;line-height:1.35;color:var(--soft);white-space:pre-line}
/* Branch rows (only on websites with branches): same rows as the head office, name + address, each with its own directions. */
.ecard .ecard-branches{list-style:none;display:grid;gap:8px;margin:8px 0 0;padding:0}
.ecard .ecard-branches li{display:block;margin:0;padding:0}

/* Find us online: columns with short dividers, white icons */
.ecard .ecard-online{margin-top:18px}
.ecard .ecard-online ul{display:grid;padding-bottom:14px;border-bottom:1px solid var(--line)}
.ecard .ecard-online li{position:relative;display:flex}
.ecard .ecard-online li+li:before{content:'';position:absolute;left:0;top:16%;bottom:30%;border-left:1px solid var(--line)}
.ecard .ecard-online li:nth-child(4n+1):before{display:none}
.ecard .ecard-online a{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:56px;padding:4px;color:var(--text);font-size:13.5px;font-weight:500;line-height:1.25;text-align:center;text-decoration:none}
.ecard .ecard-online svg{width:24px;height:24px}

/* Share card + QR code */
.ecard .ecard-share-row{display:grid;grid-template-columns:1fr 1fr;align-items:center;margin:14px 22px 0}
.ecard .ecard-share-row button{position:relative;display:flex;align-items:center;justify-content:center;gap:12px;min-height:54px;margin:0;padding:8px;border:0;background:none;color:var(--text);font:inherit;font-size:15px;font-weight:500;cursor:pointer}
.ecard .ecard-share-row button .ecard-icon{width:25px;height:25px}
.ecard .ecard-share-row button+button:before{content:'';position:absolute;left:0;top:18%;bottom:18%;border-left:1px solid var(--line)}
.ecard .ecard-share-row.single{grid-template-columns:1fr}
.ecard .ecard-share-row .ecard-locked{grid-column:1/-1;margin:0;padding:12px 14px;border:1px dashed var(--line);border-radius:10px;color:var(--soft);font-size:14px;text-align:center}
.ecard .ecard-share-status{margin:6px 22px 0;color:var(--gold);text-align:center;font-size:14px}
.ecard .ecard-share-status:empty{display:none}
.digital-card.ecard #public-qr-dialog{max-width:min(92vw,360px);padding:24px;border:0;border-radius:18px;color:#1c2420;text-align:center;font-family:inherit}
.digital-card.ecard #public-qr-dialog img{display:block;width:100%;max-width:280px;height:auto;margin:12px auto}
.digital-card.ecard #public-qr-dialog .action{display:flex;justify-content:center;min-height:48px;margin-top:10px}
.ecard .ecard-end{margin-top:18px;padding:0 22px;text-align:center;color:var(--soft);font-size:12px;font-style:italic}
.ecard .ecard-end small{display:block;margin-top:6px;font-style:normal;font-size:12px}

/* Platform notice above the card */
body:has(.digital-card.ecard) .site-notice{max-width:520px;margin:0 auto}
/* The public demo already states it is fictional in the notice above the card; no second, dark copy of the same note. */
body:has(.digital-card.ecard) .showcase-note{display:none}

/* Desktop and unfolded foldables: a centred card column, never stretched */
@media(min-width:600px){
 .digital-card.ecard{margin:32px auto;border-radius:24px;box-shadow:0 30px 80px rgba(0,0,0,.45)}
 .ecard .ecard-cover{height:220px}
}
@media(max-width:359px){.ecard .ecard-identity{padding:0 22px}.ecard .ecard-actions a,.ecard .ecard-online a{font-size:14px}}
@media(prefers-reduced-motion:reduce){.ecard *{transition:none!important}}

/* Head office / branch tag on each address row (only when the business has branches). */
.ecard .ecard-place-tag{display:inline-block;margin-bottom:4px;padding:2px 9px;border-radius:999px;border:1px solid var(--gold);color:var(--gold);font-style:normal;font-size:11.5px;font-weight:600;letter-spacing:.04em;line-height:1.5}
.ecard .ecard-place-tag.hq{background:var(--gold);color:var(--ground)}
