<?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_c82d68de-0457-4997-8a9a-b3f5c287707e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_c82d68de-0457-4997-8a9a-b3f5c287707e"
      id="F_6d646d1d-9581-482b-a34e-3027a4457b5c">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_c82d68de-0457-4997-8a9a-b3f5c287707e"
      id="F_71bebd04-32a1-4440-8dec-0e86be2a060c">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_c82d68de-0457-4997-8a9a-b3f5c287707e"
      id="F_2aa773ea-5476-4637-9e30-e83dc0882e19">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c82d68de-0457-4997-8a9a-b3f5c287707e"
      id="F_ef5aae23-2f4f-4c78-9923-5f2cbb39ee41">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_c82d68de-0457-4997-8a9a-b3f5c287707e"
      id="F_78834bc1-d6c1-4396-8a52-ae8bdb011324">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_c82d68de-0457-4997-8a9a-b3f5c287707e"
      id="F_6448db18-2ea3-44a3-8e6d-eaba11f19cdf">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c82d68de-0457-4997-8a9a-b3f5c287707e"
      id="F_3040bda3-b756-4a78-978f-fd0b62979533">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_c82d68de-0457-4997-8a9a-b3f5c287707e"
      id="F_7f898283-ff69-4483-803f-625567a6b1c9">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_c82d68de-0457-4997-8a9a-b3f5c287707e"
      id="F_8a60b682-aae6-47a1-9d76-30e5495011d3">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_c82d68de-0457-4997-8a9a-b3f5c287707e"
      id="F_e3dc2749-ec3f-4c6e-8000-797661874657">&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;500,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_c82d68de-0457-4997-8a9a-b3f5c287707e"
      decimals="-3"
      id="F_c92fa6f4-1293-4089-a8c0-c6f98c2fcc92"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
