/* Content styles: tables and layouts used inside question text, model answers and the
   key learning points. Shared by every screen. Owned by the paper author, not the shell. */

.c p { margin: 0 0 11px; }
.c p:last-child { margin-bottom: 0; }
.c ul, .c ol { margin: 0 0 11px; padding-left: 26px; }
.c li { margin: 0 0 4px; }
.c h3 { font-size: 15px; font-weight: 700; margin: 20px 0 8px; color: #161f26; }
.c h4 { font-size: 14px; font-weight: 700; margin: 16px 0 6px; color: #161f26; }
.c .marks { font-weight: 700; white-space: nowrap; }
.c .small { font-size: 13px; }

/* Bordered data table, as used in Rogo question text */
.c table { border-collapse: collapse; margin: 10px 0 16px; font-size: inherit; }
/* Cells size to their longest word and never split a word; wide tables scroll in .scroll */
.c table th, .c table td { overflow-wrap: break-word; word-break: normal; }
.c table.grid td:first-child, .c table.grid th:first-child { min-width: 132px; }
.c table.grid th.n { white-space: normal; min-width: 62px; }
.c table.grid th, .c table.grid td {
  border: 1px solid #c4c4c4; padding: 6px 10px; text-align: left; vertical-align: top;
}
.c table.grid th { font-weight: 700; background: #f2f1f6; }
.c table.grid td.n, .c table.grid th.n { text-align: right; font-variant-numeric: tabular-nums; }
.c table.grid td.n { white-space: nowrap; }
.c table.grid tr.tot td { font-weight: 700; }
.c table.grid tr.shade td { background: #f2f1f6; }
.c table.grid td.c, .c table.grid th.c { text-align: center; }
/* Key and value table: label column in bold, no header row */
.c table.kv td:first-child { font-weight: 700; background: #f2f1f6; white-space: nowrap; }

/* Financial statement: no vertical rules, underlined subtotals */
.c table.fs { min-width: 62%; }
.c table.fs th, .c table.fs td { padding: 4px 10px; vertical-align: bottom; text-align: left; }
.c table.fs th { font-weight: 700; border-bottom: 1px solid #161f26; }
.c table.fs .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.c table.fs tr.h td { font-weight: 700; padding-top: 12px; }
.c table.fs tr.sub td.n { border-top: 1px solid #161f26; }
.c table.fs tr.tot td { font-weight: 700; }
.c table.fs tr.tot td.n { border-top: 1px solid #161f26; border-bottom: 3px double #161f26; }
.c table.fs td.i { padding-left: 28px; }
.c table.fs td.w { color: #5a4999; font-size: 13px; white-space: nowrap; }

/* T-account: debit side | credit side */
.c table.t { min-width: 440px; }
.c table.t caption { caption-side: top; font-weight: 700; text-align: center; padding: 0 0 4px; border-bottom: 2px solid #161f26; }
.c table.t td { padding: 4px 10px; vertical-align: top; }
.c table.t td.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.c table.t td.mid { border-right: 2px solid #161f26; }
.c table.t tr.tot td.n { border-top: 1px solid #161f26; border-bottom: 3px double #161f26; font-weight: 700; }

/* Journal */
.c table.j td.n, .c table.j th.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Wide tables scroll inside their own box on small screens */
.c .scroll { overflow-x: auto; margin: 10px 0 16px; }
.c .scroll > table { margin: 0; }

.c .key { background: #f2f1f6; padding: 10px 14px; margin: 0 0 14px; }
.c .key p:last-child { margin-bottom: 0; }
