<?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_91fc62b6-ca33-49fa-b78d-18ca02daa283">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-24</startDate>
            <endDate>2026-07-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_91fc62b6-ca33-49fa-b78d-18ca02daa283"
      id="F_10cffdd9-2d93-4610-ba72-554a2a74a379">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_91fc62b6-ca33-49fa-b78d-18ca02daa283"
      id="F_61770f4f-6db7-4935-a8c4-76847a52e0cc">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_91fc62b6-ca33-49fa-b78d-18ca02daa283"
      id="F_b3deb831-6bed-4484-ad7e-e128406b8a46">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_91fc62b6-ca33-49fa-b78d-18ca02daa283"
      id="F_21ba048e-eef4-4843-b21d-9ba148ec7008">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_91fc62b6-ca33-49fa-b78d-18ca02daa283"
      id="F_1efe5fc6-345e-4a26-b2fe-ae90a5dcfc72">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_91fc62b6-ca33-49fa-b78d-18ca02daa283"
      id="F_88020aff-b745-4d1e-a161-50068c070225">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_91fc62b6-ca33-49fa-b78d-18ca02daa283"
      id="F_a269ad45-1b70-4f0e-86aa-2d738270d948">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_91fc62b6-ca33-49fa-b78d-18ca02daa283"
      id="F_74b74a55-8ceb-4d02-b882-e9e12acef29f">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_91fc62b6-ca33-49fa-b78d-18ca02daa283"
      id="F_7c63eee6-4c38-484b-b512-3f0d38e23aa7">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_91fc62b6-ca33-49fa-b78d-18ca02daa283"
      id="F_369c77b3-8f8c-456e-a96f-cdfdef0ecd63">&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;5,996,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_91fc62b6-ca33-49fa-b78d-18ca02daa283"
      decimals="-3"
      id="F_f223d91c-9522-48ad-b243-9d997a774814"
      unitRef="U_USD">5996000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
