/*
 * Transport Feed — stylesheet (v0.6.0)
 * Do NOT edit this file on a site — plugin updates overwrite it.
 * Per-brand styling goes in Appearance → Customize → Additional CSS,
 * starting with the design tokens on .tf-feed, .tf-team.
 */

/*
 * 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 24px; }

/* 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(min(360px, 100%), 1fr)); gap: 24px; }

/* 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(min(230px, 100%), 1fr)); }

/* Fixed cards-per-row via shortcode columns="1..4" (replaces count-based auto-fit).
   minmax(0,1fr) keeps equal tracks; collapses to fewer columns on smaller screens. */
.tf-grid.tf-cols-1 { grid-template-columns: 1fr; }
.tf-grid.tf-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tf-grid.tf-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tf-grid.tf-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 920px) {
  .tf-grid.tf-cols-3, .tf-grid.tf-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tf-grid.tf-cols-2, .tf-grid.tf-cols-3, .tf-grid.tf-cols-4 { grid-template-columns: 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; } */
:is(.tf-grid.tf-count-1, .tf-grid.tf-cols-1):not(.tf-grid-4) > .tf-card {
  display: grid; grid-template-columns: minmax(300px, 45%) 1fr;
  grid-template-rows: auto 1fr;
}
/* Image owns column 1 top-to-bottom; tabs + body stack in column 2 */
:is(.tf-grid.tf-count-1, .tf-grid.tf-cols-1):not(.tf-grid-4) .tf-card-media { grid-column: 1; grid-row: 1 / -1; height: 100%; }
:is(.tf-grid.tf-count-1, .tf-grid.tf-cols-1):not(.tf-grid-4) .tf-card-media img { height: 100%; aspect-ratio: auto; }
:is(.tf-grid.tf-count-1, .tf-grid.tf-cols-1):not(.tf-grid-4) .tf-tabs { grid-column: 2; grid-row: 1; }
:is(.tf-grid.tf-count-1, .tf-grid.tf-cols-1):not(.tf-grid-4) .tf-card-body { grid-column: 2; grid-row: 2; }
@media (min-width: 721px) {
  :is(.tf-grid.tf-count-1, .tf-grid.tf-cols-1):not(.tf-grid-4) .tf-card-body { padding: 24px; }
  /* Footers opt out of the extra inset: back to the standard 16px position */
  :is(.tf-grid.tf-count-1, .tf-grid.tf-cols-1):not(.tf-grid-4) .tf-card-foot {
    margin-left: -8px; margin-right: -8px; margin-bottom: -8px; }
  /* Fact rows: labels and values sit together, left-aligned, values in a shared column */
  :is(.tf-grid.tf-count-1, .tf-grid.tf-cols-1):not(.tf-grid-4) .tf-fact { justify-content: flex-start; gap: 24px; }
  :is(.tf-grid.tf-count-1, .tf-grid.tf-cols-1):not(.tf-grid-4) .tf-fact dt { width: 80px; flex: none; }
  :is(.tf-grid.tf-count-1, .tf-grid.tf-cols-1):not(.tf-grid-4) .tf-fact dd { text-align: left; }
}
@media (max-width: 720px) {
  :is(.tf-grid.tf-count-1, .tf-grid.tf-cols-1):not(.tf-grid-4) > .tf-card { grid-template-columns: 1fr; grid-template-rows: none; }
  :is(.tf-grid.tf-count-1, .tf-grid.tf-cols-1):not(.tf-grid-4) .tf-card-media { grid-column: auto; grid-row: auto; height: auto; }
  :is(.tf-grid.tf-count-1, .tf-grid.tf-cols-1):not(.tf-grid-4) .tf-card-media img { aspect-ratio: 4/3; height: auto; }
  :is(.tf-grid.tf-count-1, .tf-grid.tf-cols-1):not(.tf-grid-4) .tf-tabs,
  :is(.tf-grid.tf-count-1, .tf-grid.tf-cols-1):not(.tf-grid-4) .tf-card-body { grid-column: auto; grid-row: 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; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.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: 8px; 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: 24px 0 0; }
.tf-more { background: transparent; border: 1.5px solid var(--tf-orange); color: var(--tf-ink);
  font-weight: 600; padding: 12px 24px; 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 24px; 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: 4px 12px; font-size: .8em; margin: 0 8px 8px 0; }

/* ---------- Team directory ---------- */
.tf-team-tools { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 24px; }
.tf-team-q { flex: 1 1 260px; padding: 12px 16px; border: 1px solid var(--tf-line); border-radius: 8px; }
.tf-team-dept, .tf-team-load { padding: 12px 16px; 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: 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 8px; }
.tf-hero-cta { margin-top: 8px; }

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

/* ============ Tabbed transport card (v0.6) ============ */
/* Type badge (replaces the old bottom Featured badge) */
.tf-type-badge { position: absolute; left: 12px; top: 12px;
  background: color-mix(in srgb, var(--tf-navy) 50%, transparent); color: #fff;
  font-size: .75em; font-weight: 600; padding: 4px 16px; border-radius: 999px; }

/* Tab bar — a tab renders only when its content exists for the order */
.tf-tabs { display: flex; gap: 16px; border-bottom: 1px solid var(--tf-line);
  background: var(--tf-card); }
.tf-tab { flex: 1 1 auto; min-width: 0; background: none; border: none; padding: 12px 4px; font: inherit;
  font-size: .85em; font-weight: 700; color: var(--tf-ink); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }

/* Three-tab bars: tighten so "Transport Details" never gets crowded at the card floor */
.tf-tabs:has(> .tf-tab:nth-child(3)) { gap: 8px; }
.tf-tabs:has(> .tf-tab:nth-child(3)) .tf-tab { font-size: .8em; padding-left: 2px; padding-right: 2px; }
.tf-tab.is-active { border-bottom-color: var(--tf-orange); }

/* Single-tab (details-only) cards: reads as a plain section label — left-aligned,
   natural width, no orange indicator; the bar's own grey border is the divider */
.tf-tab:only-child { flex: none; padding-left: 16px; padding-right: 16px; text-align: left;
  cursor: default; }
.tf-tab.is-active:only-child { border-bottom-color: transparent; }

/* Panes */
/* Stable-height tabs: every pane occupies the same grid cell, so the body sizes to the
   TALLEST pane on load and never changes height when switching tabs. Hidden panes use
   visibility (not display:none) so they still participate in sizing. Scoped via :has()
   so team cards and legacy bodies keep their flex layout. */
.tf-card-body:has(> .tf-pane) { display: grid; }
.tf-pane { grid-area: 1 / 1; min-width: 0; visibility: hidden; display: flex; flex-direction: column; }
.tf-pane.is-active { visibility: visible; }

/* Title → route spacing */
.tf-pane .tf-card-title { margin-bottom: 4px; }

/* Details pane: label/value fact rows */
.tf-facts { margin: 12px 0 16px; }
.tf-fact { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .95em; }
.tf-fact dt { color: var(--tf-muted); }
.tf-fact dd { margin: 0; font-weight: 500; text-align: right; }

/* Card footer rows (broker/similar, review source/link, quote swap) */
.tf-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border-top: 1px solid var(--tf-line); margin-top: auto; padding-top: 16px; flex-wrap: nowrap; }

/* Wide single-card layout: the quote pair sits together, right-aligned, instead of
   being flung to opposite edges by space-between across the full column */
@media (min-width: 721px) {
  :is(.tf-grid.tf-count-1, .tf-grid.tf-cols-1):not(.tf-grid-4) .tf-foot-quote { justify-content: flex-end; gap: 20px; }
}

/* Tiny viewports: compact the footer so phone + quote always share one row */
@media (max-width: 420px) {
  .tf-card-body { padding: 12px; }
  .tf-card-foot { gap: 8px; }
  .tf-phone-btn { padding: 8px 12px; font-size: .82em; }
  .tf-action { font-size: .85em; }
}
.tf-foot-broker { display: flex; align-items: center; gap: 8px; color: var(--tf-muted); font-size: .9em; }
.tf-foot-broker a { color: var(--tf-navy); font-weight: 600; text-decoration: none; }
.tf-broker-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.tf-broker-ico { width: 20px; height: 20px; border-radius: 50%; background: var(--tf-orange); flex: none;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 12a5 5 0 100-10 5 5 0 000 10zm0 2c-5 0-9 2.5-9 6v2h18v-2c0-3.5-4-6-9-6z"/></svg>') center/contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 12a5 5 0 100-10 5 5 0 000 10zm0 2c-5 0-9 2.5-9 6v2h18v-2c0-3.5-4-6-9-6z"/></svg>') center/contain no-repeat; }

/* Action links: orange-underlined ("Have a Similar Transport?", "Full Review", "Read Full Story", "Request a Quote") */
.tf-action { background: none; border: none; padding: 0 0 2px; font: inherit; font-size: .92em; font-weight: 700;
  color: var(--tf-ink); cursor: pointer; text-decoration: none; border-bottom: 2px solid var(--tf-navy);
  white-space: nowrap; }
.tf-action:hover { color: var(--tf-navy); }

/* Quote state (footer swap target) */
.tf-phone-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--tf-navy); color: #fff;
  font-weight: 700; font-size: .9em; padding: 8px 16px; border-radius: 8px; text-decoration: none;
  white-space: nowrap; }
.tf-phone-btn { transition: background .15s ease; }
.tf-phone-btn:hover { background: var(--tf-navy-deep); }
.tf-phone-btn:active { background: color-mix(in srgb, var(--tf-navy-deep) 85%, #000); }
.tf-phone-btn:focus-visible { outline: 2px solid var(--tf-orange); outline-offset: 2px; }
.tf-phone-btn::before { content: ""; width: 20px; height: 20px; flex: none; background: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.4.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z"/></svg>') center/contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.4.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z"/></svg>') center/contain no-repeat; }

/* Review / story panes */
.tf-review-text { font-size: .95em; line-height: 1.6; margin: 4px 0 16px; }
.tf-review-src { display: flex; align-items: center; gap: 8px; color: var(--tf-muted); font-size: .88em; }
.tf-stars { color: var(--tf-orange); font-weight: 700; }

[hidden] { display: none !important; }

/* ============ Card media gallery (v0.8) ============ */
.tf-gallery { position: relative; }
/* Image visibility is inline-style driven (optimizer-proof); CSS handles cosmetics only. */
.tf-type-badge { z-index: 2; }
.tf-gal-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.88); color: var(--tf-ink);
  font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.tf-gal-prev { left: 10px; }
.tf-gal-next { right: 10px; }
.tf-gal-dots { position: absolute; bottom: 10px; left: 0; right: 0; z-index: 2;
  display: flex; gap: 6px; justify-content: center; }
.tf-gal-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255,255,255,.55); cursor: pointer; }
.tf-gal-dot.is-active { background: #fff; }
/* The Added date anchors to the footer block: the card's flexible space sits
   ABOVE it, so on every card the date rides flush over the divider. */
.tf-added { margin: auto 0 4px; font-size: .82em; color: var(--tf-muted); }
.tf-pane .tf-added ~ .tf-card-foot { margin-top: 0; }

/* ================================================================
   Theme-collision hardening (v0.6.1)
   Live WP themes (Elementor kits, theme.json presets) style button,
   h3, a, dl/dt/dd at (0,1,1)+ specificity, beating single-class
   rules. Everything below re-asserts the card design at (0,2,0)+
   so the plugin wins without !important. Values mirror the rules
   above — change THOSE for design tweaks; this block only defends.
   ================================================================ */

.tf-feed *, .tf-feed *::before, .tf-feed *::after,
.tf-team *, .tf-team *::before, .tf-team *::after { box-sizing: border-box; }

/* --- Tabs: strip theme button chrome, restore label/indicator design --- */
.tf-feed .tf-tabs, .tf-team .tf-tabs { margin: 0; padding: 0; list-style: none; }
.tf-feed .tf-tab, .tf-team .tf-tab {
  appearance: none; -webkit-appearance: none;
  background: transparent; border: 0; border-bottom: 2px solid transparent;
  border-radius: 0; box-shadow: none; text-shadow: none;
  margin: 0 0 -1px; padding: 12px 4px; width: auto; min-width: 0; min-height: 0;
  font-family: inherit; font-size: .85em; font-weight: 700; line-height: 1.4;
  letter-spacing: normal; text-transform: none;
  color: var(--tf-ink); cursor: pointer; display: inline-block;
}
.tf-feed .tf-tab:hover, .tf-feed .tf-tab:focus {
  background: transparent; color: var(--tf-ink); box-shadow: none; }
.tf-feed .tf-tab.is-active, .tf-feed .tf-tab.is-active:hover {
  background: transparent; color: var(--tf-ink); border-bottom-color: var(--tf-orange); }
.tf-feed .tf-tab:only-child {
  flex: none; padding-left: 16px; padding-right: 16px; text-align: left; cursor: default; }
.tf-feed .tf-tab.is-active:only-child { border-bottom-color: transparent; }

/* --- Action links (Similar / Quote / Full Review / Read Full Story) --- */
.tf-feed .tf-action {
  appearance: none; -webkit-appearance: none;
  background: transparent; border: 0; border-bottom: 2px solid var(--tf-navy);
  border-radius: 0; box-shadow: none; text-shadow: none;
  margin: 0; padding: 0 0 2px; width: auto; min-height: 0;
  font-family: inherit; font-size: .92em; font-weight: 700; line-height: 1.4;
  letter-spacing: normal; text-transform: none; text-decoration: none;
  color: var(--tf-ink); cursor: pointer; white-space: nowrap; display: inline-block;
}
.tf-feed .tf-action:hover, .tf-feed .tf-action:focus {
  background: transparent; color: var(--tf-navy); text-decoration: none;
  border-bottom-color: var(--tf-navy); box-shadow: none; }

/* --- Solid buttons --- */
.tf-feed .tf-phone-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--tf-navy); color: #fff; border: 0; border-radius: 8px;
  box-shadow: none; margin: 0; padding: 8px 16px; width: auto; min-height: 0;
  font-family: inherit; font-size: .9em; font-weight: 700; line-height: 1.4;
  letter-spacing: normal; text-transform: none; text-decoration: none; white-space: nowrap;
}
.tf-feed .tf-phone-btn:hover { background: var(--tf-navy-deep); color: #fff; text-decoration: none; }
.tf-feed .tf-phone-btn:active { background: color-mix(in srgb, var(--tf-navy-deep) 85%, #000); }
.tf-feed .tf-more, .tf-team .tf-more {
  appearance: none; -webkit-appearance: none;
  background: transparent; border: 1.5px solid var(--tf-orange); border-radius: 8px;
  box-shadow: none; margin: 0; padding: 12px 24px; width: auto; min-height: 0;
  font-family: inherit; font-weight: 600; line-height: 1.4;
  letter-spacing: normal; text-transform: none; color: var(--tf-ink); cursor: pointer;
}
.tf-feed .tf-more:hover, .tf-team .tf-more:hover { background: var(--tf-orange); color: var(--tf-ink); }
.tf-feed .tf-btn {
  display: inline-block; background: var(--tf-orange); color: #20242c;
  border: 0; border-radius: 8px; box-shadow: none; margin: 0; padding: 12px 24px;
  font-family: inherit; font-weight: 700; line-height: 1.4;
  letter-spacing: normal; text-transform: none; text-decoration: none; }

/* --- Typography: beat theme h2/h3/p presets --- */
.tf-feed .tf-card-title, .tf-team .tf-card-title {
  margin: 0; padding: 0; font-size: 1.05em; line-height: 1.3;
  letter-spacing: normal; text-transform: none; }
.tf-feed .tf-pane .tf-card-title { margin-bottom: 4px; }
.tf-feed .tf-h2, .tf-team .tf-h2 { margin: 0 0 24px; padding: 0; font-size: 1.6em; line-height: 1.3; }
.tf-feed .tf-route  { margin: 0; padding: 0; }
.tf-feed .tf-desc   { margin: 0; padding: 0; }
.tf-feed .tf-review-text { margin: 4px 0 16px; padding: 0; }

/* --- Fact rows: beat theme dl/dt/dd styling --- */
.tf-feed .tf-facts { margin: 12px 0 16px; padding: 0; }
.tf-feed .tf-fact  { margin: 0; padding: 6px 0; }
.tf-feed .tf-fact dt {
  margin: 0; padding: 0; float: none; width: auto;
  font-weight: 400; color: var(--tf-muted); }
.tf-feed .tf-fact dd {
  margin: 0; padding: 0; min-width: 0;
  font-weight: 500; text-align: right; }

/* --- Kill theme transition bleed on tab switching ---
   Kit-level `transition: all` makes the panes' visibility flip wait out the
   full duration (visibility is discrete: it changes at the END of a
   transition), which reads as input lag. Panes switch instantly; only the
   tab underline keeps a short deliberate fade. --- */
.tf-feed .tf-pane, .tf-team .tf-pane { transition: none; }
.tf-feed .tf-tab, .tf-team .tf-tab { transition: border-bottom-color .12s ease; }
.tf-feed .tf-card-foot { transition: none; }

/* Quote-footer swap: class-driven display rules at triple-class specificity, so no
   theme rule (or missing [hidden] support) can delay or soften the switch. The JS
   toggles .tf-quote-open on the pane alongside the hidden attributes. */
.tf-feed .tf-pane .tf-foot-quote { display: none; }
.tf-feed .tf-pane.tf-quote-open .tf-foot-quote { display: flex; }
.tf-feed .tf-pane.tf-quote-open .tf-foot-default { display: none; }
.tf-feed .tf-foot-default, .tf-feed .tf-foot-quote,
.tf-feed .tf-action, .tf-feed .tf-similar { transition: none; animation: none; }
.tf-feed .tf-phone-btn { transition: background .15s ease; animation: none; }

/* --- Broker avatar: beat theme img presets (radius, borders, shadows) --- */
.tf-feed .tf-broker-avatar, .tf-team .tf-broker-avatar {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
  border: 0; box-shadow: none; margin: 0; padding: 0;
  display: inline-block; flex: none; max-width: none; }
.tf-feed .tf-broker-ico { border-radius: 50%; }

/* --- Links inside cards: no theme underlines/colors --- */
.tf-feed .tf-foot-broker a, .tf-team .tf-card-title a, .tf-feed .tf-card-title a {
  text-decoration: none; box-shadow: none; }
.tf-feed .tf-foot-broker a { color: var(--tf-navy); font-weight: 600; white-space: nowrap; }
.tf-feed .tf-foot-broker a:hover { text-decoration: underline; color: var(--tf-navy); }

/* --- Gallery controls + added-date: beat theme button/p presets (v0.8) --- */
.tf-feed .tf-gal-btn, .tf-feed .tf-gal-dot {
  appearance: none; -webkit-appearance: none; box-shadow: none; text-shadow: none;
  margin: 0; min-width: 0; min-height: 0; font-family: inherit; font-weight: 400;
  letter-spacing: normal; text-transform: none; transition: none; animation: none; }
.tf-feed .tf-gal-btn { border: 0; border-radius: 50%; padding: 0; width: 32px; height: 32px;
  background: rgba(255,255,255,.88); color: var(--tf-ink); font-size: 20px; line-height: 1; }
.tf-feed .tf-gal-btn:hover { background: #fff; color: var(--tf-ink); }
.tf-feed .tf-gal-dot { border: 0; border-radius: 50%; padding: 0; width: 8px; height: 8px;
  background: rgba(255,255,255,.55); }
.tf-feed .tf-gal-dot:hover { background: rgba(255,255,255,.8); }
.tf-feed .tf-gal-dot.is-active, .tf-feed .tf-gal-dot.is-active:hover { background: #fff; }
.tf-feed .tf-gallery img { border: 0; border-radius: 0; box-shadow: none; max-width: none; }
.tf-feed .tf-added { margin: auto 0 4px; padding: 0; }
.tf-feed .tf-pane .tf-added ~ .tf-card-foot { margin-top: 0; }
