<?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_feb376df-b3f6-4ca3-8f91-a7e66f11cc37">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_feb376df-b3f6-4ca3-8f91-a7e66f11cc37"
      id="F_caa62cc2-362c-4d0b-9dc4-31d82de357f7">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_feb376df-b3f6-4ca3-8f91-a7e66f11cc37"
      id="F_b76173b2-b474-4ea7-a401-73b93e575def">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_feb376df-b3f6-4ca3-8f91-a7e66f11cc37"
      id="F_405f144e-0f77-4205-99ad-b92bbcf1f38c">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_feb376df-b3f6-4ca3-8f91-a7e66f11cc37"
      id="F_8d30088f-8342-4eaa-ac0a-9a03311c3aab">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_feb376df-b3f6-4ca3-8f91-a7e66f11cc37"
      id="F_85745f39-2e4f-4d72-9587-1e8c5bfbe404">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_feb376df-b3f6-4ca3-8f91-a7e66f11cc37"
      id="F_a5dcef9a-d42e-45b8-9a46-545c9d757451">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_feb376df-b3f6-4ca3-8f91-a7e66f11cc37"
      id="F_93a5009c-acac-41f2-b546-441272b5014f">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_feb376df-b3f6-4ca3-8f91-a7e66f11cc37"
      id="F_16c012f5-b935-41cc-8605-928e506def9e">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_feb376df-b3f6-4ca3-8f91-a7e66f11cc37"
      id="F_b42c5da8-8519-4f8f-bb2e-a795d6c16642">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_feb376df-b3f6-4ca3-8f91-a7e66f11cc37"
      id="F_1c4fa2f4-7c0f-46cd-9974-ed38a2c093be">&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,000,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_feb376df-b3f6-4ca3-8f91-a7e66f11cc37"
      decimals="-6"
      id="F_6e408bb0-e737-459b-91bc-7b6a403352df"
      unitRef="U_USD">5000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
