/* ==========================================================================
   textsize.css — 使用者選擇的全站字級比例
   ========================================================================== */

:root[data-textsize="lg"] {
  --text-marker: 15px;
  --text-eyebrow: 18px;
  --text-caption: 18px;
  --text-small: 19px;
  --text-body: 22px;
  --text-body-lg: 23px;
  --text-subhead: 24px;
  --text-lead: 25px;
  --text-title: 26px;
  --text-title-lg: 28px;
  --text-heading: 29px;
  --text-display: 34px;
  --text-hero: 44px;

  --header-height: 76px;
  --footer-height: 52px;
  --sidebar-width: 380px;
}

.TextSize {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--borderColor-default);
  border-radius: var(--borderRadius-medium);
}

.TextSize__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  flex-shrink: 0;
  padding: 0;
  font-family: var(--fontStack-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: var(--fgColor-muted);
  background-color: var(--bgColor-default);
  border: 0;
  border-left: 1px solid var(--borderColor-default);
}

.TextSize__btn:first-child {
  border-left: 0;
}

.TextSize__btn--lg {
  font-size: 22px;
}

.TextSize__btn:hover {
  color: var(--fgColor-default);
  background-color: var(--bgColor-muted);
}

.TextSize__btn[aria-pressed="true"] {
  color: var(--fgColor-default);
  background-color: var(--bgColor-neutral-muted);
}

.TextSize__btn:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--fgColor-accent);
  outline-offset: -2px;
}
