/* Component Crate — Reviews index page (/reviews/)
   Loaded only on that page. Reuses the palette and card language of the home
   page "Component Reviews" grid so the directory feels like the same site.
   Navy #0d3b66 · Lemon Chiffon #faf0ca · Royal Gold #f4d35e · Sandy #ee964b · Tomato #f95738 */

.cc-review-index{margin:0;}

.cc-review-index .cc-ri-lead{
  font-family:'Space Grotesk',sans-serif;
  color:#4a5a6d;
  line-height:1.6;
  max-width:70ch;
  font-size:1rem;
  margin:0 0 1.8rem;
}

.cc-review-index h2{
  font-family:'Aldrich',sans-serif;
  font-weight:600;
  font-size:1.35rem;
  color:#0d3b66;
  margin:2.4rem 0 .35rem;
  padding:0 0 .55rem;
  border-bottom:1px solid #ecdcac;
}
.cc-review-index h2:first-of-type{margin-top:0;}

.cc-review-index .cc-ri-note{
  font-family:'Space Grotesk',sans-serif;
  color:#4a5a6d;
  font-size:.9rem;
  line-height:1.5;
  margin:.45rem 0 1rem;
  max-width:70ch;
}

.cc-review-index .cc-ri-grid br{display:none;}

.cc-review-index .cc-ri-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  max-width:1200px;
  margin:0 0 1.2rem;
}

.cc-review-index a.cc-rcard{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:4px;
  background:#fff;
  border:1px solid #e7ddc2;
  border-top:4px solid #f4d35e;
  border-radius:12px;
  padding:14px 14px 12px;
  min-width:0;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.cc-review-index a.cc-rcard:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 26px -14px rgba(13,59,102,.45);
  border-top-color:#f95738;
}

.cc-rcard .cc-rc-name{
  font-family:'Aldrich',sans-serif;
  font-weight:700;
  font-size:1rem;
  line-height:1.25;
  color:#0d3b66;
}
.cc-rcard .cc-rc-type{
  font-family:'Space Grotesk',sans-serif;
  font-weight:700;
  font-size:.72rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#b85c0d;
}
.cc-rcard .cc-rc-sub{
  font-family:'Space Grotesk',sans-serif;
  font-size:.82rem;
  color:#4a5a6d;
  line-height:1.4;
  flex:1 1 auto;
}
.cc-rcard .cc-rc-cta{
  font-family:'Space Grotesk',sans-serif;
  font-size:.82rem;
  font-weight:700;
  color:#d43e1a;
  margin-top:.35rem;
}
.cc-review-index a.cc-rcard:hover .cc-rc-cta{color:#0d3b66;}

/* Astra prints an underline for content links (0,2,1). Beat it on the cards. */
.ast-single-post .entry-content .cc-review-index a.cc-rcard,
.ast-single-post .entry-content .cc-review-index a.cc-rcard:hover,
.ast-single-post .entry-content .cc-review-index a.cc-rcard:focus,
.ast-single-post .entry-content .cc-review-index a.cc-rcard *{
  text-decoration:none;
  box-shadow:none;
}

.cc-review-index .cc-ri-foot{
  font-family:'Space Grotesk',sans-serif;
  color:#4a5a6d;
  line-height:1.6;
  max-width:72ch;
  margin:2.2rem 0 0;
  font-size:.95rem;
}

@media (max-width:1024px){
  .cc-review-index .cc-ri-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (max-width:781px){
  .cc-review-index .cc-ri-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .cc-review-index h2{font-size:1.2rem;}
}
@media (max-width:480px){
  .cc-review-index .cc-ri-grid{grid-template-columns:1fr;}
}
