/* আজকের বাংলা তারিখ — তারিখ-সাইটের অংশ (হোম, ক্যালেন্ডার, ছুটি, নামাজ, পঞ্জিকা ...) */

.sx-hero { background: linear-gradient(180deg, #E7F5EC 0%, #F6FBF8 100%); border-bottom: 1px solid var(--line); padding: 1.6rem 0 1.4rem; }
.sx-eyebrow { margin: 0 0 .2rem; font-family: var(--f-head); letter-spacing: .04em; color: var(--emerald-deep); font-size: .95rem; }
.sx-hero h1 { font-size: 2.3rem; line-height: 1.35; margin: 0 0 .5rem; }
.sx-lead { font-size: 1.15rem; margin: 0 0 1rem; color: var(--ink); }
.sx-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-bottom: .6rem; }
.sx-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1rem .9rem; text-align: center; display: flex; flex-direction: column; gap: .15rem; }
.sx-tile-main { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.sx-tile .dp-big { font-size: 3.2rem; line-height: 1.1; }
.sx-tile small { opacity: .85; }
.sx-note { color: var(--ink-soft); font-size: .92rem; margin: .2rem 0 0; }

.sx-home { padding-top: 1.2rem; padding-bottom: 2rem; }
.sx-page { padding-bottom: 2rem; }
.sx-grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 1rem; }
.sx-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.sx-grid2 > .sx-card { margin-bottom: 0; }
.sx-card h2 { font-size: 1.35rem; margin: 0 0 .7rem; }
.sx-dist { font-size: .8em; font-weight: 400; color: var(--ink-soft); }
.sx-more { margin: .8rem 0 0; font-size: .98rem; }
.sx-more a { color: var(--emerald-deep); }

/* ঘড়ি */
.sx-clocks { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.sx-clocks > div { background: #F0F7F3; border-radius: var(--r); padding: .7rem .8rem; display: flex; flex-direction: column; gap: .15rem; }
.sx-clk-l { font-size: .9rem; color: var(--ink-soft); }
.sx-clk { font-size: 1.8rem; font-family: var(--f-head); color: var(--emerald-deep); font-variant-numeric: tabular-nums; }
.sx-clocks small { color: var(--ink-soft); font-size: .85rem; }

/* কপি */
.sx-copytext { background: #F0F7F3; border-radius: var(--r); padding: .7rem .8rem; margin: 0 0 .7rem; word-break: break-word; }
.sx-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: .6rem 0 0; }
.sx-copied { color: var(--emerald-deep); font-size: .95rem; }
.sx-share canvas { width: 100%; height: auto; max-width: 600px; border: 1px solid var(--line); border-radius: var(--r); display: block; background: #fff; }

/* নামাজ */
.sx-prayer th { width: 45%; }
.sx-prayer tr.on td, .sx-prayer tr.on th { background: #DDF1E4; font-weight: 700; }
.sx-next { margin: .7rem 0; color: var(--emerald-deep); font-weight: 600; min-height: 1.4em; }
.sx-distform { margin: .6rem 0 0; }
.sx-distform select, .sx-form select, .sx-form input { font: inherit; padding: .4rem .6rem; border: 1px solid #BCD5C6; border-radius: 8px; background: #fff; max-width: 100%; }
.sx-prayrow { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem; }
.sx-prayrow li { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: .7rem .4rem; text-align: center; display: flex; flex-direction: column; gap: .2rem; }
.sx-prayrow li.on { background: var(--emerald); color: #fff; border-color: var(--emerald); }
.sx-prayrow strong { font-size: 1.1rem; }
.sx-districts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .3rem .8rem; }
.sx-districts a { text-decoration: none; color: var(--emerald-deep); }
.sx-districts a.on { font-weight: 700; text-decoration: underline; }
.sx-tablewrap { overflow-x: auto; }
.sx-praytable th, .sx-praytable td, .sx-pjtable th, .sx-pjtable td, .sx-holtable th, .sx-holtable td, .sx-months th, .sx-months td { width: auto; white-space: nowrap; }
.sx-holtable td, .sx-holtable th, .sx-pjtable td, .sx-pjtable th { white-space: normal; }
.sx-praytable tr.on td, .sx-months tr.on td, .sx-pjtable tr.on td, .sx-holtable tr.on td { background: #DDF1E4; }

/* তালিকা */
.sx-list { list-style: none; padding: 0; margin: 0; }
.sx-list li { padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.sx-list li:last-child { border-bottom: 0; }
.sx-hol li { display: grid; grid-template-columns: 8.5rem 1fr auto; gap: .6rem; align-items: baseline; }
.sx-hdate { color: var(--ink-soft); font-size: .95rem; }
.sx-hname { font-weight: 600; }
.sx-cd { font-size: .88rem; color: var(--emerald-deep); white-space: nowrap; }
.sx-tools { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.sx-tools a { display: flex; flex-direction: column; gap: .1rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; background: #FAFCFB; color: var(--ink); }
.sx-tools a:hover { border-color: var(--emerald); background: #F0F7F3; }
.sx-tools b { color: var(--emerald-deep); }
.sx-tools small { color: var(--ink-soft); }
.sx-seasons { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; }
.sx-seasons li { border: 1px solid var(--line); border-radius: var(--r); padding: .5rem; text-align: center; display: flex; flex-direction: column; }
.sx-seasons li.on { background: var(--emerald); color: #fff; border-color: var(--emerald); }
.sx-seasons small { opacity: .85; }
.sx-posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.sx-post { display: flex; flex-direction: column; gap: .1rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.sx-post:hover { border-color: var(--emerald); }
.sx-post small { color: var(--ink-soft); }

/* পঞ্জিকা */
.sx-pjgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.sx-pjgrid > div { background: #F0F7F3; border-radius: var(--r); padding: .7rem .8rem; display: flex; flex-direction: column; gap: .15rem; }
.sx-pjgrid small { color: var(--ink-soft); }
.sx-pjbig { font-size: 1.5rem; }

/* ট্যাব ও মাস-নেভিগেশন */
.sx-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin: 0 0 1rem; }
.sx-tabs a { padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--emerald-deep); background: #fff; }
.sx-tabs a.on, .sx-tabs a:hover { background: var(--emerald); color: #fff; border-color: var(--emerald); }
.sx-monthnav { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin: 0 0 .8rem; }
.sx-monthnav h2 { margin: 0; flex: 1; text-align: center; font-size: 1.5rem; }
.sx-monthnav a { text-decoration: none; padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--emerald-deep); background: #fff; white-space: nowrap; }
.sx-grid .dp-cell.is-sel { background: var(--emerald); color: #fff; border-radius: 6px; }
.sx-grid .dp-cell.is-sel i, .sx-grid .dp-cell.is-sel em { color: #fff; }
.dp-cell.is-fri b { color: #C0392B; }
.dp-cell.is-hol { background: #FDF1EA; }
.dp-cell.is-hol b { color: #C0392B; }
.sx-holname { font-size: .66rem; line-height: 1.2; color: #C0392B; text-align: center; }
.sx-legend { text-align: center; color: var(--ink-soft); font-size: .9rem; }
.sx-dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; vertical-align: baseline; }
.sx-dot-hol { background: #F2B896; }

/* বছরের ক্যালেন্ডার */
.sx-yearnav { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 1rem; }
.sx-yearnav a { padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--emerald-deep); background: #fff; }
.sx-yeargrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.sx-yearmonth { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: .6rem; break-inside: avoid; }
.sx-yearmonth h3 { margin: 0 0 .4rem; font-size: 1.1rem; text-align: center; color: var(--emerald-deep); }
.sx-yearmonth .dp-cell, .sx-yearmonth .dp-empty { min-height: 2.2rem; }
.sx-yearmonth .dp-cell b { font-size: .95rem; }
.sx-yearmonth .dp-cell i, .sx-yearmonth .dp-cell em, .sx-yearmonth .sx-holname { display: none; }
.sx-yearmonth .dp-dow span { font-size: .72rem; padding: .2rem 0; }

/* ফর্ম, ফলাফল */
.sx-form { display: flex; flex-wrap: wrap; gap: .7rem 1rem; align-items: flex-end; margin: 0 0 1rem; }
.sx-form fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: .6rem .8rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.sx-form label { display: flex; flex-direction: column; gap: .2rem; font-size: .95rem; }
.sx-form input[type=number] { width: 6.5rem; }
.sx-result { background: #F0F7F3; border-left: 4px solid var(--emerald); border-radius: 0 var(--r) var(--r) 0; padding: .9rem 1.1rem; margin: 1rem 0; }
.sx-result strong { font-size: 1.2rem; }
.sx-stats { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .7rem; margin: 1rem 0; }
.sx-stats > div, .sx-stats > li { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: .7rem; text-align: center; }
.sx-badge { display: inline-block; font-size: .8rem; padding: .05rem .5rem; border-radius: 999px; background: #F0F7F3; color: var(--emerald-deep); border: 1px solid var(--line); }
.sx-banner { background: #FFF6E5; border: 1px solid #F0D9A8; border-radius: var(--r); padding: .8rem 1rem; margin: 0 0 1rem; }
.sx-code { display: block; background: #12261C; color: #D9F2E2; border-radius: var(--r); padding: .8rem 1rem; overflow-x: auto; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9rem; direction: ltr; text-align: left; white-space: pre-wrap; word-break: break-all; }
.sx-faq details { border-top: 1px solid var(--line); padding: .6rem 0; }
.sx-faq summary { cursor: pointer; font-weight: 600; }
.sx-faq details .prose { font-size: 1.05rem; line-height: 1.9; padding-top: .4rem; }
.sx-about { font-size: 1.1rem; line-height: 1.95; }

@media (max-width: 860px) {
  .sx-tiles { grid-template-columns: 1fr; }
  .sx-tile .dp-big { font-size: 2.6rem; }
  .sx-grid2, .sx-posts { grid-template-columns: 1fr; }
  .sx-tools { grid-template-columns: repeat(2, 1fr); }
  .sx-pjgrid { grid-template-columns: repeat(2, 1fr); }
  .sx-seasons { grid-template-columns: repeat(3, 1fr); }
  .sx-prayrow { grid-template-columns: repeat(3, 1fr); }
  .sx-yeargrid { grid-template-columns: repeat(2, 1fr); }
  .sx-hol li { grid-template-columns: 1fr; gap: .1rem; }
  .sx-hero h1 { font-size: 1.7rem; }
  .sx-clocks { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .sx-yeargrid { grid-template-columns: 1fr; }
  .sx-holname { display: none; }
}
@media print {
  .masthead, .sitefoot, .sx-tabs, .sx-yearnav, .sx-actions, .crumbs { display: none !important; }
  .sx-yeargrid { grid-template-columns: repeat(3, 1fr); gap: .4rem; }
  .sx-yearmonth { border-color: #999; padding: .3rem; }
  .sx-yearmonth .dp-cell, .sx-yearmonth .dp-empty { min-height: 1.5rem; }
  body { background: #fff; }
}

.sx-stats strong { display: block; font-size: 1.6rem; color: var(--emerald-deep); line-height: 1.3; }
.sx-stats b { display: block; font-size: 1.6rem; color: var(--emerald-deep); line-height: 1.3; }
.sx-stats small { color: var(--ink-soft); }
