.friends-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin-top: var(--sp-5); }
@media (max-width: 900px) { .friends-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .friends-grid { grid-template-columns: 1fr; } }
.friend { --parts: 3; row-gap: var(--sp-3); border: 0.5px solid var(--rule); background: var(--paper); padding: var(--sp-4); }
/* The head: the logo over its location, on a rule. The logo, or the name set as a wordmark when there is no logo. Wordmarks sit at a common height;
   a logo that is only a symbol (.is-mark) gets the name beside it. */
.friend-head { display: grid; gap: var(--sp-2); padding-bottom: var(--sp-3); border-bottom: 0.5px solid var(--rule); }
.friend-place { margin: 0; }
.friend-mark { display: flex; align-items: center; gap: var(--sp-3); min-height: 80px; font-style: italic; font-weight: 400; font-size: var(--t-h4); line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); margin: 0; }
/* The logo links to the organisation, as the Visit link does */
.friend-mark a { display: flex; align-items: center; gap: inherit; width: 100%; color: inherit; text-decoration: none; transition: opacity 180ms ease; }
.friend-mark a:hover { opacity: 0.7; }
.friend-mark img { display: block; max-width: 80%; max-height: 64px; width: auto; height: auto; }
.friend-mark.is-mark img { width: 48px; height: 48px; max-height: none; object-fit: contain; }
.friend-text { font-size: var(--t-small); line-height: 1.5; color: var(--ink); margin: 0; }
.friend-link { align-self: end; }
