/*
 * System decommission notice: persistent banner + one-time post-login modal.
 *
 * Sizing: the host layouts set different root font sizes (Bootstrap 3 sets
 * html to 10px, Foundation to 100%), so rem is unreliable here. Each
 * component resets to `font-size: medium` (the user agent's default size,
 * including any larger default the user has chosen), and everything inside
 * is sized in em, scaled with the viewport via clamp(). The fixed values
 * before each clamp() are fallbacks for user agents without clamp().
 */

.decommission-banner {
  position: relative;
  z-index: 1000;
  width: 100%;
  background: #fff3cd;
  border-bottom: 1px solid #e0b84a;
  color: #5c4500;
  font-size: medium;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%; }

.decommission-banner__inner {
  max-width: 75em;
  margin: 0 auto;
  padding: 0.6em 1em;
  /* ~14px on phones, ~17px on wide screens at the default 16px */
  font-size: 0.9375em;
  font-size: clamp(0.875em, 0.8em + 0.35vw, 1.0625em);
  line-height: 1.5;
  text-align: center; }

.decommission-banner a,
.decommission-modal__body a {
  color: inherit;
  font-weight: bold;
  text-decoration: underline;
  word-break: break-word; }

.decommission-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1em;
  background: rgba(0, 0, 0, 0.55);
  font-size: medium;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%; }

.decommission-modal__dialog {
  width: 100%;
  max-width: 36em;
  max-height: 100%;
  overflow-y: auto;
  padding: 1.5em;
  background: #fff;
  border-top: 4px solid #d39e00;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  color: #222;
  /* ~16px on phones, ~18px on wide screens at the default 16px */
  font-size: 1em;
  font-size: clamp(1em, 0.95em + 0.2vw, 1.125em);
  line-height: 1.55; }

.decommission-modal__title {
  margin: 0 0 0.75em;
  font-family: inherit;
  font-size: 1.3em;
  font-size: clamp(1.2em, 1.1em + 0.5vw, 1.4em);
  font-weight: bold;
  line-height: 1.3;
  color: #222; }

.decommission-modal__body p {
  margin: 0 0 0.75em;
  font-size: 1em;
  line-height: inherit; }

.decommission-modal__remaining {
  color: #5c4500;
  font-weight: bold; }

.decommission-modal__actions {
  margin-top: 1em;
  text-align: right; }

.decommission-modal__actions .button {
  min-height: 44px;
  margin: 0;
  padding: 0.6em 1.25em;
  border: 0;
  border-radius: 3px;
  background: #1765a3;
  color: #fff;
  font-family: inherit;
  font-size: 1em;
  line-height: 1.2;
  cursor: pointer; }

.decommission-modal__actions .button:focus {
  outline: 3px solid #f0b400;
  outline-offset: 2px; }

@media (max-width: 40em) {
  .decommission-modal__dialog {
    padding: 1.25em; }

  .decommission-modal__actions .button {
    width: 100%; } }

@media print {
  .decommission-banner,
  .decommission-modal {
    display: none !important; } }
