<?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_442e021a-cc36-40ff-942a-b5439e182215">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_442e021a-cc36-40ff-942a-b5439e182215"
      id="F_e72c1dde-ccae-474b-abb0-736067d3738a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_442e021a-cc36-40ff-942a-b5439e182215"
      id="F_501efa83-8a5b-4717-a430-2f1ed0145fce">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_442e021a-cc36-40ff-942a-b5439e182215"
      id="F_d7807977-2ea5-42b9-81b5-90e276d8ccd7">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_442e021a-cc36-40ff-942a-b5439e182215"
      id="F_573fbd62-c3f1-4760-bd58-60f3e3175f9b">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_442e021a-cc36-40ff-942a-b5439e182215"
      id="F_d54c7c40-ae2f-4cad-9c95-5f8721d0dda6">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_442e021a-cc36-40ff-942a-b5439e182215"
      id="F_6817d340-a75b-4558-a8db-43478e29fa95">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_442e021a-cc36-40ff-942a-b5439e182215"
      id="F_4dca7cc7-c4ff-44bc-8669-252868f847c7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_442e021a-cc36-40ff-942a-b5439e182215"
      id="F_bfabd97f-af53-4262-adb4-3c09c7ccadcf">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_442e021a-cc36-40ff-942a-b5439e182215"
      id="F_4a10a06c-ae16-4f30-a0fb-f836c91caa08">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_442e021a-cc36-40ff-942a-b5439e182215"
      id="F_5552c709-a23e-4bce-92cb-68ee5bae036b">&lt;p style="tab-size:26.66px;font-size:12pt;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;714,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_442e021a-cc36-40ff-942a-b5439e182215"
      decimals="-3"
      id="F_fed97535-cccb-48c9-ac9c-3b1bd8eb9a09"
      unitRef="U_USD">714000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
