<?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_a454de09-0f6c-4ba8-9d10-b1ef5a7fbfa6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-30</startDate>
            <endDate>2026-03-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_a454de09-0f6c-4ba8-9d10-b1ef5a7fbfa6"
      id="F_5d189af9-cc49-4d2b-9dcb-d51988ff2582">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_a454de09-0f6c-4ba8-9d10-b1ef5a7fbfa6"
      id="F_568df3d3-5e2c-47cd-ae92-4b0870730bcf">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_a454de09-0f6c-4ba8-9d10-b1ef5a7fbfa6"
      id="F_89dbe6dc-93ef-42b4-b6df-6e2251f539e2">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_a454de09-0f6c-4ba8-9d10-b1ef5a7fbfa6"
      id="F_b8a03e35-21f8-49e0-adfd-b84c70154171">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a454de09-0f6c-4ba8-9d10-b1ef5a7fbfa6"
      id="F_6285f934-b0a3-437f-b4c7-a3997abe2ae2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_a454de09-0f6c-4ba8-9d10-b1ef5a7fbfa6"
      id="F_8e72f3d0-8036-4186-8814-6543ef1d8f43">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a454de09-0f6c-4ba8-9d10-b1ef5a7fbfa6"
      id="F_5d281a40-f2d6-4b5d-85d8-0522b0a609d0">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a454de09-0f6c-4ba8-9d10-b1ef5a7fbfa6"
      id="F_aa86c101-ae81-4c71-bf80-b7cc5e356f53">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a454de09-0f6c-4ba8-9d10-b1ef5a7fbfa6"
      id="F_a77e259b-8ec7-46e7-95b7-7dc5c97a5faa">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a454de09-0f6c-4ba8-9d10-b1ef5a7fbfa6"
      id="F_af20ed2b-ad99-4b00-91e3-c7ff432b0258">&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;605,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_a454de09-0f6c-4ba8-9d10-b1ef5a7fbfa6"
      decimals="0"
      id="F_0ec2228a-1127-461a-9e56-23a95b0ee824"
      unitRef="U_USD">605000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
