<?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_0c97a847-3a11-44a0-a3cd-f7e665512778">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-16</startDate>
            <endDate>2026-09-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_0c97a847-3a11-44a0-a3cd-f7e665512778"
      id="F_7fdd6e2d-fb8a-404f-9273-c484c756d602">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_0c97a847-3a11-44a0-a3cd-f7e665512778"
      id="F_902012de-a2a8-4081-b4d7-d7ea290d542e">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0c97a847-3a11-44a0-a3cd-f7e665512778"
      id="F_3a5b684c-1984-400b-994a-7de45ea9ec13">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_0c97a847-3a11-44a0-a3cd-f7e665512778"
      id="F_0cc3df3d-b2ed-47dd-91a0-a48b8a534e33">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_0c97a847-3a11-44a0-a3cd-f7e665512778"
      id="F_d4131932-93d0-4847-824f-c48b80afb7d7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_0c97a847-3a11-44a0-a3cd-f7e665512778"
      id="F_ce0453f9-0f82-4265-8133-eba48c81e06d">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_0c97a847-3a11-44a0-a3cd-f7e665512778"
      id="F_5bb2d3ee-ad8e-4bad-bba9-3f29a2ac5320">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_0c97a847-3a11-44a0-a3cd-f7e665512778"
      id="F_74bbeb12-8eff-4b25-8fe0-2b45d641988f">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_0c97a847-3a11-44a0-a3cd-f7e665512778"
      id="F_131170a9-5bc4-43ff-b4a8-af057b7f6279">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_0c97a847-3a11-44a0-a3cd-f7e665512778"
      id="F_3dd704ba-a4c0-48cb-b046-79f7b92ed50c">&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;3,000,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_0c97a847-3a11-44a0-a3cd-f7e665512778"
      decimals="-6"
      id="F_af6bc044-c515-4e88-a437-f40b9cb65760"
      unitRef="U_USD">3000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
