<?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_0e87f116-69b9-4541-a8a7-f92cf0866f89">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-28</startDate>
            <endDate>2026-09-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_0e87f116-69b9-4541-a8a7-f92cf0866f89"
      id="F_af229bf8-5742-4ddc-82ab-1d168005bc99">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_0e87f116-69b9-4541-a8a7-f92cf0866f89"
      id="F_f3147056-f5d1-42ea-ba80-0cd06531f580">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_0e87f116-69b9-4541-a8a7-f92cf0866f89"
      id="F_9a5a4cc1-d0b5-4225-9775-d0f24d1495c6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_0e87f116-69b9-4541-a8a7-f92cf0866f89"
      id="F_bc4272f6-612a-4c6b-ad6c-58ebed74a84e">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_0e87f116-69b9-4541-a8a7-f92cf0866f89"
      id="F_7be5f645-c062-40bf-a474-8190b86c5fb5">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0e87f116-69b9-4541-a8a7-f92cf0866f89"
      id="F_53ceb792-0311-4bc0-af40-202c76e131c7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_0e87f116-69b9-4541-a8a7-f92cf0866f89"
      id="F_2c12c1d1-5ef8-422b-b022-f86dc3fde09f">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_0e87f116-69b9-4541-a8a7-f92cf0866f89"
      id="F_79c6ef00-d895-461c-b2d8-f1e7ce526998">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_0e87f116-69b9-4541-a8a7-f92cf0866f89"
      id="F_c0317e9b-847f-4b86-bd66-bf2443e0dd00">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_0e87f116-69b9-4541-a8a7-f92cf0866f89"
      id="F_27b7568d-af95-40d5-b4cb-7f78c37aaa02">&lt;p style="tab-size:26.66px;font-size:12pt;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;1,050,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_0e87f116-69b9-4541-a8a7-f92cf0866f89"
      decimals="-3"
      id="F_16ffed91-9958-4cf8-b670-b70e38a425c6"
      unitRef="U_USD">1050000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
