/* =========================================================
   KKF Community
   Version: 1.0.0
   ========================================================= */

.kkf-feed {
  --f-sun: var(--kkf-sun, #f0522b);
  --f-mango: var(--kkf-mango, #f7941d);
  --f-ink: var(--kkf-ink, #17211f);
  --f-soft: var(--kkf-ink-soft, #5f6f6a);
  --f-line: var(--kkf-line, #ecdfd3);
  --f-sand: var(--kkf-sand, #fbf6f0);
  --f-ease: 0.22s cubic-bezier(0.32, 0.72, 0.35, 1);

  max-width: 1080px;
  margin: 0 auto;
  font-family: var(--kkf-font-body, "Plus Jakarta Sans", system-ui,
    sans-serif);
  color: var(--f-ink);
  font-size: 16px;
  line-height: 1.65;
}

.kkf-feed *,
.kkf-feed *::before,
.kkf-feed *::after { box-sizing: border-box; }

/* ---------------------------------------- the top line */

.kkf-feed-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--f-line);
}

.kkf-feed-top h1 {
  margin: 0;
  font-family: var(--kkf-font-display, "Fraunces", Georgia, serif);
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--f-ink);
}

.kkf-feed-share-trip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 24px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--f-mango), var(--f-sun));
  color: #fff !important;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 26px -14px rgba(240, 82, 43, 0.95);
  transition: transform var(--f-ease);
}

.kkf-feed-share-trip::before {
  content: "";
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.kkf-feed-share-trip:hover { transform: translateY(-1px); }

/* ---------------------------------------- layout */

.kkf-feed-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.kkf-feed-stream {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* ---------------------------------------- a post */

.kkf-post {
  border: 1px solid var(--f-line);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(23, 33, 31, 0.05);
  transition: box-shadow var(--f-ease);
}

.kkf-post:hover {
  box-shadow: 0 14px 34px -20px rgba(23, 33, 31, 0.45);
}

.kkf-post-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
}

.kkf-post-author {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  text-decoration: none;
}

.kkf-post-author img {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px;
  max-width: none;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;

  /* Some themes square off images, so this is stated firmly. */
  border-radius: 50% !important;
  aspect-ratio: 1 / 1;

  object-fit: cover;
  object-position: center;
  display: block;
  background: var(--f-sand);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--f-line);
  transition: transform var(--f-ease);
}

.kkf-post-author:hover img { transform: scale(1.06); }

.kkf-post-author span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.kkf-post-author strong {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--f-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kkf-post-author em {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 7px;
  margin-top: 2px;
  font-style: normal;
  font-size: 12.5px;
  line-height: 1;
  color: var(--f-soft);
  white-space: nowrap;
}

/* The chip and its icon stay on one line. */
.kkf-post-author .kkf-role {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 4px 10px;
  font-size: 10.5px;
  line-height: 1;
  white-space: nowrap;
}

.kkf-post-author .kkf-role::before {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
}

/* the photo carousel */

.kkf-post-media {
  position: relative;
  background: var(--f-sand);
}

.kkf-post-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.kkf-post-track::-webkit-scrollbar { display: none; }

.kkf-post-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: center;
  aspect-ratio: 4 / 3;
  display: block;
  overflow: hidden;
}

.kkf-post-slide img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  margin: 0;
  object-fit: cover;
  display: block;
}

.kkf-post-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--f-ink);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px -4px rgba(23, 33, 31, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--f-ease), background var(--f-ease);
}

.kkf-post-media:hover .kkf-post-arrow { opacity: 1; }
.kkf-post-arrow:hover { background: #fff; }
.kkf-post-arrow[hidden] { display: none; }
.kkf-post-arrow.is-prev { left: 12px; }
.kkf-post-arrow.is-next { right: 12px; }

.kkf-post-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(23, 33, 31, 0.42);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.kkf-post-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: background var(--f-ease), width var(--f-ease);
}

.kkf-post-dot.is-on {
  width: 18px;
  border-radius: 999px;
  background: #fff;
}

.kkf-post-counter {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(23, 33, 31, 0.5);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* the words */

.kkf-post-body {
  padding: 16px 18px 14px;
}

.kkf-post-title {
  display: block;
  margin-bottom: 6px;
  font-family: var(--kkf-font-display, "Fraunces", Georgia, serif);
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--f-ink) !important;
  text-decoration: none;
}

.kkf-post-title:hover { color: var(--f-sun) !important; }

.kkf-post-story {
  margin: 0 0 14px;
  color: #43524d;
  font-size: 15px;
  line-height: 1.65;
}

.kkf-post-more {
  border: 0;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--f-sun);
  cursor: pointer;
}

.kkf-post-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--f-line);
}

.kkf-post-open {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 9px 20px;
  border: 1.5px solid var(--f-sun);
  border-radius: 999px;
  color: var(--f-sun) !important;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--f-ease), color var(--f-ease),
    border-color var(--f-ease);
}

.kkf-post-open:hover {
  border-color: transparent;
  background: linear-gradient(120deg, var(--f-mango), var(--f-sun));
  color: #fff !important;
}

/* Icon only, to sit beside the heart. */
.kkf-post-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1.5px solid var(--f-line);
  border-radius: 50%;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6f6a' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12v7a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M12 16V3M7.5 7.5 12 3l4.5 4.5'/%3E%3C/svg%3E")
    center / 18px 18px no-repeat;
  cursor: pointer;
  transition: border-color var(--f-ease), background-color var(--f-ease);
}

.kkf-post-share:hover {
  border-color: var(--f-sun);
  background-color: var(--kkf-sun-wash, #fff1ea);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0522b' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12v7a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M12 16V3M7.5 7.5 12 3l4.5 4.5'/%3E%3C/svg%3E");
}

/* ---------------------------------------- suggestions */

.kkf-suggest {
  border: 1px solid var(--f-line);
  border-radius: 20px;
  background: #fff;
}

.kkf-suggest h2 {
  margin: 0;
  font-family: var(--kkf-font-display, Georgia, serif);
  font-size: 18px;
  font-weight: 600;
}

/* the card dropped into the stream */

.kkf-suggest-card {
  padding: 20px 0 20px 20px;
  background: linear-gradient(160deg, #fff, var(--f-sand));
}

.kkf-suggest-head {
  padding-right: 20px;
  margin-bottom: 14px;
}

.kkf-suggest-head span {
  display: block;
  margin-top: 2px;
  color: var(--f-soft);
  font-size: 13px;
}

.kkf-suggest-scroller {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 20px 8px 0;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.kkf-suggest-scroller::-webkit-scrollbar { display: none; }

.kkf-person-tile {
  position: relative;
  flex: 0 0 auto;
  width: 168px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 14px;
  border: 1px solid var(--f-line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  text-align: center;
  transition: transform var(--f-ease), box-shadow var(--f-ease);
}

.kkf-person-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -16px rgba(23, 33, 31, 0.5);
}

.kkf-person-tile-cover {
  position: relative;
  display: block;
  width: 100%;
  height: 66px;
  background: linear-gradient(120deg, #ffd9a8, #f8a65c);
  overflow: hidden;
}

.kkf-person-tile-cover img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  margin: 0;
  object-fit: cover;
  display: block;
  opacity: 0.9;
}

.kkf-person-tile-avatar {
  display: block;
  margin: -28px 0 8px;
}

.kkf-person-tile-avatar img {
  width: 60px !important;
  height: 60px !important;
  min-width: 60px;
  max-width: none;
  margin: 0;
  border: 3px solid #fff;
  border-radius: 50% !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
  background: var(--f-sand);
}

.kkf-person-tile-name {
  display: block;
  padding: 0 12px;
  margin-bottom: 6px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--f-ink) !important;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.kkf-person-tile .kkf-role {
  margin-bottom: 12px;
  font-size: 10.5px;
  padding: 3px 10px;
}

.kkf-follow-tile,
.kkf-follow-mini {
  min-height: 34px;
  padding: 8px 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--f-mango), var(--f-sun));
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--f-ease), background var(--f-ease),
    color var(--f-ease);
}

.kkf-follow-tile:hover,
.kkf-follow-mini:hover { transform: translateY(-1px); }

.kkf-follow-tile.is-following,
.kkf-follow-mini.is-following {
  background: var(--f-sand);
  border: 1.5px solid var(--f-line);
  color: var(--f-soft);
}

/* the sidebar list */

.kkf-feed-side {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kkf-suggest-rail { padding: 20px; }

.kkf-suggest-rail h2 { margin-bottom: 14px; }

.kkf-suggest-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kkf-person-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.kkf-person-id {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  text-decoration: none;
}

.kkf-person-id img {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px;
  max-width: none;
  margin: 0;
  flex: 0 0 auto;
  border-radius: 50% !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
  background: var(--f-sand);
}

.kkf-person-id span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.kkf-person-id strong {
  font-size: 14.5px;
  color: var(--f-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kkf-person-id em {
  font-style: normal;
  font-size: 12px;
  color: var(--f-soft);
}

/* ---------------------------------------- states */

.kkf-feed-loading,
.kkf-feed-empty,
.kkf-feed-end {
  padding: 44px 24px;
  border: 1.5px dashed var(--f-line);
  border-radius: 20px;
  background: var(--f-sand);
  color: var(--f-soft);
  font-size: 15px;
  text-align: center;
}

.kkf-feed-empty strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--kkf-font-display, Georgia, serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--f-ink);
}

.kkf-feed-empty p { margin: 0 auto; max-width: 44ch; }

.kkf-feed-end {
  margin-top: 20px;
  padding: 26px 24px;
  font-size: 14px;
}

.kkf-feed-more {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 22px auto 0;
  min-height: 50px;
  padding: 14px 28px;
  border: 1.5px solid var(--f-line);
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--f-ink);
  cursor: pointer;
  transition: border-color var(--f-ease), color var(--f-ease);
}

.kkf-feed-more:hover {
  border-color: var(--f-sun);
  color: var(--f-sun);
}

/* skeletons */

.kkf-post-skeleton { pointer-events: none; }

.kkf-skeleton-dot,
.kkf-skeleton-bar,
.kkf-skeleton-media {
  background: linear-gradient(
    90deg,
    var(--f-sand) 25%,
    #f3ece5 37%,
    var(--f-sand) 63%
  );
  background-size: 400% 100%;
  animation: kkf-feed-shimmer 1.4s ease infinite;
}

.kkf-skeleton-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.kkf-skeleton-bar {
  display: block;
  height: 12px;
  width: 60%;
  margin-bottom: 8px;
  border-radius: 999px;
}

.kkf-skeleton-bar.is-wide { width: 85%; height: 18px; }

.kkf-skeleton-media { aspect-ratio: 4 / 3; }

@keyframes kkf-feed-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* toast */

.kkf-feed-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 10000;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--f-ink);
  color: #fff;
  font-family: var(--kkf-font-body, system-ui, sans-serif);
  font-size: 14.5px;
  font-weight: 600;
  transform: translate(-50%, 16px);
  opacity: 0;
  transition: transform 0.28s var(--f-ease), opacity 0.28s ease;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8);
}

.kkf-feed-toast.is-in { transform: translate(-50%, 0); opacity: 1; }

/* ---------------------------------------- responsive */

@media (max-width: 920px) {
  .kkf-feed-body { grid-template-columns: minmax(0, 1fr); }

  .kkf-feed-side {
    position: static;
    order: -1;
  }

  .kkf-suggest-rail { display: none; }
}

@media (max-width: 600px) {
  .kkf-feed-top { padding-bottom: 12px; }
  .kkf-feed-share-trip { flex: 1 1 auto; justify-content: center; }

  .kkf-post { border-radius: var(--kkf-radius, 16px); }
  .kkf-post-head { padding: 12px 14px; }
  .kkf-post-body { padding: 14px 14px 12px; }

  .kkf-post-slide { aspect-ratio: 1 / 1; }
  .kkf-post-arrow { display: none; }

  .kkf-post-foot { flex-wrap: wrap; }
  .kkf-post-open { margin-left: 0; flex: 1 1 auto; justify-content: center; }

  .kkf-person-tile { width: 148px; }
}

@media (prefers-reduced-motion: reduce) {
  .kkf-feed *,
  .kkf-feed-toast { transition: none !important; animation: none !important; }
}

/* =========================================================
   The floating share button
   ========================================================= */

.kkf-feed-fab {
  position: fixed;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--f-mango), var(--f-sun));
  text-decoration: none;
  box-shadow: 0 18px 36px -12px rgba(240, 82, 43, 0.9),
    0 4px 12px -4px rgba(23, 33, 31, 0.4);
  transition: transform var(--f-ease), box-shadow var(--f-ease);
}

.kkf-feed-fab::before {
  content: "";
  width: 26px;
  height: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transition: transform var(--f-ease);
}

.kkf-feed-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 44px -12px rgba(240, 82, 43, 0.95);
}

.kkf-feed-fab:hover::before { transform: rotate(90deg); }

/* the label that slides out on a pointer device */
.kkf-feed-fab-tip {
  position: absolute;
  right: 70px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--f-ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity var(--f-ease), transform var(--f-ease);
}

.kkf-feed-fab:hover .kkf-feed-fab-tip {
  opacity: 1;
  transform: translateX(0);
}

@media (hover: none) {
  .kkf-feed-fab-tip { display: none; }
}

/* =========================================================
   Comments
   ========================================================= */

.kkf-post-comment {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 9px 15px;
  border: 1.5px solid var(--f-line);
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--f-soft);
  cursor: pointer;
  transition: border-color var(--f-ease), color var(--f-ease);
}

.kkf-post-comment:hover {
  border-color: var(--f-sun);
  color: var(--f-sun);
}

.kkf-comment-icon {
  width: 17px;
  height: 17px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6f6a' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-9 8.4 9 9 0 0 1-3.3-.6L3 21l1.8-5a8.3 8.3 0 0 1-.8-3.6 8.4 8.4 0 0 1 8.5-8.3 8.4 8.4 0 0 1 8.5 8z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.kkf-post-comment:hover .kkf-comment-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0522b' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-9 8.4 9 9 0 0 1-3.3-.6L3 21l1.8-5a8.3 8.3 0 0 1-.8-3.6 8.4 8.4 0 0 1 8.5-8.3 8.4 8.4 0 0 1 8.5 8z'/%3E%3C/svg%3E");
}

.kkf-comment-count { font-variant-numeric: tabular-nums; }

.kkf-thread {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--f-line);
}

.kkf-thread[hidden] { display: none; }

.kkf-thread-loading,
.kkf-thread-empty {
  margin: 0;
  padding: 14px 0;
  color: var(--f-soft);
  font-size: 14px;
}

.kkf-comment-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
  max-height: 420px;
  overflow-y: auto;
}

.kkf-comment {
  display: flex;
  gap: 10px;
}

.kkf-comment-avatar {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px;
  max-width: none;
  margin: 0;
  flex: 0 0 auto;
  border-radius: 50% !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
  background: var(--f-sand);
}

.kkf-comment-body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 4px 16px 16px 16px;
  background: var(--f-sand);
}

.kkf-comment-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}

.kkf-comment-head strong { font-size: 14px; }

.kkf-comment-head strong a {
  color: var(--f-ink) !important;
  text-decoration: none;
}

.kkf-comment-head strong a:hover { color: var(--f-sun) !important; }

.kkf-comment-head em {
  font-style: normal;
  font-size: 12px;
  color: var(--f-soft);
}

.kkf-comment-remove {
  margin-left: auto;
  border: 0;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--f-soft);
  cursor: pointer;
}

.kkf-comment-remove:hover { color: #b42318; }

.kkf-comment-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: #33403c;
  overflow-wrap: break-word;
}

/* the box you write in */

.kkf-composer {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.kkf-composer-field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.kkf-composer textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 52px 12px 16px;
  border: 1.5px solid var(--f-line);
  border-radius: 22px;
  background: #fff;
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--f-ink);
  resize: none;
  overflow: hidden;
  transition: border-color var(--f-ease), box-shadow var(--f-ease);
}

.kkf-composer textarea:focus {
  outline: none;
  border-color: var(--f-sun);
  box-shadow: 0 0 0 4px rgba(240, 82, 43, 0.12);
}

.kkf-composer-send {
  position: absolute;
  right: 6px;

  /* Centred on the field, whatever height it grows to. */
  top: 50%;
  transform: translateY(-50%);

  display: flex;
  align-items: center;
  justify-content: center;

  /* Stated firmly, or a theme's button padding makes an oval. */
  width: 36px !important;
  height: 36px !important;
  min-width: 36px;
  min-height: 36px;
  padding: 0 !important;
  margin: 0;
  flex: 0 0 auto;

  border: 0;
  border-radius: 50% !important;
  background: linear-gradient(120deg, var(--f-mango), var(--f-sun))
    center / 16px 16px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  background-color: var(--f-sun);
  cursor: pointer;
  transition: transform var(--f-ease), opacity var(--f-ease);
}

.kkf-composer-send:hover {
  transform: translateY(-50%) scale(1.06);
}

.kkf-composer-send.is-busy { opacity: 0.6; cursor: progress; }

/* A tall box reads better with the button at the foot. */
.kkf-composer-field.is-tall .kkf-composer-send {
  top: auto;
  bottom: 6px;
  transform: none;
}

.kkf-composer-field.is-tall .kkf-composer-send:hover {
  transform: scale(1.06);
}

.kkf-comment-signin {
  padding: 14px 16px;
  border: 1.5px dashed var(--f-line);
  border-radius: 16px;
  background: var(--f-sand);
  color: var(--f-soft);
  font-size: 14px;
  text-align: center;
}

.kkf-comment-signin a {
  color: var(--f-sun);
  font-weight: 700;
}

@media (max-width: 600px) {
  .kkf-feed-fab {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 54px;
    height: 54px;
  }

  .kkf-post-comment { padding: 9px 13px; font-size: 12.5px; }
  .kkf-comment-list { max-height: none; }
}