<?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_82244fe8-2d3c-42a6-8027-e103045b8e10">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_82244fe8-2d3c-42a6-8027-e103045b8e10"
      id="F_0261cc76-f325-413c-9625-af0cf45b928f">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_82244fe8-2d3c-42a6-8027-e103045b8e10"
      id="F_d16da0a1-e6d4-4a9d-8d42-2a79ea5da848">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_82244fe8-2d3c-42a6-8027-e103045b8e10"
      id="F_1d636f3f-0be3-4ee4-b6f8-eaecfd24dc38">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_82244fe8-2d3c-42a6-8027-e103045b8e10"
      id="F_babfa9a3-95ca-41ec-a35f-78b02d174a71">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_82244fe8-2d3c-42a6-8027-e103045b8e10"
      id="F_174ebcbc-4a13-4e5a-8baf-939cf4802650">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_82244fe8-2d3c-42a6-8027-e103045b8e10"
      id="F_404f20d7-3341-4f40-8ade-f5e0eec83962">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_82244fe8-2d3c-42a6-8027-e103045b8e10"
      id="F_c71d9104-1cdd-4507-9065-822d758b0b7a">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_82244fe8-2d3c-42a6-8027-e103045b8e10"
      id="F_9f02cbc3-0811-4894-88c9-78a6100c05d2">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_82244fe8-2d3c-42a6-8027-e103045b8e10"
      id="F_dedc1b23-affb-4e66-94ee-cd64c9d7308e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_82244fe8-2d3c-42a6-8027-e103045b8e10"
      id="F_cc5eeae2-4498-491a-8491-4e3ca8b2d2db">&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;2,478,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_82244fe8-2d3c-42a6-8027-e103045b8e10"
      decimals="-3"
      id="F_93970682-5ed6-467e-a5a4-4e0d2ac4aa90"
      unitRef="U_USD">2478000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
