<?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_5e110b4b-717f-4b8b-8bfe-1d945935cb3d">
        <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:OfferingTableNa
      contextRef="C_5e110b4b-717f-4b8b-8bfe-1d945935cb3d"
      id="F_6b1a9e8d-07ed-4862-b852-b62dcc576db0">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_5e110b4b-717f-4b8b-8bfe-1d945935cb3d"
      id="F_86caadf5-623e-4d55-ac96-736e093827f1">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_5e110b4b-717f-4b8b-8bfe-1d945935cb3d"
      id="F_d0c6682b-0405-4344-817a-d208af7ad864">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5e110b4b-717f-4b8b-8bfe-1d945935cb3d"
      id="F_269484fe-98e9-41a1-9d09-be27635ceab2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_5e110b4b-717f-4b8b-8bfe-1d945935cb3d"
      id="F_686cc3b0-a189-4359-9f9d-02d18ec0bdf1">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_5e110b4b-717f-4b8b-8bfe-1d945935cb3d"
      id="F_bf449f16-25f6-4169-a51e-c76c6adb3853">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_5e110b4b-717f-4b8b-8bfe-1d945935cb3d"
      id="F_1ab56586-8c52-4af3-9134-730f5c4d7a17">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_5e110b4b-717f-4b8b-8bfe-1d945935cb3d"
      id="F_d44d31a3-14b5-40ba-a5e4-daca4936caca">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_5e110b4b-717f-4b8b-8bfe-1d945935cb3d"
      id="F_87408550-bc7c-4d2c-8df1-3e287d52b8a7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_5e110b4b-717f-4b8b-8bfe-1d945935cb3d"
      id="F_9c7d5e22-ca29-4055-9738-cfd25fc716d5">&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;3,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_5e110b4b-717f-4b8b-8bfe-1d945935cb3d"
      decimals="-6"
      id="F_d0655874-89c2-47fe-96d5-64719b668736"
      unitRef="U_USD">3000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
