<?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_cbc9e1ea-c5d5-471d-829b-c5fa540cfa24">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_cbc9e1ea-c5d5-471d-829b-c5fa540cfa24"
      id="F_5eb276f2-4c2f-4a26-b098-f86bfdc7c930">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_cbc9e1ea-c5d5-471d-829b-c5fa540cfa24"
      id="F_8242741a-e4c7-4f09-8fb7-807f4b33fc86">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cbc9e1ea-c5d5-471d-829b-c5fa540cfa24"
      id="F_8bfc3067-21c7-43f6-97bc-b20ab6d2a17f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_cbc9e1ea-c5d5-471d-829b-c5fa540cfa24"
      id="F_e90a23ad-0057-469c-93a7-bba96046f43b">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_cbc9e1ea-c5d5-471d-829b-c5fa540cfa24"
      id="F_3d0a14fa-2099-4d89-9a13-fe8a092e82e2">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_cbc9e1ea-c5d5-471d-829b-c5fa540cfa24"
      id="F_a761df78-7b6c-4290-b1db-d9a269707a3d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_cbc9e1ea-c5d5-471d-829b-c5fa540cfa24"
      id="F_fbe0cfa3-f46d-4b3f-9c4b-93ecaf487d00">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_cbc9e1ea-c5d5-471d-829b-c5fa540cfa24"
      id="F_8a6deaac-e252-4297-b933-b4f6596d2e88">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_cbc9e1ea-c5d5-471d-829b-c5fa540cfa24"
      id="F_b59e134d-9bf1-4596-a30c-1bdc9d59a629">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_cbc9e1ea-c5d5-471d-829b-c5fa540cfa24"
      id="F_2ca435f1-7bda-4abc-93d4-d348bb2c53a7">&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;988,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_cbc9e1ea-c5d5-471d-829b-c5fa540cfa24"
      decimals="-3"
      id="F_de8c9ad6-3fe5-4ed2-9b3b-0238fe4da7ac"
      unitRef="U_USD">988000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
