<?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_c259627e-a2f2-4444-97b4-d26d72ce838d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-02</startDate>
            <endDate>2026-11-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_c259627e-a2f2-4444-97b4-d26d72ce838d"
      id="F_ed682857-3c44-46b2-9389-bebc55a3b90a">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_c259627e-a2f2-4444-97b4-d26d72ce838d"
      id="F_30a06607-7ef4-4c6c-a1af-7da47e33db24">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_c259627e-a2f2-4444-97b4-d26d72ce838d"
      id="F_828d0b9f-8853-428c-8113-53e4ffa6b632">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c259627e-a2f2-4444-97b4-d26d72ce838d"
      id="F_eac0db10-e025-4741-bf91-927e2347e62b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_c259627e-a2f2-4444-97b4-d26d72ce838d"
      id="F_160ff558-53d3-492a-9467-f2d6c8eed736">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_c259627e-a2f2-4444-97b4-d26d72ce838d"
      id="F_00884f29-22ec-4b8f-a41b-e22eccb33df3">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_c259627e-a2f2-4444-97b4-d26d72ce838d"
      id="F_72500089-6cc7-430a-908b-c6a4bede9917">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_c259627e-a2f2-4444-97b4-d26d72ce838d"
      id="F_505ca214-e538-4c51-95ac-24eb15ebbc47">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_c259627e-a2f2-4444-97b4-d26d72ce838d"
      id="F_0b28805a-f16c-412d-8cc0-d715474c5ef3">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_c259627e-a2f2-4444-97b4-d26d72ce838d"
      id="F_b77682b5-f656-4773-8869-64108a6cf716">&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;500,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_c259627e-a2f2-4444-97b4-d26d72ce838d"
      decimals="-3"
      id="F_f97fcdee-697a-435f-aff4-7021bdd72c09"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
