<?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_efad41e1-a0df-44c8-ac55-bc7443053a4a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_efad41e1-a0df-44c8-ac55-bc7443053a4a"
      id="F_7dcd0439-b545-4d36-8142-70266eb4a4c1">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_efad41e1-a0df-44c8-ac55-bc7443053a4a"
      id="F_8ff709ac-8af7-4b67-9287-5a90726710e3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_efad41e1-a0df-44c8-ac55-bc7443053a4a"
      id="F_6cd668b8-5b86-4760-87ee-cc810e1a537b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_efad41e1-a0df-44c8-ac55-bc7443053a4a"
      id="F_691673c0-0889-4a16-8bc5-81a852ddf3d2">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_efad41e1-a0df-44c8-ac55-bc7443053a4a"
      id="F_2a51c00c-ad7b-466d-b667-b03d94fd1b39">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_efad41e1-a0df-44c8-ac55-bc7443053a4a"
      id="F_9ec23d5b-d232-49b0-9d73-210102b6d93d">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_efad41e1-a0df-44c8-ac55-bc7443053a4a"
      id="F_306dcdfc-6c66-48fe-9361-cd4280ea33dc">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_efad41e1-a0df-44c8-ac55-bc7443053a4a"
      id="F_209b4c21-8f05-4072-a54c-df93ac5c1daf">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_efad41e1-a0df-44c8-ac55-bc7443053a4a"
      id="F_fc1e5c9d-6135-4fa9-8b07-5c3e5987674a">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_efad41e1-a0df-44c8-ac55-bc7443053a4a"
      id="F_75fe91d1-3291-4893-ba30-e9304c137433">&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,600,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_efad41e1-a0df-44c8-ac55-bc7443053a4a"
      decimals="-3"
      id="F_ceb49139-13f3-42ad-9538-0f3a964f6a32"
      unitRef="U_USD">5600000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
