/* Article-specific layout. Colors, fonts, header and footer come from the site theme. */
.debuff-study p{margin:18px 0}
.debuff-study h2,.debuff-study details{scroll-margin-top:24px}
.debuff-study .summary{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:24px 0}
.debuff-study .summary>div{padding:16px 20px;border:1px solid var(--line);border-radius:14px;background:var(--theme-soft)}
.debuff-study .summary .tag{font-size:12px;color:var(--muted);font-weight:600}
.debuff-study .summary .big{font-size:32px;font-weight:800;line-height:1.6;color:var(--theme-purple)}
.debuff-study .summary .big small{font-size:14px;font-weight:500}
.debuff-study .summary p{margin:6px 0;font-size:14px}
.debuff-study .warning{padding:16px 20px;margin:24px 0;background:#fff1d5;border:1px solid #d8b770;border-radius:14px;font-size:14px}
.debuff-study .toc{display:flex;flex-wrap:wrap;gap:10px;margin:24px 0}
.debuff-study .toc a{padding:10px 14px;background:#eee3f6;border-radius:10px}
.debuff-study .scope,.debuff-study .muted{font-size:13px;color:var(--muted)}
.debuff-study .scroll-note{font-size:12px;color:var(--muted);margin:18px 0 8px}
.debuff-study .article-table{border:1px solid var(--line);margin:16px 0;border-radius:12px;overscroll-behavior-x:contain}
.debuff-study .article-table table{table-layout:auto}
.debuff-study .article-table th,.debuff-study .article-table td{min-width:0;width:auto;white-space:normal;vertical-align:top;overflow-wrap:normal}
.debuff-study .ranking{min-width:850px}
.debuff-study .ranking th{white-space:nowrap}
.debuff-study .ranking td:nth-child(2){min-width:260px}
.debuff-study .ranking td:nth-child(n+3){text-align:center}
.debuff-study .ranking td.total{font-size:25px;font-weight:800;line-height:1.5;color:var(--theme-purple)}
.debuff-study .ranking a{font-weight:700;text-decoration:none}
.debuff-study .small-note{display:block;font-size:11px;color:var(--muted);font-weight:400;margin-top:3px}
.debuff-study .faint{color:#9e552b;font-weight:700}
.debuff-study .pair{padding:16px 20px;margin:16px 0;background:#fcf9ff;border:1px solid var(--line);border-radius:14px}
.debuff-study .pair>summary{display:flex;align-items:center;gap:12px;padding:0;border:0;font-size:15px;font-weight:700;letter-spacing:0}
.debuff-study .pair>summary:before{content:'＋';color:var(--theme-purple)}
.debuff-study .pair[open]>summary:before{content:'−'}
.debuff-study .pair>summary:after{content:none}
.debuff-study .pair>summary span{flex:1;margin:0;color:var(--ink);font-size:15px;letter-spacing:0}
.debuff-study .pair>summary strong{font-size:22px;color:var(--theme-purple)}
.debuff-study .pair .inside{padding-top:8px;font-size:14px}
.debuff-study .ledger{padding-left:22px}
.debuff-study .grid{padding:12px 15px;background:var(--theme-soft);border-radius:10px;font-size:12px}
.debuff-study .repeat{min-width:660px}
.debuff-study .repeat td:first-child{min-width:190px}
.debuff-study .repeat td:nth-child(2){white-space:nowrap;font-size:18px;font-weight:700;color:var(--theme-purple)}
.debuff-study .formula{padding:18px 20px;background:#fff2cd;border-radius:12px;font-weight:600}
.debuff-study .rules{font-size:14px;padding-left:22px}
.debuff-study .cta{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0}
.debuff-study .sources{margin-top:34px;border-top:1px solid var(--line);padding-top:18px;font-size:13px}
.debuff-study code{overflow-wrap:anywhere}
@media(max-width:760px){
 .debuff-study .summary{grid-template-columns:1fr;gap:12px}
 .debuff-study .summary>div{padding:14px 16px}
 .debuff-study .warning,.debuff-study .pair{padding:14px 16px}
 .debuff-study .pair>summary span{font-size:14px}
 .debuff-study .article-table th,.debuff-study .article-table td{padding:10px;font-size:13px}
 .debuff-study .toc a{padding:8px 12px;font-size:13px}
 .debuff-study .cta{display:grid}
}
@media print{
 body>header,body>.site-disclaimer,.debuff-study .toc,.debuff-study .cta{display:none}
 .debuff-study{border:0;box-shadow:none;margin:0;max-width:none}
 .debuff-study .pair{break-inside:avoid}
}

.debuff-study .no-ko-ranking{min-width:540px}.debuff-study .no-ko-ranking td:nth-child(2){min-width:300px}.debuff-study:lang(en) .pair>summary span{line-height:1.6}

.debuff-study .ranking{min-width:860px}.debuff-study .ranking td:nth-child(2){min-width:235px}.debuff-study .ranking td:nth-child(4){min-width:200px;text-align:left}.debuff-study .ranking td:nth-child(5){min-width:225px;text-align:left}.debuff-study .step-line{padding:12px 16px;background:var(--theme-soft);border-radius:10px;line-height:1.9}.debuff-study .stat-vector{font-variant-numeric:tabular-nums}.debuff-study .inside h3{font-size:15px;margin:20px 0 8px}.debuff-study .inside ol{padding-left:24px}.debuff-study .inside .grid{line-height:1.8}.debuff-study .metric-explainer{font-size:13px;color:var(--muted)}.debuff-study .article-meta{font-size:12px}.debuff-study .article-action{display:block}@media(max-width:760px){.debuff-study .ranking{min-width:780px}.debuff-study .inside strong{overflow-wrap:anywhere}}

.debuff-study .pair>summary strong{display:grid;grid-template-columns:auto auto;align-items:baseline;gap:2px 8px;white-space:nowrap;text-align:right}.debuff-study .pair>summary strong small{font-size:11px;font-weight:500;color:var(--muted)}.debuff-study .pair>summary strong b{font-size:22px}

/* The summary stays compact; its breakdown gets a separate full-width row. */
.debuff-study .article-table{container-type:inline-size}
.debuff-study .pair-toggle{display:grid;grid-template-columns:48px minmax(0,1fr);gap:4px 10px;width:100%;max-width:320px;margin:0;padding:4px;border:0;border-radius:8px;background:transparent;box-shadow:none;text-align:left;white-space:normal;font:inherit;line-height:1.6;color:var(--theme-purple);cursor:pointer}
.debuff-study .pair-toggle:hover{background:var(--theme-soft)}
.debuff-study .pair-toggle:focus-visible{outline:2px solid var(--theme-purple);outline-offset:4px}
.debuff-study .pair-toggle img{grid-row:1 / span 2;width:48px;height:48px;object-fit:contain;align-self:center}
.debuff-study .pair-name{font-size:13px;font-weight:700;overflow-wrap:anywhere}
.debuff-study .toggle-hint{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.debuff-study .toggle-chevron{display:inline-block;font-size:16px;line-height:1;text-decoration:none}
.debuff-study .pair-toggle .when-open{display:none}
.debuff-study .pair-toggle[aria-expanded="true"] .when-closed{display:none}
.debuff-study .pair-toggle[aria-expanded="true"] .when-open{display:inline}
.debuff-study .pair-toggle[aria-expanded="true"] .toggle-chevron{transform:rotate(180deg)}
.debuff-study .ranking-row.is-expanded>th,.debuff-study .ranking-row.is-expanded>td{border-bottom:0}
.debuff-study .ranking-detail-row[hidden]{display:none}
.debuff-study .ranking-detail-row>td{padding:16px 20px 22px;background:#fcf9ff;text-align:left;border-bottom:1px solid var(--line)}
.debuff-study .ranking-detail-row .inside{box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:0 24px;width:100%;max-width:calc(100cqi - 40px);position:sticky;left:20px;font-size:14px;font-weight:400;text-align:left}
.debuff-study .ranking-detail-row h3{grid-column:1 / -1;font-size:15px;margin:0 0 12px;color:var(--theme-purple)}
.debuff-study .ranking-detail-row .inside p{margin:0 0 14px;overflow-wrap:anywhere}
.debuff-study .ranking-detail-row .inside p:last-child{margin-bottom:0}
.debuff-study .ranking-detail-row .step-line{padding:12px 14px;font-size:13px}
.debuff-study .ranking-detail-row .stat-vector{line-height:1.9}
.debuff-study .ranking-detail-row .grid{padding:12px 14px;font-size:13px}
.debuff-study .ranking-detail-row a{font-size:13px}
.debuff-study .ranking-detail-row{scroll-margin-top:24px}
@media(max-width:760px){
 .debuff-study .ranking-detail-row>td{padding:14px 12px 18px}
 .debuff-study .ranking-detail-row .inside{grid-template-columns:minmax(0,1fr);gap:16px;max-width:calc(100cqi - 24px);left:12px;font-size:13px}
 .debuff-study .ranking-detail-row h3{margin:0}
}
@media print{
 .debuff-study .ranking-detail-row[hidden]{display:table-row}
 .debuff-study .ranking-detail-row .inside{max-width:none;position:static}
 .debuff-study .toggle-hint{display:none}
}

/* Ideal random stat choices use a separate table from the fixed-effect rankings. */
.debuff-study .random-ranking{min-width:860px}
.debuff-study .random-ranking th:first-child{min-width:245px;white-space:normal}
.debuff-study .random-ranking td:nth-child(2),.debuff-study .random-ranking td:nth-child(3){min-width:76px;text-align:center}
.debuff-study .random-ranking td:nth-child(4),.debuff-study .random-ranking td:nth-child(5){min-width:215px;text-align:left}
.debuff-study .random-ranking .pair-toggle{max-width:310px}
.debuff-study .random-ranking-row.is-expanded>th,.debuff-study .random-ranking-row.is-expanded>td{border-bottom:0}
