<?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_1abbc771-1279-4b8a-977b-ac55ed7629a5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_1abbc771-1279-4b8a-977b-ac55ed7629a5"
      id="F_65bfe9b4-8823-44be-bfed-523dcbef126a">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_1abbc771-1279-4b8a-977b-ac55ed7629a5"
      id="F_94000976-20a4-4a31-9564-412458ecf553">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_1abbc771-1279-4b8a-977b-ac55ed7629a5"
      id="F_f7575281-49bd-4bc2-a05a-835819921138">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_1abbc771-1279-4b8a-977b-ac55ed7629a5"
      id="F_8b6db33d-bb67-4846-99d3-e25ad82cf336">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_1abbc771-1279-4b8a-977b-ac55ed7629a5"
      id="F_0bb7a436-b729-4b83-890f-216aa702a998">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1abbc771-1279-4b8a-977b-ac55ed7629a5"
      id="F_41590a2e-826b-45af-aa40-61a3aba8e2ec">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_1abbc771-1279-4b8a-977b-ac55ed7629a5"
      id="F_212bbe26-795c-4d05-aaeb-a1e9ae6574ac">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_1abbc771-1279-4b8a-977b-ac55ed7629a5"
      id="F_9646d0e6-641d-4b9f-86d5-def54ba4fba5">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_1abbc771-1279-4b8a-977b-ac55ed7629a5"
      id="F_3c031297-26ea-4832-8fd0-a908c8a9b3c3">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_1abbc771-1279-4b8a-977b-ac55ed7629a5"
      id="F_c1e898cd-1da4-4646-a7ac-6e61486d31c2">&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,596,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_1abbc771-1279-4b8a-977b-ac55ed7629a5"
      decimals="-3"
      id="F_b870953b-de25-401d-9999-353ccbbffb30"
      unitRef="U_USD">5596000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
