<?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_7624fb7d-6f3d-4ecf-9fd1-b3975ba01e5d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-26</startDate>
            <endDate>2026-06-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_7624fb7d-6f3d-4ecf-9fd1-b3975ba01e5d"
      id="F_0d8dccb4-8574-4238-a8c3-83ef63b55346">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_7624fb7d-6f3d-4ecf-9fd1-b3975ba01e5d"
      id="F_d0a18ed4-c050-4200-a1ee-013efaef1c71">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_7624fb7d-6f3d-4ecf-9fd1-b3975ba01e5d"
      id="F_d8efb14b-c3a4-4c54-a577-786752fe13ca">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_7624fb7d-6f3d-4ecf-9fd1-b3975ba01e5d"
      id="F_434e4d28-e598-4c79-9882-b556ef34dfcd">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_7624fb7d-6f3d-4ecf-9fd1-b3975ba01e5d"
      id="F_3392527e-f105-46ce-bf37-64f9bdd9c70a">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7624fb7d-6f3d-4ecf-9fd1-b3975ba01e5d"
      id="F_3547713b-8db5-4bcf-82a1-6cc1cdd6132c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_7624fb7d-6f3d-4ecf-9fd1-b3975ba01e5d"
      id="F_b2438679-358d-4719-9498-c8d89d9f674b">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_7624fb7d-6f3d-4ecf-9fd1-b3975ba01e5d"
      id="F_3c131006-01fc-4693-a5fe-e7bfe48fe40e">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_7624fb7d-6f3d-4ecf-9fd1-b3975ba01e5d"
      id="F_d950ba82-7b59-46d7-8e7e-7a9b744240fd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_7624fb7d-6f3d-4ecf-9fd1-b3975ba01e5d"
      id="F_5bef7f21-bf8d-4d11-92dc-fe1d3af6bd21">&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_7624fb7d-6f3d-4ecf-9fd1-b3975ba01e5d"
      decimals="-3"
      id="F_cbd9ef7b-cfe9-4585-8d40-27ce9e018e21"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
