.content:has(#pg-author.on) {
  background: #f6f9f8;
  padding-block-start: 0;
}

#pg-author {
  --author-ink: #112d36;
  --author-muted: #4e656d;
  --author-line: #dbe5e2;
  --author-accent: #08736d;
  --author-tint: #e8f2ef;
  box-sizing: border-box;
  padding: 16px clamp(16px, 3.5vw, 44px) 54px;
}

#pg-author [hidden] {
  display: none !important;
}

#pg-author .author-page-wrap {
  width: min(1180px, 100%);
}

#pg-author .author-topbar {
  min-height: 30px;
  margin-bottom: 16px;
}

#pg-author .author-back-link {
  min-height: 30px;
  padding: 0 4px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--author-muted);
  font-size: 12px;
}

#pg-author .author-back-link:hover {
  color: var(--author-accent);
  border-color: transparent;
  background: var(--author-tint);
}

#pg-author .author-profile {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 238px;
  padding: clamp(20px, 3.6vw, 42px);
  overflow: hidden;
  border-radius: 13px;
  color: #edf8f6;
  background: linear-gradient(115deg, #102b35 0%, #163941 62%, #20534f 100%);
}

#pg-author .author-profile-cover {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 36%;
}

#pg-author .author-profile-cover img {
  object-position: center 54%;
}

#pg-author .author-profile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #102b35 12%, #102b35 35%, #102b35b8 57%, #102b3514 100%);
}

#pg-author .author-profile-copy {
  max-width: 590px;
}

#pg-author .author-profile-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

#pg-author .author-profile-identity > div {
  min-width: 0;
}

#pg-author .author-profile-avatar {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  flex-shrink: 0;
  border-radius: 15px;
  border: 1px solid #8ebcb07d;
  background: #20515a;
  color: #cff0e9;
  font: 660 27px/1 var(--font-ui);
}

#pg-author .author-profile h1 {
  margin: 0;
  color: #fff;
  font: 720 clamp(28px, 4vw, 49px)/1.1 var(--font-ui);
  letter-spacing: -.032em;
  overflow-wrap: anywhere;
}

#pg-author .author-profile-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin-top: 7px;
}

#pg-author .author-profile-role {
  margin: 0;
  color: #d0e5e4;
  font: 550 13px/1.45 var(--font-ui);
  overflow-wrap: anywhere;
}

#pg-author .author-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

#pg-author .author-profile-badges .author-badge {
  min-height: 20px;
  padding: 2px 7px;
  border: 0;
  border-radius: 4px;
  background: #d5f2e61d;
  color: #cbf0e5;
  font: 620 11px/1.25 var(--font-ui);
  overflow-wrap: anywhere;
}

#pg-author .author-profile-bio {
  max-width: 490px;
  margin: 15px 0 0;
  color: #d6e9e7;
  font: 400 14px/1.65 var(--font-ui);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

#pg-author .author-profile-bio:empty {
  display: none;
}

#pg-author #author-safety-report {
  min-height: 26px;
  margin-top: 8px;
  color: #cee4e3;
  font: 500 12px/1.35 var(--font-ui);
}

#pg-author .author-profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

#pg-author .author-profile-actions button {
  min-height: 34px;
  padding: 4px 12px;
  border: 1px solid #8ebcb08c;
  border-radius: 5px;
  background: #102b35b3;
  color: #eef8f6;
  font: 620 12px/1.4 var(--font-ui);
  cursor: pointer;
}

#pg-author .author-profile-actions .author-action-primary {
  border-color: #b4efdc;
  background: #b4efdc;
  color: #173a40;
}

#pg-author .author-profile-actions button:hover {
  border-color: #e4fff7;
}

#pg-author .author-profile :is(a, button):focus-visible {
  outline-color: #b4efdc;
}

#pg-author .author-section-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 10px 0 20px;
  border-bottom: 1px solid var(--author-line);
}

#pg-author .author-section-nav button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 4px 3px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--author-muted);
  font: 620 13px/1.4 var(--font-ui);
  cursor: pointer;
}

#pg-author .author-section-nav button:hover,
#pg-author .author-section-nav [aria-pressed="true"] {
  color: var(--author-accent);
}

#pg-author .author-section-nav [aria-pressed="true"] {
  border-bottom-color: var(--author-accent);
}

#pg-author #author-nav-count {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

#pg-author .author-overview-layout,
#pg-author .author-about {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .42fr);
  gap: 18px;
}

#pg-author .author-overview-rail {
  display: grid;
  gap: 12px;
}

#pg-author .author-hub-card {
  min-width: 0;
  padding: clamp(14px, 2vw, 23px);
  border: 1px solid var(--author-line);
  border-radius: 9px;
  background: #fff;
}

#pg-author .author-section-title {
  margin: 0;
  color: var(--author-ink);
  font: 690 clamp(17px, 1.6vw, 21px)/1.35 var(--font-ui);
}

#pg-author :is(.author-section-caption, .author-about-copy) {
  margin: 6px 0 0;
  color: var(--author-muted);
  font: 400 13px/1.6 var(--font-ui);
  overflow-wrap: anywhere;
}

#pg-author .author-about-copy + .author-about-copy {
  margin-top: 11px;
}

#pg-author .author-about-stats {
  display: flex;
  gap: 12px 24px;
  flex-wrap: wrap;
  margin: 18px 0 0;
  border-top: 1px solid var(--author-line);
  padding-top: 13px;
}

#pg-author .author-about-stats dt {
  color: var(--author-muted);
  font-size: 12px;
}

#pg-author .author-about-stats dd {
  margin: 2px 0 0;
  color: var(--author-ink);
  font-size: 18px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

#pg-author .author-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

#pg-author :is(.author-hub-link, .author-scenario-link) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--author-ink);
  text-decoration: none;
}

#pg-author .author-hub-link {
  min-height: 44px;
  padding: 10px 0;
  border-bottom: 1px solid var(--author-line);
}

#pg-author .author-directory-link {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--author-line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

#pg-author .author-hub-card > .author-hub-link:last-child,
#pg-author .author-link-list li:last-child .author-hub-link {
  padding-bottom: 0;
  border: 0;
}

#pg-author .author-link-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
  font: 600 13px/1.45 var(--font-ui);
  overflow-wrap: anywhere;
}

#pg-author .author-link-description {
  color: var(--author-muted);
  font-size: 12px;
  font-weight: 450;
}

#pg-author .author-link-arrow {
  flex: none;
  color: var(--author-accent);
  font-size: 15px;
}

#pg-author :is(.author-hub-link, .author-scenario-link):hover strong {
  color: var(--author-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

#pg-author .author-scenario-matrix {
  table-layout: fixed;
  width: 100%;
  margin-top: 15px;
  border-collapse: separate;
  border-spacing: 0;
  font: 550 12px/1.45 var(--font-ui);
}

#pg-author .author-scenario-matrix :is(th, td) {
  padding: 9px 8px;
  border-bottom: 1px solid var(--author-line);
  text-align: left;
}

#pg-author .author-scenario-matrix thead th {
  background: #edf4f2;
  color: #365861;
}

#pg-author .author-scenario-matrix th:first-child {
  width: 120px;
}

#pg-author .author-scenario-matrix tbody th {
  color: #2f4e55;
}

#pg-author .author-scenario-matrix th small {
  display: block;
  margin-top: 4px;
  color: var(--author-muted);
  font-size: 10px;
}

#pg-author .author-scenario-link {
  justify-content: flex-start;
  min-height: 44px;
  padding: 3px;
  border-radius: 5px;
}

#pg-author .author-scenario-link:hover {
  background: #eff6f4;
}

#pg-author .author-scenario-link img {
  flex: 0 0 68px;
  width: 68px;
  height: 43px;
  border-radius: 4px;
}

#pg-author .author-scenario-link .author-link-copy {
  flex: 1;
  font-size: 12px;
}

#pg-author .author-scenario-tips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

#pg-author .author-scenario-tips p {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 5px;
  background: #f2f6f5;
  color: var(--author-muted);
  font: 400 12px/1.45 var(--font-ui);
}

#pg-author .author-scenario-tips strong {
  color: var(--author-ink);
  font-weight: 650;
}

#pg-author .author-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

#pg-author .author-highlight {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--author-line);
  border-radius: 7px;
  color: var(--author-ink);
  text-decoration: none;
}

#pg-author .author-highlight > img {
  width: 100%;
  height: auto;
  aspect-ratio: 2.2;
}

#pg-author .author-highlight-copy {
  padding: 11px;
  overflow-wrap: anywhere;
}

#pg-author .author-highlight-type {
  color: var(--author-accent);
  font-size: 11px;
}

#pg-author .author-highlight-copy :is(h3, p) {
  margin: 5px 0 0;
}

#pg-author .author-highlight-copy h3 {
  font: 650 15px/1.4 var(--font-ui);
}

#pg-author .author-highlight-copy p {
  color: var(--author-muted);
  font-size: 12px;
  line-height: 1.5;
}

#pg-author .author-library {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#pg-author .author-library-heading {
  align-items: baseline;
  flex-flow: row wrap;
  gap: 8px 12px;
  margin-bottom: 16px;
  padding: 0 0 11px;
  border-bottom: 1px solid var(--author-line);
}

#pg-author .author-library-heading > div {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
}

#pg-author .author-library-heading h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 690;
}

#pg-author #author-resource-count {
  color: var(--author-muted);
  font: 500 12px/1.5 var(--font-ui);
  font-variant-numeric: tabular-nums;
}

#pg-author .author-search input {
  width: min(100%, 218px);
  min-height: 34px;
  padding: 4px 10px;
  border: 1px solid var(--author-line);
  border-radius: 5px;
  background: #fff;
  color: var(--author-ink);
  font: 400 13px/1.4 var(--font-ui);
}

#pg-author .author-toolbar {
  margin: -7px 0 16px;
  padding: 0;
  border-bottom: 1px solid var(--author-line);
  overflow: visible;
}

#pg-author #author-type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0 14px;
}

#pg-author .author-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 3px 1px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--author-muted);
  font: 600 13px/1.35 var(--font-ui);
  cursor: pointer;
}

#pg-author .author-filter:hover,
#pg-author .author-filter[aria-pressed="true"] {
  color: var(--author-accent);
}

#pg-author .author-filter[aria-pressed="true"] {
  border-bottom-color: var(--author-accent);
}

#pg-author .author-filter-count {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

#pg-author .author-resource-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

#pg-author .author-resource-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 132px;
  border: 1px solid var(--author-line);
  border-radius: 9px;
  background: #fff;
}

#pg-author .author-card-link {
  border-radius: 8px 8px 0 0;
  color: var(--author-ink);
  text-decoration: none;
}

#pg-author .author-card-link:hover .author-card-title {
  color: var(--author-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

#pg-author .author-card-media {
  overflow: hidden;
  aspect-ratio: 2.32;
  border-radius: inherit;
  background: var(--author-tint);
}

#pg-author .author-cover-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#pg-author .author-card-title {
  margin: 0;
  padding: 12px 14px 0;
  font: 680 16px/1.4 var(--font-ui);
  overflow-wrap: anywhere;
}

#pg-author .author-card-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 6px 14px 0;
  color: var(--author-muted);
  font: 400 12px/1.55 var(--font-ui);
  overflow-wrap: anywhere;
}

#pg-author .author-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding: 10px 14px;
  color: var(--author-muted);
  font: 550 12px/1.35 var(--font-ui);
}

#pg-author .author-card-run {
  min-height: 28px;
  padding: 4px 8px;
  border: 0;
  border-radius: 5px;
  background: var(--author-tint);
  color: var(--author-accent);
  font: 650 11px/1.35 var(--font-ui);
  cursor: pointer;
}

#pg-author .author-card-run:hover {
  background: #d8ece7;
}

#pg-author .author-resource-grid.author-user-content-list {
  border-color: var(--author-line);
}

#pg-author .author-user-content-row > button {
  min-height: 74px;
  padding-block: 8px;
}

#pg-author .author-user-cover {
  height: 60px;
}

#pg-author .author-resource-empty,
#pg-author .author-resource-loading {
  padding: 16px 0;
  color: var(--author-muted);
  text-align: left;
}

#pg-author :is(a, button, input):focus-visible {
  outline: 2px solid var(--author-accent);
  outline-offset: 3px;
}

@media (max-width: 1120px) {
  #pg-author .author-overview-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  #pg-author .author-overview-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #pg-author .author-about {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  #pg-author .author-profile {
    min-height: 206px;
    padding: 17px;
  }

  #pg-author .author-profile-cover {
    inset-inline-start: 0;
  }

  #pg-author .author-profile::after {
    background: linear-gradient(90deg, #102b35f5, #102b35d4);
  }

  #pg-author .author-profile-bio {
    font-size: 13px;
  }

  #pg-author .author-profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 11px;
    font-size: 22px;
  }

  #pg-author :is(.author-resource-grid, .author-overview-rail, .author-highlights) {
    grid-template-columns: minmax(0, 1fr);
  }

  #pg-author .author-scenario-matrix th:first-child {
    width: 64px;
  }

  #pg-author .author-scenario-matrix :is(th, td) {
    padding: 7px 4px;
  }

  #pg-author .author-scenario-matrix th {
    font-size: 11px;
  }

  #pg-author .author-scenario-link {
    display: grid;
    align-content: start;
    gap: 5px;
    height: 100%;
  }

  #pg-author .author-scenario-link img {
    width: 100%;
    min-width: 0;
    height: auto;
    max-height: 56px;
    aspect-ratio: 1.8;
  }

  #pg-author .author-scenario-link .author-link-arrow {
    display: none;
  }

  #pg-author .author-scenario-tips {
    grid-template-columns: minmax(0, 1fr);
  }

  #pg-author .author-user-cover {
    height: 52px;
  }
}

@media (pointer: coarse) {
  #pg-author :is(.author-back-link, .author-filter, .author-card-run, #author-safety-report, .author-search input, .author-profile-actions button, .author-section-nav button) {
    min-height: 44px;
  }
}
