<?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_8d364cba-1325-41af-9c8d-6f73e7cb895c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-13</startDate>
            <endDate>2026-07-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_8d364cba-1325-41af-9c8d-6f73e7cb895c"
      id="F_6da8b93f-7f5a-4fcd-a72b-74453ce0109b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_8d364cba-1325-41af-9c8d-6f73e7cb895c"
      id="F_0269d9e8-c9c2-4a63-a15b-d8ab892c1436">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_8d364cba-1325-41af-9c8d-6f73e7cb895c"
      id="F_50a29225-6b1f-43c3-b9af-204492b87363">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_8d364cba-1325-41af-9c8d-6f73e7cb895c"
      id="F_3b1cb202-4adc-47e5-8b82-d08c728cabee">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_8d364cba-1325-41af-9c8d-6f73e7cb895c"
      id="F_3d52d3e0-1f43-4d3a-a7a5-0db4caf94f0d">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_8d364cba-1325-41af-9c8d-6f73e7cb895c"
      id="F_44d35c44-9089-4cea-bec8-47bf7cb53b28">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_8d364cba-1325-41af-9c8d-6f73e7cb895c"
      id="F_9350a0ed-7640-4bc7-b0ff-ba1af2dbc8b4">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_8d364cba-1325-41af-9c8d-6f73e7cb895c"
      id="F_b53c5d40-9698-43ff-bca2-a2f212e736ff">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8d364cba-1325-41af-9c8d-6f73e7cb895c"
      id="F_61f788ec-319e-478f-8854-31e0a89d2695">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_8d364cba-1325-41af-9c8d-6f73e7cb895c"
      id="F_ecad9f08-a812-4037-8387-23d534dbe159">&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;813,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_8d364cba-1325-41af-9c8d-6f73e7cb895c"
      decimals="-3"
      id="F_fbbc8e97-27e4-4f36-b964-287b3eb3bf7f"
      unitRef="U_USD">813000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
