<?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_00ccaabb-b8c9-4573-b215-4160bf775583">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-10</startDate>
            <endDate>2026-07-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_00ccaabb-b8c9-4573-b215-4160bf775583"
      id="F_a75cd906-5956-4c9c-abad-1c8549bef551">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_00ccaabb-b8c9-4573-b215-4160bf775583"
      id="F_70135f4b-9bcf-4e8e-9fc4-9837e89fec90">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_00ccaabb-b8c9-4573-b215-4160bf775583"
      id="F_63a762d3-0d08-4cd1-a254-5902abf0c91f">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_00ccaabb-b8c9-4573-b215-4160bf775583"
      id="F_3b37ac3d-37d6-4a98-8c6c-9a875621274d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_00ccaabb-b8c9-4573-b215-4160bf775583"
      id="F_38606a47-f753-4448-9273-a33c2b58b3bd">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_00ccaabb-b8c9-4573-b215-4160bf775583"
      id="F_d9436387-44ae-4aa3-b909-9975a4cfc0ed">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_00ccaabb-b8c9-4573-b215-4160bf775583"
      id="F_1217b140-6d7b-4b67-904a-adfaa2442d0a">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_00ccaabb-b8c9-4573-b215-4160bf775583"
      id="F_1223b93c-c1ed-4aba-b51a-42309d6a59fa">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_00ccaabb-b8c9-4573-b215-4160bf775583"
      id="F_1e517e7c-21c2-4e8a-933a-01cd3031966d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_00ccaabb-b8c9-4573-b215-4160bf775583"
      id="F_290d4b49-5ed6-4e17-a41f-8492cf01bbb0">&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;500,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_00ccaabb-b8c9-4573-b215-4160bf775583"
      decimals="-3"
      id="F_a74a3d1c-a49e-4de3-9a11-72a485622e8a"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
