<?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_e2a5e3ea-ecf8-4d5c-8192-79a29e2614fc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-24</startDate>
            <endDate>2026-07-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_e2a5e3ea-ecf8-4d5c-8192-79a29e2614fc"
      id="F_f9bdd9e7-e51f-4934-8f9f-40eb144790d0">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_e2a5e3ea-ecf8-4d5c-8192-79a29e2614fc"
      id="F_136a1770-6ab6-4652-8b37-481002b8ff50">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_e2a5e3ea-ecf8-4d5c-8192-79a29e2614fc"
      id="F_20840eac-758c-4125-90f3-fa5a437c09ed">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_e2a5e3ea-ecf8-4d5c-8192-79a29e2614fc"
      id="F_baa44fa6-f153-4206-9387-b0a6d2cb0766">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_e2a5e3ea-ecf8-4d5c-8192-79a29e2614fc"
      id="F_d95b51d8-c78d-4e30-8aa9-6b4dda7bb435">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e2a5e3ea-ecf8-4d5c-8192-79a29e2614fc"
      id="F_b0c7d9c5-d42b-4b49-8ba0-578cf1b91ba8">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e2a5e3ea-ecf8-4d5c-8192-79a29e2614fc"
      id="F_b39d010a-c28e-462f-a0b0-57d66b4f8f82">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_e2a5e3ea-ecf8-4d5c-8192-79a29e2614fc"
      id="F_98d242f4-067f-402d-92c2-7e2a741fb6c0">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_e2a5e3ea-ecf8-4d5c-8192-79a29e2614fc"
      id="F_0da5a34c-7e59-4996-91cd-5e671c747742">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_e2a5e3ea-ecf8-4d5c-8192-79a29e2614fc"
      id="F_debf8e6d-ade0-43cd-ba1b-e48d2b998179">&lt;p style="font-size:10pt;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;422,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_e2a5e3ea-ecf8-4d5c-8192-79a29e2614fc"
      decimals="-3"
      id="F_c0a67f7a-c92e-49b6-83c6-4fe1c42c44f0"
      unitRef="U_USD">422000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
