<?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_717a8391-0955-4384-8c85-cda0e7868c41">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-22</startDate>
            <endDate>2026-05-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_717a8391-0955-4384-8c85-cda0e7868c41"
      id="F_3758113e-2bd9-461a-aa83-1131beb8f813">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_717a8391-0955-4384-8c85-cda0e7868c41"
      id="F_e0029f80-2e31-44c9-b678-cdb135d9b57f">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_717a8391-0955-4384-8c85-cda0e7868c41"
      id="F_059da603-e506-4c60-902f-c42c413f01f5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_717a8391-0955-4384-8c85-cda0e7868c41"
      id="F_a7322a6b-e275-49c6-9518-28e44deae352">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_717a8391-0955-4384-8c85-cda0e7868c41"
      id="F_cf920956-5d75-41e1-81a2-2cb4a67b8f36">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_717a8391-0955-4384-8c85-cda0e7868c41"
      id="F_e4226726-d1ca-4ec0-8181-af81202d3451">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_717a8391-0955-4384-8c85-cda0e7868c41"
      id="F_29f91b4a-4af2-4ae7-abaf-9346b853122b">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_717a8391-0955-4384-8c85-cda0e7868c41"
      id="F_8c798e75-52c4-4629-907c-1491cda98063">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_717a8391-0955-4384-8c85-cda0e7868c41"
      id="F_0619e28a-457a-4fd0-8040-c9fb97a4441f">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_717a8391-0955-4384-8c85-cda0e7868c41"
      id="F_b7da7684-99c5-41b1-84ad-23405366ebc0">&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,835,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_717a8391-0955-4384-8c85-cda0e7868c41"
      decimals="0"
      id="F_82c2b9cb-d23c-4e2d-be38-7d84f67d9fa9"
      unitRef="U_USD">2835000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
