/* ========================================
   Muktabodha E-Text Library v2
   Visual styling aligned with muktabodha.org
   ======================================== */

/* Google Fonts matching muktabodha.org */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Upright:wght@400;500;600;700&family=Cormorant+SC:wght@400;500&family=Cabin:wght@400;500;600&family=Martel+Sans:wght@300;400;600;700&family=Noto+Sans:wght@300;400;500;600;700&display=swap');

/* ---- Base ---- */
body {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #252b29;
    font-family: "Noto Sans", sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* ---- Sidebar ---- */
.sidenav {
    width: 280px;
    position: fixed;
    height: 100%;
    box-sizing: border-box;
    top: 0;
    left: 0;
    background-color: #f7f4ee;
    padding-top: 20px;
    color: #252b29;
    font-family: "Cabin", sans-serif;
    font-size: 17px;
    font-weight: 600;
    overflow-y: auto;
    border-right: 1px solid #f9d36e;
    z-index: 10;
}

.sidenav-logo {
    display: block;
    padding: 15px 40px 20px;
    text-align: center;
}

.sidenav-logo:hover {
    background-color: transparent;
}

.sidenav-logo img {
    width: 60%;
    height: auto;
    border: 1px solid #f9d36e;
    border-radius: 8px;
    padding: 8px;
    background: #ffffff;
}

.etext-nav-group {
    margin: 4px 8px 8px;
    border: 1px solid #f9d36e;
    border-radius: 6px;
    overflow: hidden;
}

.sidenav .etext-nav-group > a,
.sidenav .etext-nav-group > .sidenav-item > .main-link {
    padding-left: 12px;
}

a[target="_blank"]::after {
    content: "";
    display: inline-block;
    width: 0.65em;
    height: 0.65em;
    margin-left: 0.2em;
    vertical-align: middle;
    position: relative;
    top: -0.05em;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 9 L9 1 M5 1 L9 1 L9 5' stroke='black' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 9 L9 1 M5 1 L9 1 L9 5' stroke='black' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.sidenav a,
ul li a {
    font-size: 17px;
    font-family: "Cabin", sans-serif;
    font-weight: 600;
    color: #4B0082;
    text-decoration: none;
    display: block;
    padding: 10px 20px;
    letter-spacing: 0.03em;
}

.sidenav a:hover,
ul li a:hover {
    color: #2F4F4F;
    background-color: rgba(249, 211, 110, 0.25);
}

/* ---- Header and logo ---- */
.header {
    max-width: 1000px;
    background-color: #ffffff;
    padding: 10px 15px 5px;
    margin-left: 300px;
    text-align: center;
    border-bottom: 2px solid #f9d36e;
}

.header img {
    max-width: 90%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ---- Main content ---- */
.main {
    max-width: 800px;
    margin-left: 300px;
    padding: 15px 40px 40px;
    font-size: 1.05em;
    color: #252b29;
    font-family: "Noto Sans", sans-serif;
    line-height: 1.7;
}

/* ---- Curator's Overview ---- */
.curator-overview-main {
    max-width: 1000px;
    padding-left: 15px;
    padding-right: 15px;
}

.curator-overview-header {
    padding-bottom: 0.8rem;
    margin-bottom: 1.8rem;
    border-bottom: 2px solid #f9d36e;
}

.curator-overview-header,
.curator-overview-body,
.curator-overview-back {
    padding-left: 25px;
    padding-right: 25px;
}

.curator-overview-label {
    font-family: "Cabin", sans-serif;
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #05533e;
    margin: 0 0 0.3rem;
}

.curator-overview-author {
    font-family: "Cormorant Upright", serif;
    font-size: 1.2em;
    color: #555;
    margin: 0.2rem 0 0;
    font-style: italic;
}

.curator-overview-body {
    font-size: 1.15em;
    line-height: 1.8;
}

.curator-overview-body p {
    margin: 0 0 1.2em;
}

.curator-overview-back {
    margin-top: 2.5rem;
    font-size: 0.95em;
}

/* ---- Headings ---- */
h2 {
    font-family: "Cormorant Upright", serif;
    font-weight: 700;
    color: #05533e;
    font-size: 2rem;
    line-height: 1.15;
    letter-spacing: 0.003em;
    margin-top: 0.6rem;
    margin-bottom: 0.2rem;
}

h2 + ul {
    margin-top: 0.75rem;
}

/* ---- Links ---- */
ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: 1em;
    color: #252b29;
}

.main ol li > ul {
    list-style: disc;
    padding-left: 1.5em;
    margin: 0.4em 0;
}

ul li a {
    color: #4B0082;
    text-decoration: none;
    display: block;
    padding: 5px 0;
}

ul li a:hover {
    color: #2F4F4F;
}

.main-link {
    display: inline-block;
    vertical-align: middle;
    text-decoration: none;
    padding: 5px 0;
    color: #4B0082;
    white-space: nowrap;
    margin-right: 0.5rem;
    font-family: "Noto Sans", sans-serif;
}

.main-link:hover {
    color: #2F4F4F;
    background-color: rgba(249, 211, 110, 0.25);
}

.new-badge {
    display: inline-block;
    vertical-align: middle;
    background-color: #05533e;
    color: #f7f4ee;
    font-family: "Cabin", sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 0.4rem;
}

.whats-new-section {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e0b568;
}

.whats-new-heading {
    font-family: "Cormorant Upright", serif;
    color: #05533e;
    font-size: 1.75rem;
    margin: 0 0 0.5rem 0;
}

.whats-new-date {
    font-family: "Cabin", sans-serif;
    font-size: 0.85rem;
    color: #666;
    margin: 0.75rem 0 0.25rem 1.25rem;
}

.whats-new-list {
    margin: 0;
    padding-left: 1.25rem;
    list-style: none;
    overflow-x: auto;
}

/* ---- Paragraphs and body text ---- */
.main p {
    color: #252b29;
    font-family: "Noto Sans", sans-serif;
    line-height: 1.7;
    margin: 0.4em 0;
}


hr {
    border: none;
    border-top: 1px solid #f9d36e;
    margin: 1.25rem 0;
}

/* ---- Disclosure triangles / file items ---- */
.file-item {
    margin-bottom: 0.35rem;
}

.file-item.no-bottom-margin {
    margin-bottom: 0;
}

/* Sidenav expandable items */
.sidenav-item.no-bottom-margin {
    margin-bottom: 0;
}

.sidenav-item > .toggle-caret::after {
    content: "\276F"; /* ❯ */
    display: inline-block;
    transition: transform 0.2s ease;
    color: #f9d36e;
    margin-left: 1.0em;
}

.sidenav-item.open > .toggle-caret::after {
    transform: rotate(90deg);
}

.sidenav-item > .extra-links {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    list-style: none;
    padding-left: 1.5rem;
    margin: 0;
}

.sidenav-item.open > .extra-links {
    max-height: 2000px;
    transition: max-height 0.4s ease;
}

.link-and-caret {
    display: flex;
    align-items: center;
}

/* ---- Description toggle ---- */
.description-collapsed {
    max-height: 5.6em; /* 4 lines * 1.4 line-height */
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
    cursor: pointer;
}

.expandable.open .description-collapsed {
    max-height: 100000px;
    transition: max-height 0.4s ease;
    cursor: auto;
}

.description-collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2.5em;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), white);
    pointer-events: none;
}

.expandable.open .description-collapsed::after {
    opacity: 0;
    transition: opacity 0.1s ease-out;
}

/* Inline-emphasis links — use a.inline-link explicitly, or place <a> inside .main p / .main li / .item-body */
a.inline-link,
.main p a,
.main li a:not(.main-link),
.item-body a {
    display: inline;
    padding: 0;
    color: #4B0082;
    text-decoration: underline;
    text-decoration-color: #f9d36e;
    text-underline-offset: 2px;
    font-weight: 700;
    font-size: inherit;
    font-family: inherit;
    letter-spacing: inherit;
}

a.inline-link:hover,
.main p a:hover,
.main li a:not(.main-link):hover,
.item-body a:hover {
    color: #2F4F4F;
    background-color: transparent;
}

.library-info-p {
    text-align: center;
}

.description-header-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.description-header-line {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.description-header-line.centered {
    justify-content: center;
    width: 100%;
}

.description-header-line h2 {
    margin-top: 0.2em;
}

#description-caret {
    position: relative;
    top: 0.2em;
}

.description-hide-link {
    color: #4B0082;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 17px;
    font-family: "Cabin", sans-serif;
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 1em;
    letter-spacing: 0.03em;
}

.description-hide-link::after {
    content: "\276F";
    display: inline-block;
    transform: rotate(-90deg);
    color: #f9d36e;
    margin-left: 0.5em;
}

.expandable.open #description-caret::after {
    transform: rotate(90deg);
}

/* ---- Toggle caret ---- */
.toggle-caret {
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    cursor: pointer;
}

.toggle-caret::after {
    content: "\276F"; /* ❯ */
    display: inline-block;
    transition: transform 0.2s ease;
    color: #f9d36e;
    padding-left: 0.3em;
    margin-left: 0.8em;
}

.caret-details {
    display: block;
    margin: 0;
    padding: 0;
}

.caret-details > summary {
    list-style: none;
    cursor: pointer;
}

.caret-details summary::-webkit-details-marker {
    display: none;
}

.file-item.open .toggle-caret::after,
.caret-details[open] .toggle-caret::after {
    transform: rotate(90deg);
}

/* ---- Extra links (expanded content) ---- */
.extra-links-wrapper {
    max-height: 0;
    overflow-y: clip;
    overflow-x: visible;
    transition: max-height 0.3s ease;
}

.file-item.open > .extra-links-wrapper,
.file-item:has(.caret-details[open]) > .extra-links-wrapper {
    max-height: 500px;
    transition: max-height 0.4s ease;
}

.extra-links {
    padding-left: 1.5rem;
    list-style: none;
    margin: 0;
}

.file-item.open > .item-body,
.file-item:has(.caret-details[open]) > .item-body {
    max-height: 250px;
    transition: max-height 0.25s ease;
}

.extra-links.no-indent {
    padding-left: 0;
}

.extra-links li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: nowrap;
    white-space: nowrap;
    color: #252b29;
    font-size: 17px;
}

.extra-links li a {
    display: inline-flex;
    align-items: center;
    max-width: fit-content;
    padding: 2px 6px;
    white-space: nowrap;
    color: #4B0082;
    text-decoration: none;
    font-size: 17px;
    border-bottom: 1px solid transparent;
}

.extra-links li a:hover {
    color: #2F4F4F;
    background-color: rgba(249, 211, 110, 0.25);
}

/* ---- Item body (prose expanded content) ---- */
.item-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 0 0 1.5rem;
    margin: 0;
    font-size: 17px;
    color: #252b29;
}

/* Reset display for li elements in sidenav extra-links */
.sidenav .sidenav-item .extra-links li {
    display: block;
    margin-top: 0;
    gap: 0;
    flex-wrap: normal;
}

/* Style for the links inside */
.sidenav .sidenav-item .extra-links li a {
    display: block;
    padding: 5px 20px;
    max-width: none;
    white-space: normal;
}

/* ---- Remove filter links ---- */
#show-all-traditions,
#show-all-genres {
    background-color: rgba(0, 0, 0, 0.06);
}

/* ---- Active filter highlight ---- */
.filter-active {
    border-top: 3px solid #05533e;
    background-color: rgba(249, 211, 110, 0.15);
    font-weight: bold;
}

/* ---- Pinned filter slot (visible when section is collapsed) ---- */
.pinned-filter-slot {
    padding-left: 1.5rem;
    max-height: 100px;
    overflow: hidden;
    transition: max-height 0.01s ease 0.3s; /* tiny duration, 0.3s delay = wait for collapse */
}

.sidenav-item.open > .pinned-filter-slot {
    max-height: 0 !important;
    transition: max-height 0.01s ease; /* no delay when hiding (section opening) */
}

.pinned-filter-slot a {
    display: block;
    padding: 5px 20px;
    color: #4B0082;
    text-decoration: none;
    border-top: 3px solid #05533e;
    background-color: rgba(249, 211, 110, 0.15);
    font-weight: bold;
    font-size: 17px;
    font-family: "Cabin", sans-serif;
}

.pinned-filter-slot a:hover {
    color: #2F4F4F;
    background-color: rgba(249, 211, 110, 0.25);
}

/* ---- Cross-filter popup ---- */
.cross-filter-popup {
    position: fixed;
    background: #f7f4ee;
    border: 1px solid #05533e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 0.9em;
    font-family: "Cabin", sans-serif;
}

.cross-filter-popup span {
    color: #252b29;
}

.cross-filter-popup button {
    background-color: #05533e;
    color: #fff;
    border: none;
    padding: 4px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9em;
}

.cross-filter-popup button:hover {
    background-color: #087a5a;
}

/* ---- Cross-filter tooltip ---- */
.cross-filter-tooltip {
    position: fixed;
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.8em;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.cross-filter-tooltip.visible {
    opacity: 1;
}


/* ---- Description type pill toggle ---- */
.desc-type-pills {
    display: inline-flex;
    border: 1px solid #05533e;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.6em;
    margin-bottom: 0;
}

.desc-pill {
    padding: 8px 18px;
    border: none;
    background: #fff;
    color: #05533e;
    font-size: 1em;
    font-family: "Cabin", sans-serif;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.desc-pill + .desc-pill {
    border-left: 1px solid #05533e;
}

.desc-pill.active {
    background-color: #05533e;
    color: #fff;
}

.desc-pill:hover:not(.active) {
    background-color: rgba(249, 211, 110, 0.25);
}

/* ---- Prevent mobile long-press link preview on filter links ---- */
.tradition-link,
.genre-link {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* ---- Back to top & floating burger (hidden on desktop) ---- */
.back-to-top {
    display: none;
}

.floating-burger {
    display: none;
}

/* ---- Logo variants ---- */
.header .logo-mobile {
    display: none;
}

.header .logo-desktop {
    display: block;
}

/* ---- Header top row (transparent on desktop) ---- */
.header-top-row {
    display: block;
}

/* ---- Burger menu (hidden on desktop) ---- */
.burger-menu {
    display: none;
}

.sidenav-overlay {
    display: none;
}

/* ---- Responsive Design ---- */
@media only screen and (max-width: 800px) {
    .header {
        margin-left: 0;
        padding: 10px 15px 5px;
        text-align: center;
    }

    /* Top row: logo left, burger right */
    .header-top-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .header-top-row > a {
        flex: 1;
        min-width: 0;
    }

    .header img {
        max-width: 100%;
    }

    /* Swap logos: show full logo on mobile, hide text-only */
    .header .logo-desktop {
        display: none;
    }

    .header .logo-mobile {
        display: block;
    }

    /* Burger: clean hamburger icon */
    .burger-menu {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        background: none;
        border: none;
        padding: 10px;
        cursor: pointer;
        flex-shrink: 0;
    }

    .burger-menu span {
        display: block;
        width: 24px;
        height: 2px;
        background-color: #05533e;
        border-radius: 1px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .burger-menu.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .burger-menu.open span:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Overlay */
    .sidenav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        z-index: 999;
    }

    .sidenav-overlay.open {
        display: block;
    }

    /* Sidenav slide-in */
    .sidenav {
        position: fixed;
        left: -300px;
        top: 0;
        width: 280px;
        height: 100%;
        z-index: 1000;
        transition: left 0.3s ease;
        padding-top: 15px;
        border-right: 1px solid #f9d36e;
    }

    .sidenav.open {
        left: 0;
    }

    .sidenav-logo {
        padding: 5px 40px 10px;
    }

    .sidenav-logo img {
        width: 80px;
        border: 1px solid #f9d36e;
        border-radius: 8px;
        padding: 8px;
        background: #ffffff;
    }

    .sidenav a {
        font-size: 16px;
        padding: 8px 20px;
        text-align: left;
    }

    .main {
        margin-left: 0;
        padding: 10px 15px 30px;
    }

    ul {
        padding-left: 0;
    }

    /* Back to top: gold caret pointing up */
    .back-to-top {
        display: block;
        position: fixed;
        bottom: 20px;
        right: 16px;
        width: 52px;
        height: 52px;
        background: #f7f4ee;
        border: 1px solid #f9d36e;
        border-radius: 10px;
        cursor: pointer;
        z-index: 900;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .back-to-top::after {
        content: "\276F"; /* ❯ */
        display: block;
        color: #f9d36e;
        font-size: 18px;
        line-height: 1;
        text-align: center;
        transform: rotate(-90deg);
    }

    .back-to-top.visible {
        opacity: 1;
        pointer-events: auto;
    }

    /* Floating burger menu */
    .floating-burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        position: fixed;
        top: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
        background: #f7f4ee;
        border: 1px solid #f9d36e;
        border-radius: 10px;
        cursor: pointer;
        z-index: 900;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .floating-burger span {
        display: block;
        width: 24px;
        height: 2px;
        background-color: #f9d36e;
        border-radius: 1px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .floating-burger.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .floating-burger.open span:nth-child(2) {
        opacity: 0;
    }

    .floating-burger.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .floating-burger.visible {
        opacity: 1;
        pointer-events: auto;
    }

    .cross-filter-tooltip:not(.cross-filter-hint) {
        display: none;
    }

    .cross-filter-hint {
        white-space: normal;
        max-width: 260px;
    }

    .cross-filter-popup {
        white-space: normal;
        max-width: 90vw;
    }

    .pinned-filter-slot a {
        text-align: center;
    }
}

/* ---- Welcome / turnstile overlay ---- */
.welcome-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 2em 1em;
    -webkit-overflow-scrolling: touch;
}

.welcome-card {
    background: #fff;
    border-radius: 6px;
    padding: 2em 2.5em;
    max-width: 800px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    font-family: "Noto Sans", sans-serif;
}

.welcome-card h1 {
    font-family: "Cormorant Upright", serif;
    font-weight: 700;
    color: #05533e;
    font-size: 2.4rem;
    line-height: 1.15;
    letter-spacing: 0.003em;
    margin: 0 0 0.7em;
}

.welcome-card ul {
    list-style: none;
    text-align: left;
    margin: 0 0 1.2em 0;
    padding: 0;
    font-size: 1.05em;
    line-height: 1.6;
}

.welcome-card ul li {
    margin-bottom: 0.4em;
}

.welcome-donate {
    text-align: center;
    border-top: 1px solid #f9d36e;
    margin: 0 0 1.2em;
    padding-top: 0.9em;
}

/* Nandi block: three columns — verse | image | translation */
.welcome-nandi {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5em;
    margin-bottom: 1em;
    border-top: 1px solid #f9d36e;
    border-bottom: 1px solid #f9d36e;
    padding: 1em 0;
}

.welcome-figure {
    margin: 0;
    flex: 0 0 auto;
    width: 38%;
    max-width: 280px;
}

.welcome-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.welcome-figure figcaption {
    font-size: 0.8em;
    color: #888;
    margin-top: 0.4em;
    text-align: center;
}

.welcome-verse {
    flex: 1 1 0;
    margin: 0;
    font-size: 0.9em;
    line-height: 1.7;
    text-align: center;
    color: #444;
}

.welcome-verse-source {
    display: block;
    margin-top: 0.5em;
    font-size: 0.95em;
    color: #666;
}

.welcome-translation {
    flex: 1 1 0;
    margin: 0;
    font-size: 0.9em;
    line-height: 1.7;
    text-align: center;
    color: #444;
}

.cf-turnstile {
    display: inline-block;
    margin-top: 0.5em;
}

#enter-btn {
    display: block;
    margin: 0.8em auto 0;
    padding: 0.5em 2em;
    font-size: 1em;
    background: #2F4F4F;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: "Cabin", sans-serif;
    font-weight: 600;
    letter-spacing: 0.03em;
}

#enter-btn:disabled {
    background: #bbb;
    cursor: not-allowed;
}

#enter-btn:not(:disabled):hover {
    background: #1a3333;
}

@media (max-width: 650px) {
    .welcome-overlay {
        padding: 1em 0.5em;
        align-items: flex-start;
    }

    .welcome-card {
        padding: 1.4em 1.2em;
        border-radius: 6px;
        width: 100%;
        box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    }

    .welcome-card h1 {
        font-size: 1.5rem;
    }

    .welcome-card ul {
        font-size: 0.9em;
    }

    .welcome-nandi {
        flex-direction: column;
        gap: 0.5em;
        padding: 0.6em 0;
    }

    .welcome-figure {
        width: 65%;
        max-width: 240px;
    }

    .welcome-verse,
    .welcome-translation {
        font-size: 0.82em;
    }
}
