.author-profile-page,
.editorial-experts {
  --expert-line: color-mix(in srgb, var(--text) 14%, transparent);
  --expert-soft: color-mix(in srgb, var(--accent) 4%, #fff);
  --expert-brand-ink: color-mix(in srgb, var(--brand) 82%, var(--text));
  --expert-shadow: 0 1.1rem 3rem color-mix(in srgb, var(--brand) 9%, transparent);
  --expert-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: var(--font-content, "Manrope"), "Segoe UI", sans-serif;
}
.author-profile-page { padding-top: .3rem; padding-bottom: 2rem; }
.author-profile-page a,
.editorial-experts a { color: inherit; }
.expert-breadcrumbs { display: flex; flex-wrap: wrap; gap: .4rem .6rem; margin-bottom: 1.2rem; color: var(--muted); font: .72rem/1.6 var(--expert-mono); }
.expert-breadcrumbs a { text-decoration: none; }
.expert-breadcrumbs [aria-current] { color: var(--expert-brand-ink); }
.expert-avatar { --avatar-size: 3.5rem; flex: none; display: grid; place-items: center; position: relative; overflow: hidden; width: var(--avatar-size); height: var(--avatar-size); border-radius: 50%; background: color-mix(in srgb, var(--brand) 18%, #fff); color: color-mix(in srgb, var(--brand) 80%, #000); font-size: calc(var(--avatar-size) * .28); font-weight: 800; letter-spacing: .03em; }
.expert-avatar :is(picture,img) { display: block; width: 100%; height: 100%; }
.expert-avatar img { object-fit: cover; }
.expert-roles { display: flex; flex-wrap: wrap; gap: .35rem; }
.expert-role { display: inline-flex; align-items: center; gap: .3rem; width: fit-content; padding: .2rem .55rem; border-radius: 99px; font: 800 .62rem/1.5 var(--expert-mono); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.expert-role--author { border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); background: color-mix(in srgb, var(--accent) 12%, #fff); color: color-mix(in srgb, var(--accent) 76%, #000); }
.expert-role--reviewer { border: 1px solid var(--expert-brand-ink); background: var(--expert-brand-ink); color: #fff; }
.expert-kicker { display: flex; align-items: center; gap: .5rem; margin: 0 0 .65rem; color: var(--expert-brand-ink); font: 800 .69rem/1.5 var(--expert-mono); text-transform: uppercase; letter-spacing: .11em; }
.expert-kicker::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--accent); }
.author-profile-hero,
.experts-panel { position: relative; isolation: isolate; overflow: hidden; border: 1px solid var(--expert-line); background: var(--expert-soft); box-shadow: var(--expert-shadow); }
.author-profile-hero::after,
.experts-panel::after { content: ""; position: absolute; z-index: -1; right: -2rem; top: -2rem; width: 16rem; height: 16rem; background-image: radial-gradient(circle, color-mix(in srgb, var(--brand) 10%, transparent) 2px, transparent 2.5px); background-size: 16px 16px; mask-image: radial-gradient(circle at 70% 30%, #000, transparent 70%); }
.author-profile-hero { display: grid; grid-template-columns: minmax(0,1fr) 18.5rem; align-items: center; gap: 2.2rem; padding: clamp(1.4rem,3.6vw,2.75rem); border-radius: 1.35rem; }
.profile-identity { display: flex; align-items: center; gap: 1.8rem; min-width: 0; }
.profile-portrait { position: relative; flex: none; padding-bottom: .8rem; }
.profile-portrait .expert-avatar { --avatar-size: 8.25rem; border: 4px solid #fff; box-shadow: 0 .6rem 1.8rem color-mix(in srgb, var(--brand) 16%, transparent); }
.profile-portrait .expert-roles { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); justify-content: center; flex-wrap: nowrap; }
.profile-heading { min-width: 0; }
.profile-heading h1 { margin: 0 0 .5rem; font-family: var(--font-heading, "Manrope"), sans-serif; font-size: clamp(2rem,3.6vw,3rem); font-weight: 800; line-height: 1.12; letter-spacing: -.025em; overflow-wrap: anywhere; }
.profile-introduction { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.65; }
.profile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; margin-top: 1.2rem; }
.expert-button { display: inline-flex; align-items: center; gap: .6rem; border: 1px solid var(--brand); border-radius: .5rem; padding: .65rem 1rem; color: #fff !important; background: var(--brand); font-size: .8rem; font-weight: 800; text-decoration: none; }
.expert-text-link { font-size: .8rem; font-weight: 800; text-decoration: none; text-underline-offset: .2em; overflow-wrap: anywhere; }
.expert-text-link:hover { text-decoration: underline; }
.profile-stats { display: grid; gap: .65rem; }
.profile-stat { display: flex; align-items: center; gap: .9rem; border: 1px solid var(--expert-line); border-radius: .75rem; padding: .9rem 1rem; background: #fff; }
.profile-stat > strong { flex: none; min-width: 4.5rem; color: var(--brand); font: 800 2rem/1.1 var(--font-heading, "Manrope"), sans-serif; }
.profile-stat > div > span { display: block; color: var(--text); font: 700 .64rem/1.5 var(--expert-mono); letter-spacing: .07em; text-transform: uppercase; }
.profile-stat small { display: block; color: var(--muted); font-size: .73rem; line-height: 1.5; }
.profile-stat > .profile-stat-date { font-size: 1.16rem; }
.profile-stat-date small { margin-top: .2rem; font-weight: 500; }
.profile-layout { display: grid; grid-template-columns: minmax(0,1fr) 20rem; align-items: start; gap: 2.2rem; margin-top: 2.5rem; }
.profile-main { min-width: 0; display: grid; gap: 2.75rem; }
.profile-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .75rem; margin-bottom: 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--expert-line); }
.profile-section-kicker { margin: 0 0 .35rem; color: var(--muted); font: 700 .65rem/1.5 var(--expert-mono); text-transform: uppercase; letter-spacing: .09em; }
.profile-section-head h2 { margin: 0; font-family: var(--font-heading, "Manrope"), sans-serif; font-size: 1.45rem; line-height: 1.35; font-weight: 800; letter-spacing: -.02em; }
.profile-section-head h2 small { margin-left: .35rem; color: var(--muted); font: .85rem var(--expert-mono); }
.profile-bio { font-size: .97rem; line-height: 1.85; overflow-wrap: anywhere; }
.profile-bio p:last-child { margin-bottom: 0; }
.profile-topics-label { margin-top: 1.4rem; margin-bottom: .6rem; }
.profile-topic-tags,
.profile-filters,
.profile-role-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.profile-topic-tags a { display: inline-flex; gap: .5rem; align-items: center; padding: .4rem .7rem; border: 1px solid var(--expert-line); border-radius: 99px; background: #fff; font-size: .75rem; font-weight: 600; text-decoration: none; }
.profile-topic-tags a::before { content: ""; width: 5px; height: 5px; flex: none; border-radius: 50%; background: var(--brand); }
.profile-filters { margin-bottom: 1rem; }
.profile-filters a,
.profile-role-tabs a { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--expert-line); border-radius: .4rem; padding: .45rem .65rem; background: #fff; font: 700 .65rem/1.5 var(--expert-mono); text-decoration: none; }
.profile-filters a span { color: var(--accent); }
.profile-filters a small { font-size: inherit; opacity: .7; }
.profile-role-tabs { margin-bottom: 1rem; }
.profile-role-tabs a { font-family: inherit; font-size: .8rem; }
.profile-filters a[aria-current],
.profile-role-tabs a[aria-current] { color: var(--expert-brand-ink); border-color: color-mix(in srgb, var(--brand) 40%, transparent); background: color-mix(in srgb, var(--brand) 7%, #fff); }
.author-profile-posts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .85rem; }
.author-profile-post,
.profile-next-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 1rem; border: 1px solid var(--expert-line); border-radius: .75rem; background: #fff; transition: transform .17s ease, box-shadow .17s ease; }
.author-profile-post:hover,
.expert-card:hover { transform: translateY(-2px); box-shadow: var(--expert-shadow); }
.profile-card-topic { align-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: .2rem .35rem; border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent); border-radius: .25rem; background: color-mix(in srgb, var(--accent) 10%, #fff); color: var(--expert-brand-ink); font: 800 .58rem/1.4 var(--expert-mono); text-transform: uppercase; letter-spacing: .04em; }
.author-profile-post h3 { margin: .85rem 0 .5rem; font: 800 1rem/1.5 var(--font-heading, "Manrope"), sans-serif; }
.author-profile-post h3 a { text-decoration: none; }
.author-profile-post h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.author-profile-post > p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.75; }
.profile-card-meta { display: flex; flex-wrap: wrap; gap: .5rem .8rem; margin-top: auto; padding-top: 1rem; color: var(--muted); font: .64rem/1.6 var(--expert-mono); }
.profile-card-credits { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: .2rem .4rem; margin-top: .8rem; padding-top: .65rem; border-top: 1px dashed var(--expert-line); font-size: .73rem; }
.profile-card-credits > span { color: var(--muted); }
.profile-card-credits a { font-weight: 800; text-decoration: none; }
.profile-next-card { justify-content: center; min-height: 12rem; border-style: dashed; background: color-mix(in srgb, var(--brand) 2%, #fff); }
.profile-next-card > p:not(.profile-section-kicker) { color: var(--muted); font-size: .88rem; line-height: 1.7; }
.profile-sidebar { display: grid; gap: .9rem; position: sticky; top: calc(var(--header-height) + 1rem); }
.profile-side-card { padding: 1rem 1.1rem; border: 1px solid var(--expert-line); border-radius: .75rem; background: #fff; }
.profile-side-card--soft { background: color-mix(in srgb, var(--brand) 4%, #fff); }
.profile-side-card > h2 { margin: 0 0 .75rem; font: 800 .69rem/1.5 var(--expert-mono); text-transform: uppercase; letter-spacing: .09em; }
.profile-side-card dl { margin: 0; display: grid; gap: .8rem; }
.profile-side-card dt { color: var(--muted); font: 700 .61rem/1.5 var(--expert-mono); text-transform: uppercase; letter-spacing: .07em; }
.profile-side-card dd { margin: .12rem 0 0; font-size: .85rem; line-height: 1.6; overflow-wrap: anywhere; }
.profile-coverage { display: grid; gap: .35rem; }
.profile-coverage a { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .3rem .7rem; padding: .4rem 0; font-size: .77rem; text-decoration: none; }
.profile-coverage a > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-coverage strong { font: 800 .7rem var(--expert-mono); color: var(--brand); }
.profile-coverage-bar { grid-column: 1 / -1; height: 6px; border-radius: 99px; overflow: hidden; background: color-mix(in srgb, var(--brand) 10%, #fff); }
.profile-coverage-bar i { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.profile-coverage a[aria-current] { color: var(--accent); }
.profile-coverage a[aria-current] i { background: var(--accent); }
.profile-coverage a[aria-disabled] { opacity: .5; }
.profile-collaborator { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; }
.profile-collaborator + .profile-collaborator { border-top: 1px solid var(--expert-line); }
.profile-collaborator .expert-avatar { --avatar-size: 2.5rem; }
.profile-collaborator > div { min-width: 0; }
.profile-collaborator h3 { margin: 0; font: 800 .85rem/1.5 var(--font-heading, "Manrope"), sans-serif; }
.profile-collaborator p { margin: .12rem 0 .2rem; color: var(--muted); font-size: .75rem; }
.profile-pagination { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; font-size: .8rem; }
#profile-articles,
#experts { scroll-margin-top: calc(var(--header-height) + 1.25rem); }
.experts-panel { display: grid; grid-template-columns: minmax(12rem,.8fr) minmax(0,2.4fr); gap: 1.75rem; padding: clamp(1rem,2.6vw,1.85rem); border-radius: 1.1rem; }
.experts-intro { display: flex; flex-direction: column; justify-content: center; }
.experts-intro .expert-kicker { font-size: .64rem; }
.experts-intro > p:not(.expert-kicker) { max-width: 32ch; margin: 0; font-size: .86rem; line-height: 1.85; }
.experts-total { display: flex; align-items: baseline; gap: .1rem; margin: .1rem 0 .6rem; color: var(--brand); font: 800 3.5rem/1.1 var(--font-heading, "Manrope"), sans-serif; }
.experts-total > span { font-size: 1.6rem; opacity: .55; }
.experts-summary { margin-top: 1.1rem; color: var(--muted); font: 700 .64rem/1.7 var(--expert-mono); }
.experts-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; min-width: 0; }
.expert-card { display: flex; flex-direction: column; min-width: 0; padding: 1.1rem; border: 1px solid var(--expert-line); border-radius: .75rem; background: #fff; text-decoration: none; transition: transform .17s ease, box-shadow .17s ease; }
.expert-card-top { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: .6rem; margin-bottom: .8rem; }
.expert-card-top .expert-roles { flex-direction: column; align-items: end; }
.expert-card h3 { margin: 0 0 .4rem; font: 800 1rem/1.5 var(--font-heading, "Manrope"), sans-serif; }
.expert-card-bio { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 .85rem; color: var(--muted); font-size: .77rem; line-height: 1.75; }
.expert-card-counts { display: flex; flex-wrap: wrap; gap: .25rem .65rem; margin-top: auto; padding-top: .75rem; border-top: 1px dashed var(--expert-line); color: var(--muted); font: .61rem/1.6 var(--expert-mono); }
.expert-card-link { display: block; margin-top: .6rem; color: var(--expert-brand-ink); font-size: .75rem; font-weight: 800; }
.experts-more { margin-top: 1rem; }
.experts-more > summary { width: fit-content; margin-left: auto; cursor: pointer; color: var(--expert-brand-ink); font-size: .85rem; font-weight: 800; }
.experts-more .experts-grid { margin-top: 1rem; }
.author-profile-page a:focus-visible,
.editorial-experts a:focus-visible,
.experts-more summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.author-profile-post:focus-within { outline: 2px solid var(--brand); outline-offset: 3px; }
@media (max-width: 1100px) {
  .author-profile-hero { grid-template-columns: 1fr; }
  .profile-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .profile-stat { flex-wrap: wrap; }
  .profile-layout { grid-template-columns: minmax(0,1fr) 17rem; gap: 1.5rem; }
  .experts-panel { grid-template-columns: 1fr; }
  .experts-intro > p:not(.expert-kicker) { max-width: 50ch; }
}
@media (max-width: 850px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; grid-template-columns: repeat(auto-fit,minmax(15rem,1fr)); }
}
@media (max-width: 640px) {
  .profile-identity { flex-direction: column; align-items: start; gap: 1.1rem; }
  .profile-portrait .expert-avatar { --avatar-size: 6.5rem; }
  .profile-stats { grid-template-columns: 1fr; }
  .profile-stat { flex-wrap: nowrap; }
  .author-profile-posts,
  .experts-grid { grid-template-columns: 1fr; }
  .expert-card-top { flex-wrap: nowrap; }
  .profile-layout { margin-top: 1.6rem; }
  .profile-sidebar { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .author-profile-post,
  .expert-card { transition: none; }
  .author-profile-post:hover,
  .expert-card:hover { transform: none; }
}
