.bcg-page {
    color: var(--sx-ink, #08192d);
}

.bcg-page *,
.bcg-page *:before,
.bcg-page *:after {
    box-sizing: border-box;
}

.bcg-kicker {
    color: var(--sx-accent, #f97316);
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

.bcg-hero {
    align-items: center;
    background:
        linear-gradient(115deg, rgba(15, 118, 110, 0.12), transparent 42%),
        linear-gradient(245deg, rgba(249, 115, 22, 0.13), transparent 38%),
        #ffffff;
    border: 1px solid rgba(15, 118, 110, 0.16);
    border-radius: 8px;
    box-shadow: var(--sx-shadow, 0 18px 50px rgba(20, 33, 61, 0.08));
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
    overflow: hidden;
    padding: 36px;
    position: relative;
}

.bcg-hero:before {
    background:
        linear-gradient(90deg, rgba(15, 118, 110, 0.05) 1px, transparent 1px),
        linear-gradient(180deg, rgba(20, 33, 61, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.bcg-hero-copy,
.bcg-hero-panel {
    position: relative;
    z-index: 1;
}

.bcg-hero h1 {
    color: var(--sx-ink, #08192d);
    font-family: var(--sx-font-heading, inherit);
    font-size: 46px;
    font-weight: 800;
    line-height: 1.08;
    margin: 12px 0 14px;
    max-width: 780px;
}

.bcg-hero p {
    color: #475569;
    font-size: 17px;
    line-height: 1.75;
    margin: 0;
    max-width: 760px;
}

.bcg-hero-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.bcg-primary-link,
.bcg-secondary-link {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    font-size: 14px;
    font-weight: 800;
    gap: 8px;
    line-height: 1.2;
    min-height: 42px;
    padding: 10px 14px;
    text-decoration: none !important;
}

.bcg-primary-link {
    background: linear-gradient(135deg, #0f766e, #0ea5a4);
    border: 1px solid rgba(15, 118, 110, 0.42);
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.22);
    color: #ffffff !important;
}

.bcg-primary-link:hover,
.bcg-primary-link:focus {
    background: linear-gradient(135deg, #115e59, #0f766e);
    color: #ffffff !important;
}

.bcg-secondary-link {
    color: var(--sx-primary-dark, #075e58) !important;
    padding-left: 0;
}

.bcg-secondary-link:hover,
.bcg-secondary-link:focus {
    color: var(--sx-accent, #f97316) !important;
}

.bcg-secondary-link .fa {
    font-size: 13px;
    margin-left: 2px;
}

.bcg-hero-panel {
    background: rgba(8, 25, 45, 0.94);
    border: 1px solid rgba(94, 234, 212, 0.22);
    border-radius: 8px;
    color: #ffffff;
    display: grid;
    gap: 12px;
    padding: 18px;
}

.bcg-hero-panel div {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 16px;
}

.bcg-hero-panel span {
    color: #5eead4;
    display: block;
    font-family: var(--sx-font-heading, inherit);
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
}

.bcg-hero-panel strong {
    color: rgba(255, 255, 255, 0.84);
    font-size: 12px;
    text-transform: uppercase;
}

.bcg-tool,
.bcg-output-section,
.bcg-content-block,
.bcg-use-cases,
.bcg-how,
.bcg-faq,
.bcg-related {
    margin-top: 26px;
}

.bcg-tool,
.bcg-output-section,
.bcg-content-block,
.bcg-use-cases,
.bcg-how,
.bcg-faq,
.bcg-related {
    background: var(--sx-surface, #ffffff);
    border: 1px solid var(--sx-line, #dbe6ef);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(20, 33, 61, 0.06);
    padding: 24px;
}

.bcg-tool-head,
.bcg-section-head {
    align-items: flex-end;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.bcg-section-head {
    align-items: flex-start;
    display: block;
    max-width: 850px;
}

.bcg-tool-head h2,
.bcg-section-head h2,
.bcg-content-block h2,
.bcg-how h2 {
    color: var(--sx-ink, #08192d);
    font-family: var(--sx-font-heading, inherit);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    margin: 8px 0 0;
}

.bcg-section-head p,
.bcg-how p {
    color: var(--sx-muted, #475569);
    font-size: 15px;
    line-height: 1.7;
    margin: 10px 0 0;
}

.bcg-tool-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bcg-print-btn,
.bcg-secondary-btn,
.bcg-generate-btn,
.bcg-clear-btn {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    min-height: 40px;
    padding: 9px 13px;
}

.bcg-print-btn,
.bcg-generate-btn {
    background: var(--sx-primary, #0f766e);
    border: 1px solid var(--sx-primary, #0f766e);
    color: #ffffff;
}

.bcg-print-btn:hover,
.bcg-print-btn:focus,
.bcg-generate-btn:hover,
.bcg-generate-btn:focus {
    background: var(--sx-primary-dark, #075e58);
    border-color: var(--sx-primary-dark, #075e58);
    color: #ffffff;
}

.bcg-secondary-btn,
.bcg-clear-btn {
    background: #f8fbfc;
    border: 1px solid var(--sx-line, #dbe6ef);
    color: var(--sx-primary-dark, #075e58);
}

.bcg-secondary-btn:hover,
.bcg-secondary-btn:focus,
.bcg-clear-btn:hover,
.bcg-clear-btn:focus {
    background: #eef8f7;
    color: var(--sx-primary-dark, #075e58);
}

.bcg-editor-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 0.55fr);
    margin-top: 20px;
}

.bcg-panel,
.bcg-caller {
    background: #f8fbfc;
    border: 1px solid rgba(15, 118, 110, 0.12);
    border-radius: 8px;
    min-width: 0;
    padding: 18px;
}

.bcg-field-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bcg-input-row label,
.bcg-label {
    color: var(--sx-ink, #08192d);
    display: block;
    font-weight: 800;
    margin-bottom: 8px;
}

.bcg-input-row input,
.bcg-input-row select,
.bcg-input-row textarea {
    background: #ffffff;
    border: 1px solid var(--sx-line, #dbe6ef);
    border-radius: 8px;
    color: var(--sx-ink, #08192d);
    display: block;
    font-size: 14px;
    min-height: 46px;
    padding: 10px 12px;
    width: 100%;
}

.bcg-input-row textarea {
    line-height: 1.55;
    min-height: 260px;
    resize: vertical;
}

.bcg-input-row input:focus,
.bcg-input-row select:focus,
.bcg-input-row textarea:focus {
    border-color: var(--sx-primary, #0f766e);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
    outline: 0;
}

.bcg-input-row p {
    color: var(--sx-muted, #475569);
    font-size: 13px;
    line-height: 1.6;
    margin: 8px 0 0;
}

.bcg-control-group {
    margin-top: 18px;
}

.bcg-option-grid,
.bcg-theme-options {
    background: #ffffff;
    border: 1px solid var(--sx-line, #dbe6ef);
    border-radius: 8px;
    display: grid;
    gap: 6px;
    padding: 6px;
}

.bcg-option-grid {
    grid-template-columns: repeat(3, 1fr);
}

.bcg-theme-options {
    grid-template-columns: repeat(4, 1fr);
}

.bcg-option-grid button,
.bcg-theme-options button {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: var(--sx-primary-dark, #075e58);
    font-weight: 800;
    min-height: 38px;
    padding: 8px 10px;
}

.bcg-option-grid button.is-active,
.bcg-theme-options button.is-active,
.bcg-option-grid button:hover,
.bcg-theme-options button:hover,
.bcg-option-grid button:focus,
.bcg-theme-options button:focus {
    background: var(--sx-primary, #0f766e);
    color: #ffffff;
    outline: 0;
}

.bcg-checkbox {
    align-items: center;
    align-self: end;
    background: #ffffff;
    border: 1px solid var(--sx-line, #dbe6ef);
    border-radius: 8px;
    color: var(--sx-ink, #08192d);
    display: flex;
    font-weight: 800;
    gap: 10px;
    min-height: 46px;
    padding: 10px 12px;
}

.bcg-checkbox input {
    margin: 0;
}

.bcg-preset-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.bcg-preset-row button {
    background: #eef8f7;
    border: 1px solid rgba(15, 118, 110, 0.16);
    border-radius: 999px;
    color: var(--sx-primary-dark, #075e58);
    font-size: 12px;
    font-weight: 800;
    min-height: 34px;
    padding: 7px 11px;
}

.bcg-preset-row button:hover,
.bcg-preset-row button:focus {
    background: var(--sx-primary, #0f766e);
    color: #ffffff;
}

.bcg-generate-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.bcg-alert {
    color: var(--sx-muted, #475569);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    margin-top: 12px;
    min-height: 20px;
}

.bcg-alert.is-error {
    color: #b91c1c;
}

.bcg-alert.is-success {
    color: var(--sx-primary-dark, #075e58);
}

.bcg-caller {
    background:
        linear-gradient(180deg, rgba(15, 118, 110, 0.06), transparent 44%),
        #ffffff;
}

.bcg-caller h3 {
    color: var(--sx-ink, #08192d);
    font-family: var(--sx-font-heading, inherit);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    margin: 8px 0 8px;
}

.bcg-caller p {
    color: var(--sx-muted, #475569);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.bcg-call-display {
    align-items: center;
    background: #08192d;
    border-radius: 8px;
    color: #ffffff;
    display: flex;
    font-family: var(--sx-font-heading, inherit);
    font-size: 24px;
    font-weight: 800;
    justify-content: center;
    line-height: 1.2;
    margin-top: 18px;
    min-height: 112px;
    padding: 16px;
    text-align: center;
}

.bcg-call-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 12px;
}

.bcg-call-actions button {
    background: #f8fbfc;
    border: 1px solid var(--sx-line, #dbe6ef);
    border-radius: 6px;
    color: var(--sx-primary-dark, #075e58);
    font-weight: 800;
    min-height: 38px;
}

.bcg-call-actions button:first-child {
    background: var(--sx-primary, #0f766e);
    border-color: var(--sx-primary, #0f766e);
    color: #ffffff;
}

.bcg-call-list {
    display: grid;
    gap: 7px;
    list-style-position: inside;
    margin: 14px 0 0;
    max-height: 320px;
    overflow: auto;
    padding: 0;
}

.bcg-call-list li {
    background: #f8fbfc;
    border: 1px solid var(--sx-line, #dbe6ef);
    border-radius: 6px;
    color: var(--sx-ink, #08192d);
    font-size: 13px;
    line-height: 1.35;
    padding: 8px 9px;
}

.bcg-card-output {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.bcg-card {
    --bcg-card-accent: #0f766e;
    background: #ffffff;
    border: 1px solid var(--sx-line, #dbe6ef);
    border-top: 5px solid var(--bcg-card-accent);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(20, 33, 61, 0.06);
    min-width: 0;
    padding: 16px;
}

.bcg-card.is-classroom {
    --bcg-card-accent: #2563eb;
}

.bcg-card.is-party {
    --bcg-card-accent: #f97316;
}

.bcg-card.is-minimal {
    --bcg-card-accent: #08192d;
}

.bcg-card-title {
    color: var(--sx-ink, #08192d);
    font-family: var(--sx-font-heading, inherit);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 10px;
    text-align: center;
}

.bcg-card-head,
.bcg-card-grid {
    display: grid;
    gap: 4px;
}

.bcg-card-head {
    margin-bottom: 4px;
}

.bcg-card-head span {
    align-items: center;
    background: var(--bcg-card-accent);
    border-radius: 5px;
    color: #ffffff;
    display: flex;
    font-family: var(--sx-font-heading, inherit);
    font-size: 17px;
    font-weight: 800;
    justify-content: center;
    min-height: 32px;
}

.bcg-cell {
    align-items: center;
    background: #f8fbfc;
    border: 1px solid var(--sx-line, #dbe6ef);
    border-radius: 5px;
    color: var(--sx-ink, #08192d);
    display: flex;
    font-size: clamp(10px, 1.1vw, 13px);
    font-weight: 700;
    justify-content: center;
    line-height: 1.25;
    min-height: 72px;
    overflow-wrap: anywhere;
    padding: 7px;
    text-align: center;
}

.bcg-cell.is-free {
    background: #eef8f7;
    color: var(--sx-primary-dark, #075e58);
    font-weight: 800;
    text-transform: uppercase;
}

.bcg-benefit-grid,
.bcg-use-grid,
.bcg-related-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 18px;
}

.bcg-benefit-grid article,
.bcg-use-grid article {
    background: #f8fbfc;
    border: 1px solid rgba(15, 118, 110, 0.14);
    border-radius: 8px;
    padding: 18px;
}

.bcg-benefit-grid h3,
.bcg-use-grid h3 {
    color: var(--sx-ink, #08192d);
    font-family: var(--sx-font-heading, inherit);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 8px;
}

.bcg-benefit-grid p,
.bcg-use-grid p {
    color: var(--sx-muted, #475569);
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
}

.bcg-use-cases {
    background:
        linear-gradient(135deg, rgba(238, 242, 255, 0.92), rgba(240, 253, 250, 0.94)),
        #ffffff;
    border-color: rgba(129, 140, 248, 0.28);
}

.bcg-how {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
}

.bcg-step-list {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bcg-step-list li {
    align-items: flex-start;
    border-bottom: 1px solid var(--sx-line, #dbe6ef);
    color: var(--sx-ink, #08192d);
    display: flex;
    font-size: 14px;
    gap: 12px;
    line-height: 1.55;
    padding: 0 0 10px;
}

.bcg-step-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.bcg-step-list span {
    align-items: center;
    background: var(--sx-primary, #0f766e);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    flex: 0 0 26px;
    font-size: 12px;
    font-weight: 800;
    height: 26px;
    justify-content: center;
    margin-top: 1px;
    width: 26px;
}

.bcg-faq-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.bcg-faq-list details {
    background: #f8fbfc;
    border: 1px solid var(--sx-line, #dbe6ef);
    border-radius: 8px;
    padding: 15px 16px;
}

.bcg-faq-list summary {
    color: var(--sx-ink, #08192d);
    cursor: pointer;
    font-family: var(--sx-font-heading, inherit);
    font-size: 16px;
    font-weight: 800;
}

.bcg-faq-list p {
    color: var(--sx-muted, #475569);
    font-size: 14px;
    line-height: 1.65;
    margin: 10px 0 0;
}

.bcg-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bcg-related-grid a {
    align-items: center;
    background: #f8fbfc;
    border: 1px solid rgba(15, 118, 110, 0.14);
    border-radius: 8px;
    color: var(--sx-primary-dark, #075e58) !important;
    display: flex;
    font-weight: 800;
    justify-content: space-between;
    min-height: 58px;
    padding: 14px 16px;
    text-decoration: none !important;
}

.bcg-related-grid a:hover,
.bcg-related-grid a:focus {
    background: var(--sx-primary, #0f766e);
    color: #ffffff !important;
}

@media (max-width: 991px) {
    .bcg-hero,
    .bcg-editor-grid,
    .bcg-how {
        grid-template-columns: 1fr;
    }

    .bcg-hero h1 {
        font-size: 38px;
    }

    .bcg-benefit-grid,
    .bcg-use-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .bcg-page {
        margin-top: 24px;
    }

    .bcg-hero,
    .bcg-tool,
    .bcg-output-section,
    .bcg-content-block,
    .bcg-use-cases,
    .bcg-how,
    .bcg-faq,
    .bcg-related {
        padding: 18px;
    }

    .bcg-hero h1 {
        font-size: 31px;
    }

    .bcg-hero p {
        font-size: 15px;
    }

    .bcg-tool-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .bcg-tool-actions,
    .bcg-tool-actions button,
    .bcg-generate-row,
    .bcg-generate-row button {
        width: 100%;
    }

    .bcg-tool-head h2,
    .bcg-section-head h2,
    .bcg-content-block h2,
    .bcg-how h2 {
        font-size: 24px;
    }

    .bcg-field-grid,
    .bcg-option-grid,
    .bcg-theme-options,
    .bcg-card-output,
    .bcg-benefit-grid,
    .bcg-use-grid,
    .bcg-related-grid {
        grid-template-columns: 1fr;
    }

    .bcg-call-actions {
        grid-template-columns: 1fr;
    }

    .bcg-card {
        padding: 12px;
    }

    .bcg-cell {
        min-height: 58px;
    }
}

@media print {
    body {
        background: #ffffff !important;
    }

    .sx-navbar,
    .sx-footer,
    .bcg-hero,
    .bcg-tool,
    .bcg-content-block,
    .bcg-use-cases,
    .bcg-how,
    .bcg-faq,
    .bcg-related,
    .bcg-output-section .bcg-section-head {
        display: none !important;
    }

    .bcg-page {
        margin: 0 !important;
        max-width: none !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .bcg-output-section {
        border: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .bcg-card-output {
        display: grid !important;
        gap: 8mm !important;
        grid-template-columns: repeat(2, 1fr) !important;
        margin: 0 !important;
    }

    .bcg-card {
        break-inside: avoid;
        box-shadow: none !important;
        padding: 8mm !important;
        page-break-inside: avoid;
    }

    .bcg-cell {
        min-height: 22mm !important;
    }
}
