
/*
  Colloque archive styling
  Loaded AFTER template-style.css so it can inherit the existing Diskon design
  while keeping the search interface self-contained.
*/

.colloque-hero {
  padding-top: 9rem;
}

.colloque-hero .line {
  max-width: 1140px;
}

.archive-kicker {
  margin: 0 0 0.5rem;
  color: rgba(255,255,255,0.62);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.archive-subtitle {
  margin: -1.2rem 0 1rem;
  max-width: 800px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.35;
}

.archive-intro {
  max-width: 760px;
  color: rgba(255,255,255,0.74);
}

.archive-back-link {
  margin: 1.3rem 0 0;
}

.archive-back-link a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  opacity: 0.86;
}

.archive-back-link a:hover,
.archive-back-link a:focus {
  opacity: 1;
  text-decoration: underline;
}

.colloque-archive-section {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.colloque-index {
  width: 100%;
  font-family: "Open Sans", Arial, sans-serif;
  color: #444;
}

.search-panel {
  margin: 0 0 2.25rem;
  padding: 1.65rem;
  border-top: 4px solid #28a5df;
  background: #f5f5f5;
}

.search-row {
  margin-bottom: 1.25rem;
}

.search-panel label {
  display: block;
  margin-bottom: 0.4rem;
  color: #222;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid #d0d0d0;
  border-radius: 0;
  background: #fff;
  color: #333;
  font: inherit;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: #28a5df;
  outline: 2px solid rgba(40,165,223,0.16);
  outline-offset: 0;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.3rem;
}

#clear-filters {
  padding: 0.65rem 1rem;
  border: 0;
  background: #002633;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

#clear-filters:hover,
#clear-filters:focus {
  background: #28a5df;
}

.result-count {
  margin: 0;
  color: #777;
  font-weight: 700;
}

/* Default browse-by-volume view: visually related to existing cover grid */
.results.volume-browse {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.volume-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0;
  border: 0;
  background: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(0,0,0,0.14);
}

.volume-cover-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 0.72;
  background: #ececec;
}

.volume-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.volume-card:hover .volume-cover,
.volume-card:focus .volume-cover {
  transform: scale(1.035);
}

.volume-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem 0.2rem 1.1rem;
}

.volume-number {
  color: #002633;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
}

.volume-date {
  margin-top: 0.15rem;
  color: #555;
  font-size: 0.95rem;
}

.volume-count {
  margin-top: 0.65rem;
  color: #888;
  font-size: 0.82rem;
}

.volume-action {
  margin-top: auto;
  padding-top: 0.85rem;
  color: #28a5df;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

/* Filtered/search result list */
.results:not(.volume-browse) {
  display: grid;
  gap: 0;
  border-top: 1px solid #ddd;
}

.result-card {
  padding: 1.55rem 0;
  border-bottom: 1px solid #ddd;
  background: #fff;
}

.result-type {
  margin: 0 0 0.25rem;
  color: #999;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.result-card h2 {
  margin: 0 0 0.5rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.65rem;
  line-height: 1.2;
}

.result-card h2 a {
  color: #002633;
  text-decoration: none;
}

.result-card h2 a:hover,
.result-card h2 a:focus {
  color: #28a5df;
}

.result-meta,
.result-detail {
  margin: 0.2rem 0;
}

.result-meta {
  color: #444;
  font-weight: 600;
}

.result-detail {
  color: #777;
  font-size: 0.9rem;
}

.result-subject {
  font-style: italic;
}

.empty-state {
  padding: 2rem 0;
  color: #777;
}

@media (max-width: 900px) {
  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .results.volume-browse {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .colloque-hero {
    padding-top: 7rem;
  }

  .archive-subtitle {
    font-size: 1.25rem;
  }

  .filter-grid,
  .results.volume-browse {
    grid-template-columns: 1fr;
  }

  .filter-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .volume-card {
    max-width: 360px;
  }
}


/* Single-page volume cards: cover + indexed contents + direct PDF */
.volume-card {
  position: relative;
  padding: 0;
  border: 0;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.14);
}

.volume-select {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.volume-select:hover .volume-cover,
.volume-select:focus .volume-cover {
  transform: scale(1.035);
}

.volume-pdf-link {
  display: block;
  padding: 0.85rem 0.2rem 1rem;
  border-top: 1px solid #ececec;
  color: #777;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.volume-pdf-link:hover,
.volume-pdf-link:focus {
  color: #28a5df;
}
