<?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_c5ba8ca9-3185-47b1-afd6-b47cade8a408">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-10</startDate>
            <endDate>2026-03-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_c5ba8ca9-3185-47b1-afd6-b47cade8a408"
      id="F_9dd04029-f012-41b3-a9e9-b222d774bd53">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c5ba8ca9-3185-47b1-afd6-b47cade8a408"
      id="F_0d4f81cc-121b-45cf-a92b-2ba61b969c2b">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c5ba8ca9-3185-47b1-afd6-b47cade8a408"
      id="F_ae1cd700-07af-4d2f-bba1-71a6de1f7a99">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_c5ba8ca9-3185-47b1-afd6-b47cade8a408"
      id="F_30ea6005-d096-405c-8107-752ad7b87c40">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_c5ba8ca9-3185-47b1-afd6-b47cade8a408"
      id="F_7be487ee-b8bb-47c2-9b55-56793c90f807">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_c5ba8ca9-3185-47b1-afd6-b47cade8a408"
      id="F_7842428c-b979-4111-b3c2-5751c739f9b9">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c5ba8ca9-3185-47b1-afd6-b47cade8a408"
      id="F_e2b258c6-9b17-4589-b826-8068f1b24aa2">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_c5ba8ca9-3185-47b1-afd6-b47cade8a408"
      id="F_809c0b7a-e6be-469d-937a-d17ed9562519">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_c5ba8ca9-3185-47b1-afd6-b47cade8a408"
      id="F_b0fe84bc-3599-4722-a5c1-22d308ee832c">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c5ba8ca9-3185-47b1-afd6-b47cade8a408"
      id="F_128f8662-95ba-4185-bd63-cdfcc338b31c">&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;3,083,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_c5ba8ca9-3185-47b1-afd6-b47cade8a408"
      decimals="0"
      id="F_3ea73eb8-c17f-4fd2-b2f9-df263b253673"
      unitRef="U_USD">3083000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
