<?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_19a97df5-d7bf-428c-a9ee-352f70c89026">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-30</startDate>
            <endDate>2026-09-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_19a97df5-d7bf-428c-a9ee-352f70c89026"
      id="F_0c9aff6f-3435-4b59-b337-e7affa1e12c3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_19a97df5-d7bf-428c-a9ee-352f70c89026"
      id="F_8892583c-6aaf-450a-a8e0-c4b3dfba29fa">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_19a97df5-d7bf-428c-a9ee-352f70c89026"
      id="F_d6607e30-cdcf-411b-9daf-4c734fa301f3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_19a97df5-d7bf-428c-a9ee-352f70c89026"
      id="F_ba6e50f9-e3e3-4961-858f-a42828d35c1f">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_19a97df5-d7bf-428c-a9ee-352f70c89026"
      id="F_0e111f90-662c-40c3-8b85-1569ed1eeaca">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_19a97df5-d7bf-428c-a9ee-352f70c89026"
      id="F_41e8fbd4-a8d9-485b-ae30-f455248be28a">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_19a97df5-d7bf-428c-a9ee-352f70c89026"
      id="F_9f085142-7941-4600-adf9-6e249cd0a366">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_19a97df5-d7bf-428c-a9ee-352f70c89026"
      id="F_25516f0f-a7ee-4b2d-bbd1-228a22ffaa98">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_19a97df5-d7bf-428c-a9ee-352f70c89026"
      id="F_bd6817a4-b91c-49e4-85b8-2213c2c45e60">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_19a97df5-d7bf-428c-a9ee-352f70c89026"
      id="F_c59af151-7704-4a35-a9ea-b02124ce1a8a">&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;10,924,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_19a97df5-d7bf-428c-a9ee-352f70c89026"
      decimals="-3"
      id="F_c2ac7ffe-ec77-4f83-9b90-e25ee6fbb6c3"
      unitRef="U_USD">10924000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
