/* MeetingCalendar.aspx polish. Scoped to .mc-page so nothing else on the site is affected.
   Revert: restore files from _backup/2026-10-30-pre-calendar-redesign and remove the link to this file. */
.mc-page {
    --mc-radius: 16px;
    --mc-shadow: 0 1px 2px rgba(17,59,40,.06), 0 10px 28px rgba(17,59,40,.07);
    --mc-line: #dbe5e0;
    --mc-upcoming: #e3f3ea; --mc-upcoming-edge: #2f7d57; --mc-upcoming-text: #0f3a26;
    --mc-past: #eef0f2; --mc-past-edge: #9aa5b1; --mc-past-text: #3b4654;
    --mc-changed: #fdeceb; --mc-changed-edge: #c0392b; --mc-changed-text: #7a1f16;
    max-width: 1280px; margin: 0 auto; padding: 8px 16px 56px; color: var(--text, #1a2535);
}
.mc-page * { box-sizing: border-box; }

/* ---------- Intro ---------- */
.mc-intro { margin: 0 0 22px; }
.mc-intro h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 28px); font-weight: 800; color: var(--green-dark, #113b28); letter-spacing: -.01em; }
.mc-intro p { margin: 0; font-size: 17px; line-height: 1.55; color: #3a4a5c; max-width: 68ch; }

/* ---------- Cards ---------- */
.mc-card { background: #fff; border: 1px solid var(--mc-line); border-radius: var(--mc-radius); box-shadow: var(--mc-shadow); margin: 0 0 22px; }
.mc-card-body { padding: 22px 26px; }
.mc-card-title { margin: 0 0 14px; font-size: 18px; font-weight: 800; color: var(--green-dark, #113b28); display: flex; align-items: center; gap: 10px; }
.mc-card-title i { color: var(--green, #266447); }
.mc-card-title small { font-weight: 600; font-size: 14px; color: #5b6b7c; }

/* ---------- Coming up ---------- */
.mc-next-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.mc-next-item a { display: flex; gap: 14px; align-items: stretch; height: 100%; padding: 14px; border: 1px solid var(--mc-line); border-radius: 14px; background: #fbfdfc; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.mc-next-item a:hover, .mc-next-item a:focus-visible { border-color: var(--green, #266447); box-shadow: 0 0 0 3px rgba(38,100,71,.15); transform: translateY(-1px); text-decoration: none; }
.mc-date { flex: none; width: 58px; border-radius: 12px; background: var(--green-dark, #113b28); color: #fff; text-align: center; padding: 8px 4px; align-self: flex-start; }
.mc-date .mo { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #f3dc8f; }
.mc-date .dy { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; }
.mc-next-info { min-width: 0; }
.mc-next-info strong { display: block; font-size: 16px; line-height: 1.3; color: var(--green-dark, #113b28); margin-bottom: 4px; }
.mc-next-info span { display: block; font-size: 14px; color: #4a5a6b; line-height: 1.45; }
.mc-next-info .go { margin-top: 6px; font-weight: 700; color: var(--green, #266447); font-size: 14px; }
.mc-empty, .mc-loading { margin: 0; padding: 14px 16px; border-radius: 12px; background: #f6f8f7; color: #4a5a6b; font-size: 15px; }

/* ---------- Find & filter ---------- */
.mc-tools { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px 28px; align-items: end; }
.mc-field label { display: block; margin: 0 0 6px; font-weight: 700; font-size: 15px; color: var(--green-dark, #113b28); }
.mc-field .mc-hint { display: block; margin: 5px 0 0; font-size: 13px; color: #5b6b7c; }
.mc-field select, .mc-field input[type=text] { width: 100%; height: 48px; padding: 0 14px; font-size: 16px; border: 2px solid #c9d6cf; border-radius: 12px; background: #fff; color: var(--text, #1a2535); }
.mc-field select:focus, .mc-field input[type=text]:focus { outline: none; border-color: var(--green, #266447); box-shadow: 0 0 0 4px rgba(38,100,71,.18); }
.mc-search-row { display: flex; gap: 10px; }
.mc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 12px; border: 2px solid var(--green, #266447); background: var(--green, #266447); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.mc-btn:hover, .mc-btn:focus-visible { background: var(--green-dark, #113b28); border-color: var(--green-dark, #113b28); color: #fff; text-decoration: none; }
.mc-btn.outline { background: #fff; color: var(--green-dark, #113b28); }
.mc-btn.outline:hover, .mc-btn.outline:focus-visible { background: #f1f8f4; color: var(--green-dark, #113b28); border-color: var(--green, #266447); }
.mc-btn.small { height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- Legend ---------- */
.mc-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 14px; color: #3a4a5c; }
.mc-legend li { display: inline-flex; align-items: center; gap: 8px; }
.mc-legend i { width: 14px; height: 14px; border-radius: 4px; border-left: 4px solid; display: inline-block; }
.mc-legend .up { background: var(--mc-upcoming); border-color: var(--mc-upcoming-edge); }
.mc-legend .pa { background: var(--mc-past); border-color: var(--mc-past-edge); }
.mc-legend .ch { background: var(--mc-changed); border-color: var(--mc-changed-edge); }
.mc-tip { margin: 12px 0 0; font-size: 14px; color: #5b6b7c; }

/* ---------- FullCalendar polish ---------- */
.mc-page .fc { --fc-border-color: #dfe7e2; --fc-today-bg-color: #fff8dc; --fc-button-bg-color: var(--green, #266447); --fc-button-border-color: var(--green, #266447); --fc-button-hover-bg-color: var(--green-dark, #113b28); --fc-button-hover-border-color: var(--green-dark, #113b28); --fc-button-active-bg-color: var(--green-dark, #113b28); --fc-button-active-border-color: var(--green-dark, #113b28); --fc-list-event-hover-bg-color: #f1f8f4; font-size: 15px; }
.mc-page .fc .fc-toolbar { gap: 10px; flex-wrap: wrap; margin-bottom: 14px !important; }
.mc-page .fc .fc-toolbar-title { font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; color: var(--green-dark, #113b28); }
.mc-page .fc .fc-button { border-radius: 10px; font-weight: 700; font-size: 14px; padding: 8px 14px; text-transform: none; }
.mc-page .fc .fc-button-group > .fc-button { border-radius: 0; }
.mc-page .fc .fc-button-group > .fc-button:first-child { border-radius: 10px 0 0 10px; }
.mc-page .fc .fc-button-group > .fc-button:last-child { border-radius: 0 10px 10px 0; }
.mc-page .fc .fc-button:focus { box-shadow: 0 0 0 4px rgba(38,100,71,.25) !important; }
.mc-page .fc .fc-scrollgrid { border-radius: 12px; overflow: hidden; border-color: #dfe7e2; }
.mc-page .fc .fc-col-header-cell { background: var(--sand, #f8f7f2); }
.mc-page .fc .fc-col-header-cell-cushion { padding: 10px 4px; font-weight: 700; color: var(--green-dark, #113b28); text-decoration: none; }
.mc-page .fc .fc-daygrid-day-number { padding: 6px 8px; font-weight: 600; color: #3a4a5c; text-decoration: none; }
.mc-page .fc .fc-day-today .fc-daygrid-day-number { background: var(--green-dark, #113b28); color: #fff; border-radius: 999px; margin: 4px; padding: 2px 9px; }
.mc-page .fc .fc-daygrid-day-frame { min-height: 96px; }
.mc-page .fc .fc-daygrid-more-link { font-weight: 700; color: var(--green, #266447); }

/* Events: colour is chosen in JS by status so the legend always matches */
.mc-page .fc .fc-event { border: 0; border-left: 4px solid; border-radius: 6px; padding: 2px 4px; margin: 1px 3px; font-size: 13px; line-height: 1.3; cursor: pointer; }
.mc-page .fc .fc-event .fc-event-main, .mc-page .fc .fc-event .fc-event-title, .mc-page .fc .fc-event .fc-event-time { color: inherit; }
.mc-page .fc .fc-event-title { font-weight: 600; white-space: normal; }
.mc-page .fc .fc-daygrid-dot-event { background: transparent; }
.mc-page .fc .mc-ev-upcoming { background: var(--mc-upcoming) !important; border-color: var(--mc-upcoming-edge) !important; color: var(--mc-upcoming-text) !important; }
.mc-page .fc .mc-ev-past { background: var(--mc-past) !important; border-color: var(--mc-past-edge) !important; color: var(--mc-past-text) !important; }
.mc-page .fc .mc-ev-changed { background: var(--mc-changed) !important; border-color: var(--mc-changed-edge) !important; color: var(--mc-changed-text) !important; }
.mc-page .fc .mc-ev-changed .fc-event-title { text-decoration: none; }
.mc-page .fc .fc-event:hover, .mc-page .fc .fc-event:focus-visible { filter: brightness(.96); box-shadow: 0 0 0 2px rgba(38,100,71,.35); }
.mc-page .fc .fc-list-event td { padding: 12px 14px; }
.mc-page .fc .fc-list-day-cushion { background: var(--sand, #f8f7f2) !important; font-weight: 800; color: var(--green-dark, #113b28); }
.mc-page .fc .fc-list-event-dot { border-color: var(--mc-upcoming-edge); }
.mc-page .fc .fc-list-event.mc-ev-past .fc-list-event-dot { border-color: var(--mc-past-edge); }
.mc-page .fc .fc-list-event.mc-ev-changed .fc-list-event-dot { border-color: var(--mc-changed-edge); }
.mc-page .fc .fc-list-event.mc-ev-upcoming, .mc-page .fc .fc-list-event.mc-ev-past, .mc-page .fc .fc-list-event.mc-ev-changed { background: transparent !important; border-left: 0; }
.mc-page .fc .fc-list-event-title a { font-weight: 700; color: var(--green-dark, #113b28); }
.mc-page .fc .fc-list-empty { padding: 36px 16px; font-size: 16px; color: #4a5a6b; }

/* ---------- Help cards ---------- */
.mc-help { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 0 0 22px; }
.mc-help .mc-card { margin: 0; }
.mc-help h3 { margin: 0 0 8px; font-size: 17px; font-weight: 800; color: var(--green-dark, #113b28); display: flex; gap: 10px; align-items: center; }
.mc-help h3 i { color: var(--green, #266447); }
.mc-help p { margin: 0 0 12px; font-size: 15px; line-height: 1.55; color: #3a4a5c; }
.mc-btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mc-copy-msg { margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--green, #266447); min-height: 20px; }

/* ---------- Legal ---------- */
.mc-legal { padding: 16px 20px; border: 1px solid #ecd9a2; border-left: 5px solid var(--gold, #946F00); border-radius: 12px; background: #fffaf0; font-size: 14px; line-height: 1.6; color: #3a4a5c; }
.mc-legal strong { color: var(--green-dark, #113b28); }

@media (max-width: 767px) {
    .mc-page { padding: 4px 12px 40px; }
    .mc-card-body { padding: 18px 16px; }
    .mc-tools { grid-template-columns: 1fr; }
    .mc-search-row { flex-direction: column; }
    .mc-search-row .mc-btn { width: 100%; }
}
/* Phone toolbar: [Prev][Next] / Month title / [Today]. Buttons share the row so nothing runs off screen. */
@media (max-width: 768px) {
    .mc-page .fc { min-width: 0; max-width: 100%; }
    .mc-page .fc .fc-toolbar { flex-direction: column; align-items: stretch; text-align: center; }
    .mc-page .fc .fc-toolbar-chunk { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; min-width: 0; }
    .mc-page .fc .fc-toolbar-chunk > .fc-button-group { display: flex; flex: 1 1 auto; max-width: 100%; }
    .mc-page .fc .fc-toolbar-chunk .fc-button { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 10px 12px; white-space: nowrap; }
    .mc-page .fc .fc-toolbar-chunk .fc-button-group > .fc-button { margin: 0; }
    .mc-page .fc .fc-toolbar-title { font-size: 20px; line-height: 1.3; }
    .mc-page .fc .fc-list-event td { padding: 10px; }
    .mc-page .fc .fc-list-event-title { white-space: normal; overflow-wrap: anywhere; }
    .mc-page .fc .fc-list-day-cushion { white-space: normal; }
    .mc-jump select { flex: 1 1 120px; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .mc-next-item a { transition: none; } .mc-next-item a:hover { transform: none; } }

/* ---------- Jump to month/year ---------- */
.mc-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 14px; }
.mc-jump label { margin: 0; font-weight: 700; font-size: 15px; color: var(--green-dark, #113b28); }
.mc-jump select { height: 40px; padding: 0 10px; font-size: 15px; border: 2px solid #c9d6cf; border-radius: 10px; background: #fff; color: var(--text, #1a2535); }
.mc-jump select:focus { outline: none; border-color: var(--green, #266447); box-shadow: 0 0 0 4px rgba(38,100,71,.18); }

/* Legal notice link: dark green on cream (about 10:1), underlined so it never relies on color alone */
.mc-page .mc-legal a, .mc-page .mc-legal a:link, .mc-page .mc-legal a:visited { color: var(--green-dark, #113b28) !important; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.mc-page .mc-legal a:hover, .mc-page .mc-legal a:focus-visible { color: #000 !important; text-decoration-thickness: 2px; }
