/* Secondary publication actions belong in the compact masthead. */
.magazine-edition-links{display:flex;align-items:center;gap:6px;flex:none;padding:0}
.magazine-edition-links a{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:30px;padding:5px 9px;border:1px solid color-mix(in srgb,var(--book-text) 18%,transparent);border-radius:5px;background:transparent;color:var(--book-text);box-shadow:none;font:500 11px/1.2 Inter,system-ui,sans-serif;text-decoration:none;white-space:nowrap;cursor:pointer;transition:background-color .15s,border-color .15s}
.magazine-edition-links a:hover{background:var(--book-hover);border-color:color-mix(in srgb,var(--book-text) 32%,transparent)}.magazine-edition-links a:focus-visible{outline:2px solid var(--book-accent);outline-offset:3px}
.magazine-edition-links svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.magazine-embedded .book-header strong,.magazine-embedded .book-brand{display:none}.magazine-embedded .book-header{justify-content:flex-end;border-bottom:0}
@media(max-width:950px){.magazine-edition-links a{width:30px;padding:5px}.magazine-edition-links span{display:none}}
/* At narrow touch widths keep all actions reachable without squeezing their targets. */
@media(pointer:coarse) and (max-width:380px){
 .book-view .book-header{align-items:flex-start}
 .book-view .book-header-actions{justify-content:flex-end}
 .book-view .magazine-edition-links{order:3;flex-basis:100%;justify-content:flex-end}
}
@media(prefers-reduced-motion:reduce){.magazine-edition-links a{transition:none}}

/* Sample-only formats stay separate from the shared reader controls. */
.book-view>.magazine-edition-links{justify-content:center;flex-wrap:wrap;padding:5px 10px;gap:12px}
.book-view>.magazine-edition-links a{width:auto;min-height:32px;padding:5px 9px}
.book-view>.magazine-edition-links span{display:inline}
@media(pointer:coarse){.book-view>.magazine-edition-links a{min-height:44px}}
