/* Shared button styles. */

/* "tab" buttons: plain text with an underline that thickens on hover,
   like an index tab or a pencilled link */
.tab {
  background: none;
  border: none;
  border-bottom: 1px solid var(--text-soft);
  padding: 0.2rem 0.1rem;
  margin: 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.95rem;
}
.tab:hover { border-bottom: 3px solid var(--accent); padding-bottom: 0; }
.tab-danger { color: var(--secondary); border-color: var(--secondary); }
.tab-danger:hover { border-color: var(--secondary); }

/* "stamp" buttons: the one solid action, square with a hard offset edge */
.stamp {
  background: var(--accent);
  color: var(--background);
  border: 2px solid var(--accent);
  padding: 0.45rem 0.9rem;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  box-shadow: 3px 3px 0 var(--secondary);
  transition: transform 0.08s, box-shadow 0.08s;
}
.stamp:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--secondary); }
.stamp:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--secondary); }

/* theme toggle: a small round "sticker" */
.theme-toggle {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--sheet);
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
  display: grid;
  place-items: center;
}
.theme-toggle:hover { border-color: var(--accent); }

.tab:focus-visible, .stamp:focus-visible, .theme-toggle:focus-visible {
  outline: 2px dashed var(--secondary);
  outline-offset: 3px;
}
