<?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_81e30288-aa61-4a8c-bcb5-9ed5ce6eb858">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-28</startDate>
            <endDate>2026-09-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_81e30288-aa61-4a8c-bcb5-9ed5ce6eb858"
      id="F_08c8a3cc-e86e-4fca-b83d-872714bdc73d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_81e30288-aa61-4a8c-bcb5-9ed5ce6eb858"
      id="F_c8c1154b-25a0-463f-b963-100049fc2158">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_81e30288-aa61-4a8c-bcb5-9ed5ce6eb858"
      id="F_ab6018e7-1c40-4cdc-aa3e-37559637c980">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_81e30288-aa61-4a8c-bcb5-9ed5ce6eb858"
      id="F_814cb948-3d42-4fd2-b07b-d23b65354e16">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_81e30288-aa61-4a8c-bcb5-9ed5ce6eb858"
      id="F_a859b07f-1ce5-41a5-b849-3aa915963595">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_81e30288-aa61-4a8c-bcb5-9ed5ce6eb858"
      id="F_9e712374-de15-4699-8b87-49b7d14b3736">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_81e30288-aa61-4a8c-bcb5-9ed5ce6eb858"
      id="F_ba6064bb-e70b-4755-b9b6-d93d2936977f">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_81e30288-aa61-4a8c-bcb5-9ed5ce6eb858"
      id="F_d1c4c8ce-d985-4aed-b468-89aa1e5a3be8">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_81e30288-aa61-4a8c-bcb5-9ed5ce6eb858"
      id="F_5620e804-e879-4c54-91a9-4b9b754a0b5b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_81e30288-aa61-4a8c-bcb5-9ed5ce6eb858"
      id="F_27afd5ac-e71c-448d-82e7-d9a768616219">&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;2,000,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_81e30288-aa61-4a8c-bcb5-9ed5ce6eb858"
      decimals="-6"
      id="F_1f39f101-e957-450b-b523-a0e5c568d339"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
