<?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_91bcc77e-3411-477d-8598-6894ff610b5b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-30</startDate>
            <endDate>2026-07-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_91bcc77e-3411-477d-8598-6894ff610b5b"
      id="F_58a5a614-44a3-40e6-be22-d56337a5726e">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_91bcc77e-3411-477d-8598-6894ff610b5b"
      id="F_c93ae62b-3cb3-49da-b4f4-fd1e84183821">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_91bcc77e-3411-477d-8598-6894ff610b5b"
      id="F_a347e6ae-6db1-485c-bb33-8a61aa3a4564">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_91bcc77e-3411-477d-8598-6894ff610b5b"
      id="F_43201c21-37bf-43c2-b1bc-3f65ef6d3c5e">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_91bcc77e-3411-477d-8598-6894ff610b5b"
      id="F_2161467c-be13-4016-bc91-878857ed0280">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_91bcc77e-3411-477d-8598-6894ff610b5b"
      id="F_8b7fc171-c3cd-4528-a1c6-a7ed90d6b9e4">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_91bcc77e-3411-477d-8598-6894ff610b5b"
      id="F_1c8badd7-6182-41c6-adbe-c0258f7e5066">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_91bcc77e-3411-477d-8598-6894ff610b5b"
      id="F_61b67944-1db7-4a1f-b318-dfb4102153c7">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_91bcc77e-3411-477d-8598-6894ff610b5b"
      id="F_49f71008-025d-4c82-adf3-3f282fa1dd76">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_91bcc77e-3411-477d-8598-6894ff610b5b"
      id="F_4fd4746e-62d3-4c0a-a111-390a244a3c18">&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;341,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_91bcc77e-3411-477d-8598-6894ff610b5b"
      decimals="-3"
      id="F_cb6ad39a-9f36-4520-9cb7-416928af4c26"
      unitRef="U_USD">341000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
