<?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_240aa450-2dcf-4ba3-bc8c-b5a0d99c2c0f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_240aa450-2dcf-4ba3-bc8c-b5a0d99c2c0f"
      id="F_1d93a552-2906-4870-8d13-4eacc2f4293b">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_240aa450-2dcf-4ba3-bc8c-b5a0d99c2c0f"
      id="F_c231a789-8afa-4ae1-aa30-05727df96d5c">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_240aa450-2dcf-4ba3-bc8c-b5a0d99c2c0f"
      id="F_5e7e7536-5d1f-4b2c-9c50-b800fde4cde4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_240aa450-2dcf-4ba3-bc8c-b5a0d99c2c0f"
      id="F_c6cbbf93-9593-4b4b-b893-5a432be4bc34">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_240aa450-2dcf-4ba3-bc8c-b5a0d99c2c0f"
      id="F_be33e339-9ffb-47f0-9e71-b401d3eacea3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_240aa450-2dcf-4ba3-bc8c-b5a0d99c2c0f"
      id="F_ec15d7ce-c394-41b8-8902-4219cc6a59f1">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_240aa450-2dcf-4ba3-bc8c-b5a0d99c2c0f"
      id="F_330e2bd7-ca77-43b9-ab41-7b53914cc301">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_240aa450-2dcf-4ba3-bc8c-b5a0d99c2c0f"
      id="F_631801cf-0845-485c-a88f-7248a12f4676">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_240aa450-2dcf-4ba3-bc8c-b5a0d99c2c0f"
      id="F_89f75aac-8760-4eb5-b4c1-80846c0fb6ed">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_240aa450-2dcf-4ba3-bc8c-b5a0d99c2c0f"
      id="F_7cc7bf19-1a05-4eb2-980d-7ae3df9d7478">&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;319,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_240aa450-2dcf-4ba3-bc8c-b5a0d99c2c0f"
      decimals="-3"
      id="F_62f21c7f-ffb6-4430-9e3d-31bd58b2e107"
      unitRef="U_USD">319000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
