<?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_0120df3f-2da4-4b08-a2e0-e78b73bcf49f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_0120df3f-2da4-4b08-a2e0-e78b73bcf49f"
      id="F_57d3bb25-a0d5-445f-b242-542fd37392b8">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_0120df3f-2da4-4b08-a2e0-e78b73bcf49f"
      id="F_dae664a0-2b9c-4f7f-afb4-62d073a399df">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0120df3f-2da4-4b08-a2e0-e78b73bcf49f"
      id="F_8c1da188-9d3c-42d1-a670-46115bbdd192">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_0120df3f-2da4-4b08-a2e0-e78b73bcf49f"
      id="F_3385a69f-4602-4422-ac63-99a0b9f9b7c4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_0120df3f-2da4-4b08-a2e0-e78b73bcf49f"
      id="F_9180c77b-d07d-4de2-ad10-ea8d74759050">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_0120df3f-2da4-4b08-a2e0-e78b73bcf49f"
      id="F_72611d43-5ffc-4af8-8722-9610a7c39e0f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_0120df3f-2da4-4b08-a2e0-e78b73bcf49f"
      id="F_c0906ae1-9cca-41d1-ae2d-3728963fbe04">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_0120df3f-2da4-4b08-a2e0-e78b73bcf49f"
      id="F_689da84c-1784-472f-af94-5cea3247e4be">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_0120df3f-2da4-4b08-a2e0-e78b73bcf49f"
      id="F_a7f1386c-2e96-4b41-869a-d3e92a50970e">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_0120df3f-2da4-4b08-a2e0-e78b73bcf49f"
      id="F_d21612a6-e2b9-4bc5-9d10-c8d27f0c7920">&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;50,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_0120df3f-2da4-4b08-a2e0-e78b73bcf49f"
      decimals="0"
      id="F_fce4835a-6332-4e74-b1c0-fc505c185032"
      unitRef="U_USD">50000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
