<?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_1e5b49b1-89fd-456d-b981-944cb9d3a3d4">
        <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>
    <ffd:OffsetTableNa
      contextRef="C_1e5b49b1-89fd-456d-b981-944cb9d3a3d4"
      id="F_3f96185b-b4db-4ef6-86f1-23032ae46ce5">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_1e5b49b1-89fd-456d-b981-944cb9d3a3d4"
      id="F_414b3b7e-dadc-48e3-8533-e73b93e1901c">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_1e5b49b1-89fd-456d-b981-944cb9d3a3d4"
      id="F_ef7f4f74-4110-49be-a3dd-3ddaf81d6c41">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_1e5b49b1-89fd-456d-b981-944cb9d3a3d4"
      id="F_767a4dfa-a580-4077-832a-43795cca4711">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_1e5b49b1-89fd-456d-b981-944cb9d3a3d4"
      id="F_600a5784-35d1-4212-a967-0beb49c78dba">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_1e5b49b1-89fd-456d-b981-944cb9d3a3d4"
      id="F_1b629590-570a-4670-b273-4a940de1bb50">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_1e5b49b1-89fd-456d-b981-944cb9d3a3d4"
      id="F_c82a0e91-ca41-468a-bd47-8d61cfddbbff">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1e5b49b1-89fd-456d-b981-944cb9d3a3d4"
      id="F_1ba3dfb3-4301-4e45-b7f9-aa733bf49b32">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_1e5b49b1-89fd-456d-b981-944cb9d3a3d4"
      id="F_b6b6c610-4d04-4796-bdd4-61a8c476fb3f">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_1e5b49b1-89fd-456d-b981-944cb9d3a3d4"
      id="F_73b43a4a-d570-470f-a781-a50f4217df94">&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;531,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_1e5b49b1-89fd-456d-b981-944cb9d3a3d4"
      decimals="-3"
      id="F_4581596c-7576-436f-baab-315f2f0b56c2"
      unitRef="U_USD">531000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
