
/* Approved by Marina 2026-11-03: variant «С кругом».
 * Same component for a guide's social profile or website; destination icon is a slot.
 * Original guide circle and Telegram plane; no new outline-button chrome.
 */
.guide-external-link,.article-typography .guide-external-link{display:inline-flex;align-items:center;gap:12px;max-width:100%;color:var(--article-accent,#3d328a);background:transparent;text-decoration:none;border:0;padding:0;font:400 20px/1.4 var(--article-body-font,"PT Sans",Arial,sans-serif)}
.guide-external-link__mark{position:relative;display:grid;place-items:center;width:58px;height:58px;flex:0 0 58px}
.guide-external-link__ring{grid-area:1/1;width:58px;height:58px;max-width:none;overflow:visible}
.guide-external-link__icon{grid-area:1/1;width:25px;height:25px;max-width:none}
.guide-external-link__label{min-width:0;overflow-wrap:anywhere}
.guide-external-link:hover{opacity:.8;text-decoration:none}
.guide-external-link:active{transform:translateY(1px)}
@media(max-width:430px){.guide-external-link,.article-typography .guide-external-link{font-size:18px}}

.guide-author{padding:var(--article-section-space) 0 calc(var(--article-section-space) + 32px)}
.guide-author .dacha-guide-link{margin-top:0;max-width:100%}
/* Match both text columns, then center their shared block beside the portrait. */
.guide-author .dacha-author-grid{display:grid;grid-template-columns:1fr;gap:20px;align-items:start;width:calc(100% - var(--article-content-gutter)*2);max-width:1120px;margin:auto}
.guide-author .dacha-author-text{display:contents}
.guide-author .dacha-author-photo{position:relative;width:110px;height:110px;margin:0 auto}
.guide-author .dacha-author-photo .dacha-portrait{position:absolute;inset:0;display:block;width:100%;height:100%;min-height:0;object-fit:cover;border-radius:var(--article-photo-radius)}
.guide-author .dacha-author-column--about{display:flex;flex-direction:column;align-items:flex-start;gap:24px}
.guide-author .dacha-author-column--about p,.guide-author .dacha-author-column--about p+p{margin:0}
.guide-author .dacha-author-column--quote{display:flex;flex-direction:column;justify-content:space-between;gap:16px}
.guide-author .dacha-author-column--quote p{margin:0}
@media(min-width:640px){
 .guide-author .dacha-author-grid{grid-template-columns:140px minmax(0,1fr);align-items:stretch}
 .guide-author .dacha-author-photo{width:auto;height:auto;min-height:140px;margin:0}
 .guide-author .dacha-author-column--about{justify-content:space-between}
 .guide-author .dacha-author-column--quote{grid-column:1/-1}
}
@media(min-width:1024px){
 .guide-author .dacha-author-grid{grid-template-columns:170px minmax(0,1fr);align-items:center}
 .guide-author .dacha-author-photo{height:170px;min-height:170px}
 .guide-author .dacha-author-text{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:stretch}
 .guide-author .dacha-author-column--about{gap:0}
 .guide-author .dacha-author-text .dacha-author-links{gap:2px}
 .guide-author .dacha-author-column--quote{grid-column:auto}
}
@media(min-width:1200px){.guide-author .dacha-author-grid{grid-template-columns:200px minmax(0,1fr);gap:20px}.guide-author .dacha-author-photo{height:200px;min-height:200px}}
@media(min-width:1920px){.guide-author .dacha-author-grid{grid-template-columns:220px minmax(0,1fr)}.guide-author .dacha-author-photo{height:220px;min-height:220px}}
.g-readable .guide-author .dacha-author-grid{grid-template-columns:1fr}
.g-readable .guide-author .dacha-author-photo{width:140px;height:140px;min-height:140px;margin-inline:auto}

/* Extend only the quotation to the article's shared right content edge. */
@media(min-width:1024px){
 .guide-author .dacha-author-column--quote{width:calc(100% + clamp(0px, calc((100vw - var(--article-content-gutter) * 2 - 1120px) / 2), 100px))}
}
.g-readable .guide-author .dacha-author-column--quote{width:auto}

/* Keep the social introduction and approved link together at the column bottom. */
.guide-author .dacha-author-links{display:flex;flex-direction:column;align-items:flex-start;gap:8px;width:100%}

.g-readable .guide-author .dacha-author-text{display:contents}
.g-readable .guide-author .dacha-author-column--about{gap:24px}
.g-readable .guide-author .dacha-author-text .dacha-author-links{gap:8px}


.guide-author{--article-content-gutter:clamp(20px,6.25vw,120px)}
.guide-author .dacha-author-photo{aspect-ratio:1;align-self:center}
.guide-author .anna-guide-links{display:flex;align-items:center;flex-wrap:wrap;column-gap:12px;row-gap:4px}
.guide-author .dacha-author-column--about{gap:16px}
.guide-author .guide-external-link:hover{opacity:1}
.guide-author .guide-external-link:hover .guide-external-link__label{opacity:.8}
.guide-author .guide-external-link__mark{isolation:isolate}
.guide-author .guide-external-link__mark::before{
  content:"";position:absolute;inset:9% 7%;border-radius:50%;background:var(--control-hover);
  opacity:0;z-index:-1;pointer-events:none;
}
.g-page:not(.g-readable) .guide-author .guide-external-link:is(:hover,:focus-visible) .guide-external-link__mark::before{opacity:1}
@media (prefers-reduced-motion:no-preference){
  .guide-author .guide-external-link__mark::before{transition:opacity .22s}
}
@media (min-width:1024px){
  .guide-author .anna-guide-links{column-gap:8px}
  .guide-author .dacha-author-column--quote{justify-content:flex-end}
}
.g-readable .guide-author .dacha-author-column--quote{grid-column:auto}


.guide-author .anna-guide-links {
  max-width: 100%;
  gap: 8px 16px;
}
.guide-author .guide-external-link {
  min-height: 44px;
  gap: 4px;
  font-size: 16px;
}
.guide-author .guide-external-link__mark {
  flex-basis: 42px;
}
.guide-author .guide-external-link__mark,
.guide-author .guide-external-link__ring {
  width: 42px;
  height: 42px;
}
.guide-author .guide-external-link__icon {
  width: 19px;
  height: 19px;
}
@media (min-width: 1200px) {
  .guide-author .anna-guide-links {
    column-gap: 24px;
  }
}
@media (min-width: 1024px) {
  .guide-author .dacha-author-text { align-items: stretch; }
  .guide-author .dacha-author-column { align-self: stretch; }
  .guide-author .dacha-author-column--quote { justify-content: flex-start; }
}
