<?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_9efef7dd-e772-42cc-879f-d5304b498e02">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-30</startDate>
            <endDate>2026-07-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_9efef7dd-e772-42cc-879f-d5304b498e02"
      id="F_1102dac4-a165-44eb-ba2f-82b142cc288b">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_9efef7dd-e772-42cc-879f-d5304b498e02"
      id="F_91c3ccdb-8ad8-4143-87e3-530192b03ded">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_9efef7dd-e772-42cc-879f-d5304b498e02"
      id="F_0f023d90-7d94-48d7-bd4a-cc544802f3d1">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_9efef7dd-e772-42cc-879f-d5304b498e02"
      id="F_7b2fb235-3feb-466c-9b39-505ca0cc8289">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_9efef7dd-e772-42cc-879f-d5304b498e02"
      id="F_555f0780-5ca2-4309-8e21-f8a0b1458838">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9efef7dd-e772-42cc-879f-d5304b498e02"
      id="F_895168dc-5a84-4ad4-a4c2-f328b76e19ec">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_9efef7dd-e772-42cc-879f-d5304b498e02"
      id="F_3538b89a-8a94-48b5-ba71-5eb25e1e91ef">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_9efef7dd-e772-42cc-879f-d5304b498e02"
      id="F_244b1378-edbf-4c0e-9e97-ca574b618534">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_9efef7dd-e772-42cc-879f-d5304b498e02"
      id="F_4215769b-bdd6-427c-a831-311b31d5be5c">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_9efef7dd-e772-42cc-879f-d5304b498e02"
      id="F_c5a796d3-9bba-4673-bff6-3a7946d60f09">&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;2,075,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_9efef7dd-e772-42cc-879f-d5304b498e02"
      decimals="-3"
      id="F_19d7c622-06a2-477d-943c-a079e4c72cbd"
      unitRef="U_USD">2075000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
