/* ════════════════════════════════════════════════════════════════════
   Jain Community — /community/
   Everything is scoped under .jc and prefixed jc- so nothing collides with
   Bootstrap or the site design system loaded before it.
   Palette: the site's maroon + gold, with the five Jain-flag colours as
   category and avatar accents.
   ════════════════════════════════════════════════════════════════════ */
.jc {
  --bg: #faf6f1; --surface: #fff; --surface-2: #fbf7f2; --line: #ece3d9; --line-2: #e2d6c9;
  --fg: #2a1d1b; --fg-2: #6b5a55; --fg-3: #9b8b85;
  --maroon: #7a1620; --maroon-2: #5c0f17; --maroon-soft: #f7e9ea;
  --gold: #b8860b; --gold-soft: #f8edd3; --kesar: #e0892a; --kesar-soft: #fdf0e0;
  --good: #1f7a46; --good-soft: #e4f4ea;
  --shadow-s: 0 1px 2px rgba(42, 29, 27, .05), 0 2px 8px rgba(42, 29, 27, .04);
  --shadow: 0 1px 2px rgba(42, 29, 27, .06), 0 10px 30px rgba(42, 29, 27, .07);
  --shadow-l: 0 20px 50px rgba(92, 15, 23, .16);
  --r: 18px; --r-s: 12px;
  --ui: "Hind", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Martel", Georgia, "Nirmala UI", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  background: var(--bg);
  color: var(--fg);
  font: 15.5px/1.6 var(--ui);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 56px;
}
.jc *, .jc *::before, .jc *::after { box-sizing: border-box; }
.jc a { color: inherit; text-decoration: none; }
.jc h1, .jc h2, .jc h3 { font-family: var(--display); color: var(--fg); margin: 0; line-height: 1.25; text-wrap: balance; letter-spacing: -.005em; }
.jc button, .jc input, .jc textarea, .jc select { font: inherit; color: inherit; }
.jc button { cursor: pointer; }
.jc p { margin: 0; }
.jc [hidden] { display: none !important; }
.jc .num { font-variant-numeric: tabular-nums; }
.jc-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jc :focus-visible { outline: 2.5px solid #2b64c9; outline-offset: 2px; border-radius: 6px; }
.jc-muted { color: var(--fg-3); font-size: 13px; }
.jc-eyebrow { font: 700 12px/1 var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px !important; }
.jc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cat, var(--maroon)); display: inline-block; flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--cat, var(--maroon)) 18%, transparent); }

/* ── Avatars: initials on a flag-tone gradient ───────────────────── */
.jc-av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; font: 700 14px/1 var(--ui); letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 3px 10px rgba(0,0,0,.12); position: relative; overflow: hidden; }
.jc-av::after { content: ""; position: absolute; inset: 0 0 50% 0; background: linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,0)); }
.jc-av--s { width: 34px; height: 34px; font-size: 12px; }
.jc-av--l { width: 50px; height: 50px; font-size: 16px; }
.jc-av--xl { width: 96px; height: 96px; font-size: 32px; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--gold), 0 14px 30px rgba(92,15,23,.25); }
.jc-tone-0 { background: linear-gradient(135deg, #e53935, #7a1620); }
.jc-tone-1 { background: linear-gradient(135deg, #ffc928, #b8860b); color: #3b1d0b; }
.jc-tone-2 { background: linear-gradient(135deg, #ff7a45, #c2410c); }
.jc-tone-3 { background: linear-gradient(135deg, #2eb86a, #0b6b35); }
.jc-tone-4 { background: linear-gradient(135deg, #4a4a63, #12121c); }
.jc-av--team { background: radial-gradient(circle at 35% 30%, #fff8ec, #f6eacb); color: var(--maroon); font-family: var(--display); font-size: 16px; box-shadow: 0 0 0 2px var(--gold), 0 3px 10px rgba(0,0,0,.12); }

/* ── Buttons, inputs, chips ──────────────────────────────────────── */
.jc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); font-weight: 600; font-size: 15px; transition: transform .15s var(--ease), box-shadow .2s, background .2s, border-color .2s; white-space: nowrap; }
.jc-btn--primary { background: linear-gradient(135deg, #8f1b26, var(--maroon) 55%, var(--maroon-2)); border-color: transparent; color: #fff !important; box-shadow: 0 6px 18px rgba(122,22,32,.28); }
.jc-btn--primary:hover { box-shadow: 0 10px 24px rgba(122,22,32,.36); transform: translateY(-1px); }
.jc-btn--primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.jc-btn--soft { background: var(--surface-2); color: var(--fg-2); }
.jc-btn--soft:hover { border-color: var(--maroon); color: var(--maroon); }
.jc-btn--block { width: 100%; }
.jc-link { border: 0; background: none; padding: 4px 0; color: var(--maroon); font-weight: 600; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.jc-input { width: 100%; border: 1.5px solid var(--line); border-radius: var(--r-s); background: var(--surface-2); padding: 10px 14px; font-size: 15px; transition: border-color .15s, box-shadow .15s, background .15s; }
.jc-input:focus { outline: 0; border-color: var(--maroon); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--maroon) 12%, transparent); }
.jc-input--title { font-size: 17px; font-weight: 600; height: 50px; }
.jc-input--body { resize: vertical; min-height: 84px; line-height: 1.55; }
.jc-label { display: block; font-size: 13px; font-weight: 600; color: var(--fg-2); margin: 4px 0 -2px; }
.jc-label .jc-input { margin-top: 6px; font-weight: 400; }
.jc-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.jc-chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  background: var(--surface-2); color: var(--fg-2); border: 1px solid var(--line); position: relative; z-index: 1; }
.jc-chip--cat { background: color-mix(in srgb, var(--cat) 10%, #fff); color: color-mix(in srgb, var(--cat) 80%, #000); border-color: color-mix(in srgb, var(--cat) 25%, transparent); }
.jc-chip--cat .jc-dot { width: 6px; height: 6px; box-shadow: none; }
.jc-chip--kind { background: var(--gold-soft); color: #7a5600; border-color: #efdcae; }
.jc-chip--ok { background: var(--good-soft); color: var(--good); border-color: #bfe3cd; }
.jc-chip--pin { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.jc-tag { font-size: 12.5px; color: var(--fg-3); position: relative; z-index: 1; }
.jc-tag:hover { color: var(--maroon); }
.jc-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--maroon); color: #fff; font-size: 11px; font-weight: 700; }

/* author line, level and role */
.jc-author { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; position: relative; z-index: 1; }
.jc-author b { font-weight: 600; color: var(--fg); }
.jc-author a:hover b { color: var(--maroon); }
.jc-lvl { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
  color: var(--lvl); background: color-mix(in srgb, var(--lvl) 12%, #fff); border: 1px solid color-mix(in srgb, var(--lvl) 30%, transparent); white-space: nowrap; }
.jc-role { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: #1d5fd0; }
.jc-role--team { color: var(--maroon); }

/* ── Hero ────────────────────────────────────────────────────────── */
.jc-hero { position: relative; overflow: hidden; color: #fff; padding: 34px 0 0;
  background: radial-gradient(ellipse at 85% 0%, #a3283a 0%, transparent 55%), linear-gradient(135deg, #5c0f17 0%, #7a1620 45%, #8f1b26 100%); }
.jc-hero::before, .jc-hero::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(226,194,117,.18); pointer-events: none; }
.jc-hero::before { width: 520px; height: 520px; right: -140px; top: -260px; box-shadow: 0 0 0 40px rgba(226,194,117,.05), 0 0 0 90px rgba(226,194,117,.04); }
.jc-hero::after { width: 300px; height: 300px; left: -120px; bottom: -200px; box-shadow: 0 0 0 30px rgba(226,194,117,.05); }
.jc-hero__in { max-width: 1240px; margin: 0 auto; padding: 0 20px 24px; display: flex; gap: 28px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; position: relative; z-index: 1; }
.jc-hero__text { max-width: 640px; }
.jc-hero .jc-eyebrow { color: #e2c275; }
.jc-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 42px); font-weight: 800; text-shadow: 0 4px 24px rgba(0,0,0,.25); }
.jc-hero h1 .bi { font-size: .8em; color: #e2c275; }
.jc-hero__lede { color: #f6e3c8; font-size: 16px; margin-top: 10px !important; max-width: 60ch; }
.jc-hero__stats { display: grid; grid-template-columns: repeat(4, minmax(84px, 1fr)); gap: 10px; }
.jc-hero__stats div { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 16px; padding: 12px 10px; text-align: center; }
.jc-hero__stats b { display: block; font: 800 24px/1.1 var(--display); color: #fff; }
.jc-hero__stats span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #e2c275; }
.jc-catstrip { max-width: 1240px; margin: 0 auto; padding: 0 20px 16px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; position: relative; z-index: 1; }
.jc-catstrip::-webkit-scrollbar { display: none; }
.jc-catstrip a { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: #fbe9d8; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); transition: background .2s, transform .2s var(--ease); }
.jc-catstrip a .jc-dot { box-shadow: 0 0 0 2px rgba(255,255,255,.5); }
.jc-catstrip a:hover { background: rgba(255,255,255,.16); transform: translateY(-1px); }
.jc-catstrip a[aria-current] { background: #fff; color: var(--maroon); border-color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.jc-catstrip .n { font-size: 11px; opacity: .75; }

/* ── Layout ──────────────────────────────────────────────────────── */
.jc-layout { max-width: 1240px; margin: 0 auto; padding: 22px 20px 0; display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .jc-layout { grid-template-columns: 320px minmax(0, 1fr); } .jc-rail { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; } }
@media (min-width: 1180px) {
  .jc-layout { grid-template-columns: 310px minmax(0, 1fr) 290px; align-items: start; }
  .jc-rail { grid-column: auto; display: flex; align-items: stretch; position: sticky; top: 84px; }
  .jc-compose-col { position: sticky; top: 84px; }
}
.jc-layout--thread { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .jc-layout--thread { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } .jc-layout--thread .jc-rail { grid-column: auto; display: flex; align-items: stretch; position: sticky; top: 84px; } }
.jc-narrow { max-width: 780px; margin: 0 auto; padding: 24px 20px 0; }
.jc-narrow--wide { max-width: 900px; }
.jc-flash { max-width: 1200px; margin: 16px auto 0; padding: 12px 16px; border-radius: var(--r-s); background: var(--good-soft); color: var(--good); font-weight: 600; display: flex; gap: 8px; align-items: center; }
.jc-flash--err { background: var(--maroon-soft); color: var(--maroon); margin: 0 0 14px; }
.jc-note { background: var(--kesar-soft); border: 1px solid #f5d9b4; border-radius: var(--r-s); padding: 10px 14px; font-size: 14px; color: #7a4a10; margin: 10px 0; }
.jc-note a { color: var(--maroon); font-weight: 600; text-decoration: underline; }
.jc-note--center { text-align: center; }

/* ── Composer ────────────────────────────────────────────────────── */
.jc-compose { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); position: relative; overflow: hidden; }
.jc-compose::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #e53935 0 20%, #ffc928 20% 40%, #fff 40% 60%, #009432 60% 80%, #1a1a24 80%); }
.jc-compose__who { display: flex; gap: 10px; align-items: center; }
.jc-compose__who b { display: block; font-size: 15px; }
.jc-compose__who small { color: var(--fg-3); font-size: 12.5px; }
.jc-compose__more { display: flex; flex-direction: column; gap: 10px; }
.jc-compose-col .jc-compose__more { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .45s var(--ease), opacity .3s; }
.jc-compose-col .jc-compose.is-open .jc-compose__more { max-height: 900px; opacity: 1; }
.jc-compose__foot { font-size: 12px; color: var(--fg-3); text-align: center; }
.jc-compose__foot a { color: var(--maroon); }
.jc-compose--page { padding: 26px; gap: 14px; }
.jc-compose--page h1 { font-size: 28px; }
.jc-compose__actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.jc-kinds { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.jc-kind { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2);
  font-size: 11px; font-weight: 600; color: var(--fg-2); transition: all .2s var(--ease); cursor: pointer; text-align: center; }
.jc-kind .bi { font-size: 17px; }
.jc-kind:hover { border-color: var(--maroon); color: var(--maroon); }
.jc-kind.is-on { background: var(--maroon); border-color: var(--maroon); color: #fff; box-shadow: 0 6px 16px rgba(122,22,32,.25); }
.jc-kinds--big .jc-kind { padding: 12px 4px; font-size: 13px; }
.jc-kinds--big .jc-kind .bi { font-size: 22px; }
.jc-kindbox { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--r-s); background: var(--gold-soft); border: 1px dashed #e7cf95; }
.jc-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.jc-catpick { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; font-weight: 600; color: var(--fg-2); cursor: pointer; transition: all .2s; }
.jc-catpick:hover { border-color: var(--cat); }
.jc-catpick.is-on { background: var(--cat); border-color: var(--cat); color: #fff; }
.jc-catpick.is-on .jc-dot { background: #fff; box-shadow: none; }
.jc-seo { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-s); padding: 12px 14px; font-size: 13px; }
.jc-seo__u { color: #1f7a46; font-size: 12px; margin-top: 6px; }
.jc-seo__t { color: #1a0dab; font-size: 18px; line-height: 1.3; }
.jc-seo__d { color: var(--fg-2); }

/* ── Feed head: tabs + search ────────────────────────────────────── */
.jc-feedhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; position: sticky; top: 64px; z-index: 5;
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 6px 0; }
.jc-tabs { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; position: relative; overflow-x: auto; scrollbar-width: none; }
.jc-tabs::-webkit-scrollbar { display: none; }
.jc-tabs a { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--fg-2); white-space: nowrap; transition: color .2s; }
.jc-tabs a[aria-current] { color: #fff; }
.jc-tabs a[aria-current]::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 999px; background: linear-gradient(135deg, #8f1b26, var(--maroon)); box-shadow: 0 4px 12px rgba(122,22,32,.25); }
.jc-tabs .n { font-size: 11px; background: var(--kesar-soft); color: #a3530b; border-radius: 999px; padding: 0 6px; }
.jc-search { position: relative; flex: 1; min-width: 180px; max-width: 300px; }
.jc-search .bi { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--fg-3); }
.jc-search input { width: 100%; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 0 14px 0 38px; font-size: 14px; transition: box-shadow .2s, border-color .2s; }
.jc-search input:focus { outline: 0; border-color: var(--maroon); box-shadow: 0 0 0 4px color-mix(in srgb, var(--maroon) 10%, transparent); }

/* ── Feed card ───────────────────────────────────────────────────── */
.jc-list { display: flex; flex-direction: column; gap: 10px; }
.jc-card { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; padding: 16px 16px 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-s); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; overflow: hidden; }
.jc-card::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--cat); opacity: .0; transition: opacity .25s; }
.jc-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--cat) 35%, var(--line)); }
.jc-card:hover::before { opacity: 1; }
.jc-card.is-pinned { background: linear-gradient(135deg, #fffaf2, #fff 60%); border-color: #efdcae; }
.jc-card.is-pinned::before { opacity: 1; background: var(--gold); }
.jc-card__main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.jc-card__top { display: flex; flex-wrap: wrap; gap: 6px; }
.jc-card__title { font-family: var(--ui) !important; font-size: 17.5px; font-weight: 700; line-height: 1.35; letter-spacing: -.005em; }
.jc-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }   /* whole card clickable, one real link for crawlers */
.jc-card:hover .jc-card__title { color: var(--maroon); }
.jc-card__snip { color: var(--fg-2); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jc-card__event { font-size: 13px; font-weight: 600; color: #7a5600; background: var(--gold-soft); padding: 4px 10px; border-radius: 8px; align-self: flex-start; }
.jc-card__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 13px; color: var(--fg-3); }
.jc-last { font-size: 12.5px; }
.jc-card__acts { display: flex; flex-direction: column; gap: 6px; align-items: stretch; position: relative; z-index: 1; }
.jc-count { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 62px; height: 54px; border-radius: 14px; background: var(--maroon-soft); color: var(--maroon); line-height: 1.05; }
.jc-count b { font-size: 18px; font-weight: 800; }
.jc-count span { font-size: 10.5px; font-weight: 600; }
.jc-count.is-zero { background: var(--surface-2); color: var(--fg-3); }
.jc-quickrx, .jc-save { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 32px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--fg-2); transition: all .2s var(--ease); }
.jc-quickrx .e { font-size: 15px; display: inline-block; }
.jc-quickrx:hover, .jc-save:hover { border-color: var(--kesar); background: var(--kesar-soft); }
.jc-quickrx.is-on { background: var(--kesar-soft); border-color: var(--kesar); color: var(--fg); font-weight: 700; }
.jc-save.is-on { color: var(--maroon); border-color: color-mix(in srgb, var(--maroon) 40%, transparent); background: var(--maroon-soft); }
@media (max-width: 600px) {
  .jc-card { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px; }
  .jc-card__side { display: none; }
  .jc-card__acts { flex-direction: row; justify-content: flex-start; }
  .jc-count { flex-direction: row; gap: 5px; width: auto; height: 34px; padding: 0 12px; border-radius: 10px; }
  .jc-count b { font-size: 15px; }
  .jc-quickrx, .jc-save { height: 34px; padding: 0 12px; }
}

/* skeleton while "load more" fetches */
.jc-skel { height: 118px; border-radius: var(--r); background: linear-gradient(90deg, #f3ece4 0%, #fbf7f2 50%, #f3ece4 100%); background-size: 200% 100%; animation: jc-shimmer 1.2s infinite; }
@keyframes jc-shimmer { to { background-position: -200% 0; } }

/* ── Pager / load more / empty ───────────────────────────────────── */
.jc-pager { display: flex; justify-content: center; gap: 6px; padding: 18px 0 6px; flex-wrap: wrap; }
.jc-pager a, .jc-pager span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; }
.jc-pager a:hover { border-color: var(--maroon); color: var(--maroon); }
.jc-pager [aria-current] { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.jc-more { text-align: center; padding: 20px 0 6px; }
.jc-more .jc-btn { height: 48px; padding: 0 26px; }
.jc-more .jc-muted { margin-top: 8px; }
.jc-empty { text-align: center; padding: 40px 24px; background: var(--surface); border: 1.5px dashed var(--line-2); border-radius: var(--r); }
.jc-empty--small { padding: 26px 20px; }
.jc-empty--page { max-width: 640px; margin: 40px auto; }
.jc-empty__art { font-size: 54px; line-height: 1; margin-bottom: 12px; animation: jc-float 4s ease-in-out infinite; }
.jc-empty h1, .jc-empty h2, .jc-empty h3 { font-size: 22px; margin-bottom: 6px; }
.jc-empty p { color: var(--fg-2); margin-bottom: 14px; }
@keyframes jc-float { 50% { transform: translateY(-6px) rotate(-4deg); } }
.jc-prompts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.jc-prompts button { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); font-weight: 600; font-size: 14px; transition: all .2s var(--ease); }
.jc-prompts button:hover { border-color: var(--maroon); color: var(--maroon); transform: translateY(-2px); box-shadow: var(--shadow-s); }

/* ── Right rail ──────────────────────────────────────────────────── */
.jc-rail { display: flex; flex-direction: column; gap: 14px; }
.jc-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow-s); }
.jc-box h2 { font: 700 15px/1.3 var(--ui); margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.jc-box h2 .bi { color: var(--gold); }
.jc-box > p { font-size: 14px; color: var(--fg-2); margin-bottom: 12px; }
.jc-box--join { background: linear-gradient(160deg, #fff8ec, #fff 65%); border-color: #efdcae; }
.jc-box--join .jc-btn + .jc-btn { margin-top: 8px; }
.jc-me { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.jc-me b { display: block; }
.jc-me__links { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.jc-me__links a { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 10px; font-size: 14px; font-weight: 500; }
.jc-me__links a:hover { background: var(--surface-2); color: var(--maroon); }
.jc-progress { height: 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; margin: 6px 0; }
.jc-progress span { display: block; height: 100%; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, #ffc928, #e0892a, #7a1620); transition: width 1s var(--ease); }
.jc-leaders { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.jc-leaders li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.jc-leaders li a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jc-leaders li a:hover { color: var(--maroon); }
.jc-rank { width: 22px; text-align: center; font: 800 14px var(--display); color: var(--gold); }
.jc-tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
.jc-tagcloud a { padding: 4px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--fg-2); transition: all .2s; }
.jc-tagcloud a:hover { border-color: var(--maroon); color: var(--maroon); transform: translateY(-1px); }
.jc-tagcloud small { color: var(--fg-3); font-weight: 500; }
.jc-punya { list-style: none; margin: 0 0 12px; padding: 0; }
.jc-punya li { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.jc-punya b { color: var(--good); }
.jc-levels { display: flex; flex-wrap: wrap; gap: 5px; }
.jc-levels--big .jc-lvl { height: 30px; padding: 0 12px; font-size: 13px; }
.jc-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.jc-links a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--line); }
.jc-links a:hover { color: var(--maroon); }
.jc-links .bi { color: var(--fg-3); font-size: 12px; }
.jc-railfoot { text-align: center; font-size: 12.5px; color: var(--fg-3); }
.jc-railfoot a:hover { color: var(--maroon); }
.jc-ministats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 6px 0 10px; }
.jc-ministats span { text-align: center; background: var(--surface-2); border-radius: 10px; padding: 6px 2px; font-size: 11px; color: var(--fg-3); }
.jc-ministats b { display: block; font-size: 16px; color: var(--fg); }
.jc-tips { margin: 0; padding-left: 18px; font-size: 14px; color: var(--fg-2); display: flex; flex-direction: column; gap: 6px; }

/* ── Thread ──────────────────────────────────────────────────────── */
.jc-layout--thread { padding-top: 18px; }
.jc-thread-col { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.jc-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--fg-2); }
.jc-back:hover { color: var(--maroon); }
.jc-thread { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 26px; position: relative; overflow: hidden; }
.jc-thread::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--cat), color-mix(in srgb, var(--cat) 40%, #ffc928)); }
.jc-thread__meta { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.jc-thread__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--fg-3); margin-top: 3px; }
.jc-thread h1 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; margin-bottom: 12px; }
.jc-thread__body { font-size: 16.5px; line-height: 1.7; color: #3a2b28; }
.jc-thread__body p, .jc-reply__body p { margin: 0 0 12px; }
.jc-thread__body p:last-child, .jc-reply__body p:last-child { margin-bottom: 0; }
.jc-thread__body a, .jc-reply__body a { color: var(--maroon); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--maroon) 35%, transparent); text-underline-offset: 3px; }
.jc-thread__body blockquote, .jc-reply__body blockquote { margin: 0 0 12px; padding: 8px 14px; border-left: 3px solid var(--gold); background: var(--gold-soft); border-radius: 0 10px 10px 0; color: #5a4a20; }
.jc .jc-gloss { text-decoration-style: dotted !important; }
.jc .jc-mention, .jc .jc-hashtag { text-decoration: none !important; font-weight: 600; background: var(--maroon-soft); padding: 0 4px; border-radius: 5px; }
.jc-eventcard { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--gold-soft); border: 1px solid #efdcae; margin-bottom: 14px; }
.jc-eventcard__date { width: 58px; height: 58px; border-radius: 14px; background: linear-gradient(135deg, #8f1b26, #5c0f17); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; flex: none; }
.jc-eventcard__date b { font: 800 24px var(--display); }
.jc-eventcard__date span { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #e2c275; }
.jc-eventcard div:last-child { display: flex; flex-direction: column; font-size: 14px; }
.jc-source { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); font-size: 14px; }
.jc-source > .bi:first-child { font-size: 22px; color: var(--maroon); }
.jc-source span { flex: 1; display: flex; flex-direction: column; }
.jc-source:hover { border-color: var(--maroon); }
.jc-thread__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.jc-thread__tags a { font-size: 13px; padding: 3px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--fg-2); font-weight: 600; }
.jc-thread__tags a:hover { border-color: var(--maroon); color: var(--maroon); }
.jc-thread__stats { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; font-size: 13.5px; color: var(--fg-3); }
.jc-thread__stats b { color: var(--fg); }

/* poll */
.jc-poll { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.jc-poll__opt { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--surface); text-align: left; font-weight: 600; transition: border-color .2s, transform .15s var(--ease); }
.jc-poll__opt:hover { border-color: var(--maroon); }
.jc-poll__bar { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--gold-soft), #f3dfae); transition: width .9s var(--ease); z-index: 0; }
.jc-poll.is-voted .jc-poll__bar { width: var(--pct); }
.jc-poll__label, .jc-poll__pct { position: relative; z-index: 1; }
.jc-poll__pct { color: var(--fg-2); font-weight: 800; }
.jc-poll__opt.is-mine { border-color: var(--maroon); }
.jc-poll__opt.is-mine .jc-poll__label::after { content: " ✓"; color: var(--maroon); }
.jc-poll__opt.is-mine .jc-poll__bar { background: linear-gradient(90deg, #f6dcdf, #f0c7cc); }

/* reactions */
.jc-rx { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.jc-rx button { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--fg-2); transition: all .2s var(--ease); position: relative; }
.jc-rx button .e { font-size: 18px; display: inline-block; line-height: 1; }
.jc-rx button .num { color: var(--fg-3); }
.jc-rx button:hover { border-color: var(--kesar); background: var(--kesar-soft); transform: translateY(-1px); }
.jc-rx button[aria-pressed="true"] { background: var(--kesar-soft); border-color: var(--kesar); color: var(--fg); box-shadow: 0 4px 12px rgba(224,137,42,.2); }
.jc-rx button[aria-pressed="true"] .num { color: var(--fg); }
@media (max-width: 520px) { .jc-rx button .l { display: none; } .jc-rx button { padding: 0 12px; } }
.jc-thread__tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.jc-tool { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid transparent; background: none; font-size: 13.5px; font-weight: 600; color: var(--fg-2); transition: all .2s; }
.jc-tool:hover { background: var(--surface-2); border-color: var(--line); color: var(--maroon); }
.jc-tool.is-on { color: var(--maroon); background: var(--maroon-soft); }
.jc-tool--wa { color: #128c4b; }
.jc-tool--wa:hover { color: #128c4b; background: #e6f7ec; }

/* replies */
.jc-replies-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 6px 0 12px; }
.jc-replies-head h2 { font: 700 18px var(--ui); }
.jc-order { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.jc-order a { padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--fg-2); }
.jc-order a[aria-current] { background: var(--maroon); color: #fff; }
.jc-replies { display: flex; flex-direction: column; gap: 12px; }
.jc-reply { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; scroll-margin-top: 90px; }
.jc-reply__bubble { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 6px 18px 18px 18px; padding: 12px 16px; box-shadow: var(--shadow-s); transition: border-color .3s, box-shadow .3s; }
.jc-reply.is-best > .jc-reply__bubble { background: linear-gradient(160deg, #eaf7ef, #fff 70%); border-color: #a9dcbc; box-shadow: 0 6px 20px rgba(31,122,70,.12); }
.jc-reply.is-removed > .jc-reply__bubble { background: var(--surface-2); box-shadow: none; }
.jc-reply:target > .jc-reply__bubble, .jc-reply.is-flash > .jc-reply__bubble { border-color: var(--kesar); box-shadow: 0 0 0 4px var(--kesar-soft); }
.jc-reply__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; color: var(--fg-3); margin-bottom: 4px; }
.jc-trad { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--gold-soft); color: #7a5600; border: 1px solid #efdcae; }
.jc-best { display: inline-flex; align-items: center; gap: 4px; color: var(--good); font-weight: 700; font-size: 12px; }
.jc-perma { margin-left: auto; color: var(--fg-3); font-weight: 600; }
.jc-perma:hover { color: var(--maroon); }
.jc-reply__body { font-size: 15.5px; color: #3a2b28; }
.jc-reply__acts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; }
.jc-reply__acts button { border: 0; background: none; padding: 4px 0; color: var(--fg-3); font-weight: 600; font-size: 13px; display: inline-flex; gap: 5px; align-items: center; transition: color .15s; }
.jc-reply__acts button:hover, .jc-reply__acts button.is-on { color: var(--maroon); }
.jc-rrx.is-on { color: #a3530b !important; }
.jc-markbest.is-on { color: var(--good) !important; }
.jc-children { margin-top: 12px; padding-left: 4px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.jc-reply--child { grid-template-columns: 30px minmax(0, 1fr); padding-left: 10px; }
.jc-reply--child .jc-av { width: 30px; height: 30px; font-size: 11px; }
.jc-reply--child .jc-reply__bubble { box-shadow: none; background: var(--surface-2); }
@media (max-width: 520px) { .jc-reply { grid-template-columns: minmax(0, 1fr); } .jc-reply > .jc-av { display: none; } .jc-thread { padding: 18px; } }

/* reply box */
.jc-replybox { position: sticky; bottom: 0; z-index: 6; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 22px 22px 0 0; box-shadow: 0 -10px 30px rgba(42,29,27,.08); padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px)); }
.jc-replybox__to { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--maroon); background: var(--maroon-soft); border-radius: 999px; padding: 4px 6px 4px 12px; margin-bottom: 8px; width: fit-content; }
.jc-replybox__to button { border: 0; background: rgba(122,22,32,.12); border-radius: 50%; width: 22px; height: 22px; line-height: 1; color: var(--maroon); }
.jc-replybox__quick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 10px; align-items: center; }
.jc-replybox__quick::-webkit-scrollbar { display: none; }
.jc-replybox__quick button { flex: none; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; font-weight: 600; color: var(--fg-2); }
.jc-replybox__quick button:hover { border-color: var(--maroon); color: var(--maroon); }
.jc-trad-pick select { height: 30px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-size: 12.5px; padding: 0 10px; color: var(--fg-2); }
.jc-replybox__row { display: flex; gap: 10px; align-items: flex-end; }
.jc-replybox__row textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 200px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface-2); padding: 10px 14px; resize: none; line-height: 1.5; }
.jc-replybox__row textarea:focus { outline: 0; border-color: var(--maroon); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--maroon) 10%, transparent); }
.jc-send { width: 46px; height: 46px; border-radius: 50%; border: 0; flex: none; display: grid; place-items: center; color: #fff; font-size: 17px;
  background: linear-gradient(135deg, #8f1b26, #5c0f17); box-shadow: 0 6px 16px rgba(122,22,32,.3); transition: transform .15s var(--ease), opacity .2s; }
.jc-send:disabled { opacity: .35; box-shadow: none; }
.jc-send:not(:disabled):hover { transform: scale(1.06) rotate(-8deg); }

/* related */
.jc-related { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.jc-related h2 { font: 700 16px var(--ui); margin-bottom: 10px; }
.jc-related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.jc-related li a { display: grid; grid-template-columns: 10px 1fr; column-gap: 8px; align-items: baseline; padding: 8px 0; font-weight: 600; font-size: 14.5px; border-bottom: 1px dashed var(--line); }
.jc-related li a:hover { color: var(--maroon); }
.jc-related small { grid-column: 2; color: var(--fg-3); font-weight: 500; font-size: 12px; }
@media (max-width: 640px) { .jc-related ul { grid-template-columns: 1fr; } }

/* dialog, toast */
.jc-dialog { border: 0; border-radius: 22px; padding: 0; max-width: 440px; width: calc(100% - 32px); box-shadow: var(--shadow-l); }
.jc-dialog::backdrop { background: rgba(42,29,27,.45); backdrop-filter: blur(3px); }
.jc-dialog__in { padding: 22px; display: flex; flex-direction: column; gap: 10px; font-family: var(--ui); }
.jc-dialog__in h2 { font-size: 20px; }
.jc-radio { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; font-size: 14.5px; }
.jc-radio:has(input:checked) { border-color: var(--maroon); background: var(--maroon-soft); }
.jc-dialog__acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.jc-toast { position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 2000; background: #2a1d1b; color: #fff; padding: 12px 18px;
  border-radius: 999px; font: 600 14px var(--ui, system-ui); box-shadow: 0 12px 30px rgba(0,0,0,.25); display: flex; gap: 10px; align-items: center; max-width: calc(100% - 32px); }
.jc-toast a { color: #ffc928; text-decoration: underline; }

/* reaction petal burst */
.jc-petal { position: fixed; z-index: 2100; pointer-events: none; font-size: 16px; will-change: transform, opacity; }

/* ── Profile ─────────────────────────────────────────────────────── */
.jc-profile { max-width: 900px; margin: 0 auto; padding: 26px 20px 0; }
.jc-profile__card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.jc-profile__card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 80px; background: linear-gradient(135deg, #5c0f17, #7a1620 60%, #a3283a); }
.jc-profile__card > * { position: relative; }
.jc-profile__card .jc-av--xl { align-self: start; margin-top: 18px; }
.jc-profile__id { padding-top: 64px; }
.jc-profile__id h1 { font-size: 28px; }
.jc-profile__bio { margin: 8px 0 !important; color: var(--fg-2); }
.jc-profile__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 64px; }
.jc-profile__stats div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; text-align: center; }
.jc-profile__stats b { display: block; font: 800 22px var(--display); }
.jc-profile__stats span { font-size: 11px; color: var(--fg-3); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 760px) { .jc-profile__card { grid-template-columns: 1fr; text-align: center; } .jc-profile__card .jc-av--xl { justify-self: center; } .jc-profile__id, .jc-profile__stats { padding-top: 0; } }
.jc-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.jc-badgechip { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: linear-gradient(135deg, #fff8ec, #f6eacb); border: 1px solid #e7cf95; font-size: 13px; font-weight: 700; color: #7a5600; }
.jc-editprofile { margin-top: 14px; }
.jc-editprofile summary { cursor: pointer; font-weight: 700; color: var(--maroon); }
.jc-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.jc-replylist { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.jc-replyitem { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.jc-replyitem:hover { border-color: var(--maroon); }
.jc-narrow .jc-tabs { width: fit-content; margin: 18px 0 12px; }

/* ── Notifications ───────────────────────────────────────────────── */
.jc-pagetitle { font-size: 28px; margin-bottom: 16px !important; display: flex; gap: 10px; align-items: center; }
.jc-notifs { display: flex; flex-direction: column; gap: 8px; }
.jc-notif { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; transition: border-color .2s, transform .2s var(--ease); }
.jc-notif:hover { border-color: var(--maroon); transform: translateX(3px); }
.jc-notif.is-new { background: linear-gradient(90deg, var(--kesar-soft), #fff 60%); border-color: #f5d9b4; }
.jc-notif small { display: block; }
.jc-notif__ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(135deg, #8f1b26, #5c0f17); }
.jc-notif--best .jc-notif__ic { background: linear-gradient(135deg, #2eb86a, #0b6b35); }
.jc-notif--mention .jc-notif__ic { background: linear-gradient(135deg, #ffc928, #b8860b); }

/* ── Guidelines ──────────────────────────────────────────────────── */
.jc-prose h1 { font-size: 34px; margin-bottom: 10px; }
.jc-prose h2 { font-size: 22px; margin: 28px 0 10px; }
.jc-prose p { margin-bottom: 12px; color: var(--fg-2); font-size: 16px; }
.jc-prose a:not(.jc-btn) { color: var(--maroon); text-decoration: underline; }
.jc-lede { font-size: 18px !important; }
.jc-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 22px 0; }
.jc-rules div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow-s); }
.jc-rules span { font-size: 28px; }
.jc-rules h2 { font-size: 17px !important; margin: 6px 0 4px !important; font-family: var(--ui) !important; }
.jc-rules p { font-size: 14px !important; margin: 0 !important; }

@media (prefers-reduced-motion: reduce) {
  .jc *, .jc *::before, .jc *::after { animation: none !important; transition: none !important; }
}

/* ── Narrow screens: every grid/flex child may shrink, nothing pushes the page wider ── */
.jc { overflow-x: clip; }
.jc-layout > *, .jc-feedhead > *, .jc-hero__in > * { min-width: 0; }
.jc-kinds { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.jc-kind span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.jc-tabs { max-width: 100%; }
@media (max-width: 600px) {
  .jc-hero { padding-top: 24px; }
  .jc-hero__in { padding: 0 16px 18px; gap: 16px; }
  .jc-hero__text, .jc-hero__stats { width: 100%; }
  .jc-hero__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .jc-hero__stats div { padding: 9px 4px; border-radius: 12px; }
  .jc-hero__stats b { font-size: 19px; }
  .jc-hero__stats span { font-size: 9.5px; letter-spacing: .04em; }
  .jc-catstrip { padding: 0 16px 14px; }
  .jc-layout { padding: 16px 14px 0; gap: 16px; }
  .jc-search { max-width: none; flex-basis: 100%; }
  .jc-kind { font-size: 10px; padding: 7px 0; }
  .jc-compose { padding: 16px 14px; }
  .jc-narrow { padding: 18px 14px 0; }
  .jc-row2 { grid-template-columns: 1fr; }
  .jc-replybox { margin: 0 -14px; border-radius: 18px 18px 0 0; }
}
