<?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_55e6dfea-61fd-4bf1-b2a3-0c3e4a96814c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-25</startDate>
            <endDate>2026-06-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_55e6dfea-61fd-4bf1-b2a3-0c3e4a96814c"
      id="F_a8816f25-abf3-40b1-b2ed-0adff7a7f81c">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_55e6dfea-61fd-4bf1-b2a3-0c3e4a96814c"
      id="F_b694ba27-6bc1-425c-b377-ba290eba6088">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_55e6dfea-61fd-4bf1-b2a3-0c3e4a96814c"
      id="F_189a5b14-4510-4b27-a83c-0f471e583097">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_55e6dfea-61fd-4bf1-b2a3-0c3e4a96814c"
      id="F_f38d3284-33cd-4bdd-b56c-46d7f58595b8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_55e6dfea-61fd-4bf1-b2a3-0c3e4a96814c"
      id="F_6d795015-e3ae-4ec6-af87-441d4ce908ed">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_55e6dfea-61fd-4bf1-b2a3-0c3e4a96814c"
      id="F_02040f47-381b-40bd-86f6-c640cd6f2b01">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_55e6dfea-61fd-4bf1-b2a3-0c3e4a96814c"
      id="F_80f935e8-6360-4d0e-b693-f467d96e9470">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_55e6dfea-61fd-4bf1-b2a3-0c3e4a96814c"
      id="F_5d6a5e34-11f5-4902-a26b-91f36ba9a2df">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_55e6dfea-61fd-4bf1-b2a3-0c3e4a96814c"
      id="F_9decbd9c-8ce4-4b9c-8a35-9391dc3dead7">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_55e6dfea-61fd-4bf1-b2a3-0c3e4a96814c"
      id="F_3a44761e-001a-49b4-b5be-b7bc4788ec06">&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;12,112,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_55e6dfea-61fd-4bf1-b2a3-0c3e4a96814c"
      decimals="-3"
      id="F_85a521a4-b1de-47a0-ae00-9bdffe7b1abe"
      unitRef="U_USD">12112000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
