/* Baseline styling for the markup the CMS itself renders: a typed entry's field values and terms,
   and a listing of entries. A theme owns presentation, so nothing here names a theme: surfaces are
   translucent and borders use currentColor, which reads correctly on a light or a dark theme. Any
   theme overrides this by styling the same classes. */

/* ---------- an entry's field values ---------- */
.entry-fields {
    margin: 0 0 1.75rem;
    border: 1px solid rgba(127, 127, 127, .28);
    border-radius: .55rem;
    overflow: hidden;
}
.entry-fields > dl { margin: 0; }
.entry-fields dt,
.entry-fields dd {
    margin: 0;
    padding: .7rem 1.05rem;
    line-height: 1.5;
}
.entry-fields dt { font-weight: 600; }
.entry-fields dd { border-top: 1px solid rgba(127, 127, 127, .16); }
.entry-fields img { display: block; max-width: 100%; height: auto; border-radius: .35rem; }
@media (min-width: 44em) {
    .entry-fields > dl { display: grid; grid-template-columns: 12rem 1fr; }
    .entry-fields dt { border-top: 1px solid rgba(127, 127, 127, .16); }
    .entry-fields dt:nth-of-type(1) { border-top: 0; }
}

/* ---------- an entry's terms ---------- */
.entry-terms { margin: 0 0 1.4rem; }
.entry-terms a {
    display: inline-block;
    margin: .15rem .25rem .15rem 0;
    padding: .12rem .65rem;
    border: 1px solid rgba(127, 127, 127, .38);
    border-radius: 999px;
    font-size: .88em;
    text-decoration: none;
}
.entry-terms a:hover { border-color: currentColor; }

/* ---------- page prose ---------- */
/* Templates in this CMS commonly set a tight body line-height; prose needs a reading rhythm. */
.content-prose { line-height: 1.7; }
.content-prose > :first-child { margin-top: 0; }
.content-prose > :last-child { margin-bottom: 0; }
.content-prose p,
.content-prose ul,
.content-prose ol { margin: 0 0 1.1em; }
.content-prose ul,
.content-prose ol { padding-left: 1.4em; }
.content-prose h1 { margin: 1.6em 0 .5em; font-size: 1.6em; line-height: 1.2; }
.content-prose h2 { margin: 1.7em 0 .5em; font-size: 1.35em; line-height: 1.25; }
.content-prose h3 { margin: 1.5em 0 .4em; font-size: 1.15em; line-height: 1.3; }
.content-prose h4 { margin: 1.3em 0 .35em; font-size: 1em; }
.content-prose blockquote {
    margin: 1.3em 0;
    padding: .2em 0 .2em 1em;
    border-left: 3px solid rgba(127, 127, 127, .45);
    opacity: .9;
}
.content-prose code {
    padding: .06em .34em;
    border: 1px solid rgba(127, 127, 127, .3);
    border-radius: .25rem;
    font-size: .92em;
}
.content-prose pre {
    margin: 1.3em 0;
    padding: 1em;
    border: 1px solid rgba(127, 127, 127, .3);
    border-radius: .45rem;
    overflow-x: auto;
}
.content-prose pre code { border: 0; padding: 0; }
.content-prose img { max-width: 100%; height: auto; border-radius: .35rem; }
.content-prose hr { margin: 2em 0; border: 0; border-top: 1px solid rgba(127, 127, 127, .3); }
.content-prose table { width: 100%; border-collapse: collapse; margin: 1.3em 0; }
.content-prose th,
.content-prose td { padding: .5em .6em; border-bottom: 1px solid rgba(127, 127, 127, .25); text-align: left; }

/* ---------- a listing ---------- */
.listing-intro { max-width: 46rem; }
.listing-count {
    margin: 0 0 .75rem;
    font-size: .78em;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .75;
}
.listing-filter { margin: 0 0 .5rem; }
.listing-filter a { text-decoration: none; }
.listing-filter a:hover { text-decoration: underline; }
.listing-filter a[aria-current] { font-weight: 700; text-decoration: underline; }
.muted { opacity: .7; }

.listing-search {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    align-items: flex-end;
    margin: 1.1rem 0 1.9rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(127, 127, 127, .25);
    border-radius: .55rem;
}
.listing-search label {
    display: grid;
    gap: .3rem;
    font-size: .74em;
    letter-spacing: .07em;
    text-transform: uppercase;
    opacity: .9;
}
.listing-search input[type="search"] { min-width: 15rem; }
.listing-search select { max-width: 14rem; }

.listing {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}
.listing-item {
    padding: 1.1rem 1.2rem;
    border: 1px solid rgba(127, 127, 127, .25);
    border-radius: .55rem;
    transition: box-shadow .15s ease;
}
.listing-item:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .12); }
.listing-item h2,
.listing-item h3 { margin: 0 0 .4rem; font-size: 1.1em; line-height: 1.3; }
.listing-item p { margin: 0 0 .65rem; line-height: 1.6; }
.listing-values {
    margin: 0 0 .6rem;
    padding: 0;
    font-size: .92em;
    line-height: 1.6;
}
.listing-values li { list-style: none; }
.listing-pages {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    justify-content: center;
    margin: 2.1rem 0 0;
}
.listing-pages a { text-decoration: none; }
.listing-pages a:hover { text-decoration: underline; }
.listing-pages span { opacity: .75; font-size: .92em; }

@media (prefers-reduced-motion: reduce) {
    .listing-item { transition: none; }
}
