<?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_666456e5-4dbb-4118-a9d5-9160a83af6ce">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-08</startDate>
            <endDate>2026-06-08</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_666456e5-4dbb-4118-a9d5-9160a83af6ce"
      id="F_c7b77ab4-6106-479b-bb2e-0cfd42c6ca14">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_666456e5-4dbb-4118-a9d5-9160a83af6ce"
      id="F_bb99bd70-b333-49f9-ad92-371f1bf72f31">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_666456e5-4dbb-4118-a9d5-9160a83af6ce"
      id="F_20a021cd-a0e6-4914-9beb-9d18ca5dedb2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_666456e5-4dbb-4118-a9d5-9160a83af6ce"
      id="F_bb207d89-e6a8-4684-af9e-7b4293f09d63">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_666456e5-4dbb-4118-a9d5-9160a83af6ce"
      id="F_49b26dd8-4336-4d92-a14d-0e79707b068b">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_666456e5-4dbb-4118-a9d5-9160a83af6ce"
      id="F_26744cf0-dde1-41c0-948a-2f3f32cc2e25">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_666456e5-4dbb-4118-a9d5-9160a83af6ce"
      id="F_ba8b138e-cf8b-4cc4-bcd9-50dadff5cedd">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_666456e5-4dbb-4118-a9d5-9160a83af6ce"
      id="F_34b1e537-43c4-4235-b944-2e2ad23559f3">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_666456e5-4dbb-4118-a9d5-9160a83af6ce"
      id="F_410d5709-3f32-43fd-b41a-c8499ff18d1a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_666456e5-4dbb-4118-a9d5-9160a83af6ce"
      id="F_4705a9c7-b7ef-4b72-a2d2-fe4630acb24b">&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;1,000,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_666456e5-4dbb-4118-a9d5-9160a83af6ce"
      decimals="-6"
      id="F_4b3a0b09-6506-4948-93e2-67aa25e50172"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
