<?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_936024b9-640f-4520-82b6-324ea98557c3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-07</startDate>
            <endDate>2026-07-07</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_936024b9-640f-4520-82b6-324ea98557c3"
      id="F_6ba05564-8ecf-4b0f-b03b-13dbdfa3f4dd">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_936024b9-640f-4520-82b6-324ea98557c3"
      id="F_f7c04f5b-45d7-4d88-9fc1-6ff04308e494">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_936024b9-640f-4520-82b6-324ea98557c3"
      id="F_decb98f8-1271-488a-9a74-2f6dbb2352bd">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_936024b9-640f-4520-82b6-324ea98557c3"
      id="F_9edfde78-1757-454e-9831-1468ab14b458">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_936024b9-640f-4520-82b6-324ea98557c3"
      id="F_dd3f3976-1da1-42c7-b634-300188a82adf">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_936024b9-640f-4520-82b6-324ea98557c3"
      id="F_d01d4f38-f566-4f98-ab6a-9984a8ecedde">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_936024b9-640f-4520-82b6-324ea98557c3"
      id="F_13f886a7-4d0b-4deb-9ccb-20361df12635">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_936024b9-640f-4520-82b6-324ea98557c3"
      id="F_8795e732-96cc-4b74-888b-9cba1ebb8f52">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_936024b9-640f-4520-82b6-324ea98557c3"
      id="F_54edb360-5e03-41bf-b05f-ffccd4c39de7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_936024b9-640f-4520-82b6-324ea98557c3"
      id="F_a3f45355-f7b4-4d0c-a56b-4028e92c4c5d">&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;18,344,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_936024b9-640f-4520-82b6-324ea98557c3"
      decimals="-3"
      id="F_b3a0b8b3-421c-431f-a40d-28271cf9c35f"
      unitRef="U_USD">18344000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
