/* Aslema Community C1 — scoped presentation layer.
   Add AFTER assets/community/community.css, only on public community pages.
   Does not style /admin/community or alter backend / moderation behavior. */
#community {
  --ac30-petrol: #134c50;
  --ac30-deep: #0d3437;
  --ac30-cream: #fbf4e7;
  --ac30-sand: #ecd3af;
  --ac30-terra: #98502f;
  --ac30-ink: #203638;
  --ac30-muted: #536666;
  --ac30-line: #ddded4;
  --ac30-white: #fffefa;
  --ac30-shadow: 0 13px 44px rgba(21, 58, 59, .075);
}
/* Main hero, all faces remain in view: never fill/crop the group image. */
#community .ac30-hero {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(22px, 4vw, 60px);
  align-items: center;
  padding: clamp(22px, 4vw, 56px) 0 clamp(34px, 5vw, 70px);
  border-bottom: 1px solid var(--ac30-line);
}
#community .ac30-hero__copy { min-width: 0; }
#community .ac30-hero__eyebrow {
  display: inline-flex; align-items:center; gap:10px;
  text-transform: uppercase; letter-spacing: .15em; font-size: .75rem;
  color: var(--ac30-terra); font-weight: 750;
}
#community .ac30-hero__eyebrow::before {
  content: ""; display: block; width: 24px; height: 2px;
  background: currentColor; flex-shrink:0;
}
#community .ac30-hero h1 {
  font-family: Manrope, sans-serif;
  font-size: clamp(2.8rem, 4.6vw, 5.2rem);
  font-weight: 500; line-height: 1.04; letter-spacing: -.045em;
  color: var(--ac30-deep); margin: 17px 0 20px;
}
#community .ac30-hero__intro {
  color: var(--ac30-muted); font-size: clamp(1rem, 1.24vw, 1.16rem);
  line-height: 1.7; max-width: 47ch; margin: 0 0 25px;
}
#community .ac30-hero__actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 11px; margin: 0 0 20px;
}
#community .ac30-hero .ac30-button,
#community .community-v29 .community-actions button.primary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 21px; border-radius: 10px;
  text-decoration: none; font-weight: 700; line-height: 1.35;
  background: var(--ac30-petrol); color: white; border: 1px solid var(--ac30-petrol);
  box-shadow: none;
}
#community .ac30-hero .ac30-button--secondary {
  color: var(--ac30-petrol); background: transparent;
  border: 1px solid #9ba9a2;
}
#community .ac30-hero .ac30-button:hover,
#community .community-v29 .community-actions button.primary:hover {
  background: var(--ac30-deep); color: #fff;
}
#community .ac30-hero .ac30-button--secondary:hover { background:#e5e9e1; color:var(--ac30-deep) }
#community .ac30-hero__trust {
  display: flex; flex-wrap: wrap; gap: 9px 17px;
  color: var(--ac30-muted); font-size: .84rem; line-height:1.5;
}
#community .ac30-hero__trust span::before {
  content: "•"; color: var(--ac30-terra); margin-right: 8px;
}
#community .ac30-hero__media { min-width:0; margin:0; }
#community .ac30-hero__photo {
  display:block; width:100%; height:auto; aspect-ratio:1448 / 965;
  object-fit:contain; background:#e7dcc9; border-radius:14px;
  box-shadow: var(--ac30-shadow);
}
#community .ac30-hero__caption {
  color: var(--ac30-muted); font-size:.72rem;
  line-height: 1.45; margin-top: 9px;
}
#community .ac30-section-title {
  font-family: Manrope, sans-serif;
  font-weight: 500; font-size:clamp(1.8rem,3vw,2.65rem);
  color:var(--ac30-deep); letter-spacing:-.025em;
}
/* Main content and sidebar, with reasonable reading width. */
#community .communitygrid {
  display: grid; grid-template-columns:minmax(0,1fr) minmax(235px,280px);
  gap:clamp(20px,3vw,46px); align-items:start; margin-top:clamp(26px,3.6vw,48px)!important;
}
#community .communitygrid > * { min-width: 0; }
#community .communitygrid aside { position:static; }
#community .communitygrid .sidebox {
  background:#f6f1e8; border:1px solid var(--ac30-line);
  border-radius:16px; box-shadow:none; padding:23px;
  margin:0 0 18px;
}
#community .communitygrid .sidebox h3 {font-family:Manrope,sans-serif;font-weight:500;color:var(--ac30-deep);font-size:1.35rem;margin:0 0 12px}
#community .communitygrid .sidebox p {color:var(--ac30-muted);line-height:1.65}
/* Existing V29 feed: no changes to data model or event handlers. */
#community .community-v29 { padding:0; max-width:100%; color:var(--ac30-ink); }
#community .community-v29 > h2 {
  font-family:Manrope,sans-serif;font-size:clamp(1.85rem,3.2vw,2.65rem);
  font-weight:500;color:var(--ac30-deep);line-height:1.16;margin:0 0 10px;
}
#community .community-v29 > p { color:var(--ac30-muted); line-height:1.65; max-width:60ch;margin:0 0 23px; }
#community .community-v29 .community-filters {
  display:flex;gap:8px;flex-wrap:wrap;
  padding:0 0 23px; border-bottom:1px solid var(--ac30-line);
  margin-bottom:25px;
}
#community .community-v29 .community-filters button {
  background:#fffdf8;border:1px solid #c5cec5; color:var(--ac30-deep);
  min-height:44px; padding:8px 15px; border-radius:999px;
  font-size:.87rem;font-weight:600;white-space:normal;
}
#community .community-v29 .community-filters button[aria-pressed="true"] {
  background:var(--ac30-petrol);border-color:var(--ac30-petrol);color:#fff;
}
#community .community-v29 .community-post {
  background:var(--ac30-white); border:1px solid var(--ac30-line);
  border-radius:16px; padding:clamp(20px,3vw,31px); margin:0 0 17px;
  box-shadow: 0 5px 24px rgba(29,56,54,.035);
  transition:border-color .17s ease,transform .17s ease;
}
#community .community-v29 .community-post:hover {border-color:#a9c2bb; transform:translateY(-1px)}
#community .community-v29 .community-post > span.community-meta:first-child {
  display:inline-flex; width:max-content; max-width:100%; background:#edf4ee;
  border:1px solid #d4e5d8; border-radius:99px; padding:5px 11px;
  color:var(--ac30-petrol);font-size:.76rem;font-weight:700;
}
#community .community-v29 .community-post > p.community-meta {
  display:block;margin:15px 0 5px;font-size:.81rem;color:var(--ac30-muted);
}
#community .community-v29 .community-post h3 {
  font-family:Manrope,sans-serif;
  font-weight:500;font-size:clamp(1.34rem,2.2vw,1.8rem);line-height:1.28;
  color:var(--ac30-deep);margin:6px 0 15px;
}
#community .community-v29 .community-post > .community-body {
  color:var(--ac30-ink);font-size:1rem;line-height:1.68;
  margin:0;max-width:70ch;overflow-wrap:anywhere;
}
#community .community-v29 .community-actions {
  border-top:1px solid #e8e7df; padding-top:15px; margin-top:24px; gap:9px;
}
#community .community-v29 .community-actions button {
  min-height:44px;background:transparent; color:var(--ac30-petrol);
  border:1px solid #9eb8b2; border-radius:9px;
  padding:10px 15px;font-weight:650;
}
#community .community-v29 .community-post .community-comment {
  padding:16px 0 16px 18px;border-color:#a6c5bc;
}
#community .community-v29 .community-comment .community-body {line-height:1.65;color:var(--ac30-ink)}
#community .community-v29 form {background:#f8f3e9;padding:21px;border-radius:12px;border:1px solid var(--ac30-line);max-width:100%}
#community .community-v29 input:not([type=checkbox]),
#community .community-v29 textarea,
#community .community-v29 select {background:#fffefa;border-radius:9px;border-color:#a7b9b4}
#community .community-v29 .community-status {font-weight:550}
#community .community-v29 .community-status:empty {padding:0}
#community .community-v29 button:focus-visible,
#community .ac30-hero a:focus-visible,
#community .community-v29 input:focus-visible,
#community .community-v29 textarea:focus-visible,
#community .community-v29 select:focus-visible {
  outline:3px solid var(--ac30-terra);outline-offset:3px;
}
#community .community-v29 [hidden],
#community [hidden] { display:none!important }
@media (max-width: 900px) {
  #community .ac30-hero {grid-template-columns:1fr;gap:26px}
  #community .ac30-hero__copy {max-width:66ch}
  #community .ac30-hero__media {max-width:820px}
  #community .communitygrid {grid-template-columns: minmax(0,1fr)}
  #community .communitygrid aside {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  #community .communitygrid .sidebox {margin:0}
}
@media (max-width: 600px) {
  #community .ac30-hero {padding-top:26px;padding-bottom:34px}
  #community .ac30-hero h1 {font-size:clamp(2.55rem,10.5vw,3.6rem)}
  #community .ac30-hero__actions {flex-direction:column;align-items:stretch}
  #community .ac30-hero .ac30-button {width:100%}
  #community .ac30-hero__trust {gap:5px 12px}
  #community .ac30-hero__photo {border-radius:10px}
  #community .communitygrid aside {display:block}
  #community .communitygrid .sidebox {margin:0 0 13px}
  #community .community-v29 .community-filters {gap:7px}
  #community .community-v29 .community-post {border-radius:13px}
}
@media (prefers-reduced-motion:reduce) {
  #community .community-v29 .community-post {transition:none}
  #community .community-v29 .community-post:hover {transform:none}
}

#community .ac30-feed-anchor{scroll-margin-top:110px} #community .ac30-hero h1{font-weight:600;font-size:clamp(2.55rem,4.1vw,4.5rem)}
#community .community-composer:empty{display:none} #community .community-composer{margin-bottom:28px} #community .community-post time{display:block;font-size:.8rem;color:var(--ac30-muted);margin-bottom:12px}

#community .subhero{padding-top:12px}
#communityPosts h2{font-size:clamp(1.85rem,3.2vw,2.65rem)}
