/* Reference pages (module "references"): neutral defaults. The site's CSS may restyle every rf-* class. */
/* Everything sits in a cascade layer: CSS of the website (design/css.css) is not in a layer and therefore beats it
   whatever the order or the selector — a design only needs its own rules, no !important. */
@layer references {
/* the attribute hidden always hides, even where a design gives the element its own display */
.rf-card[hidden], .rf-empty[hidden] { display: none !important; }
.rf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.rf-card { border: 1px solid var(--line, #e5e7eb); border-radius: 10px; background: var(--surface, #fff); overflow: hidden; }
.rf-card-link { display: flex; flex-direction: column; color: inherit; height: 100%; }
/* the link rules of a site (a:hover { underline }) must not underline the whole card */
.rf-card-link, .rf-card-link:hover { text-decoration: none !important; }
.rf-card-img { display: block; aspect-ratio: 4 / 3; background: var(--bg-alt, #f3f4f6); }
.rf-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rf-card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px; }
.rf-group { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #6b7280); }
.rf-title { font-weight: 700; color: var(--ink, #111827); }
.rf-location { color: var(--muted, #6b7280); font-size: .9rem; }
.rf-teaser { color: var(--text, #4b5563); font-size: .92rem; }
.rf-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.rf-chip { padding: 6px 14px; border: 1px solid var(--line, #d1d5db); border-radius: 999px; background: var(--surface, #fff); color: var(--text, inherit); font: inherit; cursor: pointer; }
.rf-chip.is-on { background: var(--ink, #111827); border-color: var(--ink, #111827); color: var(--bg, #fff); }
.rf-empty { color: var(--muted, #6b7280); padding: 20px 0; }
.rf-split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; max-width: 1200px; margin: 0 auto; padding: 24px 20px 56px; align-items: start; }
@media (max-width: 860px) { .rf-split { grid-template-columns: 1fr; } }
.rf-left { display: flex; flex-direction: column; gap: 16px; }
.rf-left h1 { margin: 0; }
.rf-details-title { margin: 0 0 8px; }
.rf-facts { margin: 0 0 8px; }
.rf-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line, #e5e7eb); }
.rf-facts dt { color: var(--muted, #6b7280); }
.rf-facts dd { margin: 0; font-weight: 600; text-align: right; }
.rf-sec { padding: 16px 0; border-bottom: 1px solid var(--line, #e5e7eb); }
.rf-sec-title { margin: 0 0 10px; font-size: 1.1rem; }
.rf-brand-logo { display: block; height: 1.6rem; width: auto; max-width: 8rem; object-fit: contain; object-position: left center; margin-bottom: 2px; }
.rf-products b { font-weight: 600; }
.rf-cover { margin: 16px 0; }
.rf-cover img { width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: 10px; display: block; }
.rf-gallery { list-style: none; margin: 16px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.rf-gallery img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; display: block; }
.rf-products { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 10px; }
.rf-products a, .rf-products li > span { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.rf-products img { object-fit: contain; background: var(--bg-alt, #f3f4f6); border-radius: 6px; }
.rf-products small { display: block; color: var(--muted, #6b7280); }
.rf-more { margin-top: 18px; }
.rf-back { margin: 0 0 12px; font-size: .9rem; }
}
