<?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_053d8bd7-30e5-4ef3-b764-d888534b70ce">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_053d8bd7-30e5-4ef3-b764-d888534b70ce"
      id="F_78bb0791-ca70-461a-8144-550fa27e33d7">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_053d8bd7-30e5-4ef3-b764-d888534b70ce"
      id="F_cfb64249-a7dc-4a63-b561-5fecd26f89dd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_053d8bd7-30e5-4ef3-b764-d888534b70ce"
      id="F_da814d3f-94b3-4ec2-8288-bc9f3dbee56a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_053d8bd7-30e5-4ef3-b764-d888534b70ce"
      id="F_ed7f12a5-2023-49b8-834b-0ce8541c5ee6">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_053d8bd7-30e5-4ef3-b764-d888534b70ce"
      id="F_5a5841be-6106-432e-9a98-444c0f04d7ab">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_053d8bd7-30e5-4ef3-b764-d888534b70ce"
      id="F_70de7a39-d3dd-4c49-9a90-d87a60869f65">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_053d8bd7-30e5-4ef3-b764-d888534b70ce"
      id="F_2a8a7a1c-5dcf-4329-b11e-0a89e49843bd">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_053d8bd7-30e5-4ef3-b764-d888534b70ce"
      id="F_a9928b23-47d9-4216-8a4e-fc4e52853510">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_053d8bd7-30e5-4ef3-b764-d888534b70ce"
      id="F_05a80434-655f-40f6-9891-50b1cbbb9dac">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_053d8bd7-30e5-4ef3-b764-d888534b70ce"
      id="F_5aac2fc5-9dfd-4178-9675-bbdeaf8723da">&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;8,024,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_053d8bd7-30e5-4ef3-b764-d888534b70ce"
      decimals="-3"
      id="F_cdff01ef-86b2-4947-9950-1e673ed791f1"
      unitRef="U_USD">8024000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
