/* pathSTR page-specific styles
   Loaded after css/hgvd.css.
*/

.pathstr-intro .pathstr-lead{
  max-width:none;
}

.pathstr-data-note{
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid var(--line);
}

.pathstr-data-note h2,
.pathstr-reports h2,
.pathstr-reference h2{
  margin:0 0 8px;
  font-size:18px;
}

.pathstr-intro .pathstr-data-note p{
  margin:0;
  max-width:none;
  color:var(--muted);
  font-size:14px;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
}

.pathstr-reports,
.pathstr-reference{
  margin-top:16px;
}

.pathstr-section-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}

.pathstr-section-header p{
  margin:0;
}

.pathstr-count{
  flex:0 0 auto;
  padding:6px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#f8fafc;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

.pathstr-tools{
  display:grid;
  grid-template-columns:auto minmax(220px, 420px);
  align-items:center;
  gap:10px;
  margin-bottom:14px;
}

.pathstr-tools label{
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}

.pathstr-tools input[type="search"]{
  width:100%;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  color:var(--text);
  font:inherit;
  outline:none;
}

.pathstr-tools input[type="search"]:focus{
  border-color:rgba(37,99,235,.55);
  box-shadow:0 0 0 3px rgba(37,99,235,.18);
}

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

/* Ensure filtered reports are actually removed from the grid. */
.pathstr-item[hidden],
.pathstr-item[aria-hidden="true"]{
  display:none !important;
}

/* Ensure the HTML hidden attribute wins over display:flex. */
.pathstr-item[hidden],
.pathstr-no-results[hidden]{
  display:none !important;
}

.pathstr-item{
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  transition:border-color .15s ease, box-shadow .15s ease, transform .08s ease;
}

.pathstr-item:hover{
  border-color:#cbd5e1;
  box-shadow:0 8px 18px rgba(2,6,23,.07);
  transform:translateY(-1px);
}

.pathstr-item.has-dagger{
  border-color:rgba(180,83,9,.28);
  background:#fffdf7;
}

.pathstr-report-link{
  min-width:0;
  overflow-wrap:anywhere;
  color:var(--brand);
  font-weight:750;
  line-height:1.35;
}

.report-dagger{
  margin-left:.18em;
  color:#b45309;
  font-weight:900;
  text-decoration:none;
}

.tag{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:3px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  line-height:1.35;
  white-space:nowrap;
}

.tag-sca{ background:#e0f2fe; color:#075985; }
.tag-dm{ background:#ede9fe; color:#5b21b6; }
.tag-opdm{ background:#dcfce7; color:#166534; }
.tag-fame{ background:#ffedd5; color:#9a3412; }
.tag-fra{ background:#fee2e2; color:#991b1b; }
.tag-neuro{ background:#e2e8f0; color:#334155; }
.tag-other{ background:#cffafe; color:#155e75; }

.pathstr-no-results{
  margin:14px 0 0;
  padding:12px;
  border:1px dashed var(--line);
  border-radius:var(--radius);
  color:var(--muted);
  text-align:center;
}

.pathstr-reference p{
  margin:0;
}

.sr-only{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

@media (max-width:900px){
  .pathstr-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:720px){
  .pathstr-section-header{
    display:block;
  }

  .pathstr-count{
    display:inline-flex;
    margin-top:10px;
  }

  .pathstr-tools{
    grid-template-columns:1fr;
  }

  .pathstr-grid{
    grid-template-columns:1fr;
  }
}
