/* Startup fallback for the eleven stops in the supplied button reference. */
.mac-button {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  width: 264px;
  height: 58px;
  margin: 0;
  padding: 0 24px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #a2a2a2;
  border-radius: 15px;
  background: #fff;
  color: #080808;
  font-family: "Lucida Grande", "Lucida Sans Unicode", "Helvetica Neue", sans-serif;
  font-size: 29px;
  font-weight: 400;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: transform 100ms ease-out;
}

.mac-button::before,
.mac-button::after {
  position: absolute;
  box-sizing: border-box;
  pointer-events: none;
}

.mac-button .button-label {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.mac-button:focus-visible {
  outline: 3px solid #147cf3;
  outline-offset: 8px;
}

.mac-button:active,
.mac-button.is-pressed {
  transform: translateY(1px) scale(.99);
}

/* The earliest outlines are stepped instead of rounded. */
.mac-button:is([data-year="1984"], [data-year="1986"], [data-year="1997"]) {
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: "Timeline Chicago", "Chicago", "ChicagoFLF", sans-serif;
  font-size: 29px;
  font-weight: 400;
  -webkit-font-smoothing: auto;
}

.mac-button:is([data-year="1986"], [data-year="1997"])::before,
.mac-button:is([data-year="1986"], [data-year="1997"])::after {
  content: "";
  clip-path: polygon(8px 0, calc(100% - 8px) 0,
    calc(100% - 8px) 4px, calc(100% - 4px) 4px,
    calc(100% - 4px) 8px, 100% 8px,
    100% calc(100% - 8px), calc(100% - 4px) calc(100% - 8px),
    calc(100% - 4px) calc(100% - 4px), calc(100% - 8px) calc(100% - 4px),
    calc(100% - 8px) 100%, 8px 100%,
    8px calc(100% - 4px), 4px calc(100% - 4px),
    4px calc(100% - 8px), 0 calc(100% - 8px),
    0 8px, 4px 8px, 4px 4px, 8px 4px);
}

.mac-button:is([data-year="1986"], [data-year="1997"])::before {
  inset: 0;
  background: #080808;
}

.mac-button:is([data-year="1986"], [data-year="1997"])::after {
  inset: 2.5px;
  background: #fff;
}

.mac-button[data-year="1984"]::before {
  content: "";
  inset: -13px 0;
  background: #000;
  clip-path: polygon(18px 0, calc(100% - 18px) 0,
    calc(100% - 18px) 3px, calc(100% - 10px) 3px,
    calc(100% - 10px) 7px, calc(100% - 6px) 7px,
    calc(100% - 6px) 12px, calc(100% - 3px) 12px,
    calc(100% - 3px) 18px, 100% 18px,
    100% calc(100% - 18px), calc(100% - 3px) calc(100% - 18px),
    calc(100% - 3px) calc(100% - 12px), calc(100% - 6px) calc(100% - 12px),
    calc(100% - 6px) calc(100% - 7px), calc(100% - 10px) calc(100% - 7px),
    calc(100% - 10px) calc(100% - 3px), calc(100% - 18px) calc(100% - 3px),
    calc(100% - 18px) 100%, 18px 100%,
    18px calc(100% - 3px), 10px calc(100% - 3px),
    10px calc(100% - 7px), 6px calc(100% - 7px),
    6px calc(100% - 12px), 3px calc(100% - 12px),
    3px calc(100% - 18px), 0 calc(100% - 18px),
    0 18px, 3px 18px, 3px 12px, 6px 12px,
    6px 7px, 10px 7px, 10px 3px, 18px 3px);
}

.mac-button[data-year="1984"]::after {
  content: "";
  inset: 0 13px;
  border: 2px solid #000;
  border-radius: 7px;
  outline: 4px solid #fff;
  background: #fff;
}

.mac-button[data-year="1997"]::after {
  background: #d9d9d9;
  box-shadow: inset 3px 3px 0 #fff, inset -4px -4px 0 #a1a1a1;
}

/* Silver Aqua capsule from the supplied 2000 specimen. */
.mac-button[data-year="2000"] {
  border: 1px solid #8d8d8d;
  border-radius: 999px;
  background: linear-gradient(to bottom, #9a9a9a 0%, #9c9c9c 18%, #c7c7c7 48%, #f3f3f3 82%, #fff 100%);
  box-shadow: 0 3px 5px #0006, inset 0 2px 4px #0008, inset 0 -1px 2px #fff;
  text-shadow: 0 1px 1px #fff5;
}

.mac-button[data-year="2000"]::before {
  content: "";
  top: 1px;
  right: 15px;
  left: 15px;
  height: 15px;
  border-radius: 999px 999px 7px 7px;
  background: linear-gradient(to bottom, #ffffffe6, #ffffff24);
}

/* Aqua: the highlight and lower light pool are independent layers. */
.mac-button[data-year="2002"] {
  border: 1px solid #386292;
  border-radius: 999px;
  background: linear-gradient(to bottom, #1555d6 0%, #176cd8 25%, #53aee6 62%, #abedfb 91%, #76c9ed 100%);
  box-shadow: 0 3px 5px #0007, inset 0 1px 4px #00318ab3, inset 0 -1px 3px #4fa5da;
  text-shadow: 0 1px 2px #d9f8ff8c;
}

.mac-button[data-year="2002"]::before {
  content: "";
  top: 1px;
  right: 15px;
  left: 15px;
  height: 15px;
  border-radius: 999px 999px 7px 7px;
  background: linear-gradient(to bottom, #ffffffd9, #ffffff38);
}

.mac-button[data-year="2002"]::after {
  content: "";
  right: 12px;
  bottom: 4px;
  left: 12px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(ellipse, #bbf5ffbd 15%, #b6f5ff50 55%, #b6f5ff00 75%);
}

.mac-button[data-year="2005"] {
  border: 1.5px solid #1c4b80;
  border-radius: 999px;
  background: linear-gradient(to bottom, #5c9edf 0%, #4ba5e4 41%, #75d2f4 77%, #b8f6ff 100%);
  box-shadow: 0 1px 2px #0006, inset 0 1px 1px #ffffff85, inset 0 -1px 1px #63b7db;
  text-shadow: 0 1px 1px #a7e6f680;
}

.mac-button[data-year="2005"]::before {
  content: "";
  top: 1px;
  right: 9px;
  left: 9px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(to bottom, #fff6, #ffffff38);
}

.mac-button[data-year="2009"] {
  border: 1.5px solid #999;
  border-radius: 999px;
  background: linear-gradient(to bottom, #f5f5f5 0%, #e5e5e5 48%, #f0f0f0 76%, #fff 100%);
  box-shadow: 0 1px 2px #0005, inset 0 1px 1px #fff;
  text-shadow: 0 1px 1px #fff;
}

.mac-button[data-year="2009"]::before {
  content: "";
  top: 2px;
  right: 7px;
  left: 7px;
  height: 25px;
  border-radius: 999px;
  background: linear-gradient(to bottom, #fff9, #ffffffa6);
}

.mac-button[data-year="2011"] {
  border: 1px solid #929292;
  border-radius: 12px;
  background: linear-gradient(to bottom, #fff 0%, #f6f6f6 48%, #e9e9e9 51%, #e8e8e8 100%);
  box-shadow: 0 1px 1px #0003, inset 0 1px 1px #fff;
  text-shadow: 0 1px 1px #fff;
}

.mac-button:is([data-year="2014"], [data-year="2020"]) {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.mac-button[data-year="2014"] {
  border-color: #aaa;
  border-radius: 16px;
  box-shadow: 0 1px 1px #0003;
}

.mac-button[data-year="2020"] {
  border: 0;
  border-radius: 15px;
  background: linear-gradient(to bottom, #498dfa, #3077f8);
  color: #fff;
  box-shadow: 0 1px 1px #2667da26;
}

/* Typography and the contemporary blue specimen. */
.mac-button[data-year="1997"] {
  font-family: "Charcoal", "Charcoal CY", "Timeline Chicago", "Chicago", "ChicagoFLF", sans-serif;
}

.mac-button[data-year="2014"] {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.mac-button[data-year="2026"] {
  border: 0;
  border-radius: 15px;
  background: #007aff;
  color: #fff;
  box-shadow: none;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  .mac-button { transition: none; }
}
