:root {
  --portal-blue: #2b6cb0;
  --portal-blue-bright: #3182ce;
  --portal-border: #d7dee7;
  --portal-focus: #ffbf47;
  --portal-green: #a5dda5;
  --portal-red: #c51c1c;
  --portal-slate: #333f50;
  --portal-slate-dark: #2d3748;
  --portal-text: #54595f;
  color: var(--portal-text);
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #fff;
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
}

a {
  color: var(--portal-blue);
  text-underline-offset: .1em;
  transition: all .1s linear;
}

a:hover,
a:focus,
a:active {
  color: var(--portal-blue-bright);
  text-underline-offset: .25em;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
  color: inherit;
  text-decoration: none;
}

h1 a:hover,
h1 a:focus,
h1 a:active,
h2 a:hover,
h2 a:focus,
h2 a:active,
h3 a:hover,
h3 a:focus,
h3 a:active,
h4 a:hover,
h4 a:focus,
h4 a:active,
h5 a:hover,
h5 a:focus,
h5 a:active,
h6 a:hover,
h6 a:focus,
h6 a:active {
  color: inherit;
  text-underline-offset: .1em;
}

a:focus-visible,
button:focus-visible,
video:focus-visible {
  outline: 3px solid var(--portal-focus);
  outline-offset: 3px;
}

.skip-link {
  background: #fff;
  color: var(--portal-slate-dark);
  left: 1rem;
  padding: .55rem .85rem;
  position: fixed;
  top: -5rem;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

.portal-header {
  background: #fff;
  border-bottom: 1px solid #edf0f4;
}

.portal-header-inner {
  align-items: center;
  display: flex;
  gap: clamp(1.5rem, 6vw, 6rem);
  margin: 0 auto;
  max-width: 76rem;
  min-height: 7rem;
  padding: .4rem 1.25rem;
}

.portal-brand,
.portal-brand img {
  display: block;
}

.portal-brand {
  flex: 0 0 auto;
}

.portal-brand img {
  height: 6.25rem;
  object-fit: contain;
  width: 6.25rem;
}

.portal-nav {
  margin-inline-start: auto;
}

.portal-nav-list,
.portal-subnav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.portal-nav-list {
  align-items: stretch;
  background: var(--portal-slate);
  display: flex;
  flex-wrap: wrap;
}

.portal-nav-list > li {
  align-items: stretch;
  display: flex;
}

.portal-nav-list a,
.portal-logout button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 600;
  min-height: 3.5rem;
  padding: .8rem 1.15rem;
  text-decoration: none;
}

.portal-nav-list a:hover,
.portal-nav-list a[aria-current="page"],
.portal-logout button:hover {
  background: var(--portal-red);
  color: #fff;
}

.portal-login {
  background: var(--portal-blue) !important;
}

.portal-login:hover {
  background: var(--portal-red) !important;
}

.portal-logout {
  display: flex;
  margin: 0;
}

.portal-nav-item {
  position: relative;
}

.portal-subnav {
  background: var(--portal-slate-dark);
  display: none;
  inset-inline-start: 0;
  min-width: 14rem;
  position: absolute;
  top: 100%;
  z-index: 2;
}

.portal-subnav a {
  width: 100%;
}

.portal-nav-item:hover .portal-subnav,
.portal-nav-item:focus-within .portal-subnav {
  display: block;
}

main {
  flex: 1;
  margin: 0 auto;
  max-width: 76rem;
  padding: clamp(2rem, 5vw, 4.5rem) 1.25rem;
  width: 100%;
}

h1,
h2,
h3 {
  color: var(--portal-slate-dark);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  letter-spacing: -.035em;
  margin: .25rem 0 1rem;
}

h2 {
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  margin: 3rem 0 1rem;
}

.portal-eyebrow {
  color: var(--portal-red);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  margin: 0;
  text-transform: uppercase;
}

.portal-hero {
  background:
    radial-gradient(circle at 88% 10%, rgb(165 221 165 / 70%), transparent 31rem),
    linear-gradient(145deg, #f7fafc, #fff 70%);
  border-inline-start: .5rem solid var(--portal-green);
  padding: clamp(2rem, 7vw, 5.5rem);
}

.portal-lede {
  color: var(--portal-slate);
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  margin-bottom: 2rem;
}

.portal-choice-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-choice {
  background: var(--portal-slate);
  border: 2px solid var(--portal-slate);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  min-height: 10rem;
  padding: 1.5rem;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.portal-choice:hover {
  background: var(--portal-red);
  border-color: var(--portal-red);
  color: #fff;
  transform: translateY(-2px);
}

.portal-choice-title {
  font-size: 1.35rem;
  font-weight: 700;
}

.portal-content {
  margin: 0 auto;
  max-width: 54rem;
}

.portal-content-narrow {
  max-width: 42rem;
}

.portal-content p {
  margin: 0 0 2rem;
}

.portal-error-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.portal-primary-action {
  align-items: center;
  background: var(--portal-blue);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 700;
  padding: .7rem 1.1rem;
  text-decoration: none;
}

.portal-primary-action:hover,
.portal-primary-action:focus,
.portal-primary-action:active {
  background: var(--portal-red);
  color: #fff;
}

/* The public About and Investors pages retain their prior Kadence proportions. */
.portal-content h1,
.portal-content h2 {
  color: #1a202c;
  font-weight: 700;
  line-height: 1.5;
  margin: 1.5em 0 .5em;
}

.portal-content h1 {
  font-size: 36px;
}

.portal-content > h1:first-child {
  margin-top: 0;
}

.portal-content h2 {
  font-size: 26px;
}

.portal-wide-image {
  margin: 2.5rem 0;
}

.portal-wide-image img,
.portal-video {
  border: 1px solid var(--portal-border);
  display: block;
  height: auto;
  max-width: 100%;
  width: 100%;
}

.portal-video {
  background: #111;
  margin: 1.5rem 0 2.5rem;
}

.portal-headshot {
  float: inline-start;
  height: auto;
  margin: 0 1.5rem 1rem 0;
  max-width: 40%;
}

.portal-investor-address {
  background: #f1f5f9;
  border-inline-start: .35rem solid var(--portal-blue);
  color: var(--portal-slate-dark);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(1rem, 4vw, 1.35rem);
  overflow-wrap: anywhere;
  padding: 1rem 1.25rem;
}

.portal-footer {
  background: var(--portal-slate-dark);
  color: #fff;
  margin-top: 3rem;
  padding: 1.5rem;
  text-align: center;
}

.portal-footer p {
  margin: 0;
}

button,
a {
  min-height: 44px;
}

.roster-page label {
  display: block;
  min-height: 44px;
}

.console-table-wrap {
  overflow-x: auto;
}

.console-table {
  border-collapse: collapse;
  min-width: 64rem;
  width: 100%;
}

.console-table th,
.console-table td {
  border: 1px solid var(--portal-slate);
  padding: .5rem;
  text-align: start;
  vertical-align: top;
}

.console-controls {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.console-controls fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

@media (max-width: 63.125rem) {
  .portal-header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: .5rem;
    padding-block: .75rem 1rem;
  }

  .portal-brand img {
    height: 4.75rem;
    width: 4.75rem;
  }

  .portal-nav {
    margin: 0;
    width: 100%;
  }

  .portal-nav-list {
    width: 100%;
  }

  .portal-nav-list > li {
    flex: 1 1 auto;
  }

  .portal-nav-list a,
  .portal-logout,
  .portal-logout button {
    justify-content: center;
    width: 100%;
  }

  .portal-subnav {
    display: flex;
    flex: 1 1 100%;
    flex-wrap: wrap;
    position: static;
  }

  .portal-subnav li {
    flex: 1 1 auto;
  }

  .portal-nav-item {
    flex-wrap: wrap;
  }
}

@media (max-width: 40rem) {
  .portal-nav-list > li {
    flex: 1 1 50%;
  }

  .portal-choice-grid {
    grid-template-columns: 1fr;
  }

  .portal-hero {
    padding: 1.75rem;
  }

  .portal-headshot {
    float: none;
    margin: 0 auto 1.5rem;
    max-width: 15rem;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .portal-choice {
    transition: none;
  }
}
