<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_8b8cfcfb-063b-410d-9841-de4c6734a965">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_8b8cfcfb-063b-410d-9841-de4c6734a965"
      id="F_df132caa-f485-4ce2-99cf-d8bb0075646a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8b8cfcfb-063b-410d-9841-de4c6734a965"
      id="F_5d7e2088-c6bf-42e0-b6f0-4259dab322c0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_8b8cfcfb-063b-410d-9841-de4c6734a965"
      id="F_3c26a183-b7a5-4dd9-94a3-02f580153225">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_8b8cfcfb-063b-410d-9841-de4c6734a965"
      id="F_41054ff4-6d45-4c94-bafc-902d3aaed7dd">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_8b8cfcfb-063b-410d-9841-de4c6734a965"
      id="F_48945d26-79db-4bcf-999e-56b6d681911e">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_8b8cfcfb-063b-410d-9841-de4c6734a965"
      id="F_44619ce8-b742-4c24-839c-99439d012c95">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_8b8cfcfb-063b-410d-9841-de4c6734a965"
      id="F_2bd04fde-3d21-4fda-b5bb-6d03173e02e7">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_8b8cfcfb-063b-410d-9841-de4c6734a965"
      id="F_6a13cbbb-e0db-4a74-8711-bca42518be3c">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_8b8cfcfb-063b-410d-9841-de4c6734a965"
      id="F_98292ac2-3735-4b04-bd0d-2a1151e97449">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_8b8cfcfb-063b-410d-9841-de4c6734a965"
      id="F_17ddd694-ef71-4794-8803-07069ad8882f">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;6,000,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_8b8cfcfb-063b-410d-9841-de4c6734a965"
      decimals="0"
      id="F_6a551d73-6d02-4218-9c99-1b2fed8fc79b"
      unitRef="U_USD">6000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
