<?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_3c5e2ccf-6ee6-4ce7-b901-e4105c2cc2d6">
        <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_3c5e2ccf-6ee6-4ce7-b901-e4105c2cc2d6"
      id="F_8f41674d-763a-46cb-9e9d-7e994d5e0e3f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_3c5e2ccf-6ee6-4ce7-b901-e4105c2cc2d6"
      id="F_20f3e3ba-be9e-463b-8e23-f4a1c7a6dce8">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3c5e2ccf-6ee6-4ce7-b901-e4105c2cc2d6"
      id="F_7a2037a3-7109-400c-9bc9-47f101675b61">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_3c5e2ccf-6ee6-4ce7-b901-e4105c2cc2d6"
      id="F_7587b53e-ed1c-4288-a93a-5aa4f2b12767">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_3c5e2ccf-6ee6-4ce7-b901-e4105c2cc2d6"
      id="F_dbe5da1e-a11a-4ae3-aacf-3a5a5e00350f">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_3c5e2ccf-6ee6-4ce7-b901-e4105c2cc2d6"
      id="F_e9c34e8a-e0d5-4db8-a778-47706102181d">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_3c5e2ccf-6ee6-4ce7-b901-e4105c2cc2d6"
      id="F_ca956260-9266-472b-9fbe-ad792190219c">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_3c5e2ccf-6ee6-4ce7-b901-e4105c2cc2d6"
      id="F_72caa514-a952-47fe-9b07-f86dd15ed3d0">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_3c5e2ccf-6ee6-4ce7-b901-e4105c2cc2d6"
      id="F_e95cddec-a9c0-4cfb-bfd4-619bbfb124d3">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3c5e2ccf-6ee6-4ce7-b901-e4105c2cc2d6"
      id="F_008ed393-9f91-47a0-b314-bb2029f968f1">&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&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_3c5e2ccf-6ee6-4ce7-b901-e4105c2cc2d6"
      decimals="-3"
      id="F_e06eed5c-a11d-4a56-9d48-03f3d48b0a3e"
      unitRef="U_USD">1000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
