Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Home/FeaturedRegionCard/styles.css

Template page
Revision as of 03:14, 26 August 2025 by Eloise Zomia (talk | contribs) (Created page with "================================ FeaturedRegionCard — TemplateStyles-safe CSS ================================: Grid wrapper (used on Main Page): .fr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: stretch; max-width: 1200px; margin: 0 auto; } Card shell: .fa-card { display: flex; flex-direction: column; background: #ffffff; border: 1px solid #e5e7eb; border-radius:...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
/* ================================
   FeaturedRegionCard — TemplateStyles-safe CSS
   ================================ */

/* Grid wrapper (used on Main Page) */
.fr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

/* Card shell */
.fa-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: box-shadow .2s ease;
  height: 100%;
}
.fa-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.12); }

/* Media area */
.fa-media {
  position: relative;
  height: 200px;
  background: #f3f4f6;
  overflow: hidden;
}
.fa-img,
.fa-img a { display: block; height: 100%; }
.fa-img img { width: 100%; height: 100%; object-fit: cover; }

/* Placeholder */
.fa-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: .9rem;
}

/* Body */
.fa-body {
  padding: 14px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px; /* consistent vertical rhythm */
}

/* Kicker (status + path) */
.fa-kicker {
  margin: 0;
  color: #6b7280;
  font-size: .88rem;
  line-height: 1.3;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.k-item { display: inline-flex; align-items: center; gap: 4px; }
.fa-status { font-weight: 700; color: #374151; }

/* Title */
.fa-title {
  margin: 0;
  font-size: 1.125rem; /* 18px */
  line-height: 1.25;
  color: #1f2937;
}
.fa-title a { color: inherit; text-decoration: none; }
.fa-title a:hover { text-decoration: underline; }

/* Subline (location) */
.fa-sub {
  margin: 0;
  color: #4b5563;
  font-size: .92rem;
}

/* Provenance/meta (dot-separated via CSS) */
.fa-provenance {
  margin: 0;
  color: #64748b;
  font-size: .88rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.fa-provenance .pv-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.fa-provenance .pv-item + .pv-item::before {
  content: "·";
  margin: 0 8px;
  color: #cbd5e1;
}

/* Hook (one-line pitch) */
.fa-hook {
  margin: 0;
  color: #334155;
  font-size: .95rem;
}

/* CTA */
.fa-cta {
  margin: 2px 0 0 0;
  font-weight: 600;
}
.fa-cta a {
  color: #2d5016;
  text-decoration: none;
  border-bottom: 1px solid rgba(45,80,22,.3);
  padding-bottom: 1px;
}
.fa-cta a:hover { border-bottom-color: rgba(45,80,22,.6); }
.fa-cta .fa-missing { color: #6b7280; }

/* Badges (kept for future use if needed) */
.fa-badge {
  display: inline-block;
  font-size: .75rem;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #e5e7eb;
}
.fa-badge--tier { background: #ecfeff; color: #155e75; }
.fa-badge--pres { background: #f0fdf4; color: #166534; }

/* Small screens */
@media (max-width: 480px) {
  .fa-media { height: 160px; }
  .fa-body { padding: 12px 14px 14px 14px; gap: 6px; }
  .fa-title { font-size: 1.05rem; }
  .fa-provenance { font-size: .86rem; }
}