/*
Theme Name: Astra Child
Template: astra
Version: 1.0
*/
/* ===== Employer Year Stats Table ===== */

/* =========================
   H1B Insider Employer Table
   Mobile-first cards (Option 1)
   Desktop table (Option 2)
   ========================= */

/* Wrapper stays pretty on desktop */
.h1bi-table-wrap{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  background:#fff;
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
}

/* Desktop table styling */
.h1bi-table{
  width:100%;
  border-collapse:collapse;
  font-size:15px;
  background:#ffffff;
  border: 2px solid #B22234;
}

.h1bi-table thead th{
  background:#0A3161;
  color:#ffffff;
  padding:12px 10px;
  font-weight:600;
  border-right:1px solid rgba(255,255,255,0.15);
  position: sticky;
  top: 0;
  white-space: normal;
  line-height: 1.15;
  text-align: left;
}


.h1bi-table thead th:last-child{ border-right:none; }

.h1bi-table tbody td{
  padding:10px;
  border-bottom:1px solid #e5e7eb;
  border-right:1px solid #e5e7eb;
  vertical-align:middle;
  background:#fff;
}

.h1bi-table tbody td:last-child{ border-right:none; }

.h1bi-table tbody tr:nth-child(even) td{
  background:#f8fafc;
}

.h1bi-table tbody tr:hover td{
  background: rgba(10,49,97,0.06);
}

.h1bi-table .num{
  text-align:right;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.h1bi-table .year{ font-weight:600; }
.h1bi-table .approval{ color:#065f46; font-weight:600; }
.h1bi-table .denial{ color:#991b1b; font-weight:600; }

@media (min-width: 769px){
  .h1bi-table{ min-width: 720px; }
}

/* =========================
   Mobile: card layout (primary)
   ========================= */

/* =========================
   Small screens polish
   ========================= */
   
/* =========================
   Global safety (prevents accidental sideways scroll)
   ========================= */

.h1b-employer-context{
  max-width: 900px;
  margin: 14px auto 26px;
  padding: 12px 16px;

  font-size: 15px;
  line-height: 1.6;

  background: #f8fafc;
  border-left: 4px solid #0A3161;
  border-radius: 10px;

  color: #0f172a;

  white-space: normal;
  word-break: break-word;
}

.h1b-employer-context strong{
  font-weight: 700;
}

.h1b-employer-context .h1b-line{
  display:block;
}

.h1b-employer-context .h1b-line + .h1b-line{
  margin-top: 14px;
}

.h1bi-mobile-only .h1bi-year{
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  overflow: hidden;
  margin: 12px 0;
}

.h1bi-mobile-only .h1bi-year-summary{
  list-style: none;
  cursor: pointer;
  padding: 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.h1bi-mobile-only .h1bi-year-left{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.h1bi-mobile-only .h1bi-year-label{
  font-size: 18px;
  font-weight: 700;
}

.h1bi-mobile-only .h1bi-year[open] .h1bi-year-caret{
  transform: rotate(180deg);
}

.h1bi-mobile-only .h1bi-year-caret{
  transition: transform .18s ease;
  opacity: .7;
}

.h1bi-mobile-only .h1bi-year-body{
  padding: 0 12px 12px;
}

.h1bi-mobile-only .h1bi-years-older.is-collapsed{
  display: none;
}

.h1bi-mobile-only .h1bi-show-more{
  width: 100%;
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* Force correct block per device, even if Astra overrides something */
.employer-single .h1bi-mobile-only{ display:none;}
.employer-single .h1bi-desktop-only{ display:block;}

@media (max-width: 768px){
  .employer-single .h1bi-mobile-only{ display:block;}
  .employer-single .h1bi-desktop-only{ display:none;}

  /* Extra safety: hide the desktop table wrapper too */
  .employer-single .h1bi-desktop-only .h1bi-table-wrap{ display:none;}
  .employer-single .h1bi-mobile-only .h1bi-table-wrap{ display:block;}
  
}

/* =========================
   Desktop table: column group separators
   Year | Initial | Continuing | Outcomes Total | Outcomes Rates
   ========================= */

@media (min-width: 769px){

  /* neutral, subtle group separators */
  .employer-single .h1bi-table th:nth-child(1),
  .employer-single .h1bi-table td:nth-child(1),
  .employer-single .h1bi-table th:nth-child(3),
  .employer-single .h1bi-table td:nth-child(3),
  .employer-single .h1bi-table th:nth-child(5),
  .employer-single .h1bi-table td:nth-child(5),
  .employer-single .h1bi-table th:nth-child(7),
  .employer-single .h1bi-table td:nth-child(7){
    border-right: 1px solid rgba(15,23,42,.15) !important;
  }

  /* gentle breathing room between groups */
  .employer-single .h1bi-table th:nth-child(2),
  .employer-single .h1bi-table td:nth-child(2),
  .employer-single .h1bi-table th:nth-child(4),
  .employer-single .h1bi-table td:nth-child(4),
  .employer-single .h1bi-table th:nth-child(6),
  .employer-single .h1bi-table td:nth-child(6),
  .employer-single .h1bi-table th:nth-child(8),
  .employer-single .h1bi-table td:nth-child(8){
    padding-left: 18px !important;
  }

  .employer-single .h1bi-table th:last-child,
  .employer-single .h1bi-table td:last-child{
    border-right: none !important;
  }
}

.h1bi-table thead th .th-sub{
  font-weight: 500;
  font-size: 13px;
  opacity: .9;
}

.h1bi-table thead th:first-line{
  font-weight: 600;
}

@media (min-width: 769px){

  /* Year column — very tight */
  .h1bi-table th:nth-child(1),
  .h1bi-table td:nth-child(1){
    width: 72px;
    white-space: nowrap;
  }

  /* Rate columns — narrow */
  .h1bi-table th:nth-child(8),
  .h1bi-table td:nth-child(8),
  .h1bi-table th:nth-child(9),
  .h1bi-table td:nth-child(9){
    width: 96px;
    white-space: nowrap;
  }

  /* Count columns — moderate width */
  .h1bi-table th:nth-child(2),
  .h1bi-table td:nth-child(2),
  .h1bi-table th:nth-child(3),
  .h1bi-table td:nth-child(3),
  .h1bi-table th:nth-child(4),
  .h1bi-table td:nth-child(4),
  .h1bi-table th:nth-child(5),
  .h1bi-table td:nth-child(5),
  .h1bi-table th:nth-child(6),
  .h1bi-table td:nth-child(6),
  .h1bi-table th:nth-child(7),
  .h1bi-table td:nth-child(7){
    width: 120px;
  }
}

@media (max-width: 768px){

  .h1bi-year-accordion{
    display: grid;
    gap: 14px;
  }

  .h1bi-mobile-only .h1bi-year-left{
    gap: 4px;
  }

  .h1bi-mobile-only .h1bi-year-body table{
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
  }

  .h1bi-mobile-only .h1bi-year-body td{
    padding: 12px 0;
    border-top: 1px solid rgba(0,0,0,.06);
  }

  .h1bi-mobile-only .h1bi-year-body td:last-child{
    text-align: right;
    font-weight: 800;
  }
}

.h1bi-year summary::-webkit-details-marker{ display:none; }
.h1bi-year summary::marker{ content:""; }

.h1bi_industry_grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 16px 0 28px;
}

.h1bi_industry_card{
  display: block;
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
  transition: transform .12s ease, box-shadow .12s ease;
}

.h1bi_industry_card:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0,0,0,.10);
}

/* Head */
.h1bi_industry_head{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.h1bi_industry_icon{
  width: 28px;
  height: 28px;
  background: rgba(10,49,97,.08);
  border-radius: 8px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 16px;
  line-height: 1;
}

.h1bi_industry_icon{
  font-family: system-ui, -apple-system, BlinkMacSystemFont;
}

/* Title */
.h1bi_industry_name{
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: #0A3161;
}

/* Metrics */
.h1bi_industry_metrics{
  display: flex;
  gap: 12px;
}

.h1bi_metric{
  flex: 1;
  background: rgba(10,49,97,.06);
  border-radius: 12px;
  padding: 10px 12px;
}

.h1bi_metric_label{
  font-size: 12px;
  opacity: .8;
  margin-bottom: 6px;
}

.h1bi_metric_value{
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
}

/* Responsive */
@media (max-width: 1024px){
  .h1bi_industry_grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px){
  .h1bi_industry_grid{
    grid-template-columns: 1fr;
  }
  .h1bi_industry_metrics{
    flex-direction: column;
  }
}

.h1bi_industry_top_list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.h1bi_industry_top_item {
  display: block;
}

.sr-only{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* ================================
   H1BI Home Page Styles
   ================================ */
   
body.home .h1bi-home .h1bi-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
}

body.home .h1bi-home .h1bi-hero {
  padding: 56px 0 28px;
}

body.home .h1bi-home .h1bi-title {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 10px;
}

body.home .h1bi-home .h1bi-subtitle {
  font-size: 16px;
  margin: 0 0 18px;
  opacity: 0.85;
}

body.home .h1bi-home .h1bi-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  max-width: 720px;
}

body.home .h1bi-home .h1bi-search-input {
  width: 100%;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.15);
  font-size: 16px;
}

body.home .h1bi-home .h1bi-search-btn {
  padding: 14px 16px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
}

body.home .h1bi-home .h1bi-search-hint {
  margin: 10px 0 0;
  font-size: 13px;
  opacity: 0.75;
}

body.home .h1bi-home .h1bi-quicklinks {
  padding: 18px 0 10px;
}

body.home .h1bi-home .h1bi-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.home .h1bi-home .h1bi-card {
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 16px;
  background: #fff;
}

body.home .h1bi-home .h1bi-card-link {
  display: block;
  text-decoration: none;
}

body.home .h1bi-home .h1bi-card-body {
  padding: 18px;
}

body.home .h1bi-home .h1bi-card-title {
  margin: 0 0 6px;
  font-size: 18px;
}

body.home .h1bi-home .h1bi-card-text {
  margin: 0 0 12px;
  opacity: 0.8;
}

body.home .h1bi-home .h1bi-card-cta {
  font-weight: 600;
}

body.home .h1bi-home .h1bi-section {
  padding: 26px 0;
}

body.home .h1bi-home .h1bi-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
}

body.home .h1bi-home .h1bi-section-links a {
  margin-left: 12px;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.85;
}

body.home .h1bi-home .h1bi-panel {
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 16px;
  background: #fff;
  padding: 16px;
  min-height: 220px;
}

body.home .h1bi-home .h1bi-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 12px;
}

body.home .h1bi-home .h1bi-kpi {
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}

body.home .h1bi-home .h1bi-kpi-label {
  font-size: 13px;
  opacity: 0.75;
  margin-bottom: 6px;
}

body.home .h1bi-home .h1bi-kpi-value {
  font-size: 22px;
  font-weight: 700;
}

body.home .h1bi-home .h1bi-grid-industries {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.home .h1bi-home .h1bi-industry-card {
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
  text-decoration: none;
}

body.home .h1bi-home .h1bi-industry-name {
  font-weight: 700;
  margin-bottom: 10px;
}

body.home .h1bi-home .h1bi-industry-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

body.home .h1bi-home .h1bi-pill {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  opacity: 0.85;
}

body.home .h1bi-home .h1bi-footer-strip {
  padding: 18px 0 40px;
  opacity: 0.85;
  font-size: 13px;
}

body.home .h1bi-home .h1bi-footer-strip .h1bi-container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  body.home .h1bi-home .h1bi-grid-2 { grid-template-columns: 1fr; }
  body.home .h1bi-home .h1bi-kpis { grid-template-columns: 1fr; }
  body.home .h1bi-home .h1bi-grid-industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.home .h1bi-home .h1bi-title { font-size: 32px; }
}

@media (max-width: 520px) {
  body.home .h1bi-home .h1bi-search { grid-template-columns: 1fr; }
  body.home .h1bi-home .h1bi-grid-industries { grid-template-columns: 1fr; }
}


