<?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_993effbb-64e7-4bd6-ae6d-007a65584c2b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-22</startDate>
            <endDate>2026-05-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_993effbb-64e7-4bd6-ae6d-007a65584c2b"
      id="F_2d476285-3941-473a-98f9-094efe430381">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_993effbb-64e7-4bd6-ae6d-007a65584c2b"
      id="F_286ad822-5b15-450e-a02d-01b82a8615a5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_993effbb-64e7-4bd6-ae6d-007a65584c2b"
      id="F_d42811e6-f9c3-4a01-ba30-f003a5a3d1b8">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_993effbb-64e7-4bd6-ae6d-007a65584c2b"
      id="F_a3a30a4f-8f47-40c7-8c71-e74394b66e1d">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_993effbb-64e7-4bd6-ae6d-007a65584c2b"
      id="F_b78d5ad6-904e-49e6-be10-e29b17e805fe">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_993effbb-64e7-4bd6-ae6d-007a65584c2b"
      id="F_fd863eb3-a8fa-4ae2-a61c-52d793bc0b9d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_993effbb-64e7-4bd6-ae6d-007a65584c2b"
      id="F_e58d4b99-ecfd-42f9-8365-54272ce64a32">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_993effbb-64e7-4bd6-ae6d-007a65584c2b"
      id="F_41bc20f0-bd83-4203-a5ff-67e3e2ad32b7">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_993effbb-64e7-4bd6-ae6d-007a65584c2b"
      id="F_0bfd000b-4764-44d2-9438-c32c3188929f">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_993effbb-64e7-4bd6-ae6d-007a65584c2b"
      id="F_9d47238f-86e0-485b-bd87-3a5f2c6e9af3">&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;1,178,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_993effbb-64e7-4bd6-ae6d-007a65584c2b"
      decimals="0"
      id="F_f46832bf-4145-44ab-bf80-1c4b98d31cb5"
      unitRef="U_USD">1178000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
