<?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_55947a3b-839a-4439-945a-4d09df5f46eb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-24</startDate>
            <endDate>2026-08-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_55947a3b-839a-4439-945a-4d09df5f46eb"
      id="F_a8796806-0875-4d10-ae50-25615499a511">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_55947a3b-839a-4439-945a-4d09df5f46eb"
      id="F_e3728f85-ae66-4eeb-9881-fc1a2b2504ca">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_55947a3b-839a-4439-945a-4d09df5f46eb"
      id="F_7a0645d8-59eb-4648-b63e-15baebb813ba">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_55947a3b-839a-4439-945a-4d09df5f46eb"
      id="F_7903193f-36fc-4237-9e3a-7e669e5a6533">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_55947a3b-839a-4439-945a-4d09df5f46eb"
      id="F_d55d6fea-dc53-49b3-aa90-18e4936925a6">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_55947a3b-839a-4439-945a-4d09df5f46eb"
      id="F_0c7918ab-7d7a-4f48-99a3-16fd419653bf">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_55947a3b-839a-4439-945a-4d09df5f46eb"
      id="F_27f4824e-25b9-46a9-b400-0a3fd9461ed1">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_55947a3b-839a-4439-945a-4d09df5f46eb"
      id="F_22e0bd73-3646-4c5d-a2f9-7a936bbeac69">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_55947a3b-839a-4439-945a-4d09df5f46eb"
      id="F_65e4b096-33e6-482e-9529-d41098423a3c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_55947a3b-839a-4439-945a-4d09df5f46eb"
      id="F_6a05eddc-c515-4758-8a59-263b12e6f426">&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;287,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_55947a3b-839a-4439-945a-4d09df5f46eb"
      decimals="-3"
      id="F_81629572-234f-46c6-9662-299b958da06d"
      unitRef="U_USD">287000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
