/* Author bio card at the foot of an article (inc/author-bio.php, 6 Nov 2026). House card shape: square top, 0 0 9px 9px.
   Also loaded on wp-admin > Author bio for the preview, so every colour falls back when the theme variables are absent. */
.skp-author {
  --ab-blue: var(--skp-blue, #134584);
  --ab-deep: var(--skp-deep, #132D48);
  --ab-red: var(--skp-red-2, #D22334);
  --ab-tint: #EEF2F8;
  margin: 44px 0 16px; background: #fff; border-radius: 0 0 9px 9px; overflow: hidden;
  box-shadow: 0 3px 12px 0 #C4C4C4; font-family: sofia-pro, "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
  color: #000; text-align: left;
}
.skp-author p { margin: 0; }
.skp-author-head {
  display: flex; align-items: center; gap: 22px; padding: 22px 26px;
  background: var(--ab-blue); border-top: 4px solid var(--ab-red); color: #fff;
}
.skp-author-photo-wrap { flex: 0 0 auto; width: 112px; height: 112px; border-radius: 50%; border: 4px solid #fff; overflow: hidden; background: #fff; box-shadow: 0 3px 12px 0 #11294B; }
.skp-author .skp-author-photo, .skp-article .skp-body .skp-author .skp-author-photo { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; margin: 0; float: none; }
.skp-author-who { min-width: 0; }
.skp-author .skp-author-eyebrow { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #C9D6EA; margin-bottom: 4px; }
.skp-author .skp-author-name { font-size: 28px; line-height: 1.1; color: #fff; }
.skp-author .skp-author-title { font-size: 16px; line-height: 1.35; color: #fff; margin-top: 6px; }
.skp-author .skp-author-title::before { content: ""; display: block; width: 34px; height: 3px; background: var(--ab-red); margin-bottom: 8px; }
.skp-author-body { padding: 22px 26px 24px; }
.skp-author .skp-author-bio p { font-size: 16px; line-height: 1.6; color: #1d1d1d; }
.skp-author .skp-author-bio p + p { margin-top: .8em; }
.skp-author .skp-author-bio a { color: var(--ab-blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.skp-author .skp-author-bio a:hover { color: var(--skp-red, #D71830); }
.skp-author ul.skp-author-highlights { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.skp-author .skp-author-highlights li {
  position: relative; margin: 0; padding: 10px 12px 10px 40px; background: var(--ab-tint); border-radius: 0 0 9px 9px;
  border-top: 2px solid var(--ab-blue); font-size: 15px; line-height: 1.35; color: var(--ab-deep);
}
.skp-author .skp-author-highlights li::before {
  content: ""; position: absolute; left: 12px; top: 11px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ab-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l3 3 6-6.3' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.skp-author .skp-author-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.skp-author .skp-author-links a { display: inline-block; padding: 8px 15px; font-size: 15px; line-height: 1.2; text-decoration: none; transition: background-color .15s, color .15s; }
.skp-author .skp-author-link { color: var(--ab-blue); box-shadow: inset 0 0 0 2px var(--ab-blue); }
.skp-author .skp-author-link:hover { background: var(--ab-blue); color: #fff; }
.skp-author .skp-author-more { background: var(--ab-red); color: #fff; }
.skp-author .skp-author-more::after { content: " \2192"; }
.skp-author .skp-author-more:hover { background: var(--ab-blue); color: #fff; }
.skp-author a:focus-visible { outline: 3px solid var(--skp-red, #D71830); outline-offset: 2px; }
.skp-author-pref { text-align: center; margin: 0 0 32px; }
.skp-author-pref a { display: inline-block; }
.skp-author-pref img, .skp-article .skp-body .skp-author-pref img { display: block; width: 145px; height: auto; margin: 0; }

@media (max-width: 560px) {
  .skp-author { margin-top: 34px; }
  .skp-author-head { gap: 16px; padding: 18px; }
  .skp-author-photo-wrap { width: 88px; height: 88px; border-width: 3px; }
  .skp-author .skp-author-name { font-size: 23px; }
  .skp-author .skp-author-title { font-size: 15px; }
  .skp-author-body { padding: 18px 18px 20px; }
  .skp-author ul.skp-author-highlights { grid-template-columns: 1fr; }
}

/* wp-admin preview */
.skp-bio-preview { max-width: 640px; }
.skp-bio-admin .skp-bio-photo img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 1px solid #dcdcde; }
.skp-bio-admin .skp-bio-link input { min-height: 40px; vertical-align: middle; }
.skp-bio-admin .skp-bio-link input:first-child { width: 14em; }
