/* CSS for all <p> fonts */
.btn {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.container {
  max-width: 100%;
}

.text-responsive {
  font-size: calc(50% + 0.01vw);
}

.text-jj-card {
  /*font-size: calc(50% + .01vw );*/
  font-size: 9px;
}

.text-jj-card-title {
  /*font-size: calc(50% + .01vw );*/
  font-size: 10px;
  text-transform: capitalize;
}

.card-jj {
  width: 10rem;
  height: 80px;
  border-radius: 12px;
  border: 1px;
}

.card-jj-non-tech {
  height: 60px;
  border-radius: 12px;
  border: 1px;
}

/*.card-jj-short {width:10rem; height: 80px; border-radius: 12px; border: 1px}*/
.card-top-category {
  width: 10rem;
  height: 70px;
  border-radius: 12px;
  border: 1px;
}

.text-jj-card-category {
  /*font-size: calc(50% + .01vw );*/
  font-size: 12px;
  text-transform: capitalize;
}

/* nav bar font color */
a.nav-text-jj {
  color: #565e64 !important;
  /*565E64*/
  /*6C757C*/
  /*4A5055*/
  font-weight: bold;
}

/* image hovering effect*/
.card-jj:hover {
  /*border: 1px;*/
  border: #4a5055 1px solid;
  opacity: 0.5;
}

.card-jj-non-tech:hover {
  /*border: 1px;*/
  border: #4a5055 1px solid;
  opacity: 0.5;
}

/* to round the icon corners */
.icon {
  border-radius: 30%;
}

.jj-loading-button {
  display: none;
}

.h1 {
  font-size: 3rem;
}

/* Keep tap/focus feedback subtle in both light and dark themes. */
#filterButton:active,
#filterButton:focus {
  background-color: rgba(108, 117, 125, 0.08) !important;
}

#filterButton:active,
#filterButton:focus:not(:focus-visible) {
  box-shadow: none !important;
}

#filterButton:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(0, 128, 255, 0.22) !important;
}

[data-theme="dark"] #filterButton:active,
[data-theme="dark"] #filterButton:focus {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

.homepage-intro,
.homepage-reports,
.homepage-guide,
.homepage-discovery {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.hero-copy {
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-tagline {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  line-height: 1.25;
}

.hero-description {
  font-size: 1.05rem;
  line-height: 1.55;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero-pill {
  background: rgba(0, 128, 255, 0.08);
  border: 1px solid rgba(0, 128, 255, 0.14);
  border-radius: 999px;
  color: var(--text-muted);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.7rem 1rem;
}

.hero-section {
  padding: 3.35rem 0 3rem;
}

.hero-section .display-4 {
  font-size: clamp(3.2rem, 6vw, 5rem);
}

.hero-section .hero-meta {
  margin-bottom: 2rem !important;
}

.hero-section .search-container {
  max-width: 960px;
}

.homepage-intro h2 {
  max-width: 520px;
}

.insight-tile {
  background: var(--card-bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.insight-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.insight-value {
  color: var(--text-main);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0.35rem 0;
}

.insight-tile p,
.homepage-guide p {
  color: var(--text-muted);
  margin-bottom: 0;
}

.homepage-guide {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 2rem 0;
}

.homepage-guide h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.homepage-methodology-link {
  align-items: center;
  background: rgba(0, 128, 255, 0.08);
  border: 1px solid rgba(0, 128, 255, 0.18);
  border-radius: 999px;
  color: var(--primary-color);
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 800;
  gap: 0.45rem;
  line-height: 1;
  padding: 0.78rem 1rem;
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.homepage-methodology-link:hover,
.homepage-methodology-link:focus {
  background: rgba(0, 128, 255, 0.12);
  border-color: rgba(0, 128, 255, 0.36);
  color: var(--primary-hover);
  outline: 0;
  text-decoration: none;
  transform: translateY(-1px);
}

.homepage-methodology-link:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(0, 128, 255, 0.22);
}

.homepage-methodology-link i {
  font-size: 0.86rem;
  transition: transform 0.18s ease;
}

.homepage-methodology-link:hover i,
.homepage-methodology-link:focus i {
  transform: translateX(2px);
}

.section-kicker {
  color: var(--primary-color);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-header {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.report-header h3 {
  font-size: 1.65rem;
}

.report-header p {
  max-width: 650px;
}

.report-header-link {
  align-items: center;
  color: var(--primary-color);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.95rem;
  font-weight: 800;
  gap: 0.45rem;
  text-decoration: none;
}

.report-header-link:hover,
.report-header-link:focus {
  color: var(--primary-hover);
}

.report-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-card-list {
  display: contents;
}

.report-card {
  background: var(--card-bg);
  border: 1px solid rgba(0, 0, 0, 0.075);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  color: inherit;
  display: grid;
  gap: 0.95rem;
  grid-template-rows: auto 1fr auto;
  min-height: 14rem;
  padding: 1.15rem;
  position: relative;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.report-card:hover,
.report-card:focus {
  border-color: rgba(0, 128, 255, 0.42);
  box-shadow: var(--shadow-md);
  color: inherit;
  outline: 0;
  transform: translateY(-2px);
}

.report-card-icon {
  align-items: center;
  background: rgba(0, 128, 255, 0.1);
  border: 1px solid rgba(0, 128, 255, 0.16);
  border-radius: 8px;
  color: var(--primary-color);
  display: inline-flex;
  height: 2.35rem;
  justify-content: center;
  width: 2.35rem;
}

.report-card-body,
.report-card-body small,
.report-card-body strong,
.report-card-body span,
.report-card-cta {
  display: block;
}

.report-card-body small {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.42rem;
  text-transform: uppercase;
}

.report-card-body strong {
  color: var(--text-main);
  font-size: 1.08rem;
  line-height: 1.22;
  margin-bottom: 0.55rem;
}

.report-card-body span {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.report-card-cta {
  align-items: center;
  color: var(--primary-color);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 800;
  gap: 0.4rem;
}

.report-card-cta i {
  font-size: 0.86rem;
  transition: transform 0.18s ease;
}

.report-card:hover .report-card-cta i,
.report-card:focus .report-card-cta i,
.report-header-link:hover i,
.report-header-link:focus i {
  transform: translateX(2px);
}

[data-theme="dark"] .report-card {
  background: var(--card-bg);
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .report-card:hover,
[data-theme="dark"] .report-card:focus {
  border-color: rgba(51, 153, 255, 0.52);
}

[data-theme="dark"] .report-card-icon {
  background: rgba(51, 153, 255, 0.14);
  border-color: rgba(51, 153, 255, 0.24);
}

[data-theme="dark"] .homepage-methodology-link {
  background: rgba(51, 153, 255, 0.14);
  border-color: rgba(51, 153, 255, 0.24);
  color: var(--primary-hover);
}

[data-theme="dark"] .homepage-methodology-link:hover,
[data-theme="dark"] .homepage-methodology-link:focus {
  background: rgba(51, 153, 255, 0.2);
  border-color: rgba(51, 153, 255, 0.44);
  color: #9dccff;
}

.homepage-discovery {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 2rem;
}

.discovery-header {
  margin-bottom: 1rem;
}

.discovery-header h3 {
  font-size: 1.45rem;
}

.discovery-header p:not(.section-kicker) {
  max-width: 680px;
}

.discovery-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.h1b-search-grid {
  grid-auto-rows: 1fr;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
}

.discovery-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.discovery-card {
  background: var(--card-bg);
  border: 1px solid rgba(0, 0, 0, 0.075);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  color: inherit;
  display: grid;
  gap: 0.5rem;
  min-height: 8.5rem;
  padding: 1rem;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.discovery-card:hover,
.discovery-card:focus {
  border-color: rgba(0, 128, 255, 0.42);
  box-shadow: var(--shadow-md);
  color: inherit;
  outline: 0;
  transform: translateY(-2px);
}

.discovery-card strong,
.discovery-card span {
  display: block;
}

.discovery-card strong {
  color: var(--text-main);
  font-size: 1.02rem;
  line-height: 1.22;
}

.discovery-card > span:not(.discovery-icon) {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.discovery-meta {
  font-size: 0.76rem !important;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.discovery-meta i {
  color: var(--primary-color);
  margin-right: 0.35rem;
}

.h1b-search-card {
  gap: 0.42rem;
  grid-template-rows: auto auto 1fr;
  min-height: 6.3rem;
  padding: 0.85rem 1rem;
}

.h1b-search-card strong {
  font-size: 1.08rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.h1b-search-card strong span:not(.brand-badge) {
  display: inline !important;
}

.h1b-search-card-dark {
  background: #101820;
  border-color: rgba(255, 255, 255, 0.12);
}

.h1b-search-card-dark .discovery-meta,
.h1b-search-card-dark span,
.h1b-search-card-dark strong {
  color: #ffffff !important;
}

.brand-badge {
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex !important;
  line-height: 1;
  padding: 0.28rem 0.52rem;
}

.brand-badge-dark {
  background: #212529;
}

.google-wordmark {
  letter-spacing: 0;
}

.google-wordmark span {
  display: inline !important;
}

.h1b-search-card .brand-badge {
  color: #ffffff !important;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.h1b-search-card .google-letter-blue {
  color: #4285f4 !important;
}

.h1b-search-card .google-letter-red {
  color: #db4437 !important;
}

.h1b-search-card .google-letter-yellow {
  color: #f4b400 !important;
}

.h1b-search-card .google-letter-green {
  color: #0f9d58 !important;
}

.h1b-search-card .netflix-red {
  color: #e50914 !important;
}

.h1b-search-card .amazon-black {
  color: #111111 !important;
}

.h1b-search-card .anthropic-orange {
  color: #c86043 !important;
}

.h1b-search-card .tesla-red {
  color: #e51837 !important;
}

.h1b-search-card .linkedin-blue {
  color: #2867b2 !important;
}

.h1b-search-card .apple-gray {
  color: #777777 !important;
}

.discovery-card-compact {
  align-items: center;
  grid-template-columns: auto 1fr;
  min-height: 5.25rem;
}

.discovery-card-compact strong {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.discovery-icon {
  align-items: center;
  background: rgba(0, 128, 255, 0.1);
  border: 1px solid rgba(0, 128, 255, 0.16);
  border-radius: 8px;
  color: var(--primary-color);
  display: inline-flex !important;
  flex: 0 0 auto;
  height: 2.35rem;
  justify-content: center;
  width: 2.35rem;
}

[data-theme="dark"] .homepage-discovery {
  border-top-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .discovery-card {
  background: var(--card-bg);
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .discovery-card:hover,
[data-theme="dark"] .discovery-card:focus {
  border-color: rgba(51, 153, 255, 0.52);
}

[data-theme="dark"] .discovery-icon {
  background: rgba(51, 153, 255, 0.14);
  border-color: rgba(51, 153, 255, 0.24);
}

[data-theme="dark"] .h1b-search-card-dark {
  border-color: rgba(51, 153, 255, 0.32);
}

[data-theme="dark"] .h1b-search-card .amazon-black {
  color: #ff9900 !important;
}

@media (max-width: 767.98px) {
  .report-header,
  .report-header-link {
    align-items: flex-start;
  }

  .report-header {
    flex-direction: column;
  }

  .report-grid {
    gap: 0.75rem;
    grid-template-columns: 1fr;
  }

  .report-card {
    min-height: auto;
  }

  .report-card-list {
    display: grid;
    gap: 0.65rem;
  }

  .report-card-list .report-card {
    align-items: center;
    gap: 0.75rem;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto;
    padding: 0.85rem 0.9rem;
  }

  .report-card-list .report-card-icon {
    height: 2rem;
    width: 2rem;
  }

  .report-card-list .report-card-body small,
  .report-card-list .report-card-body span {
    display: none;
  }

  .report-card-list .report-card-body strong {
    font-size: 0.98rem;
    margin-bottom: 0;
  }

  .report-card-list .report-card-cta {
    font-size: 0;
    justify-content: flex-end;
  }

  .report-card-list .report-card-cta i {
    font-size: 0.92rem;
  }

  .homepage-discovery {
    padding-top: 1.5rem;
  }

  .discovery-header h3 {
    font-size: 1.25rem;
  }

  .h1b-search-grid {
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  }

  .h1b-search-card {
    gap: 0.32rem;
    min-height: 5.55rem;
    padding: 0.7rem 0.75rem;
  }

  .discovery-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .discovery-card {
    min-height: auto;
    padding: 0.9rem;
  }

  .discovery-card-compact {
    align-items: center;
    grid-template-columns: auto 1fr;
  }

  .hero-section {
    padding: 2.35rem 0 2rem;
  }

  .hero-tagline {
    font-size: 1.2rem;
  }

  .hero-description {
    font-size: 0.98rem;
  }

  .hero-meta {
    gap: 0.5rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 360px;
  }

  .hero-pill {
    font-size: 0.84rem;
    justify-content: center;
    padding: 0.62rem 0.82rem;
  }
}

@media (max-width: 575.98px) {
  .discovery-grid-compact {
    grid-template-columns: 1fr;
  }
}
