<?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_058915c5-650a-4f15-bc57-810e52a81938">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_058915c5-650a-4f15-bc57-810e52a81938"
      id="F_e1570d8e-1c85-4bef-b929-f1f8bbfe2d4b">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_058915c5-650a-4f15-bc57-810e52a81938"
      id="F_200cfc78-04aa-494b-a8ad-606f7201f735">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_058915c5-650a-4f15-bc57-810e52a81938"
      id="F_c8174f20-309e-4655-b371-abdc94d12dd9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_058915c5-650a-4f15-bc57-810e52a81938"
      id="F_02da2506-df08-4bda-bc06-8e3aab385137">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_058915c5-650a-4f15-bc57-810e52a81938"
      id="F_c1b14a7e-016e-45dc-a2ac-fe8a74d94ca1">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_058915c5-650a-4f15-bc57-810e52a81938"
      id="F_85847268-4d8b-4c97-bc62-8a56c5e61db2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_058915c5-650a-4f15-bc57-810e52a81938"
      id="F_c368ba95-5d1e-4906-af6d-91e141ce4457">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_058915c5-650a-4f15-bc57-810e52a81938"
      id="F_8540574e-1456-41b6-aab1-55c6a8a4db14">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_058915c5-650a-4f15-bc57-810e52a81938"
      id="F_5ae9df7f-f723-4e15-a3e3-32e2a02e520f">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_058915c5-650a-4f15-bc57-810e52a81938"
      id="F_e22a443f-a363-4bdb-ae52-6e396402f1a7">&lt;p style="tab-size:26.66px;font-size:12pt;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;4,075,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_058915c5-650a-4f15-bc57-810e52a81938"
      decimals="-3"
      id="F_8c993469-04d0-48db-876e-e196365f2aa6"
      unitRef="U_USD">4075000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
