<?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_8e60c036-2cf5-46b5-93a2-beeb74789e9d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-06</startDate>
            <endDate>2026-07-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_8e60c036-2cf5-46b5-93a2-beeb74789e9d"
      id="F_f31100c9-f9f7-428e-b2fc-e4ee635f8211">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_8e60c036-2cf5-46b5-93a2-beeb74789e9d"
      id="F_2f769c81-da6e-4496-afea-df2ee4d7302e">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_8e60c036-2cf5-46b5-93a2-beeb74789e9d"
      id="F_f0675a6a-59f5-4677-b860-0ab7e74872ad">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_8e60c036-2cf5-46b5-93a2-beeb74789e9d"
      id="F_f5740fb8-6af9-42f7-b8ff-03e345bb49c6">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8e60c036-2cf5-46b5-93a2-beeb74789e9d"
      id="F_9613dc5c-cd75-4d26-9994-0a22087086b0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_8e60c036-2cf5-46b5-93a2-beeb74789e9d"
      id="F_1a254415-f417-4872-9a97-4ddc10ffa8c0">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_8e60c036-2cf5-46b5-93a2-beeb74789e9d"
      id="F_3cf0b832-b751-4322-9352-a47cbbcd7b44">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_8e60c036-2cf5-46b5-93a2-beeb74789e9d"
      id="F_1b15ea90-1753-4f29-b4a1-8e0dad01ada5">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_8e60c036-2cf5-46b5-93a2-beeb74789e9d"
      id="F_c18e4232-b832-4109-8137-b9140d894a34">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_8e60c036-2cf5-46b5-93a2-beeb74789e9d"
      id="F_4021df3f-43a6-42b8-87c3-85ba0844f69a">&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,378,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_8e60c036-2cf5-46b5-93a2-beeb74789e9d"
      decimals="-3"
      id="F_34ae71fe-a002-4ea4-9c03-57a94017210c"
      unitRef="U_USD">1378000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
