/* Free resources page: the search box, topic buttons and the guide list.
   Kept apart from style.css because only this page uses it. The topic buttons
   reuse .chooser from style.css. */

.finder-label {
  display: block;
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--on-wall);
}

.finder-search { position: relative; margin-bottom: 1rem; }

.finder-search svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.finder-search input {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.6rem 1rem 0.6rem 2.9rem;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
}

.finder-search input::placeholder { color: var(--muted); }
.finder-search input:focus-visible { outline: 3px solid var(--lamp); outline-offset: 2px; }

.finder .chooser-buttons { gap: 0.5rem; }
.finder button { min-height: 2.5rem; font-size: 1rem; }

/* The list. */
.guide-count { margin: 0 0 0.5rem; font-size: 0.95rem; color: var(--muted); }

.guide-list { border-top: 1px solid var(--rule); margin-bottom: 3rem; }

.guide {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1rem;
  align-items: start;
  padding: 1.1rem 0.75rem;
  margin-inline: -0.75rem;
  border-bottom: 1px solid var(--rule);
  border-radius: var(--r-sm);
}

.guide[hidden] { display: none; }
.guide:hover { background: var(--linen); }

.guide-icon { width: 42px; height: 42px; padding: 10px; margin: 0.1rem 0 0; }

.guide-title {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}

/* The title's link covers the whole row, so the row is one tap. */
.guide-title a { color: var(--ink); text-decoration: none; }
.guide-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-sm); }
.guide:hover .guide-title a { text-decoration: underline; text-decoration-thickness: 1px; }
.guide-title a:focus-visible { outline: none; }
.guide-title a:focus-visible::after { outline: 3px solid var(--leather); outline-offset: 2px; }

.guide-desc { margin: 0.2rem 0 0.5rem; max-width: 46rem; color: var(--body-2); font-size: 1rem; }

.guide-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.4rem; margin: 0; }

.pill {
  display: inline-block;
  padding: 0.12rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.5;
}

.pill-interview { background: #E8E4F3; color: #3F3566; }
.pill-esat      { background: #DCEFE8; color: #1F5747; }
.pill-statement { background: #F6E1D6; color: #7A3A1C; }
.pill-summer    { background: #FBE7C6; color: #6E4A12; }
.pill-y12       { background: #DFEAF3; color: #24445E; }
.pill-parents   { background: #F3E0E6; color: #6E2A40; }
.pill-teachers  { background: #E7E6DE; color: #45443D; }

.guide-none { margin: 0 0 3rem; padding: 1.25rem; background: var(--linen); border-radius: var(--r); }

@media (max-width: 40rem) {
  .guide { column-gap: 0.8rem; }
  .guide-icon { width: 36px; height: 36px; padding: 8px; }
  .guide-desc { font-size: 0.95rem; }
}
