<?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_7e7e4cb6-84b8-4644-ad31-1e1106921e32">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_7e7e4cb6-84b8-4644-ad31-1e1106921e32"
      id="F_4381ae09-9528-40d5-9ae8-f548c531bfff">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7e7e4cb6-84b8-4644-ad31-1e1106921e32"
      id="F_f492affe-975c-4feb-83aa-2d98bd665a09">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_7e7e4cb6-84b8-4644-ad31-1e1106921e32"
      id="F_23a86898-06b2-4f17-a8b4-00e15eb677b2">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_7e7e4cb6-84b8-4644-ad31-1e1106921e32"
      id="F_a5baea26-5663-4882-b819-7821b2b74fd6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_7e7e4cb6-84b8-4644-ad31-1e1106921e32"
      id="F_346916da-9ae8-455f-b659-bb647d1ea061">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_7e7e4cb6-84b8-4644-ad31-1e1106921e32"
      id="F_21974c67-100b-4f65-8958-b3b3dda0014f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_7e7e4cb6-84b8-4644-ad31-1e1106921e32"
      id="F_e9043437-1a3b-4dc0-aa2e-9f42503abb0c">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_7e7e4cb6-84b8-4644-ad31-1e1106921e32"
      id="F_09381210-1bb4-4dee-86b0-80eb4a4ca4e0">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_7e7e4cb6-84b8-4644-ad31-1e1106921e32"
      id="F_b7c05b08-cd62-4ee1-8ecf-6780c0fbdf18">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_7e7e4cb6-84b8-4644-ad31-1e1106921e32"
      id="F_35ceb17c-f424-4b79-b8df-c27957c1da75">&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;504,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_7e7e4cb6-84b8-4644-ad31-1e1106921e32"
      decimals="-3"
      id="F_b01e37d4-178c-40ee-8f54-54b0ec87e710"
      unitRef="U_USD">504000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
