<?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_03b0a9ee-72f5-4150-9c9f-4bf586c98ea1">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_03b0a9ee-72f5-4150-9c9f-4bf586c98ea1"
      id="F_3923c129-e4c7-4f97-ae7f-0b4aa854f277">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_03b0a9ee-72f5-4150-9c9f-4bf586c98ea1"
      id="F_7ce4655d-e4d4-48ac-9007-99c918f059e9">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_03b0a9ee-72f5-4150-9c9f-4bf586c98ea1"
      id="F_9017a251-aab3-4028-a45e-e983cf6f7dd2">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_03b0a9ee-72f5-4150-9c9f-4bf586c98ea1"
      id="F_43f80c3c-c3b9-4bf6-8803-97e955dba3df">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_03b0a9ee-72f5-4150-9c9f-4bf586c98ea1"
      id="F_df9c6fed-7c3b-4c08-b989-2ef1e1f59114">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_03b0a9ee-72f5-4150-9c9f-4bf586c98ea1"
      id="F_d395cf17-1b8d-43b6-9aa6-7ee24c137818">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_03b0a9ee-72f5-4150-9c9f-4bf586c98ea1"
      id="F_abafacd9-7200-499e-865a-e74c4e391dc3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_03b0a9ee-72f5-4150-9c9f-4bf586c98ea1"
      id="F_c637bf20-3047-4236-a944-79230b95ba6d">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_03b0a9ee-72f5-4150-9c9f-4bf586c98ea1"
      id="F_cf391280-01c9-499a-8aea-db389477f43b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_03b0a9ee-72f5-4150-9c9f-4bf586c98ea1"
      id="F_53c432ac-6a96-4def-a66a-908f39e40a3c">&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,842,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_03b0a9ee-72f5-4150-9c9f-4bf586c98ea1"
      decimals="-3"
      id="F_c54f6c56-8c8d-4a74-b9ca-2dc51a2699e2"
      unitRef="U_USD">2842000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
