<?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_42fc3b0d-6b86-4c75-bc44-f2bda9b9b417">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-17</startDate>
            <endDate>2026-07-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_42fc3b0d-6b86-4c75-bc44-f2bda9b9b417"
      id="F_a246899a-11fd-44aa-8cf3-782b3ae3a2d6">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_42fc3b0d-6b86-4c75-bc44-f2bda9b9b417"
      id="F_a71c8caf-70a9-4159-a4a4-ea9af93ad4a9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_42fc3b0d-6b86-4c75-bc44-f2bda9b9b417"
      id="F_b00cb96b-4387-4e1a-8873-253d95e0895a">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_42fc3b0d-6b86-4c75-bc44-f2bda9b9b417"
      id="F_583938c1-f01e-4419-880d-e6e6ded7d264">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_42fc3b0d-6b86-4c75-bc44-f2bda9b9b417"
      id="F_7f937330-bf90-475b-88bf-f41b987bcb19">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_42fc3b0d-6b86-4c75-bc44-f2bda9b9b417"
      id="F_081d9b0d-4745-4292-a0b2-8dd840093dcd">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_42fc3b0d-6b86-4c75-bc44-f2bda9b9b417"
      id="F_d538dd5a-a7b2-44ad-91bd-ae0858e599fa">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_42fc3b0d-6b86-4c75-bc44-f2bda9b9b417"
      id="F_8f78db73-3a8b-4623-a1be-f848f65bdab1">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_42fc3b0d-6b86-4c75-bc44-f2bda9b9b417"
      id="F_bee2cc39-5158-4a70-a35d-547711dd73da">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_42fc3b0d-6b86-4c75-bc44-f2bda9b9b417"
      id="F_cdffbbe0-ecea-4d2f-bd94-ad408337d963">&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;501,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_42fc3b0d-6b86-4c75-bc44-f2bda9b9b417"
      decimals="-3"
      id="F_a1b12115-19ca-4a6d-b0e2-f25a960ae1c9"
      unitRef="U_USD">501000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
