<?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_44102ee4-e00f-400d-be4a-fd0301671462">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_44102ee4-e00f-400d-be4a-fd0301671462"
      id="F_d6648f3c-947e-4b47-81a4-bbe479bfa6a9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_44102ee4-e00f-400d-be4a-fd0301671462"
      id="F_f9df2045-0371-4407-9b22-14449ee537a4">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_44102ee4-e00f-400d-be4a-fd0301671462"
      id="F_c3d5654b-3869-4d31-b589-3f3ed302597d">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_44102ee4-e00f-400d-be4a-fd0301671462"
      id="F_5a4b09d0-ac26-43f8-8692-247bebb3f478">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_44102ee4-e00f-400d-be4a-fd0301671462"
      id="F_31f87008-c953-4286-9ddc-ddd6571d9d5e">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_44102ee4-e00f-400d-be4a-fd0301671462"
      id="F_e9b341e5-119e-4938-b2a4-67c725126b1a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_44102ee4-e00f-400d-be4a-fd0301671462"
      id="F_da59a819-737a-4cfb-bc2f-75306ee71d31">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_44102ee4-e00f-400d-be4a-fd0301671462"
      id="F_64e32f1f-d303-4503-8ff4-c5d9ec9ad534">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_44102ee4-e00f-400d-be4a-fd0301671462"
      id="F_bae13157-7f98-4f40-ac0a-502910370b53">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_44102ee4-e00f-400d-be4a-fd0301671462"
      id="F_4224b5b5-7a00-444e-9a75-cbb8a73932de">&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,601,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_44102ee4-e00f-400d-be4a-fd0301671462"
      decimals="-3"
      id="F_c8aa9c60-8b90-4012-9ffe-6dcf44a5c665"
      unitRef="U_USD">1601000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
