/* One aligned header action group, using the shared search-button primitive and theme tokens. */
.site-nav__actions{--header-control-size:44px;display:flex;align-items:center;gap:12px}
.site-nav__actions .site-search-trigger{width:var(--header-control-size);height:var(--header-control-size)}
.site-nav__actions .btn{min-height:var(--header-control-size)}
.reader-profile{position:relative;flex:none}
.reader-profile summary{display:flex;align-items:center;justify-content:center;cursor:pointer;list-style:none}
.reader-profile summary::-webkit-details-marker{display:none}
.reader-profile summary svg{width:24px;height:24px}
.reader-profile__avatar{display:block;width:28px;height:28px;border-radius:3px;object-fit:cover}
.reader-profile__links{position:absolute;right:0;top:calc(100% + 8px);width:184px;max-width:calc(100vw - 56px);padding:4px 8px;background:var(--paper);border:2px solid var(--ink);border-radius:var(--radius);box-shadow:var(--shadow-hard-sm);z-index:2}
.site-nav .reader-profile__links a{display:flex;align-items:center;min-height:44px;padding:8px;border:0;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
@media(max-width:860px){.site-nav__actions{margin-top:16px;flex-wrap:wrap}.site-nav .site-nav__actions .btn{margin-top:0}.reader-profile__links{top:calc(100% + 8px)}}

/* Use the shared inline underline, not the header row's distant pseudo-element. */
.site-nav :is(.reader-profile__links a,.reader-sign-in)::after{display:none}
body :is(.reader-profile__links a,.reader-sign-in) .link-text{background-size:0 2px}

.site-nav__actions .reader-sign-in{display:inline-flex;align-items:center;min-height:var(--header-control-size);white-space:nowrap}
