/** Beacon presentation for OneNav's author archive and activity tabs. */

body.author #beacon-main {
  padding-top: 12px;
}

body.author .box-head-author {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid var(--bc-surface-dark-soft);
  border-radius: var(--bc-rounded-sm);
  background: var(--bc-canvas-dark);
  color: var(--bc-on-dark);
  isolation: isolate;
}

body.author .box-head-author .box-head-bg,
body.author .box-head-author .box-head-img {
  position: absolute;
  z-index: -1;
  inset: 0;
}

body.author .box-head-author .box-head-img {
  background-position: center 42%;
  background-size: cover;
  filter: saturate(.72);
  opacity: .26;
}

body.author .box-head-author::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--bc-canvas-dark) 88%, transparent) 0%,
    color-mix(in srgb, var(--bc-canvas-dark) 64%, transparent) 58%,
    color-mix(in srgb, var(--bc-canvas-dark) 32%, transparent) 100%);
  content: "";
}

body.author .box-head-author .box-head-content {
  display: flex;
  min-height: 190px;
  align-items: flex-end;
  margin: 0 !important;
  padding: clamp(20px, 4vw, 32px) !important;
}

body.author .box-head-author .box-head-content > .d-flex {
  align-items: center;
  max-width: 900px;
}

body.author .box-head-author .avatar-img.avatar-lg {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--bc-on-dark) 46%, transparent);
  border-radius: var(--bc-rounded-sm);
  background: var(--bc-surface-dark-soft);
}

body.author .box-head-author .avatar-img.avatar-lg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.author .box-head-author .author-meta { min-width: 0; margin-left: 14px !important; }

body.author .box-head-author .author-meta h1 {
  margin: 0 0 8px !important;
  color: var(--bc-on-dark);
  font-family: var(--bc-font-sans);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.2;
}

body.author .box-head-author .author-meta > div {
  display: -webkit-box;
  max-width: 760px;
  overflow: hidden;
  color: var(--bc-body-on-dark);
  font-size: 13px;
  line-height: 1.6;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.author .tab-main > .card {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.author .tab-main > .card > .tab-header {
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--bc-hairline);
  border-radius: var(--bc-rounded-sm);
  background: var(--bc-canvas);
}

body.author .tab-main .btn-tab-group {
  display: flex;
  min-width: 0;
  gap: 4px;
  padding: 6px;
}

body.author .tab-main .btn-tab-group > .btn-tab {
  display: inline-flex;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--bc-rounded-sm);
  background: transparent;
  color: var(--bc-body);
  font-size: 12px;
  text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

body.author .tab-main .btn-tab-group > .btn-tab:hover {
  border-color: var(--bc-hairline);
  color: var(--bc-ink);
}

body.author .tab-main .btn-tab-group > .btn-tab.active {
  border-color: var(--bc-ink);
  background: var(--bc-ink);
  color: var(--bc-on-dark);
}

body.author .tab-main .btn-tab-group > .btn-tab .badge,
body.author .tab-main .tab-pane > .mb-3 .badge {
  min-width: 22px;
  padding: 3px 6px;
  border-radius: var(--bc-rounded-xs);
  background: var(--bc-canvas);
  color: var(--bc-body);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

body.author .tab-main .btn-tab-group > .btn-tab.active .badge,
body.author .tab-main .tab-pane > .mb-3 .btn.active .badge {
  background: var(--bc-accent-orange);
  color: var(--bc-on-dark);
}

body.author .tab-main .tab-content { min-width: 0; }

body.author .tab-main .tab-pane > .mb-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px !important;
}

body.author .tab-main .tab-pane > .mb-3 .btn-tab-h {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
  padding: 0 10px;
  border: 1px solid var(--bc-hairline);
  border-radius: var(--bc-rounded-sm);
  background: var(--bc-canvas);
  color: var(--bc-body) !important;
  font-size: 11px;
  text-decoration: none;
  box-shadow: none;
}

body.author .tab-main .tab-pane > .mb-3 .btn-tab-h:hover {
  border-color: var(--bc-ink);
  color: var(--bc-ink) !important;
}

body.author .tab-main .tab-pane > .mb-3 .btn-tab-h.active {
  border-color: var(--bc-ink);
  background: var(--bc-ink);
  color: var(--bc-on-dark) !important;
}

body.author .tab-main .comment-item {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--bc-hairline);
  border-radius: var(--bc-rounded-sm);
  background: var(--bc-canvas);
  color: var(--bc-ink);
}

body.author .tab-main .comment-time {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--bc-body);
  font-family: var(--bc-font-mono);
  font-size: 10px;
}

body.author .tab-main .comment-time .badge {
  padding: 3px 6px;
  border: 1px solid var(--bc-hairline);
  border-radius: var(--bc-rounded-xs);
  background: var(--bc-canvas);
  color: var(--bc-body);
  font-family: var(--bc-font-sans);
  font-size: 10px;
}

body.author .tab-main .comment-link {
  margin-top: 8px;
  color: var(--bc-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

body.author .tab-main .comment-link a,
body.author .tab-main .post-link a {
  color: inherit;
  text-decoration: none;
}

body.author .tab-main .comment-link a:hover,
body.author .tab-main .post-link a:hover { text-decoration: underline; text-underline-offset: 3px; }

body.author .tab-main .post-link {
  margin-top: 12px !important;
  padding-left: 10px;
  border-left: 2px solid var(--bc-primary);
  color: var(--bc-body);
  font-size: 11px;
  line-height: 1.55;
}

body.author .tab-main .nothing-box .nothing {
  display: grid;
  min-height: 112px;
  place-content: center;
  padding: 20px;
  border: 1px dashed var(--bc-hairline);
  border-radius: var(--bc-rounded-sm);
  background: var(--bc-canvas);
  text-align: center;
}

body.author .tab-main .nothing-box .nothing-svg { display: none !important; }

body.author .tab-main .nothing-box .nothing-msg {
  margin: 0;
  color: var(--bc-body);
  font-size: 12px;
}

body.author .tab-main .btn-tab:focus-visible,
body.author .tab-main .btn-tab-h:focus-visible,
body.author .tab-main a:focus-visible,
body.author .tab-main button:focus-visible {
  outline: 2px solid var(--bc-semantic-color-border-focus);
  outline-offset: 2px;
}

html.io-black-mode body.author .box-head-author {
  border-color: var(--bc-surface-dark-soft);
}

html.io-black-mode body.author .tab-main > .card > .tab-header {
  border-color: var(--bc-surface-dark-soft);
  background: var(--bc-canvas-dark);
}

html.io-black-mode body.author .tab-main .btn-tab-group > .btn-tab { color: var(--bc-body-on-dark); }

html.io-black-mode body.author .tab-main .btn-tab-group > .btn-tab:hover {
  border-color: var(--bc-surface-dark-soft);
  color: var(--bc-on-dark);
}

html.io-black-mode body.author .tab-main .btn-tab-group > .btn-tab.active {
  border-color: var(--bc-on-dark);
  background: var(--bc-on-dark);
  color: var(--bc-ink) !important;
}

html.io-black-mode body.author .tab-main .btn-tab-group > .btn-tab .badge,
html.io-black-mode body.author .tab-main .tab-pane > .mb-3 .badge {
  background: var(--bc-canvas-dark);
  color: var(--bc-body-on-dark);
}

html.io-black-mode body.author .tab-main .btn-tab-group > .btn-tab.active .badge,
html.io-black-mode body.author .tab-main .tab-pane > .mb-3 .btn.active .badge {
  background: var(--bc-accent-orange);
  color: var(--bc-ink);
}

html.io-black-mode body.author .tab-main .tab-pane > .mb-3 .btn-tab-h {
  border-color: var(--bc-surface-dark-soft);
  background: var(--bc-canvas-dark);
  color: var(--bc-body-on-dark) !important;
}

html.io-black-mode body.author .tab-main .tab-pane > .mb-3 .btn-tab-h:hover {
  border-color: var(--bc-on-dark);
  color: var(--bc-on-dark) !important;
}

html.io-black-mode body.author .tab-main .tab-pane > .mb-3 .btn-tab-h.active {
  border-color: var(--bc-on-dark);
  background: var(--bc-on-dark);
  color: var(--bc-ink) !important;
}

html.io-black-mode body.author .tab-main .comment-item {
  border-color: var(--bc-surface-dark-soft);
  background: var(--bc-canvas-dark);
  color: var(--bc-on-dark);
}

html.io-black-mode body.author .tab-main .comment-time,
html.io-black-mode body.author .tab-main .post-link { color: var(--bc-body-on-dark); }

html.io-black-mode body.author .tab-main .comment-time .badge {
  border-color: var(--bc-surface-dark-soft);
  background: var(--bc-canvas-dark);
  color: var(--bc-body-on-dark);
}

html.io-black-mode body.author .tab-main .comment-link { color: var(--bc-on-dark); }

html.io-black-mode body.author .tab-main .post-link { border-left-color: var(--bc-accent-orange); }

html.io-black-mode body.author .tab-main .nothing-box .nothing {
  border-color: var(--bc-surface-dark-soft);
  background: var(--bc-canvas-dark);
}

html.io-black-mode body.author .tab-main .nothing-box .nothing-msg { color: var(--bc-body-on-dark); }

@media (max-width: 600px) {
  body.author .box-head-author,
  body.author .box-head-author .box-head-content { min-height: 172px; }
  body.author .box-head-author .box-head-content { padding: 20px !important; }
  body.author .box-head-author .avatar-img.avatar-lg { flex-basis: 56px; width: 56px; height: 56px; }
  body.author .box-head-author .author-meta { margin-left: 10px !important; }
  body.author .box-head-author .author-meta h1 { margin-bottom: 6px !important; font-size: 22px; }
  body.author .box-head-author .author-meta > div { font-size: 12px; -webkit-line-clamp: 2; }
  body.author .tab-main .btn-tab-group { gap: 2px; padding: 5px; }
  body.author .tab-main .btn-tab-group > .btn-tab { min-height: 36px; gap: 4px; padding: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  body.author .tab-main .btn-tab-group > .btn-tab { transition: none; }
}
