/* Reuse Main's layout and controls; only the nested export needs overrides. */
.shared-post-page [data-pencil-name="Reply line"] path { display: none; }
.shared-post-page .shared-author-heading {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

@media (max-width: 1400px) {
  .shared-post-page .main-header [data-pencil-name="NSM"] > div {
    font-size: var(--logo-size) !important;
  }

  .shared-post-page [data-pencil-name="Frame 43"] {
    width: calc(100% - 30px) !important;
    flex-wrap: wrap;
    align-items: center !important;
  }

  .shared-post-page [data-pencil-name="Frame 43"] > [data-pencil-name="profile info"] {
    flex-shrink: 1;
    max-width: 100%;
    width: 100%;
  }

  .shared-post-page [data-pencil-name="Frame 43"] [data-pencil-name="user ppf"] {
    width: 44.528px;
    height: 60px;
  }

  .shared-post-page [data-pencil-name="Frame 43"] [data-pencil-name="user ppf"] > div {
    inset: 0;
    margin: auto;
    width: 44.528px;
    height: 44.528px;
  }

  .shared-post-page [data-pencil-name="Frame 43"] [data-pencil-name="ppf text"] {
    flex: 1;
  }

  .shared-post-page .shared-author-heading { width: 100%; }

  .shared-post-page [data-pencil-name="shared a post"] {
    flex: 1 1 110px !important;
    width: auto !important;
    height: auto !important;
    font-size: inherit !important;
  }

  .shared-post-page [data-pencil-name="Line 12"] { width: 100% !important; }
  .shared-post-page [data-pencil-name="shared post"] {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100% !important;
    height: auto !important;
  }

  .shared-post-page [data-pencil-name="shared post"] > div {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
  }

  .shared-post-page [data-pencil-name="shared post"] > [data-pencil-name="profile info"] > [data-pencil-name="user ppf"] {
    flex-shrink: 0;
    width: 44.528px !important;
    height: 44.528px !important;
  }

  .shared-post-page [data-pencil-name="shared post"] [data-pencil-name="user ppf"] > div {
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  .shared-post-page [data-pencil-name="shared post"] [data-pencil-name="ppf text"] { flex: 1; }
  .shared-post-page [data-pencil-name="shared post"] [style*="font-size"] { font-size: inherit !important; }
  .shared-post-page [data-pencil-name="shared post"] > [data-pencil-name="image"] { height: auto !important; }
}

@media (max-width: 600px) {
  .shared-post-page .main-nav {
    position: sticky;
    top: env(safe-area-inset-top);
    z-index: 20;
  }
  .shared-post-page [data-pencil-name="shared post"] [data-pencil-name="13 hrs"] {
    font-size: calc(clamp(0.75rem, 3.59vw, 1rem) + 0.0625rem) !important;
  }
}
