/* The existing Aa is the optical origin of the fan; its flow box stays fixed. */
.tech4-letter-pair[data-team-key-target='typography'] {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  width: max-content;
  max-width: 100%;
  letter-spacing: 0 !important;
}
.tech4-letter-pair[data-team-key-target='typography'],
.tech4-letter-pair[data-team-key-target='typography'] * {
  letter-spacing: 0 !important;
}
.tech4-letter-pair > .typography-key-original {
  color: #3d3343;
  opacity: 1;
  letter-spacing: 0 !important;
  transition: opacity 170ms ease, color 200ms ease;
}
.typography-key-original > .typography-key-ink {
  color: inherit;
  letter-spacing: 0 !important;
  transition: color 200ms ease, -webkit-text-fill-color 200ms ease;
}
.typography-key-original > .typography-key-dot {
  color: #f9c1df;
  opacity: 1;
  visibility: visible;
  transition: color 180ms ease, background 180ms ease, opacity 180ms ease, visibility 180ms ease;
}
.typography-key-original > .typography-key-baseline { display: inline-block; width: 0; height: 0; vertical-align: baseline; }
[data-typography-active='true'] .typography-key-original { opacity: 1; }
[data-typography-active='true'] .typography-key-dot,
[data-typography-closing='true'] .typography-key-dot {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
}
.typography-key-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 170ms ease;
}
[data-typography-active='true'] .typography-key-scene { opacity: 1; }
.typography-key-group {
  transition: transform 320ms cubic-bezier(.22, .8, .24, 1), opacity 320ms cubic-bezier(.22, .8, .24, 1);
}
.typography-key-sample, .typography-key-metric, .typography-key-source-metric {
  font-family: 'Raleway', sans-serif;
  font-synthesis: none;
  font-style: normal;
  font-kerning: normal;
  letter-spacing: 0 !important;
  text-rendering: geometricPrecision;
}
.typography-key-sample {
  fill: #3d3343;
  transition: fill 200ms ease, opacity 320ms cubic-bezier(.22, .8, .24, 1), font-size 320ms cubic-bezier(.22, .8, .24, 1);
}
.typography-key-metric, .typography-key-source-metric { visibility: hidden; }
.typography-key-motion { transform-origin: 0 0; }
[data-typography-visual] .tech4-palette { z-index: 2; }
.typography-key-guide { fill: none; stroke: #f460c4; stroke-width: .75; vector-effect: non-scaling-stroke; opacity: .70; }
.typography-key-group[data-selected='true'] .typography-key-guide,
.typography-key-base-group[data-selected='true'] .typography-key-guide { opacity: .95; }
.typography-key-label { font-family: 'Raleway', sans-serif; font-weight: 500; font-synthesis: none; fill: #66546b; letter-spacing: 0 !important; text-anchor: middle; }
.typography-key-group[data-selected='true'] .typography-key-label,
.typography-key-base-group[data-selected='true'] .typography-key-label { fill: #3d3343; font-weight: 700; }
.typography-key-badge {
  position: absolute;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 14px;
  padding: 8px 12px;
  border: 1px solid #ffffffc9;
  border-radius: 10px;
  background: #ffffffeb;
  box-shadow: 0 3px 16px #5d3e6510;
  color: #66546b;
  font: 500 9px/1.35 'Raleway', sans-serif;
  font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1;
  pointer-events: none;
  white-space: nowrap;
}
.typography-key-badge[hidden] { display: none; }
.typography-key-badge span { display: block; }
.typography-key-badge strong { display: block; margin-top: 2px; color: #3d3343; font-size: 11px; line-height: 1.3; font-weight: 600; }
.typography-key-badge .typography-key-badge-mono {
  font: 500 11px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #3d3343;
  letter-spacing: .02em;
}
.typography-key-badge[hidden] { display: none; }
.typography-key-badge span { display: block; }
.typography-key-badge strong { display: block; margin-top: 2px; color: #3d3343; font-size: 11px; line-height: 1.3; font-weight: 600; }
.tech4-palette-reset {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: #8b738d;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, color 150ms ease;
}
.tech4-palette-reset:hover {
  color: #3d3343;
}
.tech4-palette-reset[data-visible='true'] {
  opacity: 1;
  pointer-events: auto;
}
.tech4-palette-reset[hidden] {
  display: none;
}
.tech4-swatches [data-team-key-action='palette'] { cursor: pointer; position: relative; transform-origin: center; transition: scale 180ms cubic-bezier(.2,.7,.25,1); }
.tech4-swatches [data-team-key-action='palette']:hover,
.tech4-swatches [data-team-key-action='palette']:focus-visible,
.tech4-swatches [data-team-key-action='palette'][data-key-hover='true'] { scale: 1.08; }
.tech4-swatches [data-key-selected='true']::after { content: ''; position: absolute; width: 5px; height: 5px; left: calc(50% - 2.5px); bottom: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #66546b24; }

.palette-key-badge {
  position: absolute;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 14px;
  padding: 8px 12px;
  border: 1px solid #ffffffc9;
  border-radius: 10px;
  background: #ffffffeb;
  box-shadow: 0 3px 16px #5d3e6510;
  color: #66546b;
  font: 500 9px/1.35 'Raleway', sans-serif;
  font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 160ms cubic-bezier(.2,.7,.25,1);
}
.palette-key-badge[hidden] { display: none; }
.palette-key-badge span { display: block; }
.palette-key-badge strong { display: block; margin-top: 2px; color: #3d3343; font-size: 11px; line-height: 1.3; font-weight: 600; }
.palette-key-badge .palette-key-badge-mono {
  font: 500 11px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #3d3343;
  letter-spacing: .02em;
}
@media (prefers-reduced-motion: reduce) {
  .typography-key-original, .typography-key-scene, .tech4-swatches [data-team-key-action='palette'], .typography-key-group, .typography-key-sample { transition: none; }
}
