/* Headline font switcher — designer tool.
   Floating bottom-right panel, only present when font-switcher.js
   decides to render it (gated by ?fonts URL param or localStorage).
   Uses Helvetica directly (not var(--sans)) so the switcher chrome
   is unaffected by the headline override it applies. */

.fontswitch {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 99999;
  width: 280px;
  background: #fff;
  border: 1px solid rgba(31, 29, 22, 0.12);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(31, 29, 22, 0.12), 0 2px 6px rgba(31, 29, 22, 0.06);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  color: #1f1d16;
}

.fontswitch__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 8px 12px;
  border-bottom: 1px solid rgba(31, 29, 22, 0.08);
}

.fontswitch__title {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.fontswitch__close {
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  padding: 0;
  border-radius: 4px;
}
.fontswitch__close:hover { background: rgba(31, 29, 22, 0.06); }

.fontswitch__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fontswitch--collapsed .fontswitch__body { display: none; }

.fontswitch__scope {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(31, 29, 22, 0.08);
}
.fontswitch__scope:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}

.fontswitch__scope-title {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(31, 29, 22, 0.65);
  font-weight: 600;
}

.fontswitch__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fontswitch__label {
  flex: 0 0 56px;
  color: rgba(31, 29, 22, 0.55);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.fontswitch__select {
  flex: 1;
  font: inherit;
  padding: 6px 8px;
  border: 1px solid rgba(31, 29, 22, 0.18);
  border-radius: 4px;
  background: #fff;
  color: inherit;
  cursor: pointer;
}
.fontswitch__select:focus {
  outline: 2px solid rgba(217, 119, 6, 0.4);
  outline-offset: -1px;
}

.fontswitch__preview {
  padding: 10px 8px;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  border: 1px dashed rgba(31, 29, 22, 0.16);
  border-radius: 4px;
  text-align: center;
  background: rgba(31, 29, 22, 0.02);
  margin-top: 2px;
}

.fontswitch__actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.fontswitch__btn {
  font: inherit;
  padding: 6px 10px;
  border: 1px solid rgba(31, 29, 22, 0.18);
  border-radius: 4px;
  background: #fff;
  color: inherit;
  cursor: pointer;
  font-size: 11px;
}
.fontswitch__btn:hover { background: rgba(31, 29, 22, 0.04); }

.fontswitch__btn--dismiss {
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.3);
}
.fontswitch__btn--dismiss:hover { background: rgba(185, 28, 28, 0.06); }
