<?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_bdc382b9-f4a9-4b45-bad7-bbb91e6be2e7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-30</startDate>
            <endDate>2026-07-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_bdc382b9-f4a9-4b45-bad7-bbb91e6be2e7"
      id="F_af9e07ca-553d-48b1-afdc-59fc24d43746">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bdc382b9-f4a9-4b45-bad7-bbb91e6be2e7"
      id="F_10aa24f6-9cde-497e-be59-5f68a5635ab7">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_bdc382b9-f4a9-4b45-bad7-bbb91e6be2e7"
      id="F_e763935c-5547-4b31-891f-a2954ff54524">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_bdc382b9-f4a9-4b45-bad7-bbb91e6be2e7"
      id="F_0b3e7217-2e5a-4bb9-9948-9f97f9397932">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_bdc382b9-f4a9-4b45-bad7-bbb91e6be2e7"
      id="F_26119a66-96b4-41ac-84d1-0cda74762c7c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_bdc382b9-f4a9-4b45-bad7-bbb91e6be2e7"
      id="F_d7a1f6fb-5c77-4e96-ac20-dd2a40a8c6ef">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_bdc382b9-f4a9-4b45-bad7-bbb91e6be2e7"
      id="F_70c3e43c-cc30-449b-844b-af4a2c96cdd8">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_bdc382b9-f4a9-4b45-bad7-bbb91e6be2e7"
      id="F_5eb3676d-5fc0-44c4-8c59-ac89884c3ae1">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_bdc382b9-f4a9-4b45-bad7-bbb91e6be2e7"
      id="F_1eb24958-a2b0-43bf-94fe-c4961964cb15">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_bdc382b9-f4a9-4b45-bad7-bbb91e6be2e7"
      id="F_8ec3eb55-0c17-413d-99fc-2b7fdc2e8850">&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;605,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_bdc382b9-f4a9-4b45-bad7-bbb91e6be2e7"
      decimals="-3"
      id="F_b14f42c8-d333-4aae-95b5-96e42124a288"
      unitRef="U_USD">605000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
