/* Shared Articles / Lectures listing: hero banner with search, topic
   filter row, item list, featured panel pinned at the bottom. */

.listing-hero {
  background: linear-gradient(180deg, var(--lapis) 0%, var(--lapis-deep) 100%);
  color: var(--vellum);
  text-align: center;
  padding: 5rem 1.5rem 4rem;
}
.listing-hero h1 {
  font-family: 'Cardo', serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
}
.listing-intro {
  max-width: 35rem;
  margin: 1rem auto 0;
  color: rgba(245, 239, 226, .8);
  font-style: italic;
}
.listing-search {
  max-width: 35rem;
  margin: 2.25rem auto 0;
  display: flex;
}
.listing-search input {
  flex: 1;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--vellum);
  border: 1px solid var(--gold);
  border-right: 0;
  padding: .75rem 1rem;
  border-radius: 0;
}
.listing-search input::placeholder {
  color: var(--ink-soft);
  opacity: 1;
}
.listing-search input:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}
.listing-search button {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: .95rem;
  letter-spacing: .16em;
  color: var(--vellum);
  background: transparent;
  border: 1px solid var(--gold);
  padding: .75rem 1.375rem;
  cursor: pointer;
  transition: border-color .25s, color .25s;
}
.listing-search button:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}
.listing-search button:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}
/* The search is display-only until the first items are published; the
   controls are disabled and the note below the topics says why. */
.listing-search input:disabled,
.listing-search button:disabled { cursor: not-allowed; }

/* ---------- Topic filter row ---------- */
.listing-topics {
  border-bottom: 1px solid var(--line);
  padding: 2.5rem 1.5rem 2.25rem;
  text-align: center;
}
.listing-topics ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem .875rem;
  max-width: 72.5rem;
  margin: 0 auto;
}
.topic-chip {
  display: inline-block;
  border: 1px solid var(--gold);
  padding: .4375rem 1.125rem;
  font-size: .95rem;
  color: var(--lapis);
}
.listing-note {
  margin-top: 1.375rem;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ---------- Item list ---------- */
.listing-body {
  max-width: 55rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.listing-empty {
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
}
.listing-items { list-style: none; }
.listing-items li { border-bottom: 1px solid var(--line); }
.listing-items a {
  display: block;
  padding: 1.5rem 2px;
}
.listing-items h2 {
  font-family: 'Cardo', serif;
  font-weight: 400;
  font-size: 1.45rem;
  color: var(--lapis);
}
.listing-items a:hover h2 { text-decoration: underline; text-decoration-color: var(--gold); }
.listing-date {
  font-size: .95rem;
  color: var(--ink-soft);
}
.listing-items p {
  margin-top: .375rem;
  color: var(--ink-soft);
}

/* ---------- Featured panel ---------- */
.listing-featured {
  max-width: 72.5rem;
  margin: 0 auto;
  padding: 0 1.5rem 6rem;
}
.featured-panel {
  border: 1px solid var(--gold);
  position: relative;
  padding: clamp(2rem, 4.5vw, 3.5rem);
  text-align: center;
}
.featured-panel::after {
  content: "";
  position: absolute;
  inset: .375rem;
  border: 1px solid rgba(168, 129, 47, .35);
  pointer-events: none;
}
/* A gold fleur-de-lis finial astride the top rule, as on the cardinal
   points of the two-ages plate's circles. */
.featured-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1.125rem;
  height: 1.125rem;
  transform: translate(-50%, -52%);
  background: var(--gold);
  -webkit-mask: var(--fleur-mask) center / contain no-repeat;
  mask: var(--fleur-mask) center / contain no-repeat;
}
.featured-panel h2 {
  font-family: 'Cardo', serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin: .625rem 0 .875rem;
}
.featured-panel p {
  max-width: 40rem;
  margin: 0 auto;
  color: var(--ink-soft);
  font-style: italic;
}
