/* 2026 Tax Law Changes — Widget Styles */
/* Prefix: tl- */

.tl-widget,
.tl-widget *,
.tl-widget *::before,
.tl-widget *::after {
  box-sizing: border-box;
}

/* ========== Status Chips — inline body ========== */

.tl-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tl-chip.tl-visible { opacity: 1; }

.tl-chip::before {
  display: inline-block;
  font-size: 11px;
  line-height: 1;
  flex-shrink: 0;
}

.tl-chip-permanent::before  { content: '✓'; }
.tl-chip-temporary::before  { content: '◷'; font-size: 16px; transform: translateY(-1px); }
.tl-chip-effective::before  { content: '★'; }
.tl-chip-expires::before    { content: '✕'; }

.tl-chip-permanent  { color: #1e6b40; background: #eaf5ee; border: 1px solid #b8dfc4; }
.tl-chip-temporary  { color: #4a3a8a; background: #eeebf8; border: 1px solid #c9c0ed; }
.tl-chip-effective  { color: #1a4070; background: #e8f0f8; border: 1px solid #b4cce8; }
.tl-chip-expires    { color: #6b5530; background: #f5f0e8; border: 1px solid #ddd0b8; }

/* ========== Key widget chips — stagger animation + color palette ========== */

.tl-key-chips .tl-chip {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tl-key-chips .tl-chip.tl-visible { opacity: 1; }


/* ========== Status Key Widget ========== */

.tl-key-widget {
  margin: 28px 0;
}

.tl-key-chips {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 16px;
}

/* ========== Quick-Scan Nav Widget ========== */

.tl-nav-widget {
  margin: 32px 0;
}

.tl-nav-row-3 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 0;
}

.tl-nav-row-2 {
  display: none;
}

.tl-nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 5px 14px 16px;
  background: linear-gradient(160deg, rgba(212, 255, 216, 0.30) 0%, rgba(212, 255, 216, 0) 55%), #ffffff;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
  opacity: 0;
  transform: translateY(10px);
}

.tl-nav-card.tl-visible {
  opacity: 1;
  transform: translateY(0);
}

.tl-nav-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
}

.tl-nav-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
  display: block;
}

.tl-nav-label {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
}

/* ========== Responsive ========== */

@media (max-width: 780px) {
  .tl-nav-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
  }
}

@media (max-width: 500px) {
  .tl-nav-row-3 {
    grid-template-columns: 1fr 1fr;
  }
}

/* ========== Reduced motion ========== */

@media (prefers-reduced-motion: reduce) {
  .tl-key-chips .tl-chip {
    opacity: 1;
    transition: none;
  }

  .tl-nav-card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .tl-nav-card:hover {
    transform: none;
  }
}
