<?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_19f44fe7-8f84-4d20-9f8e-10f11d0f4913">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-25</startDate>
            <endDate>2026-08-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_19f44fe7-8f84-4d20-9f8e-10f11d0f4913"
      id="F_10aaba32-d76e-4354-b836-64a9bde54e12">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_19f44fe7-8f84-4d20-9f8e-10f11d0f4913"
      id="F_1ca2e719-2f2d-4b45-b6f0-781afdbbbc4b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_19f44fe7-8f84-4d20-9f8e-10f11d0f4913"
      id="F_ef5d3f74-c0c6-4437-868d-97709a22b3f2">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_19f44fe7-8f84-4d20-9f8e-10f11d0f4913"
      id="F_a59c0869-f68b-41f0-9daa-ee90c9deb8b6">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_19f44fe7-8f84-4d20-9f8e-10f11d0f4913"
      id="F_27ce0446-a498-4754-ab40-e31221be90f9">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_19f44fe7-8f84-4d20-9f8e-10f11d0f4913"
      id="F_5620a2ad-3459-4b1c-862a-ff6136aa0618">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_19f44fe7-8f84-4d20-9f8e-10f11d0f4913"
      id="F_f772284b-6887-4b77-8694-464fbc270150">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_19f44fe7-8f84-4d20-9f8e-10f11d0f4913"
      id="F_e182cf07-98c6-4799-ab41-655fb6552a89">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_19f44fe7-8f84-4d20-9f8e-10f11d0f4913"
      id="F_83c669ce-28f3-4cdf-a4ea-125855b08e2e">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_19f44fe7-8f84-4d20-9f8e-10f11d0f4913"
      id="F_2349ef76-2e09-4527-bfe5-7efc8a7a0426">&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,516,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_19f44fe7-8f84-4d20-9f8e-10f11d0f4913"
      decimals="-3"
      id="F_5badc66f-bb26-442b-9f1a-8e7dc021ca72"
      unitRef="U_USD">1516000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
