<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_b824e2e9-b54a-46d9-be64-0cdc0ea2b543">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_b824e2e9-b54a-46d9-be64-0cdc0ea2b543"
      id="F_d06e1883-f77e-4efd-9100-6fbb62afd210">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_b824e2e9-b54a-46d9-be64-0cdc0ea2b543"
      id="F_a797f23d-3fa2-4090-8093-1991ffac444b">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_b824e2e9-b54a-46d9-be64-0cdc0ea2b543"
      id="F_52e9e5d9-78ae-4292-bd5b-6128ae607125">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_b824e2e9-b54a-46d9-be64-0cdc0ea2b543"
      id="F_c84413bd-4aad-44c3-8acb-d3d939363006">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_b824e2e9-b54a-46d9-be64-0cdc0ea2b543"
      id="F_3a607150-0802-4ef1-996b-4f02f11e02a4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_b824e2e9-b54a-46d9-be64-0cdc0ea2b543"
      id="F_c30b2b50-12c1-4a5f-bf3d-9334ebb980ed">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_b824e2e9-b54a-46d9-be64-0cdc0ea2b543"
      id="F_63bba97c-8b77-479d-9a89-3f1a9f22b0b9">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_b824e2e9-b54a-46d9-be64-0cdc0ea2b543"
      id="F_1f6e0fc1-d8c3-455a-8480-16e346d261d4">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b824e2e9-b54a-46d9-be64-0cdc0ea2b543"
      id="F_9ae8a415-cb19-4f44-b4cd-1eee4cb0f208">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b824e2e9-b54a-46d9-be64-0cdc0ea2b543"
      id="F_4cabc922-da4b-4de9-b85c-f969e3b0636f">&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;510,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_b824e2e9-b54a-46d9-be64-0cdc0ea2b543"
      decimals="0"
      id="F_8e45e9b3-631b-4ab1-8c73-fff62ed28681"
      unitRef="U_USD">510000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
