<?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_d9fa0721-76d8-44ab-9e5d-1ac95eee97d8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-28</startDate>
            <endDate>2026-09-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_d9fa0721-76d8-44ab-9e5d-1ac95eee97d8"
      id="F_92ae13ca-3a53-442e-a170-c6d8966805cf">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_d9fa0721-76d8-44ab-9e5d-1ac95eee97d8"
      id="F_cd7324cb-5ccd-49f6-848c-e252b17f3497">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_d9fa0721-76d8-44ab-9e5d-1ac95eee97d8"
      id="F_1044d15e-9371-4f7f-ae94-fe6bbb6a11f0">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_d9fa0721-76d8-44ab-9e5d-1ac95eee97d8"
      id="F_7c247f69-5678-4a7d-bf7a-61d254232938">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_d9fa0721-76d8-44ab-9e5d-1ac95eee97d8"
      id="F_cd4dd3aa-7097-4a3e-8289-918703f24d88">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_d9fa0721-76d8-44ab-9e5d-1ac95eee97d8"
      id="F_123fa652-ffd7-435a-979e-4f29c878db9d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_d9fa0721-76d8-44ab-9e5d-1ac95eee97d8"
      id="F_1b533133-d793-4559-9909-d80b568f025f">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d9fa0721-76d8-44ab-9e5d-1ac95eee97d8"
      id="F_052b597f-d51b-4419-8e77-560c94f52d81">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_d9fa0721-76d8-44ab-9e5d-1ac95eee97d8"
      id="F_2c0dcde7-0253-4ef1-8287-59a48430d876">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_d9fa0721-76d8-44ab-9e5d-1ac95eee97d8"
      id="F_fa6d6960-f8cd-4aef-9295-825dcdd05082">&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;752,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_d9fa0721-76d8-44ab-9e5d-1ac95eee97d8"
      decimals="-3"
      id="F_2da5828b-f506-4a6b-a840-bc3fe0a7a58e"
      unitRef="U_USD">752000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
