.latest-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.feed-card { min-width: 0; padding: 1rem; gap: .65rem; }
.feed-card h3, .feed-card p { margin: 0; }
.feed-card .feed-image { width: 100%; height: auto; margin: 0; border-radius: .65rem; }
.feed-toolbar { display: flex; justify-content: flex-end; margin-bottom: 1rem; }
.feed-follow { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: .65rem; background: #0a66c2; color: white; font: 800 1.4rem Manrope, sans-serif; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.feed-follow:hover, .feed-follow:focus-visible { transform: translateY(-3px); box-shadow: 0 6px 16px #0a66c24d; }
.feed-follow:active { transform: scale(.92); }
.feed-actions { display: flex; gap: .35rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: .65rem; }
.feed-actions button, .feed-actions summary, .feed-comment button { cursor: pointer; border: 0; border-radius: .4rem; background: var(--paper); color: var(--ink); padding: .4rem .55rem; font: inherit; font-size: .875rem; }
.feed-actions button[aria-pressed="true"] { background: #d9f7fa; color: #075766; }
.feed-share a { display: block; margin: .35rem 0; }
.feed-more summary { cursor: pointer; font-weight: 700; }
.feed-comment textarea { display: block; width: 100%; min-height: 4rem; margin-bottom: .35rem; }
.feed-feedback:empty { display: none; }
@media (max-width: 1000px) { .latest-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) { .latest-posts { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .feed-follow { transition: none; } }

.feed-actions { align-items: flex-start; gap: .5rem; }
.feed-actions button, .feed-actions summary, .feed-comment button, .feed-thread button {
  border: 1px solid var(--line); border-radius: .65rem; padding: .45rem .7rem;
  background: var(--paper); color: var(--ink); cursor: pointer; font: inherit; font-size: .875rem;
}
.feed-actions button:hover, .feed-actions summary:hover, .feed-share a:hover, .feed-thread button:hover {
  background: #e5f6fa; border-color: #a7dce5;
}
.feed-share[open] { flex: 1 0 100%; }
.feed-share summary { width: fit-content; }
.share-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; margin-top: .55rem; padding: .55rem; background: var(--paper); border-radius: .75rem; }
.feed-share .share-options a, .share-options button {
  display: block; margin: 0; padding: .45rem .6rem; text-align: left;
  border: 1px solid var(--line); border-radius: .5rem; background: white;
  font-size: .875rem; text-decoration: none;
}
.share-options [data-device-share], .share-options [data-copy] { grid-column: 1 / -1; }
.feed-comment:not([hidden]), .feed-thread:not(:empty) { padding: .7rem; border-radius: .75rem; background: var(--paper); }
.feed-comment label { display: block; font-size: .875rem; font-weight: 700; }
.feed-comment textarea { margin: .4rem 0; padding: .55rem; border: 1px solid var(--line); border-radius: .5rem; resize: vertical; font: inherit; }
.feed-thread button { margin: .45rem .4rem 0 0; background: white; }
.feed-thread blockquote { margin: .55rem 0 0; padding-left: .65rem; border-left: 2px solid var(--cyan); overflow-wrap: anywhere; }
.feed-feedback { color: var(--muted); font-size: .8rem; }
.feed-heading-row { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; }
.feed-heading-row h2 { margin-bottom: 0; }
.feed-heading-row .feed-follow {
  display: inline-flex; align-items: center; gap: .55rem; width: auto; height: auto;
  padding: .45rem .7rem; border: 1px solid #c9dce9; border-radius: 999px;
  color: #124a75; background: white; font-size: .875rem; transition: background-color .18s ease;
}
.feed-heading-row .feed-follow:hover, .feed-heading-row .feed-follow:focus-visible { transform: none; box-shadow: none; background: #e8f4ff; }
.feed-heading-row .feed-follow:active { transform: none; background: #dceefe; }
.feed-card { position: relative; overflow: visible; }
.feed-card:has(.feed-share[open]) { z-index: 5; }
.feed-share[open] { flex: 0 0 auto; }
.feed-share .share-options {
  position: fixed; z-index: 2; left: var(--share-left, 0px); top: var(--share-top, 0px); margin: 0;
  display: flex; gap: .35rem; width: max-content; max-width: min(38rem, calc(100vw - 3rem));
  overflow-x: auto; padding: .55rem; background: white; border: 1px solid var(--line);
  border-radius: .9rem; box-shadow: 0 14px 35px #10253926;
}
.feed-share .share-options a, .feed-share .share-options button {
  flex: 0 0 auto; display: grid; justify-items: center; align-content: start; gap: .3rem;
  min-width: 3.85rem; margin: 0; padding: .4rem;
  border: 0; border-radius: .55rem; font-size: .72rem; text-align: center;
}
.share-icon {
  width: 1.8rem; height: 1.8rem; display: grid; place-items: center;
  border-radius: .5rem; background: var(--ink); color: white; font: 800 1.05rem system-ui;
}
.share-wa { background: #087a54; }
.share-in { background: #0a66c2; }
.share-fb { background: #0866ff; }
.share-ig { background: linear-gradient(135deg, #6537b1, #c32a75, #e9772b); }
.share-ig::before { content: ''; width: .85rem; height: .85rem; border: 1.5px solid white; border-radius: .25rem; background: radial-gradient(circle, transparent 26%, white 27% 38%, transparent 39%); }
.share-tt { text-shadow: 1px 0 #fe2c55, -1px 0 #25f4ee; }
.share-link { background: #385267; }
.feed-share:not([open]) .share-options { display: none; }

.latest-posts { align-items: stretch; }
.feed-card time { min-height: 1.4em; }
.feed-media { display: grid; place-items: center; aspect-ratio: 1.91 / 1; overflow: hidden; border-radius: .65rem; background: #071624; }
.feed-card .feed-media .feed-image { width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: 0; }
.feed-media-placeholder { grid-auto-flow: column; justify-content: center; gap: .55rem; color: #dbf8fa; background: radial-gradient(at 65% 40%, #173b52, #071624); font-weight: 700; }
.feed-media-placeholder img { width: 2.25rem; height: 2.25rem; }
@media (min-width: 651px) {
  .feed-card > h3 { min-height: 3lh; }
  .feed-card > .feed-preview { min-height: 4lh; }
  .feed-card:not(:has(.feed-more[open])) > h3,
  .feed-card:not(:has(.feed-more[open])) > .feed-preview {
    display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
  }
  .feed-card:not(:has(.feed-more[open])) > h3 { -webkit-line-clamp: 3; }
  .feed-card:not(:has(.feed-more[open])) > .feed-preview { -webkit-line-clamp: 4; }
}
