/* /recommended — curated directory of trusted resources & voices.
   Parchment + antique-gold palette, scoped under .rec-page. */

.rec-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 6.5rem 1.15rem 4rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: #3a3327;
}

/* ---- header ---- */
.rec-head { text-align: center; margin-bottom: 2.4rem; }
.rec-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: #a8823f; margin: 0 0 0.6rem;
}
.rec-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.05;
  color: #34301f; margin: 0;
}
.rec-sub {
  font-size: 1.3rem; font-style: italic; color: #6b6350;
  max-width: 40rem; margin: 0.7rem auto 0;
}
.rec-intro {
  font-size: 1.12rem; line-height: 1.6; color: #4a4437;
  max-width: 46rem; margin: 1.3rem auto 0;
  white-space: pre-line;   /* keep the owner's line/paragraph breaks (set as textContent) */
}

/* ---- featured boxes ---- */
.rec-featured {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem; margin: 0 0 2.2rem;
}
.rec-feat {
  background: rgba(250, 243, 226, 0.75);
  border: 1px solid #e4d7b4; border-radius: 14px;
  padding: 1.4rem 1.5rem; text-align: center;
  box-shadow: 0 10px 26px rgba(59, 51, 39, 0.06);
  overflow: hidden;
}
/* When a photo is set, it sits full-bleed at the top of the box. */
.rec-feat--has-img { padding-top: 0; }
.rec-feat-img {
  height: 150px; margin: 0 -1.5rem 1.2rem;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  border-bottom: 1px solid #e4d7b4;
}
.rec-feat-title { font-family: 'Cinzel', serif; font-size: 1.18rem; font-weight: 700; color: #4f3a12; margin: 0 0 0.5rem; }
.rec-feat-blurb { font-size: 1.06rem; line-height: 1.5; color: #524b3c; margin: 0 0 0.7rem; }
.rec-feat-link {
  font-family: 'Cinzel', serif; font-size: 0.82rem; letter-spacing: 0.03em;
  color: #a8823f; text-decoration: none; border-bottom: 1px solid rgba(168, 130, 63, 0.4);
}
.rec-feat-link:hover { color: #8a6626; border-color: #8a6626; }

/* ---- disclaimer note ---- */
.rec-note {
  max-width: 44rem; margin: 0 auto 2.4rem; text-align: center;
  font-size: 1.02rem; font-style: italic; color: #6b6350;
  white-space: pre-line;
  padding: 0.9rem 1.2rem; border-top: 1px solid #e4d7b4; border-bottom: 1px solid #e4d7b4;
}

/* ---- card grid ---- */
.rec-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 1rem;
}
.rec-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: rgba(255, 253, 247, 0.9);
  border: 1px solid #e7dcc2; border-radius: 14px;
  padding: 1.5rem 1.2rem 1.35rem;
  text-decoration: none; color: inherit;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.rec-card--link:hover {
  transform: translateY(-3px);
  border-color: #cdb987;
  box-shadow: 0 16px 34px rgba(59, 51, 39, 0.12);
}
.rec-card-logo {
  width: 66px; height: 66px; border-radius: 12px;
  background-color: #f2e8d0;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #e0d2ac; margin-bottom: 0.85rem;
}
.rec-card-logo--mono {
  font-family: 'Cinzel', serif; font-size: 1.7rem; font-weight: 700; color: #a8823f;
  background: linear-gradient(160deg, #f6ecd2, #ecdcb4);
}
.rec-card-tag {
  font-family: 'Cinzel', serif; font-size: 0.62rem; letter-spacing: 0.11em; text-transform: uppercase;
  color: #8a7a52; background: rgba(168, 130, 63, 0.12);
  padding: 0.18rem 0.55rem; border-radius: 999px; margin-bottom: 0.55rem;
}
.rec-card-name { font-family: 'Cinzel', serif; font-size: 1.06rem; font-weight: 700; color: #4f3a12; text-decoration: none; }
a.rec-card-name:hover { color: #8a6626; }
.rec-card-blurb { font-size: 1.02rem; line-height: 1.45; color: #554f40; margin: 0.5rem 0 0; }
.rec-empty { grid-column: 1 / -1; text-align: center; color: #6b6350; font-style: italic; padding: 2rem; }

@media (max-width: 560px) {
  .rec-page { padding-top: 5.5rem; }
  .rec-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
