<?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_708a7a03-f0d0-4d65-a318-b7090c198dcf">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-05</startDate>
            <endDate>2026-08-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_708a7a03-f0d0-4d65-a318-b7090c198dcf"
      id="F_1d6ca7b7-c5e3-40ee-af66-f6e89c8ed59b">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_708a7a03-f0d0-4d65-a318-b7090c198dcf"
      id="F_64a133a9-6c55-4d75-9995-b1b1eed2a37e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_708a7a03-f0d0-4d65-a318-b7090c198dcf"
      id="F_a7aeb1b7-b821-42e8-b278-1d6370534588">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_708a7a03-f0d0-4d65-a318-b7090c198dcf"
      id="F_c75f2b5f-09f6-445e-b991-4e22a454e6d5">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_708a7a03-f0d0-4d65-a318-b7090c198dcf"
      id="F_bc40fb70-f90d-4d1a-bbcf-ef0855024064">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_708a7a03-f0d0-4d65-a318-b7090c198dcf"
      id="F_6ae3d9ff-aa5e-46b9-a0cf-631ef40e0bab">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_708a7a03-f0d0-4d65-a318-b7090c198dcf"
      id="F_912bad2c-4449-4d28-936e-16f89716cc54">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_708a7a03-f0d0-4d65-a318-b7090c198dcf"
      id="F_bfbe6747-3487-4ff8-8df1-9b44c65b272d">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_708a7a03-f0d0-4d65-a318-b7090c198dcf"
      id="F_5e4245d8-821c-4331-af78-bc9a68fe8f79">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_708a7a03-f0d0-4d65-a318-b7090c198dcf"
      id="F_54e5c0a8-459b-4238-af45-60a4389d4d88">&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;948,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_708a7a03-f0d0-4d65-a318-b7090c198dcf"
      decimals="-3"
      id="F_d4b6c437-b06c-454d-806d-bffcbe0ab2f9"
      unitRef="U_USD">948000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
