/* The exam timetable pages, /exam-timetable and /exam-timetable/<course>. Everything
   else on them comes from the resource hub shell and qp-subject-page.css; the colours
   here are that family's own values (see .qp-subj in qp-subject-page.css). */

.mn-tt-course { scroll-margin-top: 80px; }
.mn-tt { scroll-margin-top: 80px; }

.mn-tt .panel-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.mn-tt-when { font-size: 14px; font-weight: 600; color: #1d50ca; }
.mn-tt.is-done .mn-tt-when { color: #5a718c; }

.mn-tt-notice + .mn-tt-notice { margin-top: 8px; }
.mn-tt-chips { margin: 14px 0 4px; }
.mn-tt-pattern-group summary span { margin-left: 8px; font-size: 13px; font-weight: 500; color: #5a718c; }
.mn-tt-group-foot { padding: 0 14px 14px; }
.mn-tt-group > .mn-tt-table th:first-child, .mn-tt-group > .mn-tt-table td:first-child { padding-left: 14px; }
.mn-tt-pattern { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: #0d1526; }
.mn-tt-pattern span { display: inline-block; margin-left: 8px; font-size: 13px; font-weight: 500; color: #5a718c; }

.mn-tt-table { width: 100%; border-collapse: collapse; font-size: 15px; color: #2c3e5c; }
.mn-tt-table th { padding: 8px 10px; font-size: 12px; font-weight: 600; text-align: left; color: #5a718c; background: #f1f5fc; border-bottom: 1px solid #dce6f5; }
.mn-tt-table td { padding: 10px; vertical-align: top; border-bottom: 1px solid #e8effa; }
.mn-tt-date { width: 150px; font-weight: 600; color: #0b1d4e; white-space: nowrap; }
.mn-tt-code { width: 72px; color: #5a718c; font-size: 13px; }
.mn-tt-table tr.is-past td { color: #9aafc5; }

.mn-tt-note { margin: 10px 0 0; padding: 8px 12px; font-size: 14px; color: #2c3e5c; background: #f9fbfe; border-left: 3px solid #c7d9fc; }
.mn-tt-source, .mn-tt-study { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: #1d50ca; text-decoration: none; }
.mn-tt-source:hover, .mn-tt-study:hover { text-decoration: underline; }
.mn-tt-study { display: block; margin-top: 18px; padding-top: 14px; border-top: 1px solid #e5edf8; }

.mn-tt-group { border: 1px solid #dce6f5; border-radius: 8px; margin-bottom: 8px; background: #fff; }
.mn-tt-group summary { padding: 12px 14px; font-size: 15px; font-weight: 600; color: #0b1d4e; cursor: pointer; }
.mn-tt-group[open] summary { border-bottom: 1px solid #e5edf8; }
.mn-tt-group .mn-tt-table { margin: 0; }
.mn-tt-group .mn-tt-study { margin: 0; padding: 12px 14px; border-top: 0; }

/* One University notice per row: the list-level pages, latest notices, circulars, earlier notices. */
.mn-tt-list { list-style: none; margin: 0; padding: 0; }
.mn-tt-list li + li { border-top: 1px solid #e8effa; }
.mn-tt-list a { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; padding: 12px 16px; text-decoration: none; }
.mn-tt-list-name { min-width: 0; font-size: 15px; font-weight: 600; color: #0b1d4e; overflow-wrap: anywhere; }
.mn-tt-list-date { font-size: 13px; color: #5a718c; white-space: nowrap; }
.mn-tt-list a:hover .mn-tt-list-name { color: #1d50ca; }
.mn-tt.is-done .mn-tt-list-name { color: #2c3e5c; font-weight: 500; }
.mn-tt-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; font-size: 11px; font-weight: 600; line-height: 18px; color: #8a4b00; background: #fff4e0; border: 1px solid #f5d9a8; border-radius: 9px; vertical-align: 1px; }
.mn-tt-when.is-list { font-weight: 500; color: #5a718c; }
.mn-tt-more { margin: 16px 0 0; padding: 0 0 8px; }
.mn-tt .panel-body .mn-tt-more + .mn-tt-list { margin: 0 -16px -16px; border-top: 1px solid #e8effa; }

/* A full table the University has since revised: the old dates come off, this line stays. */
.mn-tt-revised { padding: 12px 14px; font-size: 14px; line-height: 1.55; color: #5c3600; background: #fff8ec; border: 1px solid #f5d9a8; border-left: 4px solid #e39b2d; border-radius: 8px; }
.mn-tt-revised p { margin: 0; }
.mn-tt-revised .mn-tt-source { margin-top: 8px; color: #8a4b00; }

.mn-tt-foot { margin: 0; font-size: 14px; line-height: 1.6; color: #2c3e5c; }
.mn-tt-foot a { color: #1d50ca; }

@media (max-width: 640px) {
    .mn-tt-table thead { display: none; }
    .mn-tt-table, .mn-tt-table tbody, .mn-tt-table tr, .mn-tt-table td { display: block; width: auto; }
    .mn-tt-table tr { padding: 10px 0; border-bottom: 1px solid #e8effa; }
    .mn-tt-table td { padding: 1px 2px; border: 0; }
    .mn-tt-date { white-space: normal; }
    .mn-tt-code { font-size: 12px; }
    .mn-tt-code::before { content: "Paper code "; }
    .mn-tt-group .mn-tt-table { padding: 0 12px; }
    .mn-tt-group > .mn-tt-table td:first-child { padding-left: 2px; }
}
