<?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_a4744415-5510-4687-9a76-a2d7ed5f2033">
        <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:RegnFileNb
      contextRef="C_a4744415-5510-4687-9a76-a2d7ed5f2033"
      id="F_a7a93070-8e91-4264-a0fd-33b9c36c37ab">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_a4744415-5510-4687-9a76-a2d7ed5f2033"
      id="F_a12ca5f6-7f4e-41c6-b210-386fd6e5e1b6">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_a4744415-5510-4687-9a76-a2d7ed5f2033"
      id="F_0811a5a1-6567-4729-b1c0-d4a488099940">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_a4744415-5510-4687-9a76-a2d7ed5f2033"
      id="F_9985467e-964a-4972-a286-eccce027f7e1">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_a4744415-5510-4687-9a76-a2d7ed5f2033"
      id="F_d2782c37-90fb-422a-af8d-e23b959198c5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_a4744415-5510-4687-9a76-a2d7ed5f2033"
      id="F_4b1839c3-bae1-4cca-b7ca-3672637f0ce2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_a4744415-5510-4687-9a76-a2d7ed5f2033"
      id="F_cdbc2be9-0846-4eb9-b60d-0ee6995a0296">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a4744415-5510-4687-9a76-a2d7ed5f2033"
      id="F_ea3a38ce-e0c6-4453-9096-f70095d71709">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_a4744415-5510-4687-9a76-a2d7ed5f2033"
      id="F_9c70c7d0-eedc-4393-8514-4d49b445995d">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a4744415-5510-4687-9a76-a2d7ed5f2033"
      id="F_8b9419d0-8d3c-480b-a549-286420c192f3">&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,079,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_a4744415-5510-4687-9a76-a2d7ed5f2033"
      decimals="0"
      id="F_e997f796-ff6e-4922-9591-2ec8545d9514"
      unitRef="U_USD">1079000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
