<?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_87e1a87e-6994-4722-9e6f-c35c3fcfb681">
        <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:EntityRegistrantName
      contextRef="C_87e1a87e-6994-4722-9e6f-c35c3fcfb681"
      id="F_975cdea6-7b32-4027-a2d8-4d7185cd7d70">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_87e1a87e-6994-4722-9e6f-c35c3fcfb681"
      id="F_5e9bbbf0-fe0a-40ae-b34a-92cb7a1658a8">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_87e1a87e-6994-4722-9e6f-c35c3fcfb681"
      id="F_035eb89a-9ffa-4cd1-90db-68251b982dff">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_87e1a87e-6994-4722-9e6f-c35c3fcfb681"
      id="F_ccfee0d8-ac6a-4d9a-ac8e-7c9f8784599a">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_87e1a87e-6994-4722-9e6f-c35c3fcfb681"
      id="F_cdf995d0-937f-4591-9279-3d91c2e68f62">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_87e1a87e-6994-4722-9e6f-c35c3fcfb681"
      id="F_e89adeeb-0cd6-4844-8a17-e6f9b374eb62">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_87e1a87e-6994-4722-9e6f-c35c3fcfb681"
      id="F_748d7c3a-bfec-4d72-a204-69e2996580a3">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_87e1a87e-6994-4722-9e6f-c35c3fcfb681"
      id="F_c0b18171-5bed-49d0-a889-b6283a205f7c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_87e1a87e-6994-4722-9e6f-c35c3fcfb681"
      id="F_ae58bf3d-dd9e-4876-a52b-e7b1dbf8b99a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_87e1a87e-6994-4722-9e6f-c35c3fcfb681"
      id="F_72c2fdac-17be-446a-ad0e-6bf52cfed1f5">&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;545,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_87e1a87e-6994-4722-9e6f-c35c3fcfb681"
      decimals="-3"
      id="F_d1fe0ea5-e9ec-4849-a5fa-494b169ddbb6"
      unitRef="U_USD">545000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
