<?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_0ad0471f-1591-4cf0-a7dc-579e8d1873c2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_0ad0471f-1591-4cf0-a7dc-579e8d1873c2"
      id="F_3fc00c75-e9b2-482d-a8ef-45eeedab6b4c">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_0ad0471f-1591-4cf0-a7dc-579e8d1873c2"
      id="F_285fca32-d97a-447d-a149-68b5c4b881ef">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0ad0471f-1591-4cf0-a7dc-579e8d1873c2"
      id="F_4e455674-e565-4b95-a2e5-28aae64d0df2">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_0ad0471f-1591-4cf0-a7dc-579e8d1873c2"
      id="F_19038196-ac09-42ad-a81f-306194b87fa8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_0ad0471f-1591-4cf0-a7dc-579e8d1873c2"
      id="F_22b84b6b-883f-41dd-b94d-9e6e2df0ddd8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_0ad0471f-1591-4cf0-a7dc-579e8d1873c2"
      id="F_0595bbb2-af1a-4a10-b81f-b1f571f73eaf">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_0ad0471f-1591-4cf0-a7dc-579e8d1873c2"
      id="F_1abb4053-60c7-4a9b-bec8-eeeabe0dad08">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_0ad0471f-1591-4cf0-a7dc-579e8d1873c2"
      id="F_83958439-d6f9-45e7-8fd1-d6e79aa56fba">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_0ad0471f-1591-4cf0-a7dc-579e8d1873c2"
      id="F_413b5465-22f5-41fe-98d1-14b9afa3ef1c">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_0ad0471f-1591-4cf0-a7dc-579e8d1873c2"
      id="F_1486120c-760c-4f32-b77e-2e7e9c50a406">&lt;p style="tab-size:26.66px;font-size:12pt;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;2,000,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_0ad0471f-1591-4cf0-a7dc-579e8d1873c2"
      decimals="-6"
      id="F_9c180d0c-2c66-41cc-9f7a-87600121fc42"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
