<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_2ac084dc-0ffa-4aee-bb53-eaad98da7d33">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-17</startDate>
            <endDate>2026-03-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_2ac084dc-0ffa-4aee-bb53-eaad98da7d33"
      id="F_0c2efed2-afa6-4495-a617-fe3350fd2f05">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_2ac084dc-0ffa-4aee-bb53-eaad98da7d33"
      id="F_6383093a-88ce-4502-894d-791341425de3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_2ac084dc-0ffa-4aee-bb53-eaad98da7d33"
      id="F_e67b60eb-2cdf-41ed-b4d3-22064d916ba7">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_2ac084dc-0ffa-4aee-bb53-eaad98da7d33"
      id="F_c66cc5b7-6b1b-4e18-a3a1-b8ee396addff">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_2ac084dc-0ffa-4aee-bb53-eaad98da7d33"
      id="F_a3328b1d-78d5-47cb-9f5b-153ca134fbc3">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_2ac084dc-0ffa-4aee-bb53-eaad98da7d33"
      id="F_4791203a-737e-4b88-97b4-f0d39ac6c672">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_2ac084dc-0ffa-4aee-bb53-eaad98da7d33"
      id="F_94619dab-5d2f-4049-87a6-86f118c11838">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_2ac084dc-0ffa-4aee-bb53-eaad98da7d33"
      id="F_1604a7c1-0bdc-425a-b4d9-538070163063">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2ac084dc-0ffa-4aee-bb53-eaad98da7d33"
      id="F_23ab025b-88c1-4ea5-a7ca-eba5b373593a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_2ac084dc-0ffa-4aee-bb53-eaad98da7d33"
      id="F_550e4cb1-407e-4f6a-b8fd-ad2edcf2fab2">&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,414,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_2ac084dc-0ffa-4aee-bb53-eaad98da7d33"
      decimals="0"
      id="F_3f627951-2325-46c8-98d3-9dd8619ac2f0"
      unitRef="U_USD">1414000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
