<?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_2a0f29da-bc12-4132-8a04-0ff23deb5f40">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-17</startDate>
            <endDate>2026-09-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2a0f29da-bc12-4132-8a04-0ff23deb5f40"
      id="F_9ef5223e-b288-4e03-acc7-215504d13f29">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_2a0f29da-bc12-4132-8a04-0ff23deb5f40"
      id="F_1c218d61-a338-4158-a731-3faa7c456875">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_2a0f29da-bc12-4132-8a04-0ff23deb5f40"
      id="F_01e9312d-6bec-4a3a-9b18-4411afe5bfb3">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_2a0f29da-bc12-4132-8a04-0ff23deb5f40"
      id="F_290328e4-871f-4fa3-81aa-647eb86f4dee">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_2a0f29da-bc12-4132-8a04-0ff23deb5f40"
      id="F_5f927c1e-8df2-4440-87e7-587d608547a3">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_2a0f29da-bc12-4132-8a04-0ff23deb5f40"
      id="F_ffc14803-326f-4796-b4fb-eedd3dbace23">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_2a0f29da-bc12-4132-8a04-0ff23deb5f40"
      id="F_334b3c9e-c0ec-4b9b-a26e-b0c9d94e271c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_2a0f29da-bc12-4132-8a04-0ff23deb5f40"
      id="F_6d416817-b1e1-44cc-90f7-509cbca61180">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_2a0f29da-bc12-4132-8a04-0ff23deb5f40"
      id="F_7f6a6b66-d137-45f0-9f00-c0bcd6fb4929">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_2a0f29da-bc12-4132-8a04-0ff23deb5f40"
      id="F_706021ce-2d34-4317-a4fa-efde2950f0e1">&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;8,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_2a0f29da-bc12-4132-8a04-0ff23deb5f40"
      decimals="-6"
      id="F_fa8c2915-c4f3-48be-a2da-ec05ac32b32a"
      unitRef="U_USD">8000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
