/* Profession navigation: retain the approved paper rows, repair their inset and alignment. */
.paper-site .sc-profgrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.paper-site .sc-profgrid > a {
  box-sizing: border-box;
  min-width: 0;
  min-height: 90px;
  padding: 22px 26px;
  grid-template-columns: 100px minmax(0, 1fr) 20px;
  gap: 18px;
  align-items: center;
}

.paper-site .sc-profgrid > a > b {
  min-width: 0;
  margin: 0;
  line-height: 1.45;
  word-break: keep-all;
}

.paper-site .sc-profgrid > a > span {
  min-width: 0;
  margin: 0;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.paper-site .sc-profgrid > a > i {
  justify-self: end;
  align-self: center;
  line-height: 1;
}

.paper-site .sc-profgrid > a:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid #a94632;
  outline-offset: -5px;
}

/* Page contents are an index, not a second full-width announcement bar. */
.paper-site .pscope .ps-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.paper-site .pscope .ps-jump > a {
  display: flex;
  flex: 1 1 160px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 58px;
  padding: 15px 18px;
  border: 1px solid #c4b292;
  border-top: 3px solid #c4b292;
  border-radius: 3px 3px 0 0;
  background: #f8f1e3;
  color: #514431;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  word-break: keep-all;
  overflow-wrap: anywhere;
  transition: border-color .16s ease, background-color .16s ease;
}

.paper-site .pscope .ps-jump > a:hover,
.paper-site .pscope .ps-jump > a:focus-visible,
.paper-site .pscope .ps-jump > a[aria-current="location"],
.paper-site .pscope:has(#marketing-services:target) .ps-jump > a[href$="#marketing-services"],
.paper-site .pscope:has(#specialties:target) .ps-jump > a[href$="#specialties"],
.paper-site .pscope:has(#position-example:target) .ps-jump > a[href$="#position-example"],
.paper-site .pscope:has(#acquisition:target) .ps-jump > a[href$="#acquisition"],
.paper-site .pscope:has(#success-review:target) .ps-jump > a[href$="#success-review"] {
  border-top-color: #a94632;
  background: #fff9ed;
  color: #9c3624;
  text-decoration: none;
}

.paper-site .pscope .ps-jump > a:focus-visible {
  outline: 2px solid #a94632;
  outline-offset: 3px;
}

/* The existing underlined key phrase rests on one torn sheet. */
.paper-site .pscope .ps-quote > em {
  position: relative;
  isolation: isolate;
  display: inline-block;
  max-width: 100%;
}

.paper-site .pscope .ps-quote > em::before {
  position: absolute;
  z-index: -1;
  inset: -.18em -.36em -.2em;
  background: url("collage-assets/c3_sheet.webp") center / 100% 100% no-repeat;
  transform: rotate(-1.8deg);
  content: "";
  pointer-events: none;
}

@media (max-width: 900px) {
  .paper-site .sc-profgrid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .paper-site .sc-profgrid > a {
    padding: 19px 22px;
    grid-template-columns: minmax(0, 1fr) 20px;
    gap: 6px 16px;
  }

  .paper-site .sc-profgrid > a > b {
    grid-column: 1;
    grid-row: 1;
  }

  .paper-site .sc-profgrid > a > span {
    grid-column: 1;
    grid-row: 2;
  }

  .paper-site .sc-profgrid > a > i {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .paper-site .pscope .ps-jump > a {
    flex-basis: 125px;
    min-height: 52px;
    padding: 12px 10px;
    font-size: 13px;
  }

  .paper-site .pscope .ps-quote > em::before {
    inset: -.14em -.22em -.18em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .paper-site .pscope .ps-jump > a { transition: none; }
}

/* The newly requested ninth field has its own complete row. */
.paper-site .sc-profgrid > a[data-clinic]{grid-column:1 / -1;}
