/* Career rules — pyramid diagram */
#post.rules-page--career .rules-section--career-pyramid .career-pyramid,
#post.rules-page--fantasy-h2h .rules-section--career-pyramid .career-pyramid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin: 14px 16px 16px;
    padding: 16px;
    border: 1px solid #e0e6f4;
    border-radius: 0.55em;
    background: linear-gradient(180deg, #f8faff 0%, #fff 42%, #f8faff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
#post.rules-page--career .career-pyramid__tier,
#post.rules-page--fantasy-h2h .career-pyramid__tier {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #e0e6f4;
    border-radius: 0.5em;
    background: #fff;
    box-shadow: 0 1px 3px rgba(45, 54, 168, 0.06);
}
#post.rules-page--career .career-pyramid__tier--super,
#post.rules-page--fantasy-h2h .career-pyramid__tier--super {
    border-color: #c8ceff;
    background: linear-gradient(90deg, #eef0ff 0%, #fafbff 45%, #fff 100%);
}
#post.rules-page--career .career-pyramid__tier--high,
#post.rules-page--fantasy-h2h .career-pyramid__tier--high {
    border-color: #e0c4f0;
    background: linear-gradient(90deg, #f6eefb 0%, #fdfaff 45%, #fff 100%);
}
#post.rules-page--career .career-pyramid__tier--first,
#post.rules-page--fantasy-h2h .career-pyramid__tier--first {
    border-color: #b8d8b8;
    background: linear-gradient(90deg, #eef6ee 0%, #fafffa 45%, #fff 100%);
}
#post.rules-page--career .career-pyramid__tier--second,
#post.rules-page--fantasy-h2h .career-pyramid__tier--second {
    border-color: #e8c4c4;
    background: linear-gradient(90deg, #fbeeee 0%, #fffafa 45%, #fff 100%);
}
#post.rules-page--career .career-pyramid__tier--third,
#post.rules-page--fantasy-h2h .career-pyramid__tier--third {
    border-color: #ffcc99;
    background: linear-gradient(90deg, #fff3e0 0%, #fffaf5 45%, #fff 100%);
}
#post.rules-page--career .career-pyramid__tier--qualifying,
#post.rules-page--fantasy-h2h .career-pyramid__tier--qualifying {
    border-color: #ccd2dc;
    background: linear-gradient(90deg, #f4f4f6 0%, #fafafa 45%, #fff 100%);
}
#post.rules-page--career .career-pyramid__tier-head,
#post.rules-page--fantasy-h2h .career-pyramid__tier-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
}
#post.rules-page--career .career-pyramid__tier-head > .ind-league-banner,
#post.rules-page--fantasy-h2h .career-pyramid__tier-head > .ind-league-banner {
    flex: 1 1 auto;
    width: 100%;
    margin: 0;
    min-height: 42px;
}
#post.rules-page--career .career-pyramid__body,
#post.rules-page--fantasy-h2h .career-pyramid__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0.45em;
    background: rgba(255, 255, 255, 0.55);
}
#post.rules-page--career .career-pyramid__summary,
#post.rules-page--fantasy-h2h .career-pyramid__summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #e8ecf4;
    border-radius: 0.45em;
    background: rgba(255, 255, 255, 0.82);
    text-align: center;
}
#post.rules-page--career .career-pyramid__summary-size,
#post.rules-page--fantasy-h2h .career-pyramid__summary-size {
    font-size: 82%;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: #5a6478;
}
#post.rules-page--career .career-pyramid__summary-rot,
#post.rules-page--fantasy-h2h .career-pyramid__summary-rot {
    display: flex;
    justify-content: center;
    width: 100%;
}
#post.rules-page--career .career-pyramid__summary--qualifying,
#post.rules-page--fantasy-h2h .career-pyramid__summary--qualifying {
    margin-bottom: 2px;
}
#post.rules-page--career .career-pyramid__summary--qualifying .career-pyramid__summary-size,
#post.rules-page--fantasy-h2h .career-pyramid__summary--qualifying .career-pyramid__summary-size {
    font-size: 80%;
    line-height: 1.45;
}
#post.rules-page--career .career-pyramid__rotation,
#post.rules-page--fantasy-h2h .career-pyramid__rotation {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 10px;
    padding: 5px 12px;
    border: 1px solid #dfe5f2;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff, #f8faff);
    box-shadow: 0 1px 2px rgba(45, 54, 168, 0.05);
}
#post.rules-page--career .career-pyramid__rot-item,
#post.rules-page--fantasy-h2h .career-pyramid__rot-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
#post.rules-page--career .career-pyramid__rot-label,
#post.rules-page--fantasy-h2h .career-pyramid__rot-label {
    font-size: 78%;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}
#post.rules-page--career .career-pyramid__rot-item--up .career-pyramid__rot-label,
#post.rules-page--fantasy-h2h .career-pyramid__rot-item--up .career-pyramid__rot-label {
    color: #2e7d32;
}
#post.rules-page--career .career-pyramid__rot-item--down .career-pyramid__rot-label,
#post.rules-page--fantasy-h2h .career-pyramid__rot-item--down .career-pyramid__rot-label {
    color: #c62828;
}
#post.rules-page--career .career-pyramid__rot,
#post.rules-page--fantasy-h2h .career-pyramid__rot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.55em;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 92%;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0;
}
#post.rules-page--career .career-pyramid__rot--up,
#post.rules-page--fantasy-h2h .career-pyramid__rot--up {
    color: #1b5e20;
    background: rgba(129, 199, 132, 0.22);
    border: 1px solid rgba(76, 175, 80, 0.35);
}
#post.rules-page--career .career-pyramid__rot--down,
#post.rules-page--fantasy-h2h .career-pyramid__rot--down {
    color: #b71c1c;
    background: rgba(229, 115, 115, 0.18);
    border: 1px solid rgba(229, 115, 115, 0.35);
}
#post.rules-page--career .career-pyramid__rot-note,
#post.rules-page--fantasy-h2h .career-pyramid__rot-note {
    font-size: 76%;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}
#post.rules-page--career .career-pyramid__grid,
#post.rules-page--fantasy-h2h .career-pyramid__grid {
    display: grid;
    gap: 8px;
    width: 100%;
}
#post.rules-page--career .career-pyramid__grid--1,
#post.rules-page--fantasy-h2h .career-pyramid__grid--1 {
    grid-template-columns: minmax(0, 120px);
    justify-content: center;
}
#post.rules-page--career .career-pyramid__grid--2,
#post.rules-page--fantasy-h2h .career-pyramid__grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 280px;
    margin: 0 auto;
}
#post.rules-page--career .career-pyramid__grid--4,
#post.rules-page--fantasy-h2h .career-pyramid__grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
#post.rules-page--career .career-pyramid__grid--8,
#post.rules-page--fantasy-h2h .career-pyramid__grid--8 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
#post.rules-page--career .career-pyramid__grid--16,
#post.rules-page--fantasy-h2h .career-pyramid__grid--16 {
    grid-template-columns: repeat(8, minmax(0, 1fr));
}
#post.rules-page--career .career-pyramid__cell,
#post.rules-page--fantasy-h2h .career-pyramid__cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 52px;
    padding: 6px 4px;
    border: 1px solid #d4dcf0;
    border-radius: 0.4em;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    text-align: center;
}
#post.rules-page--career .career-pyramid__cell--super,
#post.rules-page--fantasy-h2h .career-pyramid__cell--super {
    border-color: #2028da;
    background: linear-gradient(180deg, #eef0ff, #fff);
}
#post.rules-page--career .career-pyramid__cell--high,
#post.rules-page--fantasy-h2h .career-pyramid__cell--high {
    border-color: #9933cc;
    background: linear-gradient(180deg, #f6eefb, #fff);
}
#post.rules-page--career .career-pyramid__cell--first,
#post.rules-page--fantasy-h2h .career-pyramid__cell--first {
    border-color: #006400;
    background: linear-gradient(180deg, #eef6ee, #fff);
}
#post.rules-page--career .career-pyramid__cell--second,
#post.rules-page--fantasy-h2h .career-pyramid__cell--second {
    border-color: #8B0000;
    background: linear-gradient(180deg, #fbeeee, #fff);
}
#post.rules-page--career .career-pyramid__cell--third,
#post.rules-page--fantasy-h2h .career-pyramid__cell--third {
    border-color: #e65100;
    background: linear-gradient(180deg, #fff3e0, #fff);
}
#post.rules-page--career .career-pyramid__cell-letter,
#post.rules-page--fantasy-h2h .career-pyramid__cell-letter {
    font-size: 102%;
    font-weight: 800;
    line-height: 1;
    color: #334155;
    letter-spacing: 0.04em;
}
#post.rules-page--career .career-pyramid__cell-size,
#post.rules-page--fantasy-h2h .career-pyramid__cell-size {
    font-size: 72%;
    font-weight: 600;
    line-height: 1;
    color: #64748b;
}
#post.rules-page--career .career-pyramid__qualifying,
#post.rules-page--fantasy-h2h .career-pyramid__qualifying {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border: 1px dashed #c5cdd8;
    border-radius: 0.45em;
    background: rgba(255, 255, 255, 0.72);
    text-align: center;
}
#post.rules-page--career .career-pyramid__qualifying-label,
#post.rules-page--fantasy-h2h .career-pyramid__qualifying-label {
    font-size: 84%;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #555;
}
#post.rules-page--career .career-pyramid__qualifying-note,
#post.rules-page--fantasy-h2h .career-pyramid__qualifying-note {
    font-size: 88%;
    line-height: 1.45;
    color: #64748b;
}
@media (hover: none) and (pointer: coarse) and (max-width: 640px) {
    #post.rules-page--career .career-pyramid__grid--4,,
#post.rules-page--fantasy-h2h .career-pyramid__grid--4,
    #post.rules-page--career .career-pyramid__grid--8,
#post.rules-page--fantasy-h2h .career-pyramid__grid--8 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #post.rules-page--career .career-pyramid__grid--16,
#post.rules-page--fantasy-h2h .career-pyramid__grid--16 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (hover: none) and (pointer: coarse) and (max-width: 560px) {
    #post.rules-page--career .rules-section--career-pyramid .career-pyramid,
#post.rules-page--fantasy-h2h .rules-section--career-pyramid .career-pyramid {
        margin: 12px 12px 14px;
        padding: 12px;
    }
    #post.rules-page--career .career-pyramid__tier-head,
#post.rules-page--fantasy-h2h .career-pyramid__tier-head {
        flex-direction: column;
        align-items: stretch;
    }
    #post.rules-page--career .career-pyramid__body,
#post.rules-page--fantasy-h2h .career-pyramid__body {
        padding: 8px 10px;
    }
    #post.rules-page--career .career-pyramid__grid--2,,
#post.rules-page--fantasy-h2h .career-pyramid__grid--2,
    #post.rules-page--career .career-pyramid__grid--4,,
#post.rules-page--fantasy-h2h .career-pyramid__grid--4,
    #post.rules-page--career .career-pyramid__grid--8,,
#post.rules-page--fantasy-h2h .career-pyramid__grid--8,
    #post.rules-page--career .career-pyramid__grid--16,
#post.rules-page--fantasy-h2h .career-pyramid__grid--16 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #post.rules-page--career .career-pyramid__grid--1,
#post.rules-page--fantasy-h2h .career-pyramid__grid--1 {
        grid-template-columns: 1fr;
        max-width: none;
    }
}
