﻿/* MCCD Components — load after tokens
   Provides visible UI for cards, search boxes, grids. */

/* --- Card grid wrapper --- */
.cardgrid__list,
.cards,
.grid,
#shortcut-grid{
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}

/* --- Cards --- */
.card{
  display: block;
  padding: var(--space-6);
  background: var(--mccd-card-bg);
  border: var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--brand-600);              /* ⇦ all card text uses brand green */
  box-shadow: none;
}
.card:hover{
  box-shadow: var(--shadow-1);
}
.card__title{
  font-size: 1.25rem;
  font-weight: 700;                     /* bold title per “standard” */
  line-height: 1.3;
  margin: 0 0 .5rem;
  color: var(--brand-600);
}
.card__text{
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
  color: var(--brand-600);              /* body text green to match request */
}

/* --- Search box --- */
.searchbox{
  max-width: 700px;
  margin: 0 auto var(--space-6);
  padding: var(--space-5);
  background: var(--mccd-card-bg);
  border: var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.searchbox__title{
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--brand-600);
  margin: 0 0 var(--space-3);
}
.searchbox__controls{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}
.searchbox__input{
  flex: 0 1 320px;
  max-width: 320px;
  padding: .45rem .6rem;
  font-size: .95rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: #fff;
  line-height: 1.3;
  box-shadow: var(--shadow-1);
  color: var(--text-color);
}
.searchbox__button{
  padding: .45rem .75rem;
  font-size: .95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--brand-600);
  background: var(--brand-600);
  color: #fff;
  cursor: pointer;
}
.searchbox__help{
  font-size: .9rem;
  color: var(--brand-600);
  margin-top: var(--space-2);
}

/* --- Responsive adjustments --- */
@media(max-width: 480px){
  .searchbox__controls{ flex-wrap: wrap; }
  .searchbox__button{ margin-left: 0; margin-top: var(--space-2); }
}
