@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,300;1,300&display=swap');

body {
  display: grid;
  grid-template-rows: auto auto;
  grid-template-columns: 20% auto;
  justify-items: stretch;

  font: 1em/1.4em 'Work Sans';
  margin: 0;
}

.hidden {
  display: none !important;
}

#navigation {
  background: #362646;
  color: #eee;
  padding: 0.5rem 1rem;
  font-size: 1em;
  border-bottom: 1px solid #333;

  height: 2rem;

  grid-column: 1 / span 2;
  margin: 0;

  display: grid;
  grid-template-columns: 80% auto;
}

#user {
  grid-column: 2;
  text-align: right;
}

#user > img {
  position: relative;
  top: 0.4em;

  width: 1.5em;
  height: 1.5em;
  margin: 0 0 0 0.5em;
  border-radius: 50%;
}

#actions {
  grid-row: 1;
  grid-column: 1;
}

.button {
  text-decoration: none;
  color: #fff;
  display: inline-block;
  background: transparent;
  border-radius: 0.5em;
  padding: 0.2em 0.4em;
  font-size: 0.9em;
  margin: 0 0.2em 0 0;
}

.button:hover {
  background: rgba(255,255,255,0.1);
}

.button.active {
  background: rgba(255,255,255,1);
  color: #000;
}

.button.disabled {
  opacity: 0.5;
}

#status {
  grid-column: 1;
}

#cms_toolbar {
  position: fixed;
  bottom: 1em;
  left: 50%;
  margin-left: -25%;
  width: 50%;

  padding: 0.5em 2em;
  border-radius: 1em;
  color: #fff;
  background: linear-gradient(rgba(25,25,25,0.6), rgba(25,25,25,0.7));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 0.5em 2em rgba(0,0,0,0.2);
}

#cms_toolbar .cms_user {
  margin-top: 0.5em;
  font-size: 0.7em;
  font-style: italic;
  color: #bbb;
  text-align: center;
}

img.avatar {
  position: fixed;
  width: 32px;
  height: 32px;
  top:  10px;
  right: 10px;
}

aside {
  grid: 2 2 1 1;
  background: #f0f0f0;
  padding: 1em;
}

aside > a {
  display: block;
  font-size: 0.9em;
  margin-bottom: 0.45em;
}

#content {
  grid: 2 2 2 2;
  padding: 1em;

  outline: none;
}

#content span.tag {
  display: none;
  background: #ffa;
  font-weight: normal;
  font-size: 0.8rem;
  line-height: 1rem;
  padding: 0.2em 0.5em;
  margin-right: 0.2em;
  border-radius: 0.4em;
}

#content.editable span.tag {
  display: inline-block;
}

#content span.tag::before {
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  font-family: "Font Awesome 5 Pro";
  font-weight: 400;
  margin-right: 0.3em;
  content: "\f02b";
}

h1 {
  padding-top: 1em;
  font-size: 2em;
  line-height: 1.2em;
}