<?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_a7dfd449-cd82-48bf-a86f-f5bcf9286bbf">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-25</startDate>
            <endDate>2026-08-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_a7dfd449-cd82-48bf-a86f-f5bcf9286bbf"
      id="F_e072f4f5-f591-48b9-964e-539dfa06314e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_a7dfd449-cd82-48bf-a86f-f5bcf9286bbf"
      id="F_13102936-08ad-4a77-888a-1ca36e73719b">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a7dfd449-cd82-48bf-a86f-f5bcf9286bbf"
      id="F_a238f916-150e-4261-bd0d-d5c9137b06ee">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_a7dfd449-cd82-48bf-a86f-f5bcf9286bbf"
      id="F_74bb7b1d-bbe7-47da-986a-83599bc9603f">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_a7dfd449-cd82-48bf-a86f-f5bcf9286bbf"
      id="F_3a7da97f-4f5c-4700-ad8c-4a9ca37f9416">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_a7dfd449-cd82-48bf-a86f-f5bcf9286bbf"
      id="F_62c8734b-1003-4d9f-bff4-9ed4c200b423">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_a7dfd449-cd82-48bf-a86f-f5bcf9286bbf"
      id="F_9de6014c-d18d-427e-9f3b-43eb6d524ab0">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a7dfd449-cd82-48bf-a86f-f5bcf9286bbf"
      id="F_d2859cdd-0656-467a-87b5-5db08f04c7a7">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_a7dfd449-cd82-48bf-a86f-f5bcf9286bbf"
      id="F_bfe8f330-22e9-4f44-84e3-8fea315206be">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a7dfd449-cd82-48bf-a86f-f5bcf9286bbf"
      id="F_2e257d80-8e6d-4391-8a24-ffa8c21167a6">&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;190,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_a7dfd449-cd82-48bf-a86f-f5bcf9286bbf"
      decimals="-3"
      id="F_ec42f9c9-c776-4b0b-b0e6-562b69f2e813"
      unitRef="U_USD">190000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
