<?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_809bd253-e513-4942-9ecf-b8ef68e19203">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_809bd253-e513-4942-9ecf-b8ef68e19203"
      id="F_e891b720-1e4a-4e7d-8589-93407699826a">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_809bd253-e513-4942-9ecf-b8ef68e19203"
      id="F_0e84628a-be41-4957-9fe1-a9810c24d880">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_809bd253-e513-4942-9ecf-b8ef68e19203"
      id="F_23d294e7-5ee6-4582-a193-fb7553574896">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_809bd253-e513-4942-9ecf-b8ef68e19203"
      id="F_1723709f-0497-4898-b724-e50a295fd8f8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_809bd253-e513-4942-9ecf-b8ef68e19203"
      id="F_8cef8a92-f629-4aa1-914f-2e5ad6d051da">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_809bd253-e513-4942-9ecf-b8ef68e19203"
      id="F_12ddcc54-0754-408b-be0d-ecf6fe753c7c">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_809bd253-e513-4942-9ecf-b8ef68e19203"
      id="F_02e86b17-a782-42bf-b4d2-9fb246775c5b">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_809bd253-e513-4942-9ecf-b8ef68e19203"
      id="F_df4ae1f1-0331-4e70-a40c-66b376aceadc">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_809bd253-e513-4942-9ecf-b8ef68e19203"
      id="F_e3e7924d-3de8-4421-bd15-c6fe8ae93194">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_809bd253-e513-4942-9ecf-b8ef68e19203"
      id="F_53afcef7-52b0-4bb8-8950-c5fff17776ad">&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;6,518,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_809bd253-e513-4942-9ecf-b8ef68e19203"
      decimals="-3"
      id="F_0968314a-7cf5-4d27-a9fb-4fcd326488d8"
      unitRef="U_USD">6518000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
