<?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_c258dae1-55fc-4759-9a1e-8809b68e9a18">
        <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_c258dae1-55fc-4759-9a1e-8809b68e9a18"
      id="F_a94e4fd1-4109-4303-bd4c-4a9173c2df95">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_c258dae1-55fc-4759-9a1e-8809b68e9a18"
      id="F_7308df8e-6113-45e6-b7d0-c5a1fec6e0e2">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_c258dae1-55fc-4759-9a1e-8809b68e9a18"
      id="F_4762e363-e0e7-4a52-a141-8ec3fd7aa3c0">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_c258dae1-55fc-4759-9a1e-8809b68e9a18"
      id="F_f0a5d691-9e4b-4823-bd3a-84d9bc282967">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_c258dae1-55fc-4759-9a1e-8809b68e9a18"
      id="F_e89fa8eb-8448-4282-84da-3005b0d8e981">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_c258dae1-55fc-4759-9a1e-8809b68e9a18"
      id="F_06ed246a-743d-4633-82b3-08e73bc798a8">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c258dae1-55fc-4759-9a1e-8809b68e9a18"
      id="F_cc57c64e-85db-4bb4-b2d5-a370a446fbf9">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_c258dae1-55fc-4759-9a1e-8809b68e9a18"
      id="F_5ee2c7bb-3a47-45a7-84a4-bd77f85313ec">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c258dae1-55fc-4759-9a1e-8809b68e9a18"
      id="F_85a2f148-9ea8-4515-968d-77c11092e173">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c258dae1-55fc-4759-9a1e-8809b68e9a18"
      id="F_0a2e6944-ae20-441b-9188-6a0554c11360">&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,356,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_c258dae1-55fc-4759-9a1e-8809b68e9a18"
      decimals="-3"
      id="F_4733133c-2eb9-4d6f-8a4c-7e66dcaeef09"
      unitRef="U_USD">1356000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
