<?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_afc5aefe-f24e-4320-be2e-40ccda8cec4b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-11</startDate>
            <endDate>2026-05-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_afc5aefe-f24e-4320-be2e-40ccda8cec4b"
      id="F_271405d2-007d-40af-9984-172dd18e29da">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_afc5aefe-f24e-4320-be2e-40ccda8cec4b"
      id="F_3c3131c4-cefc-4f48-8ab4-ca1e892579df">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_afc5aefe-f24e-4320-be2e-40ccda8cec4b"
      id="F_be79bc0a-501b-41c2-895c-8194f7b15f0e">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_afc5aefe-f24e-4320-be2e-40ccda8cec4b"
      id="F_dd9943fc-7a64-455d-9b4c-48dbf6747844">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_afc5aefe-f24e-4320-be2e-40ccda8cec4b"
      id="F_9953011a-a013-4be1-bdd5-fa96de4be618">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_afc5aefe-f24e-4320-be2e-40ccda8cec4b"
      id="F_f4d7484b-2740-4cd4-a7ee-79ea20032649">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_afc5aefe-f24e-4320-be2e-40ccda8cec4b"
      id="F_fc47ebc5-9bce-4135-aad3-d2f4ffacac05">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_afc5aefe-f24e-4320-be2e-40ccda8cec4b"
      id="F_2ea8c7f9-9e60-43c0-8b2f-997cecaf0104">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_afc5aefe-f24e-4320-be2e-40ccda8cec4b"
      id="F_96a808c1-de76-4320-b495-70f27f2a8dd0">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_afc5aefe-f24e-4320-be2e-40ccda8cec4b"
      id="F_0fcff809-84f7-4a12-ab1b-7d9c70d54091">&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;380,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_afc5aefe-f24e-4320-be2e-40ccda8cec4b"
      decimals="0"
      id="F_5abad153-b6aa-4b32-aa0c-bc9b4d6083d7"
      unitRef="U_USD">380000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
