/* Publication submission reuses the native seminar disclosure and canonical buttons. */
.publication-disclosure{margin-top:2rem;scroll-margin-top:2rem;min-width:0}
.publication-disclosure>.publication-toggle{min-height:48px;max-width:100%;text-wrap:balance}
.publication-disclosure>.publication-toggle:focus-visible{outline:2px solid var(--color-primary);outline-offset:3px}
.publication-disclosure .publication-native-form{min-width:0}
.publication-help{margin:1.25rem 0 0;font-size:.9375rem;line-height:1.7;text-align:center;color:var(--color-muted)}
.publication-help a{font-weight:600;text-decoration:underline;text-underline-offset:.2em}
@media(max-width:40rem){.publication-disclosure>.publication-toggle{width:100%}.publication-help{max-width:34ch;margin-inline:auto}}

/* Editorial contact supports the primary submission action without a second button. */
.publication-secondary-contact{display:inline-flex;align-items:center;gap:.65rem;min-height:44px;padding:.25rem 0;color:var(--color-primary);font-size:1rem;font-weight:600;line-height:1.5;text-decoration:none}
.publication-secondary-contact svg{flex:none;width:1.15rem;height:1.15rem;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.publication-secondary-contact:is(:hover,:active){color:var(--color-primary);text-decoration:none}
.publication-secondary-contact:focus-visible{outline:2px solid var(--color-primary);outline-offset:4px}

/* Topic colour follows native checkbox state before Apply, also without JS. */
.library-page .library-topics .library-all-topics{--button-surface:#fff;--button-contour:var(--color-control-border);--button-ink:var(--color-primary);background:var(--button-surface);border-color:var(--button-contour);color:var(--button-ink)}
.library-page .library-topics:not(:has(.library-topic input:checked)) .library-all-topics,.library-page .library-topic:has(input:checked){--button-surface:var(--color-action);--button-contour:var(--color-action);--button-ink:var(--color-primary);background:var(--button-surface);border-color:var(--button-contour);color:var(--button-ink)}

/* Reading actions align with the centre of each publication, not its top edge. */
.library-page .document-entry>.library-document-actions{align-self:center;justify-content:center;gap:.5rem}
body main .library-page .library-document-actions :is(.library-open,.library-download){font-size:.875rem;min-height:44px;line-height:1.4}
/* A clear download action, with the same readable size and touch area in both languages. */
body main .library-page .library-document-actions .library-download{font-size:1rem;font-weight:600;min-height:48px;padding:.5rem .625rem}
body main .library-page .library-document-actions .library-download svg{width:1.25rem;height:1.25rem}
body main .library-page .library-document-actions .library-download:focus-visible{outline:2px solid var(--color-primary);outline-offset:3px}
@media(max-width:60rem){.library-page .document-entry>.library-document-actions{align-self:auto;justify-content:flex-start}}
