<?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_3c8ccdb9-af84-4eb0-b0d7-1ab117133ecb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-07</startDate>
            <endDate>2026-07-07</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_3c8ccdb9-af84-4eb0-b0d7-1ab117133ecb"
      id="F_6e98bdac-0b5b-4a50-96d6-2e99b73894e4">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_3c8ccdb9-af84-4eb0-b0d7-1ab117133ecb"
      id="F_4fed76f9-b6a0-4f45-8504-aad992cb7a50">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_3c8ccdb9-af84-4eb0-b0d7-1ab117133ecb"
      id="F_db5b83e4-64c1-4ae8-aebf-cc2dcc17454d">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_3c8ccdb9-af84-4eb0-b0d7-1ab117133ecb"
      id="F_0316d2f7-6fad-4bf1-a35a-d27ad0226f3b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3c8ccdb9-af84-4eb0-b0d7-1ab117133ecb"
      id="F_898dd4c1-d638-45c6-801f-0cd70a3c0878">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_3c8ccdb9-af84-4eb0-b0d7-1ab117133ecb"
      id="F_a3d7c0a8-f819-4e28-a965-e46ed38a9e41">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_3c8ccdb9-af84-4eb0-b0d7-1ab117133ecb"
      id="F_68bdc0fe-c79c-4aed-b373-d0f7edcfa71d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_3c8ccdb9-af84-4eb0-b0d7-1ab117133ecb"
      id="F_44ea8030-5967-4e13-bbd4-ac407d7b197b">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3c8ccdb9-af84-4eb0-b0d7-1ab117133ecb"
      id="F_5b263e97-9ce0-4294-b1a7-5108e3405668">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_3c8ccdb9-af84-4eb0-b0d7-1ab117133ecb"
      id="F_82a0781a-e385-4eb0-a202-bc75f1cfc0fe">&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;395,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_3c8ccdb9-af84-4eb0-b0d7-1ab117133ecb"
      decimals="-3"
      id="F_83f99fba-51a1-4caf-abb7-86a64a89b810"
      unitRef="U_USD">395000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
