
/* ========================================================================
   PlantGraft Atlas · Global UI Polish v1
   Scope: public PlantGraft pages only
   Does not modify data, API logic, analysis logic or JBrowse internals
   ======================================================================== */

:root{
  --pg-green:#246548;
  --pg-green-dark:#183b2b;
  --pg-green-soft:#eef6f1;
  --pg-green-softer:#f6faf7;

  --pg-text:#203329;
  --pg-muted:#64766d;
  --pg-line:#d5e2d9;
  --pg-line-soft:#e5ece7;

  --pg-panel:#ffffff;
  --pg-bg:#f5f8f6;

  --pg-radius:14px;
  --pg-radius-lg:18px;

  --pg-shadow:
    0 1px 2px rgba(20,55,38,.025),
    0 8px 26px rgba(20,55,38,.035);
}


/* ========================================================================
   A. GLOBAL TYPOGRAPHY / SHELL
   ======================================================================== */

html{
  -webkit-text-size-adjust:100%;
}

body{
  color:var(--pg-text);
  font-size:16px;
  line-height:1.58;
}

.wrap{
  max-width:1480px;
}

.topbar .inner{
  min-height:66px;
}

.brand{
  font-size:24px;
  line-height:1;
  font-weight:800;
  letter-spacing:-.35px;
}

.brand small{
  font-size:11px;
  margin-left:8px;
  letter-spacing:.15em;
  text-transform:uppercase;
}

.nav{
  gap:22px;
}

.nav a{
  font-size:14px;
  font-weight:650;
  padding-top:22px;
  padding-bottom:22px;
}

.nav a:hover{
  color:var(--pg-green);
}


/* ========================================================================
   B. PAGE HERO
   ======================================================================== */

.pagehero{
  padding-top:46px;
  padding-bottom:42px;
}

.pagehero .eyebrow{
  font-size:13px;
  line-height:1.3;
  font-weight:760;
  letter-spacing:.16em;
  text-transform:uppercase;
  margin-bottom:10px;
}

.pagehero h1,
.pagehero > .wrap > heading{
  display:block;
  font-size:46px;
  line-height:1.08;
  letter-spacing:-.55px;
  margin:0 0 16px;
}

.pagehero p{
  max-width:1000px;
  font-size:17.5px;
  line-height:1.65;
}

.section-head h2,
.section-head .heading{
  font-size:27px;
  line-height:1.24;
  letter-spacing:-.25px;
}

.section-head p,
.meta{
  font-size:14px;
  line-height:1.55;
}


/* ========================================================================
   C. PANELS / CARDS
   ======================================================================== */

.info-panel,
.content-panel,
.card,
.browse-card,
.about-card,
.resource,
.study-mini-card,
.family-card,
.gene-panel,
.detail,
.pub-card{
  border-radius:var(--pg-radius);
}

.info-panel,
.content-panel,
.about-card,
.family-card,
.gene-panel,
.detail{
  padding:24px 26px;
}

.info-panel,
.content-panel,
.card,
.about-card,
.resource,
.study-mini-card,
.family-card,
.gene-panel,
.detail,
.pub-card{
  border-color:var(--pg-line);
}

.info-panel h2,
.content-panel h2,
.card h2,
.detail h2,
.gene-panel h2,
.family-card h2{
  font-size:24px;
  line-height:1.28;
}

.info-panel h3,
.content-panel h3,
.card h3,
.detail h3,
.gene-panel h3,
.family-card h3,
.about-card h3{
  font-size:20px;
  line-height:1.32;
}

.info-panel p,
.content-panel p,
.card p,
.detail p,
.gene-panel p,
.family-card p{
  font-size:15px;
  line-height:1.68;
}

.info-panel li,
.content-panel li,
.card li,
.detail li,
.gene-panel li,
.family-card li,
.about-card li{
  line-height:1.62;
}


/* subtle hover only for genuinely clickable card-like elements */
a.browse-card,
a.resource,
a.study-mini-card,
a.tool{
  transition:
    transform .14s ease,
    background-color .14s ease,
    border-color .14s ease,
    box-shadow .14s ease;
}

a.browse-card:hover,
a.resource:hover,
a.study-mini-card:hover,
a.tool:hover{
  transform:translateY(-1px);
  background:var(--pg-green-softer);
  border-color:#c8dbcf;
  box-shadow:var(--pg-shadow);
}


/* ========================================================================
   D. GRIDS / SPACING
   ======================================================================== */

.home-grid,
.browse-grid,
.study-grid,
.resource-grid,
.toolgrid,
.kpi-grid,
.big-stats,
.study-mini,
.about-grid,
.response-grid{
  gap:16px;
}

.info-shell,
.catalog-shell,
.ev-shell,
.tools-shell{
  padding-top:38px;
  padding-bottom:50px;
}


/* ========================================================================
   E. BUTTONS / INPUTS / FORMS
   ======================================================================== */

button,
.btn,
a.btn{
  min-height:42px;
  padding:10px 17px;
  border-radius:10px;
  font-size:14px;
  font-weight:700;
}

input[type="text"],
input[type="search"],
input[type="number"],
input[type="email"],
select,
textarea,
.textbox,
.listbox{
  min-height:42px;
  padding:10px 12px;
  border-radius:9px;
  font-size:14px;
  line-height:1.45;
}

textarea{
  min-height:130px;
  resize:vertical;
}

input:focus,
select:focus,
textarea:focus{
  outline:2px solid rgba(53,117,82,.14);
  outline-offset:1px;
  border-color:#72a68a;
}


/* ========================================================================
   F. CATALOG / FILTER TOOLBARS
   Studies · Evidence · Samples · Families · Pairs
   ======================================================================== */

.catalog-toolbar,
.ev-filters,
.catalog-actions,
.ev-controls{
  gap:10px;
}

.catalog-toolbar,
.ev-filters{
  padding:14px;
  border-radius:12px;
}

.catalog-tabs{
  gap:8px;
}

.catalog-kpis,
.ev-kpis{
  gap:12px;
}

.catalog-kpi,
.ev-kpi{
  padding:14px 16px;
  border-radius:12px;
}

.catalog-kpi b,
.ev-kpi b{
  font-size:22px;
}

.catalog-kpi span,
.ev-kpi span{
  font-size:12.5px;
}


/* ========================================================================
   G. TABLES
   ======================================================================== */

table{
  font-size:13.5px;
}

th{
  padding:12px 11px;
  font-size:12px;
  line-height:1.3;
  letter-spacing:.055em;
}

td{
  padding:12px 11px;
  line-height:1.45;
}

tbody tr{
  transition:background-color .12s ease;
}

tbody tr:hover{
  background:#f5f9f6;
}

.catalog-table,
.ev-table,
.download-table,
.stat-table,
.cross-study-table{
  border-radius:12px;
}

.pill{
  padding:5px 9px;
  border-radius:999px;
  font-size:11.5px;
  font-weight:700;
  line-height:1.2;
}


/* ========================================================================
   H. STATISTICS / KPI PAGES
   ======================================================================== */

.big-stat,
.kpi{
  border-radius:13px;
}

.big-stat{
  min-height:94px;
  padding:16px 17px;
}

.big-stat b{
  font-size:29px;
  line-height:1.08;
}

.big-stat span{
  font-size:12.5px;
  margin-top:7px;
}

.kpi{
  min-height:82px;
  padding:15px 16px;
}

.kpi b{
  font-size:24px;
  line-height:1.1;
}

.kpi span{
  font-size:12.5px;
  line-height:1.4;
}


/* ========================================================================
   I. RESOURCE / DETAIL PAGES
   Study · Species · Gene · Family · Orthogroup · Functional
   ======================================================================== */

.resource{
  padding:16px 17px;
}

.resource b,
.resource strong{
  font-size:15px;
}

.resource span,
.resource small{
  font-size:12.5px;
}

.detail,
.gene-panel,
.family-card,
#speciesPanel,
.func-results{
  margin-bottom:18px;
}

.detail h2,
.gene-panel h2,
.family-card h2,
#speciesPanel h2,
.func-results h2{
  margin-top:0;
}

.cross-study-link{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:8px 12px;
  border:1px solid var(--pg-line);
  border-radius:9px;
  background:var(--pg-green-softer);
  font-size:13.5px;
  font-weight:700;
  text-decoration:none;
}


/* ========================================================================
   J. SPECIES SIDE NAV
   ======================================================================== */

#speciesNav{
  gap:7px;
}

#speciesNav button,
.species-nav button{
  min-height:40px;
  padding:9px 11px;
  border-radius:9px;
  text-align:left;
  font-size:13.5px;
}


/* ========================================================================
   K. TOOLS
   ======================================================================== */

.tool{
  min-height:80px;
  padding:16px 17px;
  border-radius:12px;
}

.tool b{
  font-size:15px;
  line-height:1.3;
}

.tool span{
  font-size:12.5px;
  line-height:1.45;
}

.pgf-input,
.response-panel{
  padding:20px;
  border-radius:13px;
}

.pgf-results,
#cross-study-results{
  margin-top:18px;
}


/* ========================================================================
   L. DOWNLOAD
   ======================================================================== */

.pg-page-download table{
  font-size:14px;
}

.pg-page-download th{
  font-size:12.5px;
  padding:13px 12px;
}

.pg-page-download td{
  font-size:14px;
  padding:14px 12px;
}

.pg-page-download td:first-child{
  font-size:14.5px;
}

.pg-page-download .download-group{
  margin-top:24px;
}


/* ========================================================================
   M. DOCUMENTATION
   ======================================================================== */

.pg-page-docs #docContent{
  font-size:15.5px;
}

.pg-page-docs #docContent p,
.pg-page-docs #docContent li{
  font-size:15.5px;
  line-height:1.72;
}

.pg-page-docs #docNav a{
  font-size:14px;
}

.pg-page-docs #citation .citebox{
  font-size:15px;
}


/* ========================================================================
   N. ABOUT
   ======================================================================== */

.pg-page-about .about-lead{
  font-size:17px;
  line-height:1.68;
}

.pg-page-about .pipeline-strip{
  gap:14px;
}

.pg-page-about .pipeline-step b{
  font-size:14px;
}

.pg-page-about .pipeline-step span{
  font-size:12.5px;
}

.pg-page-about .about-card{
  padding:23px 24px;
}

.pg-page-about .about-card li{
  font-size:14.5px;
}


/* ========================================================================
   O. BROWSE
   ======================================================================== */

.pg-page-browse .browse-card{
  padding:22px;
  min-height:175px;
}

.pg-page-browse .browse-card h2,
.pg-page-browse .browse-card h3,
.pg-page-browse .browse-card .heading{
  font-size:21px;
  line-height:1.28;
}

.pg-page-browse .browse-card p,
.pg-page-browse .browse-card .meta{
  font-size:14px;
  line-height:1.55;
}


/* ========================================================================
   P. CROSS-STUDY / RESPONSE / CANDIDATE PAGES
   ======================================================================== */

.pg-page-cross-study .info-panel,
.pg-page-responses .response-panel,
.pg-page-candidates .info-panel,
.pg-page-conserved-families .info-panel{
  padding:23px 24px;
}

.pg-page-cross-study table,
.pg-page-responses table,
.pg-page-candidates table,
.pg-page-conserved-families table{
  font-size:13.5px;
}


/* ========================================================================
   Q. STATIC / REFERENCE PAGES
   ======================================================================== */

.pg-page-functional-landscape-v340 main,
.pg-page-architecture main{
  font-size:15px;
  line-height:1.68;
}

.pg-page-functional-landscape-v340 h2,
.pg-page-architecture h2{
  font-size:25px;
}


/* ========================================================================
   R. MOBILE / TABLET
   ======================================================================== */

@media(max-width:1050px){

  .wrap{
    width:min(100% - 34px,1480px);
  }

  .pagehero h1,
  .pagehero > .wrap > heading{
    font-size:40px;
  }

  .nav{
    gap:14px;
  }

  .catalog-toolbar,
  .ev-filters{
    display:flex;
    flex-wrap:wrap;
  }

  .catalog-toolbar > *,
  .ev-filters > *{
    flex:1 1 180px;
  }

  .about-grid,
  .home-grid{
    grid-template-columns:1fr;
  }
}


@media(max-width:760px){

  .topbar .inner{
    min-height:58px;
  }

  .brand{
    font-size:20px;
  }

  .nav{
    overflow-x:auto;
    white-space:nowrap;
    -webkit-overflow-scrolling:touch;
  }

  .nav a{
    padding-top:18px;
    padding-bottom:18px;
    font-size:12.5px;
  }

  .pagehero{
    padding-top:32px;
    padding-bottom:28px;
  }

  .pagehero h1,
  .pagehero > .wrap > heading{
    font-size:34px;
  }

  .pagehero p{
    font-size:15px;
  }

  .info-panel,
  .content-panel,
  .card,
  .about-card,
  .family-card,
  .gene-panel,
  .detail{
    padding:18px;
  }

  .browse-grid,
  .study-grid,
  .resource-grid,
  .toolgrid,
  .kpi-grid,
  .big-stats,
  .study-mini,
  .response-grid{
    grid-template-columns:1fr;
  }

  .pg-page-about .pipeline-strip{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .catalog-actions,
  .ev-controls{
    flex-wrap:wrap;
  }

  button,
  .btn,
  a.btn{
    min-height:42px;
  }

  /* Wide data tables remain horizontally scrollable rather than crushing text */
  .catalog-table,
  .ev-table,
  .download-table,
  .stat-table,
  .cross-study-table{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
}


/* ========================================================================
   S. ACCESSIBILITY / MOTION
   ======================================================================== */

@media(prefers-reduced-motion:reduce){
  *,
  *::before,
  *::after{
    scroll-behavior:auto !important;
    transition:none !important;
    animation:none !important;
  }
}
























/* ===== PlantGraft STUDIES FINAL BALANCE START ===== */


/* ---------- PAGE WIDTH ---------- */

.pg-page-studies .catalog-shell > .wrap,
.pg-page-studies main > .wrap{
  width:min(94vw,1580px) !important;
  max-width:1580px !important;
}


/* ---------- HERO ---------- */

.pg-page-studies .pagehero{
  padding-top:58px !important;
  padding-bottom:40px !important;
}

.pg-page-studies .pagehero h1{
  font-size:46px !important;
  line-height:1.08 !important;
}

.pg-page-studies .pagehero p{
  font-size:17px !important;
  line-height:1.6 !important;
}


/* ---------- TABS ---------- */

.pg-page-studies .catalog-tabs button,
.pg-page-studies .catalog-tabs a{
  font-size:14px !important;
  min-height:40px !important;
  padding:9px 15px !important;
}


/* ---------- KPI CARDS ---------- */

.pg-page-studies .catalog-kpis{
  gap:14px !important;
  margin-bottom:22px !important;
}

.pg-page-studies .catalog-kpi{
  min-height:96px !important;
  padding:17px 18px !important;
}

.pg-page-studies .catalog-kpi b,
.pg-page-studies .catalog-kpi .number{
  font-size:27px !important;
  line-height:1.05 !important;
}

.pg-page-studies .catalog-kpi span,
.pg-page-studies .catalog-kpi p,
.pg-page-studies .catalog-kpi .label{
  font-size:13.5px !important;
  line-height:1.45 !important;
  margin-top:7px !important;
}


/* ---------- FILTER BAR ---------- */

.pg-page-studies .catalog-toolbar{
  display:grid !important;
  grid-template-columns:
    minmax(290px,1.8fr)
    repeat(4,minmax(145px,1fr)) !important;
  gap:11px !important;
  padding:0 !important;
  margin-bottom:16px !important;
  background:transparent !important;
}

.pg-page-studies .catalog-toolbar input,
.pg-page-studies .catalog-toolbar select{
  width:100% !important;
  min-height:44px !important;
  padding:9px 12px !important;
  font-size:14px !important;
}


/* ---------- ACTION / PAGINATION BAR ---------- */

.pg-page-studies .catalog-actions{
  min-height:44px !important;
  margin:3px 0 10px !important;
  gap:9px !important;
  font-size:13px !important;
}

.pg-page-studies .catalog-actions span,
.pg-page-studies .catalog-actions label{
  font-size:13px !important;
}

.pg-page-studies .catalog-actions button,
.pg-page-studies .catalog-actions select{
  min-height:40px !important;
  font-size:13px !important;
  padding:8px 11px !important;
}


/* =========================================================
   TABLE
   ========================================================= */

.pg-page-studies .catalog-table{
  width:100% !important;
  overflow:auto !important;
  border-radius:13px !important;
}

.pg-page-studies .catalog-table table{
  width:100% !important;
  min-width:1360px !important;
  table-layout:auto !important;
}


/* ---------- HEADERS ---------- */

.pg-page-studies .catalog-table th{
  padding:13px 12px !important;
  font-size:14px !important;
  line-height:1.3 !important;
  font-weight:750 !important;
  letter-spacing:.05em !important;
  white-space:nowrap !important;
}


/* ---------- ALL BODY CELLS ---------- */

.pg-page-studies .catalog-table td{
  padding:16px 12px !important;
  font-size:15px !important;
  line-height:1.5 !important;
  vertical-align:top !important;
  min-height:unset !important;
}


/* IMPORTANT:
   reset all bold/strong elements to same coherent scale
*/
.pg-page-studies .catalog-table td b,
.pg-page-studies .catalog-table td strong{
  font-size:15.5px !important;
  line-height:1.4 !important;
  font-weight:720 !important;
}


/* ---------- STUDY ---------- */

.pg-page-studies .catalog-table td:first-child{
  min-width:175px !important;
}

.pg-page-studies .catalog-table td:first-child b,
.pg-page-studies .catalog-table td:first-child strong{
  font-size:14.5px !important;
}


/* ---------- BIOLOGICAL FOCUS ---------- */

.pg-page-studies .catalog-table td:nth-child(2){
  min-width:210px !important;
}


/* ---------- GRAFT DESIGN ---------- */

.pg-page-studies .catalog-table td:nth-child(3){
  min-width:220px !important;
  font-size:14.5px !important;
}

/* Kill the oversized Scion / Rootstock effect */
.pg-page-studies .catalog-table td:nth-child(3) b,
.pg-page-studies .catalog-table td:nth-child(3) strong{
  font-size:15.5px !important;
  line-height:1.45 !important;
}


/* ---------- TIME / TISSUE ---------- */

.pg-page-studies .catalog-table td:nth-child(4){
  min-width:185px !important;
}


/* ---------- DATA LAYER ---------- */

.pg-page-studies .catalog-table td:nth-child(5){
  min-width:190px !important;
}


/* ---------- STATUS ---------- */

.pg-page-studies .catalog-table td:nth-child(6){
  min-width:110px !important;
  font-size:16px !important;
}

.pg-page-studies .catalog-table td:nth-child(6) b,
.pg-page-studies .catalog-table td:nth-child(6) strong{
  font-size:16px !important;
}


/* ---------- SECONDARY TEXT ---------- */




/* ---------- TAGS ---------- */

.pg-page-studies .catalog-table .pill,
.pg-page-studies .catalog-table .badge,
.pg-page-studies .catalog-table .tag{
  font-size:13px !important;
  line-height:1.2 !important;
  padding:5px 9px !important;
}


/* ---------- OPEN ---------- */

.pg-page-studies .catalog-table th:last-child,
.pg-page-studies .catalog-table td:last-child{
  width:95px !important;
  min-width:95px !important;
  text-align:center !important;
}

.pg-page-studies .catalog-table td:last-child a,
.pg-page-studies .catalog-table td:last-child button{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;

  min-width:76px !important;
  min-height:40px !important;

  padding:8px 12px !important;

  font-size:15px !important;
  font-weight:700 !important;

  white-space:nowrap !important;
}


/* ---------- ROW RHYTHM ---------- */

.pg-page-studies .catalog-table tbody tr{
  height:auto !important;
  min-height:0 !important;
}

.pg-page-studies .catalog-table tbody tr:hover{
  background:#f4f8f5 !important;
}


/* ---------- TABLET ---------- */

@media(max-width:1100px){

  .pg-page-studies .catalog-toolbar{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }

  .pg-page-studies .catalog-toolbar > :first-child{
    grid-column:1/-1 !important;
  }

}


/* ---------- MOBILE ---------- */

@media(max-width:700px){

  .pg-page-studies .catalog-toolbar{
    grid-template-columns:1fr !important;
  }

  .pg-page-studies .catalog-toolbar > :first-child{
    grid-column:auto !important;
  }

  .pg-page-studies .catalog-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }

}



/* ---------- TRUE SECONDARY TEXT ---------- */

/* Species names, descriptions, tissue notes, raw-data note, core rank */
.pg-page-studies .catalog-table .sub{
  font-size:14px !important;
  line-height:1.5 !important;
  color:#63736a !important;
}

/* PGS0001 · P1 · etc. */
.pg-page-studies .catalog-table .study-code{
  font-size:13.5px !important;
  line-height:1.45 !important;
  color:#66766d !important;
  margin-top:7px !important;
}

/* Keep bold Scion / Rootstock hierarchy controlled */
.pg-page-studies .catalog-table .sub b,
.pg-page-studies .catalog-table .sub strong{
  font-size:15px !important;
  font-weight:700 !important;
  color:#617168 !important;
}

/* ---------- END TRUE SECONDARY TEXT ---------- */

/* ===== PlantGraft STUDIES FINAL BALANCE END ===== */





/* ========================================================================
   PlantGraft BROWSE SUBSYSTEM FINAL
   IMPORTANT:
   Study Catalog is intentionally excluded here because it already has
   its own STUDIES FINAL BALANCE block.
   ======================================================================== */










/* ===== PlantGraft THEMES CENTER FIX START ===== */

/*
  themes 页采用统一内容宽度。
  Hero、统计卡、theme map、详情、browser、matrix 都对齐到同一中轴。
*/

.pg-page-themes main{
  width:100% !important;
  max-width:none !important;
}


/* Hero */
.pg-page-themes .pagehero > .wrap{
  width:min(1180px, calc(100% - 48px)) !important;
  max-width:1180px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}


/* 所有主内容 section 的直属内容统一居中 */
.pg-page-themes main > section > .wrap,
.pg-page-themes main > section > .container,
.pg-page-themes main > section > .shell,
.pg-page-themes main > section > .inner,
.pg-page-themes main > section > .content,
.pg-page-themes main > section > div{
  width:min(1180px, calc(100% - 48px)) !important;
  max-width:1180px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  box-sizing:border-box !important;
}


/* 动态主题内容常见外层 */
.pg-page-themes .theme-shell,
.pg-page-themes .themes-shell,
.pg-page-themes .theme-content,
.pg-page-themes .themes-content,
.pg-page-themes .theme-browser,
.pg-page-themes .theme-browser-shell,
.pg-page-themes .browser-shell,
.pg-page-themes .theme-detail,
.pg-page-themes .theme-detail-shell,
.pg-page-themes .theme-map,
.pg-page-themes .theme-map-wrap{
  width:min(1180px, calc(100% - 48px)) !important;
  max-width:1180px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  box-sizing:border-box !important;
}


/*
  如果动态内容是 main 的直属 div，
  同样锁定统一宽度和中轴。
*/
.pg-page-themes main > div:not(.pagehero){
  width:min(1180px, calc(100% - 48px)) !important;
  max-width:1180px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  box-sizing:border-box !important;
}


/* 防止内部 panel 自己再次偏左 */
.pg-page-themes .info-panel,
.pg-page-themes .theme-panel,
.pg-page-themes .browser-panel,
.pg-page-themes .matrix-panel{
  width:100% !important;
  max-width:none !important;
  margin-left:auto !important;
  margin-right:auto !important;
}


/* 平板 */
@media(max-width:900px){

  .pg-page-themes .pagehero > .wrap,
  .pg-page-themes main > section > .wrap,
  .pg-page-themes main > section > .container,
  .pg-page-themes main > section > .shell,
  .pg-page-themes main > section > .inner,
  .pg-page-themes main > section > .content,
  .pg-page-themes main > section > div,
  .pg-page-themes main > div:not(.pagehero),
  .pg-page-themes .theme-shell,
  .pg-page-themes .themes-shell,
  .pg-page-themes .theme-content,
  .pg-page-themes .themes-content,
  .pg-page-themes .theme-browser,
  .pg-page-themes .theme-browser-shell,
  .pg-page-themes .browser-shell,
  .pg-page-themes .theme-detail,
  .pg-page-themes .theme-detail-shell,
  .pg-page-themes .theme-map,
  .pg-page-themes .theme-map-wrap{
    width:calc(100% - 32px) !important;
  }

}

/* ===== PlantGraft THEMES CENTER FIX END ===== */




/* ===== PlantGraft THEMES TRUE DOM TYPOGRAPHY START ===== */


/* =========================================================
   1. TOP KPI CARDS
   ========================================================= */

.pg-page-themes .theme-kpis{
  gap:14px !important;
  margin-bottom:16px !important;
}

.pg-page-themes .theme-kpi{
  min-height:94px !important;
  padding:18px 18px !important;
  border-radius:13px !important;
}

/* KPI number */
.pg-page-themes .theme-kpi .num,
.pg-page-themes .theme-kpi b,
.pg-page-themes .theme-kpi strong{
  font-size:27px !important;
  line-height:1.08 !important;
  font-weight:800 !important;
  color:#256246 !important;
}

/* KPI label */
.pg-page-themes .theme-kpi .label,
.pg-page-themes .theme-kpi small,
.pg-page-themes .theme-kpi span{
  font-size:13.5px !important;
  line-height:1.45 !important;
  color:#65756c !important;
}


/* =========================================================
   2. BIOLOGICAL THEME MAP
   ========================================================= */

.pg-page-themes .theme-map{
  gap:14px !important;
}

.pg-page-themes button.theme-card{
  padding:20px 21px !important;
  min-height:220px !important;
  border-radius:15px !important;
  text-align:left !important;
}

/* 01 / 02 / 03 */
.pg-page-themes .theme-card .theme-no{
  font-size:18px !important;
  line-height:1.2 !important;
  font-weight:800 !important;
  color:#367b59 !important;
  margin-bottom:9px !important;
}

/* Theme title */
.pg-page-themes .theme-card h3,
.pg-page-themes .theme-card .card-title{
  font-size:16px !important;
  line-height:1.38 !important;
  font-weight:800 !important;
  margin-bottom:9px !important;
}

/* Main description */
.pg-page-themes .theme-card .theme-desc{
  font-size:16px !important;
  line-height:1.58 !important;
  color:#65756c !important;
  font-weight:550 !important;
}

/* Count */
.pg-page-themes .theme-card .theme-count{
  font-size:16px !important;
  line-height:1.35 !important;
  font-weight:800 !important;
  color:#256246 !important;
  margin-top:13px !important;
}

/* publication-linked */
.pg-page-themes .theme-card .theme-pubs{
  font-size:14.5px !important;
  line-height:1.4 !important;
  color:#66766d !important;
}


/* =========================================================
   3. SELECTED THEME DETAIL
   ========================================================= */

.pg-page-themes .selected-grid{
  gap:16px !important;
}

.pg-page-themes .selected-box{
  padding:22px 23px !important;
  border-radius:15px !important;
}

.pg-page-themes .selected-box h2,
.pg-page-themes .selected-box h3{
  font-size:21px !important;
  line-height:1.3 !important;
  font-weight:800 !important;
  margin-bottom:11px !important;
}

/* rationale / normal paragraphs */
.pg-page-themes .selected-box p{
  font-size:15px !important;
  line-height:1.62 !important;
  color:#607168 !important;
}

.pg-page-themes .selected-box p b,
.pg-page-themes .selected-box p strong{
  font-size:15px !important;
  font-weight:800 !important;
}


/* =========================================================
   4. SELECTED THEME STAT CARDS
   ========================================================= */

.pg-page-themes .selected-stats{
  gap:10px !important;
  margin:15px 0 !important;
}

.pg-page-themes .selected-stat{
  padding:14px 15px !important;
  min-height:76px !important;
  border-radius:10px !important;
}

.pg-page-themes .selected-stat .stat-value,
.pg-page-themes .selected-stat b,
.pg-page-themes .selected-stat strong{
  font-size:21px !important;
  line-height:1.1 !important;
  font-weight:800 !important;
  color:#256246 !important;
}

.pg-page-themes .selected-stat .stat-label,
.pg-page-themes .selected-stat small,
.pg-page-themes .selected-stat span{
  font-size:13px !important;
  line-height:1.4 !important;
}


/* =========================================================
   5. SUBTHEME PILLS
   ========================================================= */

.pg-page-themes .subtheme-list{
  gap:8px !important;
  margin-top:14px !important;
}

.pg-page-themes button.subtheme{
  font-size:13.5px !important;
  line-height:1.25 !important;
  font-weight:650 !important;
  padding:9px 12px !important;
  min-height:38px !important;
  border-radius:999px !important;
}


/* =========================================================
   6. LINKED STUDIES
   ========================================================= */

.pg-page-themes .theme-study-scroll{
  max-height:390px !important;
}

.pg-page-themes .theme-study-row{
  padding:11px 12px !important;
  min-height:55px !important;
  gap:12px !important;
}

/* accession */
.pg-page-themes .theme-study-row .study-id,
.pg-page-themes .theme-study-row b,
.pg-page-themes .theme-study-row strong{
  font-size:14px !important;
  line-height:1.35 !important;
  font-weight:750 !important;
}

/* species / description */
.pg-page-themes .theme-study-row .study-desc,
.pg-page-themes .theme-study-row .sub,
.pg-page-themes .theme-study-row small{
  font-size:13.5px !important;
  line-height:1.45 !important;
  color:#64746b !important;
}

/* Open study */
.pg-page-themes .theme-study-row a,
.pg-page-themes .theme-study-row button,
.pg-page-themes .theme-study-row .open-btn{
  font-size:13.5px !important;
  font-weight:750 !important;
}


/* =========================================================
   7. STUDY THEME BROWSER FILTERS
   ========================================================= */

.pg-page-themes .browser-filters{
  gap:10px !important;
  padding:13px 0 !important;
}

.pg-page-themes .browser-actions input,
.pg-page-themes .browser-controls input,
.pg-page-themes .browser-controls select{
  min-height:44px !important;
  font-size:14.5px !important;
  padding:9px 12px !important;
}

.pg-page-themes .browser-controls button,
.pg-page-themes .browser-actions button{
  min-height:42px !important;
  font-size:13.5px !important;
  padding:8px 13px !important;
}

.pg-page-themes .browser-count{
  font-size:13px !important;
  line-height:1.4 !important;
  color:#627269 !important;
}


/* =========================================================
   8. STUDY THEME TABLE
   ========================================================= */

.pg-page-themes .theme-table{
  overflow:auto !important;
  border-radius:13px !important;
}

.pg-page-themes .theme-table table{
  width:100% !important;
  min-width:1320px !important;
  font-size:14.5px !important;
}

/* headers */
.pg-page-themes .theme-table th{
  font-size:13.5px !important;
  line-height:1.3 !important;
  font-weight:800 !important;
  letter-spacing:.045em !important;
  padding:14px 13px !important;
}

/* cells */
.pg-page-themes .theme-table td{
  font-size:14.5px !important;
  line-height:1.5 !important;
  padding:15px 13px !important;
  vertical-align:top !important;
}

/* primary text */
.pg-page-themes .theme-table .main{
  font-size:15px !important;
  line-height:1.4 !important;
  font-weight:750 !important;
}

/* secondary text */
.pg-page-themes .theme-table .sub{
  font-size:13.5px !important;
  line-height:1.48 !important;
  color:#63736a !important;
}

/* theme badges */
.pg-page-themes .theme-table .badge,
.pg-page-themes .theme-table .subb{
  display:inline-block !important;
  font-size:13px !important;
  line-height:1.25 !important;
  padding:6px 9px !important;
  margin:2px 4px 3px 0 !important;
  border-radius:999px !important;
  font-weight:700 !important;
}

/* Open */
.pg-page-themes .theme-table a,
.pg-page-themes .theme-table button,
.pg-page-themes .theme-table .open-link{
  font-size:13.5px !important;
  font-weight:750 !important;
}


/* =========================================================
   9. CROSS-THEME MATRIX
   ========================================================= */

.pg-page-themes .matrix-wrap{
  overflow-x:auto !important;
}

.pg-page-themes .mx-head{
  font-size:13px !important;
  line-height:1.35 !important;
  font-weight:750 !important;
}

.pg-page-themes .mx-cell{
  font-size:14.5px !important;
  line-height:1.35 !important;
  padding:12px 10px !important;
  font-weight:650 !important;
}

.pg-page-themes .mx-cell.diag{
  font-size:17px !important;
  font-weight:800 !important;
}


/* =========================================================
   10. SECTION HEADINGS / HELP TEXT
   ========================================================= */

.pg-page-themes .theme-panel h2,
.pg-page-themes .theme-panel h3,
.pg-page-themes .browser-panel h2,
.pg-page-themes .browser-panel h3,
.pg-page-themes .matrix-panel h2,
.pg-page-themes .matrix-panel h3{
  font-size:21px !important;
  line-height:1.3 !important;
  font-weight:800 !important;
}

.pg-page-themes .theme-panel > p,
.pg-page-themes .browser-panel > p,
.pg-page-themes .matrix-panel > p{
  font-size:14.5px !important;
  line-height:1.55 !important;
}


/* =========================================================
   11. MOBILE
   ========================================================= */

@media(max-width:800px){

  .pg-page-themes .theme-map{
    grid-template-columns:1fr !important;
  }

  .pg-page-themes .theme-table table{
    min-width:1100px !important;
  }

}

/* ===== PlantGraft THEMES TRUE DOM TYPOGRAPHY END ===== */














/* ===== PlantGraft DATA PAGES UI FINAL START ===== */

/*
   FINAL DATA-UI TYPOGRAPHY LAYER

   Applies to PlantGraft functional/data/tool pages.

   Intentionally excluded:
   Home
   Browse landing
   Study Catalog
   Themes
   Statistics
   Download
   Docs
   About

   Those pages already have dedicated final styling.
*/


/* =========================================================
   1. DATA PAGE CONTENT WIDTH
   ========================================================= */

body[class*="pg-page-"]
:not(.dummy-selector) {
}

/* common shell + container */
body[class*="pg-page-"]:not(.pg-page-home):not(.pg-page-browse):not(.pg-page-studies):not(.pg-page-themes):not(.pg-page-statistics):not(.pg-page-download):not(.pg-page-docs):not(.pg-page-about)
[class*="-shell"] > .wrap,

body[class*="pg-page-"]:not(.pg-page-home):not(.pg-page-browse):not(.pg-page-studies):not(.pg-page-themes):not(.pg-page-statistics):not(.pg-page-download):not(.pg-page-docs):not(.pg-page-about)
[class*="-shell"] > .container,

body[class*="pg-page-"]:not(.pg-page-home):not(.pg-page-browse):not(.pg-page-studies):not(.pg-page-themes):not(.pg-page-statistics):not(.pg-page-download):not(.pg-page-docs):not(.pg-page-about)
main > .wrap,

body[class*="pg-page-"]:not(.pg-page-home):not(.pg-page-browse):not(.pg-page-studies):not(.pg-page-themes):not(.pg-page-statistics):not(.pg-page-download):not(.pg-page-docs):not(.pg-page-about)
main > .container{
  width:min(92vw,1480px) !important;
  max-width:1480px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  box-sizing:border-box !important;
}


/* =========================================================
   2. SECTION HEADINGS
   ========================================================= */

body[class*="pg-page-"]:not(.pg-page-home):not(.pg-page-browse):not(.pg-page-studies):not(.pg-page-themes):not(.pg-page-statistics):not(.pg-page-download):not(.pg-page-docs):not(.pg-page-about)
main h2{
  font-size:22px !important;
  line-height:1.30 !important;
  font-weight:800 !important;
}

body[class*="pg-page-"]:not(.pg-page-home):not(.pg-page-browse):not(.pg-page-studies):not(.pg-page-themes):not(.pg-page-statistics):not(.pg-page-download):not(.pg-page-docs):not(.pg-page-about)
main h3{
  font-size:18px !important;
  line-height:1.34 !important;
  font-weight:750 !important;
}


/* =========================================================
   3. NORMAL CONTENT TEXT
   ========================================================= */

body[class*="pg-page-"]:not(.pg-page-home):not(.pg-page-browse):not(.pg-page-studies):not(.pg-page-themes):not(.pg-page-statistics):not(.pg-page-download):not(.pg-page-docs):not(.pg-page-about)
main p,

body[class*="pg-page-"]:not(.pg-page-home):not(.pg-page-browse):not(.pg-page-studies):not(.pg-page-themes):not(.pg-page-statistics):not(.pg-page-download):not(.pg-page-docs):not(.pg-page-about)
main li,

body[class*="pg-page-"]:not(.pg-page-home):not(.pg-page-browse):not(.pg-page-studies):not(.pg-page-themes):not(.pg-page-statistics):not(.pg-page-download):not(.pg-page-docs):not(.pg-page-about)
main dd,

body[class*="pg-page-"]:not(.pg-page-home):not(.pg-page-browse):not(.pg-page-studies):not(.pg-page-themes):not(.pg-page-statistics):not(.pg-page-download):not(.pg-page-docs):not(.pg-page-about)
main dt{
  font-size:15px !important;
  line-height:1.60 !important;
}


/* =========================================================
   4. ALL TRUE SECONDARY TEXT
   ========================================================= */

body[class*="pg-page-"]:not(.pg-page-home):not(.pg-page-browse):not(.pg-page-studies):not(.pg-page-themes):not(.pg-page-statistics):not(.pg-page-download):not(.pg-page-docs):not(.pg-page-about)
main :where(
  small,
  .sub,
  .muted,
  .text-muted,
  .text-sm,
  .meta,
  .caption,
  .helper,
  .helper-text,
  .note,
  .description,
  .desc,
  .step-description,
  .study-desc,
  .stat-label
){
  font-size:13.5px !important;
  line-height:1.50 !important;
}


/* =========================================================
   5. CARD / PANEL DEFAULT TEXT
   catches bare text inside cards that is not <p>
   ========================================================= */

body[class*="pg-page-"]:not(.pg-page-home):not(.pg-page-browse):not(.pg-page-studies):not(.pg-page-themes):not(.pg-page-statistics):not(.pg-page-download):not(.pg-page-docs):not(.pg-page-about)
main :where(
  .card,
  .panel,
  .box,
  .card-body,
  .detail-card,
  .data-cell,
  .cell,
  .member-row,
  .funnel-step,
  .ev-step
){
  font-size:14px !important;
  line-height:1.50 !important;
}


/* =========================================================
   6. TABLES
   ========================================================= */

body[class*="pg-page-"]:not(.pg-page-home):not(.pg-page-browse):not(.pg-page-studies):not(.pg-page-themes):not(.pg-page-statistics):not(.pg-page-download):not(.pg-page-docs):not(.pg-page-about)
main table{
  font-size:14.5px !important;
}

body[class*="pg-page-"]:not(.pg-page-home):not(.pg-page-browse):not(.pg-page-studies):not(.pg-page-themes):not(.pg-page-statistics):not(.pg-page-download):not(.pg-page-docs):not(.pg-page-about)
main table th{
  font-size:13.5px !important;
  line-height:1.32 !important;
  font-weight:800 !important;
  padding:14px 12px !important;
}

body[class*="pg-page-"]:not(.pg-page-home):not(.pg-page-browse):not(.pg-page-studies):not(.pg-page-themes):not(.pg-page-statistics):not(.pg-page-download):not(.pg-page-docs):not(.pg-page-about)
main table td{
  font-size:14.5px !important;
  line-height:1.52 !important;
  padding:14px 12px !important;
}


/* custom div-based tables */
body[class*="pg-page-"]:not(.pg-page-home):not(.pg-page-browse):not(.pg-page-studies):not(.pg-page-themes):not(.pg-page-statistics):not(.pg-page-download):not(.pg-page-docs):not(.pg-page-about)
main :where(.header,.cellheader){
  font-size:13.5px !important;
  line-height:1.32 !important;
  font-weight:800 !important;
}

body[class*="pg-page-"]:not(.pg-page-home):not(.pg-page-browse):not(.pg-page-studies):not(.pg-page-themes):not(.pg-page-statistics):not(.pg-page-download):not(.pg-page-docs):not(.pg-page-about)
main :where(.data-cell,.cell){
  font-size:14px !important;
  line-height:1.50 !important;
}


/* =========================================================
   7. FILTERS / INPUTS
   ========================================================= */

body[class*="pg-page-"]:not(.pg-page-home):not(.pg-page-browse):not(.pg-page-studies):not(.pg-page-themes):not(.pg-page-statistics):not(.pg-page-download):not(.pg-page-docs):not(.pg-page-about)
main :where(input,select,textarea){
  font-size:14.5px !important;
  line-height:1.45 !important;
  min-height:44px !important;
}

body[class*="pg-page-"]:not(.pg-page-home):not(.pg-page-browse):not(.pg-page-studies):not(.pg-page-themes):not(.pg-page-statistics):not(.pg-page-download):not(.pg-page-docs):not(.pg-page-about)
main textarea{
  padding:12px 14px !important;
}


/* =========================================================
   8. BUTTONS
   ========================================================= */

body[class*="pg-page-"]:not(.pg-page-home):not(.pg-page-browse):not(.pg-page-studies):not(.pg-page-themes):not(.pg-page-statistics):not(.pg-page-download):not(.pg-page-docs):not(.pg-page-about)
main :where(button,.btn,[role="button"]){
  font-size:14.5px !important;
  line-height:1.3 !important;
  min-height:40px !important;
}


/* =========================================================
   9. BADGES / PILLS
   ========================================================= */

body[class*="pg-page-"]:not(.pg-page-home):not(.pg-page-browse):not(.pg-page-studies):not(.pg-page-themes):not(.pg-page-statistics):not(.pg-page-download):not(.pg-page-docs):not(.pg-page-about)
main :where(.badge,.tag,.pill,.chip,.subb){
  font-size:12.75px !important;
  line-height:1.24 !important;
  padding:5px 8px !important;
}


/* =========================================================
   10. ACTION LINKS
   ========================================================= */

body[class*="pg-page-"]:not(.pg-page-home):not(.pg-page-browse):not(.pg-page-studies):not(.pg-page-themes):not(.pg-page-statistics):not(.pg-page-download):not(.pg-page-docs):not(.pg-page-about)
main :where(
  .open-link,
  .action-link,
  .external-link,
  .study-link,
  .doi-link,
  .pubmed-link,
  .pmc-link
){
  font-size:13.5px !important;
  line-height:1.3 !important;
  font-weight:700 !important;
}


/* =========================================================
   11. KPI / STAT LABELS
   Do not touch the large numbers themselves
   ========================================================= */

body[class*="pg-page-"]:not(.pg-page-home):not(.pg-page-browse):not(.pg-page-studies):not(.pg-page-themes):not(.pg-page-statistics):not(.pg-page-download):not(.pg-page-docs):not(.pg-page-about)
main :where(
  .stat-card,
  .fa-kpi,
  .ev-kpi,
  .cf-kpi
) :where(
  small,
  span,
  p,
  .label,
  .stat-label
){
  font-size:13.5px !important;
  line-height:1.45 !important;
}


/* =========================================================
   12. TIMELINE-SPECIFIC
   ========================================================= */

.pg-page-timeline main :where(.card,.panel,[class*="timing"]){
  font-size:14.5px !important;
  line-height:1.52 !important;
}

.pg-page-timeline main :where(.card,.panel,[class*="timing"]) small,
.pg-page-timeline main :where(.card,.panel,[class*="timing"]) .sub{
  font-size:13.5px !important;
}


/* =========================================================
   13. CANDIDATES-SPECIFIC
   ========================================================= */

.pg-page-candidates main .cf-table th{
  font-size:13.5px !important;
}

.pg-page-candidates main .cf-table td{
  font-size:14px !important;
  line-height:1.5 !important;
}

.pg-page-candidates main #detail{
  font-size:14px !important;
  line-height:1.52 !important;
}

.pg-page-candidates main #detail :where(small,.sub,.muted){
  font-size:13.5px !important;
}


/* =========================================================
   14. FUNCTIONAL-SPECIFIC
   ========================================================= */

.pg-page-functional main #detail{
  font-size:14.5px !important;
  line-height:1.52 !important;
}

.pg-page-functional main #detail :where(small,.sub,.muted,.text-muted){
  font-size:13.5px !important;
}

.pg-page-functional main .kind-tab{
  font-size:14.5px !important;
  min-height:44px !important;
}


/* =========================================================
   15. EVIDENCE PUBLICATION CARDS
   ========================================================= */

.pg-page-evidence main .pub-card .card-body{
  font-size:14px !important;
  line-height:1.50 !important;
}

.pg-page-evidence main .pub-card :where(small,.text-muted,.meta){
  font-size:13.5px !important;
}


/* =========================================================
   16. GENE SET / CROSS-STUDY EMPTY STATES
   ========================================================= */

.pg-page-gene-set main,
.pg-page-cross-study main{
  font-size:15px !important;
}

.pg-page-gene-set main :where(.rules,.analysis-rules,.empty-state),
.pg-page-cross-study main :where(.empty-state,.result-empty){
  font-size:14px !important;
  line-height:1.55 !important;
}


/* =========================================================
   17. RESPONSIVE
   ========================================================= */

@media(max-width:900px){

  body[class*="pg-page-"]:not(.pg-page-home):not(.pg-page-browse):not(.pg-page-studies):not(.pg-page-themes):not(.pg-page-statistics):not(.pg-page-download):not(.pg-page-docs):not(.pg-page-about)
  [class*="-shell"] > .wrap,

  body[class*="pg-page-"]:not(.pg-page-home):not(.pg-page-browse):not(.pg-page-studies):not(.pg-page-themes):not(.pg-page-statistics):not(.pg-page-download):not(.pg-page-docs):not(.pg-page-about)
  [class*="-shell"] > .container{
    width:calc(100% - 30px) !important;
  }

}

/* ===== PlantGraft DATA PAGES UI FINAL END ===== */


