/* Holiday Info component styles. Tokens are the theme contract (docs/05, section 5). */
/* ---------- Tokens (the plugin ships these as defaults; themes override) ---------- */
:root {
  --hi-font: inherit;
  --hi-text: #1e2522;
  --hi-muted: #5b6560;
  --hi-bg: #ffffff;
  --hi-surface: #f3f6f4;
  --hi-border: #dae1dd;
  --hi-accent: #006a4e;        /* Bangladesh green */
  --hi-accent-ink: #004d38;
  --hi-public: #c8202b;           /* wall-calendar red: public holidays (general + executive) */
  --hi-public-wash: #fdf0f0;
  --hi-optional: #2556a3;
  --hi-bank: #6b3a9c;
  --hi-special: #00695c;
  --hi-working: #3f4a45;
  --hi-pending: #8a5a00;
  --hi-pending-bg: #fff4dc;
  --hi-pending-border: #e9c46a;
  --hi-weekend: #f1f4f2;
  --hi-bangla: #9a4400;           /* Bangla (Bengali) date: burnt orange, 6.6:1 on white */
  --hi-bangla-wash: #fdf1e6;
  --hi-hijri: #00708a;            /* Hijri date: teal, 5.7:1 on white */
  --hi-hijri-wash: #e6f3f6;
  --hi-radius: 5px;
}


/* ---------- Shared ---------- */
[hidden][hidden] { display: none; }
/* Themes sometimes restyle paragraphs (for example `.home .entry-content p { display: inline-block }`).
   Keep paragraphs inside plugin components as normal blocks. Repeated attribute selector = enough specificity. */
[data-hi-component][data-hi-component][data-hi-component] p { display: block; }
[data-hi-component][data-hi-component][data-hi-component] p[hidden] { display: none; }
.hi-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hi-badge, .hi-status { display: inline-block; font-size: .75rem; line-height: 1.3; font-weight: 600; padding: .14rem .5rem; border-radius: 999px; border: 1px solid; white-space: nowrap; vertical-align: 1px; }
/* Type chips are quiet labels: the date and holiday name lead. General = soft red wash; the rest = hairline outline. */
.hi-badge { font-weight: 500; }
.hi-badge--general { background: var(--hi-public-wash); border-color: #f1cdd0; color: #9b1c24; }
.hi-badge--executive { color: #9b1c24; border-color: #e6cfd1; background: transparent; }
.hi-badge--optional { color: var(--hi-optional); border-color: color-mix(in srgb, currentColor 35%, #fff); background: transparent; }
.hi-badge--bank { color: var(--hi-bank); border-color: color-mix(in srgb, currentColor 35%, #fff); background: transparent; }
.hi-badge--special { color: var(--hi-special); border-color: color-mix(in srgb, currentColor 35%, #fff); background: transparent; }
.hi-badge--working_day { color: var(--hi-working); border-color: color-mix(in srgb, currentColor 35%, #fff); background: transparent; }
.hi-badge--scope { color: var(--hi-muted); border-color: currentColor; border-style: dashed; background: #fff; }
.hi-status--estimated { color: var(--hi-pending); border-style: dashed; border-color: var(--hi-pending); background: #fffaf0; }
.hi-status--announced { color: #7a4b00; background: var(--hi-pending-bg); border-color: var(--hi-pending-border); }
.hi-status--official { color: var(--hi-accent); border-color: #9cc9b8; background: #fff; }
.hi-status--confirmed { color: #fff; background: var(--hi-accent); border-color: var(--hi-accent); }
.hi-btn { font: inherit; font-weight: 600; font-size: .9375rem; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .55rem 1rem; min-height: 44px; border-radius: 5px; border: 1px solid var(--hi-text); background: #fff; color: var(--hi-text); text-decoration: none; cursor: pointer; }
/* Hover and focus must keep the text colour and border: the theme's button:hover/:focus (blue, white text, no border) is lower in specificity than these but is not scoped to the plugin. */
.hi-btn:hover, .hi-btn:focus { background: var(--hi-surface); color: var(--hi-text); border-width: 1px; }
.hi-btn--icon { width: 44px; padding: 0; font-size: 1.35rem; line-height: 1; }
.hi-footnote { font-size: .875rem; color: var(--hi-muted); margin: .25rem 0 0; }

/* ---------- Today card: a desk calendar page ---------- */
.hi-today { display: grid; gap: 1.25rem; border: 1px solid var(--hi-border); border-radius: var(--hi-radius); padding: 1rem; background: #fff; }
.hi-today__sheet { position: relative; text-align: center; border: 1px solid var(--hi-border); border-radius: 5px; background: #fff; overflow: hidden;
  box-shadow: 0 3px 0 -1px #fff, 0 3px 0 0 var(--hi-border), 0 6px 0 -1px #fff, 0 6px 0 0 var(--hi-border); margin-bottom: 6px; }
.hi-today__month { margin: 0; padding: .6rem 1rem .65rem; background: var(--hi-accent); color: #fff; font-weight: 600; font-size: 1rem; }
.hi-today__day { margin: 0; padding: .75rem 0 0; font-size: clamp(5rem, 18vw, 7rem); line-height: 1; font-weight: 700; font-stretch: 75%; font-variant-numeric: lining-nums tabular-nums; color: var(--hi-text); }
.hi-today__sheet[data-numeral="red"] .hi-today__day { color: var(--hi-public); }
.hi-today__weekday { margin: .1rem 0 .8rem; font-weight: 600; font-size: 1.125rem; }
.hi-today__dates { margin: 0; border-top: 1px solid var(--hi-border); text-align: left; }
.hi-today__dates > div { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; padding: .45rem .8rem; }
.hi-today__dates > div + div { border-top: 1px solid var(--hi-border); }
.hi-today__dates dt { font-size: .8125rem; color: var(--hi-muted); }
.hi-today__dates dd { margin: 0; font-size: .9375rem; font-weight: 600; text-align: right; }
.hi-today__status { margin: 0; font-size: 1.5rem; line-height: 1.25; font-weight: 700; font-stretch: 90%; }
.hi-today[data-state="holiday"] .hi-today__status { color: var(--hi-public); }
.hi-today__extras { margin: .35rem 0 0; color: var(--hi-muted); }
/* Modern design (Settings > Today card, or design="modern"): year on top, small month before the big date, day type after the weekday.
   Colours follow the day: working day green, weekend grey, holiday red (the same red as the calendar and the tables). */
.hi-today--modern .hi-today__month { box-sizing: border-box; display: flex !important; align-items: center; justify-content: center; min-height: calc(3rem - 1px); padding: 0 1rem; font-size: 1.375rem; line-height: 1; font-weight: 700; letter-spacing: .18em; text-indent: .18em; font-variant-numeric: lining-nums tabular-nums; }
.hi-today--modern[data-state="holiday"] .hi-today__month { background: var(--hi-public); }
.hi-today--modern .hi-today__day { display: flex !important; justify-content: center; align-items: baseline; gap: .5rem; padding: .875rem 0 .2rem; }
.hi-today--modern .hi-today__mon { font-size: .3em; line-height: 1; font-weight: 600; font-stretch: 100%; letter-spacing: .02em; color: var(--hi-working); }
.hi-today--modern[data-state="holiday"] .hi-today__mon { color: var(--hi-public); }
.hi-today--modern .hi-today__weekday { display: flex !important; flex-wrap: wrap; justify-content: center; align-items: center; gap: .1rem .5rem; margin-bottom: 1.15rem; padding: 0 .5rem; }
.hi-today--modern .hi-today__dates > div { padding-block: .65rem; }
.hi-today--modern .hi-today__state { display: inline-flex; align-items: center; gap: .5rem; font: inherit; color: var(--hi-text); }
.hi-today--modern .hi-today__state::before { content: ""; flex: none; width: .4rem; height: .4rem; border-radius: 50%; background: var(--hi-accent); position: relative; top: -.05rem; }
.hi-today--modern[data-state="weekend"] .hi-today__state::before { background: var(--hi-muted); }
.hi-today--modern[data-state="holiday"] .hi-today__state { color: var(--hi-public); }
.hi-today--modern[data-state="holiday"] .hi-today__state::before { background: var(--hi-public); }
.hi-next { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--hi-border); }
.hi-next__label { margin: 0 0 .3rem; font-size: .875rem; font-weight: 600; color: var(--hi-muted); }
.hi-next__name { margin: 0; font-size: 1.3125rem; line-height: 1.3; font-weight: 700; }
.hi-next__name a { color: var(--hi-text); }
.hi-next__part { font-weight: 500; color: var(--hi-muted); }
.hi-next__when { margin: .15rem 0 .6rem; }
.hi-next__count { margin: 0; color: var(--hi-muted); }
.hi-next__n { font-size: 2.5rem; line-height: 1; font-weight: 700; font-stretch: 75%; color: var(--hi-accent); margin-right: .15rem; font-variant-numeric: tabular-nums; }
.hi-next__break { margin: .5rem 0 0; color: var(--hi-muted); font-size: .9375rem; }
@media (min-width: 640px) {
  .hi-today { grid-template-columns: 220px minmax(0, 1fr); gap: 1.75rem; padding: 1.25rem; align-items: start; }
}
/* Today card with the coming-up list beside it (block attribute upcoming_count): list below on tablets, third column on desktop */
.hi-today__side { min-width: 0; }
.hi-today__side .hi-up__item { grid-template-columns: 3.4rem minmax(0, 1fr); }
.hi-today__side .hi-up__date { grid-row: span 2; }
.hi-today__side .hi-up__type { grid-column: 2; justify-content: flex-start; }
@media (min-width: 640px) {
  .hi-today--up .hi-today__side { grid-column: 1 / -1; padding-top: 1.25rem; border-top: 1px solid var(--hi-border); }
}
@media (min-width: 1024px) {
  /* The date card is 15% wider on desktop (230px to 265px; 220px to 253px without the Coming up list) */
  .hi-today { grid-template-columns: 253px minmax(0, 1fr); }
  .hi-today--up { grid-template-columns: 265px minmax(0, .85fr) minmax(0, 1.3fr); gap: 0 2rem; padding: 1.5rem; align-items: stretch; }
  .hi-today--up .hi-today__sheet { align-self: start; }
  /* middle and right columns: same heading height and rule, so the two titles line up */
  .hi-today--up .hi-today__body { display: flex; flex-direction: column; min-width: 0; }
  /* "Working day" and "Coming up": one row height, one rule, one text style */
  .hi-today--up .hi-today__status, .hi-today--up .hi-up__bar { box-sizing: border-box; display: flex !important; align-items: center; height: 3rem; margin: 0; padding: 0 0 .5rem; border-bottom: 2px solid var(--hi-text); }
  .hi-today--up .hi-up__bar { flex-wrap: nowrap; gap: .5rem 1rem; }
  .hi-today--up .hi-toggle { min-height: 0; }
  .hi-today--up .hi-today__status, .hi-today--up .hi-up__title { margin: 0; font-size: 1.25rem; line-height: 1.2; font-weight: 700; font-stretch: 88%; color: var(--hi-text); }
  .hi-today--up .hi-today__extras { margin: .75rem 0 0; }
  .hi-today--up .hi-next { margin-top: 1.25rem; padding-top: 0; border-top: 0; }
  .hi-today--up .hi-today__side { display: flex; flex-direction: column; grid-column: auto; padding: 0 0 0 2rem; border-top: 0; border-left: 1px solid var(--hi-border); }
  .hi-today--up .hi-today__side .hi-up { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  .hi-today--up .hi-up__item:first-child { padding-top: .9rem; }
}

/* ---------- Upcoming ---------- */
.hi-up__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--hi-text); }
.hi-up__title { margin: 0; font-size: 1.3125rem; font-weight: 700; }
.hi-toggle { display: inline-flex; align-items: center; gap: .5rem; font-size: .9375rem; cursor: pointer; min-height: 44px; }
.hi-toggle__input { width: 1.1rem; height: 1.1rem; accent-color: var(--hi-accent); }
.hi-up__list { list-style: none; margin: 0; padding: 0; }
.hi-up__item { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: .3rem 1rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--hi-border); }
.hi-up__date { grid-row: span 2; display: flex; flex-direction: column; align-items: center; line-height: 1; padding: .4rem 0 .35rem; border: 1px solid var(--hi-border); border-top: 3px solid var(--hi-public); border-radius: 5px; }
.hi-up__item.is-optional .hi-up__date { border-top-color: var(--hi-optional); }
.hi-up__d { font-size: 1.5rem; font-weight: 700; font-stretch: 80%; font-variant-numeric: tabular-nums; }
.hi-up__m { font-size: .75rem; color: var(--hi-muted); margin-top: .15rem; }
.hi-up__body p { margin: 0; }
.hi-up__name { font-weight: 600; line-height: 1.3; }
.hi-up__name a { color: var(--hi-text); }
.hi-up__part { font-weight: 500; color: var(--hi-muted); }
.hi-up__meta { font-size: .875rem; color: var(--hi-muted); }
.hi-up__type { grid-column: 2; display: flex; flex-wrap: wrap; gap: .3rem; }
.hi-up__more { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: .9rem 0 0; font-weight: 600; }
@media (min-width: 640px) {
  .hi-up__item { grid-template-columns: 3.5rem minmax(0, 1fr) auto; }
  .hi-up__date { grid-row: auto; }
  .hi-up__type { grid-column: auto; justify-content: flex-end; }
}

/* ---------- Holiday page ---------- */
.hi-crumbs { font-size: .875rem; color: var(--hi-muted); }
/* One row at every width: the path never wraps; a long name is cut with an ellipsis (the full text stays in the page for search engines). */
.hi-crumbs > span { display: flex; flex-wrap: nowrap; align-items: center; gap: 0 .25rem; min-width: 0; overflow: hidden; white-space: nowrap; }
.hi-crumbs > span > * { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hi-crumbs > span > span:first-child { flex: none; display: flex; align-items: center; }
/* The Home link: icon and word centred on one line at every width (not only on touch screens). */
.hi-crumbs > span > span:first-child a { display: inline-flex; align-items: center; }
/* When the path is too long the current page gives up space first (it keeps at least 6 characters). A middle link never shrinks by a few letters: it stays whole, and only a long one is cut with an ellipsis at 45% of the row. */
.hi-crumbs > span > span:not(:first-child):not(.breadcrumb_last) { flex: 0 0 auto; max-width: 45%; }
.hi-crumbs > span > .breadcrumb_last { flex: 0 1 auto; min-width: 6ch; }
.hi-crumbs > span > span:not(:first-child) a { display: block; overflow: hidden; text-overflow: ellipsis; }
.hi-crumbs a { color: inherit; }
.hi-holiday__h1 { margin: .5rem 0 0; font-size: 2rem; line-height: 1.15; font-weight: 700; font-stretch: 88%; }
.hi-holiday__bn { margin: .15rem 0 1rem; font-size: 1.25rem; color: var(--hi-muted); }
.hi-summary { padding: 1rem 1.25rem; border: 1px solid #b9dccd; border-left: 4px solid var(--hi-accent); border-radius: 0 var(--hi-radius) var(--hi-radius) 0; background: #f2f8f5; }
.hi-summary.is-expected { border-color: var(--hi-pending-border); border-left-color: var(--hi-pending); background: #fffaf0; }
.hi-summary p { margin: 0; }
.hi-summary__date { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; font-size: 1.375rem; line-height: 1.3; font-weight: 700; }
.hi-summary__alt { display: flex; flex-wrap: wrap; gap: .2rem 1.25rem; margin-top: .35rem; }
.hi-summary__note { margin-top: .6rem; color: var(--hi-muted); font-size: .9375rem; }
.hi-summary__last { margin-top: .35rem; font-size: .9375rem; }
.hi-years { margin: 1.75rem 0 1.25rem; }
.hi-years__tabs { display: flex; gap: .5rem; padding: .2rem .15rem .3rem; overflow-x: auto; overflow-y: hidden; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.hi-years__tabs::-webkit-scrollbar { display: none; }
.hi-years__tabs [role="tab"] { font: inherit; font-weight: 600; min-height: 44px; padding: .4rem 1.2rem; background: #fff; border: 1px solid var(--hi-border); border-radius: 5px; color: var(--hi-muted); cursor: pointer; flex-shrink: 0; }
.hi-years__tabs [role="tab"]:hover { border-color: var(--hi-accent); color: var(--hi-text); }
.hi-years__tabs [role="tab"][aria-selected="true"] { background: var(--hi-accent); border-color: var(--hi-accent); color: #fff; }
.hi-years__panel { padding-top: 1rem; }
.hi-js .hi-years__tabs[hidden] { display: flex; visibility: hidden; min-height: 44px; }
.hi-js .hi-years__panel:not(.is-focus) { display: none; }
.hi-js .hi-index__search[hidden] { display: block; visibility: hidden; min-height: 44px; }
.hi-js [data-hi-toggle-wrap][hidden],
.hi-js .hi-toggle[hidden] { display: inline-flex; visibility: hidden; min-height: 44px; }
.hi-js .hi-up__item.is-optional { display: none; }
.hi-js .hi-up.is-showing-optional .hi-up__item.is-optional,
.hi-js .hi-up--all .hi-up__item.is-optional { display: grid; }
.hi-years__h { margin: 0 0 .75rem; font-size: 1.125rem; line-height: 1.3; }
.hi-years__note { margin: .75rem 0 0; color: var(--hi-muted); font-size: .9375rem; }
.hi-break { list-style: none; margin: 0; padding: 0 0 .4rem; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(5.6rem, 1fr); gap: .375rem; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.hi-break__day { display: flex; flex-direction: column; gap: .25rem; min-height: 7rem; padding: .5rem .55rem .6rem; border: 1px solid var(--hi-border); border-top: 4px solid var(--hi-public); border-radius: 5px; background: #fff; scroll-snap-align: start; flex-shrink: 0; }
.hi-break__day time { display: flex; flex-direction: column; }
.hi-break__day--optional { border-top-color: var(--hi-optional); }
.hi-break__day:only-child { max-width: 14rem; }
.hi-break__day.is-primary { background: var(--hi-public); border-color: var(--hi-public); color: #fff; }
.hi-break__wd { font-size: .8125rem; color: var(--hi-muted); }
.hi-break__date { display: flex; align-items: baseline; gap: .35rem; }
.hi-break__m { font-size: 1rem; font-weight: 600; line-height: 1; }
.hi-break__d { font-size: 1.85rem; line-height: 1; font-weight: 700; font-stretch: 78%; font-variant-numeric: tabular-nums; }
.hi-break__label { font-size: .8125rem; line-height: 1.25; font-weight: 600; }
.hi-break__also { font-size: .75rem; line-height: 1.25; color: var(--hi-muted); }
.hi-break__day.is-primary .hi-break__wd, .hi-break__day.is-primary .hi-break__also { color: rgba(255, 255, 255, .95); }

/* ---------- Tables ---------- */
.hi-table { width: 100%; border-collapse: collapse; font-size: .9375rem; margin: .5rem 0 1rem; word-break: normal; overflow-wrap: break-word; }
.hi-table caption { caption-side: top; text-align: left; padding: 0 0 .5rem; font-size: .875rem; color: var(--hi-muted); }
.hi-table th, .hi-table td { text-align: left; vertical-align: top; padding: .6rem .5rem; border-bottom: 1px solid var(--hi-border); }
.hi-table th:first-child, .hi-table td:first-child { padding-left: 0; }
.hi-table thead th { font-size: .8125rem; font-weight: 600; color: var(--hi-muted); border-bottom: 2px solid var(--hi-text); }
.hi-table__month th { padding: .45rem .5rem; background: var(--hi-surface); font-size: .875rem; font-weight: 700; }
.hi-table__month th:first-child { padding-left: .5rem; }
.hi-table__date time { display: block; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hi-table__bn, .hi-table__name-bn { display: block; font-size: .8125rem; color: var(--hi-muted); }
.hi-table__note { display: block; font-size: .75rem; color: var(--hi-muted); }
.hi-table__name a, .hi-table__plain { font-weight: 600; color: var(--hi-text); }
.hi-table__name a { text-decoration-color: #b7c3bd; }
.hi-table__name a:hover { text-decoration-color: currentColor; }
.hi-table__part { color: var(--hi-muted); }
.hi-table__type .hi-badge, .hi-table__type .hi-status { margin: 0 .25rem .25rem 0; }
.hi-table__row.is-weekend .hi-table__day { color: var(--hi-muted); }
.hi-table__row.is-pending { background: repeating-linear-gradient(135deg, #fffaf0 0 8px, #fff 8px 16px); }
@media (max-width: 600px) {
  .hi-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hi-table, .hi-table caption, .hi-table tbody, .hi-table tr, .hi-table th, .hi-table td { display: block; }
  .hi-table__month th { margin-top: .75rem; border-bottom: 0; }
  .hi-table .hi-table__row { display: grid; grid-template-columns: 4.4rem minmax(0, 1fr); column-gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--hi-border); }
  .hi-table__row td { border: 0; padding: 0; }
  .hi-table__row td:first-child { padding-left: 0; }
  .hi-table__date { grid-column: 1; grid-row: 1 / span 3; }
  .hi-table__name { grid-column: 2; grid-row: 1; }
  .hi-table__type { grid-column: 2; grid-row: 2; margin-top: .35rem; }
  .hi-table__day { grid-column: 2; grid-row: 3; font-size: .8125rem; color: var(--hi-muted); margin-top: .15rem; }
  .hi-table__day .hi-table__note { display: inline; margin-left: .4rem; }
  .hi-table.hi-table--years .hi-table__row, .hi-table.hi-table--types .hi-table__row { grid-template-columns: 1fr; row-gap: .2rem; }
  .hi-table--years .hi-table__row td, .hi-table--types .hi-table__row td { grid-column: 1; grid-row: auto; }
  .hi-table--years td::before, .hi-table--types td:not(:first-child)::before { content: attr(data-label) ": "; color: var(--hi-muted); font-size: .8125rem; }
}

/* ---------- Year page ---------- */
/* The chip sits in a box exactly one text line tall, so it is centred on the first line of the sentence (also when the sentence wraps on a phone). */
.hi-banner__chip { display: flex; align-items: center; flex: none; min-height: 1.6em; min-height: 1lh; }
.hi-banner { display: flex; align-items: flex-start; gap: .75rem; padding: .8rem 1rem; margin: 0 0 1rem; border: 1px solid #b9dccd; background: #f2f8f5; border-radius: var(--hi-radius); }
.hi-banner p { margin: 0; }
.hi-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 1.25rem; border-top: 1px solid var(--hi-border); border-bottom: 1px solid var(--hi-border); }
.hi-stats > div { padding: .7rem .75rem .7rem 0; }
.hi-stats dt { font-size: .8125rem; line-height: 1.3; color: var(--hi-muted); }
.hi-stats dd { margin: .15rem 0 0; font-size: 1.5rem; line-height: 1.1; font-weight: 700; font-stretch: 85%; }
@media (min-width: 640px) { .hi-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hi-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; }
.hi-chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .4rem .9rem; border: 1px solid var(--hi-border); border-radius: 5px; background: #fff; color: var(--hi-text); font-weight: 600; font-size: .9375rem; text-decoration: none; }
.hi-chip span { font-weight: 500; color: var(--hi-muted); }
.hi-chip[aria-pressed="true"] { background: var(--hi-text); border-color: var(--hi-text); color: #fff; }
.hi-chip[aria-pressed="true"] span { color: rgba(255, 255, 255, .75); }
.hi-yearpage__h { margin: 1.75rem 0 .25rem; font-size: 1.3125rem; line-height: 1.25; }
.hi-yearpage__intro { margin: 0 0 .75rem; color: var(--hi-muted); }
.hi-opt { border-top: 1px solid var(--hi-border); }
.hi-opt:last-child { border-bottom: 1px solid var(--hi-border); }
.hi-opt summary { display: flex; align-items: center; box-sizing: border-box; gap: .75rem; padding: .75rem 0; cursor: pointer; list-style: none; min-height: 44px; }
.hi-opt summary::-webkit-details-marker { display: none; }
.hi-opt summary::after { content: "+"; margin-left: .25rem; font-weight: 600; line-height: 1; color: var(--hi-muted); }
.hi-opt[open] summary::after { content: "\2212"; }
.hi-opt__title { margin: 0; font-size: 1.0625rem; }
.hi-opt__count { margin-left: auto; font-size: .875rem; color: var(--hi-muted); }
.hi-downloads { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }

/* ---------- Calendar ---------- */

/* ---------- Long breaks ---------- */
.hi-breaks { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.hi-breaks__item { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; align-items: start; align-content: start; padding: 1rem; border: 1px solid var(--hi-border); border-radius: var(--hi-radius); background: #fff; }
.hi-breaks__item.is-pending { border-style: dashed; }
.hi-breaks__len { grid-row: span 3; margin: 0; min-width: 3.2rem; text-align: center; line-height: 1; font-size: .8125rem; color: var(--hi-muted); }
.hi-breaks__n { display: block; font-size: 2.6rem; font-weight: 700; font-stretch: 78%; color: var(--hi-text); font-variant-numeric: tabular-nums; }
.hi-breaks__range { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin: 0; font-size: 1.0625rem; line-height: 1.3; }
.hi-breaks__what { margin: .2rem 0 .55rem; font-size: .9375rem; color: var(--hi-muted); }
.hi-strip { display: flex; flex-wrap: wrap; gap: 3px; }
.hi-breaks__bridge { grid-column: 1 / -1; margin: .8rem 0 0; padding-top: .75rem; border-top: 1px dashed var(--hi-border); font-size: .9375rem; }
.hi-strip__cell { display: inline-block; width: 14px; height: 14px; border-radius: 3px; background: var(--hi-public); }
.hi-strip__cell--bridge { background: repeating-linear-gradient(135deg, var(--hi-optional) 0 3px, #fff 3px 6px); box-shadow: inset 0 0 0 1px var(--hi-optional); }
.hi-strip-key { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 .8rem; font-size: .8125rem; line-height: 1.3; color: var(--hi-muted); }
[data-hi-component][data-hi-component][data-hi-component] p.hi-strip-key { display: flex; }
.hi-strip-key .hi-strip__cell + .hi-strip__cell { margin-left: .9rem; }
@media (min-width: 640px) { .hi-breaks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Source, updates, FAQ ---------- */
.hi-source { display: grid; gap: 1.5rem; }
.hi-notice { padding: 1rem 1.1rem; border: 1px solid var(--hi-border); border-top: 4px solid var(--hi-accent); border-radius: var(--hi-radius); background: #fff; }
.hi-notice__title, .hi-updates__title, .hi-faq__title { margin: 0 0 .6rem; font-size: 1.0625rem; line-height: 1.3; }
.hi-notice__facts { margin: 0 0 .6rem; }
.hi-notice__facts > div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .5rem; padding: .35rem 0; border-bottom: 1px dotted var(--hi-border); }
.hi-notice__facts dt { font-size: .875rem; color: var(--hi-muted); }
.hi-notice__facts dd { margin: 0; font-size: .9375rem; overflow-wrap: anywhere; }
.hi-notice p { margin: .4rem 0 0; }
.hi-notice__rule { font-size: .875rem; color: var(--hi-muted); }
.hi-notices > section + section { margin-top: 2rem; }
.hi-notices > section > .hi-notice + .hi-notice { margin-top: 1rem; }
.hi-notices .hi-yearpage__h { margin: 0 0 .75rem; }
.hi-updates { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 2px solid var(--hi-border); }
.hi-updates li { position: relative; display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); gap: .5rem; padding: 0 0 .8rem; }
.hi-updates li::before { content: ""; position: absolute; left: calc(-1rem - 6px); top: .45rem; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--hi-accent); }
.hi-updates time { font-size: .875rem; font-weight: 700; white-space: nowrap; }
.hi-updates p { margin: 0; font-size: .9375rem; }
.hi-faq { margin-top: 1.75rem; }
.hi-faq details { border-bottom: 1px solid var(--hi-border); }
.hi-faq summary { padding: .75rem 0; font-weight: 600; cursor: pointer; min-height: 44px; }
.hi-faq details p { margin: 0 0 .9rem; }
@media (min-width: 720px) { .hi-source { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- Motion and print ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hi-years__tabs [role="tab"], .hi-chip { transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
}
@media print {
  .hi-chips, .hi-downloads, .hi-years__tabs, .hi-toggle { display: none; }
  .hi-years__panel[hidden], .hi-yearpage__section[hidden], .hi-up__item[hidden] { display: block; }
  .hi-table__row.is-pending { background: none; }
  a { color: inherit; text-decoration: none; }
}

/* ---------- Additions: calendar year view, navigation, cards, index ---------- */
.hi-main { max-width: 1100px; margin-inline: auto; padding: 1rem 16px 3rem; }
.hi-content { margin: 1.5rem 0; }
.hi-holiday__excerpt { margin: 1rem 0; color: var(--hi-muted); }
.hi-source__grid { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .hi-source__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
/* Related holidays: 4 cards on desktop, 2 on tablet, 2 on large phones, 1 on small phones */
.hi-related__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 480px) { .hi-related__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .hi-related__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.hi-related__list > li { display: flex; }
.hi-related a.hi-related__card { text-align: left; display: flex; flex: 1; flex-direction: column; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--hi-border); border-radius: calc(var(--hi-radius) + 2px); color: var(--hi-text); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.hi-related a.hi-related__card:hover, .hi-related a.hi-related__card:focus-visible { border-color: var(--hi-accent); box-shadow: 0 4px 14px rgba(0, 106, 78, .12); transform: translateY(-2px); color: var(--hi-text); }
.hi-related__card:hover .hi-related__name { color: var(--hi-accent); }
.hi-related__name { font-weight: 700; font-size: 1.0625rem; line-height: 1.3; }
.hi-related__bn { color: var(--hi-muted); font-size: .875rem; }
/* The text block takes the free height, so the date line sits at the bottom of every card and the dates line up in one row. */
.hi-related__text { display: flex; flex-direction: column; gap: .2rem; flex: 1; padding-bottom: .75rem; }
.hi-related__date { margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--hi-border); color: var(--hi-accent-ink); font-size: .875rem; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .hi-related a.hi-related__card { transition: none; } .hi-related a.hi-related__card:hover, .hi-related a.hi-related__card:focus-visible { transform: none; } }
.hi-updated { margin-top: 1.5rem; }
.hi-yearnav__h { margin: 0 0 .35rem; font-size: 1.25rem; line-height: 1.3; font-weight: 700; }
.hi-yearnav__intro { margin: 0 0 1rem; color: var(--hi-muted); max-width: 60ch; }
.hi-yearnav__cards { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); list-style: none; margin: 0 0 1rem; padding: 0; }
.hi-yearnav__card { display: flex; }
.hi-yearnav__card a { display: grid; flex: 1; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .3rem 1rem; padding: 1rem 1.25rem; border: 1px solid var(--hi-border); border-radius: var(--hi-radius); text-decoration: none; color: var(--hi-text); background: #fff; transition: border-color .15s ease; }
.hi-yearnav__card a:hover, .hi-yearnav__card a:focus-visible { border-color: var(--hi-accent); }
.hi-yearnav__card strong { grid-row: span 4; font-size: 2.5rem; line-height: 1; font-weight: 700; font-stretch: 75%; color: var(--hi-accent-ink); font-variant-numeric: tabular-nums; }
.hi-yearnav__title { font-weight: 700; font-size: 1.0625rem; line-height: 1.3; }
.hi-yearnav__tags { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.hi-yearnav__when { font-size: .8125rem; font-weight: 600; color: var(--hi-accent-ink); }
.hi-yearnav__card .hi-footnote { margin: 0; }
.hi-yearnav__go { margin-top: .35rem; font-size: .9375rem; font-weight: 600; color: var(--hi-accent-ink); }
.hi-yearnav__card.is-current a { border-color: var(--hi-accent); box-shadow: inset 0 0 0 1px var(--hi-accent); }
/* Previous / next year at the bottom of a year page: outlined buttons, no fill. */
.hi-yearnav--simple { margin-top: 2rem; }
.hi-yearnav__lead { margin: 0 0 .5rem; font-size: .9375rem; color: var(--hi-muted); }
.hi-yearnav__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; margin: 0; }
.hi-yearnav__btn { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: .55rem 1.1rem; border: 1px solid var(--hi-accent); border-radius: 5px; background: transparent; color: var(--hi-accent-ink); font-weight: 600; line-height: 1.3; text-decoration: none; transition: border-color .15s ease, color .15s ease; }
.hi-yearnav__btn--next:not(:only-child) { margin-left: auto; }
.hi-yearnav__btn:hover, .hi-yearnav__btn:focus-visible { border-color: var(--hi-accent-ink); color: var(--hi-text); }
.hi-yearnav__state { font-weight: 500; color: var(--hi-muted); }
.hi-cards { display: grid; gap: .75rem; list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.hi-card { padding: 1rem; border: 1px solid var(--hi-border); border-radius: var(--hi-radius); background: var(--hi-bg); }
.hi-card p { margin: .25rem 0 0; }
.hi-card__name { margin: 0; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.hi-card__meta, .hi-card__date { color: var(--hi-muted); font-size: .9375rem; }
.hi-index__input { width: 100%; max-width: 30rem; min-height: 48px; padding: .5rem 1rem; font: inherit; border: 1px solid var(--hi-border); border-radius: 5px; background: #fff; }
/* No outline or glow when selected, but the field edge must still change (WCAG 2.4.7): accent border plus a 1px inset line. */
.hi-index__input:focus { border-color: var(--hi-accent); outline: 0; box-shadow: inset 0 0 0 1px var(--hi-accent); }
.hi-index__jump { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; }
.hi-index__group { scroll-margin-top: 5rem; }
.hi-index__group > .hi-yearpage__h { margin: 2.5rem 0 1rem; font-size: 1.5rem; font-stretch: 85%; }
.hi-index__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.hi-index__item { display: flex; flex-direction: column; gap: .1rem; padding: .85rem 1rem; border: 1px solid var(--hi-border); border-radius: var(--hi-radius); background: #fff; transition: border-color .15s; }
.hi-index__item:hover, .hi-index__item:focus-within { border-color: var(--hi-accent); }
.hi-index__item a { font-weight: 700; font-size: 1.0625rem; line-height: 1.3; color: var(--hi-text); text-decoration: none; }
.hi-index__item a:hover { color: var(--hi-accent); }
.hi-index__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: auto; padding-top: .6rem; font-size: .875rem; color: var(--hi-muted); }
.hi-index__meta time { font-weight: 600; color: var(--hi-text); }

/* ---------- Calendar: one month at a time with the script, every month without it ---------- */
.hi-cal__bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: .5rem; }
.hi-cal__pager { display: none; }
.hi-js .hi-cal__pager { display: flex; align-items: center; gap: .5rem; }
.hi-cal .hi-cal__pager .hi-btn { width: 3.25rem; min-height: 0; height: 2rem; padding: 0; font-size: 1.2rem; line-height: 1; }
.hi-cal__current { min-width: 11rem; text-align: center; font-size: 1.125rem; font-weight: 700; }
/* With the script the month name sits between the arrows; the heading stays for screen readers. */
.hi-js .hi-cal__title { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hi-cal__opts { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-left: auto; }
.hi-btn:disabled { opacity: .35; cursor: default; background: #fff; }
.hi-cal__legend { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1.1rem 0 1.25rem; padding: 0; font-size: .875rem; color: var(--hi-muted); }
.hi-key { display: inline-block; width: .95rem; height: .95rem; margin-right: .4rem; vertical-align: -2px; border: 1px solid var(--hi-border); border-radius: 3px; background: #fff; }
.hi-key--public { background: var(--hi-public-wash); border-color: var(--hi-public); }
.hi-key--pending { background: repeating-linear-gradient(135deg, var(--hi-public-wash) 0 3px, #fff 3px 6px); border-color: var(--hi-public); }
.hi-key--optional { background: #eef3fb; border-color: var(--hi-optional); }
.hi-key--weekend { background: var(--hi-weekend); }
.hi-key--today { background: var(--hi-accent); border-color: var(--hi-accent); }

.hi-cal__months { display: grid; gap: 2.5rem; }
.hi-js .hi-cal__month:not(.is-current) { display: none; }
.hi-cal__title { margin: 0; font-size: 1.75rem; line-height: 1.1; font-weight: 700; font-stretch: 85%; }
.hi-cal__sub { display: flex; flex-wrap: wrap; gap: .2rem 1rem; margin: .25rem 0 .9rem; font-size: .9375rem; color: var(--hi-muted); }
.hi-cal__grid { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; border: 1px solid var(--hi-border); border-radius: 5px; overflow: hidden; background: #fff; }
.hi-cal__grid th { padding: .55rem .6rem; text-align: left; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--hi-muted); background: var(--hi-surface); border: 0; border-bottom: 1px solid var(--hi-border); }
.hi-cal__grid th.is-weekend { color: var(--hi-public); }
.hi-cal__grid tr { border: 0; }
.hi-cal .hi-cal__day { position: relative; height: 4.75rem; padding: .5rem; text-align: center; line-height: 1.2; vertical-align: top; border: 0; border-top: 1px solid var(--hi-border); border-left: 1px solid var(--hi-border); background: #fff; }
.hi-cal__grid tbody tr:first-child .hi-cal__day { border-top: 0; }
.hi-cal__grid tbody td:first-child { border-left: 0; }
.hi-cal__day time { display: flex; align-items: center; justify-content: center; width: fit-content; min-width: 2rem; height: 2rem; margin: 0 auto; padding: 0 .35rem; border-radius: 999px; font-size: 1.15rem; line-height: 1; font-weight: 650; font-variant-numeric: tabular-nums; }
/* The Bangla and Hijri day sit together under the number; a holiday name goes below them. Nothing is pushed into the corners. */
.hi-cal__alt { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: nowrap; gap: 0 .4rem; margin-top: .25rem; font-size: .75rem; line-height: 1.25; color: var(--hi-muted); }
.hi-cal__bn, .hi-cal__hj { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
/* Bangla dates are burnt orange and Hijri dates are teal everywhere (calendar, legend, switches, Today card, holiday page). */
.hi-cal__bn { color: var(--hi-bangla); }
.hi-cal__hj { color: var(--hi-hijri); }
.hi-cal__sub { gap: .4rem 1.75rem; color: inherit; }
.hi-cal__sub-bn, .hi-cal__sub-hj { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; font-weight: 600; }
.hi-cal__sub-bn { color: var(--hi-bangla); }
.hi-cal__sub-hj { color: var(--hi-hijri); }
.hi-cal__sub-k { font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hi-toggle--bangla span { color: var(--hi-bangla); font-weight: 600; }
.hi-toggle--bangla .hi-toggle__input { accent-color: var(--hi-bangla); }
.hi-toggle--hijri span { color: var(--hi-hijri); font-weight: 600; }
.hi-toggle--hijri .hi-toggle__input { accent-color: var(--hi-hijri); }
/* Today card and holiday page: the same two colours, with a label on each date. */
.hi-today__dates div:has(> dd[data-k="bn"]) :is(dt, dd) { color: var(--hi-bangla); }
.hi-today__dates div:has(> dd[data-k="hijri"]) :is(dt, dd) { color: var(--hi-hijri); }
/* Hijri, Bangla and the countdown on a holiday page: plain coloured text, one size (2px smaller than the body text), no chips. */
.hi-summary__alt { gap: .25rem 1.5rem; align-items: baseline; font-size: calc(1em - 2px); }
.hi-summary__alt-item { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 .4rem; font-weight: 600; }
.hi-summary__alt [data-hi-countdown] { font-weight: 600; color: var(--hi-accent-ink); }
.hi-summary__alt-k { font-weight: 600; }
.hi-summary__alt-item--bangla [lang="bn"] { word-spacing: .15em; }
.hi-summary__alt-item--hijri { color: var(--hi-hijri); }
.hi-summary__alt-item--bangla { color: var(--hi-bangla); }
.hi-cal__tag { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: .3rem; font-size: .75rem; line-height: 1.25; font-weight: 600; text-align: center; text-decoration: none; }
/* A holiday cell is one big link: the tag's ::after covers the whole cell, so nothing sits on top of it. */
a.hi-cal__tag::after { content: ""; position: absolute; inset: 0; }
.hi-cal__day.is-weekend { background: var(--hi-weekend); }
.hi-cal__day.is-weekend time { color: var(--hi-muted); }
.hi-cal__day.is-outside { background: #fafbfa; }
.hi-cal__day.is-public { background: var(--hi-public-wash); box-shadow: inset 0 3px 0 var(--hi-public); }
.hi-cal__day.is-pending { background: repeating-linear-gradient(135deg, var(--hi-public-wash) 0 6px, #fff 6px 12px); }
.hi-cal__day.is-optional { box-shadow: inset 0 3px 0 var(--hi-optional); background: #f4f7fc; }
.hi-cal .hi-cal__day.is-public time, .hi-cal .hi-cal__day.is-public .hi-cal__tag { color: var(--hi-public); }
.hi-cal .hi-cal__day.is-optional time, .hi-cal .hi-cal__day.is-optional .hi-cal__tag { color: var(--hi-optional); }
.hi-cal .hi-cal__day.is-today { box-shadow: inset 0 0 0 2px var(--hi-accent); }
.hi-cal .hi-cal__day.is-today time { background: var(--hi-accent); color: #fff; }
.hi-cal__day:has(a.hi-cal__tag:hover) { background: #fbe3e3; }
.hi-cal__day.is-optional:has(a.hi-cal__tag:hover) { background: #e3ecf9; }
a.hi-cal__tag:focus-visible { outline: 0; }
a.hi-cal__tag:focus-visible::after { outline: 3px solid var(--hi-accent); outline-offset: -3px; }
.hi-cal__list { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 1px solid var(--hi-border); }
.hi-cal__item { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem; padding: .55rem 0; border-bottom: 1px solid var(--hi-border); }
.hi-cal__item time { min-width: 3.4rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.hi-cal__item a { color: var(--hi-text); font-weight: 600; }
.hi-cal__part { color: var(--hi-muted); }
.hi-cal__more { margin-top: 1.25rem; font-weight: 600; }
/* The Bangla and Hijri switches work with CSS alone. */
.hi-cal:has(input[name="bangla"]:not(:checked)) :is(.hi-cal__bn, .hi-cal__sub-bn),
.hi-cal:has(input[name="hijri"]:not(:checked)) :is(.hi-cal__hj, .hi-cal__sub-hj) { display: none; }
@media (max-width: 600px) {
  .hi-cal .hi-cal__day { height: 3.7rem; padding: .3rem; }
  .hi-cal__day time { min-width: 1.5rem; height: 1.5rem; margin: 0 auto; padding: 0 .25rem; font-size: .875rem; }
  /* Bangla and Hijri day side by side under the number, clipped to the cell */
  .hi-cal__alt { gap: 0 .2rem; margin-top: .2rem; font-size: .625rem; overflow: hidden; }
  /* The name stays for screen readers; the whole cell stays tappable. */
  .hi-cal__tag { position: absolute; inset: 0; margin: 0; font-size: 0; line-height: 0; }
  a.hi-cal__tag::after { display: none; }
  /* The ::after ring is off here, so the link itself carries the keyboard focus ring. */
  a.hi-cal__tag:focus-visible { outline: 3px solid var(--hi-accent); outline-offset: -3px; }
  .hi-cal__grid th { padding: .45rem .25rem; font-size: .6875rem; letter-spacing: 0; }
  .hi-cal__opts { margin-left: 0; }
}
@media print {
  .hi-cal__bar, .hi-cal__legend, .hi-cal__more { display: none; }
  .hi-js .hi-cal__month:not(.is-current) { display: block; }
  .hi-cal__months { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .hi-cal__list { display: none; }
  .hi-cal .hi-cal__day { height: 2.6rem; }
  .hi-cal__day time { font-size: .875rem; }
  .hi-cal__bn, .hi-cal__hj { font-size: .5rem; }
  .hi-cal__tag { display: none; }
  .hi-cal__day.is-pending { background: none; }
}
.hi-cal { page: hi-calendar; }
@page hi-calendar { size: A4 landscape; margin: 10mm; }

/* ---------- Reference parity: keep component colours and headings stable under theme styles ---------- */
/* Themes often colour every content link and restyle headings. Component ancestors raise specificity so the
   look stays the one in reference/ui-reference.html. */
.hi-today .hi-next__name a, .hi-up .hi-up__name a, .hi-table .hi-table__name a, .hi-cal .hi-cal__item a { color: var(--hi-text); text-decoration: none; }
.hi-table .hi-table__name a { text-decoration-color: #b7c3bd; }
.hi-table .hi-table__name a:hover { text-decoration-color: currentColor; }
.hi-chips .hi-chip { color: var(--hi-text); text-decoration: none; }
.hi-chips .hi-chip[aria-pressed="true"] { color: #fff; }
.hi-chips .hi-chip[aria-pressed="true"] span { color: rgba(255, 255, 255, .75); }
a.hi-btn.hi-btn { color: var(--hi-text); text-decoration: none; }
.hi-crumbs a { text-decoration: none; }
.hi-holiday a, .hi-yearpage a, .hi-source a, .hi-up__more a, .hi-faq a { text-underline-offset: 3px; }
.hi-banner p a, .hi-up .hi-up__more a, .hi-table--years a { color: var(--hi-accent); }
.hi-breaks__range, .hi-years__h, .hi-yearpage__h, .hi-opt__title, .hi-notice__title, .hi-updates__title, .hi-faq__title, .hi-holiday__h1 { font-weight: 700; }
.hi-breaks__range, .hi-years__h, .hi-opt__title, .hi-notice__title, .hi-updates__title, .hi-faq__title { letter-spacing: normal; text-transform: none; }
.hi-source > div > .hi-notice + .hi-notice, .hi-source > .hi-notice + .hi-notice { margin-top: 1rem; }
.hi-notices__grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); align-items: start; }
/* The reference page sets box-sizing: border-box on everything; components rely on it (min-height + padding). */
[data-hi-component], [data-hi-component] *, [data-hi-component] *::before, [data-hi-component] *::after,
.hi-main, .hi-main *, .hi-main *::before, .hi-main *::after { box-sizing: border-box; }

/* ---------- Responsive and touch refinements ---------- */
/* Year page: "Jump to" links are plain links, not filter chips. */
.hi-chips + .hi-jump { margin-top: -.5rem; }
.hi-jump { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 1.25rem; font-size: .9375rem; }
.hi-jump__label { color: var(--hi-muted); font-size: .875rem; }
.hi-jump a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 .9rem; background: #fff; border: 1px solid var(--hi-border); border-radius: 5px; font-weight: 600; transition: border-color .15s ease, background-color .15s ease; }
.hi-jump a:hover { border-color: var(--hi-accent); background: #f5faf8; }

/* Tables: the theme styles every tr/td/tbody (hairlines, line-height 2); keep the component's own rhythm. */
.hi-table tr { border-top: 0; }
.hi-table tbody { border-bottom: 0; }
.hi-table td, .hi-table th { line-height: 1.5; }

/* Holiday types table: the badge and the Bengali name share one row. The cell stays a real table cell (a flex cell stops the
   row lines from lining up with the other columns); on phones the rows are stacked blocks, so flex is fine there. */
.hi-table--types .hi-table__name-bn { display: inline-block; }
.hi-table--types .hi-table__row > td:first-child .hi-badge { margin-right: .5rem; }
@media (max-width: 600px) {
  .hi-table--types .hi-table__row > td:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .6rem; }
  .hi-table--types .hi-table__row > td:first-child .hi-badge { margin-right: 0; }
}

/* Phones: calendar controls and cells */
@media (max-width: 600px) {
  .hi-cal .hi-cal__pager .hi-btn { width: 3rem; height: 2.125rem; min-height: 0; }
  .hi-cal__current { min-width: 0; flex: 1; font-size: 1.0625rem; }
  .hi-js .hi-cal__pager { width: 100%; }
  /* Today card: a smaller numeral so the status and the next holiday come sooner */
  .hi-today__day { font-size: clamp(4rem, 15vw, 5rem); padding-top: .5rem; }
  .hi-today__weekday { margin-bottom: .6rem; }
  .hi-today--modern .hi-today__day { padding-top: .875rem; }
  .hi-today--modern .hi-today__month { font-size: 1.25rem; }
}
@media (min-width: 601px) and (max-width: 1023px) {
  .hi-cal__tag { font-size: .75rem; }
}

/* Phones: the break timeline wraps into a grid so every day is visible without sideways scrolling */
@media (max-width: 639px) {
  .hi-break { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(5.4rem, 1fr)); overflow: visible; scroll-snap-type: none; }
  .hi-break__day { min-height: 6.25rem; }
}
/* Larger strip squares (the leave-planner mini timeline) */
.hi-strip__cell { width: 16px; height: 16px; }

/* Touch screens: links that sit in running text or small rows get a 44px target */
@media (pointer: coarse) {
  .hi-crumbs a, .hi-up__more a { display: inline-flex; align-items: center; min-height: 44px; }
  .hi-crumbs > span { gap: 0 .3rem; }
  .hi-crumbs > span > span:not(:first-child) a { min-height: 44px; line-height: 44px; }
}
@media print {
  .hi-jump { display: none; }
  .hi-table a[href]::after, .hi-cal a[href]::after, .hi-up a[href]::after { content: none; }
}
/* Reading width: long text stays at a comfortable line length inside the wide page container */
.hi-content > p, .hi-content > ul, .hi-content > ol, .hi-yearpage__intro, .hi-summary__note, .hi-faq details p, .hi-holiday__excerpt { max-width: 68ch; }
/* House rule: no link is underlined (colour change on hover only) */
.hi-main a, .hi-main a:hover, .hi-main a:focus, .hi-table a, .hi-table a:hover, [data-hi-component] a, [data-hi-component] a:hover { text-decoration: none; }
@media (max-width: 600px) {
  .hi-related__list { gap: .6rem; }
  .hi-related a.hi-related__card { padding: .8rem .9rem; }
  .hi-related__name { font-size: 1rem; }
}
