/* Foundation tokens. The generated Zero pack remains the colour/type authority. */
:root {
  --control-height: 36px;
  --control-height-large: 44px;
  --radius-input: 10px;
  --radius-surface: 14px;
  --shell-height: 64px;
}
body { margin: 0; }
button, input, select, textarea { font-family: var(--type-family-body); }
button, .btn { letter-spacing: normal; text-transform: none; }
.btn { min-height: var(--control-height); border-radius: var(--radius-full); justify-content: center; }
/* The primary differs from its row by fill only: no glow, size or padding of its own. */
.btn-primary {
  background: var(--color-text-primary);
  color: var(--color-bg-canvas);
  border: 1px solid var(--color-text-primary);
  box-shadow: none;
}
.btn-primary:hover { background: var(--color-text-secondary); }
.btn-secondary, .btn-outline {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-default);
  color: var(--color-text-primary);
  box-shadow: none;
}
.btn-secondary:hover, .btn-outline:hover { border-color: var(--color-text-tertiary); }
.btn-large { min-height: var(--control-height-large); }
/* Quiet icon button (⋯ and other glyph-only triggers): no border or fill at
   rest, a square hit area of the row's control height, fill on hover/open. */
.btn.btn-icon {
  flex-shrink: 0;
  width: var(--control-height);
  height: var(--control-height);
  min-height: var(--control-height);
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  box-shadow: none;
  color: var(--color-text-secondary);
  font-size: var(--type-body-size);
  line-height: 1;
}
.btn.btn-icon:hover, .btn.btn-icon[aria-expanded="true"], details[open] > summary.btn-icon {
  background: var(--color-bg-sunken);
  color: var(--color-text-primary);
}
.btn.btn-icon:focus-visible { background: var(--color-bg-sunken); color: var(--color-text-primary); }
.btn.btn-icon:disabled { background: transparent; }
summary.btn-icon { list-style: none; cursor: pointer; }
summary.btn-icon::-webkit-details-marker { display: none; }
summary.btn-icon::before { display: none; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { border-radius: var(--radius-input); }
input:not([type="checkbox"]):not([type="radio"]), select { min-height: var(--control-height); }
.panel, .ov-dialog, .ov-menu { border-radius: var(--radius-surface); }
:where(button, input, select, textarea, a[href]):focus-visible {
  outline: 2px solid var(--color-text-link);
  outline-offset: 0;
  box-shadow: 0 0 0 3px var(--color-accent-tint-glow);
}
:where(h1) { font-family: var(--type-family-display); font-weight: var(--type-display-weight); }
[hidden] { display: none !important; }
