<?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_efe31109-dd7f-4ffe-afa0-eb219c8bfa38">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_efe31109-dd7f-4ffe-afa0-eb219c8bfa38"
      id="F_e7320ea4-f084-43e1-bec5-947d35805e67">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_efe31109-dd7f-4ffe-afa0-eb219c8bfa38"
      id="F_6d02a4f6-b2d3-4b85-bd37-c84284564cf8">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_efe31109-dd7f-4ffe-afa0-eb219c8bfa38"
      id="F_07ce7a94-03be-4751-9aa7-1fedaf7be57a">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_efe31109-dd7f-4ffe-afa0-eb219c8bfa38"
      id="F_295b77d5-aed9-44aa-9d77-c35ffd8a9e18">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_efe31109-dd7f-4ffe-afa0-eb219c8bfa38"
      id="F_13e2ad05-938c-4a17-b086-031e565acde6">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_efe31109-dd7f-4ffe-afa0-eb219c8bfa38"
      id="F_51b9f954-db22-4b69-9bad-5cf79acd2934">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_efe31109-dd7f-4ffe-afa0-eb219c8bfa38"
      id="F_0b52f555-6fcf-448f-9c68-ef1d297b85f2">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_efe31109-dd7f-4ffe-afa0-eb219c8bfa38"
      id="F_924ed677-c5cb-4e78-9b89-c566acb20d31">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_efe31109-dd7f-4ffe-afa0-eb219c8bfa38"
      id="F_beb6b4a5-e9a8-404b-ae7d-e0b69a88ab0b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_efe31109-dd7f-4ffe-afa0-eb219c8bfa38"
      id="F_d16be089-51eb-4350-8b00-a4ec7303f1f6">&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;430,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_efe31109-dd7f-4ffe-afa0-eb219c8bfa38"
      decimals="-3"
      id="F_6bc43260-738b-4c00-b899-9bfaae0cccba"
      unitRef="U_USD">430000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
