<?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_318fc2eb-0136-4264-9c2d-2a180a7cf40b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_318fc2eb-0136-4264-9c2d-2a180a7cf40b"
      id="F_b119f020-cf81-4d60-be17-73fd1eb66d7b">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_318fc2eb-0136-4264-9c2d-2a180a7cf40b"
      id="F_9bd06a77-fe76-4b3c-93ea-ecf442a589db">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_318fc2eb-0136-4264-9c2d-2a180a7cf40b"
      id="F_cd4f6473-aa5f-436a-ae56-2466b42e4b47">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_318fc2eb-0136-4264-9c2d-2a180a7cf40b"
      id="F_3611212a-47ac-4a69-9a34-53b2e4267ef0">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_318fc2eb-0136-4264-9c2d-2a180a7cf40b"
      id="F_9cc68218-6bdb-4254-862e-8c9fbeb099dc">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_318fc2eb-0136-4264-9c2d-2a180a7cf40b"
      id="F_2f925b9c-ed0a-47c7-b824-0a34ef1c81b8">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_318fc2eb-0136-4264-9c2d-2a180a7cf40b"
      id="F_16e34e8e-e861-43e0-a8af-8d30fd2bd845">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_318fc2eb-0136-4264-9c2d-2a180a7cf40b"
      id="F_ec2e70c4-5868-4714-bb08-336c5345e48a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_318fc2eb-0136-4264-9c2d-2a180a7cf40b"
      id="F_38b6420e-33ad-4316-a1ca-0c7bd7bdf9e3">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_318fc2eb-0136-4264-9c2d-2a180a7cf40b"
      id="F_e00c388d-d547-4045-b990-f1797c2284a5">&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;600,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_318fc2eb-0136-4264-9c2d-2a180a7cf40b"
      decimals="-3"
      id="F_dbc8f78b-1718-48d7-8ee8-6a51f97e24d2"
      unitRef="U_USD">600000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
