<?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_447fb380-9486-494e-a56c-dde4e5b859db">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_447fb380-9486-494e-a56c-dde4e5b859db"
      id="F_0e1b1bcf-7cad-43eb-a97c-b45fb12f112c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_447fb380-9486-494e-a56c-dde4e5b859db"
      id="F_f110e209-6580-4183-8075-663cdbf1d3c2">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_447fb380-9486-494e-a56c-dde4e5b859db"
      id="F_d973f600-9f84-4896-8929-ac6d71c3ff5c">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_447fb380-9486-494e-a56c-dde4e5b859db"
      id="F_62090c51-3d67-491a-a1fc-5fc8435f1f7a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_447fb380-9486-494e-a56c-dde4e5b859db"
      id="F_dca6154a-1fd7-4796-8cea-bdad2072ce80">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_447fb380-9486-494e-a56c-dde4e5b859db"
      id="F_421a5955-ce3b-41a1-bc4c-d975124257b4">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_447fb380-9486-494e-a56c-dde4e5b859db"
      id="F_d867e3cd-623b-491f-8e34-3980bf543f96">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_447fb380-9486-494e-a56c-dde4e5b859db"
      id="F_6373338b-5c95-4f18-8465-8c29d722eaf4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_447fb380-9486-494e-a56c-dde4e5b859db"
      id="F_2109d92e-8e36-4775-a6cb-2047fe803967">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_447fb380-9486-494e-a56c-dde4e5b859db"
      id="F_65c24645-180e-4555-8475-b8e0fdcb681d">&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;7,938,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_447fb380-9486-494e-a56c-dde4e5b859db"
      decimals="-3"
      id="F_e86ff134-3b89-4f66-a331-87198d02ca18"
      unitRef="U_USD">7938000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
