/* Memory map site styles. Shell, theme and colours come from lc-kit.css. */

/* The kit's body is a flex column, and a flex item will not shrink below its
   widest content: without min-width the address tables would widen the whole
   page past a phone's screen. */
.mm-main {
  width: 100%;
  max-width: 1100px;
  min-width: 0;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 1rem 1.25rem 2rem;
}

.mm-section {
  margin: 1.75rem 0;
}

.mm-section h2 {
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
}

.mm-lede,
.mm-note {
  color: var(--text-dim);
  margin: 0 0 0.75rem;
  max-width: 70ch;
}

.mm-svg {
  width: 100%;
  height: auto;
  display: block;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
}

/* Below 720px (a phone, the product page's frame) the maps run down the
   screen, drawn in the box's own pixels so the text is its real size
   (app.js addressColumn); the 1000-unit horizontal drawing shrank a 13-unit
   label to a few pixels there. */
.mm-svg-col {
  width: 100%;
  height: auto;
}
.mm-col-label {
  font-size: 13px;
  fill: var(--text);
}
.mm-leader {
  fill: none;
  stroke: var(--text-dim);
  stroke-width: 1;
}

.mm-region {
  stroke: var(--bg);
  stroke-width: 1;
}

.mm-overlay {
  fill: none;
  stroke: var(--text);
  stroke-width: 2;
  stroke-dasharray: 6 4;
}

.mm-in-label {
  font-size: 13px;
  fill: var(--text);
  pointer-events: none;
}

.mm-axis {
  stroke: var(--text-dim);
  stroke-width: 1;
}

.mm-tick,
.mm-value {
  font-size: 12px;
  fill: var(--text-dim);
}

.mm-row-label {
  font-size: 13px;
  font-family: var(--mono);
  fill: var(--text);
}

.mm-axis-title {
  font-size: 13px;
  fill: var(--text);
}

.mm-legend {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
}

.mm-legend li {
  margin: 0.2rem 0;
  overflow-wrap: anywhere;
}

/* the kit's .lc-swatch; this page's own: a hairline so the near-white
   firmware slot shows, and the gap before its name */
.mm-swatch {
  border: 1px solid var(--border);
  margin-right: 0.4em;
}

.mm-range {
  font-family: var(--mono);
  font-size: 0.85rem;
}

.mm-dim {
  color: var(--text-dim);
}

/* (the tables are the kit's .lc-table, each in an .lc-table-scroll that
   scrolls sideways on a narrow screen instead of widening the page) */
