<?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_9f03d95f-b101-4af2-8786-6896b5c00a21">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_9f03d95f-b101-4af2-8786-6896b5c00a21"
      id="F_8b3e6292-4701-4f90-944a-c9e223d156f0">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_9f03d95f-b101-4af2-8786-6896b5c00a21"
      id="F_6ad5f381-4858-4f1b-94c8-c98a23dbac4b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_9f03d95f-b101-4af2-8786-6896b5c00a21"
      id="F_6c08aff4-f279-4b16-ba0d-3d5e156eaecb">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_9f03d95f-b101-4af2-8786-6896b5c00a21"
      id="F_d271aeff-c312-426b-b60a-ee997bf04e74">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_9f03d95f-b101-4af2-8786-6896b5c00a21"
      id="F_a936fbc6-f7c7-4dcc-8c15-804343e17e8c">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9f03d95f-b101-4af2-8786-6896b5c00a21"
      id="F_84a74feb-e950-48c8-9d76-eee0bd4df4b8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_9f03d95f-b101-4af2-8786-6896b5c00a21"
      id="F_17a89af6-6e19-40c7-acd3-feb8010981bb">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_9f03d95f-b101-4af2-8786-6896b5c00a21"
      id="F_23499855-f05d-4455-9a2e-7a28354cbc85">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_9f03d95f-b101-4af2-8786-6896b5c00a21"
      id="F_728e629a-6111-48e6-b590-86255b9e8b29">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9f03d95f-b101-4af2-8786-6896b5c00a21"
      id="F_4c0ef7e3-c90a-4a83-a92a-e92c7206da1f">&lt;p style="tab-size:26.66px;font-size:12pt;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;518,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_9f03d95f-b101-4af2-8786-6896b5c00a21"
      decimals="-3"
      id="F_9940fb15-4e56-4314-9432-af8682375859"
      unitRef="U_USD">518000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
