<?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_5b869d91-52dd-4552-bc81-b0d12ddde5e7">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_5b869d91-52dd-4552-bc81-b0d12ddde5e7"
      id="F_2725aa7e-3005-481a-a086-73400a8ebb50">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_5b869d91-52dd-4552-bc81-b0d12ddde5e7"
      id="F_16ee4b19-dae8-4f95-b268-87ab23181a1e">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5b869d91-52dd-4552-bc81-b0d12ddde5e7"
      id="F_de66d650-71c6-4f49-968a-c9fd6c86be65">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_5b869d91-52dd-4552-bc81-b0d12ddde5e7"
      id="F_9a136de9-50d3-4452-bf39-4541c17b5395">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_5b869d91-52dd-4552-bc81-b0d12ddde5e7"
      id="F_54273e97-c674-4377-9c7f-82fa91e7ae34">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_5b869d91-52dd-4552-bc81-b0d12ddde5e7"
      id="F_4327cd7d-eb07-4bfa-a834-9cfed1b73d35">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_5b869d91-52dd-4552-bc81-b0d12ddde5e7"
      id="F_74c874ce-4754-4103-bce6-95625e4ff229">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5b869d91-52dd-4552-bc81-b0d12ddde5e7"
      id="F_6f46396b-4714-4022-9834-02589003b2e1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_5b869d91-52dd-4552-bc81-b0d12ddde5e7"
      id="F_e35cd51c-084f-463d-96e6-5d72ecebd121">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_5b869d91-52dd-4552-bc81-b0d12ddde5e7"
      id="F_54e0a2a6-5205-44cd-bc6a-79448f06b2ef">&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;1,237,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_5b869d91-52dd-4552-bc81-b0d12ddde5e7"
      decimals="-3"
      id="F_42cf804b-1a37-4d12-8aad-eaa5c5f32e8c"
      unitRef="U_USD">1237000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
