/**
 * Version 3.0.1 layout corrections.
 * Loaded after all inherited theme styles.
 */

/* Home: remove dashboard chrome from the information architecture. */
.had-home-v301{
  display:grid!important;
  grid-template-rows:minmax(360px,auto) minmax(285px,auto) auto!important;
  gap:12px!important;
  overflow-y:auto!important;
}
.had-home-v301 .had-home-top{
  display:grid!important;
  grid-template-columns:minmax(520px,1.32fr) minmax(390px,.93fr) minmax(315px,.75fr)!important;
  gap:10px!important;
  min-height:360px;
}
.had-home-v301 .had-impact-stack{
  display:grid!important;
  grid-template-rows:1fr!important;
  min-height:360px;
}
.had-home-v301 .had-impact-stack .had-scholar-card{
  min-height:360px;
  height:100%;
  padding:15px 16px;
  grid-template-rows:auto auto minmax(150px,1fr) auto;
}
.had-home-v301 .had-impact-stack .had-scholar-card .had-panel-title{
  min-height:46px;
  padding-bottom:9px;
}
.had-home-v301 .had-impact-stack .had-scholar-card h2{font-size:18px!important}
.had-home-v301 .had-impact-stack .had-scholar-kpis{padding:10px 0 8px}
.had-home-v301 .had-impact-stack .had-scholar-kpis b{font-size:22px!important}
.had-home-v301 .had-impact-stack .had-scholar-kpis small{font-size:12px!important}
.had-home-v301 .had-impact-stack .had-micro-chart{
  min-height:150px;
  padding:25px 8px 25px!important;
  gap:8px!important;
}
.had-home-v301 .had-impact-stack .had-micro-chart>i>em,
.had-home-v301 .had-impact-stack .had-micro-chart>i>small{font-size:11px!important}
.had-home-v301 .had-impact-stack .had-sync-line{display:flex!important;font-size:12px!important}

.had-home-reach{min-width:0;min-height:285px}
.had-home-reach .had-reach-card{
  width:100%;
  min-height:285px;
  padding:14px 16px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 220px;
  grid-template-rows:auto minmax(225px,1fr);
  gap:12px 16px;
  overflow:visible;
}
.had-home-reach .had-reach-head{
  grid-column:1/-1;
  min-height:45px;
  padding-bottom:9px;
}
.had-home-reach .had-reach-head h2{font-size:20px!important}
.had-home-reach .had-reach-head>span{font-size:12px}
.had-home-reach .had-reach-map{
  min-height:225px;
  border-color:#24566d;
  background:radial-gradient(circle at 52% 38%,rgba(34,211,238,.16),transparent 40%),#04141f;
}
.had-home-reach .had-reach-map>img{opacity:.96;filter:drop-shadow(0 0 12px rgba(34,211,238,.14))}
.had-home-reach .had-reach-dot{
  width:6px;
  height:6px;
  box-shadow:0 0 10px currentColor;
}
.had-home-reach .had-reach-dot>i{inset:-6px}
.had-home-reach .had-reach-dot>span{
  bottom:12px;
  max-width:190px;
  padding:7px 9px;
  font-size:12px;
}
.had-home-reach .had-reach-dot>span b{font-size:12px}
.had-home-reach .had-reach-metrics{
  min-height:225px;
  grid-template-rows:repeat(2,1fr);
  border-left:1px solid #1c465a;
  padding-left:16px;
}
.had-home-reach .had-reach-metrics>span{
  grid-template-columns:28px 1fr;
  column-gap:10px;
}
.had-home-reach .had-reach-metrics .dashicons{
  width:22px;
  height:22px;
  font-size:22px;
}
.had-home-reach .had-reach-metrics b{font-size:26px}
.had-home-reach .had-reach-metrics small{font-size:12px!important}

/* Publications: use normal document flow and explicit auto-sized rows. */
.had-publications-v301{overflow-y:auto!important}
.had-publications-v301 .had-publications-layout{
  align-items:start;
  grid-template-columns:minmax(0,1.55fr) minmax(360px,.55fr)!important;
}
.had-publications-v301 .had-publication-dashboard{
  display:block!important;
  height:auto!important;
  min-height:0!important;
  overflow:visible!important;
  padding:16px!important;
}
.had-publications-v301 .had-publication-section{
  display:block;
  min-width:0;
}
.had-publications-v301 .had-publication-section + .had-publication-section{
  margin-top:20px;
  padding-top:18px;
  border-top:1px solid #1b465b;
}
.had-publications-v301 .had-publication-card-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:none!important;
  grid-auto-rows:minmax(165px,auto)!important;
  gap:11px!important;
  min-height:0!important;
  height:auto!important;
  padding-top:11px!important;
  overflow:visible!important;
}
.had-publications-v301 .had-publication-card-grid .had-dashboard-card{
  grid-column:auto!important;
  grid-row:auto!important;
  position:relative!important;
  inset:auto!important;
  min-height:165px!important;
  height:auto!important;
  padding:16px!important;
  opacity:1!important;
  transform:none;
}
.had-publications-v301 .had-publication-card-grid .had-dashboard-card:hover{transform:translateY(-2px)}
.had-publications-v301 .had-publication-card-grid .had-dashboard-card h3{
  min-height:38px;
  height:auto!important;
  margin:10px 0 8px!important;
  font-size:15px!important;
  line-height:1.28;
}
.had-publications-v301 .had-publication-card-grid .had-spark-bars{
  height:50px!important;
  margin-top:12px!important;
}
.had-publications-v301 .had-publication-card-grid .had-dashboard-card>p{
  min-height:32px;
  font-size:12px!important;
}
.had-publications-v301 .had-latest-list{
  position:sticky;
  top:0;
  min-height:610px;
  max-height:calc(100dvh - 155px);
}
.had-publications-v301 .had-latest-list .had-record-row b{font-size:13px}
.had-publications-v301 .had-latest-list .had-record-row em{font-size:12px}

/* Research: the researcher's actual role dates determine the grouping. */
.had-research-v301 .had-research-layout{
  grid-template-columns:minmax(0,1fr) minmax(290px,.28fr)!important;
  align-items:start;
}
.had-research-v301 .had-project-grid{
  display:grid!important;
  grid-template-rows:none!important;
  grid-auto-rows:auto!important;
}
.had-research-v301 .had-project-group-current .had-project-grid,
.had-research-v301 .had-project-group-scheduled .had-project-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
.had-research-v301 .had-project-group-completed .had-project-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.had-research-v301 .had-project-card,
.had-research-v301 .had-project-card:nth-child(n){
  grid-column:auto!important;
  grid-row:auto!important;
  min-height:285px!important;
  height:auto!important;
}
.had-research-v301 .had-project-group-completed .had-project-card{min-height:270px!important}
.had-research-v301 .had-project-card h3{
  min-height:66px;
  font-size:18px;
}
.had-research-v301 .had-project-card>p{-webkit-line-clamp:4}
.had-research-v301 .had-project-meta{gap:12px;align-items:flex-start}
.had-research-v301 .had-project-meta b{max-width:72%;font-size:12px!important}
.had-research-v301 .had-project-role{min-height:36px}
.had-research-v301 .had-project-card .had-tag-row{margin-top:auto;padding-top:10px}
.had-research-v301 .had-research-side{position:sticky;top:0}

@media(max-width:1350px){
  .had-home-v301 .had-home-top{
    grid-template-columns:minmax(440px,1.18fr) minmax(340px,.9fr) minmax(285px,.72fr)!important;
  }
  .had-research-v301 .had-project-group-completed .had-project-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .had-research-v301 .had-project-group-completed .had-project-card:last-child{grid-column:1/-1!important}
}

@media(max-width:1100px){
  .had-home-v301{grid-template-rows:auto auto auto!important}
  .had-home-v301 .had-home-top{grid-template-columns:1fr 1fr!important}
  .had-home-v301 .had-impact-stack{grid-column:1/-1;min-height:300px}
  .had-home-v301 .had-impact-stack .had-scholar-card{min-height:300px}
  .had-publications-v301 .had-publications-layout,
  .had-research-v301 .had-research-layout{grid-template-columns:1fr!important}
  .had-publications-v301 .had-latest-list,
  .had-research-v301 .had-research-side{position:static;max-height:none}
  .had-research-v301 .had-research-side{grid-template-columns:1fr 1fr}
}

@media(max-width:900px){
  .had-home-v301{display:block!important}
  .had-home-v301 .had-home-top{display:grid!important;grid-template-columns:1fr!important}
  .had-home-v301 .had-impact-stack{grid-column:auto;min-height:275px}
  .had-home-v301 .had-impact-stack .had-scholar-card{min-height:275px}
  .had-home-reach .had-reach-card{grid-template-columns:1fr;grid-template-rows:auto 250px auto}
  .had-home-reach .had-reach-metrics{grid-template-columns:1fr 1fr;grid-template-rows:1fr;border-left:0;border-top:1px solid #1c465a;padding:10px 0 0}
  .had-home-reach .had-reach-metrics>span{border-bottom:0;border-right:1px solid #173b4e}
  .had-home-reach .had-reach-metrics>span:last-child{border-right:0}
  .had-publications-v301 .had-publication-card-grid,
  .had-research-v301 .had-project-group-current .had-project-grid,
  .had-research-v301 .had-project-group-scheduled .had-project-grid,
  .had-research-v301 .had-project-group-completed .had-project-grid,
  .had-research-v301 .had-research-side{grid-template-columns:1fr!important}
  .had-research-v301 .had-project-group-completed .had-project-card:last-child{grid-column:auto!important}
}

@media(max-width:560px){
  .had-home-reach .had-reach-card{padding:12px;grid-template-rows:auto 210px auto}
  .had-home-reach .had-reach-metrics{grid-template-columns:1fr;gap:0}
  .had-home-reach .had-reach-metrics>span{min-height:80px;border-right:0;border-bottom:1px solid #173b4e}
  .had-publications-v301 .had-publication-card-grid{grid-template-columns:1fr!important}
}

/* Purpose-built publication cards: actual active years, not a fixed recent window. */
.had-publications-v301 .had-publication-overview-card{
  --card-accent:var(--had-cyan);
  min-width:0;
  min-height:190px;
  display:grid;
  grid-template-rows:auto auto minmax(76px,1fr) auto;
  gap:8px;
  padding:16px;
  position:relative;
  overflow:hidden;
  border:1px solid #24536b;
  border-radius:8px;
  background:linear-gradient(145deg,rgba(11,38,55,.96),rgba(3,14,24,.97));
  color:inherit;
  text-decoration:none;
  transition:border-color .2s,transform .2s,box-shadow .2s;
}
.had-publications-v301 .had-publication-overview-card:hover,
.had-publications-v301 .had-publication-overview-card:focus-visible{
  border-color:var(--card-accent);
  transform:translateY(-2px);
  box-shadow:0 12px 30px rgba(0,0,0,.25);
  outline:none;
}
.had-publications-v301 .had-publication-overview-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.had-publications-v301 .had-publication-overview-head>span{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border:1px solid color-mix(in srgb,var(--card-accent) 60%,transparent);
  color:var(--card-accent);
}
.had-publications-v301 .had-publication-overview-head .dashicons{
  width:17px;
  height:17px;
  font-size:17px;
}
.had-publications-v301 .had-publication-overview-head>b{
  color:var(--card-accent);
  font:300 25px ui-monospace,monospace;
}
.had-publications-v301 .had-publication-overview-card h3{
  min-height:38px;
  margin:0;
  color:#eef8fb;
  font-size:15px;
  line-height:1.28;
}
.had-publications-v301 .had-publication-year-chart{
  min-height:76px;
  display:flex;
  align-items:end;
  gap:8px;
  padding:14px 2px 20px;
  border-bottom:1px solid #173b4e;
}
.had-publications-v301 .had-publication-year-chart>span{
  min-width:0;
  height:62px;
  flex:1;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-direction:column;
  position:relative;
}
.had-publications-v301 .had-publication-year-chart i{
  width:min(18px,72%);
  min-height:6px;
  display:block;
  background:linear-gradient(180deg,var(--card-accent),color-mix(in srgb,var(--card-accent) 55%,#b999ff));
  box-shadow:0 0 9px color-mix(in srgb,var(--card-accent) 25%,transparent);
}
.had-publications-v301 .had-publication-year-chart em{
  margin-bottom:4px;
  color:var(--card-accent);
  font:700 11px ui-monospace,monospace;
  font-style:normal;
}
.had-publications-v301 .had-publication-year-chart small{
  position:absolute;
  bottom:-18px;
  color:#718e9d;
  font:11px ui-monospace,monospace;
}
.had-publications-v301 .had-publication-overview-card>p{
  min-width:0;
  margin:0;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) 18px;
  align-items:center;
  gap:7px;
  color:#7f9daa;
}
.had-publications-v301 .had-publication-overview-card>p em{
  color:var(--card-accent);
  font:700 12px ui-monospace,monospace;
  font-style:normal;
}
.had-publications-v301 .had-publication-overview-card>p span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
}
.had-publications-v301 .had-publication-overview-card>p .dashicons{
  color:var(--card-accent);
  font-size:16px;
}
