<?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_e1f67eb3-d1f4-431e-9148-5d1d0430a978">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_e1f67eb3-d1f4-431e-9148-5d1d0430a978"
      id="F_ca487363-0d74-4798-9577-955074fa8306">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_e1f67eb3-d1f4-431e-9148-5d1d0430a978"
      id="F_c4075f08-1204-4455-90f5-b9fac49fabd4">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e1f67eb3-d1f4-431e-9148-5d1d0430a978"
      id="F_83015bfc-a413-478e-ba45-01d7995905bd">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_e1f67eb3-d1f4-431e-9148-5d1d0430a978"
      id="F_578688b9-d522-4b77-855b-7d4251218b71">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_e1f67eb3-d1f4-431e-9148-5d1d0430a978"
      id="F_6fff464b-10a1-4632-b87a-58c93e1f93b5">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_e1f67eb3-d1f4-431e-9148-5d1d0430a978"
      id="F_4c5bae19-537c-48da-bd4e-6d93a8f2bde0">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e1f67eb3-d1f4-431e-9148-5d1d0430a978"
      id="F_6467bfdc-b1d2-4975-b916-0b502ae6a95c">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_e1f67eb3-d1f4-431e-9148-5d1d0430a978"
      id="F_3fa937b2-d9ff-4d36-b22d-41c9b882cb21">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_e1f67eb3-d1f4-431e-9148-5d1d0430a978"
      id="F_a8e34608-b224-40a0-9f16-4a6e6610ec8e">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_e1f67eb3-d1f4-431e-9148-5d1d0430a978"
      id="F_7d5010f9-f34b-4b97-88c2-6f9480bc86b5">&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;1,592,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_e1f67eb3-d1f4-431e-9148-5d1d0430a978"
      decimals="-3"
      id="F_36e8a3c4-9930-467b-b916-9ddaee46a2a2"
      unitRef="U_USD">1592000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
