﻿/* === Medailonek autora === */


:root{
  --b:#00a8ee;
  --bd:#e7eded;
  --t:#1d2a2b;
  --m:#5a6a6b;


  --strip:10px;
  --left:230px;
  --gap:26px;


  /* ✅ maximální šířka medailonku (upravte dle potřeby) */
  --authorMax: 860px;
}


.author-card{
  position:relative;
  overflow:hidden;
  padding:22px 14px 16px 18px;
  background:#fff;
  border:1px solid var(--bd);
  border-radius:14px;
  box-shadow:
    inset 4px 0 0 rgba(40,173,226,.10),
    0 10px 26px rgba(0,0,0,.06),
    0 2px 8px rgba(0,0,0,.04);


  /* ✅ nově: karta se na široké stránce neroztahuje */
  max-width: var(--authorMax);
  width: 100%;
  margin-inline: auto;
}


.author-card:before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:var(--strip);
  pointer-events:none;
  background:linear-gradient(
    90deg,
    rgba(0,168,238,.18),
    rgba(0,168,238,.10) 45%,
    rgba(0,168,238,.04) 70%,
    rgba(0,168,238,0)
  );
  z-index:0;
}


.author-card__stripe{display:none}


.author-card__inner{
  position:relative;
  z-index:1;
  padding:0 24px 0 20px;
  display:grid;
  grid-template-columns:max-content 1fr;
  gap:var(--gap);
  align-items:start;
}


.author-card__inner:before{
  content:"";
  position:absolute;
  top:14px;
  bottom:14px;
  left:calc(var(--left) + var(--gap));
  width:1px;
  border-radius:2px;
  background:rgba(0,168,238,.65);
}


.author-card__left{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:center;
  text-align:center;
}


.author-card__meta{width:100%}


.author-card__avatar{
  width:116px;
  height:116px;
  border-radius:999px;
  overflow:hidden;
  background:#fff;
  border:0;
  box-shadow:
    inset 0 0 0 3px #fff,
    inset 0 0 0 4px rgba(0,0,0,.08),
    0 10px 24px rgba(0,0,0,.08);
}


.author-card__avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}


.author-card__quote{
  position:relative;
  padding:34px 0 4px 22px;
  line-height:1.6;
}


.author-card__quote:before{
  content:"“";
  position:absolute;
  left:22px;
  top:6px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:54px;
  line-height:1;
  color:var(--b);
  opacity:.30;
}


.author-card__quote p{
  margin:0;
  font-style:italic;
  font-size:13.5px;
  color:#2b3a3b;
}


.author-card__name{
  font-weight:700;
  color:var(--t);
  font-size:16px;
  white-space:nowrap;
}


.author-card__role{
  margin-top:0;
  color:var(--m);
  font-size:13px;
  line-height:1.35;
}


@media(max-width:520px){
  :root{
    --gap:14px; /* menší mezery */
  }


  /* na mobilu může být klidně 100% (max šířka nevadí, jen pro jistotu) */
  .author-card{
    padding:14px;
    box-shadow:
      inset 3px 0 0 rgba(40,173,226,.10),
      0 10px 26px rgba(0,0,0,.06),
      0 2px 8px rgba(0,0,0,.04);
  }


  .author-card:before{width:6px} /* užší strip */


  .author-card__inner{
    grid-template-columns:1fr;
    padding:0 12px;
    gap:12px;
  }


  .author-card__inner:before{display:none} /* dělící čára pryč na mobilu */


  .author-card__left{
    flex-direction:row;
    align-items:center;
    justify-content:flex-start;
    text-align:left;
    gap:12px;
  }


  .author-card__meta{width:auto}


  .author-card__avatar{
    width:74px;
    height:74px;
    box-shadow:
      0 0 0 8px #fff,
      0 0 0 9px rgba(0,0,0,.08),
      0 8px 18px rgba(0,0,0,.10);
  }


  .author-card__name{white-space:normal} /* dovolí zalomení */


  .author-card__quote{
    padding:26px 0 0 0; /* bez odsazení vlevo */
  }


  .author-card__quote:before{
    left:0;
    top:2px;
    font-size:46px;
  }
}