<?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_28053986-f08c-4540-bc03-c1a25635d373">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-21</startDate>
            <endDate>2026-05-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_28053986-f08c-4540-bc03-c1a25635d373"
      id="F_362489a8-148a-4d51-98c5-ddb344e05824">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_28053986-f08c-4540-bc03-c1a25635d373"
      id="F_554fcc4e-70f1-4dc6-b170-18064c6b51ca">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_28053986-f08c-4540-bc03-c1a25635d373"
      id="F_87ab5aaa-bdd0-458c-b8f6-2812880bd8b2">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_28053986-f08c-4540-bc03-c1a25635d373"
      id="F_ebf5064b-6490-44c9-b1f4-d0ddd8b5cddd">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_28053986-f08c-4540-bc03-c1a25635d373"
      id="F_c24411cc-527a-45be-ab92-98bbc1981d43">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_28053986-f08c-4540-bc03-c1a25635d373"
      id="F_3325bfed-6726-4e02-85e3-bec4c65b7aa0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_28053986-f08c-4540-bc03-c1a25635d373"
      id="F_56b97fb0-bbb6-4f5e-87d6-8da3024dfe43">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_28053986-f08c-4540-bc03-c1a25635d373"
      id="F_e4980c6a-4073-41ba-aaaa-75f621ae88ee">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_28053986-f08c-4540-bc03-c1a25635d373"
      id="F_6a00521d-92b0-4903-b42b-0f07939e652d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_28053986-f08c-4540-bc03-c1a25635d373"
      id="F_3f20e3a9-59b4-4863-9d8c-dd1c218bed5b">&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,446,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_28053986-f08c-4540-bc03-c1a25635d373"
      decimals="0"
      id="F_407c0a27-ed7c-40dc-a314-63814cfaacb9"
      unitRef="U_USD">2446000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
