/*
 * Transport Feed — stylesheet (v0.5.0)
 *
 * HOW TO CUSTOMIZE PER BRAND (do NOT edit this file — edits are lost on plugin updates):
 *   Appearance → Customize → Additional CSS on each site. Your rules there load
 *   after this file and win automatically. Start with the variables below.
 *
 * Example brand override:
 *   .tf-feed, .tf-team { --tf-orange:#d94f1e; --tf-r:4px; }
 *   .tf-card-title { text-transform:uppercase; }
 */

/* ---------- Design tokens: override these first ---------- */
.tf-feed, .tf-team {
  --tf-navy: #213e9a;        /* primary brand blue (hero, links) */
  --tf-navy-deep: #172f7d;   /* darker blue (hero photo fallback) */
  --tf-orange: #f5a623;      /* accent (badges, buttons, chips, pin) */
  --tf-ink: #1c1c1c;         /* main text */
  --tf-muted: #5a5f6b;       /* secondary text */
  --tf-line: #e7e3db;        /* card borders */
  --tf-card: #fff;           /* card background */
  --tf-r: 12px;              /* corner radius everywhere */
}

/* ---------- Layout ---------- */
.tf-feed, .tf-team { margin: 0 auto; max-width: 1200px; }
.tf-h2 { font-size: 1.6em; margin: 0 0 20px; }

/* Transport grids scale to card count: 1 card = full row, 2 = halves, 3 = thirds...
   (auto-fit collapses unused tracks; the 280px minimum caps how many columns fit) */
.tf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }

/* Team grid intentionally does NOT scale (auto-fill): headshot cards keep a uniform
   size whether the directory has 2 brokers or 60 */
.tf-grid-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* The server stamps tf-count-1 ... tf-count-6 / tf-count-many on every grid,
   so per-brand CSS can target counts directly, e.g. .tf-count-2 .tf-card-title {...} */

/* Single-result treatment: one transport lays out horizontally (image left, body right)
   instead of stretching a vertical card across the row.
   To disable on a brand: .tf-grid.tf-count-1 > .tf-card { display:flex; flex-direction:column; }
   and restore .tf-card-media img { aspect-ratio:4/3; height:auto; } */
.tf-grid.tf-count-1:not(.tf-grid-4) > .tf-card {
  display: grid; grid-template-columns: minmax(300px, 45%) 1fr;
}
.tf-grid.tf-count-1:not(.tf-grid-4) .tf-card-media { height: 100%; }
.tf-grid.tf-count-1:not(.tf-grid-4) .tf-card-media img { height: 100%; aspect-ratio: auto; }
@media (max-width: 720px) {
  .tf-grid.tf-count-1:not(.tf-grid-4) > .tf-card { grid-template-columns: 1fr; }
  .tf-grid.tf-count-1:not(.tf-grid-4) .tf-card-media img { aspect-ratio: 4/3; height: auto; }
}
.tf-hidden { display: none; }

/* ---------- Transport card ---------- */
.tf-card { background: var(--tf-card); border: 1px solid var(--tf-line); border-radius: var(--tf-r);
  overflow: hidden; display: flex; flex-direction: column; }
.tf-card-media { position: relative; }
.tf-card-media img { width: 100%; height: auto; display: block; aspect-ratio: 4/3; object-fit: cover; }
.tf-badge { position: absolute; left: 12px; bottom: 12px; background: var(--tf-orange); color: #20242c;
  font-size: .72em; font-weight: 700; letter-spacing: .02em; padding: 4px 12px; border-radius: 999px; }
.tf-card-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.tf-card-title { font-size: 1.05em; margin: 0; line-height: 1.3; }
.tf-card-title a { text-decoration: none; color: var(--tf-ink); }
.tf-route { margin: 0; font-size: .9em; color: var(--tf-ink); display: flex; align-items: center;
  gap: 6px; flex-wrap: wrap; }
.tf-pin { width: 10px; height: 10px; border-radius: 50% 50% 50% 0; background: var(--tf-orange);
  transform: rotate(-45deg); display: inline-block; flex: none; }
.tf-arrow { color: var(--tf-muted); }
.tf-desc { margin: 0; font-size: .88em; color: var(--tf-muted); }
.tf-spec { margin: 0; font-size: .85em; color: var(--tf-ink); }
.tf-spec span { color: var(--tf-muted); }
.tf-broker { margin: 2px 0 0; font-size: .85em; color: var(--tf-muted); }
.tf-broker a { color: var(--tf-navy); font-weight: 600; text-decoration: none; }
.tf-broker a:hover { text-decoration: underline; }

/* ---------- Load More + buttons ---------- */
.tf-more-wrap { text-align: center; margin: 26px 0 0; }
.tf-more { background: transparent; border: 1.5px solid var(--tf-orange); color: var(--tf-ink);
  font-weight: 600; padding: 10px 26px; border-radius: 8px; cursor: pointer; }
.tf-more:hover { background: var(--tf-orange); }
.tf-btn { display: inline-block; background: var(--tf-orange); color: #20242c; font-weight: 700;
  padding: 12px 22px; border-radius: 8px; text-decoration: none; }

/* ---------- Chips (languages / specialties) ---------- */
.tf-chip { display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  color: #fff; border-radius: 999px; padding: 3px 12px; font-size: .8em; margin: 0 6px 6px 0; }

/* ---------- Team directory ---------- */
.tf-team-tools { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 22px; }
.tf-team-q { flex: 1 1 260px; padding: 10px 14px; border: 1px solid var(--tf-line); border-radius: 8px; }
.tf-team-dept, .tf-team-load { padding: 10px 14px; border: 1px solid var(--tf-line); border-radius: 8px;
  background: #fff; }
.tf-person-media { display: block; background: #f6f3ed; }
.tf-person-media img { width: 100%; height: auto; display: block; aspect-ratio: 1/1; object-fit: cover; }
.tf-avatar-fallback { display: flex; align-items: center; justify-content: center; aspect-ratio: 1/1;
  font-size: 2.4em; font-weight: 700; color: var(--tf-navy); background: #eef1fb; }
.tf-role { margin: 0; font-size: .88em; color: var(--tf-muted); }
.tf-view { font-size: .9em; font-weight: 600; color: var(--tf-ink); text-decoration: none; margin-top: auto; }
.tf-view:hover { color: var(--tf-navy); }

/* ---------- Broker profile hero ---------- */
.tf-hero { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; border-radius: var(--tf-r);
  overflow: hidden; margin: 0 0 40px; background: var(--tf-navy); color: #fff; }
.tf-hero-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.tf-hero-photo .tf-avatar-fallback { height: 100%; background: var(--tf-navy-deep); color: #fff; }
.tf-hero-body { padding: 28px 32px; display: flex; flex-direction: column; gap: 12px; }
.tf-hero-name { margin: 0; font-size: 2em; color: #fff; line-height: 1.15; }
.tf-hero-sub { margin: 0; font-size: 1em; color: #dfe6ff; }
.tf-dot { opacity: .5; padding: 0 4px; }
.tf-hero-label { display: block; font-size: .78em; color: #c3cdf2; margin: 0 0 6px; }
.tf-hero-cta { margin-top: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .tf-hero { grid-template-columns: 1fr; }
  .tf-hero-photo img { aspect-ratio: 4/3; }
}
