<?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_1850fb29-3f89-43e5-877c-381d2838f2bd">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_1850fb29-3f89-43e5-877c-381d2838f2bd"
      id="F_191bae65-626c-4217-81bc-a0f4ec24fdea">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_1850fb29-3f89-43e5-877c-381d2838f2bd"
      id="F_7a379ac8-514d-4bd4-a4f5-898e7c6c2670">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_1850fb29-3f89-43e5-877c-381d2838f2bd"
      id="F_3c5c2b0d-7b2a-4bce-9ef5-2ccc8ac5d667">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_1850fb29-3f89-43e5-877c-381d2838f2bd"
      id="F_fbcaf954-c4e7-48ca-9485-78d96a1fe180">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_1850fb29-3f89-43e5-877c-381d2838f2bd"
      id="F_17556336-a9e0-40b4-8124-0a521298ed39">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1850fb29-3f89-43e5-877c-381d2838f2bd"
      id="F_098b609d-e01b-4a5f-9ab1-1fb880812a0f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_1850fb29-3f89-43e5-877c-381d2838f2bd"
      id="F_6f1824e3-676e-4cfa-b01f-8d5c8ed66d32">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_1850fb29-3f89-43e5-877c-381d2838f2bd"
      id="F_624ca658-d270-4086-a00b-25e21722c826">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_1850fb29-3f89-43e5-877c-381d2838f2bd"
      id="F_3a06b256-d654-4dac-965b-dacd5499eef9">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1850fb29-3f89-43e5-877c-381d2838f2bd"
      id="F_48549855-9d94-4259-96a6-3d96634a4b63">&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,144,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_1850fb29-3f89-43e5-877c-381d2838f2bd"
      decimals="-3"
      id="F_cca8ff2c-eaa6-4e59-b36c-022b83e2df68"
      unitRef="U_USD">1144000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
