<?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_b873de79-29db-4dcd-8e1f-e941033257d3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_b873de79-29db-4dcd-8e1f-e941033257d3"
      id="F_a161ca74-5614-470f-bacd-81e0ea02fa0a">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_b873de79-29db-4dcd-8e1f-e941033257d3"
      id="F_d5996c9f-1585-419f-a8fe-4fbe1fee2ad4">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_b873de79-29db-4dcd-8e1f-e941033257d3"
      id="F_eea659ff-b49b-4955-ba41-d0550af984bc">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_b873de79-29db-4dcd-8e1f-e941033257d3"
      id="F_1f26efbb-1b89-44ea-abc2-ead61d3f23dd">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_b873de79-29db-4dcd-8e1f-e941033257d3"
      id="F_9ef09db6-2567-4dee-bede-9c260d649c22">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_b873de79-29db-4dcd-8e1f-e941033257d3"
      id="F_908fc4b4-7a3c-49a9-b218-533e008c2fc4">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b873de79-29db-4dcd-8e1f-e941033257d3"
      id="F_2349cad9-f4df-471b-a1db-44f41d95c4e5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_b873de79-29db-4dcd-8e1f-e941033257d3"
      id="F_5ac25672-42c5-4ba6-9e70-ef1f57411299">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_b873de79-29db-4dcd-8e1f-e941033257d3"
      id="F_a24f9c7d-b061-4792-a607-770aaa3320af">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_b873de79-29db-4dcd-8e1f-e941033257d3"
      id="F_556d82e7-1c4a-49f6-ae38-7741416479e1">&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;6,118,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_b873de79-29db-4dcd-8e1f-e941033257d3"
      decimals="0"
      id="F_18468cec-3edf-4948-8f9e-b22e7b30cb1e"
      unitRef="U_USD">6118000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
