.page-mascot {
  display: block;
  position: absolute;
  z-index: 2;
  width: 100%;
  height: 213px;
  min-height: 1px;
  margin: -13px 0 0;
  text-align: right;
  right: 0;
  pointer-events: none;
}

.page-mascot.overlays-divider {
  z-index: 30;
  pointer-events: none;
}

.page-mascot:has(> .page-mascot-picker:not([hidden])) {
  z-index: 1000000;
}

.page-mascot .page-mascot-toggle,
.page-mascot .page-mascot-picker {
  pointer-events: auto;
}

#txt .page-mascot-background {
  display: none;
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 213px;
  pointer-events: none;
  z-index: 0;
}

#txt:has(> .page-mascot.has-mascot)>.page-mascot-background {
  display: block;
}

.page-mascot-background img {
  display: block;
  position: absolute;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8px, #000 calc(100% - 8px), transparent),
    linear-gradient(to bottom, transparent, #000 8px, #000 calc(100% - 8px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 8px, #000 calc(100% - 8px), transparent),
    linear-gradient(to bottom, transparent, #000 8px, #000 calc(100% - 8px), transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.page-mascot-background-center {
  width: 100%;
  object-position: center;
}

.page-mascot-background-left,
.page-mascot-background-right {
  width: 213px;
  opacity: .18;
}

.page-mascot-background-left {
  left: 0;
}

.page-mascot-background-right {
  right: 0;
}

#txt h1.page-main-heading {
  box-sizing: border-box;
  width: 100%;
  border: 0;
  color: #092b43;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.08;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 0 20px 20px;
  margin-bottom: 0;
  min-height: 200px;
}

#txt:not(:has(> .page-mascot.has-mascot)) h1.page-main-heading {
  min-height: 90px;
  padding-top: 12px;
  padding-bottom: 12px;
}

#txt:has(> .page-mascot.has-mascot) h1.page-main-heading {
  position: relative;
  z-index: 1;
  width: calc(66% - 20px);
}

#txt:has(> .page-mascot.has-mascot)>.filter_container,
#txt:has(> .page-mascot.has-mascot)>.sort_container {
  top: 190px;
  right: auto;
}

#txt:has(> .page-mascot.has-mascot)>.filter_container {
  left: 32px;
}

#txt:has(> .page-mascot.has-mascot)>.sort_container {
  left: 160px;
}

#txt h1>i,
#txt h1>svg {
  flex: 0 0 auto;
}

#txt h1>i::before {
  display: inline-block;
  background: linear-gradient(to top, #031b2c 15%, #5592ba 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#txt h1>svg {
  background: none;
}

#txt .nnshield-page-title>i {
  font-size: 1.5em;
}

.nnshield-title-text small {
  display: block;
  margin-top: 8px;
  font: 600 clamp(14px, 1.5vw, 21px)/1.2 Georgia, serif;
  letter-spacing: .13em;
  text-transform: uppercase;
}

#txt .page-mascot-divider,
#txt hr {
  position: relative;
  display: block;
  clear: both;
  box-sizing: border-box;
  width: 100%;
  height: 18px;
  margin: 0px;
  border: 0;
  border-top: 1px solid #174868;
  background: transparent;
  overflow: visible;
  z-index: 20;
}

#txt hr {
  margin-top: 12px;
}

#txt .page-mascot-divider::after,
#txt hr::after {
  content: '✦';
  position: absolute;
  top: -10px;
  left: 50%;
  width: 44px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  color: #174868;
  background: #c2ecff;
  border-radius: 50%;
  font-size: 20px;
  transform: translateX(-50%);
}

.page-mascot-art {
  position: relative;
  width: 50%;
  height: 213px;
  margin-left: auto;
  overflow: visible;
}

.page-mascot-image {
  display: block;
  position: absolute;
  top: calc(-50% + var(--mascot-y-offset, 0px));
  left: var(--mascot-x-offset, 0px);
  width: 50vw;
  height: 500px;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  clip-path: inset(0 0 calc(180px + var(--mascot-y-offset, 0px)) 0);
}

.page-mascot.has-mascot .page-mascot-image {
  max-height: 800px;
  max-width: 600px;
}

.page-mascot.overlays-divider .page-mascot-image {
  clip-path: none;
}

.page-mascot .page-mascot-toggle {
  position: absolute;
  top: 0;
  left: 0;
}

.page-mascot-image[hidden],
.page-mascot-picker[hidden] {
  display: none;
}

.page-mascot-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  white-space: nowrap;
  cursor: pointer;
  width: 172px;
  max-width: 100%;
  padding: 4px 7px;
  text-align: left;
  background: #d5f3ff;
  border: 1px solid #5893ab;
  color: #003349;
  position: relative;
  z-index: 2000;
}

.page-mascot-paw {
  flex: none;
}

.page-mascot-paw img {
  display: block;
  width: 16px;
  height: 16px;
}

.page-mascot-toggle .page-mascot-arrow {
  flex: none;
  margin-left: auto;
}

.page-mascot-picker {
  position: absolute;
  top: 28px;
  left: 0;
  width: 400px;
  padding: 8px;
  background: #d5f3ff;
  border: 1px solid #5893ab;
  box-shadow: 0 4px 14px #00334966;
  z-index: 990000;
  min-height: 400px;
}

.page-mascot-grid {
  display: grid;
  grid-template-columns: repeat(8, 48px);
  max-height: 400px;
  overflow-y: auto;
}

.page-mascot-position,
.page-mascot-x-position,
.page-mascot-size {
  display: block;
  margin-top: 10px;
  color: #003349;
  font: 12px/1.4 Arial, sans-serif;
  text-align: left;
}

.page-mascot-overlay {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: #003349;
  font: 12px/1.4 Arial, sans-serif;
  text-align: left;
  cursor: pointer;
}

.page-mascot-overlay input {
  margin: 0;
}

.page-mascot-position output,
.page-mascot-x-position output,
.page-mascot-size output {
  float: right;
}

.page-mascot-position input,
.page-mascot-x-position input,
.page-mascot-size input {
  display: block;
  width: 100%;
  margin: 6px 0;
}

.page-mascot-choice {
  width: 48px;
  min-height: 64px;
  height: auto;
  padding: 2px;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  color: #003349;
  font: 9px/11px Arial, sans-serif;
}

.page-mascot-choice img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.page-mascot-choice span {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
}

.page-mascot-choice:hover,
.page-mascot-choice.selected {
  border-color: #067fa4;
  background: #a8deef;
}

.page-mascot-status {
  text-align: left;
  font-size: 11px;
}

/* Message-only pages have no title for the mascot to accompany. */
#txt:not(:has(h1))>.page-mascot,
.page-mascot[hidden] {
  display: none;
}