/* Generic catalog list — reuse anywhere in the catalog app.

   <section class="catalog-list">
     <h2>Heading</h2>
     <ul>
       <li>                      (add class="inactive" to dim a row)
         <a href="…"> | <div>    ← the row: <a> if clickable, <div> if static
           <div>
             <h3>Title</h3>
             <p>Subtitle</p>
           </div>
           <span class="cta">Action</span>   ← optional
         </a>
       </li>
     </ul>
   </section>
*/

.catalog-list {
    width: 100%;
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}

.catalog-list h2 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--warm-gray);
    margin-bottom: 20px;
}

.catalog-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* The row — the single child of each <li>, whether <a> or <div>. */
.catalog-list li > * {
    background: var(--off-white);
    padding: 30px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
    text-decoration: none;
    color: inherit;
}

.catalog-list li > a:hover {
    border-color: var(--copper);
}

.catalog-list h3 {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.catalog-list p {
    font-size: 18px;
    color: var(--warm-gray);
    margin: 0;
}

.catalog-list .cta {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid var(--anthracite);
    padding-bottom: 2px;
    white-space: nowrap;
    transition: color 0.3s, border-color 0.3s;
}

.catalog-list li > a:hover .cta {
    color: var(--copper);
    border-color: var(--copper);
}

.catalog-list .inactive > * {
    opacity: 0.45;
}

/* Day-grouped list (e.g. term detail): each .day wraps a heading + its own <ul>.
   The child combinator targets only the day heading, not the item <h3> inside. */
.catalog-list .day {
    margin-bottom: 28px;
}

.catalog-list .day > h3 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--copper);
    margin-bottom: 12px;
}

/* Direct-child links of the section: the back link and the primary action.
   Hooked off role="button" so no extra classes are needed; the row <a>s
   live inside <li> and are unaffected. */
.catalog-list > a {
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 2px;
    transition: color 0.3s, background 0.3s, border-color 0.3s;
}

/* Back link — subtle text link. */
.catalog-list > a:not([role="button"]) {
    margin-bottom: 24px;
    color: var(--warm-gray);
}

.catalog-list > a:not([role="button"]):hover {
    color: var(--copper);
}

/* Primary action — solid button that inverts on hover. */
.catalog-list > a[role="button"] {
    margin-top: 32px;
    padding: 16px 36px;
    background: var(--copper);
    color: var(--off-white);
    border: 1px solid var(--copper);
}

.catalog-list > a[role="button"]:hover {
    background: transparent;
    color: var(--copper);
}