<?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_6f8aee55-94b5-4d7f-a4f9-134cbe418902">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6f8aee55-94b5-4d7f-a4f9-134cbe418902"
      id="F_c0b78fd4-0ef5-47be-b97b-74ee7e51e611">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_6f8aee55-94b5-4d7f-a4f9-134cbe418902"
      id="F_49a868e8-b0df-45d2-a16a-86ddab11042f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_6f8aee55-94b5-4d7f-a4f9-134cbe418902"
      id="F_d93db4ec-7f21-4d5a-be1b-30d712412e5b">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_6f8aee55-94b5-4d7f-a4f9-134cbe418902"
      id="F_0c7c4183-73f4-4152-be33-942d9dda9632">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_6f8aee55-94b5-4d7f-a4f9-134cbe418902"
      id="F_fce60ab1-1375-4803-b4ac-e4069890f835">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_6f8aee55-94b5-4d7f-a4f9-134cbe418902"
      id="F_eafa5c0a-edbd-4b33-a822-29c759a25ffc">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_6f8aee55-94b5-4d7f-a4f9-134cbe418902"
      id="F_dbd1d316-2866-4803-9861-0641b4795eb0">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_6f8aee55-94b5-4d7f-a4f9-134cbe418902"
      id="F_c0f983c4-60e8-4eda-98da-1c0490247787">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_6f8aee55-94b5-4d7f-a4f9-134cbe418902"
      id="F_01531f00-eb4c-448a-bcdb-495b35276abe">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_6f8aee55-94b5-4d7f-a4f9-134cbe418902"
      id="F_d9ba6e67-4658-4247-9a54-fd237d5d1e9e">&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;2,052,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_6f8aee55-94b5-4d7f-a4f9-134cbe418902"
      decimals="-3"
      id="F_7c2b4a85-171b-411d-800f-da9319c53654"
      unitRef="U_USD">2052000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
