<?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_c1aecd6d-a2b2-4101-b59a-b2a54b9cd4a4">
        <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:OfferingTableNa
      contextRef="C_c1aecd6d-a2b2-4101-b59a-b2a54b9cd4a4"
      id="F_c15c743a-4190-488d-916e-d0ae3ab299d0">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c1aecd6d-a2b2-4101-b59a-b2a54b9cd4a4"
      id="F_acd1676d-512a-4150-a5d2-a104882a0f97">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c1aecd6d-a2b2-4101-b59a-b2a54b9cd4a4"
      id="F_fd513c54-26ec-4710-918a-4824e3b42fc2">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_c1aecd6d-a2b2-4101-b59a-b2a54b9cd4a4"
      id="F_db5fe59b-2cf5-4c58-8392-d589ad77f1e4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_c1aecd6d-a2b2-4101-b59a-b2a54b9cd4a4"
      id="F_75de64db-784b-4cbe-a7ff-6e773f4e645c">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_c1aecd6d-a2b2-4101-b59a-b2a54b9cd4a4"
      id="F_0be33bd8-365d-404b-9b60-69d1af4779aa">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_c1aecd6d-a2b2-4101-b59a-b2a54b9cd4a4"
      id="F_e678a541-d537-4545-893d-18f56a55cef7">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_c1aecd6d-a2b2-4101-b59a-b2a54b9cd4a4"
      id="F_647c5d59-c574-4d8c-afc9-718ad74eed09">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_c1aecd6d-a2b2-4101-b59a-b2a54b9cd4a4"
      id="F_e480b9e6-40b2-4a4a-af35-258a9bb19099">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c1aecd6d-a2b2-4101-b59a-b2a54b9cd4a4"
      id="F_58ce90e9-19b5-4a6d-82aa-9c80bcc457d7">&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;3,908,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_c1aecd6d-a2b2-4101-b59a-b2a54b9cd4a4"
      decimals="-3"
      id="F_114ee1e0-80d2-4f3c-b7a8-b1c444cccdc3"
      unitRef="U_USD">3908000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
