/* ============================================================
   MEDVYRA — shared picker list.
   One row style for every "choose something" screen:
     · qbank.html  .bank      (the all-qbanks list — the reference)
     · qbank subject list     .list-item
     · qbank topic/module     .grid-item
     · GT Collection papers   .gtc-pick
   Layout: left accent bar · icon · title + subtitle · chevron.
   Loaded after the page's own CSS so it wins without !important.
   ============================================================ */

/* one column, generous rows — the same rhythm everywhere */
.mv-list{display:flex;flex-direction:column;gap:11px;margin-top:6px}

.list-item,
.grid-item,
.gtc-pick{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  gap:13px !important;
  width:100%;
  min-height:64px;
  padding:15px 16px !important;
  text-align:left;
  font-family:inherit;
  font-size:14.5px !important;
  font-weight:700 !important;
  color:var(--ink,#12304f) !important;
  background:#fff !important;
  border:1px solid var(--line,#e3ebf3) !important;
  border-left:4px solid var(--brand,#2d70b6) !important;
  border-radius:14px !important;
  box-shadow:0 1px 3px rgba(16,32,56,.05) !important;
  cursor:pointer;
  transition:box-shadow .17s ease,transform .17s ease,border-color .17s ease !important;
  position:relative;
  overflow:hidden;
}
.list-item:hover,
.grid-item:hover,
.gtc-pick:hover{
  transform:translateY(-1px) !important;
  box-shadow:0 8px 22px rgba(45,112,182,.13) !important;
  border-color:var(--line,#e3ebf3) !important;
  border-left-color:var(--brand,#2d70b6) !important;
  background:#fff !important;
}
.list-item:active,
.grid-item:active,
.gtc-pick:active{transform:none !important;background:#f8fbfd !important}

/* the count / meta chip sits at the right, before the chevron */
.list-item .n,
.grid-item .n{
  margin-left:auto;
  flex:0 0 auto;
  font-size:11.5px !important;
  font-weight:700 !important;
  color:var(--ink2,#3d5a75) !important;
  background:#eef3f9 !important;
  border:1px solid #dbe7f2 !important;
  padding:4px 10px !important;
  border-radius:999px !important;
  white-space:nowrap;
}

/* topic rows keep their hidden-in-plain-sight qid, but small and quiet */
.grid-item .tqid{
  display:block !important;
  font-size:10px !important;
  color:rgba(18,18,16,.26) !important;
  font-weight:600 !important;
  letter-spacing:.3px;
  margin-top:4px !important;
  user-select:none;
}

/* the title block inside a topic row must stack */
.grid-item{
  flex-wrap:wrap;
}
.grid-item .tqid{width:100%}

/* completed module keeps a green rail, not a green wash */
.grid-item.done{
  border-left-color:#1f9d61 !important;
  background:#fff !important;
}
.grid-item.done .n{
  color:#0d6a3c !important;
  background:#e8f8ee !important;
  border-color:#c4e9d3 !important;
}

/* GT rows: the row itself is already flex — just join the same family */
.gtc-pick{border-left-width:4px !important}
.gtc-pick .gtc-cta-slot{margin-left:auto}

/* the topic screen is a GRID on the page — force it to the same single
   column list so subject / topic / GT all read as one family */
.grid{
  display:flex !important;
  flex-direction:column !important;
  gap:11px !important;
  margin-top:6px;
}

/* year-group headers (Bone Marrow / PYQ banks group subjects by year) */
.yrhead{
  display:flex !important;
  align-items:center !important;
  gap:10px;
  margin:14px 0 2px !important;
  font-size:10.5px !important;
  font-weight:900 !important;
  letter-spacing:.13em !important;
  text-transform:uppercase !important;
  color:#8296aa !important;
}
.yrhead span{
  background:#eef3f9;
  border:1px solid #dbe7f2;
  padding:4px 11px;
  border-radius:999px;
}
.yrhead:first-child{margin-top:2px !important}

/* the trailing chevron, injected by CSS so no markup changes are needed */
.list-item::after,
.grid-item::after,
.gtc-pick::after{
  content:'›';
  margin-left:10px;
  flex:0 0 auto;
  font-size:19px;
  line-height:1;
  color:#a9b7c6;
  font-weight:400;
}
/* when a row carries its own action button, the chevron is redundant */
.gtc-pick::after{display:none}

/* the qbank list on small screens */
@media(max-width:430px){
  .list-item,.grid-item,.gtc-pick{
    min-height:60px;
    padding:13px 14px !important;
    font-size:14px !important;
    border-radius:13px !important;
  }
}
