
@font-face{
 font-family:"RuneScape UF";
 src:url("../fonts/runescape_uf.ttf?v=848") format("truetype");
 font-style:normal;
 font-weight:normal;
 font-display:swap;
}
:root{--do-font:"RuneScape UF";}
html,body,
body :where(h1,h2,h3,h4,h5,h6,p,a,span,div,li,ul,ol,nav,header,footer,main,section,article,
table,thead,tbody,tr,th,td,label,button,input,select,textarea,option,small,strong,b){
 font-family:var(--do-font) !important;
 font-synthesis:none !important;
}
input::placeholder,textarea::placeholder{font-family:var(--do-font) !important;}


/* v8.49 — RuneScape UF typography scaled 50% larger site-wide */
html{font-size:150% !important;}


/* v8.50 — Ranking table: narrow Combat Achievements and reserve room for Actions */
.do-ranking th:nth-child(6),
.do-rankings th:nth-child(6),
.do-v15-ranking th:nth-child(6),
.do-ranking-table th:nth-child(6),
.do-leaderboard th:nth-child(6){
  white-space:normal !important;
  line-height:1.05 !important;
  max-width:155px !important;
}
.do-ranking th:nth-child(6),
.do-rankings th:nth-child(6),
.do-v15-ranking th:nth-child(6),
.do-ranking-table th:nth-child(6),
.do-leaderboard th:nth-child(6){
  font-size:0 !important;
}
.do-ranking th:nth-child(6)::after,
.do-rankings th:nth-child(6)::after,
.do-v15-ranking th:nth-child(6)::after,
.do-ranking-table th:nth-child(6)::after,
.do-leaderboard th:nth-child(6)::after{
  content:"Combat\A Achievements";
  white-space:pre-line !important;
  font-size:24px !important;
  line-height:1.05 !important;
  font-family:"RuneScape UF" !important;
}
.do-ranking th:last-child,.do-ranking td:last-child,
.do-rankings th:last-child,.do-rankings td:last-child,
.do-v15-ranking th:last-child,.do-v15-ranking td:last-child,
.do-ranking-table th:last-child,.do-ranking-table td:last-child,
.do-leaderboard th:last-child,.do-leaderboard td:last-child{
  min-width:170px !important;
  width:170px !important;
}


/* v8.51 — actual Clan Rankings table column sizing.
   Target the page template itself, regardless of the plugin's wrapper class. */
body.page-template-page-clan-rankings table{
  width:100% !important;
  table-layout:fixed !important;
}

/* Combat Achievements: deliberately narrow the entire column, not just its heading. */
body.page-template-page-clan-rankings table th:nth-child(6),
body.page-template-page-clan-rankings table td:nth-child(6){
  width:155px !important;
  min-width:155px !important;
  max-width:155px !important;
  padding-left:10px !important;
  padding-right:10px !important;
  white-space:normal !important;
  overflow-wrap:normal !important;
}

/* Force the CA heading onto exactly two lines. */
body.page-template-page-clan-rankings table th:nth-child(6){
  font-size:0 !important;
  line-height:1 !important;
}
body.page-template-page-clan-rankings table th:nth-child(6)::after{
  content:"Combat\A Achievements";
  display:block !important;
  white-space:pre !important;
  font-family:"RuneScape UF" !important;
  font-size:24px !important;
  font-weight:normal !important;
  line-height:1.05 !important;
}

/* Give the recovered width to the right-hand side, especially Actions. */
body.page-template-page-clan-rankings table th:nth-child(7),
body.page-template-page-clan-rankings table td:nth-child(7){width:180px !important;}
body.page-template-page-clan-rankings table th:nth-child(8),
body.page-template-page-clan-rankings table td:nth-child(8){width:135px !important;}
body.page-template-page-clan-rankings table th:nth-child(9),
body.page-template-page-clan-rankings table td:nth-child(9){width:105px !important;}
body.page-template-page-clan-rankings table th:nth-child(10),
body.page-template-page-clan-rankings table td:nth-child(10){
  width:190px !important;
  min-width:190px !important;
  max-width:190px !important;
  padding-left:10px !important;
  padding-right:10px !important;
}


/* v8.52 — Members cards: put rank badge on its own row below the member name.
   This prevents long rank names being clipped at the right edge of 3-column cards. */
.do-v155-card-head,
.do-member-card-head,
.do-v155-member-head{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
}

.do-v155-card-head .do-v155-rank,
.do-v155-card-head .do-rank,
.do-member-card-head .do-rank,
.do-v155-member-head .do-v155-rank,
.do-v155-member-head .do-rank{
  flex:0 0 auto !important;
  margin-left:0 !important;
  margin-right:auto !important;
  max-width:100% !important;
  white-space:nowrap !important;
}

/* Common card markup: force the rank element after the name onto a new line. */
.do-v155-card-head > :last-child,
.do-member-card-head > :last-child,
.do-v155-member-head > :last-child{
  break-before:always;
}

/* If header uses grid, convert to: position | icon | name, then rank underneath name. */
.do-v155-card .do-v155-card-head,
.do-v155-member-card .do-v155-member-head{
  grid-template-columns:auto auto minmax(0,1fr) !important;
}
.do-v155-card .do-v155-card-head > :last-child,
.do-v155-member-card .do-v155-member-head > :last-child{
  grid-column:3 !important;
  grid-row:2 !important;
  justify-self:start !important;
  margin-top:8px !important;
}

/* Don't let card headers hide the second row. */
.do-v155-card,.do-v155-member-card,
.do-v155-card-head,.do-v155-member-head{
  overflow:visible !important;
}


/* v8.53 — Ranking table: compact Combat Achievements heading */
body.page-template-page-clan-rankings table th:nth-child(6){
  font-size:0 !important;
  width:110px !important;
  min-width:110px !important;
  max-width:110px !important;
}
body.page-template-page-clan-rankings table td:nth-child(6){
  width:110px !important;
  min-width:110px !important;
  max-width:110px !important;
}
body.page-template-page-clan-rankings table th:nth-child(6)::after{
  content:"CA's" !important;
  display:block !important;
  white-space:nowrap !important;
  font-family:"RuneScape UF" !important;
  font-size:24px !important;
  font-weight:normal !important;
  line-height:1 !important;
}
