<?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_3d0b27f3-6a5d-4706-947d-beec9feefd2e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-01</startDate>
            <endDate>2026-06-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_3d0b27f3-6a5d-4706-947d-beec9feefd2e"
      id="F_cc0e1d86-4c1c-4abe-a75e-e34d88a54963">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_3d0b27f3-6a5d-4706-947d-beec9feefd2e"
      id="F_0e88dda4-929c-413c-b627-28da8eb1fa8a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_3d0b27f3-6a5d-4706-947d-beec9feefd2e"
      id="F_c13ba7cc-4b71-495c-8d9d-61ebeabf4e45">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_3d0b27f3-6a5d-4706-947d-beec9feefd2e"
      id="F_b5e5efd9-536e-4e98-aa95-b6d82bc6a18a">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_3d0b27f3-6a5d-4706-947d-beec9feefd2e"
      id="F_15732d35-29cd-4970-853c-cb0e00a12904">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_3d0b27f3-6a5d-4706-947d-beec9feefd2e"
      id="F_86615732-7e74-481c-b531-d49734cabb51">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3d0b27f3-6a5d-4706-947d-beec9feefd2e"
      id="F_fd3fcacb-b706-4a4b-9e6a-b7adf86fee13">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_3d0b27f3-6a5d-4706-947d-beec9feefd2e"
      id="F_cc80c573-2960-465e-b392-16cdaab24d55">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_3d0b27f3-6a5d-4706-947d-beec9feefd2e"
      id="F_47647573-def7-471f-b366-0da580082448">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3d0b27f3-6a5d-4706-947d-beec9feefd2e"
      id="F_8115b876-500d-43f2-91da-3080d275194a">&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;574,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_3d0b27f3-6a5d-4706-947d-beec9feefd2e"
      decimals="-3"
      id="F_860656ef-76af-42d4-869d-8b8be1d16aaf"
      unitRef="U_USD">574000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
