/* The codes of the MM for Excel page (www.milliman-mind.com/mmforexcel), with the Milliman MPDS blue on the button. */
/* On the body: the Carbon theme zone class sets these variables there, after :root. */
body.cds-theme-zone-g90 {
  --cds-button-primary: #0078d4;
  --cds-button-primary-hover: #006bbd;
  --cds-button-primary-active: #00417d;
  --mr-link: #52b1fa;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  background: var(--cds-background);
  color: var(--cds-focus);
  padding-bottom: 56px; /* room for the fixed footer */
}

cds-header .brand-mark {
  margin-left: 16px;
  align-self: center;
}

header {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}
header div#version {
  font-size: 13px;
  padding: 5px 15px;
  border: 1px solid var(--cds-border-subtle);
  color: var(--cds-border-subtle-selected-03);
  border-radius: 30px;
  margin: 3rem auto 1rem;
  font-family: "IBM Plex Mono", monospace;
}
header div#version span#version-number {
  color: var(--cds-focus);
  font-weight: bold;
}

div#formula-wrapper {
  margin: 40px 0;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  width: 100%;
  height: 70px;
  overflow: hidden;
}
div#formula-wrapper::after {
  background: linear-gradient(90deg, rgb(38, 38, 38) 0%, rgba(38, 38, 38, 0) 35%, rgba(38, 38, 38, 0) 65%, rgb(38, 38, 38) 100%);
  content: "";
  position: absolute;
  inset: -1px 0;
}
div#formula-wrapper > div {
  font-family: "IBM Plex Mono", monospace;
  max-width: 1000px;
  height: 100%;
  margin: 0 auto;
  display: flex;
}
div#formula-wrapper > div div {
  font-size: 35px;
  padding: 12px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.6);
}
div#formula-wrapper > div div.cell { padding-right: 100px; }
div#formula-wrapper > div div.fx { font-style: italic; }
div#formula-wrapper > div div.type { white-space: nowrap; overflow: hidden; flex: 1; border-right: none; }

main {
  max-width: 1000px;
  margin: 0 auto 45px;
  padding: 0 25px;
  text-align: center;
}
main h1 {
  font-size: 2.8rem;
  margin: 0;
  font-weight: 600;
}
main h3 {
  margin-top: 10px;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--cds-border-subtle-selected-03);
}
main p, main li { color: var(--cds-border-subtle-selected-03); line-height: 1.5; }

#download { margin: 0 auto 3rem; }
#download .until { margin: 1rem 0 0.25rem; color: var(--cds-focus); }
#download .hash, code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  word-break: break-all;
}
#download .none { color: var(--cds-focus); }

.block {
  text-align: left;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}
.block h2 { font-size: 1.25rem; font-weight: 600; margin: 0 0 0.75rem; }
.block h4 { font-size: 1rem; font-weight: 600; margin: 1rem 0 0.25rem; color: var(--cds-focus); }
.block ul { padding-left: 1.25rem; margin: 0; }
.block strong { color: var(--cds-focus); }
.earlier-list li { font-family: "IBM Plex Mono", monospace; font-size: 0.9rem; }

a, a:hover, a:focus { color: var(--mr-link); cursor: pointer; }

footer {
  background: var(--cds-background);
  text-align: center;
  font-size: 0.8rem;
  color: var(--cds-border-subtle-selected-03);
  position: fixed;
  padding: 10px 20px;
  bottom: 0;
  left: 0;
  right: 0;
}

@media (max-width: 700px) {
  main h1 { font-size: 2rem; }
  div#formula-wrapper > div div { font-size: 24px; }
  div#formula-wrapper > div div.cell { padding-right: 30px; }
}

#download .ask { color: var(--cds-focus); margin-bottom: 0.75rem; }
#download form.access { display: flex; justify-content: center; gap: 1px; flex-wrap: wrap; }
#download form.access input {
  width: 340px;
  max-width: 100%;
  height: 48px;
  padding: 0 16px;
  border: none;
  border-bottom: 1px solid #8d8d8d;
  background: #393939;
  color: #f4f4f4;
  font: inherit;
}
#download form.access input:focus { outline: 2px solid var(--cds-focus); outline-offset: -2px; }
#download .access-error { color: #ff8389; margin: 0.75rem auto 0; max-width: 560px; }
#download .access-error a { color: #ff8389; }
