<?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_19f9834f-2371-4d68-a80e-f53051351c4c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_19f9834f-2371-4d68-a80e-f53051351c4c"
      id="F_22863707-881e-40c5-b016-64de537842ae">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_19f9834f-2371-4d68-a80e-f53051351c4c"
      id="F_3f2a57a8-cc74-4916-b21c-5fbed79a20cf">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_19f9834f-2371-4d68-a80e-f53051351c4c"
      id="F_c8fc5b34-3c24-42a5-aacd-03d838090265">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_19f9834f-2371-4d68-a80e-f53051351c4c"
      id="F_25e43d83-a7e1-438b-82cf-3ea64c5f2104">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_19f9834f-2371-4d68-a80e-f53051351c4c"
      id="F_0848617a-e077-4d5c-a5f2-6141e780a6d9">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_19f9834f-2371-4d68-a80e-f53051351c4c"
      id="F_fcc359aa-c1e2-4ceb-9f9d-32c504598d4a">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_19f9834f-2371-4d68-a80e-f53051351c4c"
      id="F_bd8f5c20-8cbc-4bf7-aa3b-40c9b7c5da90">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_19f9834f-2371-4d68-a80e-f53051351c4c"
      id="F_f6c5e866-a7db-48c1-940c-a2c1157ebd2c">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_19f9834f-2371-4d68-a80e-f53051351c4c"
      id="F_8e099e42-38e5-458f-8894-01bc849930c4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_19f9834f-2371-4d68-a80e-f53051351c4c"
      id="F_ec182fb1-cd14-4b8d-a91b-8f36538138af">&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;2,736,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_19f9834f-2371-4d68-a80e-f53051351c4c"
      decimals="-3"
      id="F_00245be5-5712-40a6-a9ef-991db2e0aa18"
      unitRef="U_USD">2736000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
