/* Gematrixx V77 — Quran root morphology grouped research view */
#rootBreakdown .root-breakdown-live .rb-list{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:8px 10px;
}
#rootBreakdown .rb-line.rb-info{
  cursor:default;
  user-select:text;
}
#rootBreakdown .rb-line.rb-jump{
  width:100%;
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  text-align:right;
}
#rootBreakdown .rb-line.rb-jump:hover,
#rootBreakdown .rb-line.rb-jump:focus-visible,
#rootBreakdown .rb-line.rb-jump.active{
  border-color:var(--gold2);
  background:color-mix(in srgb,var(--gold2) 12%,var(--panel,#15120e));
}
#rootBreakdown .rb-line.rb-jump.rb-disabled{
  opacity:.48;
  cursor:not-allowed;
}
#rootBreakdown .rb-jump-arrow{
  color:var(--gold2);
  flex:0 0 auto;
  font-weight:800;
}
#rootBreakdown .rb-filter-count{
  margin-inline-start:auto;
  color:var(--txt3);
  font-size:.7rem;
  white-space:nowrap;
}
#rootBreakdown .rb-source{
  margin-top:10px;
  font-size:.72rem;
  color:var(--txt3);
  text-align:center;
}
#rootBreakdown .rb-source a{color:var(--cyan);text-decoration:none}
#rootBreakdown .rb-source a:hover{text-decoration:underline}

.root-morph-wrap{overflow-x:auto;overscroll-behavior-inline:contain}
.root-morph-table{min-width:1040px}
.root-morph-section-row>td{
  padding:12px 8px 7px!important;
  border-bottom:0!important;
  background:transparent!important;
}
.root-morph-section{
  scroll-margin-top:110px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border:1px solid color-mix(in srgb,var(--gold2) 56%,transparent);
  border-radius:12px;
  background:linear-gradient(135deg,color-mix(in srgb,var(--gold2) 11%,var(--panel,#15120e)),var(--panel,#15120e));
  box-shadow:0 5px 18px rgba(0,0,0,.11);
}
.root-morph-section>div:first-child{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.root-morph-section strong{color:var(--gold2);font-size:1rem}
.root-morph-section span{color:var(--txt3);font-size:.75rem}
.root-morph-section button{
  flex:0 0 auto;
  border:1px solid var(--line);
  border-radius:9px;
  padding:6px 10px;
  background:var(--panel2,var(--panel,#15120e));
  color:var(--txt2);
  cursor:pointer;
}
.root-morph-section button:hover{border-color:var(--gold2);color:var(--gold2)}
.root-occ-badge{
  display:inline-flex;
  margin-inline-start:7px;
  padding:1px 6px;
  border-radius:999px;
  border:1px solid color-mix(in srgb,var(--cyan) 45%,transparent);
  color:var(--cyan);
  font:700 .65rem/1.4 system-ui,sans-serif;
  vertical-align:middle;
}
.root-morph-loading,.root-morph-end{color:var(--txt3);font-size:.75rem}
.root-morph-flash{
  animation:rootMorphFlash 1.15s ease-out;
}
@keyframes rootMorphFlash{
  0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--gold2) 70%,transparent)}
  45%{box-shadow:0 0 0 5px color-mix(in srgb,var(--gold2) 24%,transparent)}
  100%{box-shadow:0 0 0 0 transparent}
}

@media(max-width:700px){
  #rootBreakdown .root-breakdown-live .rb-list{grid-template-columns:1fr}
  #rootBreakdown .rb-line.rb-jump{min-height:50px;padding:10px 11px}
  .root-morph-section-row>td{padding:10px 5px 6px!important}
  .root-morph-section{scroll-margin-top:92px;padding:10px 11px;align-items:flex-start}
  .root-morph-section>div:first-child{gap:4px;flex-direction:column}
  .root-morph-section strong{font-size:.94rem}
  .root-morph-section button{padding:6px 8px;font-size:.72rem}
  .root-morph-table{min-width:940px}
}
