<?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_4c0f1004-d311-49f9-9def-7cd4d5a4e6a4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_4c0f1004-d311-49f9-9def-7cd4d5a4e6a4"
      id="F_d63eadbc-7e60-4b01-ab9b-e38c7b65adec">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_4c0f1004-d311-49f9-9def-7cd4d5a4e6a4"
      id="F_fcbde980-f8b9-4a9d-b09a-753d196b8a75">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_4c0f1004-d311-49f9-9def-7cd4d5a4e6a4"
      id="F_90f51442-6ce8-42f7-9e21-25c672e6711c">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_4c0f1004-d311-49f9-9def-7cd4d5a4e6a4"
      id="F_107a4392-311d-4c63-b544-cfafdf37aba6">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4c0f1004-d311-49f9-9def-7cd4d5a4e6a4"
      id="F_bbc11671-01aa-4f72-b68c-6f9c5ce859e5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_4c0f1004-d311-49f9-9def-7cd4d5a4e6a4"
      id="F_85bcf308-3a7b-4c4e-b95c-591e6380f79c">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_4c0f1004-d311-49f9-9def-7cd4d5a4e6a4"
      id="F_ea543a17-2471-44d1-84c0-f6a8bc3de26d">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_4c0f1004-d311-49f9-9def-7cd4d5a4e6a4"
      id="F_c3caa888-e645-4c05-9685-0b00b42869ae">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_4c0f1004-d311-49f9-9def-7cd4d5a4e6a4"
      id="F_5a2af8eb-152d-4fcb-9cdb-9b6f9d85094e">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_4c0f1004-d311-49f9-9def-7cd4d5a4e6a4"
      id="F_bd604a02-2335-4788-95c2-399ee9bd5dc9">&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,209,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_4c0f1004-d311-49f9-9def-7cd4d5a4e6a4"
      decimals="-3"
      id="F_89653671-0160-4074-91b4-1b11bbb5dfe1"
      unitRef="U_USD">2209000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
