<?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_08336485-74b0-4268-a31d-aa7b676a80c3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-01</startDate>
            <endDate>2026-06-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_08336485-74b0-4268-a31d-aa7b676a80c3"
      id="F_8663ea2c-ad2b-47d8-a473-be1bc95c677e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_08336485-74b0-4268-a31d-aa7b676a80c3"
      id="F_dc745cd4-681f-4682-8a4d-130d391e0207">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_08336485-74b0-4268-a31d-aa7b676a80c3"
      id="F_eb51ad79-097b-4bbd-b91b-41ff84c3d93b">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_08336485-74b0-4268-a31d-aa7b676a80c3"
      id="F_89f4edf3-aa66-41a8-9eb0-5b1c9d23265a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_08336485-74b0-4268-a31d-aa7b676a80c3"
      id="F_92a5922e-1fff-4ca2-827c-41fc08988262">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_08336485-74b0-4268-a31d-aa7b676a80c3"
      id="F_318e12cd-04dd-4ee8-b99c-60e5c918a789">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_08336485-74b0-4268-a31d-aa7b676a80c3"
      id="F_13ee6cb8-5788-48c9-a9ee-981e94fc655f">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_08336485-74b0-4268-a31d-aa7b676a80c3"
      id="F_bf16b2f4-f9c7-4f7d-821c-624b83395eb0">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_08336485-74b0-4268-a31d-aa7b676a80c3"
      id="F_94c1e471-afd4-4d8e-9bab-331f45b3ea15">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_08336485-74b0-4268-a31d-aa7b676a80c3"
      id="F_aacf371e-9c52-4442-b8d0-00450383dcbd">&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,100,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_08336485-74b0-4268-a31d-aa7b676a80c3"
      decimals="-3"
      id="F_ab873fa6-b4a3-475c-afe1-059dae7e75dc"
      unitRef="U_USD">2100000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
