/*
 * SHORTxtra Bio pages (phase 11: R10.4, design §10): the one stylesheet of a Bio page and of the builder's phone preview.
 * 12 ready themes as sets of custom properties (--t-*) on .sxt-bio-t-<key> — "auto" themes have a light and a dark form
 * (the visitor's system setting), the others one; a page's own colours (--sxb-* from Bio\Themes::css(), in the page's one
 * <style nonce>) win over the theme's. Fonts from the shipped set (assets/fonts): Inter, Outfit, the system font, a serif
 * and a monospace stack — Hindi always in Noto Sans Devanagari. Buttons: filled, outline, soft, shadow; corners: sharp,
 * rounded, pill. No sideways scroll at 320 px; motion only without prefers-reduced-motion.
 */
@font-face { font-family: "Inter"; src: url("../fonts/inter/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit/Outfit-Variable-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Noto Sans Devanagari"; src: url("../fonts/noto-sans-devanagari/NotoSansDevanagari-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Noto Sans Devanagari"; src: url("../fonts/noto-sans-devanagari/NotoSansDevanagari-Bold.woff2") format("woff2"); font-weight: 600 800; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF; }

/* ---------- Themes (--t-*: page, text, muted, btn, btn-text, accent, card, border) ---------- */
.sxt-bio-t-classic { --t-page: #f6f7f9; --t-text: #14181f; --t-muted: #4b5563; --t-btn: #0b7a5a; --t-btn-text: #ffffff; --t-accent: #0b7a5a; --t-card: #ffffff; --t-border: #d9dde3; }
.sxt-bio-t-midnight { --t-page: linear-gradient(160deg, #0f172a, #1e1b4b); --t-text: #e2e8f0; --t-muted: #c7d2fe; --t-btn: #6366f1; --t-btn-text: #ffffff; --t-accent: #a5b4fc; --t-card: #1e293b; --t-border: #334155; }
.sxt-bio-t-sunrise { --t-page: linear-gradient(165deg, #fff7ed, #fde68a); --t-text: #431407; --t-muted: #7c2d12; --t-btn: #c2410c; --t-btn-text: #ffffff; --t-accent: #9a3412; --t-card: #fffbeb; --t-border: #fed7aa; }
.sxt-bio-t-ocean { --t-page: linear-gradient(180deg, #ecfeff, #dbeafe); --t-text: #0c4a6e; --t-muted: #155e75; --t-btn: #0369a1; --t-btn-text: #ffffff; --t-accent: #0e7490; --t-card: #ffffff; --t-border: #bae6fd; }
.sxt-bio-t-forest { --t-page: #f0fdf4; --t-text: #14532d; --t-muted: #166534; --t-btn: #15803d; --t-btn-text: #ffffff; --t-accent: #166534; --t-card: #ffffff; --t-border: #bbf7d0; }
.sxt-bio-t-rose { --t-page: linear-gradient(160deg, #fff1f2, #fce7f3); --t-text: #4c0519; --t-muted: #881337; --t-btn: #be123c; --t-btn-text: #ffffff; --t-accent: #9f1239; --t-card: #ffffff; --t-border: #fecdd3; }
.sxt-bio-t-glass { --t-page: linear-gradient(135deg, #a5b4fc, #f0abfc 55%, #fda4af); --t-text: #1e1b4b; --t-muted: #312e81; --t-btn: rgba(255, 255, 255, 0.62); --t-btn-text: #1e1b4b; --t-accent: #4338ca; --t-card: rgba(255, 255, 255, 0.55); --t-border: rgba(255, 255, 255, 0.7); }
.sxt-bio-t-minimal { --t-page: #ffffff; --t-text: #111111; --t-muted: #555555; --t-btn: #111111; --t-btn-text: #ffffff; --t-accent: #111111; --t-card: #ffffff; --t-border: #e5e5e5; }
.sxt-bio-t-bold { --t-page: #facc15; --t-text: #111111; --t-muted: #292524; --t-btn: #111111; --t-btn-text: #facc15; --t-accent: #111111; --t-card: #ffffff; --t-border: #111111; }
.sxt-bio-t-neon { --t-page: #050505; --t-text: #f0fdf4; --t-muted: #bef264; --t-btn: #a3e635; --t-btn-text: #050505; --t-accent: #f0abfc; --t-card: #111111; --t-border: #3f6212; }
.sxt-bio-t-saffron { --t-page: linear-gradient(180deg, #fff7ed, #ffedd5); --t-text: #431407; --t-muted: #7c2d12; --t-btn: #b45309; --t-btn-text: #ffffff; --t-accent: #15803d; --t-card: #fffaf3; --t-border: #fed7aa; }
.sxt-bio-t-paper { --t-page: #f5f0e6; --t-text: #3b3127; --t-muted: #5f5244; --t-btn: #3b3127; --t-btn-text: #f5f0e6; --t-accent: #7c2d12; --t-card: #fffdf8; --t-border: #d6cbb8; }

@media (prefers-color-scheme: dark) {
  .sxt-bio-t-classic { --t-page: #0f1419; --t-text: #e8ecf1; --t-muted: #a3adb8; --t-btn: #34d399; --t-btn-text: #062b1f; --t-accent: #34d399; --t-card: #1a2129; --t-border: #2c3640; }
  .sxt-bio-t-ocean { --t-page: linear-gradient(180deg, #082f49, #0c4a6e); --t-text: #e0f2fe; --t-muted: #bae6fd; --t-btn: #38bdf8; --t-btn-text: #082f49; --t-accent: #7dd3fc; --t-card: #0b3b5a; --t-border: #155e75; }
  .sxt-bio-t-forest { --t-page: #052e16; --t-text: #dcfce7; --t-muted: #bbf7d0; --t-btn: #4ade80; --t-btn-text: #052e16; --t-accent: #86efac; --t-card: #0b3d1f; --t-border: #166534; }
  .sxt-bio-t-rose { --t-page: #2a0a14; --t-text: #ffe4e6; --t-muted: #fecdd3; --t-btn: #fb7185; --t-btn-text: #2a0a14; --t-accent: #fda4af; --t-card: #3f0f1f; --t-border: #881337; }
  .sxt-bio-t-glass { --t-page: linear-gradient(135deg, #312e81, #701a75 55%, #881337); --t-text: #fdf4ff; --t-muted: #f5d0fe; --t-btn: rgba(255, 255, 255, 0.16); --t-btn-text: #ffffff; --t-accent: #f0abfc; --t-card: rgba(15, 23, 42, 0.5); --t-border: rgba(255, 255, 255, 0.25); }
  .sxt-bio-t-minimal { --t-page: #000000; --t-text: #f5f5f5; --t-muted: #b5b5b5; --t-btn: #f5f5f5; --t-btn-text: #000000; --t-accent: #f5f5f5; --t-card: #0d0d0d; --t-border: #2a2a2a; }
  .sxt-bio-t-saffron { --t-page: #1c1003; --t-text: #ffedd5; --t-muted: #fed7aa; --t-btn: #f59e0b; --t-btn-text: #1c1003; --t-accent: #4ade80; --t-card: #2b1a06; --t-border: #78350f; }
}

/* ---------- The page ---------- */
body.sxt-bio {
  --c-text: var(--sxb-text, var(--t-text));
  --c-muted: var(--sxb-text, var(--t-muted));
  --c-btn: var(--sxb-btn, var(--t-btn));
  --c-btn-text: var(--sxb-btn-text, var(--t-btn-text));
  --c-accent: var(--sxb-accent, var(--t-accent));
  --c-card: var(--t-card);
  --c-border: var(--t-border);
  margin: 0;
  min-height: 100vh;
  background: var(--sxb-page, var(--sxb-bg, var(--t-page)));
  background-attachment: fixed;
  color: var(--c-text);
  font: 16px/1.55 var(--f, "Inter", "Noto Sans Devanagari", system-ui, sans-serif);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
.sxt-bio *, .sxt-bio *::before, .sxt-bio *::after { box-sizing: border-box; }
.sxt-bio-f-inter { --f: "Inter", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.sxt-bio-f-outfit { --f: "Outfit", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.sxt-bio-f-system { --f: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Devanagari", sans-serif; }
.sxt-bio-f-serif { --f: Georgia, "Times New Roman", "Noto Sans Devanagari", serif; }
.sxt-bio-f-mono { --f: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Noto Sans Devanagari", monospace; }
.sxt-bio-s-sharp { --r: 0; }
.sxt-bio-s-rounded { --r: 0.75rem; }
.sxt-bio-s-pill { --r: 999px; }
.sxt-bio-bg-own { background-attachment: fixed; }

.sxt-bio-page { width: 100%; max-width: 36rem; margin: 0 auto; padding: 2.25rem 1rem 3rem; }
.sxt-bio-head { text-align: center; margin-bottom: 1.5rem; }
.sxt-bio-avatar { display: block; width: 6rem; height: 6rem; margin: 0 auto 0.75rem; border-radius: 50%; object-fit: cover; border: 3px solid var(--c-card); }
.sxt-bio-initial { display: grid; place-items: center; background: var(--c-btn); color: var(--c-btn-text); font-size: 2.5rem; font-weight: 700; }
.sxt-bio-name { margin: 0; font-size: 1.5rem; line-height: 1.25; }
.sxt-bio-intro { margin: 0.5rem 0 0; color: var(--c-muted); }
.sxt-bio-blocks { display: flex; flex-direction: column; gap: 0.8rem; }
.sxt-bio a { color: inherit; }
.sxt-bio-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Buttons (links, WhatsApp, call, e-mail, map, UPI) */
.sxt-bio-btn {
  display: flex; align-items: center; gap: 0.75rem; width: 100%; min-height: 3.25rem; padding: 0.7rem 1rem;
  border: 2px solid var(--c-btn); border-radius: var(--r); background: var(--c-btn); color: var(--c-btn-text);
  font-weight: 600; text-decoration: none; text-align: center;
}
.sxt-bio a.sxt-bio-btn { color: var(--c-btn-text); }
.sxt-bio-btn-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sxt-bio-btn-label { display: block; }
.sxt-bio-btn-sub { display: block; font-size: 0.85rem; font-weight: 400; opacity: 0.85; }
.sxt-bio-icon { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sxt-bio-thumb { width: 2.5rem; height: 2.5rem; flex: none; border-radius: calc(var(--r) / 2); object-fit: cover; }
.sxt-bio-s-pill .sxt-bio-thumb { border-radius: 50%; }
.sxt-bio-btn-whatsapp .sxt-bio-icon, .sxt-bio-btn-call .sxt-bio-icon, .sxt-bio-btn-email .sxt-bio-icon, .sxt-bio-btn-map .sxt-bio-icon, .sxt-bio-btn-upi .sxt-bio-icon { opacity: 0.9; }
.sxt-bio-b-outline .sxt-bio-btn, .sxt-bio-b-outline .sxt-bio-submit { background: transparent; color: var(--c-text); }
.sxt-bio-b-outline a.sxt-bio-btn { color: var(--c-text); }
.sxt-bio-b-soft .sxt-bio-btn, .sxt-bio-b-soft .sxt-bio-submit { background: var(--c-card); border-color: var(--c-border); color: var(--c-text); }
.sxt-bio-b-soft a.sxt-bio-btn { color: var(--c-text); }
.sxt-bio-b-shadow .sxt-bio-btn, .sxt-bio-b-shadow .sxt-bio-submit { box-shadow: 0 4px 0 rgba(0, 0, 0, 0.28); }
.sxt-bio-b-filled .sxt-bio-btn { background: var(--c-btn); }
.sxt-bio-t-bold .sxt-bio-btn, .sxt-bio-t-bold .sxt-bio-form, .sxt-bio-t-bold .sxt-bio-faq, .sxt-bio-t-bold .sxt-bio-upi, .sxt-bio-t-bold .sxt-bio-countdown { border: 3px solid #111111; box-shadow: 4px 4px 0 #111111; }
.sxt-bio-t-bold .sxt-bio-name { font-size: 1.9rem; font-weight: 800; }
.sxt-bio-t-neon .sxt-bio-btn { box-shadow: 0 0 14px rgba(163, 230, 53, 0.45); }
.sxt-bio-t-glass .sxt-bio-btn, .sxt-bio-t-glass .sxt-bio-form, .sxt-bio-t-glass .sxt-bio-faq, .sxt-bio-t-glass .sxt-bio-upi { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-color: var(--c-border); }
.sxt-bio-t-minimal .sxt-bio-btn { font-weight: 500; }
.sxt-bio-hl { outline: 3px solid var(--c-accent); outline-offset: 3px; }
.sxt-bio a:focus-visible, .sxt-bio button:focus-visible, .sxt-bio summary:focus-visible, .sxt-bio input:focus-visible, .sxt-bio textarea:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .sxt-bio-btn { transition: transform 0.15s ease, box-shadow 0.15s ease; }
  .sxt-bio-btn:hover { transform: translateY(-2px); }
  .sxt-bio-btn.sxt-bio-hl { animation: sxt-bio-nudge 2.6s ease-in-out infinite; }
}
@keyframes sxt-bio-nudge { 0%, 86%, 100% { transform: none; } 90% { transform: rotate(-1.5deg); } 95% { transform: rotate(1.5deg); } }

/* Text, images, video */
.sxt-bio-heading { margin: 0.6rem 0 0; font-size: 1.2rem; line-height: 1.3; }
h3.sxt-bio-heading { font-size: 1.02rem; }
.sxt-bio-text { margin: 0; color: var(--c-muted); }
.sxt-bio-a-center { text-align: center; }
.sxt-bio-a-left { text-align: left; }
.sxt-bio-image { margin: 0; }
.sxt-bio-image img, .sxt-bio-gallery img { display: block; width: 100%; height: auto; border-radius: var(--r); }
.sxt-bio-s-pill .sxt-bio-image img, .sxt-bio-s-pill .sxt-bio-gallery img { border-radius: 1.25rem; }
.sxt-bio-gallery { display: grid; gap: 0.5rem; }
.sxt-bio-gallery img { aspect-ratio: 1; object-fit: cover; }
.sxt-bio-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sxt-bio-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sxt-bio-video { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000000; }
.sxt-bio-s-pill .sxt-bio-video { border-radius: 1.25rem; }
.sxt-bio-video-instagram { aspect-ratio: 4 / 5; background: var(--c-card); }
.sxt-bio-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sxt-bio-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; padding: 1rem; color: #ffffff; text-decoration: none; font-weight: 600; text-align: center; background: linear-gradient(160deg, #1f2937, #000000); border: 0; width: 100%; font: inherit; cursor: pointer; }
.sxt-bio a.sxt-bio-play { color: #ffffff; }
.sxt-bio-video-instagram .sxt-bio-play { background: linear-gradient(160deg, #833ab4, #fd1d1d 60%, #fcb045); }
.sxt-bio-play-mark { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: #111111; font-size: 1.4rem; }
.sxt-bio-video-note { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.35rem 0.6rem; font-size: 0.75rem; color: #e5e7eb; background: rgba(0, 0, 0, 0.55); text-align: center; }

/* Social icons */
.sxt-bio-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.sxt-bio-social-buttons { flex-direction: column; }
.sxt-bio-net { display: flex; align-items: center; justify-content: center; gap: 0.6rem; text-decoration: none; font-weight: 700; }
.sxt-bio-social-icons .sxt-bio-net { width: 2.9rem; height: 2.9rem; border-radius: 50%; background: var(--net, var(--c-btn)); color: var(--net-text, #ffffff); }
.sxt-bio a.sxt-bio-net { color: var(--net-text, #ffffff); }
.sxt-bio-social-buttons .sxt-bio-net { min-height: 3rem; padding: 0.6rem 1rem; border-radius: var(--r); background: var(--net, var(--c-btn)); }
.sxt-bio-net-mark { font-size: 0.95rem; line-height: 1; }
.sxt-bio-net-name { font-weight: 600; }
.sxt-bio-net-instagram { --net: #c13584; }
.sxt-bio-net-facebook { --net: #1877f2; }
.sxt-bio-net-youtube { --net: #d30000; }
.sxt-bio-net-x { --net: #000000; }
.sxt-bio-net-linkedin { --net: #0a66c2; }
.sxt-bio-net-whatsapp { --net: #25d366; --net-text: #073b1d; }
.sxt-bio-net-telegram { --net: #1f7fb3; }
.sxt-bio-net-threads { --net: #101010; }
.sxt-bio-net-pinterest { --net: #c8001f; }
.sxt-bio-net-snapchat { --net: #fffc00; --net-text: #111111; }
.sxt-bio-net-github { --net: #24292f; }
.sxt-bio-net-spotify { --net: #1db954; --net-text: #062b14; }
.sxt-bio-net-email { --net: var(--c-btn); --net-text: var(--c-btn-text); }
.sxt-bio-net-website { --net: var(--c-btn); --net-text: var(--c-btn-text); }

/* Cards: UPI, forms, countdown, FAQ */
.sxt-bio-upi, .sxt-bio-form, .sxt-bio-countdown, .sxt-bio-faq { padding: 1rem; border: 1px solid var(--c-border); border-radius: var(--r); background: var(--c-card); }
.sxt-bio-s-pill .sxt-bio-upi, .sxt-bio-s-pill .sxt-bio-form, .sxt-bio-s-pill .sxt-bio-countdown, .sxt-bio-s-pill .sxt-bio-faq { border-radius: 1.25rem; }
.sxt-bio-upi { display: flex; flex-direction: column; gap: 0.75rem; align-items: center; }
.sxt-bio-upi-qr { width: 100%; max-width: 13rem; padding: 0.5rem; background: #ffffff; border-radius: 0.5rem; }
.sxt-bio-upi-qr svg { display: block; width: 100%; height: auto; }
.sxt-bio-upi-hint { margin: 0; font-size: 0.9rem; color: var(--c-muted); text-align: center; }
.sxt-bio-upi-vpa { font-weight: 700; color: var(--c-text); }
.sxt-bio-form { position: relative; display: flex; flex-direction: column; gap: 0.45rem; }
.sxt-bio-form-title { margin: 0 0 0.25rem; font-size: 1.1rem; }
.sxt-bio-form-text { margin: 0; color: var(--c-muted); }
.sxt-bio-label { font-weight: 600; font-size: 0.92rem; }
.sxt-bio-input { width: 100%; min-height: 2.75rem; padding: 0.55rem 0.75rem; font: inherit; color: var(--c-text); background: transparent; border: 1px solid var(--c-border); border-radius: calc(var(--r) / 2); }
.sxt-bio-s-pill .sxt-bio-input { border-radius: 0.9rem; }
.sxt-bio-consent { margin: 0.25rem 0 0; font-size: 0.8rem; color: var(--c-muted); }
.sxt-bio-submit { min-height: 2.9rem; margin-top: 0.35rem; padding: 0.6rem 1rem; font: inherit; font-weight: 700; color: var(--c-btn-text); background: var(--c-btn); border: 2px solid var(--c-btn); border-radius: var(--r); cursor: pointer; }
.sxt-bio-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.sxt-bio-form-status { margin: 0; min-height: 1.2em; font-weight: 600; }
.sxt-bio-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.sxt-bio-countdown { text-align: center; }
.sxt-bio-count { margin: 0.4rem 0 0; font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.sxt-bio-count-done { margin: 0.4rem 0 0; font-size: 1.15rem; font-weight: 700; color: var(--c-accent); }
.sxt-bio-faqs { display: flex; flex-direction: column; gap: 0.5rem; }
.sxt-bio-faq { padding: 0.75rem 1rem; }
.sxt-bio-faq summary { font-weight: 700; cursor: pointer; }
.sxt-bio-faq p { margin: 0.5rem 0 0; color: var(--c-muted); }
.sxt-bio-divider { width: 100%; margin: 0.4rem 0; border: 0; }
.sxt-bio-divider-line { border-top: 1px solid var(--c-border); }
.sxt-bio-divider-dots { border-top: 4px dotted var(--c-border); width: 40%; margin-left: auto; margin-right: auto; }
.sxt-bio-divider-space { height: 0.75rem; }
.sxt-bio-foot { margin-top: 2rem; text-align: center; font-size: 0.85rem; color: var(--c-muted); }

/* ---------- The builder's theme swatches (the app pages load this stylesheet too) ---------- */
.sxt-bio-swatch { display: flex; flex-direction: column; justify-content: center; gap: 5px; height: 4.25rem; padding: 0.6rem; background: var(--t-page); border: 1px solid #c9d0d8; border-radius: 6px; }
.sxt-bio-swatch-btn { display: block; height: 0.7rem; background: var(--t-btn); border-radius: 3px; }
