<?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_46660876-ba80-48b6-88fa-df7eb4ac5a02">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-01</startDate>
            <endDate>2026-06-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_46660876-ba80-48b6-88fa-df7eb4ac5a02"
      id="F_075aec9c-9edf-401c-81f2-10e42224fd07">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_46660876-ba80-48b6-88fa-df7eb4ac5a02"
      id="F_b6aa4bc9-91ed-4de2-b0d6-945cb10f1c52">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_46660876-ba80-48b6-88fa-df7eb4ac5a02"
      id="F_018b4d32-b972-4831-a0ca-a3753b22ac6c">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_46660876-ba80-48b6-88fa-df7eb4ac5a02"
      id="F_69f12638-65ce-446c-8837-65c0806bc623">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_46660876-ba80-48b6-88fa-df7eb4ac5a02"
      id="F_51348474-26ab-4afc-a596-5dd8dd359962">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_46660876-ba80-48b6-88fa-df7eb4ac5a02"
      id="F_96c1ac1e-06fc-4e5a-a6c9-73224f52bf57">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_46660876-ba80-48b6-88fa-df7eb4ac5a02"
      id="F_b1f4f880-ecb5-4ba7-af7d-ed4fff02cc5c">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_46660876-ba80-48b6-88fa-df7eb4ac5a02"
      id="F_e9de8d70-3467-4427-a5d5-52f5b3cf2124">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_46660876-ba80-48b6-88fa-df7eb4ac5a02"
      id="F_40871e78-fbe2-4f27-81c9-f4cd8d8e1f10">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_46660876-ba80-48b6-88fa-df7eb4ac5a02"
      id="F_1891176e-9787-4bd9-b682-af2a90af9813">&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,444,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_46660876-ba80-48b6-88fa-df7eb4ac5a02"
      decimals="-3"
      id="F_c22a0b94-f0ae-42a2-8900-488cd65f3cab"
      unitRef="U_USD">2444000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
