<?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_86499dd0-b475-4d49-aab8-7900acf42f18">
        <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:CombinedProspectusTableNa
      contextRef="C_86499dd0-b475-4d49-aab8-7900acf42f18"
      id="F_82d297f1-b5ba-4989-9121-d2c6e0b9f283">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_86499dd0-b475-4d49-aab8-7900acf42f18"
      id="F_89890ca0-6790-4b92-bdc1-9c0a370807dd">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_86499dd0-b475-4d49-aab8-7900acf42f18"
      id="F_eb784dec-be85-4684-a151-013413b6e64e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_86499dd0-b475-4d49-aab8-7900acf42f18"
      id="F_d155afab-57d5-4e30-aafe-02f13b1bd209">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_86499dd0-b475-4d49-aab8-7900acf42f18"
      id="F_baad78f5-f09c-42cd-9639-75f0043d0a4d">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_86499dd0-b475-4d49-aab8-7900acf42f18"
      id="F_29a1f61a-fca9-4fb4-bc57-360903589d7b">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_86499dd0-b475-4d49-aab8-7900acf42f18"
      id="F_6842823b-0928-4ac4-bef3-f87c10136d8f">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_86499dd0-b475-4d49-aab8-7900acf42f18"
      id="F_a94b4d83-c00f-4ef1-8829-bad3525aa48d">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_86499dd0-b475-4d49-aab8-7900acf42f18"
      id="F_d48fe880-106b-4a5d-b307-471917f5e464">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_86499dd0-b475-4d49-aab8-7900acf42f18"
      id="F_a290c280-463d-4e00-b628-3157dcf336f9">&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;500,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_86499dd0-b475-4d49-aab8-7900acf42f18"
      decimals="-3"
      id="F_db4debb2-8473-4357-94ae-43b9a22056ad"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
