<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_5fe632b7-d563-487b-b8f3-d379ac57e407">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-12</startDate>
            <endDate>2026-05-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_5fe632b7-d563-487b-b8f3-d379ac57e407"
      id="F_17c928d3-9331-4ffc-a540-1126d5c54345">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_5fe632b7-d563-487b-b8f3-d379ac57e407"
      id="F_b757c280-4ace-4ba3-9a90-21c1959e7a25">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_5fe632b7-d563-487b-b8f3-d379ac57e407"
      id="F_823e88a3-d7bd-4d62-a504-b0772cd236df">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_5fe632b7-d563-487b-b8f3-d379ac57e407"
      id="F_c129feb6-1cf8-44fc-ab45-03c5d9f3580b">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_5fe632b7-d563-487b-b8f3-d379ac57e407"
      id="F_9c8554dc-293e-4207-883a-d1c62eb8b222">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_5fe632b7-d563-487b-b8f3-d379ac57e407"
      id="F_cfb66044-b3b2-4bbf-8994-8cbcbdcb2638">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_5fe632b7-d563-487b-b8f3-d379ac57e407"
      id="F_7447322b-3baa-4d9a-8076-7f5f5f4b74e0">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_5fe632b7-d563-487b-b8f3-d379ac57e407"
      id="F_8e143b60-04a8-4555-882a-f1e2afdcb515">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5fe632b7-d563-487b-b8f3-d379ac57e407"
      id="F_05386dc7-b020-4bf3-991e-f79cee5ccfeb">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_5fe632b7-d563-487b-b8f3-d379ac57e407"
      id="F_e58836f1-8a0e-4f0a-b963-23249d48b6c8">&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;3,964,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_5fe632b7-d563-487b-b8f3-d379ac57e407"
      decimals="0"
      id="F_d3f24dc1-d8da-48a0-97ec-06c9547d98d4"
      unitRef="U_USD">3964000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
