#pti-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .85);
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.pti-scroll-container {
    max-height: 90vh;
    overflow-y: auto;
    width: 100%;
    display: flex;
    justify-content: center;
}

.pti-box {
    background: #fff;
    padding: 20px;
    position: relative;
    max-width: 90%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.pti-close {
    position: absolute;
    top: -15px;
    right: -15px;
    cursor: pointer;
    font-size: 24px;
    background: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    color: #333;
    font-weight: bold;
}

#pti-download {
    display: inline-block;
    margin-top: 15px;
    text-align: center;
    background: #0073aa;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

#pti-download:hover {
    background: #005177;
}

/* Off-screen content for generation */
#pti-content {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 800px;
    /* Fixed width for consistent generation */
    background: #fff;
    padding: 40px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333;
    box-sizing: border-box;
}

.pti-header {
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pti-logo img {
    max-height: 60px;
    width: auto;
}

.pti-logo h1 {
    font-size: 24px;
    margin: 0;
    color: #222;
}

.pti-meta {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pti-title {
    font-family: 'Ramabhadra', sans-serif;
    font-weight: 100;
    /* Ramabhadra is typically 400, but setting 100 as requested */
    font-size: 36px;
    line-height: 1.3;
    margin: 0 0 20px 0;
    color: #111;
}

.pti-featured-image {
    margin-bottom: 25px;
}

.pti-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.pti-body {
    font-family: 'Mandali', sans-serif;
    font-weight: 900;
    /* Mandali is typically 400, but setting 900 as requested */
    font-size: 18px;
    line-height: 1.6;
    color: #444;
}

#pti-canvas {
    max-width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}