/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

*{box-sizing: border-box}

body {
  font-family: 'Frutiger', sans-serif;
  color: #202020;
}

a, a:visited {
  color: steelblue;
}
a:hover {
  color: darkslategray;
  background: rgba(235, 250, 255, 0.7);
}

a.block-a {
  display: block;
  text-decoration: none;
  color: initial;
}

nav.header a {
  text-decoration: none;  
}

input, textarea {
  width: 100%;
  padding: 1rem;
}
textarea {
  min-height: 360px;
}
#hide-content:checked ~ textarea {
  display: none;
}




.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.cards > * {
  border: 1px solid #ccc;
  padding: 1rem;
  border-radius: 3px;
  background: rgba(235, 250, 255, 0.2);

  box-shadow: 0px 5px 5px -5px rgba(0,0,0,.3);

  height: 200px;
  overflow: hidden;

  &:hover {
    background: rgba(235, 250, 255, 0.7);
  }
}

.card-header {
  font-size: 0.8em;
}
.card-header a {
  text-decoration: none;

  &:hover {
    background: lightblue;
  }
}

.card-title {
  color: steelblue;
}


.grouped-links {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;

  /* border: 1px solid #ccc; */
  /* border-radius: 5px; */


  & > a {
    text-decoration: none;
    padding: .3em .6em;
    border: 1px solid #ccc;
    background: rgba(235, 250, 255, 0.2);
    margin-left: -1px;

    &:hover {
      background: rgba(235, 250, 255, 0.7);
    }
  }

  & > a:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    margin-left: 0;
  }
  & > a:last-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
  }
}



trix-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: white;
}


.search-form input {
  border-radius: 5px;
  border: 1px solid #ccc;
  padding: 0.5em;
  font-size: 1em;
  outline: none;
}


.profile-pic {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;

  &.small {
    width: 50px;
    height: 50px;
  }
}


/** Table **/
table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #ddd;
  background: #fff;
}

table th,
table td {
  border: 1px solid #ddd;
  padding: 0.5em 0.75em;
  text-align: left;
}

table th {
  background: #f7f7f7;
  font-weight: 600;
}

table tr:nth-child(even) {
  background: #fafafa;
}

table tr:hover {
  background: #f0f7ff;
}
/** End Table **/


footer {
  margin-top: 1em;
  padding-top: 1em;
}