<?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_b261c908-4c23-421e-a303-ae1506803bc8">
        <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>
    <ffd:SubmissnTp
      contextRef="C_b261c908-4c23-421e-a303-ae1506803bc8"
      id="F_964c4a51-a778-4e34-a926-59eb5eca0120">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_b261c908-4c23-421e-a303-ae1506803bc8"
      id="F_07070354-edaa-43e1-998e-0f41fac74a24">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_b261c908-4c23-421e-a303-ae1506803bc8"
      id="F_1bbc1349-7a8d-4d80-9cdb-f57a05cffc35">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b261c908-4c23-421e-a303-ae1506803bc8"
      id="F_2ce85cb3-fc4e-43ba-aa58-4d35af37c034">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_b261c908-4c23-421e-a303-ae1506803bc8"
      id="F_d4250799-95ec-4f12-8582-65f56c7a89b1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b261c908-4c23-421e-a303-ae1506803bc8"
      id="F_66e7ec2b-1bcd-449a-87b5-e2af5cd4aec1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_b261c908-4c23-421e-a303-ae1506803bc8"
      id="F_4f853c8b-0e08-428a-aec6-2f1a481354b7">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_b261c908-4c23-421e-a303-ae1506803bc8"
      id="F_1be86d76-9f25-4408-98ec-bbbeae032917">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_b261c908-4c23-421e-a303-ae1506803bc8"
      id="F_12147a87-2859-4bcd-b728-8cdf5d6fc2b6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_b261c908-4c23-421e-a303-ae1506803bc8"
      id="F_b71711bb-c7ce-482e-ba24-11b6bde95fbe">&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;7,204,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_b261c908-4c23-421e-a303-ae1506803bc8"
      decimals="-3"
      id="F_d0028375-4c71-4bac-9136-9c550f3b4395"
      unitRef="U_USD">7204000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
