:root {
  color-scheme: light;
  --page: #f7f6f3;
  --surface: #ffffff;
  --surface-muted: #eeefed;
  --ink: #202124;
  --muted: #64676d;
  --line: #d9dbd8;
  --red: #b41e1a;
  --red-dark: #851613;
  --red-soft: #f9e9e7;
  --blue: #145b8f;
  --blue-soft: #e7f1f7;
  --green: #226649;
  --green-soft: #e6f2eb;
  --amber: #875b0b;
  --amber-soft: #f7edd8;
  --content: 1120px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid #1877b9;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner,
.hub,
.footer-inner {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 52px;
}

.brand-name {
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.header-context {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.hub-shell {
  min-height: calc(100vh - 157px);
}

.hub {
  padding-top: 56px;
  padding-bottom: 46px;
}

.intro {
  display: flex;
  min-height: 190px;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 9px;
  color: var(--red-dark);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 3px;
  background: var(--red);
  content: "";
}

h1,
h2,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 64px;
  line-height: 1.04;
}

.intro-copy {
  margin: 12px 0 30px;
  color: var(--muted);
  font-size: 21px;
}

.intro-mark {
  width: 180px;
  height: 180px;
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
}

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

.portal-card {
  display: flex;
  min-height: 326px;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  padding: 30px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(25, 27, 29, 0.07);
}

.portal-card-link {
  border-top-color: var(--blue);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.portal-card-link:hover {
  border-color: #9bbcd0;
  border-top-color: var(--blue);
  box-shadow: 0 16px 34px rgba(24, 60, 82, 0.14);
  transform: translateY(-3px);
}

.portal-card-disabled {
  border-top-color: var(--red);
  background: #fbfbfa;
}

.card-topline,
.card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.icon-box {
  display: grid;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  place-items: center;
  border-radius: 8px;
}

.icon-box-red {
  color: var(--red-dark);
  background: var(--red-soft);
}

.icon-box-blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.icon-box svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pending {
  color: var(--amber);
  background: var(--amber-soft);
}

.status-ready {
  color: var(--green);
  background: var(--green-soft);
}

.card-copy {
  min-height: 118px;
}

.card-label {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.card-copy h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.14;
}

.card-copy p:last-child {
  max-width: 440px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.card-action {
  min-height: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--blue);
  font-weight: 800;
}

.card-action svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-action-muted {
  justify-content: flex-start;
  color: #707378;
  font-weight: 700;
}

.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 24px 0 0;
  color: #696c70;
  font-size: 14px;
  text-align: center;
}

.security-note svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #ecebe7;
}

.footer-inner {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #5e6165;
  font-size: 14px;
}

.footer-inner nav {
  display: flex;
  gap: 20px;
}

.footer-inner a {
  color: var(--red-dark);
  font-weight: 800;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .portal-card-link {
    transition: none;
  }
}

@media (max-width: 760px) {
  .header-inner,
  .hub,
  .footer-inner {
    width: min(var(--content), calc(100% - 28px));
  }

  .header-inner {
    min-height: 72px;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand-name {
    font-size: 21px;
  }

  .header-context {
    font-size: 13px;
  }

  .hub-shell {
    min-height: auto;
  }

  .hub {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .intro {
    min-height: 148px;
    margin-bottom: 22px;
  }

  h1 {
    font-size: 44px;
  }

  .intro-copy {
    margin-bottom: 22px;
    font-size: 18px;
  }

  .intro-mark {
    width: 118px;
    height: 118px;
  }

  .portal-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .portal-card {
    min-height: 290px;
    padding: 24px;
  }

  .card-copy h2 {
    font-size: 29px;
  }

  .footer-inner {
    min-height: 88px;
  }
}

@media (max-width: 460px) {
  body {
    font-size: 17px;
  }

  .header-context,
  .intro-mark {
    display: none;
  }

  .intro {
    min-height: 136px;
  }

  h1 {
    font-size: 38px;
  }

  .portal-card {
    min-height: 302px;
    gap: 22px;
    padding: 22px;
  }

  .icon-box {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .status {
    white-space: normal;
    text-align: center;
  }

  .card-action {
    align-items: flex-start;
  }

  .security-note {
    align-items: flex-start;
    text-align: left;
  }

  .footer-inner {
    display: grid;
    gap: 9px;
    padding-top: 18px;
    padding-bottom: 18px;
  }
}
