/* Header navigation */
body > header {
  border-bottom: 1px solid var(--pico-muted-border-color);
  margin-bottom: var(--pico-spacing);

  .brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--pico-h1-color);
    text-decoration: none;

    img {
      width: 2rem;
      height: 2rem;
    }
  }

  .brand-name {
    font-family: "Yusei Magic Logo", var(--pico-font-family);
    font-size: 1.5rem;
    line-height: 1;
  }
}

main h1 {
  margin-bottom: var(--pico-spacing);
}

/* Submit buttons keep their natural width instead of stretching across the form. */
form [type="submit"] {
  width: auto;
  padding-inline: 1.5rem;
}

/* Small action buttons: links from ButtonsHelper and button_to forms. */
a[role="button"].action,
.button_to button {
  width: auto;
  margin: 0 0.25rem 0 0;
  padding: 0.1875rem 0.75rem;
  font-size: 0.8125rem;
  vertical-align: middle;
}

/* button_to forms (delete buttons) sit inline with surrounding text. */
.button_to {
  display: inline;
  margin: 0;

  button {
    background: transparent;
    color: var(--pico-del-color);
    border-color: var(--pico-del-color);
  }
}

/* The sign out button looks like the other navigation links. */
nav .button_to button {
  margin: 0;
  padding: 0;
  font-size: inherit;
  border: none;
  color: var(--pico-primary);
}

/* Separate page sections with a rule and generous spacing. */
main > section {
  margin-top: calc(var(--pico-spacing) * 2);
  padding-top: var(--pico-spacing);
  border-top: 1px solid var(--pico-muted-border-color);
}

/* Inline Lucide icons sized to the surrounding text. */
svg.icon {
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.175em;
  flex-shrink: 0;
}
