/* ==========================================================================
   Future Technology Homepage V3
   Mobile-first. Dark premium publication layout.
   All classes prefixed ft- to avoid v2g.css conflicts.
   ========================================================================== */

/* -- Container -- */
.ft-home {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px 48px;
  display: block;
}

/* -- Section Labels -- */
.ft-label {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}
.ft-label--accent {
  padding-left: 10px;
  border-left: 3px solid #22d3ee;
}

/* -- Category Badges -- */
.ft-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.ft-badge--sm {
  padding: 3px 7px;
  font-size: 9.5px;
  border-radius: 4px;
}
.ft-badge--ai          { color: #a78bfa; background: rgba(167,139,250,0.14); }
.ft-badge--security,
.ft-badge--cybersecurity { color: #f87171; background: rgba(248,113,113,0.14); }
.ft-badge--computing,
.ft-badge--hardware    { color: #34d399; background: rgba(52,211,153,0.14); }
.ft-badge--science,
.ft-badge--space       { color: #fbbf24; background: rgba(251,191,36,0.14); }
.ft-badge--technology,
.ft-badge--news        { color: #22d3ee; background: rgba(34,211,238,0.14); }
.ft-badge--gadgets     { color: #f472b6; background: rgba(244,114,182,0.14); }
.ft-badge--reviews     { color: #fb923c; background: rgba(251,146,60,0.14); }
.ft-badge--evs,
.ft-badge--self-driving { color: #2dd4bf; background: rgba(45,212,191,0.14); }
.ft-badge--tools,
.ft-badge--software    { color: #818cf8; background: rgba(129,140,248,0.14); }
.ft-badge--policy      { color: #94a3b8; background: rgba(148,163,184,0.14); }
.ft-badge--robotics    { color: #a78bfa; background: rgba(167,139,250,0.14); }
.ft-badge--free-report { color: #22d3ee; background: rgba(34,211,238,0.14); }

/* ==========================================================================
   1. FEATURED HERO
   ========================================================================== */
.ft-featured { margin: 8px 0 20px; }

.ft-featured__link {
  display: block;
  text-decoration: none !important;
  color: inherit;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.25s;
}
.ft-featured__link:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
}

.ft-featured__bg {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  border-radius: 16px;
  overflow: hidden;
}
/* Soft radial highlight in corner */
.ft-featured__bg::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 50%; height: 120%;
  border-radius: 50%;
  pointer-events: none;
}

/* Category gradient backgrounds */
.ft-featured__bg--ai {
  background: linear-gradient(155deg, #1e1245 0%, #130d30 50%, #0c0820 100%);
}
.ft-featured__bg--ai::before {
  background: radial-gradient(circle, rgba(167,139,250,0.1) 0%, transparent 60%);
}
.ft-featured__bg--security,
.ft-featured__bg--cybersecurity {
  background: linear-gradient(155deg, #2d1520 0%, #1e0d18 50%, #120810 100%);
}
.ft-featured__bg--security::before,
.ft-featured__bg--cybersecurity::before {
  background: radial-gradient(circle, rgba(248,113,113,0.1) 0%, transparent 60%);
}
.ft-featured__bg--computing,
.ft-featured__bg--hardware {
  background: linear-gradient(155deg, #0d2a20 0%, #081e18 50%, #051410 100%);
}
.ft-featured__bg--computing::before,
.ft-featured__bg--hardware::before {
  background: radial-gradient(circle, rgba(52,211,153,0.1) 0%, transparent 60%);
}
.ft-featured__bg--science,
.ft-featured__bg--space {
  background: linear-gradient(155deg, #2a2010 0%, #1e180a 50%, #141005 100%);
}
.ft-featured__bg--science::before,
.ft-featured__bg--space::before {
  background: radial-gradient(circle, rgba(251,191,36,0.1) 0%, transparent 60%);
}
.ft-featured__bg--technology,
.ft-featured__bg--news {
  background: linear-gradient(155deg, #0d1e35 0%, #081528 50%, #050e1c 100%);
}
.ft-featured__bg--technology::before,
.ft-featured__bg--news::before {
  background: radial-gradient(circle, rgba(34,211,238,0.1) 0%, transparent 60%);
}
.ft-featured__bg--gadgets {
  background: linear-gradient(155deg, #2a1025 0%, #1e0a1a 50%, #120510 100%);
}
.ft-featured__bg--gadgets::before {
  background: radial-gradient(circle, rgba(244,114,182,0.1) 0%, transparent 60%);
}
.ft-featured__bg--reviews {
  background: linear-gradient(155deg, #2a1a0d 0%, #1e1208 50%, #140d05 100%);
}
.ft-featured__bg--reviews::before {
  background: radial-gradient(circle, rgba(251,146,60,0.1) 0%, transparent 60%);
}
.ft-featured__bg--evs,
.ft-featured__bg--self-driving {
  background: linear-gradient(155deg, #0d2a28 0%, #081e1c 50%, #051412 100%);
}
.ft-featured__bg--evs::before,
.ft-featured__bg--self-driving::before {
  background: radial-gradient(circle, rgba(45,212,191,0.1) 0%, transparent 60%);
}
.ft-featured__bg--tools,
.ft-featured__bg--software {
  background: linear-gradient(155deg, #151545 0%, #0d0d30 50%, #080820 100%);
}
.ft-featured__bg--tools::before,
.ft-featured__bg--software::before {
  background: radial-gradient(circle, rgba(129,140,248,0.1) 0%, transparent 60%);
}
.ft-featured__bg--policy {
  background: linear-gradient(155deg, #1a1e28 0%, #12151e 50%, #0a0d14 100%);
}
.ft-featured__bg--policy::before {
  background: radial-gradient(circle, rgba(148,163,184,0.06) 0%, transparent 60%);
}
.ft-featured__bg--robotics {
  background: linear-gradient(155deg, #1e1245 0%, #130d30 50%, #0c0820 100%);
}
.ft-featured__bg--robotics::before {
  background: radial-gradient(circle, rgba(167,139,250,0.1) 0%, transparent 60%);
}

.ft-featured__inner {
  position: relative;
  padding: 40px 28px 32px;
  width: 100%;
}
.ft-featured__title {
  margin: 12px 0 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.ft-featured__desc {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.72);
  max-width: 42em;
}
.ft-featured__meta {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
}

/* ==========================================================================
   2. SECONDARY STORIES
   ========================================================================== */
.ft-secondary { margin: 0 0 28px; }

.ft-secondary__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.ft-secondary__card {
  display: block;
  text-decoration: none !important;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.25s;
}
.ft-secondary__card:hover {
  transform: translateY(-2px);
  border-color: rgba(34,211,238,0.15);
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}

.ft-secondary__top { height: 6px; }

/* Top-bar accent colours */
.ft-secondary__top--ai          { background: linear-gradient(90deg, #a78bfa, rgba(167,139,250,0.3)); }
.ft-secondary__top--security,
.ft-secondary__top--cybersecurity { background: linear-gradient(90deg, #f87171, rgba(248,113,113,0.3)); }
.ft-secondary__top--computing,
.ft-secondary__top--hardware    { background: linear-gradient(90deg, #34d399, rgba(52,211,153,0.3)); }
.ft-secondary__top--science,
.ft-secondary__top--space       { background: linear-gradient(90deg, #fbbf24, rgba(251,191,36,0.3)); }
.ft-secondary__top--technology,
.ft-secondary__top--news        { background: linear-gradient(90deg, #22d3ee, rgba(34,211,238,0.3)); }
.ft-secondary__top--gadgets     { background: linear-gradient(90deg, #f472b6, rgba(244,114,182,0.3)); }
.ft-secondary__top--reviews     { background: linear-gradient(90deg, #fb923c, rgba(251,146,60,0.3)); }
.ft-secondary__top--evs,
.ft-secondary__top--self-driving { background: linear-gradient(90deg, #2dd4bf, rgba(45,212,191,0.3)); }
.ft-secondary__top--tools,
.ft-secondary__top--software    { background: linear-gradient(90deg, #818cf8, rgba(129,140,248,0.3)); }
.ft-secondary__top--policy      { background: linear-gradient(90deg, #94a3b8, rgba(148,163,184,0.3)); }
.ft-secondary__top--robotics    { background: linear-gradient(90deg, #a78bfa, rgba(167,139,250,0.3)); }

.ft-secondary__body { padding: 14px 16px 16px; }
.ft-secondary__title {
  margin: 8px 0 0;
  font-size: 15.5px;
  line-height: 1.35;
  font-weight: 600;
  color: #f4f6fb;
}
.ft-secondary__meta {
  margin: 8px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* ==========================================================================
   3. TRENDING
   ========================================================================== */
.ft-trending { margin: 0 0 28px; }
.ft-trending__list {
  list-style: none;
  margin: 0; padding: 0;
}
.ft-trending__item {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ft-trending__item:last-child { border-bottom: none; }

.ft-trending__item > a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  text-decoration: none !important;
  color: inherit;
  transition: padding-left 0.15s;
}
.ft-trending__item > a:hover { padding-left: 4px; }
.ft-trending__num {
  flex: 0 0 28px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  color: #22d3ee;
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}
.ft-trending__item > a:hover .ft-trending__num { opacity: 1; }

.ft-trending__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}
.ft-trending__title {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.35;
  font-weight: 600;
  color: #f4f6fb;
}

/* ==========================================================================
   4. NEWSLETTER
   ========================================================================== */
.ft-newsletter {
  margin: 0 0 32px;
  padding: 28px 24px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
}
.ft-newsletter__inner { max-width: 560px; }
.ft-newsletter__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #f4f6fb;
}
.ft-newsletter__desc {
  margin: 6px 0 16px;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255,255,255,0.5);
}
.ft-newsletter__fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ft-newsletter__input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: #f4f6fb;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  outline: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}
.ft-newsletter__input::placeholder { color: rgba(255,255,255,0.35); }
.ft-newsletter__input:focus {
  border-color: rgba(34,211,238,0.5);
  background: rgba(255,255,255,0.08);
}
.ft-newsletter__btn {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.02em;
  color: #04121a;
  background: linear-gradient(135deg, #22d3ee, #0ea5c4);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: filter 0.15s;
  white-space: nowrap;
}
.ft-newsletter__btn:hover { filter: brightness(1.1); }
.ft-newsletter__trust {
  display: block;
  margin-top: 10px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   5. LATEST
   ========================================================================== */
.ft-latest { margin: 0; }
.ft-latest__grid {
  display: flex;
  flex-direction: column;
}
.ft-latest__card {
  display: block;
  padding: 14px 0 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid transparent;
  text-decoration: none !important;
  color: inherit;
  transition: border-color 0.15s, padding-left 0.15s;
}
.ft-latest__card:last-child { border-bottom: none; }
.ft-latest__card:hover { padding-left: 18px; }




.ft-latest__title {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  color: #f4f6fb;
}
.ft-latest__card:hover .ft-latest__title {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  color: #f4f6fb;
}
.ft-latest__meta {
  margin: 5px 0 0;
  font-size: 11.5px;
  color: rgba(255,255,255,0.35);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Wider phones */
@media (min-width: 480px) {
  .ft-featured__inner { padding: 48px 32px 36px; }
  .ft-featured__title { font-size: 28px; }
  .ft-featured__desc  { font-size: 15px; }
  .ft-newsletter__fields { flex-direction: row; }
  .ft-newsletter__input  { flex: 1; }
  .ft-newsletter__btn    { flex: 0 0 auto; }
}

/* Tablet */
@media (min-width: 680px) {
  .ft-home { padding: 20px 20px 56px; }
  .ft-featured__bg    { min-height: 340px; }
  .ft-featured__inner { padding: 56px 40px 40px; }
  .ft-featured__title { font-size: 32px; }
  .ft-featured__desc  { font-size: 15.5px; }
  .ft-secondary__grid { grid-template-columns: repeat(3, 1fr); }
  .ft-secondary__title { font-size: 15px; }
}

/* Desktop 2-column layout */
@media (min-width: 1100px) {
  .ft-home {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    column-gap: 48px;
    align-items: start;
    padding: 20px 0 64px;
  }
  .ft-home > .ft-featured   { grid-column: 1 / -1; }
  .ft-home > .ft-secondary  { grid-column: 1 / -1; }
  .ft-home > .ft-trending   { grid-column: 2; grid-row: 3 / 5; }
  .ft-home > .ft-newsletter { grid-column: 1; grid-row: 3; }
  .ft-home > .ft-latest     { grid-column: 1; grid-row: 4; }

  /* Trending becomes sidebar card */
  .ft-home > .ft-trending {
    margin: 0;
    padding: 20px 22px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    position: sticky;
    top: 80px;
  }

  .ft-featured__bg    { min-height: 380px; }
  .ft-featured__inner { padding: 64px 48px 48px; }
  .ft-featured__title { font-size: 38px; }
  .ft-featured__desc  { font-size: 16px; }

  /* Latest 2-column grid */
  .ft-latest__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 32px;
  }
  .ft-latest__card:last-child {
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
}

@media (min-width: 1600px) {
  .ft-featured__title { font-size: 42px; }
  .ft-featured__bg    { min-height: 420px; }
}

/* Small phone */
@media (max-width: 400px) {
  .ft-featured__inner { padding: 32px 20px 24px; }
  .ft-featured__title { font-size: 21px; }
  
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .ft-featured__link,
  .ft-secondary__card,
  .ft-trending__item > a,
  .ft-latest__card { transition: none !important; }
}

/* ==========================================================================
   OVERRIDES: neutralise v2g.css rules on ft-home
   ========================================================================== */
.ft-home,
.ft-home * {
  /* Reset any inherited card/hero decorations from v2g.css */
}
.ft-home .ft-badge,
.ft-home .ft-featured__link,
.ft-home .ft-secondary__card,
.ft-home .ft-latest__card {
  box-shadow: none;
}
.ft-home .ft-featured__link::before,
.ft-home .ft-featured__link::after,
.ft-home .ft-secondary__card::before,
.ft-home .ft-secondary__card::after,
.ft-home .ft-latest__card::before,
.ft-home .ft-latest__card::after {
  display: none !important;
}

/* Cookie consent: keep it out of the way */
.ft-consent,
#ft-consent,
[class*="cookie"],
[id*="cookie"] {
  z-index: 9999;
}
.ft-home {
  padding-bottom: 64px;
}

/* ---- Card images (QA fix) ---- */
.ft-card__img {
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  line-height: 0;
}
.ft-card__img img {
  width: 100%;
  height: 160px;
  display: block;
  object-fit: cover;
}
.ft-secondary__card:has(.ft-card__img) {
  padding: 0;
}
.ft-secondary__card:has(.ft-card__img) .ft-secondary__body {
  padding: 14px 18px 18px;
}
.ft-latest__card .ft-card__img {
  border-radius: 14px 14px 0 0;
}
.ft-latest__card .ft-card__img img {
  height: 150px;
}
.ft-latest__body {
  padding: 14px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.ft-latest__card:has(.ft-card__img) {
  padding: 0;
  display: flex;
  flex-direction: column;
}
.ft-latest__card:has(.ft-card__img) .ft-latest__title,
.ft-latest__card:has(.ft-card__img) .ft-latest__meta {
  padding: 0;
}

/* ---- Tablet breakpoint 800-1099px (QA fix #10) ---- */
@media (min-width: 800px) and (max-width: 1099px) {
  .ft-secondary__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ft-latest__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ft-trending__list {
    columns: 1;
  }
  .ft-newsletter__inner {
    flex-direction: column;
    text-align: center;
  }
  .ft-newsletter__fields {
    justify-content: center;
  }
}

@media (max-width: 799px) {
  .ft-secondary__grid {
    grid-template-columns: 1fr;
  }
  .ft-latest__grid {
    grid-template-columns: 1fr;
  }
  .ft-latest__card .ft-card__img img {
    height: 180px;
  }
  .ft-secondary__card .ft-card__img img {
    height: 170px;
  }
}

/* ==========================================================================
   Mobile clean layout - Sep 6 2026
   No cards on mobile. Text-only lists with coloured left borders.
   ========================================================================== */

/* Category coloured left borders on latest cards (all viewports) */
.ft-latest__card--ai, .ft-latest__card--robotics { border-left-color: #a78bfa; }
.ft-latest__card--security, .ft-latest__card--cybersecurity { border-left-color: #f87171; }
.ft-latest__card--computing, .ft-latest__card--hardware { border-left-color: #34d399; }
.ft-latest__card--science, .ft-latest__card--space { border-left-color: #fbbf24; }
.ft-latest__card--technology, .ft-latest__card--news { border-left-color: #22d3ee; }
.ft-latest__card--gadgets { border-left-color: #f472b6; }
.ft-latest__card--evs, .ft-latest__card--self-driving { border-left-color: #2dd4bf; }
.ft-latest__card--reviews { border-left-color: #fb923c; }
.ft-latest__card--tools, .ft-latest__card--software { border-left-color: #818cf8; }
.ft-latest__card--policy { border-left-color: #94a3b8; }

/* Category coloured left borders on secondary cards */
.ft-secondary__card:has(.ft-badge--ai) { border-left: 3px solid #a78bfa; }
.ft-secondary__card:has(.ft-badge--security),
.ft-secondary__card:has(.ft-badge--cybersecurity) { border-left: 3px solid #f87171; }
.ft-secondary__card:has(.ft-badge--computing),
.ft-secondary__card:has(.ft-badge--hardware) { border-left: 3px solid #34d399; }
.ft-secondary__card:has(.ft-badge--science),
.ft-secondary__card:has(.ft-badge--space) { border-left: 3px solid #fbbf24; }
.ft-secondary__card:has(.ft-badge--technology),
.ft-secondary__card:has(.ft-badge--news) { border-left: 3px solid #22d3ee; }
.ft-secondary__card:has(.ft-badge--gadgets) { border-left: 3px solid #f472b6; }
.ft-secondary__card:has(.ft-badge--evs),
.ft-secondary__card:has(.ft-badge--self-driving) { border-left: 3px solid #2dd4bf; }
.ft-secondary__card:has(.ft-badge--reviews) { border-left: 3px solid #fb923c; }
.ft-secondary__card:has(.ft-badge--tools),
.ft-secondary__card:has(.ft-badge--software) { border-left: 3px solid #818cf8; }
.ft-secondary__card:has(.ft-badge--policy) { border-left: 3px solid #94a3b8; }

/* Mobile: strip cards, text-only lists */
@media (max-width: 799px) {
  /* --- Secondary: remove card chrome, become text list --- */
  .ft-secondary__card {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    border-left: 3px solid transparent !important;
    border-radius: 0 !important;
    padding: 12px 0 12px 14px !important;
    overflow: visible !important;
    display: block !important;
  }
  .ft-secondary__card:last-child {
    border-bottom: none !important;
  }
  .ft-secondary__card:hover {
    transform: none !important;
    box-shadow: none !important;
    padding-left: 18px !important;
  }
  /* Hide images and top bar */
  .ft-secondary__card .ft-card__img {
    display: none !important;
  }
  .ft-secondary__top {
    display: none !important;
  }
  .ft-secondary__body {
    padding: 0 !important;
  }
  .ft-secondary__title {
    font-size: 14.5px !important;
    line-height: 1.35 !important;
    margin-top: 5px !important;
  }
  .ft-secondary__meta {
    margin-top: 4px !important;
  }
  .ft-secondary {
    margin-bottom: 16px !important;
  }

  /* Re-apply coloured left borders (override the none above) */
  .ft-secondary__card:has(.ft-badge--ai) { border-left: 3px solid #a78bfa !important; }
  .ft-secondary__card:has(.ft-badge--security),
  .ft-secondary__card:has(.ft-badge--cybersecurity) { border-left: 3px solid #f87171 !important; }
  .ft-secondary__card:has(.ft-badge--computing),
  .ft-secondary__card:has(.ft-badge--hardware) { border-left: 3px solid #34d399 !important; }
  .ft-secondary__card:has(.ft-badge--science),
  .ft-secondary__card:has(.ft-badge--space) { border-left: 3px solid #fbbf24 !important; }
  .ft-secondary__card:has(.ft-badge--technology),
  .ft-secondary__card:has(.ft-badge--news) { border-left: 3px solid #22d3ee !important; }
  .ft-secondary__card:has(.ft-badge--gadgets) { border-left: 3px solid #f472b6 !important; }
  .ft-secondary__card:has(.ft-badge--evs),
  .ft-secondary__card:has(.ft-badge--self-driving) { border-left: 3px solid #2dd4bf !important; }
  .ft-secondary__card:has(.ft-badge--reviews) { border-left: 3px solid #fb923c !important; }
  .ft-secondary__card:has(.ft-badge--tools),
  .ft-secondary__card:has(.ft-badge--software) { border-left: 3px solid #818cf8 !important; }
  .ft-secondary__card:has(.ft-badge--policy) { border-left: 3px solid #94a3b8 !important; }

  /* --- Latest: strip card chrome, text-only list --- */
  .ft-latest__card {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    border-left: 3px solid transparent !important;
    border-radius: 0 !important;
    padding: 12px 0 12px 14px !important;
    display: block !important;
    overflow: visible !important;
  }
  .ft-latest__card:last-child {
    border-bottom: none !important;
  }
  .ft-latest__card:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  .ft-latest__card .ft-card__img {
    display: none !important;
  }
  .ft-latest__card .ft-latest__body {
    padding: 0 !important;
    display: block !important;
  }
  .ft-latest__card .ft-badge {
    display: inline-block !important;
    width: auto !important;
  }
  .ft-latest__title {
    font-size: 14.5px !important;
    line-height: 1.35 !important;
    margin: 4px 0 0 !important;
  }
  .ft-latest__meta {
    margin: 4px 0 0 !important;
  }
  /* Re-apply coloured left borders on latest cards */
  .ft-latest__card--ai, .ft-latest__card--robotics { border-left: 3px solid #a78bfa !important; }
  .ft-latest__card--security, .ft-latest__card--cybersecurity { border-left: 3px solid #f87171 !important; }
  .ft-latest__card--computing, .ft-latest__card--hardware { border-left: 3px solid #34d399 !important; }
  .ft-latest__card--science, .ft-latest__card--space { border-left: 3px solid #fbbf24 !important; }
  .ft-latest__card--technology, .ft-latest__card--news { border-left: 3px solid #22d3ee !important; }
  .ft-latest__card--gadgets { border-left: 3px solid #f472b6 !important; }
  .ft-latest__card--evs, .ft-latest__card--self-driving { border-left: 3px solid #2dd4bf !important; }
  .ft-latest__card--reviews { border-left: 3px solid #fb923c !important; }
  .ft-latest__card--tools, .ft-latest__card--software { border-left: 3px solid #818cf8 !important; }
  .ft-latest__card--policy { border-left: 3px solid #94a3b8 !important; }

  /* Trending: align numbers with title top */
  .ft-trending__item a {
    align-items: flex-start !important;
  }
  .ft-trending__num {
    margin-top: 2px !important;
    flex-shrink: 0 !important;
  }

  /* Hide mid-page newsletter (button already in header) */
  .ft-newsletter {
    display: none !important;
  }

  /* Tighten section spacing */
  .ft-trending { margin-bottom: 16px !important; }
  .ft-featured { margin-bottom: 14px !important; }
}

@media (max-width: 480px) {
  .ft-secondary__title {
    font-size: 13.5px !important;
  }
  .ft-latest__title {
    font-size: 13.5px !important;
  }
}
/* mobile-clean-layout-deployed */
