/* TF Feature Wall — safe layout fixes v1.0.2
 * IMPORTANT: no JavaScript and no automatic Grid detection.
 */

/* Header only: keep normal desktop nav white, hide mobile control from tablet/desktop. */
.tfw-header .tfw-nav__links > a:not(.tfw-nav__cta) {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.tfw-header .tfw-nav__toggle {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.tfw-header .tfw-nav__toggle span { background: #fff !important; }

@media (min-width: 768px) {
  .tfw-header .tfw-nav__toggle,
  .tfw-header .tfw-nav__mobile {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* Optional utility ONLY for Grids you explicitly mark with class: tfw-mobile-check-row */
@media (max-width: 1024px) {
  .tfw-mobile-check-row {
    display: grid !important;
    grid-template-columns: 20px minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    column-gap: 10px !important;
    row-gap: 0 !important;
    align-items: start !important;
  }
  .tfw-mobile-check-row > * {
    min-width: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  .tfw-mobile-check-row > *:first-child {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 20px !important;
    max-width: 20px !important;
    justify-self: start !important;
    align-self: start !important;
  }
  .tfw-mobile-check-row > *:nth-child(2) {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: auto !important;
    max-width: none !important;
    align-self: start !important;
  }
  .tfw-mobile-check-row p { margin: 0 !important; }
}
