<?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_6cefdc85-25d3-4593-a6d6-dd7314dc47a3">
        <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:FormTp
      contextRef="C_6cefdc85-25d3-4593-a6d6-dd7314dc47a3"
      id="F_2fe06045-a283-4091-a58e-e641ddb45cfb">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_6cefdc85-25d3-4593-a6d6-dd7314dc47a3"
      id="F_db83e3dc-8ad1-43f5-972f-e0ed405f229d">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_6cefdc85-25d3-4593-a6d6-dd7314dc47a3"
      id="F_9c07c61e-e1e9-46f5-b5bd-451ef0bd1d81">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_6cefdc85-25d3-4593-a6d6-dd7314dc47a3"
      id="F_7a4f7dcc-f034-43d3-885e-9bcc9a0ff904">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_6cefdc85-25d3-4593-a6d6-dd7314dc47a3"
      id="F_ff475dac-a7a1-4eae-b036-af23768eedad">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_6cefdc85-25d3-4593-a6d6-dd7314dc47a3"
      id="F_f60fa5d4-b571-45c7-8e21-4a29b477a91c">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_6cefdc85-25d3-4593-a6d6-dd7314dc47a3"
      id="F_09b084dd-0050-4651-8014-b61aac49e163">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6cefdc85-25d3-4593-a6d6-dd7314dc47a3"
      id="F_22c2cbd2-fbf8-4430-b253-11ce4cec0d3c">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_6cefdc85-25d3-4593-a6d6-dd7314dc47a3"
      id="F_7be6e2a6-e312-49cd-b363-059596a0be70">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_6cefdc85-25d3-4593-a6d6-dd7314dc47a3"
      id="F_33ca310f-7904-4a9e-9443-fc5c3db9f8c0">&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;845,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_6cefdc85-25d3-4593-a6d6-dd7314dc47a3"
      decimals="-3"
      id="F_8a731c0a-34ee-4978-8d7a-3f5631251dbc"
      unitRef="U_USD">845000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
