/* Akal Cancer Research Foundation — site styles */
:root {
  --blue: #0b6fa4;
  --blue-600: #095c88;
  --blue-50: #e8f3fa;
  --gold: #f2a20c;
  --gold-600: #d68b00;
  --ink: #142231;
  --ink-2: #3d4b5a;
  --muted: #66758a;
  --line: #e3e8ee;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --danger: #c62f3b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 30, 54, .06), 0 4px 16px rgba(16, 30, 54, .06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Fraunces", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --blue: #4aa8dc; --blue-600: #6bbbe6; --blue-50: #13283a;
    --ink: #e8edf3; --ink-2: #c3ccd7; --muted: #8e9bab; --line: #26323f;
    --bg: #0e151d; --surface: #16202b; --surface-2: #1d2935;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --blue: #4aa8dc; --blue-600: #6bbbe6; --blue-50: #13283a;
  --ink: #e8edf3; --ink-2: #c3ccd7; --muted: #8e9bab; --line: #26323f;
  --bg: #0e151d; --surface: #16202b; --surface-2: #1d2935;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-600); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-family: var(--display); font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -.01em; }
h2 { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 24px; } }
.section { padding: 56px 16px; }
@media (min-width: 700px) { .section { padding: 72px 24px; } }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.error { color: var(--danger); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--gold-600); margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 46rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; border: 0; border-radius: 999px;
  padding: .7em 1.3em; font: 600 .95rem var(--font); background: var(--blue); color: #fff; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .05s; white-space: nowrap; }
.btn:hover { background: var(--blue-600); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-sm { padding: .45em 1em; font-size: .875rem; }
.btn-gold { background: var(--gold); color: #1d1300; }
.btn-gold:hover { background: var(--gold-600); color: #1d1300; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-ghost-dark { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost-dark:hover { background: var(--surface-2); color: var(--ink); }
.btn-light { background: var(--surface-2); color: var(--ink); }
.btn-light:hover { background: var(--line); color: var(--ink); }
.btn-danger { background: var(--danger); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.15rem; }
.brand small { display: block; font-weight: 500; font-size: .7rem; color: var(--muted); letter-spacing: .04em; }
.brand span { line-height: 1.1; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 10px; border-radius: 8px; }
.site-nav a:not(.btn):hover { background: var(--surface-2); color: var(--ink); }
.site-nav a[aria-current] { color: var(--blue); }
.nav-login { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; transition: .2s; }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 8px 16px 16px;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px; }
  .nav-login { margin: 8px 0 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* hero */
.hero { position: relative; color: #fff; background: #05080c; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,8,12,.92) 0%, rgba(5,8,12,.55) 60%, rgba(5,8,12,.2) 100%); }
.hero-inner { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 96px; }
.hero h1 { max-width: 15em; color: #fff; }
.hero .lead { color: rgba(255,255,255,.85); }
.hero .eyebrow { color: var(--gold); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
@media (min-width: 900px) { .hero-inner { padding-top: 140px; padding-bottom: 140px; } }

.page-head { background: linear-gradient(180deg, var(--blue-50), var(--bg)); padding: 64px 0 24px; }
.page-head h1 { max-width: 18em; }

/* content blocks */
.prose { max-width: 42rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose h2 { margin-top: 0; }
.split { display: grid; gap: 32px; align-items: center; margin-bottom: 64px; }
.split:last-child { margin-bottom: 0; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split.reverse > :first-child { order: 2; }
}
.founder { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .founder { grid-template-columns: 1.3fr 1fr; gap: 56px; } }
.card-img { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.card-img img { width: 100%; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.band { background: var(--ink); color: #fff; }
:root[data-theme="dark"] .band { background: #0a1016; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band { background: #0a1016; } }
.facts { display: grid; gap: 24px; padding-top: 48px; padding-bottom: 48px; }
@media (min-width: 800px) { .facts { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.fact { display: flex; flex-direction: column; gap: 6px; color: rgba(255,255,255,.8); font-size: .95rem; }
.fact-num { font-family: var(--display); font-size: 2.4rem; color: var(--gold); line-height: 1; }
.fact a { color: #fff; }
.quote-band { background: linear-gradient(120deg, var(--blue), #073f60); color: #fff; padding: 64px 0; text-align: center; }
.quote-band blockquote { margin: 0 auto; max-width: 30em; font-family: var(--display); font-size: clamp(1.5rem, 3.5vw, 2.3rem); line-height: 1.3; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin: 40px 0 20px; }
.section-head:first-child { margin-top: 0; }
.more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.link-list a { display: block; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-weight: 500; }
.link-list a:hover { border-color: var(--blue); }
.cta-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); margin-bottom: 72px; padding: 36px; }
.cta-card h2 { margin-bottom: .3em; }
.cta-card p { margin: 0; color: var(--muted); }
.contact-grid { display: grid; gap: 20px; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.big-link { font-size: 1.3rem; font-weight: 600; }
.empty-state { text-align: center; padding: 40px 20px; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--blue); }
.faq[open] summary::after { content: "–"; }
.faq p { color: var(--ink-2); padding-bottom: 8px; }
.press-grid { display: grid; gap: 20px; }
@media (min-width: 800px) { .press-grid { grid-template-columns: 1fr 1fr; } }
.press-card h2 { font-size: 1.3rem; margin-top: 10px; }
.press-card p { color: var(--ink-2); margin: 0; }
.chip { display: inline-block; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue); }
.chip-danger { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }

/* blog */
.post-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.post-card:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(16,30,54,.12); }
.post-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.post-thumb { aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-fallback { width: 100%; height: 100%; background: linear-gradient(135deg, var(--blue) 0%, #073f60 60%, var(--gold) 140%); }
.post-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.08rem; margin-bottom: .4em; color: var(--ink); }
.post-card p { color: var(--muted); font-size: .92rem; margin-bottom: .6em; }
.post-card .meta { margin: auto 0 0; font-size: .8rem; }
.article { max-width: 780px; }
.article-head h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-top: 12px; }
.back { font-weight: 600; text-decoration: none; font-size: .92rem; }
.meta { color: var(--muted); font-size: .9rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post-body { margin-top: 32px; font-size: 1.06rem; }
.post-body figure { margin: 24px 0; }
.post-body img { border-radius: 12px; margin: 0 auto; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li { margin-bottom: .4em; }
.post-body h2, .post-body h3 { margin-top: 1.6em; }
.post-body a { word-break: break-word; }
.article-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin: 48px 0 32px; }
.article-cta p { margin: 0; color: var(--muted); }
.pager { display: flex; justify-content: space-between; gap: 16px; font-weight: 600; font-size: .92rem; }
.pager a { text-decoration: none; max-width: 48%; }
.pager a:last-child { text-align: right; }

/* avatars */
.avatar { --hue: 205; display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: hsl(var(--hue) 55% 45%); color: #fff; font-weight: 700; font-size: .9rem; letter-spacing: .02em; user-select: none; }
.avatar-sm { width: 32px; height: 32px; font-size: .75rem; }
.avatar-lg { width: 52px; height: 52px; font-size: 1.1rem; }

/* footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 0; }
.footer-grid { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.brand-footer { margin-bottom: 12px; }
.subscribe label { display: block; font-weight: 600; margin-bottom: 10px; }
.subscribe-row { display: flex; gap: 8px; flex-wrap: wrap; }
.subscribe input { flex: 1 1 200px; min-width: 0; padding: .7em 1em; border: 1.5px solid var(--line); border-radius: 999px; font: inherit; background: var(--bg); color: var(--ink); }
.subscribe input:focus { border-color: var(--blue); outline: none; }
.subscribe-msg { min-height: 1.4em; margin: 8px 0 0; font-size: .9rem; color: var(--muted); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 32px; font-size: .85rem; }
.footer-bottom p { margin-bottom: .5em; }
.disclaimer { color: var(--muted); max-width: 60rem; }

/* ---------------------------------------------------------------- community */
.page-community { background: var(--bg); }
.cx { min-height: 70vh; padding: 24px 0 56px; }
.cx-loading { display: grid; place-items: center; min-height: 50vh; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.cx-landing-card { display: grid; gap: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); margin-top: 24px; }
@media (min-width: 900px) { .cx-landing-card { grid-template-columns: 1.3fr 1fr; padding: 56px; align-items: center; } }
.cx-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cx-features li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface-2); border-radius: 14px; padding: 16px; }
.cx-features strong { display: block; }
.cx-features span:not(.cx-ico) { color: var(--muted); font-size: .92rem; }
.cx-ico { font-size: 1.5rem; line-height: 1; }

.cx-app { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .cx-app { grid-template-columns: 250px minmax(0, 1fr); } }
@media (min-width: 1180px) { .cx-app { grid-template-columns: 250px minmax(0, 1fr) 280px; } }
.cx-left, .cx-right { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 900px) { .cx-left { position: sticky; top: 84px; align-self: start; } }
.cx-right { display: none; }
@media (min-width: 1180px) { .cx-right { display: flex; position: sticky; top: 84px; align-self: start; } }
.cx-left .card, .cx-right .card { padding: 16px; }
.cx-me-row { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.cx-me-row strong { display: block; }
.cx-me-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cx-menu, .cx-topics { display: flex; flex-direction: column; gap: 2px; }
.cx-topics h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 4px 10px 8px; }
.cx-menu a, .cx-topics a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
.cx-menu a:hover, .cx-topics a:hover { background: var(--surface-2); color: var(--ink); }
.cx-menu a.active, .cx-topics a.active { background: var(--blue-50); color: var(--blue); }
.badge { margin-left: auto; background: var(--danger); color: #fff; border-radius: 999px; font-size: .72rem; padding: 1px 8px; font-weight: 700; }
/* on phones the left column becomes a horizontal strip */
@media (max-width: 899px) {
  .cx-me { display: none; }
  .cx-menu, .cx-topics { flex-direction: row; overflow-x: auto; padding: 8px; gap: 4px; scrollbar-width: none; }
  .cx-menu::-webkit-scrollbar, .cx-topics::-webkit-scrollbar { display: none; }
  .cx-menu a, .cx-topics a { white-space: nowrap; flex: none; }
  .cx-topics h3 { display: none; }
  .cx-left { gap: 10px; }
}
.guidelines { padding-left: 1.1em; margin: 0; font-size: .9rem; color: var(--ink-2); }
.guidelines li { margin-bottom: .5em; }
.mini-members { display: flex; flex-direction: column; gap: 6px; }
.mini-member { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; padding: 6px; border-radius: 10px; font-weight: 500; font-size: .92rem; }
.mini-member:hover { background: var(--surface-2); color: var(--ink); }

.composer { padding: 16px; margin-bottom: 16px; }
.composer-row { display: flex; gap: 12px; align-items: flex-start; }
.composer textarea, .comment-form textarea { flex: 1; resize: none; border: 0; border-radius: 22px; background: var(--surface-2); padding: 10px 16px;
  font: inherit; color: var(--ink); min-height: 42px; line-height: 1.45; }
.composer textarea:focus, .comment-form textarea:focus { outline: 2px solid var(--blue); }
.composer-bar { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.composer-tool { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; cursor: pointer; font-weight: 500; color: var(--ink-2); }
.composer-tool:hover { background: var(--surface-2); }
.composer select { border: 0; background: var(--surface-2); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: .9rem; color: var(--ink); max-width: 46%; }
.composer-bar .btn { margin-left: auto; min-width: 84px; }
.composer-previews { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-left: 52px; }
.composer-previews:empty { display: none; }
.preview { position: relative; width: 92px; height: 92px; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview.uploading img { opacity: .45; }
.preview.uploading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 24px; height: 24px; border: 3px solid #fff; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
.preview.failed { outline: 2px solid var(--danger); }
.preview-x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; font-size: .75rem; }

.feed-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 4px 12px; }
.feed-head h2 { font-family: var(--font); font-size: 1.1rem; margin: 0; }
.feed-head input[type=search] { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font: inherit; color: var(--ink); min-width: 0; width: 220px; }
.new-posts { position: sticky; top: 76px; border: 0; background: var(--blue); color: #fff; border-radius: 999px; padding: 6px 14px; font: 600 .85rem var(--font); cursor: pointer; box-shadow: var(--shadow); }
.feed { display: flex; flex-direction: column; gap: 16px; }
.load-more { display: block; margin: 16px auto 0; }

.post { padding: 0; overflow: visible; }
.post.pinned { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.post-head { display: flex; gap: 10px; align-items: center; padding: 14px 16px 6px; }
.post-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.who { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.who-name { color: var(--ink); font-weight: 600; text-decoration: none; }
.who-name:hover { text-decoration: underline; color: var(--ink); }
.mod-badge { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gold-600); background: color-mix(in srgb, var(--gold) 16%, transparent); padding: 1px 7px; border-radius: 999px; }
.topic-link { color: var(--muted); text-decoration: none; }
.topic-link:hover { text-decoration: underline; }
.pin-label { color: var(--gold-600); font-weight: 600; }
.post-text { padding: 4px 16px 10px; white-space: normal; overflow-wrap: anywhere; font-size: 1rem; }
.post-text.clamped { max-height: 11.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.see-more { margin: -6px 16px 10px; background: none; border: 0; padding: 0; color: var(--blue); font: 600 .92rem var(--font); cursor: pointer; }
.post-images { display: grid; gap: 3px; background: var(--surface-2); }
.post-images.n2 { grid-template-columns: 1fr 1fr; }
.post-images.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.post-images.n3 .img-btn:first-child { grid-row: span 2; }
.post-images.n4 { grid-template-columns: 1fr 1fr; }
.img-btn { border: 0; padding: 0; background: none; cursor: zoom-in; display: block; overflow: hidden; }
.img-btn img { width: 100%; height: 100%; object-fit: cover; max-height: 560px; }
.post-images.n2 .img-btn, .post-images.n3 .img-btn, .post-images.n4 .img-btn { aspect-ratio: 1; }
.post-images.n3 .img-btn:first-child { aspect-ratio: auto; }
.post-counts { display: flex; justify-content: space-between; padding: 8px 16px; font-size: .88rem; color: var(--muted); min-height: 1em; }
.post-counts:has(.count:empty + .count:empty) { display: none; }
.post-actions { display: flex; gap: 4px; border-top: 1px solid var(--line); margin: 0 12px; padding: 4px 0; }
.act { flex: 1; border: 0; background: none; padding: 8px; border-radius: 8px; font: 600 .92rem var(--font); color: var(--muted); cursor: pointer; }
.act:hover { background: var(--surface-2); }
.act.on { color: var(--blue); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); font-size: 1.3rem; line-height: 1; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--surface-2); }
.menu-list { position: absolute; right: 0; top: 40px; z-index: 20; min-width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.15); padding: 6px; display: flex; flex-direction: column; }
.menu-list button { text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 8px; font: 500 .92rem var(--font); color: var(--ink); cursor: pointer; }
.menu-list button:hover { background: var(--surface-2); }
.menu-list .danger { color: var(--danger); }
.comments { border-top: 1px solid var(--line); margin: 0 12px; padding: 12px 4px 14px; }
.comment-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.comment { display: flex; gap: 8px; align-items: flex-start; }
.comment-bubble { background: var(--surface-2); border-radius: 16px; padding: 8px 12px; max-width: calc(100% - 44px); }
.comment-bubble .who-name { font-size: .9rem; }
.comment-text { font-size: .95rem; overflow-wrap: anywhere; }
.comment-meta { margin-top: 2px; }
.comment-form { display: flex; gap: 8px; align-items: flex-start; }
.comment-form textarea { min-height: 38px; padding: 8px 14px; }
.profile-head { margin-bottom: 16px; padding: 0; border: 0; box-shadow: none; background: none; }
.member-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .member-grid { grid-template-columns: 1fr 1fr; } }
.member { display: flex; gap: 14px; align-items: flex-start; }
.member-body { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; }
.member-body p { margin: 0; color: var(--ink-2); }
.report-excerpt { margin: 8px 0 12px; padding: 10px 14px; border-left: 3px solid var(--line); background: var(--surface-2); border-radius: 0 8px 8px 0; font-size: .93rem; }
.report-actions { display: flex; gap: 8px; }

.skeleton { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.sk-row { display: flex; gap: 10px; align-items: center; }
.sk { display: block; background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; }
.sk-circle { width: 40px; height: 40px; border-radius: 50%; }
.sk-line { height: 12px; width: 100%; }
.w40 { width: 40%; } .w70 { width: 70%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.dlg { border: 0; border-radius: 18px; padding: 24px; width: min(480px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.dlg::backdrop { background: rgba(10, 18, 28, .55); }
.dlg h2 { font-family: var(--font); font-size: 1.2rem; }
.dlg label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 14px; }
.dlg input, .dlg textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-weight: 400; background: var(--bg); color: var(--ink); }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; }
.dlg-image { padding: 0; width: auto; max-width: 94vw; background: #000; }
.dlg-image img { max-height: 88vh; max-width: 94vw; }
.dlg-close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 500; font-size: .92rem; z-index: 100; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.toast-error { background: var(--danger); color: #fff; }

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

/* breadcrumbs + related posts */
.crumbs { font-size: .9rem; color: var(--muted); }
.crumbs a { text-decoration: none; font-weight: 600; }
.related { padding-top: 0; }
.related h2 { font-size: 1.4rem; }
