<?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_e1f5200f-a35c-4870-8ea2-2f66c281348a">
        <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>
    <ffd:FeeExhibitTp
      contextRef="C_e1f5200f-a35c-4870-8ea2-2f66c281348a"
      id="F_a9b885f5-bd54-42b1-b5a0-e34dcc394c9d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_e1f5200f-a35c-4870-8ea2-2f66c281348a"
      id="F_bf185327-24da-47a7-80c6-00e808f66bb8">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_e1f5200f-a35c-4870-8ea2-2f66c281348a"
      id="F_87fb99d7-0021-4bc2-b455-4845a80b755b">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_e1f5200f-a35c-4870-8ea2-2f66c281348a"
      id="F_4b7da086-4816-4ffb-909c-9050ea11eb4d">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e1f5200f-a35c-4870-8ea2-2f66c281348a"
      id="F_304bb564-c50e-4ad8-bfda-a59d7493c5b8">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e1f5200f-a35c-4870-8ea2-2f66c281348a"
      id="F_33a8c8af-99e2-4ade-8aba-7bfd9851b39a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_e1f5200f-a35c-4870-8ea2-2f66c281348a"
      id="F_0a584499-74e1-4350-9a1f-5a3a76d588aa">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_e1f5200f-a35c-4870-8ea2-2f66c281348a"
      id="F_de8f233d-88b9-47cb-82a7-329b9472a42a">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_e1f5200f-a35c-4870-8ea2-2f66c281348a"
      id="F_c779a2ce-c5d1-4eb6-b5a9-a3c3bb819755">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e1f5200f-a35c-4870-8ea2-2f66c281348a"
      id="F_03cf037b-5b9f-4e04-a99c-8229ae698efe">&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;6,577,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_e1f5200f-a35c-4870-8ea2-2f66c281348a"
      decimals="-3"
      id="F_1ab93f0f-7da3-45a8-9b21-d53d0d25b474"
      unitRef="U_USD">6577000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
