/* Authors pages */
:root{--authors-bg:#f8f7fb;--authors-card:#fff;--authors-border:#e5e7eb;--authors-text:#111;--authors-muted:#4b5563}

.authors-page,.author-detail-page{background:var(--authors-bg);padding:48px 0 64px}
.authors-container{max-width:1120px;margin:0 auto;padding:0 20px}
.authors-hero{text-align:center;margin:0 auto 32px}
.authors-hero .eyebrow{letter-spacing:.08em;text-transform:uppercase;font-size:.8rem;color:#6b7280;margin-bottom:.4rem;font-weight:700}
.authors-hero h1{font-size:2.4rem;color:var(--authors-text);margin:0 0 .5rem}
.authors-hero .lead{max-width:780px;margin:0 auto;color:var(--authors-muted);line-height:1.6}

.authors-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px}
.author-card{background:var(--authors-card);border:1px solid var(--authors-border);border-radius:18px;padding:20px;box-shadow:0 10px 28px rgba(0,0,0,.06);display:flex;flex-direction:column;gap:12px}
.author-card__top{display:flex;gap:14px;align-items:center}
.author-avatar-wrap{width:120px;height:120px;border-radius:50%;overflow:hidden;border:3px solid #111;flex-shrink:0}
.author-avatar-wrap img{width:100%;height:100%;object-fit:cover;display:block}
.author-card h2{margin:.2rem 0;font-size:1.4rem;color:var(--authors-text)}
.author-card .muted{color:var(--authors-muted);line-height:1.5}
.author-card__actions{display:flex;flex-wrap:wrap;gap:10px}
.author-card__actions .btn{padding:10px 16px;border-radius:12px;font-weight:700;transition:all .15s ease;display:inline-flex;align-items:center;justify-content:center}
.author-card .btn.link{background:#fff;border:1px solid var(--authors-border);color:#87ceea;text-decoration:none;box-shadow:0 6px 16px rgba(0,0,0,.05)}
.author-card .btn.link:hover{background:#e8f1fb;border-color:#c7d7ec;color:#0f4d94;transform:translateY(-1px)}
.author-card__actions .icon{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin-right:0;font-size:14px;line-height:1}

.author-detail-page .author-hero-block{background:var(--authors-card);border:1px solid var(--authors-border);border-radius:18px;box-shadow:0 12px 30px rgba(0,0,0,.07);padding:28px;display:grid;grid-template-columns:1.1fr .9fr;gap:24px;align-items:center;margin-bottom:24px}
.author-hero__text h1{font-size:2.2rem;margin:0 0 .6rem;color:var(--authors-text)}
.author-hero__text .lead{color:var(--authors-muted);line-height:1.6;margin:0 0 .4rem}
.author-hero__text .muted{color:#6b7280;font-size:.92rem;margin:0 0 .8rem}
.author-hero__actions{display:flex;gap:10px;flex-wrap:wrap}
.author-hero__actions .icon,.author-social__actions .icon{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin-right:0;font-size:14px;line-height:1}
.author-social__actions .btn{display:inline-flex;align-items:center;justify-content:center}
.author-hero__avatar{justify-self:end}
.author-hero__avatar img{width:240px;height:240px;border-radius:50%;object-fit:cover;border:4px solid #111;box-shadow:0 14px 32px rgba(0,0,0,.12)}

.author-social{background:var(--authors-card);border:1px solid var(--authors-border);border-radius:16px;box-shadow:0 10px 26px rgba(0,0,0,.06);padding:20px;text-align:center;margin-bottom:24px}
.author-social h2{margin:0 0 10px;font-size:1.35rem;color:var(--authors-text)}
.author-social__actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}

.author-recipes .section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.author-recipes h2{margin:0;font-size:1.4rem;color:var(--authors-text)}
.author-recipe-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.author-recipe-card{background:var(--authors-card);border:1px solid var(--authors-border);border-radius:14px;overflow:hidden;box-shadow:0 10px 26px rgba(0,0,0,.06);transition:transform .12s ease,box-shadow .2s ease;display:block}
.author-recipe-card:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(0,0,0,.1)}
.author-recipe-card img{width:100%;height:200px;object-fit:cover;display:block}
.author-recipe-card__body{padding:14px}
.author-recipe-card__body h3{margin:0 0 6px;font-size:1.05rem;color:var(--authors-text)}
.author-recipe-card__body p{margin:0;color:var(--authors-muted);font-size:.94rem;line-height:1.45}

@media (max-width: 900px){
  .author-detail-page .author-hero-block{grid-template-columns:1fr;text-align:center}
  .author-hero__avatar{justify-self:center}
  .author-hero__actions{justify-content:center}
  .authors-hero h1{font-size:2rem}
}
@media (max-width: 600px){
  .authors-hero h1{font-size:1.8rem}
  .author-hero__avatar img{width:200px;height:200px}
  .authors-page,.author-detail-page{padding:36px 0 48px}
}
