<?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_8134068c-6ad0-42bf-93c7-caf00c72189c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-12</startDate>
            <endDate>2026-08-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_8134068c-6ad0-42bf-93c7-caf00c72189c"
      id="F_4e616712-72a0-4f88-a786-816122188a66">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_8134068c-6ad0-42bf-93c7-caf00c72189c"
      id="F_cc040d5d-217d-4544-b5bf-f9130e9c6708">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_8134068c-6ad0-42bf-93c7-caf00c72189c"
      id="F_87b8ea72-518d-4ed1-8645-2daae5ad36e4">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_8134068c-6ad0-42bf-93c7-caf00c72189c"
      id="F_da228d78-6a71-4ca3-8b17-9ef7ef8f118d">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8134068c-6ad0-42bf-93c7-caf00c72189c"
      id="F_30afa3c3-99e9-4345-9fe0-4fd18198a88d">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_8134068c-6ad0-42bf-93c7-caf00c72189c"
      id="F_58687abf-b064-4cc5-8501-6a19c73aa50e">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_8134068c-6ad0-42bf-93c7-caf00c72189c"
      id="F_14f7658f-d203-4ff6-961a-5f6d84001568">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_8134068c-6ad0-42bf-93c7-caf00c72189c"
      id="F_cda366b7-3ffa-4dd0-9c5d-1825cb8a2d75">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_8134068c-6ad0-42bf-93c7-caf00c72189c"
      id="F_c123e402-8971-4962-be0d-be4155b30089">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8134068c-6ad0-42bf-93c7-caf00c72189c"
      id="F_c4db27a3-0215-4f35-8fb6-0b501f194859">&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;1,000,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_8134068c-6ad0-42bf-93c7-caf00c72189c"
      decimals="-6"
      id="F_511d8b83-76ea-4f9f-b582-3e8571c26371"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
