<?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_64c8dd54-2358-4748-9b51-7fd0ec9db732">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-11</startDate>
            <endDate>2026-08-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_64c8dd54-2358-4748-9b51-7fd0ec9db732"
      id="F_a6c8bd76-3a97-44a1-ad30-e9872995ccb6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_64c8dd54-2358-4748-9b51-7fd0ec9db732"
      id="F_5e67d8f3-15e9-4a7f-b271-7d0116840a47">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_64c8dd54-2358-4748-9b51-7fd0ec9db732"
      id="F_f6965c5e-f388-470a-adbd-74dd5a5f78d9">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_64c8dd54-2358-4748-9b51-7fd0ec9db732"
      id="F_a0f29286-2833-42f0-8b5d-1c2c394e1b38">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_64c8dd54-2358-4748-9b51-7fd0ec9db732"
      id="F_4090ae42-b10b-4984-a106-c90f30798129">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_64c8dd54-2358-4748-9b51-7fd0ec9db732"
      id="F_0f90cd07-6ff3-4319-96b8-fb3a63e5748a">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_64c8dd54-2358-4748-9b51-7fd0ec9db732"
      id="F_d386b071-a510-4750-afda-ed927a0ead18">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_64c8dd54-2358-4748-9b51-7fd0ec9db732"
      id="F_3faecebf-2053-4536-84ea-28f460932ed8">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_64c8dd54-2358-4748-9b51-7fd0ec9db732"
      id="F_5c879d32-6d3a-457d-b993-60022fd08b82">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_64c8dd54-2358-4748-9b51-7fd0ec9db732"
      id="F_3e1aeeb8-2a35-41bf-9d88-63be0193f3dc">&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;505,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_64c8dd54-2358-4748-9b51-7fd0ec9db732"
      decimals="-3"
      id="F_dd243222-5413-43eb-9e4b-9ceb9d070037"
      unitRef="U_USD">505000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
