<?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_00214492-0d65-47a0-89c8-0cf841490139">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-14</startDate>
            <endDate>2026-07-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_00214492-0d65-47a0-89c8-0cf841490139"
      id="F_aa4662b1-18fc-4ff8-9954-2fca1bb66776">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_00214492-0d65-47a0-89c8-0cf841490139"
      id="F_fbfc6272-3164-4e83-aa1f-de147ffcc9a3">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_00214492-0d65-47a0-89c8-0cf841490139"
      id="F_c9480880-02e0-409b-8dfe-37445fb3cd57">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_00214492-0d65-47a0-89c8-0cf841490139"
      id="F_d122907c-6a6b-412b-b8a3-8f3e0cbd7b61">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_00214492-0d65-47a0-89c8-0cf841490139"
      id="F_834ebd43-a4bf-4b81-acd5-453cf1162571">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_00214492-0d65-47a0-89c8-0cf841490139"
      id="F_9cdab872-7df3-46b0-9eb4-773979a6bd1e">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_00214492-0d65-47a0-89c8-0cf841490139"
      id="F_a99a63fe-7f2c-4b9b-9e94-6559994dd6b8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_00214492-0d65-47a0-89c8-0cf841490139"
      id="F_9923d1f9-4c77-4c91-9a0d-c98e0f30b3f4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_00214492-0d65-47a0-89c8-0cf841490139"
      id="F_dafb76c2-2d82-4b7c-9162-f524edabb2ae">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_00214492-0d65-47a0-89c8-0cf841490139"
      id="F_6093b868-df0f-4b5f-952a-0e4c8a14b7e1">&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;1,725,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_00214492-0d65-47a0-89c8-0cf841490139"
      decimals="-3"
      id="F_7a8b7419-2764-436e-80f3-45c16093d956"
      unitRef="U_USD">1725000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
