<?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_e175e295-a4a5-4523-bb14-9ea26da2a31c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-18</startDate>
            <endDate>2026-08-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_e175e295-a4a5-4523-bb14-9ea26da2a31c"
      id="F_1cf62354-21ed-4ae9-8bc0-2807c7915eb7">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e175e295-a4a5-4523-bb14-9ea26da2a31c"
      id="F_ce48834b-dd09-46b4-8c95-aa1841141753">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_e175e295-a4a5-4523-bb14-9ea26da2a31c"
      id="F_36f68c0a-ee99-4bd0-b276-0115e1c6abe3">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_e175e295-a4a5-4523-bb14-9ea26da2a31c"
      id="F_349b9bd6-b503-4d7b-b7b8-2177e379d9a0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_e175e295-a4a5-4523-bb14-9ea26da2a31c"
      id="F_867028ea-d740-4165-a20c-0591d28b554d">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_e175e295-a4a5-4523-bb14-9ea26da2a31c"
      id="F_1c9d9c1d-0a9a-4882-ad38-a2bf42d335fa">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_e175e295-a4a5-4523-bb14-9ea26da2a31c"
      id="F_880932d7-fb58-4f4b-b252-efc8cefe341e">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_e175e295-a4a5-4523-bb14-9ea26da2a31c"
      id="F_7b182c8c-adf7-4e61-8f6a-4d84055d381c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_e175e295-a4a5-4523-bb14-9ea26da2a31c"
      id="F_0e87d61a-fab9-406d-85ed-46b588d4cf68">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_e175e295-a4a5-4523-bb14-9ea26da2a31c"
      id="F_cc4396c9-274f-4f5b-907f-b921c2dc24cf">&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;14,280,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_e175e295-a4a5-4523-bb14-9ea26da2a31c"
      decimals="-3"
      id="F_4e4c56d8-d090-4427-8c93-673aa1e9af25"
      unitRef="U_USD">14280000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
