<?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_bb72119f-e5af-4a0d-a194-8b7ccee128e8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-12</startDate>
            <endDate>2026-08-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bb72119f-e5af-4a0d-a194-8b7ccee128e8"
      id="F_6a587b98-34a1-42f4-bfa4-170733289863">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_bb72119f-e5af-4a0d-a194-8b7ccee128e8"
      id="F_4cfeff3e-ff32-48cb-9970-6cd4bb5326ce">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_bb72119f-e5af-4a0d-a194-8b7ccee128e8"
      id="F_227b5e92-47d0-410a-9565-31c5d63d3055">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_bb72119f-e5af-4a0d-a194-8b7ccee128e8"
      id="F_25e0c0a7-cfd9-4077-ae86-130c96a5aaf2">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_bb72119f-e5af-4a0d-a194-8b7ccee128e8"
      id="F_089c85e3-fa35-4f44-bd9c-8f668709ae2b">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_bb72119f-e5af-4a0d-a194-8b7ccee128e8"
      id="F_19303602-c298-44d7-a90d-429d714c0e02">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_bb72119f-e5af-4a0d-a194-8b7ccee128e8"
      id="F_6fad4595-ad89-4d7c-83f5-cb4b95830fe6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_bb72119f-e5af-4a0d-a194-8b7ccee128e8"
      id="F_a7c7ea7a-0403-44d8-a08d-95c0daed29e0">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_bb72119f-e5af-4a0d-a194-8b7ccee128e8"
      id="F_972dc610-9112-4a3e-a9e1-433d5674ea60">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_bb72119f-e5af-4a0d-a194-8b7ccee128e8"
      id="F_4a83a479-6860-43ac-b78b-6ac133e7b30b">&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;5,324,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_bb72119f-e5af-4a0d-a194-8b7ccee128e8"
      decimals="-3"
      id="F_9b3270a8-7fe8-4a0f-b0c7-7d0bc76e5a08"
      unitRef="U_USD">5324000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
