/* SEO Fury — Author Box (front-end)
   Tokens on .sf-author-box so a page builder or the PRO accent setting can
   override them inline; dark values follow the visitor's system unless the
   box is forced light/dark via .sf-author-box--theme-*. */
.sf-author-box{
  --sfab-accent: var(--wp--preset--color--primary, #4f46e5);
  --sfab-bg: #ffffff;
  --sfab-bg-soft: #f6f7fb;
  --sfab-border: #e5e7eb;
  --sfab-text: #111827;
  --sfab-muted: #6b7280;
  --sfab-radius: 14px;
  box-sizing: border-box;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 2em 0;
  padding: 22px 24px;
  background: var(--sfab-bg);
  border: 1px solid var(--sfab-border);
  border-radius: var(--sfab-radius);
  color: var(--sfab-text);
  font-size: 15px;
  line-height: 1.55;
  clear: both;
}
.sf-author-box *, .sf-author-box *::before, .sf-author-box *::after{ box-sizing: border-box; }
.sf-author-box a{ color: var(--sfab-accent); text-decoration: none; }
.sf-author-box a:hover{ text-decoration: underline; }

.sf-author-box__avatar{ flex: 0 0 auto; }
.sf-author-box__avatar img{
  display: block; width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 3px var(--sfab-bg), 0 0 0 5px var(--sfab-accent);
  margin: 0;
}
.sf-author-box__body{ flex: 1 1 auto; min-width: 0; }
.sf-author-box__heading{
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--sfab-muted); margin-bottom: 2px;
}
.sf-author-box__name{ font-size: 19px; font-weight: 700; line-height: 1.25; margin: 0; }
.sf-author-box__name a{ color: inherit; }
.sf-author-box__title{ color: var(--sfab-muted); font-size: 14px; margin-top: 2px; }
.sf-author-box__sep{ margin: 0 6px; opacity: .6; }
.sf-author-box__bio{ margin-top: 10px; }
.sf-author-box__bio p{ margin: 0 0 .6em; }
.sf-author-box__bio p:last-child{ margin-bottom: 0; }

.sf-author-box__credentials{
  list-style: none; margin: 12px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 16px;
  font-size: 14px;
}
.sf-author-box__credentials li{ margin: 0; padding-left: 18px; position: relative; }
.sf-author-box__credentials li::before{
  content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px;
  border-radius: 50%; background: var(--sfab-accent); opacity: .85;
}

.sf-author-box__tags{ display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.sf-author-box__tag{
  display: inline-block; font-size: 12.5px; font-weight: 600; line-height: 1;
  padding: 6px 10px; border-radius: 999px; background: var(--sfab-bg-soft);
  color: var(--sfab-text); border: 1px solid var(--sfab-border);
}

.sf-author-box__footer{
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--sfab-border);
}
.sf-author-box__social{ display: flex; flex-wrap: wrap; gap: 6px; }
.sf-author-box__link{
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  line-height: 1; padding: 7px 11px; border-radius: 8px; border: 1px solid var(--sfab-border);
  background: var(--sfab-bg); color: var(--sfab-text) !important; text-decoration: none !important;
  transition: border-color .15s, color .15s;
}
.sf-author-box__link::before{
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sfab-accent);
}
.sf-author-box__link:hover{ border-color: var(--sfab-accent); color: var(--sfab-accent) !important; }
.sf-author-box__link--linkedin::before{ background:#0a66c2; }
.sf-author-box__link--x::before{ background:#000; }
.sf-author-box__link--facebook::before{ background:#1877f2; }
.sf-author-box__link--instagram::before{ background:#e1306c; }
.sf-author-box__link--youtube::before{ background:#ff0000; }
.sf-author-box__link--tiktok::before{ background:#010101; }
.sf-author-box__link--threads::before{ background:#000; }
.sf-author-box__link--github::before{ background:#24292f; }
.sf-author-box__link--pinterest::before{ background:#bd081c; }
.sf-author-box__link--mastodon::before{ background:#6364ff; }
.sf-author-box__link--telegram::before{ background:#26a5e4; }
.sf-author-box__link--wikipedia::before{ background:#636466; }
.sf-author-box__all{ font-size: 13.5px; font-weight: 600; white-space: nowrap; }

.sf-author-box__reviewer{
  display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--sfab-muted);
}
.sf-author-box__reviewer img{ width: 28px; height: 28px; border-radius: 50%; object-fit: cover; margin: 0; }
.sf-author-box__reviewer strong{ color: var(--sfab-text); }

/* Dark: follow the system unless forced. */
@media (prefers-color-scheme: dark){
  .sf-author-box:not(.sf-author-box--theme-light){
    --sfab-bg: #171a21; --sfab-bg-soft: #232733; --sfab-border: #2f3542;
    --sfab-text: #e6e8ee; --sfab-muted: #9aa3b2;
  }
  .sf-author-box:not(.sf-author-box--theme-light) .sf-author-box__link--x::before,
  .sf-author-box:not(.sf-author-box--theme-light) .sf-author-box__link--threads::before,
  .sf-author-box:not(.sf-author-box--theme-light) .sf-author-box__link--tiktok::before,
  .sf-author-box:not(.sf-author-box--theme-light) .sf-author-box__link--github::before{ background:#e6e8ee; }
}
.sf-author-box--theme-dark{
  --sfab-bg: #171a21; --sfab-bg-soft: #232733; --sfab-border: #2f3542;
  --sfab-text: #e6e8ee; --sfab-muted: #9aa3b2;
}
.sf-author-box--theme-dark .sf-author-box__link--x::before,
.sf-author-box--theme-dark .sf-author-box__link--threads::before,
.sf-author-box--theme-dark .sf-author-box__link--tiktok::before,
.sf-author-box--theme-dark .sf-author-box__link--github::before{ background:#e6e8ee; }

@media (max-width: 560px){
  .sf-author-box{ flex-direction: column; align-items: center; text-align: center; padding: 20px 18px; }
  .sf-author-box__credentials{ text-align: left; }
  .sf-author-box__tags, .sf-author-box__social{ justify-content: center; }
  .sf-author-box__footer{ justify-content: center; }
}
