<?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_3386a555-4c8e-4b68-8c4e-a23488466699">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-17</startDate>
            <endDate>2026-07-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_3386a555-4c8e-4b68-8c4e-a23488466699"
      id="F_f3ef7419-2b84-4021-bc08-2f5c4a1b66be">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_3386a555-4c8e-4b68-8c4e-a23488466699"
      id="F_3155748c-abcd-48e9-8a14-e7775967fd28">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_3386a555-4c8e-4b68-8c4e-a23488466699"
      id="F_79fd2e6c-55b8-49af-9ce7-2ecf6d596c7e">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_3386a555-4c8e-4b68-8c4e-a23488466699"
      id="F_c39571c8-3edb-41a6-9220-6799e39b9309">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_3386a555-4c8e-4b68-8c4e-a23488466699"
      id="F_1411fe37-c817-4c60-ba67-e941cbb58386">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_3386a555-4c8e-4b68-8c4e-a23488466699"
      id="F_9d4b8a9d-8d5d-43ac-b27a-985c2963532f">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_3386a555-4c8e-4b68-8c4e-a23488466699"
      id="F_3f53216b-482d-4bd8-9847-fe2ca38ac8cd">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3386a555-4c8e-4b68-8c4e-a23488466699"
      id="F_f15db906-7ba3-4c9d-8764-6a8473124459">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_3386a555-4c8e-4b68-8c4e-a23488466699"
      id="F_94ef4091-9b97-4cb2-bf78-453c921f2211">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_3386a555-4c8e-4b68-8c4e-a23488466699"
      id="F_1c68e798-c566-4948-ae14-d59d1346e1af">&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;575,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_3386a555-4c8e-4b68-8c4e-a23488466699"
      decimals="-3"
      id="F_2e7b0740-5453-4988-b2dd-a707aae79f11"
      unitRef="U_USD">575000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
