/* Chisme social, part 1. Lives inside the main app (index.html): the same header, background, cards, chips and bottom
   tabs as the rest of Chisme (style.css), so everything here is scoped under .sx and only adds what the app doesn't
   have. Fiesta palette only: turquoise, pink, orange, purple, black, white, silver. NO yellow.
   --sx-acc is the person's own accent (their pick from the palette); the app's own --accent is left alone. */
.sx { --tq: var(--fb-turq, var(--turq)); --pk: var(--fb-pink, var(--pink)); --or: var(--fb-orange, var(--orange)); --pu: #8A3FFC; --sil: var(--fb-silver, #A7A9AC);
  /* every social color comes from the app's theme variables (style.css): switch the season and these follow */
  --sx-surf: var(--card); --sx-soft: var(--near); --sx-hot: color-mix(in srgb, var(--pk) 72%, var(--ink));
  --sx-cool: color-mix(in srgb, var(--tq) 55%, var(--ink)); --sx-note-bg: color-mix(in srgb, var(--pk) 12%, var(--card)); --sx-note-ink: var(--sx-hot);
  --sx-pu-bg: color-mix(in srgb, var(--pu) 14%, var(--card)); --sx-pu-ink: color-mix(in srgb, var(--pu) 70%, var(--ink));
  --sx-banner: linear-gradient(135deg, var(--sx-acc), var(--pk) 55%, var(--or)); }
/* Día de los Muertos (html[data-season="muertos"]): the app's night-plum + marigold, same as its own cards */
html[data-season="muertos"] .sx { --sx-banner: linear-gradient(135deg, var(--mq-plum), var(--pk) 58%, var(--marigold));
  --sx-soft: var(--near); --sx-note-bg: color-mix(in srgb, var(--mq-pink) 16%, var(--card)); }
html[data-season="muertos"] .sx .profile .banner { box-shadow: inset 0 -5px 0 var(--cempa); }
html[data-season="muertos"] .sx .chisme { border-left-color: var(--acc); }
html { --sx-acc: #00C9CD; }
body.sx-locked { overflow: hidden; }
@keyframes sx-pop { 40% { transform: scale(1.6) rotate(-12deg); } }
@media (prefers-reduced-motion: reduce) { .sx .rx.pop span:first-child { animation: none !important; } }

/* inside Chisme → All: the "from your people" chips + the ➕ CHISME bar (the app's own chip look) */
.sx-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px 12px; padding: 0 4px 2px; }
.sx-chips::-webkit-scrollbar { display: none; }
.sx-chip { flex: 1 0 auto; min-height: 46px; padding: .25em .7em; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--ink);
  font-weight: 900; font-size: min(.85rem, 19px, 4.2vw); white-space: nowrap; }
.sx-chip[aria-current="true"] { background: var(--turq); color: #000; border-color: var(--turq); }
[data-season="muertos"] .sx-chip[aria-current="true"] { background: #c4135f; color: #fff; border-color: #c4135f; }
@media (max-width: 430px) { .sx-chip { flex: 1 1 auto; min-width: 0; padding: .25em .45em; } .sx-chip span { display: none; } }
/* while a social page is up, "All" isn't the one showing, so it doesn't look picked */
#view-chisme.sx-on .mq-chip[aria-current="true"] { background: var(--card); color: var(--ink); border-color: var(--line); }
.sx-lbl { margin: 0 0 6px; font-size: .78rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: var(--ink2); }
.sx-compose { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; min-height: 64px; cursor: pointer; font-weight: 700; }
.sx-compose .sx-q { flex: 1; color: var(--muted); font-weight: 800; }
.sx-compose .sx-plus { flex: none; border-radius: 999px; background: #d1005f; color: #fff;   /* v49.23: AA contrast (white on #FF1A7F was 3.7:1) */ padding: .35em .8em; font-weight: 900; font-size: .85rem; }
.sx-compose .av { border: 3px solid var(--sx-acc); }
.sx-face { width: 40px; height: 40px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--near); font-size: 1.1rem; }
#view-chisme.sx-on > :not(.mq-chips):not(.sx-top):not(#sx-view):not(.dk-main) {   /* v49.29.2: the desktop wraps #sx-view in .dk-main; desktop.css hides its other children */
 display: none !important; }
#view-chisme.sx-sub .sx-compose { display: none; }
.sx-view[hidden] { display: none; }
.sx-back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 10px; font-weight: 900; text-decoration: none; color: var(--link); min-height: 44px; }
/* user Chismes mixed into the All list carry a tag like the app's News / Sports / Events ones */
.mix-people .mix-tag { background: color-mix(in srgb, var(--fb-pink, var(--pink)) 16%, var(--card)); color: color-mix(in srgb, var(--fb-pink, var(--pink)) 70%, var(--ink)); }
/* the ☰ menu button in the top bar */
.fb-menu { position: relative; }
.fb-menu .sx-dot { position: absolute; top: 4px; right: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--pink); border: 2px solid var(--card); }
.fb-menu .sx-dot[hidden] { display: none; }
.sx a { color: var(--sx-cool); }
.sx h1 { font-size: 1.45rem; margin: .2em 0 .3em; }
.sx .h2 { font-size: 1.05rem; margin: 18px 14px 8px; letter-spacing: .02em; }
.sx .h2.danger { color: var(--sx-hot); }
.sx .small { font-size: .86rem; color: var(--muted); }
.sx .sub { color: var(--muted); margin: 0 0 8px; }
.sx .err { color: var(--sx-hot); font-weight: 600; }
.sx .note { background: var(--sx-note-bg); color: var(--sx-note-ink); border-radius: 10px; padding: 8px 10px; font-size: .9rem; }
.sx .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sx .empty { text-align: center; color: var(--muted); padding: 28px 16px; }
.sx .loading { text-align: center; color: var(--muted); padding: 28px; }
.sx .list { display: flex; flex-direction: column; gap: 10px; padding: 0 8px; }
.sx .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 12px; padding: 11px 16px; font: 700 .95rem/1.1 var(--font-ui); text-decoration: none; cursor: pointer; min-height: 44px; color: var(--card); background: var(--ink); }
.sx .btn.pink { background: var(--pk); }
.sx .btn.acc { background: var(--sx-acc); color: #fff; }
.sx .btn.ghost { background: var(--sx-surf); color: var(--ink); border: 1.5px solid var(--line); }
.sx .btn.danger { background: var(--sx-surf); color: var(--sx-hot); border: 1.5px solid var(--pk); }
.sx .btn.sx-wide { width: 100%; margin-top: 8px; }
.sx .btn.sx-big { font-size: 1.05rem; padding: 14px 18px; }
.sx .btn:disabled { opacity: .55; }
.sx .sx-link { background: none; border: 0; color: var(--sx-cool); font: inherit; padding: 6px 4px; cursor: pointer; text-decoration: underline; min-height: 32px; }
.sx .form { display: flex; flex-direction: column; gap: 10px; }
.sx .fld { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .9rem; }
.sx .fld input, .sx .fld textarea, .sx .fld select, .sx .form textarea, .sx .form input[type=url], .sx .form input:not([type]) { font: inherit; padding: 11px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--sx-surf); color: var(--ink); width: 100%; }
.sx :focus-visible { outline: 3px solid var(--tq); outline-offset: 2px; }
.sx input:focus, .sx textarea:focus, .sx select:focus { outline: 3px solid color-mix(in srgb, var(--sx-acc) 45%, transparent); border-color: var(--sx-acc); }
.sx .chk { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.sx .chk input { width: 22px; height: 22px; flex: none; accent-color: var(--pk); }
.sx .auth { margin: 14px 8px; }
.sx .links { text-align: center; font-size: .92rem; }
.sx .bot { border: 2px dashed var(--tq); border-radius: 14px; padding: 10px 12px; background: var(--sx-soft); }
.sx .bot-copy { margin: 0 0 6px; font-weight: 800; }
.sx .bot .row { display: flex; align-items: center; gap: 10px; }
.sx .bot .row input { width: 90px; font: inherit; padding: 9px; border-radius: 10px; border: 1.5px solid var(--line); }
.sx .count { align-self: flex-end; color: var(--muted); margin-top: -6px; }
.sx .chisme { --acc: var(--tq); border-left: 4px solid var(--acc); }
.sx .chisme.is-hidden { opacity: .75; }
.sx .by { display: flex; align-items: center; gap: 8px; }
.sx .who { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: 1; min-width: 0; }
.sx .who b { display: block; }
.sx .who small { color: var(--muted); }
.sx .new { font-style: normal; background: var(--tq); color: #fff; border-radius: 6px; font-size: .7rem; padding: 1px 5px; margin-left: 6px; font-weight: 700; }
.sx .av { flex: none; display: inline-flex; border-radius: 50%; overflow: hidden; border: 3px solid var(--tq); background: var(--sx-surf); align-items: center; justify-content: center; }
.sx .av img { width: 100%; height: 100%; object-fit: cover; }
.sx .av-i { font-weight: 800; color: var(--muted); font-size: 1.1rem; }
.sx .more { background: none; border: 0; font-size: 1.3rem; padding: 4px 10px; min-width: 44px; min-height: 44px; cursor: pointer; color: var(--muted); }
.sx .sx-pin, .sx .aud { font-size: .75rem; font-weight: 700; background: var(--bg); border-radius: 8px; padding: 2px 7px; color: var(--muted); }
.sx .sx-pin { background: var(--sx-pu-bg); color: var(--sx-pu-ink); }
.sx .sx-txt { margin: 8px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.sx .sx-tag, .sx .mention { color: var(--sx-hot); font-weight: 600; text-decoration: none; }
.sx .mention { color: var(--sx-cool); }
.sx .meme-badge { display: inline-block; margin-top: 8px; background: var(--or); color: #fff; font-weight: 800; font-size: .75rem; padding: 3px 8px; border-radius: 8px; }
.sx .chisme.meme { border-left-color: var(--or); }
.sx .photos { display: grid; gap: 4px; border-radius: 12px; overflow: hidden; margin: 8px 0; }
.sx .photos img { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--bg); }
.sx .photos.n1 img { max-height: 520px; height: auto; }
.sx .photos.n2, .sx .photos.n4 { grid-template-columns: 1fr 1fr; }
.sx .photos.n2 img, .sx .photos.n4 img { aspect-ratio: 1; }
.sx .photos.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.sx .photos.n3 img:first-child { grid-row: span 2; }
.sx .photos.n3 img { aspect-ratio: auto; min-height: 120px; }
.sx .vid { width: 100%; max-height: 560px; border-radius: 12px; background: #000; margin: 8px 0; display: block; height: auto; }
.sx .clip { border-radius: 12px; overflow: hidden; background: #111; color: #fff; margin: 8px 0; position: relative; }
.sx .clip-tag { position: absolute; z-index: 2; top: 8px; left: 8px; background: var(--pk); color: #fff; font-weight: 800; font-size: .72rem; padding: 3px 8px; border-radius: 8px; }
.sx .clip-play { position: relative; display: block; width: 100%; border: 0; padding: 0; background: #222; cursor: pointer; aspect-ratio: 16 / 9; }
.sx .clip-play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sx .clip-tt { font-size: 3rem; }
.sx .sx-play { position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; border-radius: 50%; background: rgba(255, 26, 127, .92); color: #fff; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; }
.sx .clip iframe { width: 100%; aspect-ratio: 9 / 16; max-height: 70vh; border: 0; display: block; }
.sx .clip-t { margin: 0; padding: 8px 10px; font-size: .9rem; }
.sx .react { display: flex; gap: 0; margin-top: 6px; border-top: 1px solid var(--line); padding-top: 6px; }
.sx .rx { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; border-radius: 999px; padding: 6px 7px; font: 600 .9rem/1 var(--font-ui); color: var(--muted); cursor: pointer; min-height: 40px; text-decoration: none; }
.sx .rx span:first-child { font-size: 1.15rem; }
.sx .rx.on { background: var(--sx-note-bg); color: var(--sx-hot); }
.sx .rx.save { margin-left: auto; }
.sx .rx.pop span:first-child { animation: sx-pop .4s ease; }
.sx .rx.pop span:first-child { animation: none; }
.sx .guest { text-align: center; background: linear-gradient(135deg, var(--sx-soft), var(--sx-note-bg)); }
.sx .guest p { margin: 4px 0 10px; }
.sx .comments { display: flex; flex-direction: column; gap: 6px; padding: 0 8px; }
.sx .comment { display: grid; grid-template-columns: 32px 1fr; gap: 8px; background: var(--sx-surf); border-radius: 12px; padding: 8px 10px; border: 1px solid var(--line); }
.sx .comment .sx-txt { margin: 2px 0; }
.sx .c-act { grid-column: 2; display: flex; gap: 8px; }
.sx main > .form { padding: 10px 8px; }
.sx .profile { background: var(--sx-surf); border-bottom: 1px solid var(--line); padding: 0 14px 0; --acc: var(--sx-acc); }
.sx .banner { height: 150px; margin: 0 -14px; position: relative; }
.sx .banner.edit { display: flex; align-items: flex-end; justify-content: flex-end; padding: 10px; }
.sx .p-top { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; margin-top: -48px; }
.sx .p-top .av { border-width: 4px; border-color: var(--acc); box-shadow: 0 0 0 3px var(--card); }
.sx .p-btns { display: flex; gap: 8px; padding-bottom: 4px; }
.sx .p-name { margin: 8px 0 0; }
.sx .p-user { margin: 0; color: var(--muted); }
.sx .p-area { margin: 4px 0; font-weight: 600; }
.sx .p-counts { font-weight: 600; margin: 6px 0; }
.sx .p-counts b { color: var(--acc); font-size: 1.1rem; }
.sx .ptabs { display: flex; margin: 8px -14px 0; border-top: 1px solid var(--line); }
.sx .ptabs a { flex: 1; text-align: center; padding: 12px 4px; text-decoration: none; color: var(--muted); font-weight: 800; font-size: .85rem; letter-spacing: .05em; border-bottom: 3px solid transparent; }
.sx .ptabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--acc); }
.sx .profile + .list { margin-top: 10px; }
.sx .av-edit { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 10px; margin-top: -48px; padding-bottom: 12px; }
.sx .chip-btn { background: rgba(17, 17, 17, .78); color: #fff; border: 0; border-radius: 999px; padding: 8px 12px; font-weight: 700; min-height: 40px; cursor: pointer; }
.sx .editing + .card { margin: 10px 8px; }
.sx .swatches { display: flex; gap: 10px; flex-wrap: wrap; padding: 4px 0; }
.sx .sw { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--card); box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; }
.sx .sw.on { box-shadow: 0 0 0 3px var(--ink); }
.sx .sheet, .sx.sheet { position: fixed; inset: 0; z-index: 100000; background: rgba(0, 0, 0, .45); display: flex; align-items: flex-end; justify-content: center; }
.sx .sheet[hidden], .sx.sheet[hidden] { display: none; }
.sx .sheet-card, .sx.sheet-card { position: relative; background: var(--sx-surf); width: 100%; max-width: 560px; border-radius: 20px 20px 0 0; padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 88vh; overflow-y: auto; }
.sx .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 8px; }
.sx .sheet-card h2, .sx.sheet-card h2 { margin: 2px 40px 10px 0; font-size: 1.15rem; }
.sx .x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: var(--bg); border-radius: 50%; font-size: 1rem; cursor: pointer; }
.sx .menu { display: flex; flex-direction: column; gap: 4px; }
.sx .menu.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sx .item { text-align: left; background: var(--bg); border: 0; border-radius: 12px; padding: 13px 12px; font: 600 .98rem/1.2 var(--font-ui); cursor: pointer; min-height: 48px; color: var(--ink); }
.sx .item.sx-big span { font-size: 1.35rem; }
.sx .item.danger { color: var(--sx-hot); }
.sx .reasons { display: flex; flex-direction: column; gap: 4px; }
.sx .reason { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; background: var(--bg); font-weight: 600; }
.sx .reason input { width: 20px; height: 20px; accent-color: var(--pk); }
.sx .hon-who { display: flex; gap: 12px; align-items: center; }
.sx .hon-who p { margin: 2px 0; }
.sx .hon-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 6px; }
.sx .composer { margin: 10px 8px; }
.sx .c-who { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.sx .big-txt { font-size: 1.15rem !important; min-height: 110px; border: 0 !important; padding: 4px 0 !important; resize: vertical; }
.sx .big-txt::placeholder { color: var(--sil); font-weight: 800; }
.sx .c-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.sx .c-media:empty { display: none; }
.sx .thumb { position: relative; margin: 0; border-radius: 12px; overflow: hidden; background: var(--bg); }
.sx .thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.sx .thumb.vid, .sx .thumb.clipthumb { grid-column: 1 / -1; }
.sx .thumb video { width: 100%; max-height: 300px; display: block; background: #000; }
.sx .thumb figcaption { font-size: .8rem; padding: 4px 8px; color: var(--muted); }
.sx .rm { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(17, 17, 17, .75); color: #fff; cursor: pointer; z-index: 3; }
.sx .tools { display: flex; gap: 6px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px 0; }
.sx .tool { font-size: 1.4rem; background: none; border: 0; border-radius: 10px; width: 48px; height: 48px; cursor: pointer; }
.sx .tool:hover { background: var(--bg); }
.sx .sx-label { font-weight: 800; font-size: .85rem; margin: 6px 0 0; letter-spacing: .04em; }
.sx .aud-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.sx .audb { border: 1.5px solid var(--line); background: var(--sx-surf); border-radius: 999px; padding: 9px 12px; font: 600 .9rem/1 var(--font-ui); min-height: 42px; cursor: pointer; color: var(--ink); }
.sx .audb.on { background: var(--tq); border-color: var(--tq); color: #fff; }
.sx .clips { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.sx .clip-row { display: grid; grid-template-columns: 96px 1fr; gap: 10px; text-align: left; align-items: center; background: var(--bg); border: 0; border-radius: 12px; padding: 6px; cursor: pointer; font: inherit; color: var(--ink); }
.sx .clip-row img { width: 96px; height: 54px; object-fit: cover; border-radius: 8px; background: #222; }
.sx .clip-row small { display: block; color: var(--muted); }
.sx .person { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.sx .person.sx-slim { display: flex; justify-content: space-between; padding: 6px 0; }
.sx .sx-notif { margin: 4px 6px; font-weight: 600; color: var(--ink); }
.sx .sx-notif-row { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); }
.sx .sx-notif-row.unread { border-left: 4px solid var(--pk); }
.sx .mod.auto { border-left: 4px solid var(--pk); }
.sx .mod-h { display: flex; gap: 8px; align-items: center; }
.sx .pill { font-size: .75rem; background: var(--bg); padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.sx .pill.pink { background: var(--pk); color: #fff; }
.sx .mod-prev { background: var(--bg); padding: 8px 10px; border-radius: 10px; white-space: pre-wrap; }
.sx .quote { font-style: italic; }
.sx .mod-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.sx .blur { filter: blur(18px); cursor: pointer; }
.sx .toast, .sx.toast { position: fixed; z-index: 100001; left: 50%; transform: translateX(-50%); bottom: calc(92px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--card); padding: 11px 16px; border-radius: 12px; font-weight: 600; max-width: 92vw; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); text-align: center; }
.sx .legal, .sx .share { max-width: 640px; margin: 0 auto; padding: 14px; }
.sx .legal .back { display: inline-block; margin-bottom: 6px; font-weight: 700; text-decoration: none; }
.sx .legal .form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .9rem; }
.sx .legal .form label.chk { flex-direction: row; font-weight: 500; }
.sx .legal .form input, .sx .legal .form textarea { font: inherit; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); }
.sx .share .chisme img, .sx .share .chisme video { width: 100%; border-radius: 12px; margin-top: 8px; height: auto; }
.sx .share .btn { margin-top: 12px; }
.sx .menu .soon { grid-column: 1 / -1; margin: 4px 0 0; }/* plain pages (/stats/social, /dmca, /c/<id>): the app's turquoise bar + papel picado, then app cards */
.sx-modbar { height: auto; padding: calc(10px + env(safe-area-inset-top)) 0 0; }
.sx-modbar .wrap { padding-bottom: 10px; }
.sx-modlink { color: #000; font-weight: 900; text-decoration: none; }
body.sx-plain { padding: 0 0 24px; }
body.sx-plain main { max-width: 680px; }
.sx .legal, .sx .share { max-width: 680px; margin: 0 auto; padding: 14px 16px; }
/* inside the app: its global button / link / focus rules shouldn't bleed into these bits */
.sx-view:focus, .sx-view:focus-visible { outline: none; }
.sx a.item { text-decoration: none; display: flex; align-items: center; gap: 8px; }
.sx .item .pill { margin-left: auto; }
.sx .who-row small { color: var(--muted); }
.sx .rm { min-height: 0; padding: 0; border: 0; display: grid; place-items: center; font-size: .8rem; }
.sx .react { justify-content: space-between; }
.sx .rx { padding: 6px 4px; font-size: .8rem; min-height: 44px; border: 0; }
.sx .rx.save { margin-left: 0; }
.sx .tool, .sx .more, .sx .x, .sx .sw { border: 0; }
.sx .feed-head { padding: 0 0 6px; }
.sx .dmca-agent dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; margin: 8px 0 0; }
.sx .dmca-agent dt { font-weight: 900; }
.sx .dmca-agent dd { margin: 0; overflow-wrap: anywhere; }
.sx .dmca-unset { color: var(--muted); }
/* the legal pages (/terms, /privacy, /community-rules; built by tools/make_legal_pages.py) */
.sx .sx-legal-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 12px; }
.sx .sx-legal-nav a { padding: .3em .8em; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; border: 2px solid var(--line);
  background: var(--card); color: var(--ink); font-weight: 900; text-decoration: none; font-size: .8rem; }
.sx .sx-legal-nav a[aria-current="page"] { background: var(--turq); border-color: var(--turq); color: #000; }
.sx .sx-legal-body { font-size: .85rem; line-height: 1.55; overflow-wrap: anywhere; }
.sx .sx-legal-body h1 { font-size: 1.4rem; line-height: 1.2; margin: .2em 0 .4em; }
.sx .sx-legal-body h2 { font-size: 1.05rem; margin: 1.4em 0 .4em; padding-bottom: 4px; border-bottom: 3px solid var(--turq); }
.sx .sx-legal-body h3 { font-size: .95rem; margin: 1.1em 0 .3em; }
.sx .sx-legal-body blockquote { margin: .6em 0; padding: .6em .9em; border-left: 5px solid var(--pink); background: var(--near); border-radius: 10px; }
.sx .sx-legal-body hr { border: 0; border-top: 2px dashed var(--line); margin: 1.2em 0; }
.sx .sx-legal-body table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.sx .sx-legal-body th, .sx .sx-legal-body td { border: 1px solid var(--line); padding: 6px 8px; vertical-align: top; text-align: left; }
.sx .sx-legal-body a { color: var(--link); }
.sx .sx-legal-foot { font-size: .8rem; margin: 6px 0 24px; }
/* the plain pages' bar: the app hides .topbar on phones (its fbtop replaces it), so this one draws itself */
.sx .sx-modbar, .sx.sx-plain > .sx-modbar { display: block !important; height: auto; background: var(--turq); color: #000; position: relative; }
[data-season="muertos"] .sx .sx-modbar { background: var(--turq); color: #000; }

/* badges next to names: GOLD = a metallic orange-gold built on #FF6A0B with a silver shine (never yellow); BLUE = the app's turquoise */
.sx-bdg { display: inline-grid; place-items: center; width: 1.05em; height: 1.05em; border-radius: 50%; margin-left: .25em; vertical-align: -.12em;
  font-size: .95em; font-weight: 900; line-height: 1; flex: none; color: #fff; font-style: normal; }
.sx-bdg::before { content: "✓"; font-size: .68em; text-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.sx-bdg.gold { background: radial-gradient(circle at 32% 26%, #fff 0 9%, #E4E6E8 15%, transparent 34%),
  linear-gradient(135deg, #8A2E00 0%, #FF6A0B 28%, #FFB27A 46%, #C0C0C0 54%, #FF6A0B 70%, #A33A00 100%);
  box-shadow: 0 0 0 1.5px #C0C0C0, inset 0 -1px 2px rgba(0, 0, 0, .35); }
.sx-bdg.blue { background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .85) 0 9%, transparent 30%), linear-gradient(135deg, var(--tq), #0A6FD6);
  box-shadow: 0 0 0 1.5px var(--card); }
/* v49.21 the 🌮 Golden Taco. v49.22: a full-colour badge (static/site/taco-v2.svg, ~3 KB): a glittery metallic orange-gold
   hard shell (deep copper #6E2400, #FF6A0B, peach #FFB27A, silver #C0C0C0; never yellow) with lettuce, tomato, cheddar and
   beef, a WHITE check with a metallic orange-gold edge, white sparkles. A white/silver glint sweeps over it (masked to the taco) */
.sx-bdg.taco { position: relative; width: 1.3em; height: 1.04em; border-radius: 0; box-shadow: none; vertical-align: -.14em;
  background: url("/static/site/taco-v2.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 .5px #C0C0C0) drop-shadow(0 .05em .05em rgba(110, 36, 0, .4)); }
.sx-bdg.taco::before { content: none; }
.sx-bdg.taco::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .95) 47%, #E4E6E8 50%, rgba(255, 255, 255, .9) 53%, transparent 62%) 160% 0 / 260% 100% no-repeat;
  -webkit-mask: url("/static/site/taco-v2.svg") center / contain no-repeat; mask: url("/static/site/taco-v2.svg") center / contain no-repeat;
  mix-blend-mode: soft-light; animation: sx-taco-shine 3.2s ease-in-out infinite; }
@keyframes sx-taco-shine { 0%, 55% { background-position: 160% 0; } 100% { background-position: -60% 0; } }
@media (prefers-reduced-motion: reduce) { .sx-bdg.taco::after { animation: none; } }
html.reduce-motion .sx-bdg.taco::after { animation: none; }
/* bigger on the profile page so the gold reads clearly; the small one stays next to names in feeds */
.sx .p-name .sx-bdg.taco { font-size: 1.3em; margin-left: .2em; }
.sx .p-user { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx .p-user .sx-bdg.taco { margin-left: .3em; }
.sx .bdgs { display: inline-flex; align-items: center; white-space: nowrap; vertical-align: baseline; }
.sx .bdgs .sx-bdg { vertical-align: 0; }
.sx .taco-h { display: flex; align-items: center; gap: 4px; margin: 10px 0 0; font-size: 1rem; }
.sx .taco-btn b { margin-left: auto; }
.sx .badge-pick { display: grid; gap: 8px; }
.sx .badge-pick .item b { margin-left: auto; }
.sx .held-note { background: var(--sx-soft); color: var(--ink); border-left: 4px solid var(--or); border-radius: 10px; padding: 8px 10px; font-size: .9rem; }
.sx .chisme.is-held { border-left-style: dashed; }
/* the ☰ Admin section */
.sx .adm-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.sx .adm-tabs a { flex: none; padding: .3em .8em; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; border: 2px solid var(--line);
  background: var(--card); color: var(--ink); font-weight: 900; text-decoration: none; font-size: .85rem; }
.sx .adm-tabs a[aria-current="page"] { background: var(--tq); border-color: var(--tq); color: #000; }
html[data-season="muertos"] .sx .adm-tabs a[aria-current="page"] { background: #c4135f; border-color: #c4135f; color: #fff; }
.sx .adm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sx .adm-stat { background: var(--sx-soft); border-radius: 12px; padding: 10px; }
.sx .adm-stat b { display: block; font-size: 1.5rem; }
.sx .adm-stat small { color: var(--muted); font-weight: 700; }
.sx .adm-frame { width: 100%; min-height: 78vh; border: 0; border-radius: 12px; background: var(--card); }
.sx .menu .adm-h { margin: 10px 2px 2px; font-size: .78rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: var(--ink2); }
.sx .nu-row { display: flex; gap: 10px; align-items: center; }
.sx .nu-row .nu-who { flex: 1; min-width: 0; }

/* v49.19 the profile header: the app icon's Fiesta look (turquoise #00C9CD, pink #FF1A7F + orange #FF6A0B confetti, the black
   Chisme bubble), a cartoon San Antonio skyline (Tower of the Americas…, the app's own turquoise skyline art as-is: tools/make_profile_skyline.py), and a picado strip. Fixed Fiesta colors (they're the icon's), so no theme vars here. NO yellow. */
@font-face { font-family: "Chisme Profile Display"; src: url("/static/fonts/chewy-site.woff") format("woff"); font-display: swap; }   /* Chewy (Apache-2.0), self-hosted */
.sx .p-hdr { height: 210px; overflow: hidden; background: #00C9CD url("/static/site/confetti.svg") center / 220px repeat; isolation: isolate; }   /* the turquoise sky (the app icon's #00C9CD) */
.sx .p-hdr-air { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; pointer-events: none; animation: sx-air-drift 18s ease-in-out infinite alternate; }
@keyframes sx-air-drift { from { transform: translateX(-6px); } to { transform: translateX(10px); } }
@media (prefers-reduced-motion: reduce) { .sx .p-hdr-air { animation: none; } }
html.reduce-motion .sx .p-hdr-air { animation: none; }
.sx .p-hdr::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .18)); }
.sx .p-hdr:not(.has-photo)::after { display: none; }
.sx .p-hdr-logo { position: absolute; z-index: 1; right: 5%; top: 10px; width: min(40%, 190px); height: auto; filter: drop-shadow(0 4px 0 #FF1A7F); transform: rotate(-4deg); }   /* the black bubble reads on turquoise (like the icon); a pink drop for pop */
.sx .p-hdr-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.sx .p-hdr-sky { position: absolute; z-index: 3; left: 0; right: 0; bottom: 8px; width: 100%; height: 92px; object-fit: cover;  object-position: bottom; pointer-events: none; }
.sx .p-hdr.has-photo .p-hdr-sky { height: 72px; opacity: .95; }
.sx .p-hdr-picado { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 8px;
  background: repeating-linear-gradient(90deg, #FF1A7F 0 22px, #FF6A0B 22px 44px, #00C9CD 44px 66px, #000 66px 88px, #C0C0C0 88px 110px); }
.sx .p-hdr-tools { position: absolute; z-index: 4; top: 8px; left: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.sx .p-hdr-tools .chip-btn { background: rgba(0, 0, 0, .78); color: #fff; box-shadow: 0 0 0 1.5px #C0C0C0; }
html[data-season="muertos"] .sx .profile .p-hdr { box-shadow: none; }
.sx .p-name { font-family: "Chisme Profile Display", "Arial Rounded MT Bold", var(--font-ui); font-weight: 400; font-size: 2rem; line-height: 1.05; letter-spacing: .3px; margin: 10px 0 2px; }
.sx .p-name .sx-bdg { font-family: var(--font-ui); font-size: .7em; }

/* v49.20 Homies in account setup: the featured step and the highlight on your own profile (turquoise + pink, no yellow) */
.sx .sx-hl { border: 3px solid #00C9CD; background: linear-gradient(135deg, rgba(0,201,205,.16), rgba(255,26,127,.10)); box-shadow: 0 4px 0 #FF1A7F; }
.sx .sx-step { display: inline-block; margin: 0 0 6px; padding: 2px 10px; border-radius: 999px; background: #000; color: #fff; font-weight: 900; font-size: .8rem; }
.sx .sx-setup h1 { margin: 4px 0; }
.sx .sx-setup .empty { padding: 10px 0; margin: 6px 0; }
.sx .sx-setup-btns { display: grid; gap: 8px; margin-top: 12px; }
.sx .sx-setup-btns .btn { min-height: 44px; text-align: center; }
.sx .p-homies { margin: 10px 0; padding: 12px 14px; }
.sx .p-homies-t { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.sx .p-homies-n { min-width: 28px; padding: 0 8px; border-radius: 999px; background: #00C9CD; color: #000; font-weight: 900; text-align: center; }
.sx .p-homies .btn { min-height: 44px; display: inline-flex; align-items: center; }


/* v49.22 the sign-up nudge sheet ("Join the Chisme"): turquoise / pink / orange on white or black, no yellow */
.sx-nudge .nudge-pitch { margin: 0 0 10px; font-size: 1.05rem; font-weight: 700; }
.sx-nudge .nudge-perks { list-style: none; margin: 0 0 14px; padding: 12px 14px; display: grid; gap: 8px; border-radius: 14px;
  background: var(--sx-soft); border-left: 4px solid var(--or); font-weight: 700; }
.sx-nudge .nudge-btns { display: grid; gap: 10px; }
.sx-nudge .btn { min-height: 48px; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.sx.sheet.is-nudge h2 { color: var(--pk, #FF1A7F); }
/* v49.23 (audit): readable on the Día de Muertos night sky + the hot-pink buttons. "‹ Back to the chisme" was dark teal on
   navy (1.1:1): light turquoise #5fe0ec on #01063B is ≈11:1. Pink buttons (Sign in, Join Chisme) carried the light lilac
   card colour (3.3:1): black bold on #FF1A7F is ≈5.8:1. */
html[data-season="muertos"] .sx-back { color: #5fe0ec; }
.sx .btn.pink, html[data-season="muertos"] .sx .btn.pink { color: #000; font-weight: 900; }   /* v49.28: scoped to .sx */

/* v49.27.1 type scale (phones) */
@media (max-width:1023px){
  .sx-chip{font-size:var(--t-xs)}
  .sx-lbl{font-size:var(--t-xs);font-weight:600}
  .sx-compose .sx-plus{font-size:var(--t-xs)}
  .sx-face{font-size:calc(1.1 * var(--legacy-rem))}
  .sx h1:not(.p-name){font-size:var(--t-xl)}
  .sx .h2{font-size:var(--t-lg)}
  .sx .small{font-size:var(--t-xs);font-weight:500}
  .sx .note{font-size:var(--t-sm)}
  /* Social posts, comments and profile */
  .sx .btn.sx-big{font-size:var(--t-md)}
  .sx .fld{font-size:var(--t-sm);font-weight:600}
  .sx .chk{font-size:var(--t-sm)}
  .sx .links{font-size:var(--t-sm)}
  .sx .new{font-size:var(--t-xs)}
  .sx .av-i{font-size:calc(1.1 * var(--legacy-rem))}
  .sx .more{font-size:calc(1.3 * var(--legacy-rem))}
  .sx .sx-pin{font-size:var(--t-xs)}
  .sx .aud{font-size:var(--t-xs)}
  .sx .meme-badge{font-size:var(--t-xs)}
  .sx .clip-tag{font-size:var(--t-xs)}
  .sx .clip-tt{font-size:calc(3 * var(--legacy-rem))}
  .sx .sx-play{font-size:calc(1.5 * var(--legacy-rem))}
  .sx .clip-t{font-size:var(--t-sm)}
  .sx .rx span:first-child{font-size:calc(1.15 * var(--legacy-rem))}
  /* Profile and sheets */
  .sx .p-counts b{font-size:var(--t-md)}
  .sx .ptabs a{font-size:var(--t-sm);min-height:44px;font-weight:600}
  .sx .sheet-card h2{font-size:var(--t-lg)}
  .sx.sheet-card h2{font-size:var(--t-lg)}
  .sx .x{font-size:var(--t-md)}
  .sx .item.sx-big span{font-size:var(--t-lg)}
  .sx .big-txt{font-size:var(--t-md)!important}
  .sx .thumb figcaption{font-size:var(--t-xs)}
  .sx .tool{font-size:calc(1.4 * var(--legacy-rem))}
  .sx .sx-label{font-size:var(--t-xs)}
  .sx .pill{font-size:var(--t-xs)}
  .sx .legal .form label{font-size:var(--t-sm)}
  .sx .rm{font-size:var(--t-xs)}
  .sx .rx{justify-content:center;font-size:var(--t-sm);min-height:40px;line-height:1.25;font-weight:600;flex:0 1 auto;width:40px;min-width:max-content;padding:6px 0;gap:2px;white-space:nowrap}
  /* Settings and legal */
  .sx .sx-legal-nav a{font-size:var(--t-xs)}
  .sx .sx-legal-body{font-size:var(--t-xs)}
  .sx .sx-legal-body h1{font-size:var(--t-xl)}
  .sx .sx-legal-body h2{font-size:var(--t-md)}
  .sx .sx-legal-body h3{font-size:var(--t-sm)}
  .sx .sx-legal-foot{font-size:var(--t-xs)}
  .sx .taco-h{font-size:var(--t-md)}
  .sx .held-note{font-size:var(--t-sm)}
  .sx .adm-tabs a{font-size:var(--t-xs)}
  .sx .adm-stat b{font-size:calc(1.5 * var(--legacy-rem))}
  .sx .menu .adm-h{font-size:var(--t-xs)}
  .sx .sx-step{font-size:var(--t-xs)}
  .sx .p-homies-t{font-size:var(--t-md)}
  .sx-nudge .nudge-pitch{font-size:var(--t-md)}
  .sx-nudge .btn{font-size:var(--t-md)}
  .sx{font-size:var(--t-md);line-height:var(--lh-body)}
  .sx .sx-txt{font-size:var(--t-md);font-weight:400}
  .sx .comment .sx-txt{font-size:var(--t-sm)}
  /* Post and comment layout */
  .sx .who b{font-size:var(--t-md);font-weight:600}
  .sx .who small{font-size:var(--t-xs);font-weight:500}
  .sx time{font-size:var(--t-xs);font-weight:500}
  .sx .btn{font-size:var(--t-sm);min-height:44px;font-weight:600}
  .sx .who>*{min-width:0;overflow-wrap:anywhere}
  .sx .by>*{min-width:0;overflow-wrap:anywhere}
  .sx .comment>*{min-width:0;overflow-wrap:anywhere}
  .sx .profile>*{min-width:0;overflow-wrap:anywhere}
  .sx .comment{grid-template-columns:32px minmax(0,1fr);padding:10px}
  .sx .p-name{font-size:calc(2 * var(--legacy-rem));overflow-wrap:anywhere}
  .sx h2{font-size:var(--t-lg)}
  .sx p{overflow-wrap:anywhere}
  .sx label{overflow-wrap:anywhere}
  .sx a{overflow-wrap:anywhere}
  .sx b{overflow-wrap:anywhere}
  .sx .comment b{font-size:var(--t-md);font-weight:600}
  .sx .card{padding:14px}
  .sx .card.comment{padding:10px}
  /* Content-sized targets wrap as units; Share keeps its accessible label. */
  @media(max-width:399px){   /* the full row only fits with the Share label from 400 px up */
    .sx .rx[aria-label="Share"] > span:last-child{display:none}
  }
  html.text-large .sx .rx[aria-label="Share"] > span:last-child{display:none}
  .sx .sx-feed .list{padding:0}
  .sx .react{gap:8px 0;margin-left:0;margin-right:0;flex-wrap:wrap;justify-content:space-between}
  .sx .rx{max-width:100%;overflow-wrap:anywhere}
  .sx .profile :is(.p-btns,.p-top,.p-user,.p-name,.ptabs,.ptabs a,.p-homies,.p-homies > *){min-width:0;overflow-wrap:anywhere}
  .sx .p-btns{flex-wrap:wrap;justify-content:flex-end}
  .sx code{font-size:max(13px,var(--t-xs));overflow-wrap:anywhere}
  .sx input:not([type=checkbox]),.sx textarea,.sx select{font-size:max(16px,var(--t-md))!important}
  .sx .p-homies .small{font-size:var(--t-md);font-weight:400}
  .sx .p-top .av-i{font-size:calc(2.6 * var(--legacy-rem))}
  html[data-season="muertos"] .sx .h2{color:#f3e8ff}
}

.sx .sx-err { display: block; color: var(--sx-hot); font-size: .85rem; font-weight: 700; margin-top: 4px; }
.sx .sx-err[hidden] { display: none; }
.sx .fld input[aria-invalid="true"] { border-color: var(--sx-hot); }
