/* ExamCalendar 0.4.0 — exam module additions (listing filters, calendar, detail page). Uses the tokens in examcalendar.css. */
:root{--ec-teal:#0d9488;--ec-teal-bg:#dcf5f2}
html[data-ec-theme=dark]{--ec-teal-bg:#0f2f2c}
.ec-bg-teal{background:var(--ec-teal)!important;color:#fff}
.ec-c-teal{color:var(--ec-teal);background:var(--ec-teal-bg)}
.ec-soft-teal{color:var(--ec-teal);background:var(--ec-teal-bg)}

/* ---------- Listing filters ---------- */
.ec-filters.is-live [data-ec-filter-submit]{display:none}
.ec-filter-actions{grid-column:1/-1;display:flex;justify-content:flex-end;align-items:center;gap:10px;min-height:0}
.ec-filter-actions:empty{display:none}
.ec-filters.is-live .ec-filter-actions{margin-top:-2px}
.ec-link-btn[hidden]{display:none!important}
.ec-results{transition:opacity .15s}
.ec-results.is-loading{opacity:.45;pointer-events:none}
@media (min-width:600px){.ec-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:1000px){.ec-filters{grid-template-columns:repeat(6,minmax(0,1fr))}}

/* ---------- Calendar ---------- */
.ec-cal-nav{gap:8px}
.ec-cal-label{flex:1;text-align:center}
.ec-cal-today{border:1px solid var(--ec-line);background:var(--ec-card);color:var(--ec-primary);border-radius:8px;padding:5px 11px;font:700 12px var(--ec-font);cursor:pointer;line-height:1.2}
.ec-cal-today:hover,.ec-cal-today:focus-visible{border-color:var(--ec-primary)}
.ec-cal-today.is-current{color:var(--ec-muted)}
.ec-cal-cell.is-range .ec-cal-num{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;font-weight:700}
.ec-range-green .ec-cal-num{background:var(--ec-green-bg);color:var(--ec-green)}
.ec-range-teal .ec-cal-num{background:var(--ec-teal-bg);color:var(--ec-teal)}
.ec-range-pink .ec-cal-num{background:var(--ec-pink-bg);color:var(--ec-pink)}
.ec-range-sky .ec-cal-num{background:var(--ec-sky-bg);color:var(--ec-sky)}
.ec-range-orange .ec-cal-num{background:var(--ec-orange-bg);color:var(--ec-orange)}
.ec-range-primary .ec-cal-num{background:var(--ec-soft);color:var(--ec-primary)}
.ec-range-blue .ec-cal-num{background:var(--ec-blue-bg);color:var(--ec-blue)}
.ec-range-red .ec-cal-num{background:var(--ec-red-bg);color:var(--ec-red)}
.ec-range-gray .ec-cal-num{background:var(--ec-gray-bg);color:var(--ec-gray)}
.ec-cal-cell:focus-visible{outline:2px solid var(--ec-primary);outline-offset:1px}
@media (min-width:600px){.ec-legend{grid-template-columns:repeat(4,minmax(0,1fr))}}
.ec-calendar.is-compact .ec-legend{grid-template-columns:1fr 1fr}

/* ---------- Exam detail ---------- */
.ec-archived-banner{margin:12px 0 0;padding:12px 14px;border-radius:12px;background:var(--ec-gray-bg);color:var(--ec-ink);font-size:14px;border:1px solid var(--ec-line)}
.ec-archived-banner a{color:var(--ec-primary)!important;font-weight:700}
.ec-exam-summary{margin:12px 0 0;font-size:15px;color:var(--ec-ink)}
.ec-deadline{display:inline-block;margin:12px 0 0;padding:7px 12px;border-radius:9px;font-size:13.5px;font-weight:700}
.ec-deadline-green{background:var(--ec-green-bg);color:var(--ec-green)}
.ec-deadline-gray{background:var(--ec-gray-bg);color:var(--ec-ink)}
.ec-deadline-pink{background:var(--ec-pink-bg);color:var(--ec-pink)}
.ec-elig{margin:0;display:grid;gap:0}
.ec-elig>div{display:grid;grid-template-columns:1fr;gap:4px;padding:12px 0;border-bottom:1px solid var(--ec-line)}
.ec-elig>div:last-child{border-bottom:0}
.ec-elig dt{font-weight:700;font-size:13.5px;color:var(--ec-muted)}
.ec-elig dd{margin:0}
.ec-elig dd p{margin:0 0 6px}
.ec-elig dd p:last-child{margin-bottom:0}
@media (min-width:700px){.ec-elig>div{grid-template-columns:200px 1fr;gap:16px}}
.ec-exam.is-archived .ec-exam-hero{opacity:.96}
.ec-filters.is-live .ec-filter-actions:not(:has(a:not([hidden]))){display:none}
/* 0.4.1: coloured dots (calendar legend, day panel, exam dates table). The base .ec-dot grey
   in examcalendar.css comes after the .ec-bg-* colours and overrode them; .ec-dot.ec-bg-* wins. */
.ec-dot.ec-bg-green{background:#18a75f}.ec-dot.ec-bg-teal{background:var(--ec-teal)}
.ec-dot.ec-bg-pink{background:var(--ec-pink)}.ec-dot.ec-bg-sky{background:var(--ec-sky)}
.ec-dot.ec-bg-orange{background:#f39a16}.ec-dot.ec-bg-primary{background:var(--ec-primary)}
.ec-dot.ec-bg-blue{background:#3475e8}.ec-dot.ec-bg-red{background:#df3044}
.ec-dot.ec-bg-gray{background:#8a90a3}

/* ---------- 0.5.0 Stage 4: authorities, qualification tags, B5, B7 ---------- */
.ec-exam-authority a{color:inherit;text-decoration:underline;text-decoration-color:var(--ec-line);text-decoration-thickness:2px;text-underline-offset:3px}
.ec-exam-authority a:hover,.ec-exam-authority a:focus-visible{color:var(--ec-primary);text-decoration-color:currentColor}
.ec-authority-site{margin:-4px 0 16px;font-size:14px}
.ec-authority-site a{display:inline-flex;align-items:center;gap:5px;color:var(--ec-primary);font-weight:700}
.ec-authority-site .ec-ico{width:15px;height:15px}
.ec-qual-tags{margin:0}
.ec-archived-tracked{margin-top:6px}
@media (max-width:599px){.ec-filters select[name=ec_sort]{grid-column:1/-1}}
/* B5: the calendar day-panel heading used the theme's serif heading font. */
.ec-cal-day h4{font-family:var(--ec-font);color:var(--ec-ink);font-weight:700}
/* B7: on desktop the sticky jump bar stays over the main column only (it painted over the
   sidebar's sticky "Never miss a date" panel). 320px sidebar + 16px gap, as .ec-exam-grid. */
@media (min-width:900px){.ec-jump{margin-right:calc(320px + 16px)}}
/* Listing filters: the search box spans two columns on wide screens (placeholder no longer cut). */
@media (min-width:1000px){.ec-filter-search{grid-column:span 2}}
