<?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_984b4d57-affd-4ee3-a2f6-b884fa9bccb2">
        <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:FeeExhibitTp
      contextRef="C_984b4d57-affd-4ee3-a2f6-b884fa9bccb2"
      id="F_ba236c1c-a949-465f-885b-9cd7dc3aa101">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_984b4d57-affd-4ee3-a2f6-b884fa9bccb2"
      id="F_7c948ea9-ccf6-4a95-8289-3904e39e2e87">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_984b4d57-affd-4ee3-a2f6-b884fa9bccb2"
      id="F_0310b71d-104e-420c-8698-7624a2b35545">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_984b4d57-affd-4ee3-a2f6-b884fa9bccb2"
      id="F_d89cbd41-1df0-4ca0-82da-8b21d04bd8ee">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_984b4d57-affd-4ee3-a2f6-b884fa9bccb2"
      id="F_f6766dea-ac06-4565-834f-d9d094ea5235">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_984b4d57-affd-4ee3-a2f6-b884fa9bccb2"
      id="F_9e6282d9-7bb2-429e-8bee-29e7b480fb9d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_984b4d57-affd-4ee3-a2f6-b884fa9bccb2"
      id="F_ef3e2ff2-d1d5-40da-9bec-c3d8dc9016b6">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_984b4d57-affd-4ee3-a2f6-b884fa9bccb2"
      id="F_0fe65fa5-7b28-4374-978c-ae417054d922">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_984b4d57-affd-4ee3-a2f6-b884fa9bccb2"
      id="F_9ea1ee0e-cdbf-4a97-bf0e-e448e84ad764">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_984b4d57-affd-4ee3-a2f6-b884fa9bccb2"
      id="F_ff34f1c8-bcd3-4018-a58a-d8942a935b39">&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;89,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_984b4d57-affd-4ee3-a2f6-b884fa9bccb2"
      decimals="-3"
      id="F_00b57731-4249-4805-8dc1-171e437fb7d1"
      unitRef="U_USD">89000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
