<?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_895725d0-78de-4307-a085-2decfd8f4c39">
        <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:EntityRegistrantName
      contextRef="C_895725d0-78de-4307-a085-2decfd8f4c39"
      id="F_5b4fb3de-439a-47f6-b488-d86a58f54ba5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_895725d0-78de-4307-a085-2decfd8f4c39"
      id="F_323ac13d-5f19-43b6-9a3f-abf1d1442bde">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_895725d0-78de-4307-a085-2decfd8f4c39"
      id="F_8f69929a-8e26-4b2c-a5c4-61c2e67d3714">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_895725d0-78de-4307-a085-2decfd8f4c39"
      id="F_04eb4406-4ad6-44b3-9275-7f5cf0ec1711">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_895725d0-78de-4307-a085-2decfd8f4c39"
      id="F_c018d775-b7ad-47c9-acf5-d87ebca5cb71">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_895725d0-78de-4307-a085-2decfd8f4c39"
      id="F_201910fb-51aa-4702-aae1-c55f0cd4c43c">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_895725d0-78de-4307-a085-2decfd8f4c39"
      id="F_1f13bbdb-5831-4400-90cf-31704e55387d">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_895725d0-78de-4307-a085-2decfd8f4c39"
      id="F_6b52383b-2d6c-40a8-94bb-9f4988c155a2">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_895725d0-78de-4307-a085-2decfd8f4c39"
      id="F_d4f78850-7200-4693-a2de-f41c7e45d958">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_895725d0-78de-4307-a085-2decfd8f4c39"
      id="F_4643733c-98ee-4398-a735-d75f0887195d">&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;315,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_895725d0-78de-4307-a085-2decfd8f4c39"
      decimals="-3"
      id="F_987bea12-ea71-4283-97f9-b5a1a7e1a01c"
      unitRef="U_USD">315000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
