<?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_7083c0d7-3b9d-4b83-a279-9f886490dc3a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-28</startDate>
            <endDate>2026-07-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_7083c0d7-3b9d-4b83-a279-9f886490dc3a"
      id="F_07cc2a2e-9d9f-4fcf-9a83-bb4ffe1764c3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_7083c0d7-3b9d-4b83-a279-9f886490dc3a"
      id="F_a9bf0064-6dd3-4658-985e-ca07617ca60b">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_7083c0d7-3b9d-4b83-a279-9f886490dc3a"
      id="F_046cbf14-368f-4e6d-8bb1-6be5c52ca852">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_7083c0d7-3b9d-4b83-a279-9f886490dc3a"
      id="F_0af8ebf6-e9d6-40aa-8aa5-98768a5c34b6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7083c0d7-3b9d-4b83-a279-9f886490dc3a"
      id="F_1fff14a2-56bb-47cd-844d-b4cf1df1a702">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_7083c0d7-3b9d-4b83-a279-9f886490dc3a"
      id="F_e02fa3e9-9605-4b2f-9774-23a622e842ba">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_7083c0d7-3b9d-4b83-a279-9f886490dc3a"
      id="F_8af34544-e642-4b97-b11f-66ad74fa6707">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_7083c0d7-3b9d-4b83-a279-9f886490dc3a"
      id="F_0dba3636-476d-4773-b840-5a4d73626ca3">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_7083c0d7-3b9d-4b83-a279-9f886490dc3a"
      id="F_87c77910-47b3-418e-ab37-821b67e9a20f">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_7083c0d7-3b9d-4b83-a279-9f886490dc3a"
      id="F_7003a896-bc4d-4279-8b04-798ac1c12bb8">&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;3,025,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_7083c0d7-3b9d-4b83-a279-9f886490dc3a"
      decimals="-3"
      id="F_d3c03077-7d08-47fc-8ba4-253e00a107de"
      unitRef="U_USD">3025000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
