<?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_533915d3-f323-431e-958a-c8169eb6465d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-24</startDate>
            <endDate>2026-06-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_533915d3-f323-431e-958a-c8169eb6465d"
      id="F_f9930886-f52f-49fb-a2c4-5816feeea90f">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_533915d3-f323-431e-958a-c8169eb6465d"
      id="F_3208e9e2-c964-4cfa-aac2-4c43129bfc31">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_533915d3-f323-431e-958a-c8169eb6465d"
      id="F_34d7d52d-41eb-44bd-af98-d483e2bfe002">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_533915d3-f323-431e-958a-c8169eb6465d"
      id="F_33e823f0-9ebe-4c3b-a484-f0cf6f9b2134">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_533915d3-f323-431e-958a-c8169eb6465d"
      id="F_2a034644-805f-4238-a1cb-e24240a96873">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_533915d3-f323-431e-958a-c8169eb6465d"
      id="F_ad510050-a110-40ee-a82c-13aaf1365a38">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_533915d3-f323-431e-958a-c8169eb6465d"
      id="F_acb31f84-c680-4cf5-8ca7-3c4c3c6ad83d">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_533915d3-f323-431e-958a-c8169eb6465d"
      id="F_726eb61c-0687-45b7-9fe2-04d92fac5d25">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_533915d3-f323-431e-958a-c8169eb6465d"
      id="F_feed26f3-2393-4779-93af-ca331956f46a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_533915d3-f323-431e-958a-c8169eb6465d"
      id="F_2a91168c-ddf5-41ea-aa89-f3ee8ed79559">&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,021,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_533915d3-f323-431e-958a-c8169eb6465d"
      decimals="-3"
      id="F_780ee97b-4dd1-4f24-af9e-73fec992e9db"
      unitRef="U_USD">1021000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
