<?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_63395381-d436-44a3-8607-98da0812633e">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_63395381-d436-44a3-8607-98da0812633e"
      id="F_113b0588-b130-4c36-9e13-248fe4952590">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_63395381-d436-44a3-8607-98da0812633e"
      id="F_38c9cec5-ffd8-48c9-ad19-1b303b8837ec">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_63395381-d436-44a3-8607-98da0812633e"
      id="F_fc6eef36-4e9d-4799-ac16-8a2c3264b491">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_63395381-d436-44a3-8607-98da0812633e"
      id="F_5013aaff-e7e9-4c6a-b7c7-41756c67ab80">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_63395381-d436-44a3-8607-98da0812633e"
      id="F_1bc89829-5156-4a85-929c-0eb963c939cd">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_63395381-d436-44a3-8607-98da0812633e"
      id="F_e975e5b2-7fea-4ce4-becb-1907b4e2aaf3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_63395381-d436-44a3-8607-98da0812633e"
      id="F_ae8b622e-59ea-4a46-bf41-c702eceaaf66">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_63395381-d436-44a3-8607-98da0812633e"
      id="F_2b93d59d-b46c-4570-9cc7-ae58d31817f3">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_63395381-d436-44a3-8607-98da0812633e"
      id="F_2b3db8bd-6835-4616-85c1-9213fa890975">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_63395381-d436-44a3-8607-98da0812633e"
      id="F_9ed0db91-9270-4611-b640-1d104a9426da">&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;6,400,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_63395381-d436-44a3-8607-98da0812633e"
      decimals="-3"
      id="F_6d913ef7-887d-4ea2-b304-ee5d9cf4b137"
      unitRef="U_USD">6400000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
