<?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_9c20f2fe-0904-4f24-9277-fac4f9b4fe83">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-29</startDate>
            <endDate>2026-10-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_9c20f2fe-0904-4f24-9277-fac4f9b4fe83"
      id="F_eaf26d59-d57f-4d37-bf46-b947ee5c055a">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_9c20f2fe-0904-4f24-9277-fac4f9b4fe83"
      id="F_a6d62a47-d90c-4a9d-86b6-838b403e3369">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_9c20f2fe-0904-4f24-9277-fac4f9b4fe83"
      id="F_710c2bd5-6743-4002-9dc3-4f5b86ba7b01">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_9c20f2fe-0904-4f24-9277-fac4f9b4fe83"
      id="F_371cdd6e-d276-49b3-84e7-a01cb2f3b62e">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_9c20f2fe-0904-4f24-9277-fac4f9b4fe83"
      id="F_9d2fde1c-3db6-4c01-8ccb-2164943ae1c8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_9c20f2fe-0904-4f24-9277-fac4f9b4fe83"
      id="F_28fa338c-7f0a-424d-9002-cdab859c5f34">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_9c20f2fe-0904-4f24-9277-fac4f9b4fe83"
      id="F_1475b5d5-dea9-4dbc-aae8-bd0b1c94801d">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9c20f2fe-0904-4f24-9277-fac4f9b4fe83"
      id="F_25377e2a-566f-4b65-8ed9-1cb0722d36d2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_9c20f2fe-0904-4f24-9277-fac4f9b4fe83"
      id="F_9a26211a-0f3e-45dd-a5ba-437b39486785">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_9c20f2fe-0904-4f24-9277-fac4f9b4fe83"
      id="F_22f14457-c49a-498b-aa6a-33113ed77dbe">&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;652,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_9c20f2fe-0904-4f24-9277-fac4f9b4fe83"
      decimals="-3"
      id="F_faa76d26-a452-47d7-947c-ca59198e93d2"
      unitRef="U_USD">652000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
