/* Book Tools v1 — scoped to .bt-* classes to avoid Cynoebook theme collisions. */

.bt-page {
    --bt-ink: #172033;
    --bt-muted: #667085;
    --bt-line: #e7eaf0;
    --bt-soft: #f7f8fb;
    --bt-accent: #5b4fcf;
    --bt-accent-2: #7b61ff;
    --bt-green: #157f69;
    --bt-amber: #a15c00;
    color: var(--bt-ink);
    margin-bottom: 42px;
}

.bt-page *,
.bt-home-tools *,
.bt-book-actions * {
    box-sizing: border-box;
}

.bt-hero,
.bt-tool-intro {
    position: relative;
    overflow: hidden;
    margin: 0 0 24px;
    padding: 34px;
    border: 1px solid #e6e4f7;
    border-radius: 22px;
    background:
        radial-gradient(circle at 92% 8%, rgba(123, 97, 255, .16), transparent 31%),
        linear-gradient(135deg, #ffffff 0%, #f7f5ff 100%);
    box-shadow: 0 14px 38px rgba(35, 29, 90, .08);
}

.bt-hero h1,
.bt-tool-intro h1 {
    max-width: 760px;
    margin: 5px 0 12px;
    color: #1f2440;
    font-size: 38px;
    line-height: 1.12;
    font-weight: 700;
}

.bt-hero > p,
.bt-tool-intro > p {
    max-width: 820px;
    margin: 0;
    color: #596178;
    font-size: 17px;
    line-height: 1.75;
}

.bt-eyebrow {
    display: inline-block;
    color: #5b4fcf;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.bt-stat-row,
.bt-inline-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.bt-stat {
    min-width: 150px;
    padding: 14px 16px;
    border: 1px solid rgba(91, 79, 207, .12);
    border-radius: 14px;
    background: rgba(255,255,255,.82);
}

.bt-stat strong {
    display: block;
    color: #302c72;
    font-size: 24px;
    line-height: 1.1;
}

.bt-stat span {
    display: block;
    margin-top: 4px;
    color: #687087;
    font-size: 13px;
}

.bt-inline-facts span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 11px;
    border: 1px solid #dfdcf5;
    border-radius: 999px;
    background: #fff;
    color: #57506e;
    font-size: 13px;
    font-weight: 600;
}

.bt-tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 22px 0 30px;
}

.bt-tool-card {
    position: relative;
    display: flex;
    min-height: 238px;
    flex-direction: column;
    align-items: flex-start;
    padding: 25px;
    border: 1px solid #e4e5ee;
    border-radius: 19px;
    background: #fff;
    color: #1d2638 !important;
    text-decoration: none !important;
    box-shadow: 0 9px 25px rgba(24, 32, 51, .06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.bt-tool-card:hover,
.bt-tool-card:focus {
    transform: translateY(-3px);
    border-color: #bcb5ef;
    box-shadow: 0 15px 34px rgba(40, 33, 102, .12);
    outline: none;
}

.bt-tool-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 14px;
    background: #f3f1ff;
    font-size: 25px;
}

.bt-tool-kicker {
    margin-bottom: 7px;
    color: #6457ca;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bt-tool-card strong {
    display: block;
    margin-bottom: 8px;
    color: #20263b;
    font-size: 19px;
    line-height: 1.35;
}

.bt-tool-card > span:not(.bt-tool-icon):not(.bt-tool-kicker) {
    color: #697185;
    font-size: 14px;
    line-height: 1.65;
}

.bt-tool-card em {
    margin-top: auto;
    padding-top: 18px;
    color: #5145bd;
    font-style: normal;
    font-weight: 700;
}

.bt-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.bt-info-card,
.bt-side-note,
.bt-editorial-copy {
    padding: 23px;
    border: 1px solid var(--bt-line);
    border-radius: 17px;
    background: #fff;
}

.bt-info-card h2,
.bt-side-note h2,
.bt-editorial-copy h2 {
    margin: 0 0 10px;
    color: #222a3f;
    font-size: 18px;
    line-height: 1.35;
}

.bt-info-card p,
.bt-side-note p,
.bt-editorial-copy p,
.bt-side-note li {
    color: #667085;
    font-size: 14px;
    line-height: 1.75;
}

.bt-side-note ul {
    margin: 15px 0 0;
    padding-left: 20px;
}

.bt-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: start;
}

.bt-panel {
    margin-bottom: 24px;
    padding: 26px;
    border: 1px solid var(--bt-line);
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(24, 32, 51, .045);
}

.bt-panel-head {
    margin-bottom: 22px;
}

.bt-panel-head h2 {
    margin: 0 0 6px;
    color: #20283c;
    font-size: 22px;
}

.bt-panel-head p {
    margin: 0;
    color: #697185;
    font-size: 14px;
    line-height: 1.65;
}

.bt-question {
    margin: 0 0 26px;
    padding: 0 0 25px;
    border: 0;
    border-bottom: 1px solid #eceef3;
}

.bt-question:last-of-type {
    margin-bottom: 22px;
}

.bt-question legend {
    display: block;
    width: 100%;
    margin: 0 0 5px;
    padding: 0;
    border: 0;
    color: #1f273a;
    font-size: 17px;
    font-weight: 700;
}

.bt-question-help {
    margin: 0 0 13px;
    color: #7a8193;
    font-size: 12px;
    line-height: 1.55;
}

.bt-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.bt-choice {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.bt-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bt-choice span {
    display: block;
    min-height: 70px;
    padding: 13px 14px;
    border: 1px solid #e3e5eb;
    border-radius: 13px;
    background: #fbfbfd;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.bt-choice strong,
.bt-choice small {
    display: block;
}

.bt-choice strong {
    color: #30364a;
    font-size: 14px;
    line-height: 1.35;
}

.bt-choice small {
    margin-top: 4px;
    color: #7d8495;
    font-size: 11px;
    line-height: 1.35;
}

.bt-choice input:checked + span {
    border-color: #7568d8;
    background: #f4f2ff;
    box-shadow: 0 0 0 2px rgba(91, 79, 207, .09);
}

.bt-choice input:focus + span {
    outline: 2px solid rgba(91,79,207,.25);
    outline-offset: 2px;
}

.bt-primary-btn,
.bt-secondary-btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 11px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.bt-primary-btn {
    padding: 11px 20px;
    background: linear-gradient(135deg, #5447c5, #7864e7);
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(84, 71, 197, .22);
}

.bt-primary-btn[disabled] {
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none;
}

.bt-secondary-btn {
    padding: 9px 16px;
    border: 1px solid #d8d6ec;
    background: #fff;
    color: #554abd !important;
}

.bt-text-btn {
    padding: 0;
    border: 0;
    background: transparent;
    color: #6a5bd0;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.bt-message {
    margin: 18px 0;
    padding: 16px 18px;
    border: 1px solid #dfe4ed;
    border-radius: 13px;
    background: #f8fafc;
    color: #5d6678;
    line-height: 1.6;
}

.bt-message-warn {
    border-color: #f0d8ad;
    background: #fffaf1;
    color: #7b5719;
}

.bt-results {
    margin: 28px 0;
}

.bt-results-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 17px;
}

.bt-results-head h2 {
    margin: 3px 0 0;
    color: #20283d;
    font-size: 24px;
}

.bt-results-count {
    color: #747b8d;
    font-size: 13px;
}

.bt-result-list {
    display: grid;
    gap: 13px;
}

.bt-result-card {
    position: relative;
    display: grid;
    grid-template-columns: 42px 96px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
    border: 1px solid #e5e7ed;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(24, 32, 51, .045);
}

.bt-rank {
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f0eefe;
    color: #5b4fcf;
    font-size: 13px;
    font-weight: 800;
}

.bt-cover {
    display: flex;
    width: 88px;
    min-height: 122px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    background: #f2f3f6;
    color: #7a8090;
    font-size: 28px;
}

.bt-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bt-result-title-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.bt-result-main h3,
.bt-mini-book h3 {
    margin: 0 0 4px;
    font-size: 18px;
    line-height: 1.35;
}

.bt-result-main h3 a,
.bt-mini-book h3 a {
    color: #222a40;
}

.bt-result-main p,
.bt-mini-book p {
    margin: 0;
    color: #747b8b;
    font-size: 13px;
}

.bt-score {
    flex: 0 0 72px;
    text-align: right;
}

.bt-score strong,
.bt-score span {
    display: block;
}

.bt-score strong {
    color: #4e43bb;
    font-size: 23px;
    line-height: 1.05;
}

.bt-score span {
    margin-top: 3px;
    color: #8a90a0;
    font-size: 11px;
    text-transform: uppercase;
}

.bt-score-bar,
.bt-progress-bar {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #eceef4;
}

.bt-score-bar {
    margin: 12px 0;
}

.bt-score-bar span,
.bt-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #5b4fcf, #8f70ec);
    transition: width .25s ease;
}

.bt-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 11px;
}

.bt-tags span {
    padding: 5px 8px;
    border-radius: 999px;
    background: #f5f6f9;
    color: #626a7c;
    font-size: 11px;
}

.bt-reason {
    color: #525b6d !important;
    font-size: 13px !important;
    line-height: 1.65;
}

.bt-result-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 13px;
}

.bt-result-actions > a:not(.bt-secondary-btn) {
    color: #6658ca;
    font-size: 13px;
    font-weight: 700;
}

.bt-search-label {
    display: block;
    margin-bottom: 7px;
    color: #333a4d;
    font-size: 13px;
    font-weight: 700;
}

.bt-search-wrap {
    position: relative;
}

.bt-search-input {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 10px 120px 10px 14px;
    border: 1px solid #dfe2e9;
    border-radius: 12px;
    background: #fff;
    color: #222a3d;
    font-size: 15px;
}

.bt-search-input:focus {
    border-color: #7669d9;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(91, 79, 207, .1);
}

.bt-search-spinner {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: #8a90a0;
    font-size: 11px;
}

.bt-search-results {
    position: relative;
    z-index: 30;
    max-height: 340px;
    overflow-y: auto;
    margin-top: 7px;
    border: 1px solid #e1e4eb;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(24, 32, 51, .12);
}

.bt-search-result {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border: 0;
    border-bottom: 1px solid #eff0f3;
    background: #fff;
    color: #273047;
    text-align: left;
    cursor: pointer;
}

.bt-search-result:last-child {
    border-bottom: 0;
}

.bt-search-result:hover,
.bt-search-result:focus {
    background: #f7f6ff;
    outline: 0;
}

.bt-search-thumb {
    display: flex;
    width: 38px;
    height: 52px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 5px;
    background: #f0f1f5;
}

.bt-search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bt-search-result strong,
.bt-search-result small {
    display: block;
}

.bt-search-result strong {
    font-size: 13px;
}

.bt-search-result small {
    margin-top: 2px;
    color: #7d8494;
    font-size: 11px;
}

.bt-selected-books {
    display: grid;
    gap: 9px;
    margin: 16px 0;
}

.bt-selected-book {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border: 1px solid #e3e5ec;
    border-radius: 11px;
    background: #fafbfc;
}

.bt-selected-book > div {
    min-width: 0;
    flex: 1;
}

.bt-selected-book strong,
.bt-selected-book small {
    display: block;
}

.bt-selected-book strong {
    overflow: hidden;
    color: #30364b;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bt-selected-book small {
    margin-top: 2px;
    color: #808697;
    font-size: 11px;
}

.bt-remove-book {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: #efeff5;
    color: #6e7482;
    cursor: pointer;
}

.bt-compare-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 17px;
}

.bt-mini-book {
    display: flex;
    gap: 12px;
    min-width: 0;
    padding: 13px;
    border: 1px solid #e6e8ee;
    border-radius: 14px;
    background: #fff;
}

.bt-mini-book .bt-cover {
    width: 58px;
    min-width: 58px;
    min-height: 82px;
}

.bt-mini-book h3 {
    font-size: 14px;
}

.bt-mini-book span {
    display: block;
    margin-top: 7px;
    color: #5e55b8;
    font-size: 11px;
    font-weight: 700;
}

.bt-insight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.bt-insight {
    padding: 13px;
    border: 1px solid #e7e6f5;
    border-radius: 12px;
    background: #f9f8ff;
}

.bt-insight span,
.bt-insight strong {
    display: block;
}

.bt-insight span {
    margin-bottom: 5px;
    color: #777d90;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.bt-insight strong {
    color: #39335f;
    font-size: 12px;
    line-height: 1.45;
}

.bt-table-scroll {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e4e6eb;
    border-radius: 14px;
    -webkit-overflow-scrolling: touch;
}

.bt-compare-table {
    width: 100%;
    min-width: 690px;
    margin: 0;
    border-collapse: collapse;
    background: #fff;
}

.bt-compare-table th,
.bt-compare-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #eceef2;
    color: #4e5668;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
    vertical-align: top;
}

.bt-compare-table thead th {
    background: #f7f8fb;
    color: #333b50;
    font-size: 12px;
    font-weight: 700;
}

.bt-compare-table tbody th {
    width: 180px;
    background: #fbfbfd;
    color: #444c60;
    font-weight: 700;
}

.bt-compare-table tr:last-child th,
.bt-compare-table tr:last-child td {
    border-bottom: 0;
}

.bt-method-note {
    margin: 12px 0 0;
    color: #818797;
    font-size: 11px;
    line-height: 1.55;
}

.bt-tracker {
    margin: 24px 0;
}

.bt-tracker-book {
    margin-bottom: 14px;
}

.bt-tracker-book .bt-selected-book {
    padding: 14px;
    background: #fff;
}

.bt-progress-card {
    padding: 22px;
    border: 1px solid #dedcf3;
    border-radius: 18px;
    background: linear-gradient(135deg, #fbfaff, #f4f2ff);
}

.bt-progress-top {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 12px;
}

.bt-progress-top span,
.bt-progress-top strong {
    display: block;
}

.bt-progress-top span {
    color: #73798b;
    font-size: 12px;
}

.bt-progress-top strong {
    margin-top: 2px;
    color: #42399f;
    font-size: 28px;
}

.bt-progress-pages {
    align-self: flex-end;
    color: #5c6374;
    font-size: 13px;
    font-weight: 700;
}

.bt-progress-bar {
    height: 11px;
}

.bt-progress-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.bt-progress-metrics > div {
    padding: 12px;
    border-radius: 11px;
    background: rgba(255,255,255,.8);
}

.bt-progress-metrics span,
.bt-progress-metrics strong {
    display: block;
}

.bt-progress-metrics span {
    margin-bottom: 4px;
    color: #858b9a;
    font-size: 10px;
    text-transform: uppercase;
}

.bt-progress-metrics strong {
    color: #333a4e;
    font-size: 13px;
}

.bt-tracker-form {
    margin-top: 14px;
    padding: 20px;
    border: 1px solid #e5e7ed;
    border-radius: 16px;
    background: #fff;
}

.bt-form-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.bt-form-row label {
    margin: 0;
}

.bt-form-row label > span {
    display: block;
    margin-bottom: 6px;
    color: #4b5366;
    font-size: 12px;
    font-weight: 700;
}

.bt-form-row input {
    display: block;
    width: 100%;
    min-height: 43px;
    padding: 8px 10px;
    border: 1px solid #dfe2e8;
    border-radius: 10px;
    background: #fff;
}

.bt-form-row small {
    display: block;
    margin-top: 5px;
    color: #8a90a0;
    font-size: 10px;
    line-height: 1.35;
}

.bt-history {
    margin-top: 22px;
    padding: 20px;
    border: 1px solid #e5e7ed;
    border-radius: 16px;
    background: #fff;
}

.bt-history-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.bt-history-summary span {
    padding: 6px 9px;
    border-radius: 999px;
    background: #f4f5f8;
    color: #656c7d;
    font-size: 11px;
}

.bt-editorial-copy {
    margin-top: 28px;
}

.bt-editorial-copy p:last-child {
    margin-bottom: 0;
}

.bt-home-tools {
    margin: 26px 0 32px;
}

.bt-home-tools-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.bt-home-tools-head h2 {
    margin: 3px 0 0;
    color: #252d42;
    font-size: 24px;
}

.bt-home-tools-head > a {
    color: #5b4fcf;
    font-size: 13px;
    font-weight: 700;
}

.bt-home-tools .bt-tool-grid {
    margin: 0;
}

.bt-book-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 20px;
    padding: 15px 18px;
    border: 1px solid #e1def6;
    border-radius: 14px;
    background: linear-gradient(135deg, #faf9ff, #f4f2ff);
}

.bt-book-actions strong,
.bt-book-actions span {
    display: block;
}

.bt-book-actions strong {
    color: #332d65;
    font-size: 14px;
}

.bt-book-actions span {
    margin-top: 3px;
    color: #74778b;
    font-size: 11px;
}

.bt-book-actions-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.bt-book-actions-links a {
    display: inline-flex;
    min-height: 35px;
    align-items: center;
    padding: 7px 10px;
    border: 1px solid #d7d2f3;
    border-radius: 9px;
    background: #fff;
    color: #5549bd !important;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none !important;
}

.bt-loading {
    opacity: .58;
    pointer-events: none;
}

@media (max-width: 991px) {
    .bt-tool-grid,
    .bt-info-grid {
        grid-template-columns: 1fr;
    }

    .bt-tool-card {
        min-height: 0;
    }

    .bt-two-column {
        grid-template-columns: 1fr;
    }

    .bt-side-note {
        order: -1;
    }

    .bt-compare-cards,
    .bt-insight-grid {
        grid-template-columns: 1fr;
    }

    .bt-form-row,
    .bt-progress-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .bt-page {
        margin-bottom: 28px;
    }

    .bt-hero,
    .bt-tool-intro {
        padding: 24px 18px;
        border-radius: 17px;
    }

    .bt-hero h1,
    .bt-tool-intro h1 {
        font-size: 29px;
    }

    .bt-hero > p,
    .bt-tool-intro > p {
        font-size: 15px;
    }

    .bt-panel {
        padding: 18px 14px;
        border-radius: 15px;
    }

    .bt-choice-grid {
        grid-template-columns: 1fr;
    }

    .bt-result-card {
        grid-template-columns: 34px 72px minmax(0, 1fr);
        gap: 10px;
        padding: 13px;
    }

    .bt-rank {
        width: 32px;
        height: 32px;
    }

    .bt-result-card .bt-cover {
        width: 70px;
        min-height: 98px;
    }

    .bt-result-title-row {
        display: block;
    }

    .bt-score {
        margin-top: 8px;
        text-align: left;
    }

    .bt-score strong,
    .bt-score span {
        display: inline;
        margin-right: 4px;
    }

    .bt-result-actions {
        flex-wrap: wrap;
    }

    .bt-results-head,
    .bt-home-tools-head,
    .bt-book-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .bt-book-actions-links {
        justify-content: flex-start;
    }

    .bt-stat {
        flex: 1 1 130px;
    }
}

@media (max-width: 480px) {
    .bt-result-card {
        grid-template-columns: 1fr;
    }

    .bt-rank {
        position: absolute;
        top: 13px;
        left: 13px;
        z-index: 2;
    }

    .bt-result-card .bt-cover {
        width: 94px;
        min-height: 130px;
        margin-left: 0;
    }

    .bt-search-input {
        padding-right: 14px;
    }

    .bt-search-spinner {
        display: none !important;
    }
}


/* Book Tools v2 — richer catalog-specific editorial sections. */
.bt-hero-copy + .bt-hero-copy {
    margin-top: 13px !important;
}

.bt-copy-section {
    margin: 30px 0;
}

.bt-section-heading {
    margin-bottom: 15px;
}

.bt-section-heading h2 {
    margin: 5px 0 0;
    color: #20283d;
    font-size: 25px;
    line-height: 1.3;
}

.bt-info-card h3,
.bt-copy-card h3,
.bt-note-card h3,
.bt-related-head h3 {
    margin: 0 0 9px;
    color: #222a3f;
    font-size: 17px;
    line-height: 1.4;
}

.bt-rich-note {
    position: sticky;
    top: 18px;
    padding: 24px;
}

.bt-rich-note > p + p,
.bt-rich-section > p + p {
    margin-top: 11px;
}

.bt-note-card-stack {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.bt-note-card {
    padding: 14px;
    border: 1px solid #e7e4f4;
    border-radius: 13px;
    background: linear-gradient(145deg, #fbfaff, #fff);
}

.bt-note-card p,
.bt-copy-card p {
    margin: 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.7;
}

.bt-rich-section {
    margin-top: 28px;
    padding: 28px;
    background:
        radial-gradient(circle at 96% 4%, rgba(123,97,255,.08), transparent 25%),
        #fff;
}

.bt-copy-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.bt-copy-card {
    padding: 18px;
    border: 1px solid #e5e6ef;
    border-radius: 15px;
    background: #fbfbfd;
}

.bt-related-block {
    margin-top: 24px;
    padding-top: 21px;
    border-top: 1px solid #eaebf1;
}

.bt-related-head {
    margin-bottom: 12px;
}

.bt-related-head h3 {
    margin-top: 4px;
    font-size: 18px;
}

.bt-related-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.bt-related-link {
    display: block;
    padding: 13px 14px;
    border: 1px solid #e4e5ed;
    border-radius: 12px;
    background: #fff;
    color: #252d42 !important;
    text-decoration: none !important;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.bt-related-link:hover,
.bt-related-link:focus {
    transform: translateY(-1px);
    border-color: #beb7ed;
    box-shadow: 0 8px 18px rgba(40,33,102,.08);
}

.bt-related-link strong,
.bt-related-link span,
.bt-related-link small {
    display: block;
}

.bt-related-link strong {
    color: #2a3047;
    font-size: 14px;
    line-height: 1.4;
}

.bt-related-link span {
    margin-top: 3px;
    color: #70788a;
    font-size: 12px;
}

.bt-related-link small {
    margin-top: 5px;
    color: #6658ca;
    font-size: 11px;
}

.bt-footer-tools {
    margin-top: 8px;
    text-align: center;
}

.bt-footer-tools a {
    display: inline-block;
    margin: 3px 7px;
    color: rgba(255,255,255,.82) !important;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none !important;
}

.bt-footer-tools a:hover,
.bt-footer-tools a:focus {
    color: #fff !important;
    text-decoration: underline !important;
}

@media (max-width: 991px) {
    .bt-rich-note {
        position: static;
    }

    .bt-copy-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .bt-rich-section {
        padding: 20px;
    }

    .bt-related-links {
        grid-template-columns: 1fr;
    }
}


/* Book Tools v2.2 — stronger editorial color without looking aggressive. */
.bt-rich-section {
    border: 1px solid #e5e1f6;
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0, rgba(123,97,255,.10), transparent 28%),
        linear-gradient(180deg, #fdfcff 0%, #ffffff 100%);
    box-shadow: 0 10px 28px rgba(34, 28, 82, .05);
}

.bt-copy-card {
    position: relative;
    overflow: hidden;
    border-color: #e2e4ef;
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfe 100%);
    box-shadow: 0 8px 20px rgba(24, 32, 51, .04);
}

.bt-copy-card:before {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    content: "";
    background: linear-gradient(90deg, #6658ca, #8f70ec);
    opacity: .95;
}

.bt-copy-card:nth-child(3n+1) { background: linear-gradient(180deg, #ffffff 0%, #faf8ff 100%); }
.bt-copy-card:nth-child(3n+2) { background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%); }
.bt-copy-card:nth-child(3n+3) { background: linear-gradient(180deg, #ffffff 0%, #fffafb 100%); }

.bt-related-head h3 {
    font-size: 20px;
}

.bt-related-links {
    gap: 12px;
}

.bt-related-link {
    position: relative;
    padding: 15px 16px;
    border-color: #e1e4ef;
    background: linear-gradient(180deg, #fff 0%, #fcfcfe 100%);
    box-shadow: 0 6px 16px rgba(24, 32, 51, .035);
}

.bt-related-link:before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    content: "";
    border-radius: 12px 0 0 12px;
    background: linear-gradient(180deg, #6455c7, #db6aa5);
    opacity: .88;
}

.bt-related-link strong {
    padding-left: 4px;
}

.bt-related-link span,
.bt-related-link small {
    padding-left: 4px;
}

.bt-footer-panel {
    margin: 8px 0 0;
    padding: 16px 18px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 14px;
    background: rgba(255,255,255,.05);
    text-align: center;
}

.bt-footer-panel strong,
.bt-footer-panel span {
    display: block;
}

.bt-footer-panel strong {
    color: #fff;
    font-size: 15px;
}

.bt-footer-panel span {
    margin-top: 5px;
    color: rgba(255,255,255,.82);
    font-size: 13px;
    line-height: 1.65;
}

.bt-footer-panel__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.bt-footer-panel__links a {
    display: inline-flex;
    min-height: 33px;
    align-items: center;
    padding: 7px 11px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
}

.bt-footer-panel__links a:hover,
.bt-footer-panel__links a:focus {
    background: rgba(255,255,255,.16);
}


/* Book Tools v2.3 — restrained editorial accents inspired by the book content panels. */
.bt-rich-section {
    position: relative;
    overflow: hidden;
    border: 1px solid #e1dcf4 !important;
    border-radius: 18px !important;
    background:
        radial-gradient(circle at 100% 0, rgba(102, 82, 204, .08), transparent 30%),
        linear-gradient(180deg, #fff 0%, #fdfcff 100%) !important;
    box-shadow: 0 12px 30px rgba(41, 34, 92, .055);
}

.bt-rich-section:before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    content: "";
    background: linear-gradient(90deg, #6954dc 0%, #8d55d7 52%, #d72b8a 100%);
}

.bt-rich-section > .bt-eyebrow {
    margin-top: 3px;
}

.bt-copy-card-grid {
    gap: 16px !important;
}

.bt-copy-card {
    position: relative;
    min-height: 150px;
    overflow: hidden;
    padding: 20px 19px 19px 21px !important;
    border: 1px solid #e2dff0 !important;
    border-radius: 15px !important;
    background: #fff !important;
    box-shadow: 0 8px 18px rgba(35, 31, 76, .035);
}

.bt-copy-card:before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    content: "";
    background: linear-gradient(180deg, #6550d7, #a451d4);
}

.bt-copy-card:nth-child(3n+2) {
    background: linear-gradient(145deg, #fff 0%, #fbf9ff 100%) !important;
}

.bt-copy-card:nth-child(3n+2):before {
    background: linear-gradient(180deg, #6157d8, #607fdc);
}

.bt-copy-card:nth-child(3n+3) {
    background: linear-gradient(145deg, #fff 0%, #fff9fc 100%) !important;
}

.bt-copy-card:nth-child(3n+3):before {
    background: linear-gradient(180deg, #8d52cf, #d33287);
}

.bt-copy-card h3 {
    color: #252242 !important;
    font-size: 17px !important;
}

.bt-copy-card p {
    color: #5f667a !important;
    font-size: 13.5px !important;
    line-height: 1.75 !important;
}

.bt-related-block {
    margin-top: 27px !important;
    padding-top: 23px !important;
    border-top-color: #e6e1f2 !important;
}

.bt-related-head .bt-eyebrow {
    color: #684fd2 !important;
}

.bt-related-links {
    gap: 12px !important;
}

.bt-related-link {
    position: relative;
    overflow: hidden;
    padding: 15px 16px 15px 19px !important;
    border: 1px solid #e0ddec !important;
    border-radius: 13px !important;
    background: linear-gradient(145deg, #fff 0%, #fdfcff 100%) !important;
    box-shadow: 0 6px 16px rgba(35, 31, 76, .03);
}

.bt-related-link:before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    content: "";
    background: linear-gradient(180deg, #6653d7, #cf348c);
}

.bt-related-link:nth-child(4n+2):before {
    background: linear-gradient(180deg, #4f6fd2, #7454d6);
}

.bt-related-link:nth-child(4n+3):before {
    background: linear-gradient(180deg, #7b4dd0, #d05495);
}

.bt-related-link:nth-child(4n+4):before {
    background: linear-gradient(180deg, #5965ca, #9f4fc8);
}

.bt-related-link:hover,
.bt-related-link:focus {
    border-color: #bcb2e4 !important;
    background: #fff !important;
    box-shadow: 0 10px 22px rgba(51, 42, 112, .08) !important;
}

.bt-related-link strong {
    color: #242942 !important;
}

.bt-related-link small {
    color: #6654ce !important;
}

@media (max-width: 767px) {
    .bt-copy-card {
        min-height: 0;
        padding: 18px 16px 18px 19px !important;
    }
}
