/* Momentum inner pages. Shares tokens with momentum.css. */

.mp {
  padding-bottom: 24px;
}

/* Page header */
.mp-head {
  padding-block: clamp(36px, 6vw, 72px) clamp(28px, 4vw, 44px);
}

.mp-head-center {
  text-align: center;
}

.mp-head-center .mp-lede {
  margin-inline: auto;
}

.mp-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--th-muted);
}

.mp-crumbs a {
  color: var(--th-ink);
  font-weight: 600;
  text-decoration: none;
}

.mp-crumbs a:hover {
  color: var(--th-accent-text);
}

.mp-title {
  max-width: 20ch;
  margin: 8px 0 0;
  font-size: clamp(2.4rem, 6.2vw, 5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.022em;
  text-wrap: balance;
}

.mp-head-center .mp-title {
  margin-inline: auto;
}

.mp-lede {
  max-width: 620px;
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.55;
}

.mp-lede strong {
  color: var(--th-ink);
}

.mp-search {
  margin-top: 26px;
}

.mp-section {
  padding-block: clamp(32px, 5vw, 64px);
}

.mp-section-tint {
  background: var(--th-surface);
}

.mp-empty {
  grid-column: 1 / -1;
  padding: 48px 0;
  text-align: center;
}

/* Filter pills */
.mp-filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.mp-filter {
  position: relative;
}

.mp-filter > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--th-line);
  border-radius: 100px;
  background: var(--th-surface);
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  cursor: pointer;
}

.mp-filter > summary::-webkit-details-marker {
  display: none;
}

.mp-filter[open] > summary,
.mp-filter:has(input:checked) > summary {
  border-color: var(--th-ink);
  background: var(--th-ink);
  color: var(--th-bg);
}

.mp-filter[open] > summary svg {
  transform: rotate(180deg);
}

.mp-filter-pop {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-start: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(440px, calc(100vw - 32px));
  max-height: 320px;
  overflow-y: auto;
  padding: 14px;
  border: 1px solid var(--th-line);
  border-radius: 20px;
  background: var(--th-surface);
  box-shadow: 0 24px 48px -16px rgba(21, 20, 15, .28);
}

.mp-pill {
  position: relative;
  margin: 0;
}

.mp-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mp-pill span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--th-line);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.mp-pill small {
  color: var(--th-muted);
}

.mp-pill input:checked + span {
  border-color: var(--th-accent);
  background: var(--th-accent);
  color: #fff;
}

.mp-pill input:checked + span small {
  color: rgba(255, 255, 255, .8) !important;
}

.mp-pill input:focus-visible + span {
  outline: 2px solid var(--th-accent);
  outline-offset: 2px;
}

.mp-filterbar-end {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-inline-start: auto;
}

.mp-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  color: var(--th-muted);
}

.mp-select select {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--th-line);
  border-radius: 100px;
  background: var(--th-surface);
  color: var(--th-ink);
}

.mp-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
  font-weight: 600;
}

.mp-pager[hidden] {
  display: none;
}

/* Job details */
.mp-company-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--th-line);
  border-radius: 100px;
  background: var(--th-surface);
  color: var(--th-ink);
  font-weight: 600;
  text-decoration: none;
}

.mp-company-chip img {
  width: 28px;
  height: 28px;
  padding: 2px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

.mp-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 32px 0 0;
  overflow: hidden;
  border: 1px solid var(--th-line);
  border-radius: var(--appearance-card-border-radius);
  background: var(--th-line);
}

.mp-facts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 18px 20px;
  background: var(--th-surface);
}

.mp-facts span {
  color: var(--th-muted);
  font-size: 13px;
  font-weight: 500;
}

.mp-facts strong {
  overflow: hidden;
  font-family: var(--heading-font);
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-facts a {
  color: inherit;
}

.mp-closed {
  color: #b42318;
}

.mp-job-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.mp-job-actions form {
  margin: 0;
}

.mp-share {
  display: flex;
  gap: 6px;
}

.mp-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--th-line);
  border-radius: 50%;
  color: var(--th-ink);
  text-decoration: none;
}

.mp-share a:hover {
  border-color: var(--th-ink);
  background: var(--th-ink);
  color: var(--th-bg);
}

.mp-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
}

.mp-prose h2 {
  margin: 36px 0 14px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -.015em;
}

.mp-prose h2:first-child {
  margin-top: 0;
}

.mp-rich {
  color: var(--th-ink);
  font-size: 17px;
  line-height: 1.7;
}

.mp-rich :is(p, li) {
  color: var(--th-ink) !important;
}

.mp-rich :is(ul, ol) {
  padding-inline-start: 1.2em;
}

.mp-rich li {
  margin-bottom: 6px;
}

.mp-rich :is(h1, h2, h3, h4, h5, h6) {
  margin: 28px 0 10px;
  font-size: 1.2rem;
}

.mp-rich img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.mp-aside {
  display: grid;
  gap: 16px;
  position: sticky;
  inset-block-start: 100px;
}

.mp-glance,
.mp-company {
  padding: 24px;
  border: 1px solid var(--th-line);
  background: var(--th-surface);
}

.mp-glance h2,
.mp-company h2 {
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 700;
}

.mp-company-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  padding: 8px;
  border: 1px solid var(--th-line);
  border-radius: 16px;
  background: #fff;
  object-fit: contain;
}

.mp-aside dl {
  margin: 0 0 16px;
}

.mp-aside dt {
  color: var(--th-muted);
  font-size: 13px;
  font-weight: 500;
}

.mp-aside dd {
  margin: 2px 0 12px;
  overflow-wrap: anywhere;
}

.mp-aside dd a {
  color: var(--th-accent-text);
}

.mp-map {
  overflow: hidden;
  border-radius: var(--appearance-card-border-radius);
}

.mp-joblist li + li {
  border-top: 1px solid var(--th-line);
}

.mp-joblist a {
  display: block;
  padding: 12px 0;
  color: var(--th-ink);
  text-decoration: none;
}

.mp-joblist a:hover strong {
  color: var(--th-accent-text);
}

.mp-joblist strong,
.mp-joblist small {
  display: block;
}

.mp-catlist a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--th-line);
  color: var(--th-ink);
  text-decoration: none;
}

.mp-catlist span {
  color: var(--th-muted);
}

/* Sticky apply bar on phones */
.mp-applybar {
  display: none;
}

@media (max-width: 767.98px) {
  .mp-applybar {
    position: sticky;
    inset-block-end: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid var(--th-line);
    background: var(--th-surface);
  }

  .mp-applybar span {
    min-width: 0;
  }

  .mp-applybar strong,
  .mp-applybar small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:has(.mp-applybar) .jn-chat {
    inset-block-end: 84px;
  }
}

/* Employer and candidate cards */
.mc-employer,
.mc-person {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px;
  border: 1px solid var(--th-line);
  background: var(--th-surface);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.mc-employer:hover,
.mc-person:hover {
  transform: translateY(-4px);
  border-color: var(--th-ink);
  box-shadow: 0 18px 40px rgba(21, 20, 15, .1);
}

.mc-employer-top,
.mc-person-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.mc-employer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 8px;
  border: 1px solid var(--th-line);
  border-radius: 18px;
  background: #fff;
}

.mc-employer-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.mc-employer .card-badge {
  display: none;
}

.mc-employer .th-bookmark:has(.card-badge.following) {
  border-color: var(--th-accent);
  background: var(--th-accent);
  color: #fff;
}

.mc-employer-name,
.mc-person-name {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.mc-employer-name a,
.mc-person-name a {
  color: var(--th-ink);
  text-decoration: none;
}

.mc-employer-name a:hover,
.mc-person-name a:hover {
  color: var(--th-accent-text);
}

.mc-verified {
  flex: none;
  color: #1d9bf0;
}

.mc-employer-meta {
  margin: 0 0 18px;
  font-size: 14px;
}

.mc-employer-jobs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--th-soft);
  color: var(--th-ink);
  font-weight: 600;
  text-decoration: none;
}

.mc-employer-jobs strong {
  font-family: var(--heading-font);
  font-size: 22px;
}

.mc-employer-jobs:hover {
  background: var(--th-ink);
  color: var(--th-bg);
}

.mc-person-photo {
  display: block;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--mom-lime);
}

.mc-person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mc-person .heart-icon.following {
  color: #e5484d;
}

.mc-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 100px;
  background: #dcfce7;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
}

.mc-open i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
}

.mc-person-role {
  margin: 0 0 14px;
  color: var(--th-accent-text) !important;
  font-weight: 600;
}

.mc-person-meta {
  display: grid;
  gap: 4px;
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--th-line);
  color: var(--th-muted);
  font-size: 14px;
}

/* Profiles */
.mp-profile-hero {
  padding-top: 24px;
}

.mp-cover {
  height: clamp(160px, 22vw, 260px);
  background: linear-gradient(120deg, var(--th-accent), #f2a65a 55%, var(--mom-lime)) center / cover no-repeat;
}

.mp-profile-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px;
  margin-top: -48px;
  padding-inline: clamp(12px, 3vw, 32px);
}

.mp-profile-logo {
  width: 112px;
  height: 112px;
  padding: 12px;
  border: 4px solid var(--th-bg);
  background: #fff;
  object-fit: contain;
}

.mp-profile-id {
  flex: 1;
  min-width: 200px;
}

.mp-profile-id h1 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -.02em;
}

.mp-profile-id p {
  margin: 4px 0 0;
}

.mp-person-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: end;
  gap: clamp(24px, 4vw, 48px);
}

.mp-person-photo {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--mom-lime);
}

.mp-person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-person-photo .mc-open {
  position: absolute;
  inset-block-end: 12px;
  inset-inline-start: 12px;
  margin: 0;
}

.mp-timeline {
  margin: 0;
  border-inline-start: 2px solid var(--th-line);
}

.mp-timeline li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 0 22px 24px;
}

.mp-timeline li::before {
  content: "";
  position: absolute;
  inset-block-start: 6px;
  inset-inline-start: -7px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--th-bg);
  border-radius: 50%;
  background: var(--th-accent);
}

.mp-timeline strong {
  font-size: 17px;
}

.mp-timeline small {
  color: var(--th-muted);
}

.mp-media {
  display: block;
  width: 100%;
  cursor: pointer;
}

.mp-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mp-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Blog */
.mc-post {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--th-line);
  background: var(--th-surface);
  color: var(--th-ink);
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}

.mc-post:hover {
  transform: translateY(-4px);
  border-color: var(--th-ink);
  color: var(--th-ink);
}

.mc-post img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.mc-post-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
}

.mc-post-body strong {
  font-family: var(--heading-font);
  font-size: 20px;
  line-height: 1.25;
}

.mc-post-body > span {
  color: var(--th-muted);
  font-size: 15px;
}

.mp-article-head .mp-title {
  max-width: 24ch;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.mp-cover-img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.mp-article .mp-rich {
  font-size: 18px;
}

.mp-share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--th-line);
}

/* Pricing */
.th-cycle {
  display: inline-flex;
  gap: 4px;
  margin-top: 28px;
  padding: 4px;
  border: 1px solid var(--th-line);
  border-radius: 100px;
  background: var(--th-surface);
}

.th-cycle label {
  margin: 0;
}

.th-cycle input {
  position: absolute;
  opacity: 0;
}

.th-cycle span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 100px;
  font-weight: 600;
  cursor: pointer;
}

.th-cycle input:checked + span {
  background: var(--th-ink);
  color: var(--th-bg);
}

.th-cycle input:focus-visible + span {
  outline: 2px solid var(--th-accent);
  outline-offset: 2px;
}

.mp-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
  gap: 16px;
}

.mp-plan {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--th-line);
  background: var(--th-surface);
}

.mp-plan[hidden] {
  display: none;
}

.mp-plan.is-featured {
  border-color: transparent;
  background: var(--mom-panel);
  color: var(--mom-panel-text);
}

.mp-plan.is-featured :is(h2, .mp-plan-price strong, li) {
  color: var(--mom-panel-text) !important;
}

.mp-plan.is-featured :is(.mp-plan-desc, .mp-plan-price span, li.is-off) {
  color: rgba(246, 244, 238, .64) !important;
}

.mp-plan header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mp-plan h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.mp-plan-save {
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--mom-lime);
  color: #15140f;
  font-size: 12px;
  font-weight: 700;
}

.mp-plan-desc {
  margin: 0;
  font-size: 15px;
}

.mp-plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
}

.mp-plan-price strong {
  font-family: var(--heading-font);
  font-size: 54px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
}

.mp-plan-features {
  display: grid;
  gap: 10px;
  margin: 8px 0 0;
}

.mp-plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.mp-plan-features svg {
  flex: none;
  color: var(--th-accent);
}

.mp-plan.is-featured .mp-plan-features svg {
  color: var(--mom-lime);
}

.mp-plan-features li.is-off {
  color: var(--th-muted);
  text-decoration: line-through;
}

.mp-plan-features li.is-off svg {
  color: var(--th-muted);
}

/* Contact */
.mp-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.mp-contact .mp-title {
  font-size: clamp(2.6rem, 6vw, 5rem);
}

.mp-contact-list {
  display: grid;
  gap: 18px;
  margin: 36px 0 0;
}

.mp-contact-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--th-line);
}

.mp-contact-list span {
  color: var(--th-muted);
  font-size: 14px;
}

.mp-contact-list :is(a, strong) {
  color: var(--th-ink);
  font-family: var(--heading-font);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 600;
  text-decoration: none;
}

.mp-contact-list a:hover {
  color: var(--th-accent-text);
}

.mp-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--th-line);
  background: var(--th-surface);
}

.mp-form h2 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 700;
}

.mp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mp-map-frame {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

/* About */
.mp-about {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 5vw, 64px);
}

.mp-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.mp-pillar {
  padding: 28px;
  border: 1px solid var(--th-line);
  background: var(--th-bg);
}

.mp-pillar .mom-step-num {
  color: var(--th-accent-text);
  font-size: 40px;
  margin-bottom: 18px;
}

.mp-pillar h2 {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 700;
}

.mp-legal {
  max-width: 760px;
}

/* Auth */
body.jn-theme-momentum .jx-auth {
  background: transparent;
}

body.jn-theme-momentum .jx-card {
  border: 1px solid var(--th-line);
  border-radius: var(--appearance-card-border-radius);
  background: var(--th-surface);
  box-shadow: none;
}

.mx-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 4vw, 40px) !important;
  border-radius: calc(var(--appearance-card-border-radius) - 4px);
  background: var(--mom-panel) !important;
  color: var(--mom-panel-text);
}

.mx-aside .mom-eyebrow {
  align-self: flex-start;
  border-color: rgba(246, 244, 238, .2);
  background: transparent;
  color: var(--mom-panel-text);
}

.mx-aside-title {
  margin: 0;
  color: var(--mom-panel-text) !important;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.mx-aside-text {
  margin: 0;
  color: rgba(246, 244, 238, .72) !important;
}

.mx-aside-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

.mx-tile {
  padding: 18px;
  border-radius: 18px;
  background: rgba(246, 244, 238, .08);
}

.mx-tile strong,
.mx-tile span {
  display: block;
}

.mx-tile strong {
  color: var(--mom-panel-text);
  font-family: var(--heading-font);
  font-size: 34px;
  line-height: 1;
}

.mx-tile span {
  margin-top: 6px;
  color: rgba(246, 244, 238, .72);
  font-size: 14px;
}

.mx-tile-lime {
  background: var(--mom-lime);
}

.mx-tile-lime :is(strong, span) {
  color: #15140f;
}

.mx-aside-points {
  display: grid;
  gap: 8px;
  margin: 0;
  color: var(--mom-panel-text);
  font-weight: 600;
}

.mx-aside-points small {
  display: block;
  color: rgba(246, 244, 238, .6) !important;
  font-weight: 400;
}

body.jn-theme-momentum :is(.jx-btn, .btn-user-sw.active) {
  border-color: var(--th-ink);
  border-radius: 100px;
  background: var(--th-ink);
  color: var(--th-bg);
}

body.jn-theme-momentum .jx-btn:hover {
  background: var(--th-accent);
  border-color: var(--th-accent);
  color: #fff;
}

body.jn-theme-momentum .jx-head__title {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  letter-spacing: -.02em;
}

body.jn-theme-momentum :is(.jx-link) {
  color: var(--th-accent-text);
}

@media (max-width: 991.98px) {
  .mp-split,
  .mp-contact,
  .mp-about {
    grid-template-columns: 1fr;
  }

  .mp-aside {
    position: static;
  }

  .mp-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .mp-filterbar-end {
    width: 100%;
    justify-content: space-between;
    margin-inline-start: 0;
  }

  .mp-form-row,
  .mp-person-grid {
    grid-template-columns: 1fr;
  }

  /* Only the logo overlaps the cover; the name sits below it. */
  .mp-profile-bar {
    margin-top: -40px;
  }

  .mp-profile-logo {
    width: 88px;
    height: 88px;
  }

  .mp-profile-id {
    flex-basis: 100%;
  }

  .mp-person-photo {
    max-width: 180px;
  }

  .mp-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .mx-aside-tiles {
    grid-template-columns: 1fr;
  }
}
