/* Shared action buttons on every public page: filled and outline.
   Content selectors (portrait cards, chapter lists, accordions) retain their layouts. */
:root {
  --button-font: 'Instrument Sans', sans-serif;
  --button-ink: #191919;
  --button-line: #d7d7d7;
  --button-muted: #525252;
  --button-surface: #E5E5E5;
}
body .ui-button.ui-button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  height: auto;
  max-width: 100%;
  padding: 11px 16px;
  border: 1px solid var(--button-line);
  border-radius: 0;
  font: 600 14px/20px var(--button-font);
  letter-spacing: -.26px;
  text-transform: none;
  text-decoration: none;
  text-align: left;
  white-space: normal;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
@media (min-width: 701px) {
  body .ui-button.ui-button:not(.ui-button--icon) { font-size: 16px; line-height: 24px; }
}
body .ui-button.ui-button--filled {
  color: #fff;
  background: var(--button-ink);
  border-color: var(--button-ink);
}
body .ui-button.ui-button--muted {
  min-height: 36px;
  padding: 8px 12px;
  gap: 8px;
  border: 0;
  border-radius: 0;
  color: var(--button-muted);
  background: var(--button-surface);
  letter-spacing: 0;
}
body .ui-button.ui-button--filled:hover:not(:disabled) {
  color: #fff;
  background: #353535;
  border-color: #353535;
}
body .ui-button.ui-button--outline {
  color: var(--button-ink);
  background: #fff;
  border-color: var(--button-line);
}
body .ui-button.ui-button--outline:hover:not(:disabled) {
  color: var(--button-ink);
  background: #eaeaea;
  border-color: #b8b8b8;
}
/* Ink ring by default; dark or orange containers set --focus-ring: #FFFFFF. */
body .ui-button.ui-button:focus-visible {
  outline: 2px solid var(--focus-ring, #1B1B1B);
  outline-offset: 2px;
}
body .ui-button.ui-button:disabled { opacity: .3; cursor: not-allowed; }
body .ui-button.ui-button[hidden] { display: none; }
body .ui-button.ui-button > .ui-button__icon {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  font: 400 24px/16px var(--button-font);
  letter-spacing: 0;
}
/* Keep each page's existing button colours; standard CTAs share the Figma label and pixel arrow. */
body .ui-button.ui-button:not(.ui-button--icon):not(.menu-toggle):not(.contact-done):not([data-story-back]):not(.press-download) > .ui-button__icon { display:none; }
body .ui-button.ui-button:not(.ui-button--icon):not(.menu-toggle):not(.contact-done):not([data-story-back]):not(.press-download)::after {
  content:'';
  display:block;
  flex:0 0 18px;
  width:18px;
  height:18px;
  background:currentColor;
  -webkit-mask:url('../assets/icons/pixel-chevron-right.svg') center / contain no-repeat;
  mask:url('../assets/icons/pixel-chevron-right.svg') center / contain no-repeat;
}
body .ui-button.ui-button:not(.ui-button--icon):not(.menu-toggle):not(.contact-done):not([data-story-back]):not(.press-download):hover::after {
  animation:pl-button-arrow-slide .32s steps(4,end) both;
}
@keyframes pl-button-arrow-slide { from { transform:translateX(-12px); opacity:0; } to { transform:translateX(0); opacity:1; } }
body .ui-button.ui-button[data-story-back] > .ui-button__icon { display:none; }
body .ui-button.ui-button[data-story-back]::before {
  content:'';
  display:block;
  flex:0 0 18px;
  width:18px;
  height:18px;
  background:currentColor;
  -webkit-mask:url('../assets/icons/pixel-chevron-right.svg') center / contain no-repeat;
  mask:url('../assets/icons/pixel-chevron-right.svg') center / contain no-repeat;
  transform:scaleX(-1);
}
body .ui-button.ui-button[data-story-back]:hover::before {
  animation:pl-button-arrow-slide-back .32s steps(4,end) both;
}
@keyframes pl-button-arrow-slide-back { from { transform:translateX(12px) scaleX(-1); opacity:0; } to { transform:translateX(0) scaleX(-1); opacity:1; } }
body .ui-button.ui-button--icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
  font-size: 20px;
  line-height: 24px;
}
body .ui-button.ui-button--icon img { width: 18px; height: 18px; }
body .site-nav .button-primary.ui-button { align-self: center; margin-inline: 8px; }
@media (min-width: 601px) and (max-width: 900px) {
  body .site-nav .button-primary.ui-button { font-size: 14px; white-space: nowrap; padding-inline: 12px; }
  body .site-nav .about-link:not(.industry-trigger) { min-width: 104px; padding-inline: 12px; }
}
body .site-nav .menu-toggle.ui-button { display: none; }
@media (max-width: 600px) {
  body .ui-button.ui-button:not(.ui-button--icon):not(.ui-button--muted):not(.press-download):not(.pl-footer__cta):not(.button-primary) {
    min-height: 36px;
    padding: 7px 12px;
    gap: 8px;
    font-size: 14px;
    line-height: 20px;
  }
}
/* Disclosure navigation (site-nav.css): the same compact header controls from 700px down. */
@media (max-width: 700px) {
  body .site-nav .ui-button.ui-button { min-height: 36px; padding: 7px 12px; gap: 8px; }
  body .site-nav.nav-ready .menu-toggle.ui-button { display: inline-flex; }
  body .site-nav .button-primary.ui-button { align-self: stretch; min-height: var(--header-height); padding: 0 12px; margin: 8px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  body .ui-button.ui-button { transition: none; }
  body .ui-button.ui-button:hover::after,
  body .ui-button.ui-button[data-story-back]:hover::before { animation:none !important; }
}

body .ui-button.ui-button--compact {
  min-height: 36px; padding: 8px 12px; gap: 8px; border: 0; letter-spacing: 0;
}
