/* ==========================================================
   Sprockett's — Community Custom CSS  (v4 — surgical, DOM-verified)
   Replaces v3. Targets actual Kanamé classes from live DOM:
     .post_container (flex-row root)
     .border-communities-border (image wrapper w/ fixed h/w)
     img[alt="Thumbnail"]
   Paste in: Settings → Branding → Custom CSS
   ========================================================== */

/* --- Brand typography --- */
body, button, input, textarea, select {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
}
h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 800 !important;
  color: #1a1a2e !important;
}

/* --- Brand buttons --- */
button[class*="primary"],
.btn-primary,
button[type="submit"] {
  background-color: #1974CE !important;
  border-color: #1974CE !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
}
button[class*="primary"]:hover { background-color: #0d4f8a !important; }


/* ==========================================================
   POST FEED — full-width image on top of card
   ========================================================== */

/* 1. Force post container to stack vertically (image first) */
.post_container {
  flex-direction: column-reverse !important;
  gap: 14px !important;
}

/* 2. The right-column flex wrapper around the image — kill its
      flex-row and width constraints so it spans full card width */
.post_container > div:has(img[alt="Thumbnail"]),
.post_container > div:has([class*="border-communities-border"]) {
  width: 100% !important;
  height: auto !important;
  align-items: stretch !important;
  justify-content: stretch !important;
}

.post_container > div:has(img[alt="Thumbnail"]) > div,
.post_container > div:has([class*="border-communities-border"]) > div {
  width: 100% !important;
  justify-content: stretch !important;
  align-items: stretch !important;
}

/* 3. Override the hard-coded h-[72px]/w-[72px] (mobile) and
      lg:h-[104px]/lg:w-[104px] (desktop) on the image wrapper */
.post_container [class*="border-communities-border"] {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  max-height: 460px !important;
  border-radius: 14px !important;
}

/* 4. Make the inner divs (relative positioner + img-cover wrapper) fill */
.post_container [class*="border-communities-border"] > div,
.post_container [class*="border-communities-border"] > div > div {
  width: 100% !important;
  height: 100% !important;
}

/* 5. The image itself */
.post_container img[alt="Thumbnail"] {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

/* 6. Post card visual polish (uses .hl-card-content from DOM) */
.hl-card-content {
  border-radius: 16px !important;
  border: 1px solid #e5e5e5 !important;
  box-shadow: 0 1px 2px rgba(25,116,206,0.04) !important;
}

/* 7. Title styling inside posts */
.post_container h2,
.post_container h3,
.post_container [class*="line-clamp"] > div:first-child {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 800 !important;
  color: #1a1a2e !important;
}
