/* NDED Multiplication Chart page. Shares the hero / content-card look of the newer
   practice pages (see word-problems.css). */
.mc-page { gap: 1.5rem; min-width: 0; }

.mc-tool { width: 100%; max-width: 940px; margin: 0 auto; }
.mc-stage {
  padding: 20px 22px 22px; background: #fff; border: 1px solid #e1e8f1; border-radius: 18px;
  box-shadow: 0 16px 38px rgba(34, 50, 78, .09);
}
.mc-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-bottom: 14px; }
.mc-sizes { display: inline-flex; gap: .35rem; }
.mc-chip {
  height: 36px; padding: 0 .85rem; border: 1px solid #b7c9e2; border-radius: 999px; background: #fff;
  color: #3d638f; font-family: inherit; font-size: .9rem; font-weight: 800; cursor: pointer;
}
.mc-chip[aria-pressed="true"] { background: #3f73c9; border-color: #3f73c9; color: #fff; }
.mc-readout {
  min-height: 40px; padding: 6px 14px; border-radius: 12px; background: #fff7e9; border: 1px solid #efd8ad;
  color: #654b24; font-size: 1.1rem; font-weight: 800; display: flex; align-items: center;
}
.mc-readout b { color: #c2410c; font-size: 1.25rem; margin-left: .25em; }

.mc-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mc-table {
  width: 100%; min-width: 320px; border-collapse: separate; border-spacing: 3px; table-layout: fixed;
  font-variant-numeric: tabular-nums; outline: none;
}
.mc-table th, .mc-table td {
  height: 40px; padding: 0; border-radius: 8px; text-align: center; font-weight: 700; font-size: .98rem;
  color: #2d4d79; background: #f3f6fb; transition: background .12s, color .12s;
}
.mc-table th { background: #dfe9f8; color: #2f5596; font-weight: 900; }
.mc-table th.corner { background: #3f73c9; color: #fff; font-size: 1.05rem; }
.mc-table td { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mc-table td.sq { background: #eaf6ee; }
.mc-table td.in-row, .mc-table td.in-col { background: #fff1d6; color: #7a4f00; }
.mc-table th.on { background: #f2b544; color: #fff; }
.mc-table td.on { background: #F4845F; color: #fff; font-weight: 900; }
.mc-table td.kb { box-shadow: inset 0 0 0 3px #2c3e50; }
.mc-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 12px 0 0; color: #5b6b80; font-size: .86rem; }
.mc-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.mc-legend .l-sq::before { background: #eaf6ee; border: 1px solid #b9dcc5; }
.mc-legend .l-hl::before { background: #fff1d6; border: 1px solid #efd8ad; }

/* Printable options */
.mc-print { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: #f7faff; border: 1px solid #dbe6f4; }
.mc-print h2 { margin: 0 0 10px; color: #2d4d79; font-size: 1.1rem; }
.mc-print-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.1rem; }
.mc-print label { color: #3b4f69; font-size: .92rem; font-weight: 700; }
.mc-print select { height: 38px; margin-left: .35rem; padding: 0 .5rem; border: 1px solid #b7c9e2; border-radius: 10px; font: inherit; color: #2d4d79; background: #fff; }
.mc-btn {
  min-height: 42px; padding: 0 16px; border: 0; border-radius: 11px; background: #3f73c9; color: #fff;
  font-family: inherit; font-size: .95rem; font-weight: 800; cursor: pointer; box-shadow: 0 6px 14px rgba(63, 115, 201, .18);
}
.mc-btn:hover { background: #2d5fae; }
.mc-print p { margin: 8px 0 0; color: #64748b; font-size: .84rem; }

@media (max-width: 700px) {
  .mc-stage { padding: 14px 10px 16px; }
  .mc-table { border-spacing: 2px; }
  .mc-table th, .mc-table td { height: 30px; font-size: .78rem; border-radius: 6px; }
  .mc-readout { font-size: .98rem; width: 100%; justify-content: center; }
}
@media print {
  header, footer, .left-sidebar, .right-sidebar, .mc-toolbar, .mc-print, .wp-content, .continue-learning, .nded-classroom-share, .wp-hero p { display: none !important; }
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
