<?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_57f8a33b-c14b-49bb-b874-0a3f3ecb252e">
        <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:SubmissnTp
      contextRef="C_57f8a33b-c14b-49bb-b874-0a3f3ecb252e"
      id="F_79d97406-1182-46a4-a40a-6a6bef7d6a6a">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_57f8a33b-c14b-49bb-b874-0a3f3ecb252e"
      id="F_b512306e-60b4-4009-b97c-d526d7fc9d8f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_57f8a33b-c14b-49bb-b874-0a3f3ecb252e"
      id="F_53399af9-0bc9-4f2a-a59d-47dd110adfcd">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_57f8a33b-c14b-49bb-b874-0a3f3ecb252e"
      id="F_67fd3375-7e3e-4b77-ba57-8bcb0484c4e6">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_57f8a33b-c14b-49bb-b874-0a3f3ecb252e"
      id="F_d61e41a9-563e-4394-b3ce-c814d168f906">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_57f8a33b-c14b-49bb-b874-0a3f3ecb252e"
      id="F_29f40414-257b-4e42-b709-1178c3b3c7e4">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_57f8a33b-c14b-49bb-b874-0a3f3ecb252e"
      id="F_f216bf2d-70c0-4197-8f90-b9eccf996917">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_57f8a33b-c14b-49bb-b874-0a3f3ecb252e"
      id="F_75b5a303-078c-4095-b669-99bc4ebee5d9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_57f8a33b-c14b-49bb-b874-0a3f3ecb252e"
      id="F_547a3206-9101-4dd2-887c-464d6bfbab32">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_57f8a33b-c14b-49bb-b874-0a3f3ecb252e"
      id="F_0e9c1314-5f36-4154-9b71-fe2eff8b5f1c">&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;250,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_57f8a33b-c14b-49bb-b874-0a3f3ecb252e"
      decimals="-3"
      id="F_d91ebbb6-fef6-46a6-b5e5-12714f406122"
      unitRef="U_USD">250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
