<?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_2e61f05f-ff72-4db0-9925-ec1c53173465">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-14</startDate>
            <endDate>2026-07-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_2e61f05f-ff72-4db0-9925-ec1c53173465"
      id="F_7e3a0926-a8ec-4445-8a1e-c8007d089263">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2e61f05f-ff72-4db0-9925-ec1c53173465"
      id="F_582a30e4-37b0-450b-8ff7-114d850e18d5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_2e61f05f-ff72-4db0-9925-ec1c53173465"
      id="F_a4498495-bc83-4d5d-8af9-80e281f32abb">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_2e61f05f-ff72-4db0-9925-ec1c53173465"
      id="F_feaa43e9-a6d4-4f23-92da-941998a6fd3d">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_2e61f05f-ff72-4db0-9925-ec1c53173465"
      id="F_421e7102-1f4b-47e6-96a3-c913f1e15d21">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_2e61f05f-ff72-4db0-9925-ec1c53173465"
      id="F_a7491479-2821-481a-a1e2-7f0fde86d514">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_2e61f05f-ff72-4db0-9925-ec1c53173465"
      id="F_0b59b75b-1e2c-4d0b-a16b-38b6133d188f">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_2e61f05f-ff72-4db0-9925-ec1c53173465"
      id="F_68ab8a9c-3c2a-4671-b1a4-3f43023da03d">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_2e61f05f-ff72-4db0-9925-ec1c53173465"
      id="F_e4979749-544c-45db-bfcf-9edbb6052812">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_2e61f05f-ff72-4db0-9925-ec1c53173465"
      id="F_e488e47f-b44e-4907-a957-0dbdbaf86ec0">&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,135,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_2e61f05f-ff72-4db0-9925-ec1c53173465"
      decimals="-3"
      id="F_a426bd94-aa1a-4f9f-a6f5-2b4e97144029"
      unitRef="U_USD">1135000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
