<?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_aaf3a61f-4f57-492f-a075-a6226b6036ef">
        <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:FormTp
      contextRef="C_aaf3a61f-4f57-492f-a075-a6226b6036ef"
      id="F_738e9bd9-124a-41d4-a9c2-738b14df4884">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_aaf3a61f-4f57-492f-a075-a6226b6036ef"
      id="F_8a4ba99f-5924-4766-90d0-b0c189004652">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_aaf3a61f-4f57-492f-a075-a6226b6036ef"
      id="F_edc1e51b-0837-400a-b046-5352c1b92cc8">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_aaf3a61f-4f57-492f-a075-a6226b6036ef"
      id="F_8e4fda0a-fb1d-4b9e-9fbb-e1bbbd36be7b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_aaf3a61f-4f57-492f-a075-a6226b6036ef"
      id="F_4d87767a-ac6c-44c9-9123-17517ab91891">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_aaf3a61f-4f57-492f-a075-a6226b6036ef"
      id="F_c0a6f1fd-b5ff-4bdb-ba72-361d1602938c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_aaf3a61f-4f57-492f-a075-a6226b6036ef"
      id="F_fbe248b1-3f7e-4911-83c0-4cb5e2613bda">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_aaf3a61f-4f57-492f-a075-a6226b6036ef"
      id="F_c112a1cb-01a2-41a2-9c14-960e4dd38690">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_aaf3a61f-4f57-492f-a075-a6226b6036ef"
      id="F_7662362c-c0a7-4e5e-8b43-d968f4a3143b">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_aaf3a61f-4f57-492f-a075-a6226b6036ef"
      id="F_fe6eb1ff-e7c3-48e3-8f30-2d5087259ba6">&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;5,141,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_aaf3a61f-4f57-492f-a075-a6226b6036ef"
      decimals="-3"
      id="F_90e13a9d-4f52-487e-bb91-8688fc2a7a17"
      unitRef="U_USD">5141000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
