<?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_afee3ac7-a9f0-4b42-bf2a-979473885cab">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_afee3ac7-a9f0-4b42-bf2a-979473885cab"
      id="F_05f39041-9baf-4722-9e75-a4500b231054">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_afee3ac7-a9f0-4b42-bf2a-979473885cab"
      id="F_03c4efe9-8a52-41b6-86cb-2f53ce453c70">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_afee3ac7-a9f0-4b42-bf2a-979473885cab"
      id="F_1bbe2438-cf70-4782-9937-b75667a653be">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_afee3ac7-a9f0-4b42-bf2a-979473885cab"
      id="F_f8e0423f-061e-4d79-a699-627de942f3d7">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_afee3ac7-a9f0-4b42-bf2a-979473885cab"
      id="F_4626e72a-3873-4f9f-a493-903f3493cdd3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_afee3ac7-a9f0-4b42-bf2a-979473885cab"
      id="F_e4faba7f-4e56-415c-906d-924439b3f106">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_afee3ac7-a9f0-4b42-bf2a-979473885cab"
      id="F_f3fe034b-f101-4019-808d-512d4ba6c77f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_afee3ac7-a9f0-4b42-bf2a-979473885cab"
      id="F_86698b97-b9e9-44f6-ae1d-df20700e2fa2">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_afee3ac7-a9f0-4b42-bf2a-979473885cab"
      id="F_3e761136-9930-47ea-bd34-75fc46b7ae2c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_afee3ac7-a9f0-4b42-bf2a-979473885cab"
      id="F_edd378be-4f03-4ee4-af6c-12b957f7af97">&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;640,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_afee3ac7-a9f0-4b42-bf2a-979473885cab"
      decimals="-3"
      id="F_d760de00-956f-4b39-a0ee-1e9519a378d9"
      unitRef="U_USD">640000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
