<?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_1579ce47-d63c-4a37-90ed-e99680e2a41b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-31</startDate>
            <endDate>2026-07-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_1579ce47-d63c-4a37-90ed-e99680e2a41b"
      id="F_45782b70-1627-46f9-ad83-9ed46f7c4bef">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_1579ce47-d63c-4a37-90ed-e99680e2a41b"
      id="F_79f51e0d-2576-4e4c-b758-9dc72bcb7e53">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_1579ce47-d63c-4a37-90ed-e99680e2a41b"
      id="F_06809403-fabf-43da-88aa-a7cd7285536c">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_1579ce47-d63c-4a37-90ed-e99680e2a41b"
      id="F_ee128c41-e9d2-4f03-8ae1-bb31003712a8">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_1579ce47-d63c-4a37-90ed-e99680e2a41b"
      id="F_6f74df37-3724-474b-9783-a2b1374b674c">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_1579ce47-d63c-4a37-90ed-e99680e2a41b"
      id="F_98d38198-f28e-4f45-be24-00628c820818">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1579ce47-d63c-4a37-90ed-e99680e2a41b"
      id="F_0a0eb27c-f4ff-4d2b-a7e6-4a0bf93cf676">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_1579ce47-d63c-4a37-90ed-e99680e2a41b"
      id="F_6d596d66-3e32-4d64-aa2f-bd04fc1b39af">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_1579ce47-d63c-4a37-90ed-e99680e2a41b"
      id="F_ac39971e-ce87-42ed-8edf-996af9c1b9e8">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_1579ce47-d63c-4a37-90ed-e99680e2a41b"
      id="F_dceab1d2-714d-440e-9053-53d816247367">&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;5,500,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_1579ce47-d63c-4a37-90ed-e99680e2a41b"
      decimals="-3"
      id="F_c088512f-8ec9-4dfb-867f-8edc349f6889"
      unitRef="U_USD">5500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
