<?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_f47e9ac8-2620-4463-a366-6b3ae340e6ff">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_f47e9ac8-2620-4463-a366-6b3ae340e6ff"
      id="F_b0b2d6be-33bd-4c7e-ba9a-76322994d6c1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_f47e9ac8-2620-4463-a366-6b3ae340e6ff"
      id="F_5d3ff10e-a42f-4292-a580-9df90ed4651f">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_f47e9ac8-2620-4463-a366-6b3ae340e6ff"
      id="F_ee751228-347f-47de-b5b9-5b4921424afa">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f47e9ac8-2620-4463-a366-6b3ae340e6ff"
      id="F_0843beb4-b029-440f-9c54-08506ad29d7a">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_f47e9ac8-2620-4463-a366-6b3ae340e6ff"
      id="F_324f9d33-f35c-4ba1-959a-23a84158164c">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f47e9ac8-2620-4463-a366-6b3ae340e6ff"
      id="F_27434ecf-c3ff-4933-a8c4-04bc62d26b29">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_f47e9ac8-2620-4463-a366-6b3ae340e6ff"
      id="F_5491e79c-befe-4c86-b2e7-17b0595773e0">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_f47e9ac8-2620-4463-a366-6b3ae340e6ff"
      id="F_8b3d9b42-a2a8-4fbe-913f-a8be811247fb">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_f47e9ac8-2620-4463-a366-6b3ae340e6ff"
      id="F_aee8b58e-b082-4ffd-8eb2-93a69f34d942">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f47e9ac8-2620-4463-a366-6b3ae340e6ff"
      id="F_69aa5dcc-fce9-4592-9d4e-bc8b36de35bf">&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;19,764,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_f47e9ac8-2620-4463-a366-6b3ae340e6ff"
      decimals="-3"
      id="F_773e3a13-93c2-432c-a578-cc4a25a450e2"
      unitRef="U_USD">19764000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
