/* R69: load last. Desktop identity/navigation only; mobile dialog keeps R64 rules. */
@media (min-width: 901px) {
  .layout > #profile-root.profile {
    position: sticky;
    top: var(--page-top);
    width: min(100%, 400px);
    min-width: 0;
    height: calc(100svh - var(--page-top) - var(--page-top));
    max-height: 960px;
    display: flex;
    flex-direction: column;
    align-self: start;
  }

  .layout > #profile-root.profile > .profile-top {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 8px;
    align-items: start;
    flex: 0 1 auto;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 12px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .layout > #profile-root.profile .profile-location {
    display: contents;
  }

  .layout > #profile-root.profile .profile-photo {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
    width: 180px;
    height: 208px;
    max-width: none;
    margin: 0;
    object-fit: contain;
  }

  .layout > #profile-root.profile > .profile-top > :is(h1, .profile-home) {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    min-width: 0;
    margin: 0;
  }

  .layout > #profile-root.profile :is(h1, .profile-name) {
    font-family: var(--font-body);
    font-size: 34px;
    font-weight: 650;
    line-height: 1.06;
    letter-spacing: -.045em;
  }

  .layout > #profile-root.profile .profile-name-line {
    display: block;
  }

  .layout > #profile-root.profile .profile-role {
    display: block;
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    max-width: none;
    margin: 0;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 450;
    line-height: 1.5;
    letter-spacing: 0;
  }

  .layout > #profile-root.profile .location-caption {
    display: grid;
    grid-column: 1 / -1;
    grid-row: 3;
    justify-content: start;
    justify-items: start;
    gap: 2px;
    width: 100%;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 450;
    line-height: 1.45;
    text-align: left;
  }

  .layout > #profile-root.profile .location-caption > span {
    color: inherit;
  }

  .layout > #profile-root.profile .section-nav {
    display: flex;
    flex-direction: column;
    grid-column: 1 / -1;
    grid-row: 4;
    gap: 4px;
    width: 100%;
    max-width: none;
    margin: 24px 0 0;
  }

  .layout > #profile-root.profile .nav-link {
    min-height: 44px;
    gap: 12px;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
  }

  .layout > #profile-root.profile .nav-link::before {
    content: none;
    display: none;
  }

  .layout > #profile-root.profile .nav-link:hover {
    background: color-mix(in srgb, var(--ink) 4%, transparent);
    color: var(--ink);
  }

  .layout > #profile-root.profile .nav-link.is-active {
    background: var(--subtle);
    color: var(--ink);
    font-weight: 500;
  }

  .layout > #profile-root.profile .nav-link .icon {
    width: 18px;
    height: 18px;
    color: var(--muted);
  }

  .layout > #profile-root.profile > .profile-bottom {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    margin-top: 0;
    padding: 32px 12px 0;
  }

  .layout > #profile-root.profile #contact-dock {
    min-height: 168px;
    margin: 0;
  }

  .layout > #profile-root.profile #contact-dock .contact-card h2 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.025em;
  }
  .layout > #profile-root.profile #contact-dock .contact-copy { gap:8px; }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .layout > #profile-root.profile > .profile-top {
    grid-template-columns: 132px minmax(0, 1fr);
    column-gap: 12px;
  }

  .layout > #profile-root.profile .profile-photo {
    width: 132px;
    height: 152px;
  }

  .layout > #profile-root.profile :is(h1, .profile-name) {
    font-size: 30px;
  }

  .layout > #profile-root.profile .profile-role {
    font-size: 12px;
  }

  .layout > #profile-root.profile #contact-dock .contact-card h2 {
    font-size: 16px;
  }
}

@media (min-width: 901px) and (max-height: 760px) {
  .layout > #profile-root.profile > .profile-top {
    grid-template-columns: 156px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 6px;
  }

  .layout > #profile-root.profile .profile-photo {
    width: 156px;
    height: 180px;
  }

  .layout > #profile-root.profile :is(h1, .profile-name) {
    font-size: 32px;
  }

  .layout > #profile-root.profile .profile-role {
    font-size: 13px;
  }

  .layout > #profile-root.profile .location-caption {
    margin-top: 8px;
    font-size: 11px;
  }

  .layout > #profile-root.profile .section-nav {
    margin-top: 16px;
  }

  .layout > #profile-root.profile .nav-link {
    min-height: 40px;
    padding-block: 8px;
  }

  .layout > #profile-root.profile > .profile-bottom {
    padding-top: 20px;
  }
}

@media (min-width: 901px) and (max-width: 1100px) and (max-height: 760px) {
  .layout > #profile-root.profile > .profile-top {
    grid-template-columns: 132px minmax(0, 1fr);
    column-gap: 12px;
  }

  .layout > #profile-root.profile .profile-photo {
    width: 132px;
    height: 152px;
  }

  .layout > #profile-root.profile :is(h1, .profile-name) { font-size: 30px; }
  .layout > #profile-root.profile .profile-role { font-size: 12px; }
}
