<?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_f09a8f93-cb21-43cd-b556-2cc43a149119">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-30</startDate>
            <endDate>2026-09-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_f09a8f93-cb21-43cd-b556-2cc43a149119"
      id="F_9906400a-c5cd-401e-a44f-a53a7ccb6609">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_f09a8f93-cb21-43cd-b556-2cc43a149119"
      id="F_0effcd86-febf-4935-bc42-1729fb0e361f">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f09a8f93-cb21-43cd-b556-2cc43a149119"
      id="F_f678892c-ff67-4a69-9312-82ff8eb6a257">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_f09a8f93-cb21-43cd-b556-2cc43a149119"
      id="F_8b6e1d7f-b215-4225-b403-38408f92e4b4">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_f09a8f93-cb21-43cd-b556-2cc43a149119"
      id="F_3a3fde10-191e-4718-a5f3-c7f940b31c67">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_f09a8f93-cb21-43cd-b556-2cc43a149119"
      id="F_9cd3d2b2-52b9-4082-8774-d27b675145de">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_f09a8f93-cb21-43cd-b556-2cc43a149119"
      id="F_2a09ce93-0386-40c0-9064-ec15894430b4">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_f09a8f93-cb21-43cd-b556-2cc43a149119"
      id="F_6f0c6136-9196-4cc4-8d2c-bbf51fcab336">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_f09a8f93-cb21-43cd-b556-2cc43a149119"
      id="F_f0a90c8f-a9ab-4098-a7a6-c9af3c7b0b5e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f09a8f93-cb21-43cd-b556-2cc43a149119"
      id="F_53adff58-fcad-4146-a0af-a8acabe31068">&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_f09a8f93-cb21-43cd-b556-2cc43a149119"
      decimals="-6"
      id="F_5e3c597a-bc66-4fcc-85cf-4e11db0a994e"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
