﻿/* === Medailonek autora === */


:root{
  --bd:#e7eded;
  --t:#1d2a2b;
  --m:#5a6a6b;

  --strip:10px;
  --left:230px;
  --gap:26px;

  --authorMax: 840px;
  --quoteMax: 640px;

  /* ✅ barvy */
  --stripeColor:#edde00;

  /* ✅ tmavší šedá (aby byla vidět) */
  --dividerColor:#cfd4da;
  --quoteMarkColor:#cfd4da;
}

.author-card{
  position:relative;
  overflow:hidden;
  padding:22px 14px 16px 18px;
  background:#fff;
  border:1px solid var(--bd);

  /* ✅ hranatý blok + bez stínu */
  border-radius:0;
  box-shadow:none;

  width:100%;
  max-width:var(--authorMax);
  margin-inline:auto;
}

/* ✅ žlutý pruh jako původní modrý: gradient do ztracena */
.author-card:before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:var(--strip);
  pointer-events:none;

  background:linear-gradient(
    90deg,
    rgba(237,222,0,.85),
    rgba(237,222,0,.55) 45%,
    rgba(237,222,0,.20) 70%,
    rgba(237,222,0,0) 100%
  );
  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;
}

/* ✅ dělící čára – tmavší */
.author-card__inner:before{
  content:"";
  position:absolute;
  top:14px;
  bottom:14px;
  left:calc(var(--left) + var(--gap));
  width:1px;
  border-radius:0;
  background:var(--dividerColor);
}

.author-card__left{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:center;
  text-align:center;

  /* ✅ drží levý blok tak, aby role nelezla do dělící čáry */
  max-width:var(--left);
}

.author-card__meta{
  width:100%;
  overflow-wrap:anywhere;
}

.author-card__avatar{
  width:116px;
  height:116px;
  border-radius:50%;          /* ✅ kruh */
  overflow:hidden;            /* ✅ ořez do kruhu */
  background:#fff;
  border:0;
  box-shadow:none;
}

/* ✅ Fix proti globálnímu img CSS (mobil) */
.author-card__avatar img{
  width:100% !important;
  height:100% !important;     /* přebije height:auto */
  max-width:none !important;  /* přebije max-width:100% */
  display:block;
  object-fit:cover;           /* bez deformace */
  object-position:center;
}

.author-card__quote{
  position:relative;
  padding:34px 0 4px 22px;
  line-height:1.6;
  max-width:var(--quoteMax);
}

/* ✅ uvozovky – tmavší a viditelné */
.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(--quoteMarkColor);
  opacity:.65;
}

.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;
}

/* ✅ role se zalomí */
.author-card__role{
  margin-top:0;
  color:var(--m);
  font-size:13px;
  line-height:1.35;
  white-space:normal;
  overflow-wrap:anywhere;
}

@media(max-width:520px){
  :root{
    --gap:14px;
    --quoteMax: 100%;
  }

  .author-card{
    padding:14px;
    border-radius:0;
    box-shadow:none;
    max-width:100%;
  }

  .author-card:before{width:6px}

  .author-card__inner{
    grid-template-columns:1fr;
    padding:0 12px;
    gap:12px;
  }

  .author-card__inner:before{display:none}

  .author-card__left{
    flex-direction:row;
    align-items:center;
    justify-content:flex-start;
    text-align:left;
    gap:12px;
    max-width:none;
  }

  .author-card__meta{width:auto}

  .author-card__avatar{
    width:74px;
    height:74px;
    box-shadow:none;
  }

  .author-card__name{white-space:normal}

  .author-card__quote{
    padding:26px 0 0 0;
    max-width:100%;
  }

  .author-card__quote:before{
    left:0;
    top:2px;
    font-size:46px;
  }
}
