<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_f43f7e80-12da-4034-a2b0-f8bc61d6ed1b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_f43f7e80-12da-4034-a2b0-f8bc61d6ed1b"
      id="F_7205162c-6c29-4527-acad-c84beaa4fb68">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_f43f7e80-12da-4034-a2b0-f8bc61d6ed1b"
      id="F_73a26a0e-0f24-4b17-a284-a8a461761430">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_f43f7e80-12da-4034-a2b0-f8bc61d6ed1b"
      id="F_80f57818-6506-4b37-b5cd-c5af7957acf0">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_f43f7e80-12da-4034-a2b0-f8bc61d6ed1b"
      id="F_3d2b1b36-75a5-4812-aedd-172d96cea2a4">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_f43f7e80-12da-4034-a2b0-f8bc61d6ed1b"
      id="F_04e9d914-0e47-40ea-8c8e-e50e634c9800">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f43f7e80-12da-4034-a2b0-f8bc61d6ed1b"
      id="F_09eb6098-672a-4fbd-95d2-5e4e79ba2609">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_f43f7e80-12da-4034-a2b0-f8bc61d6ed1b"
      id="F_2506a2d0-114f-4b78-8113-0ee015ecd8cb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_f43f7e80-12da-4034-a2b0-f8bc61d6ed1b"
      id="F_0082a817-0967-4cfb-b573-646d0ad221a2">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_f43f7e80-12da-4034-a2b0-f8bc61d6ed1b"
      id="F_40ee633d-4bae-43ca-b063-d49427979a40">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_f43f7e80-12da-4034-a2b0-f8bc61d6ed1b"
      id="F_070464f3-45cd-43d0-81c7-8b090d7813d9">&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,295,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_f43f7e80-12da-4034-a2b0-f8bc61d6ed1b"
      decimals="-3"
      id="F_8820f33d-7923-4356-8a03-949e27e40422"
      unitRef="U_USD">1295000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
