/* Tide button — Figma: dCbOLaQgaEOikKRGAHtFB3, component 14:85.
   Motion source 16:62: 1 → 18 scale, 0 → 45deg, 420ms (.22,1,.36,1).
   CSS transitions use those endpoints so pointer exit reverses smoothly. */
@font-face {
  font-family: 'Shark Button TC';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/button-noto-tc.woff2') format('woff2');
}
:root {
  --sw-button-forest: #24382d;
  --sw-button-cream: #fff8f1;
  --sw-button-clay: #a75538;
  --sw-button-sage: #d4dec7;
  --sw-button-height: 56px;
  --sw-button-radius: 28px;
  --sw-button-inset: 7px;
  --sw-button-padding: 24px;
  --sw-button-gap: 24px;
  --sw-button-duration: 420ms;
  --sw-button-ease: cubic-bezier(.22, 1, .36, 1);
}
/* Existing public CTA classes are the integration API, including dynamic articles. */
body :is(a.btn-pill, button.btn, a.btn, a.button, button.button) {
  --sw-button-bg: var(--sw-button-cream);
  --sw-button-ink: var(--sw-button-forest);
  --sw-button-wave: url('assets/buttons/tide-forest.svg');
  position: relative;
  isolation: isolate;
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: flex-start;
  gap: var(--sw-button-gap);
  width: fit-content;
  max-width: min(100%, 360px);
  min-height: var(--sw-button-height);
  padding: 7px 70px 7px calc(var(--sw-button-padding) - 1px);
  border: 1px solid var(--sw-button-forest);
  border-radius: var(--sw-button-radius);
  overflow: hidden;
  background: var(--sw-button-bg);
  color: var(--sw-button-ink);
  box-shadow: none;
  font-family: 'Shark Button TC', 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: .28px;
  text-align: left;
  text-transform: none;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: middle;
  transform: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--sw-button-duration) var(--sw-button-ease), opacity 160ms ease;
}
body :is(a.btn-pill, button.btn, a.btn, a.button, button.button):is(.btn-primary, .button:not(.secondary)) {
  --sw-button-bg: var(--sw-button-forest);
  --sw-button-ink: var(--sw-button-cream);
  --sw-button-wave: url('assets/buttons/tide-clay.svg');
}
body :is(a.btn-pill, button.btn, a.btn, a.button, button.button)::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 6px;
  width: 40px;
  height: 40px;
  background: var(--sw-button-wave) center / 40px 40px no-repeat;
  translate: 0 -50%;
  scale: 1;
  transform-origin: center;
  pointer-events: none;
  transition: scale var(--sw-button-duration) var(--sw-button-ease);
}
body :is(a.btn-pill, button.btn, a.btn, a.button, button.button)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 16px;
  width: 20px;
  height: 20px;
  background: url('assets/buttons/tide-arrow.svg') center / 20px 20px no-repeat;
  translate: 0 -50%;
  rotate: 0deg;
  pointer-events: none;
  transition: rotate var(--sw-button-duration) var(--sw-button-ease);
}
body :is(a.btn-pill, button.btn, a.btn, a.button, button.button) > :is(.material-symbols-outlined, .arrow) { display: none; }
body :is(a.btn-pill, button.btn, a.btn, a.button, button.button):is(:hover, :focus-visible) {
  background: var(--sw-button-bg);
  border-color: var(--sw-button-forest);
  color: var(--sw-button-ink);
  transform: none;
  box-shadow: none;
}
body :is(a.btn-pill, button.btn, a.btn, a.button, button.button):focus-visible {
  outline: 4px solid var(--sw-button-clay);
  outline-offset: 0;
}
@media (hover: hover) and (pointer: fine) {
  body :is(a.btn-pill, button.btn, a.btn, a.button, button.button):hover:not(:disabled):not([aria-disabled='true']) { color: var(--sw-button-cream); }
  body :is(a.btn-pill, button.btn, a.btn, a.button, button.button):hover:not(:disabled):not([aria-disabled='true'])::before { scale: 18; }
  body :is(a.btn-pill, button.btn, a.btn, a.button, button.button):hover:not(:disabled):not([aria-disabled='true'])::after { rotate: 45deg; }
}
body :is(a.btn-pill, button.btn, a.btn, a.button, button.button):active:not(:disabled):not([aria-disabled='true']) { color: var(--sw-button-cream); opacity: .86; }
body :is(a.btn-pill, button.btn, a.btn, a.button, button.button):active:not(:disabled):not([aria-disabled='true'])::before { scale: 18; }
body :is(a.btn-pill, button.btn, a.btn, a.button, button.button):active:not(:disabled):not([aria-disabled='true'])::after { rotate: 45deg; }
body :is(a.btn-pill, button.btn, a.btn, a.button, button.button):is(:disabled, [aria-disabled='true']) { opacity: .5; cursor: not-allowed; }
body :is(a.btn-pill, button.btn, a.btn, a.button, button.button)[aria-busy='true']::after { opacity: .45; }
@media (prefers-reduced-motion: reduce) {
  body :is(a.btn-pill, button.btn, a.btn, a.button, button.button),
  body :is(a.btn-pill, button.btn, a.btn, a.button, button.button)::before,
  body :is(a.btn-pill, button.btn, a.btn, a.button, button.button)::after { transition: none; }
}
@media (forced-colors: active) {
  body :is(a.btn-pill, button.btn, a.btn, a.button, button.button) { border-color: ButtonText; }
  body :is(a.btn-pill, button.btn, a.btn, a.button, button.button)::after { forced-color-adjust: none; background-color: #24382d; border-radius: 50%; }
}

/* Keep the commerce entry at the right edge; compact headers use the menu. */
body #navbar a.site-commerce-cta {
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
}
@media (max-width: 1180px) {
  body #navbar a.site-commerce-cta { display: none; }
}
