/**
 * Version 2.4.28 targeted interface corrections.
 */

/* Homepage: keep the Scholar values in a reserved band above the bars. */
.had-dashboard-zone-head>.had-auto-source{margin-left:auto}
.had-home-screen .had-scholar-card{
  grid-template-rows:auto auto minmax(78px,1fr) auto;
  overflow:hidden;
}
.had-home-screen .had-micro-chart{
  min-height:78px;
  margin-top:3px;
  padding:25px 7px 19px;
  overflow:visible;
}
.had-home-screen .had-micro-chart>i{
  max-height:calc(100% - 18px);
}
.had-home-screen .had-micro-chart>i>em{
  top:-20px;
  z-index:2;
  min-width:24px;
  padding:2px 3px;
  border:1px solid rgba(34,211,238,.18);
  border-radius:3px;
  background:#061724;
  line-height:1;
  text-align:center;
}
.had-home-screen .had-micro-chart>i>small{bottom:-17px}

/* Research portfolio: visible projects are numbered sequentially in PHP; text is clamped within each card. */
.had-view-research .had-project-card{padding:16px 16px 13px}
.had-view-research .had-project-card h2{
  display:-webkit-box;
  min-height:2.45em;
  max-height:2.45em;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
.had-view-research .had-project-card>p{
  display:-webkit-box;
  max-height:4.8em;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
}
.had-view-research .had-project-evidence-line{
  display:flex;
  flex-wrap:wrap;
  gap:4px 10px;
  max-height:36px;
  overflow:hidden;
}
.had-view-research .had-project-card .had-tag-row{
  max-height:58px;
  overflow:hidden;
  align-content:flex-start;
}

/* Code portfolio: real accessible filter controls. */
.had-portfolio-filters button{
  min-height:30px;
  padding:6px 10px;
  border:1px solid #244e62;
  border-radius:14px;
  background:#061927;
  color:#8aa8b6;
  font-size:12px;
  line-height:1;
}
.had-portfolio-filters button:hover,
.had-portfolio-filters button:focus-visible{border-color:var(--had-cyan);color:#e6f8fb;outline:none}
.had-portfolio-filters button.is-active{
  border-color:transparent;
  background:linear-gradient(135deg,#24e0ef,#a78bfa);
  color:#06121c;
}
.had-code-empty{
  grid-column:1/-1;
  min-height:140px;
  place-content:center;
  justify-items:center;
  gap:8px;
  color:#7899a8;
  text-align:center;
}
.had-code-empty .dashicons{color:var(--had-cyan)}
.had-code-empty b{font-size:13px}
.had-code-project[hidden],.had-code-empty[hidden],.had-teaching-student-kpi[hidden]{display:none!important}

/* Conferences: dimensions flow before the year chart and can never sit beneath its bars. */
.had-type-conferences [data-had-conference-analytics-body="profile"]{
  display:block;
  height:calc(100% - 39px);
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:4px;
  scrollbar-width:thin;
  scrollbar-color:#326b82 transparent;
}
.had-type-conferences [data-had-conference-analytics-body="profile"]>.had-dimension-groups,
.had-type-conferences [data-had-conference-analytics-body="profile"]>.had-conference-profile-dimensions{
  width:100%;
  min-height:auto;
  max-height:none;
  overflow:visible;
  padding:6px 2px 8px;
}
.had-type-conferences [data-had-conference-analytics-body="profile"]>.had-mini-year-bars{
  width:100%;
  height:126px;
  min-height:126px;
  margin-top:3px;
  overflow:hidden;
  border-top:1px solid #173d51;
}
.had-type-conferences [data-had-conference-analytics-body="profile"] .had-advanced-year-bars{
  height:100%;
  min-height:118px;
  padding:24px 7px 24px;
}
.had-type-conferences [data-had-conference-analytics-body="profile"] .had-advanced-year-bars i{
  min-height:72px;
}

/* Persian articles: restore the full-height year chart used by the other archives. */
.had-type-persian-articles [data-had-persian-analytics-body="years"]{
  height:calc(100% - 39px);
  min-height:122px;
  overflow:hidden;
}
.had-type-persian-articles [data-had-persian-analytics-body="years"] .had-advanced-year-bars{
  height:100%;
  min-height:112px;
  align-items:flex-end;
  gap:10px;
  padding:23px 7px 23px;
}
.had-type-persian-articles [data-had-persian-analytics-body="years"] .had-advanced-year-bars>span{height:100%}
.had-type-persian-articles [data-had-persian-analytics-body="years"] .had-advanced-year-bars i{
  width:min(34px,74%);
  height:100%;
  min-height:78px;
}
.had-type-persian-articles [data-had-persian-analytics-body="years"] .had-advanced-year-bars i b{min-height:12px}

/* Editorial annual service: retain visible four-digit years directly beneath every column. */
.had-type-editorial-referee .had-editorial-year{
  min-height:112px;
  align-items:stretch;
}
.had-type-editorial-referee [data-had-editorial-analytics-body="years"]{
  min-height:108px;
  overflow:visible;
}
.had-type-editorial-referee [data-had-editorial-analytics-body="years"] .had-advanced-year-bars{
  min-height:108px;
  padding:22px 5px 29px;
  overflow:visible;
}
.had-type-editorial-referee [data-had-editorial-analytics-body="years"] .had-advanced-year-bars small{
  bottom:-21px;
  color:#9eb9c5;
  font-size:12px!important;
  line-height:1;
}

/* Blog archive: long subjects stay inside the analytics panel. */
.had-type-blog [data-had-blog-analytics-body="themes"]{
  height:calc(100% - 39px);
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  padding:7px 4px 10px 0;
  scrollbar-width:thin;
  scrollbar-color:#326b82 transparent;
}
.had-type-blog [data-had-blog-analytics-body="themes"] .had-metric-bars{
  align-content:start;
  gap:8px;
}
.had-type-blog [data-had-blog-analytics-body="themes"] .had-metric-bars>div{min-height:29px}
.had-type-blog [data-had-blog-analytics-body="themes"] .had-metric-bars>div>span b{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

@media (min-width:901px) and (max-height:820px){
  .had-home-screen .had-micro-chart{min-height:70px;padding-top:23px}
  .had-type-conferences [data-had-conference-analytics-body="profile"]>.had-mini-year-bars{height:112px;min-height:112px}
  .had-type-persian-articles [data-had-persian-analytics-body="years"]{min-height:100px}
  .had-type-persian-articles [data-had-persian-analytics-body="years"] .had-advanced-year-bars{min-height:96px;padding-top:20px}
}
