<?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_1b789372-f98b-4712-8bc5-59119578b597">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_1b789372-f98b-4712-8bc5-59119578b597"
      id="F_6375e816-9438-499f-a64f-7288191e4a7b">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_1b789372-f98b-4712-8bc5-59119578b597"
      id="F_c06fe702-7937-4b79-a116-8806dee5c0ce">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_1b789372-f98b-4712-8bc5-59119578b597"
      id="F_176efda0-f4e9-4a1c-bd56-5e78c00546ae">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_1b789372-f98b-4712-8bc5-59119578b597"
      id="F_7e15b651-7533-481e-a43a-63a8517af11a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1b789372-f98b-4712-8bc5-59119578b597"
      id="F_fff86bb3-fa48-4450-9e7b-cf8a89f4de83">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_1b789372-f98b-4712-8bc5-59119578b597"
      id="F_5fbfc1f4-edb4-442e-bff5-de6fa6953b45">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_1b789372-f98b-4712-8bc5-59119578b597"
      id="F_ef35b65a-efa0-4062-9fb8-dcf0ab862090">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_1b789372-f98b-4712-8bc5-59119578b597"
      id="F_963a0ec1-1515-417e-84a7-a19339323555">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_1b789372-f98b-4712-8bc5-59119578b597"
      id="F_970e1584-a7c1-4d55-a928-9310ea2fe501">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_1b789372-f98b-4712-8bc5-59119578b597"
      id="F_14b7233b-be63-41aa-b0e3-bb1cfd2ef960">&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;1,282,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_1b789372-f98b-4712-8bc5-59119578b597"
      decimals="-3"
      id="F_e4d79e4b-90ae-414e-861f-82e452063fa6"
      unitRef="U_USD">1282000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
