<?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_8cc8b5e8-c445-4c9f-9458-0627a6cf1623">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-03</startDate>
            <endDate>2026-08-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_8cc8b5e8-c445-4c9f-9458-0627a6cf1623"
      id="F_c3da3d39-09db-49fd-8976-88e1494bd063">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_8cc8b5e8-c445-4c9f-9458-0627a6cf1623"
      id="F_4a3c55f0-0b27-4039-ae4e-294dbb2b56c9">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8cc8b5e8-c445-4c9f-9458-0627a6cf1623"
      id="F_de02fbca-9f4a-49e4-88cd-10f37cc5195e">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_8cc8b5e8-c445-4c9f-9458-0627a6cf1623"
      id="F_8c24eb68-4c93-416e-8334-3f180fd5a653">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_8cc8b5e8-c445-4c9f-9458-0627a6cf1623"
      id="F_3b255c71-9de9-4194-ad2a-e9ab274961bd">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_8cc8b5e8-c445-4c9f-9458-0627a6cf1623"
      id="F_dc753436-f75a-41ab-bd51-a9fcf3c0cbb3">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_8cc8b5e8-c445-4c9f-9458-0627a6cf1623"
      id="F_43fb3056-1d56-4ac6-b570-21dec332faae">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_8cc8b5e8-c445-4c9f-9458-0627a6cf1623"
      id="F_de8eac80-477b-4bd8-a102-28dacc0f7d6c">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_8cc8b5e8-c445-4c9f-9458-0627a6cf1623"
      id="F_adfb529b-f896-4a36-9551-4f64fdb02730">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_8cc8b5e8-c445-4c9f-9458-0627a6cf1623"
      id="F_492c09ac-01b2-44ba-8a5e-98bf9f6597ea">&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;750,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_8cc8b5e8-c445-4c9f-9458-0627a6cf1623"
      decimals="-3"
      id="F_daabbe06-b34a-4102-813c-8396420e74f5"
      unitRef="U_USD">750000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
