<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_26a5d2ed-6e6a-443c-88c1-82a3f24b8d5b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-27</startDate>
            <endDate>2026-05-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_26a5d2ed-6e6a-443c-88c1-82a3f24b8d5b"
      id="F_ddd7a7db-9db5-4ea5-b1c0-304ef92a95bf">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_26a5d2ed-6e6a-443c-88c1-82a3f24b8d5b"
      id="F_343839a1-7b1e-419d-a0ab-3b08e15317cd">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_26a5d2ed-6e6a-443c-88c1-82a3f24b8d5b"
      id="F_591a1fc1-1439-4df5-9d6b-b7fddd256760">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_26a5d2ed-6e6a-443c-88c1-82a3f24b8d5b"
      id="F_68d18423-71d4-4427-9c2a-e46bba980000">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_26a5d2ed-6e6a-443c-88c1-82a3f24b8d5b"
      id="F_50ff2241-1c08-45b0-a630-c2c23bf1edf7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_26a5d2ed-6e6a-443c-88c1-82a3f24b8d5b"
      id="F_6c351ed0-9b45-47d8-a7eb-de05c3701364">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_26a5d2ed-6e6a-443c-88c1-82a3f24b8d5b"
      id="F_1c4d5e30-001f-4549-b0cb-06811d06d5cd">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_26a5d2ed-6e6a-443c-88c1-82a3f24b8d5b"
      id="F_59d6d178-5ab1-4e17-8b53-aded9853d42c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_26a5d2ed-6e6a-443c-88c1-82a3f24b8d5b"
      id="F_42ea980b-0412-4bf3-8f24-9d1e8d846cc6">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_26a5d2ed-6e6a-443c-88c1-82a3f24b8d5b"
      id="F_150843b7-6562-40ad-bbe9-29b6c696150a">&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;2,460,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_26a5d2ed-6e6a-443c-88c1-82a3f24b8d5b"
      decimals="0"
      id="F_695ef824-3ca4-4fec-960b-1d01ab0a81e4"
      unitRef="U_USD">2460000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
