<?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_c4a9f97c-78be-42ab-af50-725d007a986f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-24</startDate>
            <endDate>2026-06-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_c4a9f97c-78be-42ab-af50-725d007a986f"
      id="F_9ed17771-5552-4e32-abcd-e4fa33358f79">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c4a9f97c-78be-42ab-af50-725d007a986f"
      id="F_df0359ed-062e-467c-9e4d-4255e4baacce">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c4a9f97c-78be-42ab-af50-725d007a986f"
      id="F_a8449c3a-bdc7-4de8-9608-9de9c1ff2f97">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_c4a9f97c-78be-42ab-af50-725d007a986f"
      id="F_4975abf6-57fb-465b-980f-c8759957d881">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_c4a9f97c-78be-42ab-af50-725d007a986f"
      id="F_da076557-75da-45d7-bedc-5779d5088a4c">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_c4a9f97c-78be-42ab-af50-725d007a986f"
      id="F_55ade88a-b841-40ab-898e-8c110a1e68d1">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_c4a9f97c-78be-42ab-af50-725d007a986f"
      id="F_e1319901-dbe5-4293-9b23-cb1d8cd270c1">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_c4a9f97c-78be-42ab-af50-725d007a986f"
      id="F_7c4a0a0c-8077-44fe-933d-2499f36025c8">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_c4a9f97c-78be-42ab-af50-725d007a986f"
      id="F_2506b5be-b5e4-4422-9d2d-679a034852be">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c4a9f97c-78be-42ab-af50-725d007a986f"
      id="F_a545c865-c025-432f-8e0b-1e793ef0e8aa">&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;516,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_c4a9f97c-78be-42ab-af50-725d007a986f"
      decimals="-3"
      id="F_53222cab-fb1d-4a7c-b81a-aa6a20b594f4"
      unitRef="U_USD">516000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
