/* Global Page Styling for Saturn Regulations */
:root {
    --primary-saturn: #1a237e;
    --secondary-saturn: #3949ab; 
    --accent-steel: #78909c;
    --soft-grey: #f4f7f9;
    --text-dark: #1c1c1c;
    --text-meta: #455a64;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --nav-border: rgba(26, 35, 126, 0.12);
    --hover-steel: #f0f2f5;
}

body {
    background-color: var(--soft-grey);
    color: var(--text-dark);
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 650px;
    margin: 20px auto;
    padding: 30px 40px;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(26, 35, 126, 0.08);
    border-radius: 12px;
    border-top: 5px solid var(--primary-saturn);
    position: relative;
    overflow: hidden;
}

.reg-header {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-saturn);
    letter-spacing: 2px;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
}

.section-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--text-meta);
    margin-bottom: 0.75rem;
    text-align: center;
    font-weight: 600;
}

.invocation-wrapper {
    text-align: center;
    margin-bottom: 1.5rem;
}

.invocation {
    display: inline-block;
    text-align: left;
    font-size: 1.3rem;
    color: var(--primary-saturn);
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 400;
    letter-spacing: 0.5px;
    white-space: pre-wrap;
    line-height: 1.4;
}

.invocation.revised { color: #1b5e20; }

.section-divider {
    width: 40px;
    height: 1px;
    background: rgba(26, 35, 126, 0.1);
    margin: 1.25rem auto;
}

.commentary-text {
    font-size: 1.15rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-top: 0.5rem;
    text-align: justify;
    font-family: 'Georgia', serif;
}

.saturn-controls {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: Arial, sans-serif;
    font-weight: 600;
    color: var(--primary-saturn);
    user-select: none;
}

.checkbox-container input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 6px;
    transition: all 0.3s;
    border: 1px solid var(--nav-border);
}

.checkbox-container input:checked ~ .checkmark { background-color: var(--primary-saturn); border-color: var(--primary-saturn); }
.checkmark:after { content: ""; position: absolute; display: none; }
.checkbox-container input:checked ~ .checkmark:after { display: block; }
.checkbox-container .checkmark:after { left: 6px; top: 2px; width: 5px; height: 10px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Navigation Bar */
.nav-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 24px;
    background-color: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-home {
    margin-right: auto;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-saturn);
    font-weight: 700;
    font-size: 1.1rem;
    font-family: Arial, sans-serif;
}

.nav-home img { height: 36px; margin-right: 12px; border-radius: 6px; }

.nav-controls {
    display: flex;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    gap: 8px;
}

.nav-bar button {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-saturn);
    transition: background 0.2s;
}

.nav-bar button:hover:not(:disabled) { background: var(--hover-steel); }
.nav-bar button:disabled { opacity: 0.3; }

.nav-bar input {
    width: 50px;
    text-align: center;
    font-size: 1.1rem;
    padding: 5px;
    border: 1px solid var(--nav-border);
    border-radius: 6px;
    color: var(--primary-saturn);
}

/* Sharing Dropdown - Precise Shambala Match */
.nav-group-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-share-wrapper {
    position: relative !important;
    display: inline-block !important;
    line-height: 1 !important;
}

.nav-share, .nav-shuffle {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--primary-saturn);
    border-radius: 50%;
    width: 38px; /* Slightly smaller for cuteness */
    height: 38px;
    transition: all 0.2s ease;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

.nav-share:hover, .nav-shuffle:hover {
    background: var(--hover-steel);
    transform: scale(1.08);
}

.nav-share svg, .nav-shuffle svg {
    width: 24px;
    height: 24px;
}

.share-dropdown {
    position: absolute !important;
    top: 48px !important;
    right: 0 !important;
    background: #ffffff !important;
    border: 1px solid rgba(26, 35, 126, 0.12) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(26, 35, 126, 0.15) !important;
    width: 140px !important;
    display: none;
    flex-direction: column !important;
    padding: 4px !important;
    z-index: 9999 !important;
    transform-origin: top right !important;
    animation: menuPop 0.2s ease-out !important;
    backdrop-filter: blur(10px);
}

@keyframes menuPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.share-dropdown.show {
    display: flex !important;
}

.share-dropdown-item {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 8px 10px !important;
    text-decoration: none !important;
    color: var(--primary-saturn) !important;
    font-family: -apple-system, system-ui, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    transition: all 0.2s !important;
    cursor: pointer !important;
    border: none !important;
    background: transparent !important;
    width: 100% !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.share-dropdown-item:hover {
    background-color: var(--hover-steel) !important;
}

.share-dropdown-item svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
    display: block !important;
}

.icon-whatsapp { fill: #25D366 !important; }
.icon-telegram { fill: #0088cc !important; }
.icon-link, .icon-text { stroke: var(--primary-saturn) !important; stroke-width: 2.5px !important; fill: none !important; }

.chapter-cover { text-align: center; margin-bottom: 1rem; }
.chapter-cover img { max-width: 100%; height: auto; max-height: 90px; border-radius: 6px; }

@media (max-width: 600px) {
    .nav-home span { display: none; }
    .container { padding: 20px 15px; margin: 0; border-radius: 0; }
    .invocation { font-size: 1.1rem; }
}

.page-footer { text-align: center; padding: 1.5rem 1rem; display: flex; justify-content: center; gap: 2rem; }
.page-footer a { color: var(--text-meta); text-decoration: none; font-size: 0.9rem; }
