<?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_0cbef3b6-3f17-4ba9-97af-4f34d44e298b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-05</startDate>
            <endDate>2026-06-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_0cbef3b6-3f17-4ba9-97af-4f34d44e298b"
      id="F_f5e5e51e-b1ce-4962-b493-f7b2291d08b4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_0cbef3b6-3f17-4ba9-97af-4f34d44e298b"
      id="F_d59bb1bf-09af-4c47-b92a-bef02685a2cf">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_0cbef3b6-3f17-4ba9-97af-4f34d44e298b"
      id="F_8de066d1-1999-4ca3-8cce-fa80b614f471">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_0cbef3b6-3f17-4ba9-97af-4f34d44e298b"
      id="F_dd19b89d-2f56-4ee8-a44a-c245cce6866c">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_0cbef3b6-3f17-4ba9-97af-4f34d44e298b"
      id="F_691d363a-472b-42d8-94c7-946cd849b052">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_0cbef3b6-3f17-4ba9-97af-4f34d44e298b"
      id="F_63bdb6a4-d98d-43b5-a2cd-66502b167475">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_0cbef3b6-3f17-4ba9-97af-4f34d44e298b"
      id="F_f6d1b8d5-90d3-4912-b213-439001d9897c">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0cbef3b6-3f17-4ba9-97af-4f34d44e298b"
      id="F_721d087a-d7a6-4cfd-898c-f1d3f37d1828">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_0cbef3b6-3f17-4ba9-97af-4f34d44e298b"
      id="F_c3d8981c-98e3-47cb-ba66-d08536119ef7">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_0cbef3b6-3f17-4ba9-97af-4f34d44e298b"
      id="F_2beaf286-99ce-4974-8c84-0fc0e15e70c5">&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;775,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_0cbef3b6-3f17-4ba9-97af-4f34d44e298b"
      decimals="-3"
      id="F_c0c60e6b-1869-40ac-bd9c-a0f29d9ce270"
      unitRef="U_USD">775000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
