/*
 * RMA portal pages (/rma/*): Bootstrap 3 (site header/footer) and Tailwind (portal) share one page.
 * Until 2026-11 the portal ran inside an iframe that kept the two apart.
 *
 * Load order: bootstrap.noprint.min.css -> modern-business.css -> tailwind.css -> this file.
 *
 * Tailwind utilities are scoped to .rma-portal (tailwind.config.js `important: '.rma-portal'`),
 * which makes them specificity (0,2,0) and lets them beat Bootstrap's element and :hover rules.
 * The resets below use :where(.rma-portal) so they stay at (0,1,1) or lower: high enough to
 * beat Bootstrap's base rules (loaded earlier), low enough to lose to any Tailwind utility.
 */

/* Bootstrap sets html{font-size:10px}. Tailwind sizes are in rem and assume 16px, so without this
   the whole portal renders at 62.5%. The Bootstrap header/footer use px, so they don't change. */
html {
  font-size: 16px;
}

/* Bootstrap's body font (Helvetica 14px, line-height 1.43, #333) would be inherited by the portal.
   Restore what the portal had inside the iframe: Tailwind's base font, 16px, line-height 1.5. */
.rma-portal {
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 1rem;
  line-height: 1.5;
  color: #000;
}

/* Bootstrap: label{display:inline-block; max-width:100%; margin-bottom:5px; font-weight:700} */
:where(.rma-portal) label {
  display: inline;
  max-width: none;
  margin-bottom: 0;
  font-weight: inherit;
}

/* Bootstrap: h1-h6{line-height:1.1; font-weight:500} (Tailwind's base doesn't reset line-height) */
:where(.rma-portal) :is(h1, h2, h3, h4, h5, h6) {
  line-height: inherit;
}

/* Bootstrap: a:hover/a:focus{color:#23527c; text-decoration:underline; outline:...} */
:where(.rma-portal) a:is(:hover, :focus) {
  color: inherit;
  text-decoration: inherit;
}
:where(.rma-portal) a:focus {
  outline: revert;
  outline-offset: revert;
}

/* Bootstrap: input[type=checkbox|radio]{margin:4px 0 0; line-height:normal} */
:where(.rma-portal) input:is([type="checkbox"], [type="radio"]) {
  margin: 0;
}

/* Bootstrap: dt/dd{line-height:1.43}, dt{font-weight:700} */
:where(.rma-portal) :is(dt, dd) {
  line-height: inherit;
}
:where(.rma-portal) dt {
  font-weight: inherit;
}

/* Tailwind's base styles (preflight) are global and also reach the Bootstrap header/footer.
   Put back what Bootstrap gives them on every other page. */

/* Preflight sets body{line-height:inherit}, which picks up Tailwind's html line-height (1.5)
   instead of Bootstrap's 1.42857143. That made every footer line 21px instead of 20px. */
body {
  line-height: 1.42857143;
}
.navbar img {
  display: inline;
  max-width: none;
}
footer a {
  color: #337ab7;
  text-decoration: none; /* the visible underline comes from .footermenu li */
}
footer a:hover,
footer a:focus {
  color: #23527c;
  text-decoration: underline;
}
/* Bullets/padding come from .footermenu (custom rules at the end of css/bootstrap.min.css);
   only Bootstrap's ul margin needs restoring. */
footer ul {
  margin: 0 0 10px;
}
footer p {
  margin: 0 0 10px;
}

/* Printing: the portal was printed from inside the iframe, so printouts had no site header/footer.
   (The Bootstrap print reset that would hide .navbar is stripped from bootstrap.noprint.min.css.) */
@media print {
  body {
    padding-top: 0;
  }
  .navbar,
  footer {
    display: none !important;
  }
}
