/* Base element styles, layout helpers, content layout (mm-*) and buttons.
 * Only rules the pages use. Element reset and grid adapted from Bootstrap v4.5.3
 * (https://getbootstrap.com/, MIT license). Loaded first, before mm2.css and
 * site-nav.css. */

/* ── Element reset ──────────────────────────────────────────────────────── */

*,
::after,
::before {
  box-sizing: border-box;
}
html {
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: left;
  background-color: #fff;
}
h1,
h2,
h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
}
h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.75rem;
}
p {
  margin-top: 0;
  margin-bottom: 1rem;
}
ul {
  margin-top: 0;
  margin-bottom: 1rem;
}
strong {
  font-weight: bolder;
}
a {
  color: #007bff;
  text-decoration: none;
  background-color: transparent;
}
a:hover {
  color: #0056b3;
  text-decoration: underline;
}
code,
pre {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 1em;
}
code {
  font-size: 87.5%;
  color: #e83e8c;
  word-wrap: break-word;
}
pre {
  display: block;
  margin-top: 0;
  margin-bottom: 1rem;
  overflow: auto;
  font-size: 87.5%;
  color: #212529;
}
pre code {
  font-size: inherit;
  color: inherit;
  word-break: normal;
}
figure {
  margin: 0 0 1rem;
}
img {
  vertical-align: middle;
  border-style: none;
}
svg {
  overflow: hidden;
  vertical-align: middle;
}
/* Videos scale down to their container like images do; the width/height
 * attributes keep the aspect ratio. */
video {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
button {
  border-radius: 0;
}
button,
optgroup,
select {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}
button,
select {
  text-transform: none;
}
button:not(:disabled) {
  cursor: pointer;
}

/* ── Grid: container, row and the column sizes in use ───────────────────── */

.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}
.col-sm-12,
.col-md-1,
.col-md-3,
.col-md-5,
.col-md-6,
.col-md-7,
.col-md-10,
.col-md-12,
.col-lg-12 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}
/* Must come before .flex-md-row below, which overrides it from 768px. */
.flex-column-reverse {
  flex-direction: column-reverse !important;
}
@media (min-width: 576px) {
  .col-sm-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
@media (min-width: 768px) {
  .col-md-1 {
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
  }
  .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  .col-md-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .col-md-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }
  .col-md-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
  }
  .col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .flex-md-row {
    flex-direction: row !important;
  }
}
@media (min-width: 992px) {
  .col-lg-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ── Utilities ──────────────────────────────────────────────────────────── */

.text-left {
  text-align: left !important;
}
.text-center {
  text-align: center !important;
}
.bg-light {
  background-color: #f8f9fa !important;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  list-style: none;
  background-color: #e9ecef;
  border-radius: 0.25rem;
}

/* ── Content layout ──────────────────────────────────────────────────────────
 * mm-columns / mm-column: columns side by side from 782px, stacked below.
 *   Columns share the width equally (capped by col-md-* max-widths); a column
 *   with style="flex-basis:40%" keeps that width.
 * mm-stack: children stacked vertically and centred (icon above a caption).
 * mm-row:   children on one row, wrapping; add mm-justify-center to centre them
 *           and mm-nowrap to keep them on one line.
 * mm-spacer: vertical space, height set inline (style="height:40px").
 * Children of these containers have no margins; the gap spaces them. */

.mm-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
}
.mm-column {
  flex-grow: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}
@media (max-width: 781px) {
  .mm-columns > .mm-column {
    flex-basis: 100% !important;
  }
}
@media (min-width: 782px) {
  .mm-columns {
    flex-wrap: nowrap;
  }
  .mm-columns > .mm-column {
    flex-basis: 0;
  }
  .mm-columns > .mm-column[style*="flex-basis"] {
    flex-grow: 0;
  }
}
.mm-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
}
.mm-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
}
.mm-justify-center {
  justify-content: center;
}
.mm-nowrap {
  flex-wrap: nowrap;
}
.mm-columns > :is(*, div),
.mm-stack > :is(*, div),
.mm-row > :is(*, div) {
  margin: 0;
}
.mm-spacer {
  flex-shrink: 0;
}
.mm-text-medium {
  font-size: 20px;
}

/* ── Buttons ────────────────────────────────────────────────────────────────
 * The primary button of ideamerit.com: a blue pill. Put the class on the link:
 * <a class="mm-btn-primary" href="/download/">Download</a> */

a.mm-btn-primary {
  display: inline-block;
  padding: 9px 14px 7px;
  border: 0;
  border-radius: 30px;
  background: #0093bb;
  color: #fff;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
}
a.mm-btn-primary:hover,
a.mm-btn-primary:focus {
  background: #007d9f;
  color: #fff;
  text-decoration: none;
}
