<?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_89a6db91-930b-441f-8c12-b6f5fd19d1f6">
        <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_89a6db91-930b-441f-8c12-b6f5fd19d1f6"
      id="F_09227810-19e0-40b1-a63c-e9bf4c6cf007">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_89a6db91-930b-441f-8c12-b6f5fd19d1f6"
      id="F_b5e21907-6ccc-4050-b971-94416b3b00b3">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_89a6db91-930b-441f-8c12-b6f5fd19d1f6"
      id="F_1fbeb937-1847-4a65-a783-7499d916895e">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_89a6db91-930b-441f-8c12-b6f5fd19d1f6"
      id="F_35835638-1270-4a32-aeb8-520f9c35fcfb">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_89a6db91-930b-441f-8c12-b6f5fd19d1f6"
      id="F_d3e345a6-ce81-454a-a522-1cec6e9052d0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_89a6db91-930b-441f-8c12-b6f5fd19d1f6"
      id="F_8c039b37-571d-4fda-b0cf-a9bad6d9c891">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_89a6db91-930b-441f-8c12-b6f5fd19d1f6"
      id="F_321d5614-e287-46ca-a4bb-dab207020e49">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_89a6db91-930b-441f-8c12-b6f5fd19d1f6"
      id="F_ddae827a-fec9-4154-8fb3-fd0e9572ecdb">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_89a6db91-930b-441f-8c12-b6f5fd19d1f6"
      id="F_ab8a94e3-e82f-461c-98e7-0e35a22b5405">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_89a6db91-930b-441f-8c12-b6f5fd19d1f6"
      id="F_f52a5f9b-2f04-4875-9222-c952ebe6f0ad">&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,260,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_89a6db91-930b-441f-8c12-b6f5fd19d1f6"
      decimals="-3"
      id="F_df96df95-e9be-4ed6-acd8-5e05da6593e0"
      unitRef="U_USD">2260000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
