<?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_688ece9f-424f-4435-8065-3bb1db5ce7e1">
        <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_688ece9f-424f-4435-8065-3bb1db5ce7e1"
      id="F_1be24ca5-671f-449c-b651-d136a59d0588">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_688ece9f-424f-4435-8065-3bb1db5ce7e1"
      id="F_f1ccc6b7-1858-45b0-af6c-76f4920f256d">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_688ece9f-424f-4435-8065-3bb1db5ce7e1"
      id="F_8b62df39-3f32-41e8-80ca-bc41caa185fe">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_688ece9f-424f-4435-8065-3bb1db5ce7e1"
      id="F_ef43105f-d4f3-4be5-8558-f053343f6d0f">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_688ece9f-424f-4435-8065-3bb1db5ce7e1"
      id="F_2a1c139b-b1c8-4340-8d20-561c3cb91ae3">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_688ece9f-424f-4435-8065-3bb1db5ce7e1"
      id="F_992fec6c-3df5-41fb-9732-c5e0323d0f07">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_688ece9f-424f-4435-8065-3bb1db5ce7e1"
      id="F_a44e09f6-22c9-434f-be92-340f7b28dc44">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_688ece9f-424f-4435-8065-3bb1db5ce7e1"
      id="F_4b782e35-e8bc-48da-a01d-8b710d28ed64">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_688ece9f-424f-4435-8065-3bb1db5ce7e1"
      id="F_8096bd82-7da5-4e53-8795-51fd31c4dcb0">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_688ece9f-424f-4435-8065-3bb1db5ce7e1"
      id="F_630fb895-066f-4433-8f4e-35ba17df9e4b">&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;2,824,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_688ece9f-424f-4435-8065-3bb1db5ce7e1"
      decimals="0"
      id="F_732b0994-dc36-47ee-91bc-652fd2ea78d5"
      unitRef="U_USD">2824000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
