/* ===========================================================================
   Calendar page — matched to the approved Carisma design.
   =========================================================================== */

.cal-page { display: flex; flex-direction: column; gap: 16px; }

/* -------------------------------- banner --------------------------------- */
.cal-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    background: linear-gradient(120deg, #f7ecef 0%, #faf3ee 55%, #f6f3fb 100%);
    border: 1px solid #f1e6e8; border-radius: 18px; padding: 12px 24px;
}
.cal-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .8rem; margin-bottom: 4px; color: #6b5f63; }
.cal-crumb a { color: #6b5f63; text-decoration: none; }
.cal-crumb a:hover { color: var(--primary-color); text-decoration: underline; }
.cal-crumb strong { color: #1c1416; font-weight: 700; }
.cal-crumb__sep { color: #cdbfc3; }
.cal-title { font-size: 1.5rem; font-weight: 800; color: #1c1416; margin: 0 0 2px; }
.cal-sub { color: #6b5f63; font-size: .88rem; margin: 0; }

.cal-tabs { display: inline-flex; gap: 4px; padding: 4px; background: #f1ecee; border-radius: 12px; }
.cal-tab {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 0; border-radius: 9px; background: transparent;
    font: inherit; font-size: .88rem; font-weight: 600; color: #4b4145; cursor: pointer; white-space: nowrap;
}
.cal-tab:hover { color: var(--primary-color); }
.cal-tab.is-active { background: var(--primary-color); color: #fff; box-shadow: 0 2px 6px rgba(122, 31, 43, .3); }
.cal-tab__tick { font-size: .85rem; }
.cal-tab__count { min-width: 24px; text-align: center; padding: 0 8px; border-radius: 999px; background: #fff; color: #4b4145; font-size: .76rem; font-weight: 700; }
.cal-tab.is-active .cal-tab__count { background: rgba(255, 255, 255, .25); color: #fff; }

/* --------------------------------- card ----------------------------------- */
.cal-card {
    background: #fff; border: 1px solid #eef0f3; border-top: 3px solid #e9c7d2; border-radius: 16px;
    box-shadow: 0 1px 2px rgba(20, 20, 40, .04); overflow: hidden;
}
.cal-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; }
.cal-card__title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.1rem; font-weight: 700; color: #1c1416; }
.cal-accent { width: 4px; height: 18px; border-radius: 3px; background: var(--primary-color); }
.cal-count { font-size: .82rem; color: #6b5f63; }
.cal-count b { color: #1f4f9a; font-weight: 700; }

/* --------------------------------- table ---------------------------------- */
.cal-scroll { overflow-x: auto; }
.cal-table { width: 100%; min-width: 880px; border-collapse: collapse; font-size: .9rem; color: #3d3236; }
.cal-table th {
    background: #f6ecef; color: #5a2636; text-align: left; white-space: nowrap;
    font-size: .72rem; font-weight: 700; letter-spacing: .06em; padding: 11px 20px; border-bottom: 1px solid #ece6e2;
}
.cal-table td { padding: 9px 20px; border-bottom: 1px solid #f2eeef; vertical-align: middle; }
.cal-table tbody tr:nth-child(even) td { background: #fcf8f9; }
.cal-th--no, .cal-no { width: 70px; }

/* Past holidays are dimmed; the next one gets a maroon edge and full-strength text. */
.cal-table tr.is-past td { color: #8a8f99; }
.cal-table tr.is-past .cal-reason { color: #7b8089; }
.cal-no { font-weight: 600; }
.cal-reason { font-weight: 700; color: #2b2f36; }
.cal-table tr.is-next td { background: #fff; color: #1c1416; }
.cal-table tr.is-next td:first-child { box-shadow: inset 3px 0 0 var(--primary-color); }
.cal-table tr.is-next .cal-reason { color: #1c1416; }

.cal-next { margin-left: 8px; padding: 2px 8px; border-radius: 6px; background: var(--primary-color); color: #fff; font-size: .62rem; font-weight: 700; letter-spacing: .05em; vertical-align: middle; }

.cal-type { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .74rem; font-weight: 600; }
.cal-type--public    { background: #f8e3e8; color: #7a1f2b; }
.cal-type--special   { background: #fdf0d5; color: #8a5a00; }
.cal-type--national  { background: #e2ecfa; color: #1f4f9a; }
.cal-type--wellbeing { background: #e3f3ea; color: #0d6a40; }
.cal-table tr.is-past .cal-type { opacity: .75; }

.cal-type--other { background: #eceff3; color: #4b5563; }
.cal-empty { text-align: center; color: #8a8f99; padding: 28px !important; }
.cal-link { border: 0; background: none; padding: 0; color: var(--primary-color); font: inherit; font-weight: 600; cursor: pointer; }
.cal-link:hover { text-decoration: underline; }
