/* Janam Kundali — responsive iframe wrapper */
.jk-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.jk-iframe {
    display: block;
    width: 100%;
    height: var(--jk-height, 900px);
    border: none;
    background: #0f1035;
}

@media (max-width: 600px) {
    .jk-iframe {
        height: calc(var(--jk-height, 900px) * 1.2);
    }
}


/* Optional fallback toolbar: use [janam_kundali toolbar="1"] */
.jk-shell {
    width: 100%;
}

.jk-toolbar {
    max-width: 1200px;
    margin: 0 auto 12px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.jk-toolbar-link,
.jk-toolbar-button {
    appearance: none;
    border: 1px solid #d6b66a;
    background: #ffffff;
    color: #2216a8;
    border-radius: 999px;
    padding: 10px 16px;
    font: inherit;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.jk-toolbar-button {
    background: #2216a8;
    color: #ffffff;
}

/* Helps Chrome print/Saved PDF capture the embedded calculator instead of a blank page. */
@media print {
    @page {
        size: A4 portrait;
        margin: 0;
    }

    html,
    body {
        height: auto !important;
        min-height: 100% !important;
        overflow: visible !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .jk-toolbar {
        display: none !important;
    }

    .jk-shell,
    .jk-wrapper,
    .jk-iframe {
        display: block !important;
        visibility: visible !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        max-width: none !important;
        width: 100% !important;
        background: #ffffff !important;
    }

    .jk-wrapper {
        position: fixed !important;
        inset: 0 !important;
        height: 100vh !important;
        overflow: visible !important;
    }

    .jk-iframe {
        height: 100vh !important;
        min-height: 100vh !important;
        border: 0 !important;
    }
}
