<?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_96ec6077-a0c6-4faa-a746-792d407130d3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_96ec6077-a0c6-4faa-a746-792d407130d3"
      id="F_74bc9b25-8134-40a6-92ed-edea5765c95f">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_96ec6077-a0c6-4faa-a746-792d407130d3"
      id="F_e1ae7e3f-2c3d-47dd-81b9-0eef347464fa">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_96ec6077-a0c6-4faa-a746-792d407130d3"
      id="F_39186c69-87ee-430a-ba98-6b8a3f940e77">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_96ec6077-a0c6-4faa-a746-792d407130d3"
      id="F_73e5a9bf-4431-4237-8c45-ba507614c779">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_96ec6077-a0c6-4faa-a746-792d407130d3"
      id="F_316617f1-e3e2-4e39-88f6-f7324f5816ae">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_96ec6077-a0c6-4faa-a746-792d407130d3"
      id="F_17f15764-ec0f-4ea3-a278-07739f461d75">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_96ec6077-a0c6-4faa-a746-792d407130d3"
      id="F_1b110a85-df4a-4d8c-a528-c785d03f8d9d">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_96ec6077-a0c6-4faa-a746-792d407130d3"
      id="F_439074d4-903f-47bb-ad1b-a9f3690e1931">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_96ec6077-a0c6-4faa-a746-792d407130d3"
      id="F_d0a4ccad-e191-4ba9-bfa5-c985210e1eca">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_96ec6077-a0c6-4faa-a746-792d407130d3"
      id="F_be6c7e16-b6f8-410d-a7c3-43d8967ccae1">&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;7,893,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_96ec6077-a0c6-4faa-a746-792d407130d3"
      decimals="-3"
      id="F_ec3f77ce-8bca-4d91-8cc0-a90d52b03494"
      unitRef="U_USD">7893000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
