<?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_c1b87d08-f38c-40cb-9dba-778c7967fe5f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-24</startDate>
            <endDate>2026-06-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_c1b87d08-f38c-40cb-9dba-778c7967fe5f"
      id="F_447ef7b6-2327-4361-a460-96a52cc3fb9d">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_c1b87d08-f38c-40cb-9dba-778c7967fe5f"
      id="F_61e905f3-4b80-41b4-bc19-9a59d2dfdd82">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_c1b87d08-f38c-40cb-9dba-778c7967fe5f"
      id="F_0a43f2bb-7ebd-4f17-8ca8-2156023681d0">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_c1b87d08-f38c-40cb-9dba-778c7967fe5f"
      id="F_d21c34b5-5832-424f-9714-b9b3e406e652">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c1b87d08-f38c-40cb-9dba-778c7967fe5f"
      id="F_7f1b198a-0a0a-4931-9e9f-0a6a2e950ad7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_c1b87d08-f38c-40cb-9dba-778c7967fe5f"
      id="F_8b549a28-48ad-4a71-9c6e-ecb0718dc9e7">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_c1b87d08-f38c-40cb-9dba-778c7967fe5f"
      id="F_c1db1937-557d-4308-99f8-5cf4a0676670">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c1b87d08-f38c-40cb-9dba-778c7967fe5f"
      id="F_a610082e-4fd8-49bf-a056-8bba41955090">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_c1b87d08-f38c-40cb-9dba-778c7967fe5f"
      id="F_3bec2c97-0871-49bd-898e-ca6be69c9eb8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c1b87d08-f38c-40cb-9dba-778c7967fe5f"
      id="F_d6dd5b17-832c-44fb-922a-18f43b53d987">&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;7,451,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_c1b87d08-f38c-40cb-9dba-778c7967fe5f"
      decimals="-3"
      id="F_fe479286-56e9-4cfb-8a2c-3a08242ef38d"
      unitRef="U_USD">7451000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
