/* Times Tables: shared by the student and teacher pages (after style.css). */
a { color: inherit; }
.top h1 a { text-decoration: none; }
.tag.good { color: var(--good); }
.banner { border: 1.5px solid var(--answer); background: var(--answer-wash); border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; font-weight: var(--w-semi); }
.note { border-left: 4px solid var(--accent); padding: 6px 10px; background: var(--hover); border-radius: 0 8px 8px 0; }
.small { font-size: .86rem; }
.center { text-align: center; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* The 12 x 12 heatmap. Cell colours come from shared.js and are the same in both themes. */
.heatWrap { width: 100%; max-width: 560px; }
table.heat { table-layout: fixed; width: 100%; border-collapse: separate; border-spacing: 2px; font-variant-numeric: tabular-nums; }
table.heat caption { text-align: left; font-size: .82rem; color: var(--muted); padding-bottom: 4px; }
table.heat th, table.heat td { padding: 0; border: 0; text-align: center; }
table.heat th { font-size: .72rem; color: var(--muted); font-weight: var(--w-bold); }
table.heat thead th { padding-bottom: 2px; }
table.heat .corner { color: var(--ink); }
table.heat td { position: relative; border-radius: 4px; font-size: clamp(.55rem, 2.3vw, .8rem); font-weight: var(--w-semi); cursor: pointer; line-height: 1; }
table.heat td > span { display: grid; place-items: center; aspect-ratio: 1; }
table.heat td i { position: absolute; top: 1px; right: 2px; font-style: normal; font-size: .62em; line-height: 1; }
table.heat td.unasked { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); }
table.heat td.sel { outline: 3px solid var(--ink); outline-offset: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .82rem; color: var(--muted); margin-top: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.legend .sw.wide { width: 56px; }
.legend b { color: var(--ink); }
.cellInfo { min-height: 1.4em; font-size: .9rem; margin-top: 4px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 6px 0 10px; }
.stats div { border: 1.5px solid var(--line); border-radius: 10px; padding: 6px 8px; }
.stats dt { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: var(--w-bold); }
.stats dd { margin: 0; font-size: 1.35rem; font-weight: var(--w-bold); }
.stats dd small { font-size: .7em; color: var(--muted); font-weight: var(--w-semi); }
@media (max-width: 420px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
