/* ==========================================================================
   8b8t design bridge for CraftingStore
   Part 1: the shop page CSS from 8b8t.me/shop (was inline on that page)
   Part 2: mapping CraftingStore's Bootstrap 3 markup onto the 8b8t look
   ========================================================================== */

/* ==========================================================================
   PART 1 - 8b8t shop page styles
   ========================================================================== */

body.shop-page {
    background: #000 !important;
    min-height: 100vh;
    color: #f5f5f7;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.shop-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 22px;
}

main.shop-section {
    padding: 0 0 100px;
    background: #000;
}

.shop-hero {
    position: relative;
    padding: 100px 0 60px;
    overflow: hidden;
    text-align: center;
    margin: 0 -22px 40px;
}

.shop-hero-bg {
    position: absolute;
    inset: -20px;
    background-image: url('https://www.8b8t.me/assets/renders/shop-hero-v2.png');
    background-size: cover;
    background-position: center;
    filter: brightness(0.52) saturate(0.9);
    transform: scale(1.02);
}

.shop-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.9) 100%);
}

.shop-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.shop-hero-content .hero-badge {
    display: inline-block;
    margin-bottom: 20px;
    padding: 6px 14px;
    border-radius: 980px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f5f5f7;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.shop-hero-content h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    background: linear-gradient(to bottom, #fff, #a1a1a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shop-hero-content p {
    font-size: 18px;
    color: #d2d2d7;
    line-height: 1.6;
    margin-bottom: 0;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 0 auto;
}

.rank-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.rank-card:hover {
    border-color: rgba(41, 151, 255, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.rank-card.featured {
    border-color: rgba(41, 151, 255, 0.3);
    background: rgba(41, 151, 255, 0.05);
}

.rank-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 20px;
}

.popular-badge {
    display: inline-block;
    background: #2997ff;
    color: #fff;
    padding: 4px 12px;
    border-radius: 980px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    align-self: flex-start;
}

.rank-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rank-name {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.rank-price {
    font-size: 36px;
    font-weight: 800;
    color: #2997ff;
    line-height: 1;
}

.rank-price span {
    font-size: 16px;
    font-weight: 500;
    color: #86868b;
}

.rank-price del {
    font-size: 20px;
    font-weight: 500;
    color: #6e6e73;
    margin-right: 6px;
}

.rank-body {
    flex: 1;
    font-size: 14px;
    color: #d2d2d7;
    line-height: 1.6;
    margin: 0 0 28px;
    overflow: hidden;
}

.rank-body ul,
.rank-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rank-body li,
.rank-features li {
    font-size: 14px;
    color: #d2d2d7;
    line-height: 1.5;
}

.rank-features li i {
    color: #2997ff;
    font-size: 12px;
    margin-right: 8px;
}

.purchase-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 16px;
    border-radius: 12px;
    background: linear-gradient(180deg, #3ba2ff 0%, #0a84ff 100%);
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-family: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 16px rgba(10, 132, 255, 0.25);
    overflow: hidden;
    margin-top: auto;
}

.purchase-btn:hover,
.purchase-btn:focus {
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 30px rgba(10, 132, 255, 0.45);
}

.purchase-btn i {
    font-size: 12px;
    transition: transform 0.3s;
}

.purchase-btn:hover i {
    transform: translateX(4px);
}

.shop-section-heading {
    margin: 0 auto 28px;
}

.shop-section-heading h2 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
}

.shop-section-heading p {
    font-size: 15px;
    color: #86868b;
    margin: 0;
}

.card-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 980px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #a1a1a6;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.shop-info {
    max-width: 1100px;
    margin: 90px auto 0;
    padding: 48px 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.shop-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 48px;
}

.shop-info-item {
    text-align: center;
    padding: 8px 32px;
}

.shop-info-item + .shop-info-item {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.shop-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(41, 151, 255, 0.25), rgba(41, 151, 255, 0.08));
    border: 1px solid rgba(41, 151, 255, 0.25);
    color: #2997ff;
    font-size: 18px;
    margin-bottom: 16px;
}

.shop-info-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.shop-info-item p {
    font-size: 13px;
    color: #86868b;
    line-height: 1.6;
    margin: 0;
}

.shop-info-item a {
    color: #2997ff;
    text-decoration: none;
}

.shop-legal {
    text-align: center;
}

.shop-legal p {
    font-size: 13px;
    color: #6e6e73;
    line-height: 1.6;
    margin: 0;
}

.shop-legal a {
    color: #86868b;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.shop-legal a:hover {
    color: #2997ff;
}

.shop-copy {
    font-size: 15px;
    line-height: 1.7;
    color: #d2d2d7;
}

/* ==========================================================================
   PART 2 - CraftingStore compatibility
   ========================================================================== */

.panel,
.panel-default {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 0;
}

.panel > .panel-body {
    padding: 0;
}

.panel-heading {
    background: transparent !important;
    border: none !important;
    color: #fff;
    font-weight: 700;
    padding: 0 0 16px;
}

.item-wrapper {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    padding: 28px !important;
    margin-bottom: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.item-wrapper:hover {
    border-color: rgba(41, 151, 255, 0.4) !important;
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.item-wrapper img {
    border-radius: 12px;
    margin-bottom: 18px;
}

.btn {
    font-family: inherit;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary,
.btn-success {
    background: linear-gradient(180deg, #3ba2ff 0%, #0a84ff 100%) !important;
    border: none !important;
    color: #fff !important;
    padding: 11px 20px;
    font-size: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 16px rgba(10, 132, 255, 0.25);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover {
    background: linear-gradient(180deg, #4fadff 0%, #1a8fff 100%) !important;
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 30px rgba(10, 132, 255, 0.45);
}

.btn-xs {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 10px;
}

.btn-secondary,
.btn-default {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #f5f5f7 !important;
    box-shadow: none !important;
}

.btn-secondary:hover,
.btn-default:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #fff;
    font-weight: 700;
}

p, li, td, label, .help-block {
    color: #d2d2d7;
}

a {
    color: #2997ff;
}

a:hover,
a:focus {
    color: #6bb9ff;
}

hr {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

small,
.text-muted {
    color: #86868b !important;
}

.table {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    color: #d2d2d7;
}

.table > tbody > tr > td,
.table > thead > tr > th {
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 16px 20px;
    vertical-align: middle;
}

.table > thead > tr > th {
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.table-hover > tbody > tr:hover,
.table-striped > tbody > tr:nth-of-type(odd) {
    background: rgba(255, 255, 255, 0.04) !important;
}

.table td.name {
    color: #fff;
    font-weight: 600;
}

.table td.price {
    color: #2997ff;
    font-weight: 700;
}

.table del {
    color: #6e6e73;
    font-weight: 400;
}

.modal-content {
    background: #0b0b0d !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 20px !important;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
    color: #d2d2d7;
}

.modal-header,
.modal-footer {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.modal-title {
    color: #fff;
    font-weight: 700;
}

.modal-header .close {
    color: #fff;
    opacity: 0.6;
    text-shadow: none;
}

.modal-header .close:hover {
    opacity: 1;
}

.modal-backdrop.in {
    opacity: 0.75;
}

.form-control {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    color: #f5f5f7 !important;
    height: auto;
    padding: 12px 16px;
    box-shadow: none !important;
}

.form-control:focus {
    border-color: rgba(41, 151, 255, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.15) !important;
}

.form-control::placeholder {
    color: #6e6e73;
}

.alert {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    color: #d2d2d7;
}

.alert-warning {
    border-color: rgba(255, 159, 10, 0.35);
    background: rgba(255, 159, 10, 0.08);
    color: #ffb340;
}

.alert-success {
    border-color: rgba(52, 199, 89, 0.35);
    background: rgba(52, 199, 89, 0.08);
    color: #4ade80;
}

.alert-danger {
    border-color: rgba(255, 69, 58, 0.35);
    background: rgba(255, 69, 58, 0.08);
    color: #ff6b61;
}

.list-group-item {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #d2d2d7;
}

.well {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: none;
}

.progress {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 980px;
    box-shadow: none;
}

.progress-bar {
    background: linear-gradient(180deg, #3ba2ff 0%, #0a84ff 100%);
}

.col-md-3 .panel,
.col-md-3 .item-wrapper {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    padding: 24px !important;
    margin-bottom: 24px;
}

.header {
    display: none;
}

.dropdown-menu {
    background: #0b0b0d;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 8px;
}

.dropdown-menu > li > a {
    color: #d2d2d7 !important;
    border-radius: 8px;
    padding: 8px 12px;
}

.dropdown-menu > li > a:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}

@media (max-width: 768px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }

    .shop-info-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .shop-info-item + .shop-info-item {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 40px;
    }

    .shop-hero {
        padding: 80px 0 40px;
    }
}


/* ==========================================================================
   PART 3 - fixes after live comparison
   ========================================================================== */

.panel-heading,
.panel-title,
.col-md-3 .panel-heading,
.col-md-3 .panel-heading h1,
.col-md-3 .panel-heading h2,
.col-md-3 .panel-heading h3,
.col-md-3 .panel-heading h4 {
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    opacity: 1 !important;
}

.progress {
    height: 10px;
    overflow: hidden;
}

.progress-bar {
    background-image: none !important;
    background-color: #0a84ff !important;
    box-shadow: none !important;
    color: transparent;
}

.nav-logo img {
    height: 32px !important;
    width: auto !important;
    object-fit: contain;
}

.rank-card .rank-body p,
.rank-card .rank-body div {
    margin: 0 0 8px;
}

.rank-card .rank-body a {
    color: #2997ff;
}

.shop-section-heading h2 {
    font-size: 32px;
}


/* ==========================================================================
   PART 4 - spacing under the sticky nav
   ========================================================================== */

main.shop-section {
    padding-top: 40px;
}

.shop-hero {
    margin-top: -40px;
}

.modal {
    padding-top: 60px;
}

.modal-dialog {
    margin-top: 40px;
}


/* ==========================================================================
   PART 5 - front page tidy + purchase modal redesign
   ========================================================================== */

/* ---- front page copy ---------------------------------------------------- */

.shop-copy {
    max-width: 680px;
    font-size: 15px;
    line-height: 1.75;
    color: #9b9ba0;
    padding-top: 8px;
}

.shop-copy h1,
.shop-copy h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #f0f0ed;
    margin: 44px 0 14px;
}

.shop-copy h1:first-child,
.shop-copy h2:first-child {
    margin-top: 0;
}

.shop-copy h3,
.shop-copy h4 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #e8e8e5;
    margin: 32px 0 10px;
}

.shop-copy p {
    margin: 0 0 14px;
    color: #9b9ba0;
}

.shop-copy strong,
.shop-copy b {
    color: #e8e8e5;
    font-weight: 600;
}

.shop-copy ul,
.shop-copy ol {
    margin: 0 0 18px;
    padding-left: 18px;
}

.shop-copy li {
    margin-bottom: 7px;
    color: #9b9ba0;
}

.shop-copy a {
    color: #4ca3ff;
}

.shop-copy em,
.shop-copy i {
    color: #7d7d84;
}

/* ---- hairline feature grid (replaces the round icon badges) -------------- */

.shop-notes {
    margin-top: 90px;
}

.shop-notes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    margin-bottom: 40px;
}

.shop-note {
    min-height: 185px;
    padding: 25px;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.shop-note-icon {
    color: #4ca3ff;
    font-size: 19px;
    margin-bottom: 35px;
}

.shop-note-label {
    color: #96969d;
    font: 700 11px/1.2 'SFMono-Regular', Consolas, monospace;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.shop-note-value {
    color: #f2f2ee;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

.shop-note-value a {
    color: #4ca3ff;
    text-decoration: none;
}

.shop-note-value a:hover {
    text-decoration: underline;
}

.shop-legal {
    text-align: left;
    padding-top: 4px;
}

.shop-legal p {
    font-size: 13px;
    color: #626267;
}

/* ---- purchase modal ----------------------------------------------------- */

.pkg-modal .modal-dialog {
    width: 620px;
    max-width: calc(100% - 32px);
}

.pkg-modal .modal-content {
    position: relative;
    background: #0a0a0b !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 18px !important;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8);
    padding: 0;
}

.pkg-modal .modal-header {
    padding: 30px 32px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.pkg-modal-kicker {
    color: #4ca3ff;
    font: 700 11px/1.2 'SFMono-Regular', Consolas, monospace;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.pkg-modal .modal-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.035em;
    color: #f5f5f1;
    line-height: 1.1;
    margin: 0 0 10px;
}

.pkg-modal-price {
    font-size: 30px;
    font-weight: 800;
    color: #4ca3ff;
    line-height: 1;
    letter-spacing: -0.03em;
}

.pkg-modal-price span {
    font-size: 14px;
    font-weight: 500;
    color: #86868b;
    letter-spacing: 0;
}

.pkg-modal-price del {
    font-size: 18px;
    font-weight: 500;
    color: #626267;
    margin-right: 6px;
}

.pkg-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #96969d;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pkg-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.pkg-modal .modal-body {
    padding: 26px 32px 8px;
    max-height: 46vh;
    overflow-y: auto;
}

.pkg-desc {
    color: #9b9ba0;
    font-size: 14px;
    line-height: 1.7;
}

/* the store's description repeats the package name as its own heading */
.pkg-desc > h1:first-child,
.pkg-desc > h2:first-child,
.pkg-desc > h3:first-child,
.pkg-desc > h4:first-child {
    display: none;
}

.pkg-desc h1,
.pkg-desc h2,
.pkg-desc h3,
.pkg-desc h4 {
    font-size: 15px;
    font-weight: 600;
    color: #e8e8e5;
    margin: 20px 0 10px;
    letter-spacing: -0.01em;
}

.pkg-desc ul,
.pkg-desc ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pkg-desc li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 9px;
    color: #b6b6bb;
    font-size: 14px;
    line-height: 1.5;
}

.pkg-desc li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 11px;
    color: #4ca3ff;
}

.pkg-desc p {
    margin: 0 0 10px;
}

.pkg-desc a {
    color: #4ca3ff;
}

.pkg-modal .modal-footer {
    padding: 22px 32px 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    text-align: left;
}

.pkg-modal .modal-footer .purchase-btn {
    margin-top: 0;
    margin-bottom: 12px;
}

.purchase-btn-ghost {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #f5f5f7 !important;
    box-shadow: none !important;
}

.purchase-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.pkg-modal-dismiss {
    display: block;
    width: 100%;
    padding: 6px 0 0;
    background: none;
    border: none;
    color: #7d7d84;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.pkg-modal-dismiss:hover {
    color: #e8e8e5;
}

@media (max-width: 768px) {
    .shop-notes-grid {
        grid-template-columns: 1fr;
    }

    .shop-note {
        min-height: 0;
    }

    .pkg-modal .modal-header,
    .pkg-modal .modal-body,
    .pkg-modal .modal-footer {
        padding-left: 22px;
        padding-right: 22px;
    }
}


/* ==========================================================================
   PART 6 - normalise WYSIWYG package descriptions
   The CraftingStore editor bakes inline font sizes and colours into package
   descriptions; strip them so cards and modals keep the 8b8t type scale.
   ========================================================================== */

.pkg-desc [style],
.rank-body [style] {
    font-size: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
    font-family: inherit !important;
    background: none !important;
}

.pkg-desc h1,
.pkg-desc h2,
.pkg-desc h3,
.pkg-desc h4,
.pkg-desc h5 {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #e8e8e5 !important;
    margin: 20px 0 10px !important;
    letter-spacing: -0.01em;
}

.pkg-desc > h1:first-child,
.pkg-desc > h2:first-child,
.pkg-desc > h3:first-child,
.pkg-desc > h4:first-child,
.pkg-desc > p:first-child > strong:only-child {
    display: none !important;
}

.rank-body h1,
.rank-body h2,
.rank-body h3,
.rank-body h4,
.rank-body h5 {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #e8e8e5 !important;
    margin: 0 0 12px !important;
    letter-spacing: 0;
}

.rank-body ul,
.rank-body ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rank-body li,
.rank-body p {
    position: relative;
    color: #b6b6bb !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin: 0 0 9px !important;
}


/* ==========================================================================
   PART 7 - sidebar module cards (front page uses a wider col-md-4 sidebar)
   ========================================================================== */

.col-md-4 .panel,
.col-md-4 .item-wrapper,
.col-md-3 .panel,
.col-md-3 .item-wrapper {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    padding: 24px !important;
    margin-bottom: 24px;
}

.col-md-4 .panel-heading,
.col-md-4 .panel-heading h1,
.col-md-4 .panel-heading h2,
.col-md-4 .panel-heading h3,
.col-md-4 .panel-heading h4 {
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    opacity: 1 !important;
}
