/* Esorion — Kamea sigil generator: styles.
   Lifted from sigils.html by seo/extract-page-assets.js and shared with the
   standalone tool page so the two cannot drift apart. */
        /* --- General & Body Styles --- */
        :root {
            --bg-primary: #121212;
            --bg-secondary: #1a1a1a;
            --bg-header: #1e1e1e;
            --text-primary: #e0e0e0;
            --text-secondary: #b0b0b0;
            --accent-gold: #c9b37e;
            --accent-gold-hover: #f0e6ce;
            --border-color: #363636;
            --glow-white: #ffffff;
            --highlight-color: #ffeb3b; /* Used for warning */
        }

        html { scroll-behavior: smooth; }

        body {
            font-family: 'Sylfaen', 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
            margin: 0;
            padding: 0;
            background-color: var(--bg-primary);
            color: var(--text-primary);
            line-height: 1.6;
            -webkit-tap-highlight-color: transparent;
            
            transition: opacity 0.4s ease-in-out;
        }
        body.fade-in { opacity: 1; }
        body.menu-open { overflow: hidden; }

        .container {
            width: 90%;
            max-width: 900px;
            margin: 0 auto;
            padding: 20px 15px;
            box-sizing: border-box;
        }

        /* --- Header & Side Nav --- */
        header { background-color: var(--bg-header); padding: 10px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 8px rgba(0,0,0,0.5); }
        .header-container { display: flex; justify-content: space-between; align-items: center; width: 90%; margin: 0 auto; max-width: 1100px; }
        .site-branding { display: flex; align-items: center; gap: 15px; text-decoration: none; }
        .site-logo { max-height: 44px; width: auto; max-width: min(220px, 52vw); display: block; }
        .site-title { font-size: 2rem; margin: 0; color: var(--accent-gold); }
        .menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
        .side-nav { position: fixed; top: 0; left: 0; width: 280px; height: 100%; background-color: var(--bg-header); box-shadow: 4px 0 15px rgba(0,0,0,0.5); transform: translateX(-100%); transition: transform 0.35s ease-in-out; z-index: 1002; overflow-y: auto; padding-top: 70px; }
        .side-nav.is-open { transform: translateX(0); }
        .nav-close-btn { position: absolute; top: 15px; right: 15px; background: none; border: none; cursor: pointer; color: var(--accent-gold); font-size: 2.5rem; line-height: 1; padding: 5px; }
        .side-nav ul { list-style: none; padding: 0; margin: 0; }
        .side-nav li a, .side-nav .dropdown > span { display: block; padding: 15px 25px; color: var(--accent-gold); text-decoration: none; font-size: 1.2rem; border-bottom: 1px solid var(--border-color); transition: background-color 0.2s ease, color 0.2s ease; }
        .side-nav li a:hover { background-color: var(--accent-gold); color: var(--bg-header); }
        .side-nav li a.active { font-weight: bold; background-color: #3c362a; }
        .side-nav .dropdown > span { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
        .side-nav .dropdown-toggle { font-size: 1rem; transition: transform 0.3s ease; }
        .side-nav .dropdown.open > span .dropdown-toggle { transform: rotate(180deg); }
        .side-nav .dropdown-content { display: none; background-color: #111; padding-left: 20px; }
        .side-nav .dropdown.open .dropdown-content { display: block; }
        .side-nav .dropdown-content a { font-size: 1rem; border-color: #2a2a2a; }
        #menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.7); z-index: 1001; opacity: 0; visibility: hidden; transition: opacity 0.35s ease-in-out, visibility 0.35s ease-in-out; }
        #menu-overlay.is-active { opacity: 1; visibility: visible; }

        /* --- Bottom Navigation Panel --- */
        .bottom-nav { display: none;  position: fixed; bottom: 0; left: 0; width: 100%; height: 65px; background-color: var(--bg-header);  justify-content: space-around; align-items: center; box-shadow: 0 -2px 8px rgba(0,0,0,0.5); z-index: 999; border-top: 1px solid var(--border-color); }
        .bottom-nav-link { display: flex; flex-direction: column; align-items: center; justify-content: center; flex-grow: 1; text-decoration: none; color: var(--text-secondary); padding: 5px 0; transition: color 0.2s ease; -webkit-tap-highlight-color: transparent; cursor: pointer; }
        .bottom-nav-link:hover { color: var(--accent-gold-hover); }
        .bottom-nav-link.active { color: var(--accent-gold); }
        .bottom-nav-text { font-size: 0.75rem; font-family: sans-serif; }
        .bottom-nav-link img { width: 24px; height: 24px; margin-bottom: 4px; }
        .bottom-nav-link .icon-active { display: none; }
        .bottom-nav-link.active .icon-default { display: none; }
        .bottom-nav-link.active .icon-active { display: block; }

        main { padding: 30px 0; }

        /* --- Article/Card Styles --- */
        .card-section { background-color: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 12px; padding: 25px; margin: 0 auto 30px auto; box-shadow: 0 4px 12px rgba(0,0,0,0.4); max-width: 600px; }
        .article-title { color: var(--accent-gold); font-size: 1.9rem; text-align: center; margin: 0 0 20px 0; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }

        .tradition-guide { margin: 18px 0 24px; padding: 18px; background: linear-gradient(145deg, rgba(201,179,126,0.09), rgba(0,0,0,0.18)); border: 1px solid rgba(201,179,126,0.35); border-left: 4px solid var(--accent-gold); border-radius: 10px; }
        .tradition-guide h2 { margin: 0 0 8px; color: var(--accent-gold); font-size: 1.15rem; }
        .tradition-guide > p { margin: 0; color: var(--text-secondary); font-size: 0.94rem; line-height: 1.6; }
        .guide-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
        .guide-path { padding: 12px; background: rgba(0,0,0,0.2); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-secondary); font-size: 0.85rem; line-height: 1.5; }
        .guide-path strong { display: block; color: var(--text-primary); margin-bottom: 4px; }
        .method-note { margin: 7px 0 0; min-height: 2.8em; padding: 9px 10px; color: var(--text-secondary); background: rgba(201,179,126,0.05); border-radius: 7px; font-size: 0.8rem; line-height: 1.45; text-align: center; }
        .section-heading { color: var(--text-primary); font-size: 1.2rem; margin-top: 30px; text-align: center; border-bottom: 1px solid var(--border-color); padding-bottom: 7px; }
        .methodology-copy { font-size: 0.95rem; color: var(--text-secondary); text-align: left; line-height: 1.65; }
        .methodology-copy p { margin: 10px 0; }
        .methodology-copy strong { color: var(--accent-gold-hover); }

        /* Reference table, worked example and questions */
        .squares-intro, #worked-example p, #the-seven-squares p, .faq-answer {
            font-size: 0.95rem; color: var(--text-secondary); text-align: left; line-height: 1.65; margin: 10px 0;
        }
        .squares-intro em, #the-seven-squares em { color: var(--text-primary); font-style: italic; }
        .squares-table-wrap { overflow-x: auto; margin: 18px 0; -webkit-overflow-scrolling: touch; }
        .squares-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 560px; }
        .squares-table caption { caption-side: bottom; padding-top: 10px; font-size: 0.78rem; color: var(--text-secondary); text-align: left; }
        .squares-table th, .squares-table td { border: 1px solid var(--border-color); padding: 9px 11px; text-align: left; }
        .squares-table thead th { background-color: #1f1c15; color: var(--accent-gold); font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; }
        .squares-table tbody th { color: var(--accent-gold); font-weight: bold; white-space: nowrap; }
        .squares-table tbody td { color: var(--text-secondary); }
        .squares-table tbody tr:nth-child(odd) { background-color: rgba(255,255,255,0.02); }
        .worked-steps { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; text-align: left; padding-left: 20px; margin: 14px 0; }
        .worked-steps li { margin-bottom: 10px; }
        .worked-steps strong { color: var(--text-primary); }
        .faq-list { text-align: left; margin-top: 8px; }
        .faq-item { border-bottom: 1px solid var(--border-color); padding: 14px 0; }
        .faq-item:last-child { border-bottom: none; }
        .faq-question { color: var(--accent-gold); font-size: 1.02rem; margin: 0 0 6px; }
        .faq-answer { margin: 0; }
        #the-seven-squares a, #worked-example a, .faq-answer a { color: var(--accent-gold); }

        /* --- TOOL SPECIFIC STYLES (Sigil Generator) --- */
        #sigil-tool { background-color: #1f1f1f; border: 1px solid var(--border-color); border-radius: 12px; padding: 15px 12px; margin: 30px auto; box-shadow: 0 4px 12px rgba(0,0,0,0.4); max-width: 400px; }
        #sigil-tool h3 { text-align: center; font-size: 1.3rem; color: var(--accent-gold); border-bottom: 1px solid var(--border-color); padding-bottom: 10px; margin-top: 0; margin-bottom: 15px; }

        /* Canvas Display */
        .sigil-display { margin-top: 25px; text-align: center; }
        #canvas-wrapper { display: inline-block; max-width: 100%; aspect-ratio: 1 / 1; margin-top: 10px; position: relative; }
        #sigil-canvas { display: block; width: 100%; height: auto; border: 1px solid var(--border-color); border-radius: 8px; background: #111; }

        /* Loading Spinner Styles */
        .loading-spinner { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border: 4px solid rgba(255, 255, 255, 0.3); border-top: 4px solid var(--accent-gold); border-radius: 50%; width: 30px; height: 30px; animation: spin 1s linear infinite; display: none; }
        @keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }

        /* --- Planetary Info Styles --- */
        #planet-header-info { background-color: #2a2a2a; border: 1px solid var(--border-color); border-bottom: none; border-radius: 10px 10px 0 0; padding: 10px 15px; display: flex; justify-content: space-around; align-items: center; text-align: center; box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5); }
        .info-block { display: flex; flex-direction: column; align-items: center; padding: 0 5px; flex-grow: 1;}
        .info-block .label { font-size: 0.75rem; color: var(--text-secondary); font-weight: bold; margin-bottom: 5px; }
        .info-block #planet-glyph, .info-block #planet-metal { color: var(--glow-white); text-shadow: 0 0 4px rgba(255, 255, 255, 0.5), 0 0 8px rgba(255, 255, 255, 0.2); margin-bottom: 5px; }
        .info-block #planet-glyph { font-size: 2.2rem; line-height: 1; }
        .info-block #planet-metal { font-size: 1rem; font-weight: bold; }
        .info-block #planet-seal-img-container { height: 55px; display: flex; align-items: center; justify-content: center; margin-bottom: 5px; }
        .info-block #planet-seal-img { max-width: 55px; max-height: 55px; height: auto; width: auto; border: none; filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 8px rgba(255, 255, 255, 0.3)); }
        .info-block:not(:last-child) { border-right: 1px solid rgba(255, 255, 255, 0.1); padding-right: 10px; }
        .info-block:not(:first-child) { padding-left: 10px; }
        #planet-description { font-size: 0.9rem; color: var(--text-secondary); margin: 0; padding: 10px 10px 15px 10px; text-align: center; line-height: 1.5; background-color: #262626; border: 1px solid var(--border-color); border-top: none; border-bottom: none; }
        #planet-description .highlight { color: var(--accent-gold-hover); text-shadow: 0 0 1px var(--accent-gold-hover); padding: 1px 3px; border-radius: 4px; }
        #attributes-content { padding: 15px 20px; background-color: rgba(0,0,0,0.2); display: none; border-left: 3px solid var(--accent-gold); border-right: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); border-radius: 0 0 10px 10px; }
        #attributes-content p { margin: 8px 0; font-size: 0.95em; line-height: 1.5; color: var(--text-primary); }
        #attributes-content p strong { color: var(--accent-gold-hover) !important; margin-right: 5px; }

        /* --- BUTTON, SELECT, TEXTAREA STYLES --- */
        #generate-sigil-btn, #save-sigil-btn { font-size: 1rem; padding: 10px 15px; border: none; border-radius: 12px; cursor: pointer; background-color: var(--accent-gold); color: var(--bg-primary); font-weight: bold; transition: all 0.2s ease; width: 100%; box-sizing: border-box; margin-top: 10px; box-shadow: 0 4px 10px rgba(201, 179, 126, 0.3); }
        #save-sigil-btn { margin-top: 15px; }
        #generate-sigil-btn:hover, #save-sigil-btn:hover { background-color: var(--accent-gold-hover); transform: translateY(-2px); box-shadow: 0 6px 15px rgba(201, 179, 126, 0.7); }
        #generate-sigil-btn:disabled, #save-sigil-btn:disabled { background-color: #555; color: #aaa; cursor: not-allowed; box-shadow: none; transform: none; }

        .custom-select { -webkit-appearance: none; -moz-appearance: none; appearance: none; background-color: #333; color: var(--accent-gold); border: 1px solid var(--border-color); padding: 10px 20px; border-radius: 10px; font-family: 'Sylfaen', serif; font-size: 1rem; font-weight: bold; cursor: pointer; width: 100%; box-sizing: border-box; text-align: center; text-align-last: center; background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23c9b37e%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E'); background-repeat: no-repeat; background-position: right 15px center; background-size: .65em auto; border-radius: 10px 10px 0 0; }
        .control-group label { display: block; text-align: center; margin-bottom: 8px; font-size: 1rem; color: var(--text-primary); }
        .custom-select option { text-align: left; }
        #sigil-intention { width: 100%; box-sizing: border-box; background-color: #333; color: var(--text-primary); border: 1px solid var(--border-color); border-radius: 10px; padding: 10px; font-family: 'Sylfaen', serif; font-size: 1rem; resize: vertical; }

        /* Styles for Gematria dropdown */
        #gematria-select-group { text-align: center; margin-bottom: 15px; }
        #gematria-select-group label { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 5px; }
        #gematria-method { -webkit-appearance: none; -moz-appearance: none; appearance: none; background-color: #2a2a2a; color: var(--text-primary); border: 1px solid var(--border-color); border-radius: 6px; padding: 5px 30px 5px 10px; font-family: 'Sylfaen', serif; font-size: 0.9rem; font-weight: normal; cursor: pointer; width: auto; display: inline-block; background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23b0b0b0%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E'); background-repeat: no-repeat; background-position: right 10px center; background-size: .5em auto; }
        #gematria-method option { background: var(--bg-secondary); color: var(--text-primary); }

        /* --- Gematria Warning Style --- */
        #gematria-warning {
            font-size: 0.8rem;
            color: var(--highlight-color);
            background-color: rgba(255, 235, 59, 0.05);
            border: 1px dashed rgba(255, 235, 59, 0.3);
            border-radius: 6px;
            padding: 8px;
            margin-top: 10px;
            text-align: center;
            display: none; /* Hidden by default */
            line-height: 1.4;
        }
        #gematria-warning strong {
            color: var(--accent-gold-hover);
        }
        /* --- END: New Style --- */

        /* --- Checkbox Styles --- */
        #processing-options {
            margin-top: 15px;
            margin-bottom: 5px;
            padding: 8px 5px;
            border: 1px dashed var(--border-color);
            border-radius: 8px;
            text-align: center;
            display: flex;
            justify-content: space-evenly;
            align-items: center;
            flex-wrap: wrap; /* Allow wrapping on small screens */
            gap: 10px; /* Add gap between items */
        }
        .checkbox-label {
            display: inline-flex;
            align-items: left;
            margin-bottom: 0;
            font-size: 0.85rem;
            color: var(--text-secondary);
            flex-shrink: 0; /* <<< დაამატეთ ეს ხაზი */
            cursor: nowrap;
        }
        .checkbox-label input[type="checkbox"] {
            margin-right: 6px;
            vertical-align: middle;
            accent-color: var(--accent-gold);
        }
        /* --- END: Checkbox Styles --- */

        /* --- NEW: Example Intention Style --- */
        #example-intention-display {
            font-size: 0.8rem;
            color: var(--text-secondary);
            text-align: center;
            margin-top: 5px;
            margin-bottom: 15px;
            font-style: italic;
            min-height: 1.2em; /* Prevent layout shift */
        }
        /* --- NEW: Sigil Color Picker Style --- */
        #sigil-color-group {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-top: 15px;
        }
        #sigil-color-group label {
             margin-bottom: 0; /* Override default margin */
             font-size: 0.85rem;
             color: var(--text-secondary);
        }
        #sigil-color-picker {
             cursor: pointer;
             border: 1px solid var(--border-color);
             border-radius: 4px;
             height: 25px; /* Adjust height */
             width: 40px; /* Adjust width */
             padding: 0 2px; /* Small padding */
             background-color: var(--bg-secondary); /* Match background */
        }
        /* --- NEW: Export with Grid Checkbox Style --- */
        #export-options {
             margin-top: 10px;
             text-align: center;
        }

        @media (max-width: 860px) {
    .menu-toggle { display: none !important; }
    .bottom-nav { display: flex !important; }
    body { padding-bottom: 75px; } .site-title { display: none; } }
        @media (max-width: 480px) {
             .article-title { font-size: 1.8rem; }
             .guide-paths { grid-template-columns: 1fr; }
             #sigil-tool { margin-top: 15px; }
             .container { padding: 0px 0px; }
             .card-section { padding: 25px; }
             #processing-options { justify-content: space-around; } /* Better spacing on mobile */
             
        }

    
/* --- Desktop Navigation Bar --- */
.header-left { display: flex; align-items: center; gap: 25px; }
.desktop-nav { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.desktop-nav > li { position: relative; }
.desktop-nav > li > a,
.desktop-nav > li > .desktop-dropdown-trigger {
    display: flex; align-items: center; gap: 5px;
    padding: 8px 14px; color: var(--text-secondary); text-decoration: none;
    font-size: 0.92rem; font-family: 'Sylfaen', serif; font-weight: bold;
    cursor: pointer; transition: color 0.2s ease; border: none; background: none;
    white-space: nowrap;
}
.desktop-nav > li > a:hover,
.desktop-nav > li:hover > .desktop-dropdown-trigger,
.desktop-nav > li > a.active { color: var(--accent-gold); }
.desktop-dropdown-trigger .dd-arrow { font-size: 0.6rem; transition: transform 0.25s ease; color: inherit; }
.desktop-nav > li:hover .dd-arrow { transform: rotate(180deg); }
.desktop-dropdown {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    background-color: var(--bg-header); border: 1px solid var(--border-color);
    border-radius: 10px; padding: 8px 0; min-width: 200px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    z-index: 1050;
}
.desktop-nav > li:hover > .desktop-dropdown {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.desktop-dropdown a {
    display: block; padding: 10px 20px; color: var(--text-secondary);
    text-decoration: none; font-size: 0.9rem; transition: all 0.15s ease;
    white-space: nowrap;
}
.desktop-dropdown a:hover { background-color: rgba(201, 179, 126, 0.12); color: var(--accent-gold); padding-left: 24px; }
.desktop-dropdown .dd-divider { height: 1px; background-color: var(--border-color); margin: 6px 12px; }
@media (max-width: 860px) {
    .menu-toggle { display: none !important; }
    .bottom-nav { display: flex !important; }
    body { padding-bottom: 75px; }
    .desktop-nav { display: none !important; }
    .header-left { gap: 0; }
}
/* --- End Desktop Nav --- */

.menu-toggle { display: none !important; }
        .nav-icon {
            width: 20px;
            height: 20px;
            object-fit: contain;
            vertical-align: middle;
            margin-right: 6px;
            display: inline-block;
            filter: drop-shadow(0 0 2px rgba(201, 179, 126, 0.3));
        }


        /* Unified mobile Categories navigation */
        .side-nav > ul > li > a { display: flex; align-items: center; gap: 10px; }
        .side-nav .mobile-nav-icon { width: 22px; height: 22px; object-fit: contain; flex: 0 0 22px; }
        .side-nav .dropdown > span { gap: 10px; }
        .side-nav .dropdown-toggle { margin-left: auto; }
