:root {
  --bg-deep: #061226;
  --bg-mid: #0b2347;
  --text-main: rgba(255,255,255,.94);
  --text-soft: rgba(255,255,255,.76);
  --text-faint: rgba(255,255,255,.58);

  /*
   * Standard public-service logo slot.
   * Every future public website uses this same box.
   */
  --logo-slot-width: 320px;
  --logo-slot-height: 180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family:
    "Segoe UI",
    Arial,
    sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(
      circle at 50% 43%,
      var(--bg-mid) 0%,
      #081a36 32%,
      var(--bg-deep) 72%,
      #040d1d 100%
    );
}

.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 52px 68px;
  z-index: 10;
}

.identity {
  font-size: 25px;
  font-weight: 300;
  letter-spacing: .28em;
  white-space: nowrap;
}

.home-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.home-logo {
  display: block;
  width: 56px;
  height: 56px;
  max-width: 56px;
  max-height: 56px;
  flex: 0 0 56px;
  object-fit: contain;
  transform: translateX(-3px);
}

.personal {
  display: inline-flex;
  align-items: center;
  gap: 11px;

  color: var(--text-soft);
  text-decoration: none;

  font-size: 18px;
  font-weight: 300;
  letter-spacing: .06em;

  transition:
    color .18s ease,
    opacity .18s ease;
}

.personal:hover,
.personal:focus-visible {
  color: #fff;
}

.lock {
  width: 19px;
  height: 19px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.services {
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 54px;

  padding:
    140px
    70px
    110px;
}

.service {
  width: var(--logo-slot-width);
  height: var(--logo-slot-height);

  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;

  transition:
    transform .2s ease,
    opacity .2s ease;
}

.service:hover {
  transform: translateY(-3px);
}

.service-logo {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.footer-portal {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    color .18s ease,
    opacity .18s ease;
}

.footer-portal:hover,
.footer-portal:focus-visible {
  color: rgba(255,255,255,.82);
}

.footer {
  position: absolute;
  right: 46px;
  bottom: 30px;

  color: var(--text-faint);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .04em;
  white-space: nowrap;
}

@media (max-width: 700px) {
  :root {
    --logo-slot-width: 230px;
    --logo-slot-height: 140px;
  }

  .header {
    padding: 30px 24px;
  }

  .home-h-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .identity {
    font-size: 18px;
    letter-spacing: .22em;
  }

  .personal {
    gap: 7px;
    font-size: 14px;
  }

  .lock {
    width: 16px;
    height: 16px;
  }

  .services {
    flex-direction: column;
    gap: 32px;
    padding:
      110px
      24px
      90px;
  }

  .footer {
    right: 22px;
    bottom: 20px;
    font-size: 9px;
  }
}


/* =========================================================
   PERSONAL PORTAL
   ========================================================= */

.identity-link {
  color: var(--text-main);
  text-decoration: none;
}

.personal-label {
  color: var(--text-soft);
  font-size: 18px;
  font-weight: 300;
  letter-spacing: .06em;
}

.personal-services {
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 54px;

  padding:
    140px
    70px
    110px;
}

.personal-service {
  width: 190px;
  height: 150px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 18px;

  color: var(--text-main);
  text-decoration: none;

  border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px;

  background: rgba(255,255,255,.035);

  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease;
}

.personal-service:hover,
.personal-service:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.065);
}

.personal-service-mark {
  width: 58px;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255,255,255,.22);
  border-radius: 16px;

  font-size: 19px;
  font-weight: 300;
  letter-spacing: .04em;
}

.personal-service-name {
  color: var(--text-soft);

  font-size: 14px;
  font-weight: 300;
  letter-spacing: .04em;
}

@media (max-width: 700px) {
  .personal-label {
    font-size: 14px;
  }

  .personal-services {
    flex-direction: column;

    gap: 18px;

    padding:
      110px
      24px
      90px;
  }

  .personal-service {
    width: min(280px, 82vw);
    height: 112px;

    flex-direction: row;
    justify-content: flex-start;

    padding: 0 28px;
  }

  .personal-service-mark {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
  }
}


/* =========================================================
   EXTERNAL SERVICES PORTAL
   ========================================================= */

.external-page {
  min-height: 100vh;
  padding: 0 68px 80px;
}

.external-header {
  height: 130px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.external-main {
  width: min(1120px, 100%);
  margin: 18px auto 0;
}

.external-group {
  margin-bottom: 42px;
}

.external-group-title {
  margin: 0 0 18px;

  color: var(--text-faint);

  font-size: 13px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.external-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 18px;
}

.external-card {
  min-height: 118px;

  display: flex;
  align-items: center;

  gap: 18px;
  padding: 20px;

  color: var(--text-main);
  text-decoration: none;

  border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px;

  background: rgba(255,255,255,.035);

  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease;
}

.external-card:hover,
.external-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.065);
}

.external-mark {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255,255,255,.22);
  border-radius: 16px;

  color: var(--text-main);

  font-size: 17px;
  font-weight: 300;
  letter-spacing: .04em;
}

.external-info {
  min-width: 0;
}

.external-name {
  margin-bottom: 7px;

  color: var(--text-main);

  font-size: 15px;
  font-weight: 400;
  letter-spacing: .02em;
}

.external-description {
  color: var(--text-faint);

  font-size: 12px;
  font-weight: 300;
  line-height: 1.5;
}

.external-footer {
  width: min(1120px, 100%);
  margin: 10px auto 0;

  color: var(--text-faint);

  font-size: 10px;
  font-weight: 300;
  text-align: right;
  letter-spacing: .04em;
}

@media (max-width: 900px) {
  .external-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .external-page {
    padding: 0 24px 50px;
  }

  .external-header {
    height: 100px;
  }

  .external-main {
    margin-top: 10px;
  }

  .external-group {
    margin-bottom: 32px;
  }

  .external-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .external-card {
    min-height: 100px;
    padding: 18px;
  }

  .external-mark {
    width: 50px;
    height: 50px;
    flex-basis: 50px;

    border-radius: 14px;

    font-size: 15px;
  }

  .external-name {
    font-size: 14px;
  }

  .external-description {
    font-size: 11px;
  }
}


/* CP-003 external service logos */

.external-logo {
  display: block;
  width: 36px;
  height: 36px;
  max-width: 36px;
  max-height: 36px;
  object-fit: contain;
}

@media (max-width: 700px) {
  .external-logo {
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
  }
}


/* =========================================================
   CP-004 PERSONAL CHILD NAVIGATION
   ========================================================= */

.personal-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  color: var(--text-soft);
  text-decoration: none;

  font-size: 15px;
  font-weight: 300;
  letter-spacing: .05em;

  transition:
    color .18s ease,
    transform .18s ease;
}

.personal-back:hover,
.personal-back:focus-visible {
  color: var(--text-main);
}

.personal-back-arrow {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  transition: transform .18s ease;
}

.personal-back:hover .personal-back-arrow,
.personal-back:focus-visible .personal-back-arrow {
  transform: translateX(-3px);
}

.external-page-heading {
  margin: 0 0 38px;
}

.external-page-title {
  color: var(--text-main);

  font-size: 26px;
  font-weight: 300;
  letter-spacing: .04em;
}

.external-page-subtitle {
  margin-top: 8px;

  color: var(--text-faint);

  font-size: 12px;
  font-weight: 300;
  letter-spacing: .02em;
}

@media (max-width: 700px) {
  .personal-back {
    gap: 6px;
    font-size: 13px;
  }

  .personal-back-arrow {
    font-size: 16px;
  }

  .external-page-heading {
    margin-bottom: 30px;
  }

  .external-page-title {
    font-size: 22px;
  }
}


/* =========================================================
   CP-004 PERSONAL NAVIGATION UI TUNING
   ========================================================= */

/* Page heading spacing */

.external-page-heading {
  margin: 0 0 34px;
}

.external-page-title {
  margin: 0;

  font-size: 25px;
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: .04em;
}

.external-page-subtitle {
  margin-top: 9px;

  color: var(--text-faint);

  font-size: 13px;
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: .02em;
}

/*
 * Give the first service group clear visual separation
 * from the page introduction.
 */
.external-page-heading + .external-group {
  margin-top: 30px;
}


/* Personal return control */

.personal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: rgba(183, 139, 255, .62);
  text-decoration: none;

  font-size: 15px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: .045em;

  opacity: .88;

  transition:
    color .18s ease,
    opacity .18s ease;
}

.personal-back:link,
.personal-back:visited {
  color: rgba(183, 139, 255, .62);
  text-decoration: none;
}

.personal-back:hover,
.personal-back:focus-visible {
  color: rgba(205, 177, 255, .96);
  text-decoration: none;
  opacity: 1;
}

.personal-back-arrow {
  position: relative;
  top: -1px;

  display: inline-block;

  font-family: Arial, sans-serif;
  font-size: 27px;
  font-weight: 200;
  line-height: .7;

  opacity: .82;

  transition:
    transform .18s ease,
    opacity .18s ease;
}

.personal-back:hover .personal-back-arrow,
.personal-back:focus-visible .personal-back-arrow {
  transform: translateX(-3px);
  opacity: 1;
}


@media (max-width: 700px) {

  .external-page-heading {
    margin-bottom: 28px;
  }

  .external-page-title {
    font-size: 22px;
  }

  .external-page-subtitle {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
  }

  .external-page-heading + .external-group {
    margin-top: 26px;
  }

  .personal-back {
    gap: 6px;
    font-size: 13px;
  }

  .personal-back-arrow {
    font-size: 24px;
  }
}
