/* Esorion — meditation timer and breathing pacer: styles.
   Lifted from meditation.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;
            --circle-empty-color: #9d8756; 
        }

        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.7;
            -webkit-tap-highlight-color: transparent;
            padding-bottom: 75px; 
        }
        
        body {  transition: opacity 0.4s ease-in-out; }
        body.fade-in { opacity: 1; }

        body.menu-open { overflow: hidden; }

        .container { width: 90%; max-width: 800px; margin: 0 auto; padding: 20px 15px; box-sizing: border-box; }
        
        /* --- Header & Navigation --- */
        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; }

        .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; }

        /* --- Article Styles --- */
        main { padding: 30px 0; }
        .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); }
        .article-title { color: var(--accent-gold); font-size: 2.2rem; text-align: center; margin: 0 0 20px 0; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }
        .article-main-image { display: block; max-width: 100%; height: auto; margin: 0 auto 30px auto; border-radius: 8px; box-shadow: 0 0 8px var(--accent-gold), 0 0 16px rgba(201, 179, 126, 0.6); }
        .article-body p, .article-body li { text-align: left; color: var(--text-primary); margin-bottom: 1.2em; font-size: 1.05rem; }
        .article-body p { text-indent: 1.5em; }
        .article-body > p:first-of-type, .article-body h3 + p, .article-body h4 + p, .article-body ul + p, .article-body ol + p { text-indent: 0; }
        .article-body strong { color: var(--accent-gold); font-weight: bold; }
        .article-body a { color: var(--accent-gold); text-decoration: none; font-weight: bold; border-bottom: 1px dotted var(--accent-gold); transition: color 0.2s ease; }
        .article-body a:hover { color: var(--accent-gold-hover); }
        .article-body h3 { color: var(--accent-gold); font-size: 1.6rem; margin: 2.5em 0 1em 0; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; text-indent: 0; }
        .article-body h4 { color: var(--accent-gold); font-size: 1.3rem; margin: 1.8em 0 0.8em 0; text-indent: 0; }
        .article-body ul, .article-body ol { padding-left: 25px; }
        .article-body li { margin-bottom: 0.8em; }
        .practice-image { display: block; max-width: 60%; height: auto; margin: 25px auto; border-radius: 5px; }
        .practice-note { padding: 13px 15px; border-left: 3px solid var(--accent-gold); border-radius: 0 8px 8px 0; background: rgba(201,179,126,0.07); color: var(--text-secondary) !important; font-size: 0.92rem !important; text-indent: 0 !important; }

        /* --- MEDITATION TOOL STYLES --- */
        .meditation-tool { background: linear-gradient(145deg, #222, #191919); border: 1px solid rgba(201,179,126,0.38); border-radius: 16px; padding: 24px; margin: 34px auto; box-shadow: 0 14px 36px rgba(0,0,0,0.38); max-width: 590px; box-sizing: border-box; }
        .meditation-tool h3 { text-align: center; font-size: 1.65rem; color: var(--accent-gold); border-bottom: 1px solid var(--border-color); padding-bottom: 12px; margin: 0 0 8px; }
        .tool-intro { margin: 0 auto 18px !important; max-width: 500px; color: var(--text-secondary) !important; font-size: 0.94rem !important; text-align: center !important; text-indent: 0 !important; }
        .meditation-display { display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; margin-bottom: 18px; min-height: 205px; }
        #visualizer-circle { width: 158px; height: 158px; border-radius: 50%; position: relative; box-shadow: 0 0 10px rgba(201,179,126,0.72), 0 0 28px rgba(201,179,126,0.28); background-color: var(--circle-empty-color); overflow: hidden; }
        #visualizer-circle::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; background-color: var(--accent-gold); transform: scale(0); transition: transform var(--breathing-duration, 1s) cubic-bezier(0.445, 0.05, 0.55, 0.95); }
        #visualizer-circle.state-inhale::before, #visualizer-circle.state-hold-in::before { transform: scale(1); }
        #visualizer-circle.state-exhale::before, #visualizer-circle.state-hold-out::before, #visualizer-circle.state-idle::before { transform: scale(0); }
        #breathing-instruction { position: absolute; inset: 0; display: grid; place-items: center; width: auto; margin: 0; padding: 18px; font-size: 1.05rem; line-height: 1.25; color: var(--bg-primary); font-weight: bold; text-align: center; z-index: 1; text-indent: 0; }
        #timer-display { width: 100%; font-size: 2.2rem; color: var(--accent-gold); font-family: 'Courier New', monospace; margin: 12px 0 0; font-weight: bold; text-align: center; text-indent: 0; }
        .meditation-controls { display: flex; flex-direction: column; align-items: center; gap: 15px; }
        .control-group { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
        .control-group label { font-size: 1rem; color: var(--text-secondary); font-weight: bold; }
        .duration-options { display: flex; width: 100%; border: 1px solid var(--border-color); border-radius: 10px; overflow: hidden; }
        .duration-option { flex-grow: 1; text-align: center; padding: 9px 5px; font-family: inherit; font-size: 0.95rem; font-weight: bold; color: var(--accent-gold); background-color: #292929; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; border: 0; border-left: 1px solid var(--border-color); }
        .duration-option:first-child { border-left: none; }
        .duration-option.active { background-color: var(--accent-gold); color: var(--bg-primary); }
        .duration-option:focus-visible, .custom-select:focus-visible, #start-meditation-btn:focus-visible { outline: 2px solid var(--accent-gold-hover); outline-offset: 3px; }
        .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%; text-align: 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; }
        #preset-description { font-size: 0.9rem; color: var(--text-secondary); text-align: center; width: 100%; min-height: auto; padding: 8px 5px 0 5px; font-weight: bold; border-top: 1px solid var(--border-color); margin-top: 8px; }
        .volume-row { display: grid; grid-template-columns: auto minmax(120px, 1fr) 3ch; align-items: center; gap: 10px; width: 100%; }
        #ambient-volume { width: 100%; accent-color: var(--accent-gold); }
        #ambient-volume:disabled { opacity: 0.42; }
        #volume-value { color: var(--text-secondary); font: 0.82rem sans-serif; text-align: right; }
        #start-meditation-btn { font-size: 1.1rem; padding: 12px 20px; 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%; }
        #start-meditation-btn:hover { background-color: var(--accent-gold-hover); }
        #start-meditation-btn.running { background-color: #a84c4c; color: var(--accent-gold-hover); }
        
        /* --- Media Queries --- */
        @media (max-width: 860px) { .site-title { display: none; } }
        @media (max-width: 768px) { .container { width: 95%; } .card-section { padding: 20px; } .article-title { font-size: 1.8rem; } .article-body h3 { font-size: 1.4rem; } .practice-image { max-width: 80%; } }
        @media (max-width: 480px) { .article-title { font-size: 1.6rem; } .article-body p, .article-body li { font-size: 1rem; } .practice-image { max-width: 100%; } .meditation-tool { padding: 20px 14px; margin-inline: -4px; } #visualizer-circle { width: 145px; height: 145px; } }

        /* --- Bottom Nav Styles --- */
body {
    padding-bottom: 75px; 
}
.menu-toggle { 
    display: none; 
}
.bottom-nav { 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    height: 65px; 
    background-color: var(--bg-header); 
    display: flex; 
    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; 
}

/* --- PNG ხატულების სტილები --- */
.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;
}
/* --- Desktop Navigation & Mobile Overrides --- */
.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; }

/* Base: Desktop */
.menu-toggle { display: none !important; }
.bottom-nav { display: none !important; }
body { padding-bottom: 0 !important; }

@media (max-width: 860px) {
    .desktop-nav { display: none !important; }
    .header-left { gap: 0; }
    .header-right-controls { display: flex !important; }
    .menu-toggle { display: none !important; }
    .bottom-nav { display: flex !important; }
    body { padding-bottom: 75px !important; }
}
/* --- 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; }
        picture { display: contents; }
    
        /* Related topics — contextual links out of each page. */
        .related-topics { margin: 34px auto 0; max-width: 900px; }
        .related-topics h2 {
            color: var(--accent-gold, #c9b37e); font-size: 1.25rem; margin: 0 0 6px;
            border-bottom: 1px solid var(--border-color, #363636); padding-bottom: 9px;
        }
        .related-topics-intro { color: var(--text-secondary, #b0b0b0); font-size: 0.88rem; margin: 0 0 16px; }
        .related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
        .related-card {
            display: block; background-color: #161616; border: 1px solid var(--border-color, #363636);
            border-radius: 9px; padding: 15px 17px; text-decoration: none;
            transition: border-color 0.2s ease, transform 0.2s ease;
        }
        .related-card:hover { border-color: rgba(201,179,126,0.6); transform: translateY(-2px); }
        .related-card strong { display: block; color: var(--accent-gold, #c9b37e); font-size: 1rem; margin-bottom: 5px; }
        .related-card span { color: var(--text-secondary, #b0b0b0); font-size: 0.87rem; line-height: 1.55; }
        @media (max-width: 620px) { .related-grid { grid-template-columns: 1fr; } }
    