/* Shared markup styles for every template. Templates only set the variables below (PRD section 8).
   --accent fills the UPI button and --accent-ink is its text. People no longer pick an accent
   (DECISIONS.md, 2026-11-02). Every template sets its own pair, and contrast.test.js requires it,
   so this blue is only a fallback. */
:root{--accent:#2563eb;--accent-ink:#fff}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;min-height:100vh;background:var(--bg);color:var(--fg);font:16px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans",sans-serif;-webkit-font-smoothing:antialiased}
.page{max-width:560px;margin:0 auto;padding:48px 20px 16px;text-align:center}
.avatar{width:128px;height:128px;border-radius:50%;object-fit:cover;display:block;margin:0 auto 18px;box-shadow:0 0 0 4px var(--avatar-ring,transparent),0 10px 30px rgba(0,0,0,.18)}
h1{font-size:30px;line-height:1.15;letter-spacing:-.01em;margin:0 0 8px}
.bio{margin:0 auto 24px;max-width:440px;font-size:16px;line-height:1.6;color:var(--muted);white-space:pre-line}
.group{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.12em;color:var(--muted);margin:32px 0 14px}
.links{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:12px}
/* Every button: a coloured icon tile, the label on the left and a chevron, so all buttons line up. */
.link{position:relative;display:flex;align-items:center;gap:14px;min-height:60px;padding:8px 44px 8px 8px;text-align:left;border:1px solid var(--btn-border,var(--accent));border-radius:18px;background:var(--btn-bg);color:var(--btn-fg);text-decoration:none;font-size:17px;font-weight:600;line-height:1.3;overflow-wrap:anywhere;box-shadow:0 4px 14px rgba(0,0,0,.08)}
.label{flex:1;min-width:0}
.tile{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:12px;background:var(--tile,var(--accent));color:var(--tile-ink,var(--accent-ink))}
.tile .ico{width:24px;height:24px}
.tile-instagram{background:radial-gradient(circle at 30% 107%,#fdf497 0%,#fd5949 45%,#d6249f 60%,#285aeb 90%);color:#fff}
/* The chevron is drawn in CSS, so it adds no bytes per button. */
.link::after{content:"";position:absolute;right:22px;top:50%;width:8px;height:8px;border-top:2px solid currentColor;border-right:2px solid currentColor;transform:translateY(-50%) rotate(45deg);opacity:.55}
.ico{width:22px;height:22px;flex:none}
.ico.s{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.link-upi{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.link-upi .tile{background:rgba(255,255,255,.2);color:inherit}
.contact-whatsapp{background:#dcfce7;border-color:#bbf7d0;color:#14532d}
.shape-pill .link{border-radius:999px}
.shape-square .link,.shape-square .video,.shape-square .qr,.shape-square .tile{border-radius:4px}
.social{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:0 0 22px;padding:0}
.social-link{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--btn-bg);border:1px solid var(--btn-border,transparent);color:var(--btn-fg)}
.social-link .ico{width:20px;height:20px}
.video{position:relative;aspect-ratio:16/9;margin:0 0 18px;border-radius:16px;overflow:hidden;background:#000;box-shadow:0 8px 24px rgba(0,0,0,.15)}
.video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.qr{margin:4px auto 0;padding:16px;max-width:220px;background:#fff;color:#111827;border-radius:16px;border:1px solid #e3e6eb}
.qr svg{display:block;width:100%;height:auto}
.qr figcaption{font-size:13px;margin-top:8px}
.link:focus-visible,.social-link:focus-visible{outline:3px solid var(--ring);outline-offset:3px}
.made-with{display:flex;align-items:center;justify-content:center;gap:14px;font-size:13px;letter-spacing:.02em;color:var(--muted);padding:8px 16px 24px}
/* The link's own padding makes a tap target of about 44 px; the footer's padding shrinks to keep the old spacing. */
.made-with a{color:inherit;text-decoration:none;padding:12px 4px}
.made-with a:hover{text-decoration:underline}
.made-with a:focus-visible{outline:3px solid var(--ring);outline-offset:2px}
.made-with::before,.made-with::after{content:"";flex:0 1 56px;height:1px;background:currentColor;opacity:.45}
.made-with{white-space:nowrap}
/* Small phones (and the builder's phone preview): a little less padding and type so labels fit on one line. */
@media (max-width:360px){
  .page{padding:36px 14px 12px}
  .avatar{width:112px;height:112px}
  h1{font-size:26px}
  .bio{font-size:15px}
  .link{gap:12px;min-height:56px;padding:7px 38px 7px 7px;font-size:16px}
  .tile{width:40px;height:40px}
  .tile .ico{width:22px;height:22px}
  .link::after{right:18px}
  .social{gap:8px}
}
@media (prefers-reduced-motion:no-preference){
  .link,.social-link{transition:transform .15s,border-color .15s,box-shadow .15s}
  .link:hover,.social-link:hover{transform:translateY(-2px)}
}
