/* Modern theme: soft dashboard style (grey-to-yellow glass panel, white cards, yellow/black accents). */
@font-face {
  font-family: 'Google Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/google-sans/GoogleSans-bengali.woff2) format('woff2');
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}
@font-face {
  font-family: 'Google Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/google-sans/GoogleSans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Google Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/google-sans/GoogleSans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --outer: #a9adb3;
  --card: #fbfbfa;
  --card-2: #f6f6f5;
  --cell: #e8e8e8;
  --cell-hover: #dedede;
  --yellow: #ffd95e;
  --yellow-2: #ffe792;
  --dark: #2a2a2a;
  --text: #1f1f1f;
  --soft: #5d5d5d;
  --muted: #9a9a9a;
  --line: #ececec;
  --red: #e4674c;
  --radius-app: 40px;
  --radius-card: 24px;
  --radius-cell: 12px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .04);
  --hatch: repeating-linear-gradient(135deg, rgba(0, 0, 0, .09) 0 1px, transparent 1px 6px);
  --hatch-warm: repeating-linear-gradient(135deg, rgba(160, 135, 60, .28) 0 1px, transparent 1px 6px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body, button, input, select, textarea, dialog, table, code, pre, kbd, samp, h1, h2, h3, h4, h5, h6 {
  font-family: 'Google Sans', sans-serif;
}
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; padding: 28px 24px; color: var(--text); font-size: 15px; line-height: 1.5;
  background: radial-gradient(1200px 600px at 50% 110%, #c9ccd1 0%, transparent 60%), var(--outer);
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { max-width: 100%; }
p { margin: 0 0 .7em; }
h1, h2, h3 { font-weight: 400; margin: 0 0 .5em; line-height: 1.4; }
:focus-visible { outline: 2px solid var(--dark); outline-offset: 2px; }
.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--dark); color: #fff; padding: 8px 12px; z-index: 100; border-radius: 999px; }
.skip:focus { left: 12px; top: 12px; }
.icon { width: 1em; height: 1em; fill: currentColor; vertical-align: -.125em; flex: none; }

/* ---------- App shell */
.app {
  max-width: 1340px; margin: 0 auto; padding: 22px 30px 26px; border-radius: var(--radius-app);
  background:
    radial-gradient(700px 420px at 100% 100%, rgba(255, 221, 110, .55), transparent 70%),
    radial-gradient(520px 320px at 0% 100%, rgba(255, 236, 170, .35), transparent 70%),
    linear-gradient(160deg, #ededee 0%, #f0f0ef 45%, #f4f1e6 75%, #f8ecc4 100%);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 40px 90px rgba(30, 30, 40, .25), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.page { padding: 0; }

/* ---------- Header */
.m-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.m-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.m-logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--dark); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.m-logo-text { font-weight: 700; font-size: 16px; letter-spacing: .02em; }
.m-nav { display: flex; gap: 2px; background: rgba(255, 255, 255, .78); border-radius: 999px; padding: 5px; box-shadow: var(--shadow-card); }
.m-nav a { text-decoration: none; font-size: 13.5px; color: #333; padding: 8px 16px; border-radius: 999px; white-space: nowrap; }
.m-nav a:hover { background: rgba(0, 0, 0, .05); }
.m-nav a.on { background: var(--dark); color: #fff; }
.m-actions { display: flex; align-items: center; gap: 8px; }
.m-pill { display: inline-flex; align-items: center; gap: 2px; background: rgba(255, 255, 255, .85); border-radius: 999px; padding: 5px 5px 5px 12px; box-shadow: var(--shadow-card); font-size: 13.5px; }
.m-pill .icon { margin-right: 4px; color: #444; }
.m-pill a { text-decoration: none; padding: 6px 12px; border-radius: 999px; color: #333; }
.m-pill a.on { background: var(--dark); color: #fff; }
.m-round {
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .85); color: #333;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-card); font-size: 15px; flex: none;
}
.m-round:hover { background: #fff; }
.tz-banner { margin: 14px auto 0; max-width: 760px; display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; background: rgba(255, 255, 255, .85); border-radius: 999px; padding: 8px 10px 8px 18px; font-size: 13.5px; box-shadow: var(--shadow-card); }
.tz-banner p { margin: 0; }

/* ---------- Buttons, tags, inputs */
.m-btn, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; cursor: pointer; text-decoration: none;
  background: #fff; color: #222; border-radius: 999px; padding: 10px 18px; font-size: 13.5px; box-shadow: var(--shadow-card); line-height: 1.2;
}
.m-btn-dark, .btn { background: var(--dark); color: #fff; }
.m-btn-dark:hover, .btn:hover { background: #111; color: #fff; }
.btn-ghost { background: #fff; color: #222; }
.btn-ghost:hover { background: #f3f3f3; color: #111; }
.btn-small { padding: 7px 14px; font-size: 12.5px; }
.m-full { display: flex; margin: 18px 20px 0; }
.tag { display: inline-block; font-size: 11.5px; padding: 3px 10px; border-radius: 999px; background: #efefef; color: #555; font-weight: 400; }
.tag-warn { background: #fff1c2; color: #7a5a00; }
.tag-hol { background: #fde3dc; color: #b9412a; }
input, select, textarea { font-size: 14px; color: var(--text); background: #fff; border: 1px solid #e4e4e4; border-radius: 999px; padding: 10px 16px; max-width: 100%; }
textarea { border-radius: 16px; }
label { font-size: 13px; color: var(--soft); }

/* ---------- Page title and 3-column layout */
.m-title { font-size: 44px; font-weight: 400; letter-spacing: -.01em; margin: 30px 0 22px 4px; color: #1b1b1b; }
.m-title-en { font-size: 17px; color: var(--muted); margin: -16px 0 24px 6px; letter-spacing: .01em; }
.m-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 22px; align-items: start; }
.m-card { background: var(--card); border-radius: var(--radius-card); box-shadow: var(--shadow-card); border: 1px solid rgba(255, 255, 255, .8); }
.m-muted { color: var(--muted); font-size: 13px; margin: 0; }

/* Left column */
.m-left { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 6px; }
.m-left-title, .m-more, .m-pager { grid-column: 1 / -1; }
.m-left-title { font-size: 20px; color: #1b1b1b; margin: 10px 0 2px 4px; }
.m-person { display: block; padding: 18px 20px 20px; text-decoration: none; }
.m-person:hover { background: #fff; }
.m-person-row { display: flex; align-items: center; gap: 14px; }
.m-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: #f1f1f1; flex: none; }
.m-person-name { display: block; font-size: 15px; color: var(--text); line-height: 1.45; }
.m-person-sub { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.m-progress { display: flex; height: 7px; border-radius: 999px; overflow: hidden; margin-top: 16px; background: repeating-linear-gradient(135deg, #d6d6d6 0 1.5px, #f3f3f3 1.5px 5px); }
.m-p-yellow { background: var(--yellow); border-radius: 999px; position: relative; z-index: 2; }
.m-p-dark { background: var(--dark); border-radius: 999px; margin-left: -6px; padding-left: 6px; box-sizing: content-box; }
.m-p-dark.w-0 { padding: 0; margin: 0; }
.m-p-rest { flex: 1; }
.m-more { font-size: 12.5px; color: var(--soft); text-align: center; padding: 4px; }
.m-pager { display: flex; align-items: center; gap: 4px; margin-top: 8px; flex-wrap: nowrap; }
.m-page { font-size: 13px; color: var(--muted); text-decoration: none; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex: none; }
.m-page.on { background: #fff; color: var(--text); box-shadow: var(--shadow-card); }
.m-page:hover { color: var(--text); }
.m-pager { justify-content: center; }

/* Center column */
.m-center { min-width: 0; }
.m-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.m-tool { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .85); border-radius: 999px; padding: 11px 18px; font-size: 13.5px; line-height: 1.4; color: #333; text-decoration: none; box-shadow: var(--shadow-card); white-space: nowrap; }
.m-tool:hover { background: #fff; }
.m-tool .icon { font-size: 15px; color: #444; }
/* Edition dropdown (phones only; desktop keeps the segmented pill) */
.m-ed-drop { position: relative; display: none; }
.m-ed-drop summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .85); border-radius: 999px; padding: 8px 12px; font-size: 13px; line-height: 1.4; box-shadow: var(--shadow-card); white-space: nowrap; }
.m-ed-drop summary::-webkit-details-marker { display: none; }
.m-ed-drop[open] .m-caret { transform: rotate(-90deg); }
.m-drop-menu.m-ed-menu { grid-template-columns: 1fr; width: 150px; right: 0; left: auto; }
.m-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 2px 2px; }
.m-big { font-size: 28px; margin: 0; color: #1b1b1b; }
.m-grange { font-size: 12.5px; color: var(--muted); margin: 0 2px 20px; }
.m-drop { position: relative; }
.m-drop summary { list-style: none; cursor: pointer; background: #fff; border-radius: 999px; padding: 10px 16px; font-size: 13px; display: inline-flex; gap: 8px; align-items: center; box-shadow: var(--shadow-card); }
.m-drop summary::-webkit-details-marker { display: none; }
.m-caret { transform: rotate(90deg); font-size: 10px; color: #777; }
.m-drop[open] .m-caret { transform: rotate(-90deg); }
.m-drop-menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border-radius: 18px; padding: 6px; box-shadow: 0 12px 30px rgba(0, 0, 0, .12); z-index: 20; display: grid; grid-template-columns: repeat(2, 1fr); width: 240px; }
.m-drop-menu a { text-decoration: none; font-size: 13px; padding: 8px 12px; border-radius: 12px; }
.m-drop-menu a:hover { background: #f3f3f3; }
.m-drop-menu a.on { background: var(--dark); color: #fff; }
.m-bars { display: flex; gap: 6px; margin-bottom: 22px; }
.m-bar-col { display: flex; flex-direction: column; min-width: 86px; }
.m-bar-label { font-size: 12px; color: var(--soft); margin: 0 0 7px 2px; }
.m-bar { height: 38px; border-radius: 999px; display: flex; align-items: center; padding: 0 14px; font-size: 11.5px; white-space: nowrap; }
.m-bar-yellow { background: var(--yellow); color: #6b5613; }
.m-bar-dark { background: var(--dark); color: #fff; }
.m-bar-grey { background: #b5b5b5; color: #fff; }

/* Calendar */
.m-cal { user-select: none; }
.m-wd { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; text-align: center; font-size: 12.5px; color: #555; }
.m-wd .red { color: var(--red); }
.m-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
.m-week > * { grid-row: 1; }
.m-cell {
  position: relative; min-height: 92px; border-radius: var(--radius-cell); background: var(--cell); padding: 9px 10px;
  display: flex; flex-direction: column; text-decoration: none; color: #333; overflow: hidden; transition: background .15s;
}
a.m-cell:hover { background: var(--cell-hover); }
.m-n { font-size: 13.5px; color: #333; line-height: 1.35; }
.m-g { position: absolute; top: 9px; right: 10px; font-size: 11px; color: var(--muted); }
.m-t { margin-top: auto; font-size: 11px; color: #858585; line-height: 1.45; padding-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-h { position: absolute; right: 10px; bottom: 8px; font-size: 10px; color: #5e8f62; }
.m-cell.out { background: var(--hatch), #e6e6e6; }
.m-cell.out .m-n { color: #a5a5a5; }
.m-cell.wkend { background: linear-gradient(var(--cell) 52%, transparent 52%), var(--hatch-warm), var(--cell); }
a.m-cell.wkend:hover { background: linear-gradient(var(--cell-hover) 52%, transparent 52%), var(--hatch-warm), var(--cell-hover); }
.m-cell.wkend .m-n, .m-cell.holiday .m-n { color: var(--red); }
.m-cell.fest { background: var(--yellow); }
a.m-cell.fest:hover { background: #ffd24a; }
.m-cell.fest .m-g { right: 40px; color: #8a7428; }
.m-moon { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 2px 8px 2px 3px; border-radius: 999px; background: rgba(255, 255, 255, .9); font-size: 10.5px; color: #333; line-height: 1.45; max-width: 100%; white-space: nowrap; }
.m-moon i { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.m-moon.purnima i { background: var(--yellow); box-shadow: inset 0 0 0 1.5px #c9a227; }
.m-moon.amavasya i { background: var(--dark); }
.m-moon.ekadashi i { background: linear-gradient(90deg, var(--dark) 50%, #fff 50%); box-shadow: inset 0 0 0 1.5px var(--dark); }
.m-moon.purnima { background: #fff; }
.m-ev { margin-top: auto; font-size: 11.5px; color: #3b3212; line-height: 1.45; padding-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-ev-icon { position: absolute; top: 7px; right: 7px; width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: #fff; border: 2px solid #fff; }
.m-cell.today { box-shadow: inset 0 0 0 2px var(--dark); }
.m-cell.today { padding-top: 16px; overflow: visible; z-index: 3; }
.m-cell.today .m-g { top: 16px; }
.m-cell.today .m-ev-icon { top: 14px; }
/* Narrow cells (small laptops): the English date drops under the number so it never overlaps it or the icon */
.m-cell { container-type: inline-size; }
@container (max-width: 130px) {
  .m-cell.fest .m-g, .m-cell.today .m-g { position: static; margin-top: 1px; }
}
/* "আজ" pill sits centred on the top border of today's cell (half above, half below) */
.m-cell.today::after { content: 'আজ'; position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); background: var(--dark); color: #fff; border: 2px solid var(--dark); font-size: 10.5px; font-weight: 600; line-height: 1.5; padding: 0 12px; border-radius: 999px; white-space: nowrap; }
.m-pill-ev {
  align-self: end; margin: 0 6px 9px; height: 27px; background: #fff; border-radius: 999px; display: flex; align-items: center; gap: 8px;
  padding: 0 12px; font-size: 11.5px; color: #333; text-decoration: none; z-index: 2; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); min-width: 0;
}
.m-pill-ev .dot { width: 7px; height: 7px; border-radius: 50%; background: #9a9a9a; flex: none; }
.m-pill-ev .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.6; }
.m-pill-ev .hatch { flex: 1; height: 12px; border-radius: 999px; background: repeating-linear-gradient(135deg, #e4e0cf 0 1px, #faf8f0 1px 5px); min-width: 12px; }
.m-pill-ev .rng { white-space: nowrap; }
.m-pill-ev:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }

/* Right column */
.m-right { background: var(--card); border-radius: 28px; box-shadow: var(--shadow-card); padding: 6px 0 20px; border: 1px solid rgba(255, 255, 255, .8); }
.m-banner {
  height: 122px; margin: 0 6px; border-radius: 22px 22px 8px 8px; overflow: hidden;
  background:
    radial-gradient(90px 60px at 62% 58%, rgba(255, 230, 120, .95), transparent 70%),
    radial-gradient(160px 70px at 30% 70%, rgba(255, 184, 0, .8), transparent 70%),
    radial-gradient(140px 90px at 85% 30%, rgba(255, 160, 0, .75), transparent 70%),
    conic-gradient(from 210deg at 55% 65%, #0f0a02, #3a2402, #f7a900, #1a1003, #5e3d00, #0f0a02);
}
.m-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-face { width: 90px; height: 90px; border-radius: 50%; margin: -45px auto 0; position: relative; background: linear-gradient(145deg, #fff6d6, #ffd95e); border: 4px solid #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); display: flex; align-items: center; justify-content: center; }
.m-face span { font-size: 34px; color: #2a2a2a; }
.m-name { text-align: center; font-size: 20px; margin: 12px 16px 2px; color: #1b1b1b; }
.m-role { text-align: center; font-size: 13.5px; color: var(--muted); margin: 0 16px 6px; }
.m-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 10px 16px 0; }
.m-chip { font-size: 12px; background: #fff3c4; color: #5f4a00; border-radius: 999px; padding: 4px 11px; text-decoration: none; }
.m-h2 { font-size: 15px; font-weight: 500; color: #1b1b1b; margin: 24px 20px 12px; }
.m-card .m-h2 { margin: 0 0 10px; }
.m-info { margin: 0 20px; }
.m-info div { display: flex; align-items: baseline; gap: 0; margin-bottom: 11px; font-size: 13px; }
.m-info dt { display: flex; align-items: center; gap: 8px; flex: 1; color: #444; white-space: nowrap; }
.m-info dt .icon { color: #555; }
.m-info dt::after { content: ''; flex: 1; min-width: 14px; margin: 0 8px; border-bottom: 2px dotted #cfcfcf; transform: translateY(-3px); }
.m-info dd { margin: 0; text-align: right; color: #2b2b2b; max-width: 58%; font-size: 12.5px; }
.m-docs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 20px; }
.m-doc { display: flex; align-items: center; gap: 10px; border-radius: 14px; padding: 12px; min-width: 0; }
.m-doc.blue { background: #dfe7f2; }
.m-doc.pink { background: #fbe3db; }
.m-doc-ic { width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.m-doc.blue .m-doc-ic { background: #2b579a; }
.m-doc.pink .m-doc-ic { background: #d24726; }
.m-doc b { display: block; font-weight: 500; font-size: 13px; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.55; }
.m-doc small { display: block; font-size: 10.5px; color: #7c7c7c; }
.m-stat { margin: 0 20px 14px; }
.m-stat p { display: flex; justify-content: space-between; font-size: 12.5px; color: #444; margin: 0 0 7px; }
.m-stat .m-progress { margin-top: 0; }

/* Bottom cards */
.m-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.m-bottom .m-card { padding: 20px 22px; font-size: 14px; }
.m-list { list-style: none; margin: 0; padding: 0; }
.m-list li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.m-list li { display: flex; align-items: center; gap: 14px; }
.m-hd { display: flex; flex-direction: column; min-width: 6.5em; line-height: 1.35; }
.m-hd b { font-weight: 500; font-size: 14px; color: var(--text); }
.m-hd small, .hd-cell small { font-size: 11px; color: var(--muted); }
.hd-cell b { font-weight: 500; }
.hd-cell a { text-decoration: none; color: var(--text); }
.hd-cell small { display: block; }

/* Footer */
.site-foot { margin-top: 26px; text-align: center; color: var(--soft); font-size: 12.5px; }
.site-foot a { color: var(--text); }
.foot-in p { margin: 0 0 6px; }
.foot-brand { font-weight: 500; color: var(--text); }
.theme-switch a { display: inline-flex; gap: 6px; align-items: center; background: #fff; border-radius: 999px; padding: 7px 14px; text-decoration: none; box-shadow: var(--shadow-card); }
.attrib { color: var(--muted); }
.m-foot-actions { margin-bottom: 10px !important; }
.m-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--dark); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 13.5px; line-height: 1.5; z-index: 1000; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }

/* ---------- Content pages (day, festival, holidays, converter, search, 404) */
.content-page { background: var(--card); border-radius: 30px; box-shadow: var(--shadow-card); padding: 30px 34px; max-width: 980px; margin: 30px auto 0; border: 1px solid rgba(255, 255, 255, .8); }
.content-page h1 { font-size: 34px; color: #1b1b1b; }
.content-page h2 { font-size: 18px; font-weight: 500; margin-top: 1.4em; }
.content-page h3 { font-size: 16px; font-weight: 500; }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--soft); text-decoration: none; }
.lead { font-size: 16px; }
.day-sub { color: var(--muted); }
.card { background: #fff; border-radius: 22px; padding: 20px; box-shadow: var(--shadow-card); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 18px; }
.chip { background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 13px; text-decoration: none; box-shadow: var(--shadow-card); }
.chip.on { background: var(--dark); color: #fff; }
.fest-list { list-style: none; padding: 0; margin: 0 0 1em; }
.fest-list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 14px; }
.fest-list a { text-decoration: none; color: var(--text); }
.fest-list a:hover { text-decoration: underline; }
.fl-date { color: var(--muted); font-size: 12.5px; min-width: 12em; }
.year-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 1.2em; }
.year-nav a { text-decoration: none; background: #fff; border-radius: 999px; padding: 8px 14px; box-shadow: var(--shadow-card); font-size: 13px; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-card); font-size: 13.5px; }
.data-table th, .data-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.data-table th { font-weight: 500; color: var(--soft); background: #f7f7f6; }
.fest-hero { margin: 0 0 1em; }
.fest-hero img, .dd-fest img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; background: #f1f1f1; display: block; }
figure { margin: 0; }
.dd-fest figure { max-width: 560px; }
figcaption { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.fest-note { color: var(--soft); font-size: 13.5px; }
.fest-desc { background: #fff; border-radius: 18px; padding: 14px 18px; margin: 1em 0; box-shadow: var(--shadow-card); }
.search-form { display: flex; gap: 8px; margin-bottom: 1em; }
.search-form input { flex: 1; min-width: 0; }
.conv-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 16px; }
.conv-form { display: grid; gap: 8px; align-content: start; }
.conv-form h2 { margin-top: 0; }
.conv-form .btn { justify-self: start; margin-top: 6px; }
.conv-result .cr-main { font-size: 26px; color: #1b1b1b; }
.err { color: var(--red); }
.notfound { text-align: center; }
.notfound p .btn { margin: 4px; }
.day-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; margin: 1.2em 0; }
.other-ed { font-size: 13.5px; color: var(--soft); }
.dd-fests { display: grid; gap: 16px; margin-bottom: 1em; }
.dd-fest h3 { margin: .6em 0 .2em; font-size: 17px; }
.dd-fest h3 a { text-decoration: none; }
.hol-line { color: #b9412a; }
.admin-note { background: #fff8dc; border-radius: 16px; padding: 12px 16px; font-size: 14px; }
.pt { width: 100%; border-collapse: collapse; margin: .5em 0 1em; font-size: 13.5px; }
.pt caption { text-align: left; font-size: 15px; font-weight: 500; padding: 4px 0 10px; }
.pt th, .pt td { padding: 9px 4px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.pt th { width: 38%; color: #555; font-weight: 400; white-space: nowrap; }
.pt th .icon { color: #666; margin-right: 6px; }
.home-cards { display: none; }

/* ---------- Day pop-up */
.day-dialog { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 30px; background: var(--card); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); overflow: hidden; }
.day-dialog[open] { display: flex; flex-direction: column; }
.day-dialog::backdrop { background: rgba(40, 40, 45, .45); backdrop-filter: blur(3px); }
.dd-head {
  margin: 6px 6px 0; border-radius: 24px 24px 10px 10px; padding: 20px 22px; display: flex; justify-content: space-between; gap: 12px; color: #fff;
  background:
    radial-gradient(160px 80px at 78% 60%, rgba(255, 210, 80, .75), transparent 70%),
    radial-gradient(220px 90px at 40% 120%, rgba(255, 170, 0, .6), transparent 70%),
    linear-gradient(135deg, #151006, #2e2206 60%, #5b3e00);
}
.dd-title { color: #fff; font-size: 22px; font-weight: 400; margin: 0; }
.dd-sub { margin: 2px 0 0; color: #ffe39a; font-size: 14px; }
.dd-hijri { margin: 2px 0 0; color: rgba(255, 255, 255, .75); font-size: 12.5px; }
.dd-close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.dd-close:hover { background: rgba(255, 255, 255, .28); }
.dd-body { padding: 16px 24px; overflow-y: auto; }
.dd-foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; padding: 12px 18px 16px; }
.dd-foot .btn-ghost { background: #fff; }
.dd-loading { text-align: center; padding: 30px; color: var(--muted); }
.body-dialog-open { overflow: hidden; }

/* ---------- Responsive */
@media (max-width: 1180px) {
  .m-layout { grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 900px) {
  body { padding: 12px; }
  .app { padding: 16px 16px 20px; border-radius: 28px; }
  .m-layout { grid-template-columns: minmax(0, 1fr); }
  .m-center { order: 1; }
  .m-right { grid-row: auto; order: 2; }
  .m-left { grid-row: auto; order: 3; }
  .m-top { gap: 10px; }
  .m-nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .m-nav::-webkit-scrollbar { display: none; }
  .m-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { padding: 0; background: #ececec; }
  .app { border-radius: 0; padding: 14px 8px 20px; box-shadow: none; border: 0; }
  .m-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 6px; }
  .m-top .m-nav { grid-column: 1 / -1; }
  .m-logo { min-width: 0; margin-right: 0; gap: 7px; }
  .m-logo-mark { width: 30px; height: 30px; font-size: 15px; flex: none; }
  .m-ed-drop summary > .icon:first-child { display: none; }
  .m-ed-drop summary { padding: 7px 9px; gap: 3px; font-size: 12.5px; }
  .m-logo-text { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; line-height: 1.5; }
  .m-actions { flex: none; gap: 4px; }
  .m-ed { display: none; }
  .m-ed-drop { display: block; }
  .m-toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .m-tool { justify-content: center; padding: 10px 8px; font-size: 13px; }
  .m-actions .m-round { width: 32px; height: 32px; font-size: 13px; }
  .m-pill { padding-left: 8px; font-size: 12.5px; }
  .m-pill a { padding: 5px 9px; }
  .m-title { font-size: 28px; margin: 20px 0 14px 2px; }
  .m-title-en { font-size: 14px; margin: -10px 0 16px 4px; }
  .m-big { font-size: 21px; }
  .m-bars { gap: 4px; }
  .m-bar-col { min-width: 0; }
  .m-bar { height: 32px; padding: 0 10px; font-size: 10.5px; }
  .m-nav { justify-content: space-between; }
  .m-nav a { padding: 8px 10px; font-size: 13px; }
  /* Calendar: less gutter, bigger text (cells are ~40px wide on small phones) */
  .m-wd { gap: 3px; font-size: 11.5px; margin-bottom: 8px; }
  .m-week { gap: 3px; margin-bottom: 3px; }
  .m-cell { min-height: 112px; padding: 7px 3px 5px; border-radius: 9px; }
  .m-n { order: 0; font-size: 17px; font-weight: 500; line-height: 1.35; }
  .m-g { order: 0; position: static; font-size: 10px; line-height: 1.3; margin-top: 0; }
  .m-t, .m-h { display: none; }
  .m-moon, .m-moon.purnima { order: 1; font-size: 9.5px; flex-wrap: wrap; white-space: normal; gap: 2px; padding: 1px 0 0; margin-top: 4px; background: none; line-height: 1.4; letter-spacing: 0; }
  .m-moon i { width: 9px; height: 9px; }
  .m-ev-icon { order: 2; position: static; width: 24px; height: 24px; border-width: 1px; margin-top: 5px; }
  .m-ev { order: 3; font-size: 10.5px; line-height: 1.4; padding-top: 2px; -webkit-line-clamp: 3; word-break: break-word; }
  .m-cell.today { padding-top: 12px; }
  .m-cell.today::after { font-size: 9px; padding: 0 7px; border-width: 1.5px; }
  .m-pill-ev { margin: 0 3px 5px; height: 20px; padding: 0 8px; font-size: 10px; gap: 5px; }
  .m-pill-ev .rng, .m-pill-ev .hatch { display: none; }
  .content-page { padding: 20px 16px; border-radius: 22px; margin-top: 18px; }
  .mcar-panel .data-table th:nth-child(2), .mcar-panel .data-table td:nth-child(2) { display: none; }
  .mcar-panel .data-table th, .mcar-panel .data-table td { padding: 9px 8px; font-size: 12.5px; }
  .mcar-panel .data-table td:last-child { font-size: 11px; color: var(--soft); }

  .content-page h1 { font-size: 26px; }
  .pt th { white-space: normal; }
  .day-dialog { width: 100vw; max-width: 100vw; max-height: 90vh; margin: auto 0 0; border-radius: 26px 26px 0 0; }
  .dd-foot { display: grid; grid-template-columns: repeat(4, auto); gap: 4px; padding: 10px; }
  .dd-foot .btn { font-size: 11.5px; padding: 8px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Holiday page grouped by Bengali month */
.hd-cell b, .hd-cell small { white-space: nowrap; }
.tag-now { background: var(--dark); color: #fff; font-size: 11.5px; }
.hol-empty { color: var(--muted); font-size: 14px; background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow-card); }

/* ---------- Utilities (generated; widths/flex/grid placement without inline styles) */
.w-0{width:0%}.w-5{width:5%}.w-10{width:10%}.w-15{width:15%}.w-20{width:20%}.w-25{width:25%}.w-30{width:30%}.w-35{width:35%}.w-40{width:40%}.w-45{width:45%}.w-50{width:50%}.w-55{width:55%}.w-60{width:60%}.w-65{width:65%}.w-70{width:70%}.w-75{width:75%}.w-80{width:80%}.w-85{width:85%}.w-90{width:90%}.w-95{width:95%}.w-100{width:100%}
.fg-1{flex:1 1 0}.fg-2{flex:2 1 0}.fg-3{flex:3 1 0}.fg-4{flex:4 1 0}.fg-5{flex:5 1 0}.fg-6{flex:6 1 0}.fg-7{flex:7 1 0}.fg-8{flex:8 1 0}.fg-9{flex:9 1 0}.fg-10{flex:10 1 0}.fg-11{flex:11 1 0}.fg-12{flex:12 1 0}.fg-13{flex:13 1 0}.fg-14{flex:14 1 0}.fg-15{flex:15 1 0}.fg-16{flex:16 1 0}.fg-17{flex:17 1 0}.fg-18{flex:18 1 0}.fg-19{flex:19 1 0}.fg-20{flex:20 1 0}.fg-21{flex:21 1 0}.fg-22{flex:22 1 0}.fg-23{flex:23 1 0}.fg-24{flex:24 1 0}.fg-25{flex:25 1 0}.fg-26{flex:26 1 0}.fg-27{flex:27 1 0}.fg-28{flex:28 1 0}.fg-29{flex:29 1 0}.fg-30{flex:30 1 0}.fg-31{flex:31 1 0}.fg-32{flex:32 1 0}
.col-1{grid-column-start:1}.col-2{grid-column-start:2}.col-3{grid-column-start:3}.col-4{grid-column-start:4}.col-5{grid-column-start:5}.col-6{grid-column-start:6}.col-7{grid-column-start:7}
.m-pill-ev.span-1{grid-column-end:span 1}.m-pill-ev.span-2{grid-column-end:span 2}.m-pill-ev.span-3{grid-column-end:span 3}.m-pill-ev.span-4{grid-column-end:span 4}.m-pill-ev.span-5{grid-column-end:span 5}.m-pill-ev.span-6{grid-column-end:span 6}.m-pill-ev.span-7{grid-column-end:span 7}

/* Auspicious days (শুভ দিন): month block + day block in pop-up / day page */
.m-shubh { margin-top: 20px; padding: 20px 22px; font-size: 14px; }
.shm-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.shm-k { margin: 0 0 8px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.shm-dates { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.shm-chip { display: inline-flex; flex-direction: column; align-items: center; padding: 5px 11px; border-radius: 12px; background: var(--yellow); color: #2a2a2a; text-decoration: none; line-height: 1.4; }
.shm-chip:hover { background: #ffd24a; }
.shm-chip.extra { background: #fff3c4; }
.shm-chip b { font-weight: 600; font-size: 13px; }
.shm-chip small { font-size: 10.5px; color: #7a6a3a; }
.shm-empty { margin: 0; font-size: 13px; color: var(--muted); }
.shubh-day { margin: 16px 0; }
.shubh-h { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 15px; font-weight: 600; line-height: 1.5; }
.shubh-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.shubh-list > li { padding: 8px 12px; border-radius: 14px; background: #f3f3f3; }
.shubh-list > li.sh-ok { background: #e7f4e8; }
.sh-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; line-height: 1.6; }
.sh-mark { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; align-items: center; justify-content: center; background: #cfcfcf; color: #fff; }
.sh-ok .sh-mark { background: #2e7d32; }
.sh-mark svg { width: 11px; height: 11px; }
.sh-no b { color: #777; font-weight: 500; }
.tag-ok { background: #2e7d32; color: #fff; }
.tag-no { background: #e2e2e2; color: #666; }
.sh-times { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 13px; font-weight: 600; line-height: 1.5; }
.sh-muted { font-weight: 400; color: var(--muted); }
.sh-win { margin: 4px 0 0; padding-left: 24px; font-size: 13px; line-height: 1.7; }
.sh-note { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.sh-src { margin: 10px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.sh-none { margin: 0; color: var(--muted); }
@media (max-width: 600px) {
  .m-shubh { padding: 16px; }
  .shm-rows { grid-template-columns: 1fr; }
}


/* Month carousel (holiday / festival pages) */
.mcar { margin-top: 8px; }
.mcar-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 6px; margin: 0 0 16px; background: #efefef; border-radius: 999px; scrollbar-width: none; }
.mcar-tabs::-webkit-scrollbar { display: none; }
.mcar-tab { flex: none; position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 8px 14px; border-radius: 999px; font-size: 13px; line-height: 1.5; color: #555; text-decoration: none; transition: background .2s, color .2s; }
.mcar-tab:hover { background: #fff; }
.mcar-tab small { font-size: 10.5px; min-width: 18px; padding: 0 5px; border-radius: 999px; background: #fff; color: #555; text-align: center; line-height: 1.6; }
.mcar-tab.on { background: var(--dark); color: #fff; }
.mcar-tab.on small { background: var(--yellow); color: #2a2a2a; }
.mcar-head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 10px; margin-bottom: 14px; }
.mcar-title { text-align: center; }
.mcar-title h2 { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; margin: 0; font-size: 22px; line-height: 1.5; }
.mcar-title h2 a { color: var(--text); text-decoration: none; }
.mcar-title small { display: block; font-size: 13px; color: var(--muted); }
.mcar-nav { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-card); color: var(--dark); text-decoration: none; }
.mcar-nav:hover { background: var(--yellow); }
.mcar-nav[aria-disabled="true"] { opacity: .3; pointer-events: none; }
.mcar-panel { margin-bottom: 26px; }
.mcar-panel.is-current .data-table, .mcar-panel.is-current .fest-list { box-shadow: 0 0 0 2px var(--yellow), var(--shadow-card); }
.mcar-panel .fest-list { background: #fff; border-radius: 18px; padding: 4px 16px; box-shadow: var(--shadow-card); }
.mcar-panel .fest-list li:last-child { border-bottom: 0; }
.mcar.is-js .mcar-panel { display: none; margin-bottom: 0; }
.mcar.is-js .mcar-panel.on { display: block; }
.mcar-panel.from-next { animation: mcar-in-r .3s ease; }
.mcar-panel.from-prev { animation: mcar-in-l .3s ease; }
@keyframes mcar-in-r { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes mcar-in-l { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mcar-panel.from-next, .mcar-panel.from-prev { animation: none; } }
@media (max-width: 600px) {
  .mcar-tabs { border-radius: 16px; }
  .mcar-tab { padding: 7px 11px; }
  .mcar-head { grid-template-columns: 38px 1fr 38px; gap: 6px; }
  .mcar-nav { width: 38px; height: 38px; }
  .mcar-title h2 { font-size: 18px; }
  .mcar-panel .fest-list { padding: 2px 12px; }
}

/* Bank holidays page + "ব্যাংক খোলা/বন্ধ" line in the day pop-up */
.content-page h1 .icon, .content-page h1 svg { width: .8em; height: .8em; vertical-align: -.05em; }
.bank-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 6px 0 22px; }
.bank-card { background: #fff; border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow-card); }
.bank-k { margin: 0 0 4px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 5px; line-height: 1.5; }
.bank-big { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bank-big a { color: var(--text); text-decoration: none; }
.bank-big svg { width: 20px; height: 20px; }
.bank-sub { margin: 4px 0 0; font-size: 13px; line-height: 1.65; color: #555; }
.bank-today.is-open { background: #e7f4e8; }
.bank-today.is-open .bank-big { color: #2e7d32; }
.bank-today.is-closed { background: #fde3dc; }
.bank-today.is-closed .bank-big { color: #b9412a; }
.bank-rules { grid-column: 1 / -1; }
.bank-table tr.bk-saturday td { color: var(--muted); background: #fafafa; }
.bank-table tr.bk-local td { color: #777; }
.bk-note { color: var(--muted); font-size: 11.5px; }
.bk-tag-holiday { background: #fde3dc; color: #b9412a; }
.bk-tag-bank { background: #e3ecfb; color: #2c56a8; }
.bk-tag-local { background: #fff1c2; color: #7a5a00; }
.bk-tag-saturday { background: #efefef; color: #777; }
.bank-foot { margin: 16px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.hol-bank-link { margin: 4px 0 16px; }
.hol-bank-link .chip { display: inline-flex; align-items: center; gap: 6px; }
.bank-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 12px 0 0; padding: 8px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.6; }
.bank-line svg { width: 15px; height: 15px; }
.bank-line.is-open { background: #e7f4e8; }
.bank-line.is-open b { color: #2e7d32; }
.bank-line.is-closed { background: #fde3dc; }
.bank-line.is-closed b { color: #b9412a; }
@media (max-width: 600px) {
  .bank-big { font-size: 19px; }
  .bank-table td:nth-child(4) .tag { font-size: 10px; padding: 2px 7px; }
}
.bk-tag-special { background: #fde3dc; color: #a2341c; font-weight: 600; }
.bk-tag-open { background: #e7f4e8; color: #2e7d32; font-weight: 600; }
.bank-table tr.bk-open td { background: #f3faf3; }
