/* ============================================================
   RESELLERS — resellers.css
   ============================================================ */
.rs-hero { background: var(--dark-grey); color: #fff; padding: 80px 0 56px; position: relative; overflow: hidden; }
.rs-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 30%, rgba(0,99,163,0.35) 0%, transparent 65%); }
.rs-hero .t2-wrapper { position: relative; }
.rs-hero h1 { font-size: 3rem; font-weight: 300; margin: 8px 0 14px; color: #fff; }
.rs-hero p { font-size: 1rem; line-height: 1.6; color: rgba(255,255,255,0.8); max-width: 640px; margin: 0; }

.rs-body { background: var(--bg-light); padding: 40px 0 96px; }

.rs-filters {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px;
  background: #fff; border-radius: 8px; padding: 20px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05); margin-top: -72px; position: relative;
}
.rs-filters__group { display: flex; flex-direction: column; gap: 6px; flex: 1 1 220px; }
.rs-filters label { font-size: 0.6rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-secondary); }
.rs-filters select { font: inherit; font-size: 0.85rem; padding: 11px 12px; border: 1px solid #cbcdd6; border-radius: 4px; background: #fff; }
.rs-filters select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,99,163,0.15); }

.rs-meta { font-size: 0.8rem; color: var(--text-secondary); margin: 24px 0 20px; }
.rs-meta strong { color: var(--dark-grey); }

.rs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rs-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: 8px; padding: 24px;
  border: 1px solid var(--border-color);
  transition: box-shadow .2s ease, transform .2s ease;
}
.rs-card[hidden] { display: none; }
.rs-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,0.08); transform: translateY(-2px); }
.rs-card--pinned { background: linear-gradient(-160deg, #004f83 0%, #0063a3 100%); border-color: transparent; color: #fff; }
.rs-card__ribbon { display: flex; align-items: center; gap: 6px; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.rs-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.rs-card__index { font-size: 1.4rem; font-weight: 300; color: #b3b8c2; }
.rs-card--pinned .rs-card__index { color: var(--gold); }
.rs-tier { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; padding: 4px 10px; border-radius: 12px; }
.rs-tier--distributor { background: var(--gold); color: var(--dark-grey); }
.rs-tier--gold { background: #fdf3d6; color: #8a6100; }
.rs-tier--silver { background: #eceef3; color: #4b5563; }
.rs-tier--accelerator { background: #e3f2fd; color: #0d47a1; }
.rs-tier--non-contracted { background: #f4f6f8; color: #6b7280; }
.rs-card__name { font-size: 1rem; font-weight: 700; line-height: 1.35; margin: 0 0 2px; color: var(--dark-grey); }
.rs-card--pinned .rs-card__name { color: #fff; font-size: 1.2rem; }
.rs-card__country { font-size: 0.7rem; color: var(--text-secondary); margin: 0 0 14px; }
.rs-card--pinned .rs-card__country { color: rgba(255,255,255,0.7); }
.rs-card__details { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.rs-card__details li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.75rem; line-height: 1.5; color: var(--text-primary); }
.rs-card__details li > svg { flex-shrink: 0; margin-top: 3px; color: var(--primary); }
.rs-card__details a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.rs-card__details a:hover { color: var(--primary); text-decoration: underline; }
.rs-card--pinned .rs-card__details li { color: rgba(255,255,255,0.9); }
.rs-card--pinned .rs-card__details li > svg { color: var(--gold); }
.rs-card--pinned .rs-card__details a:hover { color: #fff; }
.rs-copy {
  margin-right: auto; flex-shrink: 0; border: 0; background: transparent; cursor: pointer;
  color: #9aa3ad; padding: 2px 4px; border-radius: 4px; line-height: 0;
}
.rs-copy:hover { color: var(--primary); background: var(--bg-light); }
.rs-copy.is-done { color: #16a34a; }
.rs-card--pinned .rs-copy { color: rgba(255,255,255,0.6); }
.rs-card--pinned .rs-copy:hover { color: #fff; background: rgba(255,255,255,0.12); }
.rs-card__web { display: inline-flex; align-items: center; gap: 6px; font-size: 0.7rem; font-weight: 700; color: var(--primary); text-decoration: none; margin-top: auto; }
.rs-card__web:hover { text-decoration: underline; }
.rs-card--pinned .rs-card__web { color: var(--gold); }

.rs-empty { text-align: center; background: #fff; border-radius: 8px; padding: 48px 24px; margin-top: 20px; }
.rs-empty[hidden] { display: none; }
.rs-empty h2 { font-size: 1.3rem; font-weight: 400; margin: 0 0 8px; }
.rs-empty p { font-size: 0.85rem; color: var(--text-secondary); margin: 0 0 20px; }

@media (max-width: 1024px) { .rs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .rs-grid { grid-template-columns: minmax(0, 1fr); }
  .rs-hero { padding: 56px 0 72px; }
  .rs-hero h1 { font-size: 2rem; }
  .rs-filters { padding: 16px; }
  .rs-filters .t2-button { width: 100%; justify-content: center; }
}
