<?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_122da8ac-631f-42a7-8c69-891d6d354fcd">
        <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>
    <ffd:FormTp
      contextRef="C_122da8ac-631f-42a7-8c69-891d6d354fcd"
      id="F_bae14b49-34e7-4bcf-b967-f36895edf61d">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_122da8ac-631f-42a7-8c69-891d6d354fcd"
      id="F_8435a9cb-67f1-4949-aee4-8f007e5337f1">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_122da8ac-631f-42a7-8c69-891d6d354fcd"
      id="F_5f103e7f-0519-42a2-816d-37f36d1a6cea">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_122da8ac-631f-42a7-8c69-891d6d354fcd"
      id="F_6a614209-daef-4389-a524-b23a66457299">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_122da8ac-631f-42a7-8c69-891d6d354fcd"
      id="F_a210a4da-c1b4-4097-a7fe-14ef85fafdb7">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_122da8ac-631f-42a7-8c69-891d6d354fcd"
      id="F_a979931b-8b76-4c38-b284-d1fd1552b147">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_122da8ac-631f-42a7-8c69-891d6d354fcd"
      id="F_cd8d69bc-b6be-4c17-81c9-9656687c8f70">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_122da8ac-631f-42a7-8c69-891d6d354fcd"
      id="F_ccfca50a-62e8-4772-8894-f7ed7ebcb00a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_122da8ac-631f-42a7-8c69-891d6d354fcd"
      id="F_36ad3d04-beec-4977-8905-1d982ebd46b1">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_122da8ac-631f-42a7-8c69-891d6d354fcd"
      id="F_018608fc-fb15-485d-abbd-f759d3f26fd2">&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;4,632,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_122da8ac-631f-42a7-8c69-891d6d354fcd"
      decimals="0"
      id="F_16c7a180-90f8-4e90-8499-0c96ae7f6bc3"
      unitRef="U_USD">4632000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
