<?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_9ac75548-69b4-45ad-927a-f9f6a087d694">
        <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:OffsetTableNa
      contextRef="C_9ac75548-69b4-45ad-927a-f9f6a087d694"
      id="F_d4c83888-73db-4b35-b3e8-cc0fe08bb8b7">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9ac75548-69b4-45ad-927a-f9f6a087d694"
      id="F_b0d09610-ce68-40e2-836d-4e4ceebb5636">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_9ac75548-69b4-45ad-927a-f9f6a087d694"
      id="F_2c814e8f-8e9b-4766-b223-dea200554fd8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_9ac75548-69b4-45ad-927a-f9f6a087d694"
      id="F_a85d39ef-403f-45e5-ad25-77e446434a7e">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_9ac75548-69b4-45ad-927a-f9f6a087d694"
      id="F_11688fe3-cdd8-45ac-bb12-f68fcb2a73cd">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_9ac75548-69b4-45ad-927a-f9f6a087d694"
      id="F_25e94d47-7cc5-4caf-b7f1-067f17758c6b">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_9ac75548-69b4-45ad-927a-f9f6a087d694"
      id="F_de502c62-7fe3-4d5a-997d-2d98e1103a6f">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_9ac75548-69b4-45ad-927a-f9f6a087d694"
      id="F_7fc7f384-c7d1-47c2-95a8-a9e247e8b91d">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_9ac75548-69b4-45ad-927a-f9f6a087d694"
      id="F_2d593c42-4805-43fe-a3cd-18734f1ccb29">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_9ac75548-69b4-45ad-927a-f9f6a087d694"
      id="F_e6d75027-ab2c-44c5-ab79-5c4e94e2afd2">&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;522,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_9ac75548-69b4-45ad-927a-f9f6a087d694"
      decimals="-3"
      id="F_4eb78feb-3a5e-48d3-9a9c-9ccfae1084ba"
      unitRef="U_USD">522000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
