/* Tiles */
.tile {
  border: 1px solid var(--secondary);
  border-radius: 6px;
  margin-bottom: 10px;
  overflow: hidden;
}

.tile-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: var(--tile-padding);
  cursor: pointer;
  transition: background-color 0.2s;
}

.tile-header:hover {
  background-color: rgba(103, 113, 137, 0.1);
}

.tile-arrow {
  color: var(--accent);
  font-size: 0.8rem;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.tile.open .tile-arrow {
  transform: rotate(90deg);
}

.tile-title {
  font-size: 1rem;
  color: var(--tertiary);
}

.tile-date {
  font-size: 1rem;
  color: var(--secondary);
  margin-left: 1rem;
}

.tile-short {
  font-size: 0.85rem;
  color: var(--secondary);
  line-height: 1.4;
  margin-top: 4px;
}

.tile-body {
  padding: var(--tile-padding);
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tile-body p {
  line-height: 1.6;
  margin-bottom: 12px;
  color: var(--tertiary);
  font-size: 0.9rem;
}

.tile-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.tile-images img {
  max-width: 200px;
  max-height: 200px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--secondary);
}

@media (max-width: 700px) {
  .tile-images img {
    max-width: 100%;
    height: auto;
  }
}

.tile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.tile-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  border: 1px solid var(--accent);
  padding: 4px 10px;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
}

.tile-links a:hover {
  background-color: var(--accent);
  color: var(--primary);
}

/* Sidebar Specific Styles */
.sidebar-title {
  font-size: 2rem;
  letter-spacing: 2px;
  color: var(--accent);
  padding: 10px 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-nav a {
  color: var(--tertiary);
  text-decoration: none;
  font-size: 1rem;
  padding: 4px 0;
  transition: color 0.2s;
}

.sidebar-nav a:hover {
  color: var(--accent);
}
