
/* Shared button relief. Colors, sizing, labels and interaction semantics stay with each page. */
body.brand-polish.brand-polish :is(button, .button, .header-button, .upcoming-release-action, .table-action):not(.text-button):not(.password-toggle) {
  --button-glow: 183,161,122;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 #ffffff47, inset 0 -2px 0 #0000003d,
              0 1px 2px #00000040, 0 8px 24px -6px rgba(var(--button-glow),.28);
}
body.brand-polish.brand-polish :is(.button--gold,.button-gold) {
  box-shadow: inset 0 1px 0 #ffffff8c, inset 0 -2px 0 #00000033,
              0 1px 2px #00000066, 0 8px 24px -6px rgba(var(--button-glow),.42);
}
body.brand-polish.brand-polish[data-page="admin"] :is(button,.button) { --button-glow: 70,88,112; }
body.brand-polish.brand-polish :is(.primary,.secondary,.table-action) { --button-glow: 40,85,64; }
body.brand-polish.brand-polish :is(.admin-delete,#delete-record) { --button-glow: 185,71,71; }
@media (hover:hover) {
  body.brand-polish.brand-polish :is(button,.button,.header-button,.upcoming-release-action,.table-action):not(.text-button):not(.password-toggle):not(:disabled):not([aria-disabled="true"]):hover {
    box-shadow: inset 0 1px 0 #ffffff80, inset 0 -2px 0 #00000038,
                0 2px 3px #0000004d, 0 10px 28px -6px rgba(var(--button-glow),.44);
  }
}
body.brand-polish.brand-polish :is(button,.button,.header-button,.upcoming-release-action,.table-action):not(.text-button):not(.password-toggle):not(:disabled):not([aria-disabled="true"]):active {
  box-shadow: inset 0 2px 4px #0000004d, inset 0 -1px 0 #ffffff29,
              0 1px 2px #00000040, 0 3px 12px -5px rgba(var(--button-glow),.2);
}
body.brand-polish.brand-polish :is(button,.button,.header-button,.upcoming-release-action,.table-action):is(:disabled,[aria-disabled="true"]) {
  box-shadow: inset 0 1px 0 #ffffff20, inset 0 -1px 0 #00000020;
}
/* Show the complete book and decorative lines at their natural wide aspect ratio. */
body.brand-polish img.brand-emblem {
  display:block; width:210px; max-width:100%; height:auto; aspect-ratio:890/245;
  object-fit:contain; object-position:center; mix-blend-mode:screen;
}
body.brand-polish .society-mark.brand-emblem { width:210px; height:auto; margin:0 auto 28px; }
body.brand-polish .book-mark { width:90px; height:auto; flex:0 0 90px; margin:0; transform:none; }
body.brand-polish .book-mark img.brand-emblem { width:100%; height:auto; top:0; }
body.brand-polish .brand-book.brand-emblem { width:90px; height:auto; }
@media(max-width:780px) {
  body.brand-polish .book-mark { width:76px; flex-basis:76px; }
  body.brand-polish .society-mark.brand-emblem { width:190px; height:auto; }
}
@media(prefers-reduced-motion:reduce) {
  body.brand-polish :is(button,.button,.header-button,.footer-links a) { transition:none!important; }
}

/* Keep the wordmark on one line beside the emblem in the narrow member sidebar. */
body.brand-polish .portal-sidebar .book-mark { width:64px; flex-basis:64px; }
