:root {
    --ink: #352012;
    --red: #8f231d;
    --gold: #d29a28;
    --paper: #fffaf0;
    --line: #ead8b7
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: #f1e7d2;
    color: var(--ink);
    font-family: "Noto Serif Bengali","Siyam Rupali",serif
}

.wrap {
    max-width: 1050px;
    margin: auto;
    padding: 24px
}

header {
    text-align: center;
    background: linear-gradient(135deg,#721b18,#a53b24);
    color: #fff7df;
    border-bottom: 6px solid var(--gold);
    padding: 28px;
    border-radius: 14px 14px 4px 4px
}

    header h1 {
        margin: 0;
        font-size: 2.5rem
    }

    header p {
        margin: .45rem 0 0
    }

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 22px;
    margin-top: 18px;
    box-shadow: 0 4px 18px #57320d18
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 15px;
    align-items: end
}

    .form-grid label {
        font-weight: 700
    }

    .form-grid input[type=text], .form-grid input[type=date] {
        width: 100%;
        padding: 10px;
        margin-top: 6px;
        border: 1px solid #cdb78e;
        border-radius: 6px;
        font: inherit
    }

.button {
    background: var(--red);
    color: goldenrod;
    border: 0;
    padding: 12px 16px;
    border-radius: 7px;
    font: inherit;
    font-weight: 700;
    cursor: pointer
}

.error {
    color: #a40000
}

.source {
    float: right;
    background: #f2d99e;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: .82rem
}

    .source.swiss {
        background: #dbe8f7
    }

.facts, .planets {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 0 22px
}

    .facts div, .planets div {
        display: flex;
        justify-content: space-between;
        border-bottom: 1px dotted #d7c49f;
        padding: 9px 0
    }

.status {
    display: block;
    margin-top: 14px;
    color: #695c49;
    font-size: .9rem
}

.daily-elements {
    font-size: 1.08rem;
    line-height: 1.85
}

.panchanga-line {
    padding: 8px 0;
    border-bottom: 1px dotted #d7c49f
}

    .panchanga-line:last-child {
        border-bottom: 0
    }

.lagna-list {
    font-size: 1.05rem;
    line-height: 2
}

.retro {
    grid-column: 1/-1;
    color: #9b231b;
    font-weight: 700;
    padding-top: 12px !important
}

.planets .retro span {
    margin-right: 16px
}

.rashi-card {
    overflow: hidden
}

.rashi-chart-wrap {
    max-width: 680px;
    margin: 18px auto 0;
    padding: 8px
}

.bengali-rasi-svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    background: #fffaf0;
    border-radius: 50%;
    filter: drop-shadow(0 5px 12px rgba(71,43,14,.12))
}

.rasi-outer-circle, .rasi-ring-inner-circle, .rasi-grid-line {
    fill: none;
    stroke: #654923;
    stroke-width: 3
}

.rasi-outer-circle {
    stroke-width: 4
}

.rasi-ring-name {
    fill: #7b2d16;
    font-size: 14px;
    font-weight: 700;
    font-family: "Noto Sans Bengali","Siyam Rupali",sans-serif
}

.rasi-zodiac-icon {
    fill: #30261a;
    font-size: 26px;
    font-family: "Segoe UI Symbol","Noto Sans Symbols 2",sans-serif
}

.rasi-graha {
    font-weight: 700;
    font-family: "Noto Sans Bengali","Siyam Rupali",sans-serif;
    paint-order: stroke;
    stroke: #fffaf0;
    stroke-width: .8px;
    stroke-linejoin: round
}

@media(max-width:760px) {
    .wrap {
        padding: 10px
    }

    .form-grid {
        grid-template-columns: 1fr 1fr
    }

    .facts, .planets {
        grid-template-columns: 1fr
    }

    header h1 {
        font-size: 1.8rem
    }

    .rashi-chart-wrap {
        padding: 0
    }
}

@media(max-width:440px) {
    .form-grid {
        grid-template-columns: 1fr
    }

    .source {
        float: none;
        display: inline-block
    }

    .rasi-ring-name {
        font-size: 12px
    }

    .rasi-zodiac-icon {
        font-size: 22px
    }
}

.festival-list {
    display: grid;
    gap: .65rem
}

.festival-item {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .7rem .85rem;
    border-radius: 9px;
    background: #fff8e8;
    border-left: 4px solid #b75a1f
}

.festival-badge {
    flex: 0 0 auto;
    padding: .18rem .5rem;
    border-radius: 999px;
    background: #7b1f1f;
    color: #fff;
    font-size: .78rem
}

.festival-empty {
    margin: 0;
    color: #6b6257
}

.eclipse-card {
    border-left: 5px solid #5b2870
}

.eclipse-event {
    padding: .8rem 0
}

    .eclipse-event + .eclipse-event {
        border-top: 1px solid #ded4e8
    }

    .eclipse-event h3 {
        margin: 0 0 .6rem;
        color: #5b2870
    }

    .eclipse-event small {
        font-weight: normal;
        color: #6d6072
    }

.visibility {
    display: inline-block;
    margin: 0 0 .7rem;
    padding: .25rem .65rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .85rem
}

    .visibility.visible {
        background: #e6f6e9;
        color: #246237
    }

    .visibility.not-visible {
        background: #fdf3e2;
        color: #8c5b0f
    }

.eclipse-form {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
    align-items: end
}

    .eclipse-form label {
        display: grid;
        gap: 5px;
        font-weight: 700
    }

    .eclipse-form input, .eclipse-form select {
        box-sizing: border-box;
        width: 100%;
        padding: 10px;
        border: 1px solid #ccb88f;
        border-radius: 7px;
        background: #fff
    }

.ec-note {
    color: #6d6072
}

.ec-result {
    padding: 1rem 0
}

    .ec-result + .ec-result {
        border-top: 2px solid #ead6ac
    }

.ec-result-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center
}

    .ec-result-head h3 {
        color: #5b2870;
        margin: .2rem 0
    }

    .ec-result-head span {
        padding: .25rem .65rem;
        border-radius: 999px;
        background: #eee6f2;
        color: #5b2870
    }

.ec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
}

.ec-table {
    width: 100%;
    border-collapse: collapse
}

    .ec-table th, .ec-table td {
        padding: 7px;
        border-bottom: 1px solid #eee6f2;
        text-align: left
    }

    .ec-table th {
        color: #6a3679
    }

@media(max-width:760px) {
    .eclipse-form, .ec-grid {
        grid-template-columns: 1fr
    }

    .ec-result-head {
        align-items: flex-start;
        flex-direction: column
    }
}

.calendar-wrap {
    max-width: 1280px
}

.calendar-form {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
    align-items: end
}

    .calendar-form label {
        display: grid;
        gap: 5px;
        font-weight: 700
    }

    .calendar-form input, .calendar-form select {
        box-sizing: border-box;
        width: 100%;
        padding: 10px;
        border: 1px solid #ccb88f;
        border-radius: 7px;
        background: #fff
    }

.calendar-help {
    padding: 10px 14px;
    border-radius: 9px;
    background: #fff8e8;
    color: #674d18
}

.bangla-month {
    margin: 0 0 30px;
    border: 2px solid #856404;
    background: #fff;
    box-shadow: 0 4px 14px rgba(60,23,69,.06)
}

.month-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(135deg,#856404,#4d3900);
    color: #fff
}

    .month-title strong {
        font-size: 1.45rem;
        color: #ffd700
    }

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7,minmax(0,1fr))
}

.weekday-row > div {
    padding: 10px 2px;
    text-align: center;
    font-weight: 700;
    color: #856404;
    background: #fdfaf2;
    border: 1px solid #eaddca
}

.weekday-row .weekend {
    color: #b30000;
    background: #faeccb
}

.day-cell {
    position: relative;
    min-height: 118px;
    padding: 7px;
    border: 1px solid #eaddca;
    color: #333;
    text-decoration: none;
    overflow: hidden;
    background: #fff
}

    .day-cell.weekend {
        background: #fffdf5
    }

    .day-cell.holiday {
        background: #ffebee
    }

    .day-cell.eclipse-day {
        box-shadow: inset 0 0 0 3px #6a3679
    }

    .day-cell:hover {
        z-index: 1;
        background: #fff8d9;
        box-shadow: inset 0 0 0 2px #d4af37
    }

    .day-cell.empty {
        background: #faf8f5
    }

.date-pair {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px
}

    .date-pair b {
        font-size: 1.35rem;
        color: #856404
    }

.weekend .date-pair b {
    color: #b30000
}

.date-pair span {
    font-size: .78rem;
    color: #777
}

.cell-events {
    font-size: .72rem;
    line-height: 1.25
}

.cell-festival {
    margin-bottom: 3px;
    color: #b30000;
    font-weight: 700
}

    .cell-festival.us-holiday {
        color: #c62828
    }

.cell-eclipse {
    margin-bottom: 3px;
    color: #5b2870;
    font-weight: 800
}

.cell-tithi {
    color: #666;
    font-size: .68rem
}

.calendar-form .error {
    grid-column: 1/-1
}

@media(max-width:760px) {
    .calendar-form {
        grid-template-columns: 1fr
    }

    .bangla-month {
        overflow-x: auto
    }

    .calendar-grid {
        min-width: 760px
    }

    .month-title {
        min-width: 724px
    }

    .day-cell {
        min-height: 105px
    }
}

.day-cell.bg-amavasya {
    background: #eee;
    color: #222
}

.day-cell.bg-purnima {
    background: #e8f4ff
}

.day-cell.bg-ekadasi {
    background: #fff9c9
}

.day-cell.holiday.bg-amavasya, .day-cell.holiday.bg-purnima, .day-cell.holiday.bg-ekadasi {
    background-image: linear-gradient(rgba(255,235,238,.45),rgba(255,235,238,.45))
}

.moon-icon {
    display: inline-block;
    margin-right: 3px;
    font-size: .9rem;
    vertical-align: -1px
}

.calendar-footer {
    padding: 11px 16px;
    border-top: 1px solid #d4af37;
    background: #fffdf5;
    color: #4d3900;
    font-size: .82rem;
    text-align: center
}

.printed-date {
    clear: both;
    margin: 12px 0 16px;
    padding: 12px 14px;
    border: 1px solid #d9bd7c;
    border-radius: 8px;
    background: #fff7df;
    color: blue;
    line-height: 1.85
}

.sandhya-summary {
    display: grid;
    gap: 8px
}

    .sandhya-summary > div {
        padding: 8px;
        border-bottom: 1px dotted #d7c49f
    }

.detail-link {
    display: inline-block;
    margin-top: 12px;
    color: #7b1f1f;
    font-weight: 700
}

.traditional-text {
    line-height: 1.8
}

.sandhya-form {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 12px;
    align-items: end
}

    .sandhya-form label {
        display: grid;
        gap: 5px;
        font-weight: 700
    }

    .sandhya-form input {
        width: 100%;
        padding: 10px;
        border: 1px solid #ccb88f;
        border-radius: 7px
    }

.sandhya-quote {
    font-size: 1.05rem;
    line-height: 1.7
}

.table-responsive {
    overflow-x: auto
}

.sandhya-table {
    width: 100%;
    border-collapse: collapse
}

    .sandhya-table th, .sandhya-table td {
        padding: 10px;
        border: 1px solid #e1cfaa;
        text-align: left
    }

    .sandhya-table th {
        background: #6b471c;
        color: #fff
    }

.sandhya-highlight-row {
    background: #fff1c7
}

.sun-highlight-row {
    background: #e8f4ff
}

@media(max-width:760px) {
    .sandhya-form {
        grid-template-columns: 1fr
    }

    .printed-date {
        font-size: .92rem
    }
}

.page-shell {
    max-width: 1180px;
    margin: auto;
    padding: 18px
}

.tool-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px
}

    .tool-nav a {
        color: #6f351e;
        font-weight: 700
    }

.research-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end
}

    .research-form label {
        display: flex;
        flex-direction: column;
        gap: 5px;
        font-weight: 700
    }

    .research-form input, .research-form select {
        padding: 9px;
        border: 1px solid #cdbb9f;
        border-radius: 7px
    }

.result-card {
    margin-top: 18px;
    background: #fff;
    border: 1px solid #dfd2bd;
    border-radius: 14px;
    padding: 18px
}

.table-scroll {
    overflow-x: auto
}

.research-table {
    width: 100%;
    border-collapse: collapse
}

    .research-table th, .research-table td {
        border: 1px solid #e5d8c4;
        padding: 9px;
        text-align: left;
        vertical-align: top
    }

    .research-table th {
        background: #f5ead7;
        color: #632d1b
    }

    .research-table tr:nth-child(even) td {
        background: #fffbf4
    }

.combust td {
    background: #ffe7e0 !important
}

.highlight-result {
    background: #fff1c9;
    border-left: 5px solid #b77a17;
    padding: 14px;
    margin: 12px 0
}

.fact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(190px,1fr));
    gap: 10px;
    margin-bottom: 18px
}

    .fact-grid > div {
        background: #fff7e9;
        padding: 12px;
        border-radius: 9px
    }

    .fact-grid b, .fact-grid span {
        display: block
    }

.puja-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 14px
}

.puja-card {
    border: 1px solid #dfcfb2;
    border-radius: 12px;
    padding: 15px;
    background: #fffaf2
}

    .puja-card h3 {
        color: #792716;
        margin-top: 0
    }

    .puja-card dl {
        display: grid;
        grid-template-columns: 110px 1fr;
        gap: 7px
    }

    .puja-card dt {
        font-weight: 800
    }

    .puja-card dd {
        margin: 0
    }

.puja-date {
    font-weight: 700;
    color: #675342
}

.research-note {
    background: #fff8df;
    border-left: 4px solid #c69a27;
    padding: 11px
}

.result-head {
    text-align: center
}

.error {
    color: #9b1515;
    font-weight: 700
}

.puja-image {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: contain;
    margin: 0 auto 12px
}

.puja-badge {
    display: inline-block;
    margin: 7px 4px 3px 0;
    padding: 4px 8px;
    border-radius: 12px;
    background: #f2d999;
    color: #6c3b00;
    font-size: 12px;
    font-weight: 800
}

    .puja-badge.ksaya {
        background: #f5c7c7;
        color: #7d1717
    }

.ritual-note {
    margin: 7px 0 0;
    padding: 8px;
    background: #fff0c9;
    border-left: 3px solid #a86e13;
    line-height: 1.55
}

.chakra-map {
    position: relative;
    max-width: 760px;
    min-height: 650px;
    margin: 20px auto 30px;
    background: #fffaf1;
    border: 1px solid #e4d3b5;
    border-radius: 18px
}

.chakra-person {
    position: absolute;
    left: 50%;
    top: 105px;
    bottom: 35px;
    transform: translateX(-50%);
    width: 300px;
    text-align: center
}

    .chakra-person img {
        max-width: 100%;
        height: 100%;
        object-fit: contain
    }

.chakra-label {
    position: absolute;
    z-index: 2;
    min-width: 115px;
    max-width: 190px;
    padding: 7px 9px;
    background: #fff;
    border: 1px solid #d6bd91;
    border-radius: 9px;
    text-align: center;
    box-shadow: 0 3px 10px #5f3d1520;
    font-size: 13px
}

.fig-head {
    top: 12px;
    left: 17%
}

.fig-face {
    top: 12px;
    left: 42%
}

.fig-eyes {
    top: 12px;
    right: 8%
}

.fig-heart {
    top: 255px;
    left: 50%;
    transform: translateX(-50%)
}

.fig-rhand {
    top: 275px;
    left: 2%
}

.fig-lhand {
    top: 275px;
    right: 2%
}

.fig-guhya {
    top: 405px;
    right: 5%
}

.fig-rfoot {
    bottom: 20px;
    right: 5%
}

.fig-lfoot {
    bottom: 20px;
    left: 5%
}

@media(max-width:700px) {
    .chakra-map {
        min-height: 760px
    }

    .chakra-person {
        top: 145px;
        width: 240px
    }

    .chakra-label {
        min-width: 95px;
        max-width: 135px;
        font-size: 11px
    }

    .fig-head {
        left: 2%
    }

    .fig-face {
        left: 36%
    }

    .fig-eyes {
        right: 2%
    }

    .fig-heart {
        top: 300px
    }

    .fig-rhand {
        top: 345px
    }

    .fig-lhand {
        top: 345px
    }

    .fig-guhya {
        top: 475px
    }
}

.sanchar-figure-scroll {
    overflow-x: auto;
    padding-bottom: 4px
}

.sanchar-map {
    width: 760px;
    max-width: none;
    min-height: 720px
}

    .sanchar-map .chakra-person {
        top: 120px;
        bottom: 72px;
        width: 280px
    }

    .sanchar-map .fig-head {
        top: 14px;
        left: 20px
    }

    .sanchar-map .fig-face {
        top: 14px;
        left: 50%;
        transform: translateX(-50%)
    }

    .sanchar-map .fig-eyes {
        top: 14px;
        right: 20px
    }

    .sanchar-map .fig-ears {
        top: 112px;
        right: 20px
    }

    .sanchar-map .fig-throat {
        top: 192px;
        right: 20px;
        left: auto;
        transform: none
    }

    .sanchar-map .fig-rhand {
        top: 192px;
        left: 20px
    }

    .sanchar-map .fig-heart {
        top: 292px;
        left: 20px;
        transform: none
    }

    .sanchar-map .fig-lhand {
        top: 292px;
        right: 20px
    }

    .sanchar-map .fig-back {
        top: 402px;
        left: 20px
    }

    .sanchar-map .fig-guhya {
        top: 402px;
        right: 20px
    }

    .sanchar-map .fig-extra {
        bottom: 112px;
        left: 20px
    }

    .sanchar-map .fig-rfoot {
        bottom: 20px;
        left: 20px;
        right: auto
    }

    .sanchar-map .fig-lfoot {
        bottom: 20px;
        right: 20px;
        left: auto
    }

    .sanchar-map .fig-feet {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%)
    }

.cell-vaisnava {
    margin: 3px 0;
    color: #68431e;
    font-size: 11px;
    font-weight: 700
}

.marriage-pass {
    color: #176b31;
    font-weight: 800
}

.marriage-block {
    color: #9b1515;
    font-weight: 800
}

.research-table tr.marriage-ok td {
    background: #edf8e9
}

.marriage-final {
    border-top: 5px solid #9a6716
}

.marriage-window {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 10px 0;
    padding: 14px;
    border: 1px solid #d8bd83;
    border-radius: 10px;
    background: #fff5d9
}

    .marriage-window strong {
        font-size: 1.08rem;
        color: #6d2d18
    }

    .marriage-window span {
        font-weight: 700
    }

@media(max-width:650px) {
    .marriage-window {
        display: block
    }

        .marriage-window span {
            display: block;
            margin-top: 6px
        }
}

.restriction-badge, .adhika-badge, .adhika-transition {
    display: block;
    margin: 4px 0;
    padding: 4px 7px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800
}

.restriction-badge {
    background: #f7d8d3;
    color: #871f14
}

.adhika-badge {
    background: #eee1ff;
    color: #59298a
}

.adhika-transition {
    background: #fff0bd;
    color: #704400
}

.site-main {
    min-height: 65vh
}

.skip-link {
    position: absolute;
    left: -9999px
}

    .skip-link:focus {
        left: 10px;
        top: 10px;
        z-index: 9999;
        background: #fff;
        padding: 8px
    }

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff8e9;
    border-bottom: 1px solid #dac49d;
    box-shadow: 0 3px 14px #4b260f18
}

.site-brand {
    max-width: 1180px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px
}

    .site-brand > a {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #6d2719;
        text-decoration: none
    }

    .site-brand strong, .site-brand small {
        display: block
    }

    .site-brand strong {
        font-size: 1.28rem
    }

    .site-brand small {
        color: #735c49
    }

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e6a51b;
    color: #7b270e;
    font-size: 25px
}

.menu-toggle {
    display: none;
    border: 0;
    background: #7a2a18;
    color: #fff;
    padding: 8px 11px;
    border-radius: 7px;
    font-size: 20px
}

.main-menu {
    max-width: 1180px;
    margin: auto;
    display: flex;
    align-items: stretch;
    gap: 3px;
    padding: 0 18px
}

    .main-menu details {
        position: relative
    }

    .main-menu summary, .main-menu .menu-leaf {
        display: block;
        padding: 10px 13px;
        color: #572518;
        font-weight: 800;
        text-decoration: none;
        cursor: pointer;
        list-style: none
    }

        .main-menu summary::-webkit-details-marker {
            display: none
        }

        .main-menu summary:after {
            content: ' ▾';
            font-size: 10px
        }

    .main-menu details > div {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 210px;
        padding: 7px;
        background: #fff;
        border: 1px solid #d9c29d;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 9px 22px #4a260f25
    }

        .main-menu details > div a {
            display: block;
            padding: 9px 10px;
            color: #603221;
            text-decoration: none;
            border-radius: 6px
        }

            .main-menu details > div a:hover, .main-menu summary:hover, .main-menu .menu-leaf:hover {
                background: #f1dfbd
            }

.site-footer {
    margin-top: 28px;
    padding: 24px max(18px,calc((100% - 1144px)/2));
    background: #4f281c;
    color: #fbeed8;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px
}

    .site-footer div span, .site-footer div strong {
        display: block
    }

    .site-footer a {
        color: #ffe2a5;
        margin-left: 13px
    }

    .site-footer small {
        grid-column: 1/-1;
        color: #e2c9b1
    }

@media(max-width:760px) {
    .menu-toggle {
        display: block
    }

    .main-menu {
        display: none;
        padding: 7px 12px 12px;
        flex-direction: column
    }

        .main-menu.open {
            display: flex
        }

        .main-menu details > div {
            position: static;
            box-shadow: none;
            border-radius: 8px;
            margin: 0 6px 5px
        }

        .main-menu summary, .main-menu .menu-leaf {
            padding: 10px
        }

    .site-header {
        position: relative
    }

    .site-brand strong {
        font-size: 1.02rem
    }

    .site-footer {
        grid-template-columns: 1fr
    }

        .site-footer nav {
            display: flex;
            flex-wrap: wrap;
            gap: 10px
        }

        .site-footer a {
            margin: 0
        }

    .calendar-grid {
        min-width: 700px
    }

    .bangla-month {
        overflow-x: auto
    }

    .day-cell {
        min-height: 130px
    }

    .research-form {
        display: grid;
        grid-template-columns: 1fr
    }

        .research-form label, .research-form input, .research-form select, .research-form button {
            width: 100%;
            box-sizing: border-box
        }

    .page-shell, .wrap {
        padding-left: 10px;
        padding-right: 10px
    }
}

.muhurta-strip {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 8px 0 14px
}

    .muhurta-strip b {
        padding: 9px 14px;
        border-radius: 9px;
        background: #6b371f;
        color: #fff;
        font-size: 1.05rem
    }

.printed-three {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px
}

.printed-col {
    overflow: hidden;
    border: 1px solid #d8bf90;
    border-radius: 10px;
    background: #fffaf0
}

    .printed-col h3 {
        margin: 0;
        padding: 9px 11px;
        background: #f1dfbd;
        color: #652d1a
    }

    .printed-col > div {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        padding: 7px 11px;
        border-top: 1px dotted #dcc9a5
    }

    .printed-col span {
        color: #6a5a49
    }

.ravi-charan {
    margin: 14px 0;
    padding: 11px 13px;
    background: #fff2cb;
    border-left: 4px solid #9b6517;
    font-size: 1.08rem
}

    .ravi-charan span {
        color: #665448;
        font-size: .9rem
    }

.daily-movements h3 {
    color: #672817
}

.daily-movements ul {
    margin: 8px 0;
    padding-left: 1.35rem
}

.daily-movements li {
    margin: 6px 0
}

.daily-movements time {
    display: inline-block;
    min-width: 118px;
    font-weight: 800;
    color: #6d321c
}

.retro-now {
    padding: 8px 11px;
    background: #f7dfdc;
    border-radius: 8px;
    color: #831d18
}

@media(max-width:760px) {
    .printed-three {
        grid-template-columns: 1fr
    }

    .daily-movements time {
        display: block;
        min-width: 0
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px
}

.language-picker {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #5d2a19;
    font-size: .85rem;
    font-weight: 800
}

    .language-picker select {
        max-width: 190px;
        padding: 7px 9px;
        border: 1px solid #c9ac7c;
        border-radius: 7px;
        background: #fffdf7;
        color: #512416;
        font: inherit
    }

html[data-language="bpy"] body, html[data-language="bn-BD"] body, html[lang="as"] body {
    font-family: "Siyam Rupali","Nirmala UI","Noto Sans Bengali",sans-serif
}

@media(max-width:600px) {
    .site-brand {
        align-items: flex-start
    }

    .header-actions {
        flex-direction: column;
        align-items: flex-end
    }

    .language-picker span {
        display: none
    }

    .language-picker select {
        max-width: 150px;
        font-size: .78rem
    }
}

.conversion-grid {
    display: grid;
    gap: 18px
}

.conversion-tool {
    margin-top: 0
}

.shared-location {
    margin: 18px 0
}

.conversion-result {
    margin-top: 14px;
    padding: 14px;
    border-left: 5px solid #9a6716;
    border-radius: 9px;
    background: #fff4d6;
    line-height: 1.75
}

.birth-tool {
    grid-column: 1/-1
}

.birth-judgment {
    padding: 13px;
    background: #fff8e4;
    border: 1px solid #e3cca2;
    border-radius: 9px;
    line-height: 1.8
}

@media(min-width:980px) {
    .conversion-grid {
        grid-template-columns: 1fr 1fr
    }
}

.year-report {
    max-width: 900px;
    margin: 20px auto
}

.year-cover, .month-divider {
    text-align: center;
    padding: 50px 10px;
    background: #fffaf0;
    border: 2px solid #59432a
}

.month-divider {
    margin-top: 25px
}

.printed-day {
    margin: 20px 0;
    border: 2px solid #59432a;
    background: #fffdf7;
    padding: 10px
}

.day-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px;
    border-bottom: 2px solid #59432a
}

.printed-columns {
    display: grid;
    grid-template-columns: minmax(180px,26%) 1fr
}

.day-margin {
    padding: 9px;
    border-right: 1px solid #8d7b62;
    font-size: .82rem;
    line-height: 1.5
}

.day-text {
    padding: 9px;
    line-height: 1.65
}

    .day-text section {
        margin-top: 9px;
        padding-top: 6px;
        border-top: 1px solid #b9aa94
    }

    .day-text h3 {
        margin: 3px 0 5px
    }

.printed-day table {
    width: 100%;
    border-collapse: collapse;
    font-size: .84rem
}

.printed-day th, .printed-day td {
    border: 1px solid #b4a185;
    padding: 5px
}

.printed-day footer {
    border-top: 1px solid #8d7b62;
    padding-top: 5px;
    font-size: .72rem
}

.special {
    padding: 8px;
    background: #faf1dc
}

.year-rashi {
    max-width: 430px;
    margin: auto
}

@media(max-width:700px) {
    .printed-columns {
        grid-template-columns: 1fr
    }

    .day-margin {
        border-right: 0;
        border-bottom: 1px solid #8d7b62
    }

    .day-head {
        display: block
    }
}

@media print {
    .no-print, .site-header, .site-footer {
        display: none !important
    }

    .site-main, .page-shell {
        padding: 0
    }

    .year-report {
        max-width: none;
        margin: 0
    }

    .year-cover {
        page-break-after: always
    }

    .month-divider {
        page-break-before: always
    }

    .printed-day {
        page-break-after: always;
        margin: 0;
        border-color: #222;
        box-shadow: none
    }
}

.book-top {
    padding: 6px;
    text-align: center;
    border-bottom: 2px solid #59432a
}

    .book-top > span {
        float: right
    }

    .book-top .printed-date {
        clear: both;
        margin: 5px 0;
        padding: 4px;
        font-size: .8rem
    }

.book-columns {
    display: grid;
    grid-template-columns: 25% 75%
}

.book-left {
    padding: 6px;
    border-right: 1px solid #8d7b62;
    font-size: .72rem
}

.book-right {
    padding: 7px;
    font-size: .84rem;
    line-height: 1.45
}

    .book-right section {
        padding-top: 4px;
        border-top: 1px solid #b9aa94
    }

    .book-right h3, .book-bottom h3 {
        margin: 3px 0;
        font-size: .92rem
    }

.book-bottom {
    padding: 7px;
    border-top: 2px solid #59432a;
    font-size: .8rem
}

.book-left .muhurta-strip {
    display: block;
    margin: 4px 0
}

    .book-left .muhurta-strip b {
        display: block;
        padding: 2px;
        background: none;
        color: inherit;
        font-size: .75rem
    }

.book-left .printed-three {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 1px
}

.book-left .printed-col {
    border-radius: 0
}

    .book-left .printed-col h3 {
        padding: 2px;
        font-size: .64rem
    }

    .book-left .printed-col > div {
        display: block;
        padding: 2px;
        text-align: center
    }

    .book-left .printed-col span {
        display: none
    }

.book-left .ravi-charan {
    margin: 4px 0;
    padding: 3px;
    font-size: .75rem
}

.book-left .daily-movements {
    font-size: .68rem
}

    .book-left .daily-movements h3 {
        font-size: .76rem
    }

    .book-left .daily-movements time {
        min-width: 0
    }

.book-festivals {
    margin: 3px 0;
    padding-left: 18px
}

.continuous-panchanga {
    margin: 3px 0
}

.lagna-rise-set {
    font-weight: 700;
    text-align: center
}

.hijri-date {
    margin-top: 6px
}

@media(max-width:700px) {
    .book-columns {
        grid-template-columns: 1fr
    }

    .book-left {
        border-right: 0;
        border-bottom: 1px solid #8d7b62
    }
}

@media print {
    @page {
        size: Letter portrait;
        margin: .32in
    }

    .book-day {
        font-size: 9pt
    }
}

.region-presets {
    max-width: 1180px;
    margin: auto;
    padding: 2px 18px 7px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-size: .82rem
}

    .region-presets span {
        color: #6b5949
    }

    .region-presets a {
        padding: 4px 9px;
        border: 1px solid #d7bd91;
        border-radius: 999px;
        background: #fffdf7;
        color: #6d2719;
        text-decoration: none;
        font-weight: 800
    }

        .region-presets a:hover {
            background: #f1dfbd
        }

.ba-today {
    text-align: center;
    font-size: 1.08rem
}

.ba-page .calendar-form {
    grid-template-columns: repeat(4,minmax(0,1fr))
}

.ba-calendar-output {
    margin-top: 18px
}

.ba-year-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 14px
}

.ba-month-card {
    min-width: 0;
    overflow-x: auto
}

.ba-single {
    max-width: 760px;
    margin: auto;
    overflow-x: auto
}

.ba-table {
    width: 100%;
    min-width: 430px;
    border-collapse: collapse;
    background: #fffdf8;
    border: 1px solid #c8ae80
}

    .ba-table th, .ba-table td {
        border: 1px solid #dbc8a7;
        text-align: center
    }

    .ba-table th {
        padding: 7px
    }

.ba-month-head th {
    background: #6b341f;
    color: #fff4d9
}

.ba-gregorian-head th {
    background: #f0dfbf;
    color: #632d1b;
    font-size: 1.08rem
}

.ba-table .ba-weekend {
    color: #a31919
}

.ba-day, .ba-empty {
    height: 64px;
    padding: 6px;
    vertical-align: top
}

.ba-day {
    position: relative;
    background: #fff
}

    .ba-day.ba-weekend {
        background: #fff8ed
    }

    .ba-day.ba-current {
        box-shadow: inset 0 0 0 3px #a62b21;
        background: #fff1c9
    }

.ba-gday {
    display: block;
    text-align: left;
    font: 700 1rem Georgia,serif
}

.ba-bday {
    display: block;
    text-align: right;
    color: #7b291a;
    font-size: 1.08rem;
    font-weight: 800
}

.mean-solar-grid {
    max-width: 820px;
    margin: auto
}

    .mean-solar-grid small {
        display: block;
        margin-top: 4px;
        color: #7b291a;
        font-weight: 700
    }

.small {
    font-size: .82rem;
    color: #6b6257
}

@media(max-width:900px) {
    .ba-year-grid {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }
}

@media(max-width:760px) {
    .region-presets {
        justify-content: center;
        flex-wrap: wrap
    }

        .region-presets span {
            width: 100%;
            text-align: center
        }

    .ba-page .calendar-form {
        grid-template-columns: 1fr
    }

    .ba-year-grid {
        grid-template-columns: 1fr
    }

    .ba-day, .ba-empty {
        height: 58px
    }
}

.illustrated-festival-section, .illustrated-rashi-section {
    max-width: 900px;
    margin: 20px auto;
    padding: 18px;
    border: 2px solid #59432a;
    background: #fffdf7
}

    .illustrated-festival-section h2, .illustrated-rashi-section h2 {
        margin: 0 0 14px;
        text-align: center;
        color: #6d2719
    }

.illustrated-festival-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 12px
}

.illustrated-festival-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 88px;
    padding: 11px;
    border: 1px solid #dbc49c;
    border-radius: 10px;
    background: #fff8e8
}

    .illustrated-festival-card img {
        width: 68px;
        height: 68px;
        flex: 0 0 68px;
        object-fit: contain;
        border-radius: 8px;
        background: #fff
    }

    .illustrated-festival-card small, .illustrated-festival-card strong {
        display: block
    }

    .illustrated-festival-card small {
        color: #765f49
    }

    .illustrated-festival-card strong {
        margin-top: 3px;
        color: #792716;
        font-size: 1.04rem
    }

.festival-empty {
    text-align: center;
    color: #6b6257
}

.illustrated-rashi-section .rashi-chart-wrap {
    max-width: 720px
}

.social-publish-page {
    max-width: 1000px
}

.social-editor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
}

.social-editor-card {
    background: #fffdf7;
    border: 1px solid #d9c29d;
    border-radius: 12px;
    padding: 16px
}

    .social-editor-card h2 {
        margin-top: 0;
        color: #6d2719
    }

.social-textarea {
    width: 100%;
    min-height: 230px;
    padding: 13px;
    border: 1px solid #c9ac7c;
    border-radius: 8px;
    background: #fff;
    color: #2d2117;
    font: inherit;
    line-height: 1.6;
    resize: vertical
}

.social-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px
}

.social-action {
    border: 0;
    border-radius: 7px;
    padding: 10px 15px;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer
}

    .social-action.x {
        background: #111
    }

    .social-action.facebook {
        background: #1877f2
    }

    .social-action.whatsapp {
        background: #1f9f52
    }

    .social-action.copy {
        background: #856404
    }

.social-api {
    margin-top: 18px;
    padding: 15px;
    border: 1px solid #d9c29d;
    border-radius: 10px;
    background: #fff8e8
}

.social-status {
    display: block;
    margin: 12px 0;
    padding: 10px;
    border-radius: 8px;
    background: #fff2cd;
    color: #6d321c;
    font-weight: 700
}

.social-preview {
    margin-top: 24px
}

@media(max-width:760px) {
    .social-editor-grid {
        grid-template-columns: 1fr
    }

    .illustrated-festival-grid {
        grid-template-columns: 1fr
    }
}

@media print {
    .illustrated-festival-section, .illustrated-rashi-section {
        max-width: none;
        margin: 0;
        box-shadow: none;
        page-break-before: always
    }

    .illustrated-festival-card {
        break-inside: avoid
    }

    .illustrated-rashi-section .rashi-chart-wrap {
        max-width: 650px
    }

    .social-publish-page .social-editor-grid, .social-publish-page .social-api {
        display: none !important
    }
}

/* V37: Bhava Chalita table */
.bhava-chalita {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 3px double #9a6716
}

    .bhava-chalita h2, .bhava-chalita h3 {
        color: #7c2d12
    }

.bhava-table th, .bhava-table td {
    vertical-align: top
}

    .bhava-table td.highlight {
        background: #fff1c9;
        font-weight: 800
    }

        .bhava-table td.highlight small {
            display: block;
            margin-top: 4px;
            color: #6b4b25
        }

/* V37: Conversion Tools help page */
.help-nav {
    position: sticky;
    top: 92px;
    z-index: 5;
    padding: 10px;
    border: 1px solid #d7bd91;
    border-radius: 9px;
    background: #fffaf0
}

.help-section {
    scroll-margin-top: 150px
}

    .help-section li {
        margin: .55rem 0
    }

.screenshot-placeholder {
    display: grid;
    place-items: center;
    min-height: 220px;
    margin-top: 16px;
    padding: 24px;
    border: 3px dashed #c9aa72;
    border-radius: 12px;
    background: repeating-linear-gradient(135deg, #fffaf0, #fffaf0 14px, #fbf1dd 14px, #fbf1dd 28px);
    text-align: center;
    color: #77512b
}

    .screenshot-placeholder strong, .screenshot-placeholder span {
        display: block
    }

    .screenshot-placeholder span {
        margin-top: 7px;
        font-size: .9rem
    }

/* V37: public question/request page */
.question-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px
}

    .question-form label, .admin-login label, .admin-question label {
        display: grid;
        gap: 6px;
        font-weight: 800
    }

    .question-form input, .question-form textarea, .admin-login input, .admin-question textarea {
        width: 100%;
        padding: 10px;
        border: 1px solid #c9ac7c;
        border-radius: 7px;
        background: #fff;
        font: inherit
    }

.question-wide {
    grid-column: 1/-1
}

.question-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important
}

.question-success {
    margin: 12px 0;
    padding: 12px;
    border-left: 5px solid #2b7b42;
    border-radius: 7px;
    background: #e8f6eb;
    color: #205d31;
    font-weight: 800
}

.qa-card {
    margin: 14px 0;
    padding: 16px;
    border: 1px solid #dcc7a1;
    border-radius: 10px;
    background: #fffaf0
}

    .qa-card h3 {
        margin: 0 0 12px;
        color: #6d2719
    }

.qa-answer {
    padding: 12px;
    border-left: 4px solid #9a6716;
    background: #fff3d5;
    line-height: 1.7
}

.qa-card footer {
    margin-top: 10px;
    color: #6c5b49;
    font-size: .85rem
}

/* V37: private moderation page */
.admin-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 15px 0
}

.admin-login {
    max-width: 520px;
    margin: 22px auto
}

.admin-question {
    margin: 16px 0;
    padding: 16px;
    border: 1px solid #d8c29b;
    border-radius: 10px;
    background: #fffaf0
}

    .admin-question > header {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding-bottom: 8px;
        border-bottom: 1px solid #decbaa
    }

    .admin-question dl {
        display: grid;
        grid-template-columns: 130px 1fr;
        gap: 6px
    }

    .admin-question dt {
        font-weight: 800
    }

    .admin-question dd {
        margin: 0
    }

.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px
}

    .admin-actions button, .admin-toolbar input, .admin-login input[type=submit] {
        padding: 9px 13px;
        border: 0;
        border-radius: 7px;
        background: #7a2a18;
        color: #fff;
        font-weight: 800
    }

.status-published {
    border-left: 6px solid #2b7b42
}

.status-rejected {
    border-left: 6px solid #9b1515
}

@media(max-width:760px) {
    .help-nav {
        position: static
    }

    .question-form {
        grid-template-columns: 1fr
    }

    .admin-question > header {
        display: block
    }

    .admin-question dl {
        grid-template-columns: 1fr
    }

    .admin-question dt {
        margin-top: 6px
    }
}
