<?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_7dcac31e-151c-4a5d-9711-874ba1ef70c0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_7dcac31e-151c-4a5d-9711-874ba1ef70c0"
      id="F_65dd0964-ca73-4b31-9068-b0af9e264da1">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_7dcac31e-151c-4a5d-9711-874ba1ef70c0"
      id="F_23fb4602-2c5c-46af-8984-a3edde16024a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_7dcac31e-151c-4a5d-9711-874ba1ef70c0"
      id="F_7093866a-d4b3-4b08-b089-9a15a853e13e">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_7dcac31e-151c-4a5d-9711-874ba1ef70c0"
      id="F_6e0d1592-5408-4d8d-88b7-8c5880a31ab9">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_7dcac31e-151c-4a5d-9711-874ba1ef70c0"
      id="F_12d1fa55-3ff6-46a2-9f2c-14a1ab76f42a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_7dcac31e-151c-4a5d-9711-874ba1ef70c0"
      id="F_82260cf3-35f2-4a5e-af89-8192590f12fa">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7dcac31e-151c-4a5d-9711-874ba1ef70c0"
      id="F_167924ce-f61a-4f8a-a6ec-0f2b02ca2f29">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_7dcac31e-151c-4a5d-9711-874ba1ef70c0"
      id="F_9fe1cc37-b888-4dba-94b1-6cb196c7db88">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_7dcac31e-151c-4a5d-9711-874ba1ef70c0"
      id="F_9a6e7dc2-9d61-4a66-aaa3-45065a99b790">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_7dcac31e-151c-4a5d-9711-874ba1ef70c0"
      id="F_64819b94-512f-4e2f-8523-6a35b200f332">&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,000,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_7dcac31e-151c-4a5d-9711-874ba1ef70c0"
      decimals="-6"
      id="F_c01a4686-5c21-406a-979a-948cad4a466c"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
