<?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_3bd16f84-4bd1-4266-8441-0f7b84af1055">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-20</startDate>
            <endDate>2026-08-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_3bd16f84-4bd1-4266-8441-0f7b84af1055"
      id="F_3e0b68dd-c12d-40ef-9115-d96d8d06a784">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_3bd16f84-4bd1-4266-8441-0f7b84af1055"
      id="F_8bc316d0-50e1-4245-b68f-0198e9200361">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_3bd16f84-4bd1-4266-8441-0f7b84af1055"
      id="F_a3c114ce-c0fb-4945-aa06-1bd2b83460ed">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_3bd16f84-4bd1-4266-8441-0f7b84af1055"
      id="F_0ff54880-7398-4f54-b3d0-f1efa8468e5e">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_3bd16f84-4bd1-4266-8441-0f7b84af1055"
      id="F_9456e32f-2cbc-427c-bc30-4728aa0dedc6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_3bd16f84-4bd1-4266-8441-0f7b84af1055"
      id="F_f5bdf9fd-d700-4172-bedd-7075c886a645">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_3bd16f84-4bd1-4266-8441-0f7b84af1055"
      id="F_b36a22ed-c8b4-4593-9d12-abc18e87fee6">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3bd16f84-4bd1-4266-8441-0f7b84af1055"
      id="F_eeddeaa6-9a6b-4ad6-998c-35a9e85a3621">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3bd16f84-4bd1-4266-8441-0f7b84af1055"
      id="F_a975896b-f160-46c2-9f50-b14a451c3364">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_3bd16f84-4bd1-4266-8441-0f7b84af1055"
      id="F_5d385f5d-7f98-4527-ba24-70cf2d2e7c75">&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;6,500,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_3bd16f84-4bd1-4266-8441-0f7b84af1055"
      decimals="-3"
      id="F_f78a3fef-6d1c-4346-807f-a950308ebb3a"
      unitRef="U_USD">6500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
