@charset "UTF-8";

/*
 * style.css - global stylesheet for CS272-S26/p11/
 */

:root {
  color-scheme: dark light;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

nav {
  flex: 0 0 20%;
}

main {
  flex: 1;
  min-width: 0;
  margin-bottom: 2rem;
}

/* Guestbook editor */
#draft-bar {
  margin-bottom: 0.5rem;
  padding: 0.4rem 0.6rem;
  background: #fff3cd;
  border-radius: 4px;
  font-size: 0.9rem;
}

#view-actions {
  margin-top: 1rem;
}

#editor {
  width: 100%;
  font-family: monospace;
  font-size: 0.9rem;
  padding: 0.4rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#edit-controls {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

#btn-discard {
  margin-left: 0.5rem;
}

#edit-status {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: gray;
}

/*
 * Self-referential links that ought to be nice to keep
 * for processors, but are otherwise useless to users.
 */
a.inactive {
  color: inherit;
  text-decoration: none;
  pointer-events: none;
  cursor: default;

  /* Make the current path appear bold. */
  font-weight: 700;
}
