<?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_04c686c1-00aa-44df-916f-76421fa524a7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_04c686c1-00aa-44df-916f-76421fa524a7"
      id="F_ebfc591f-f1c9-4b35-9d84-74b9af1e9a0d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_04c686c1-00aa-44df-916f-76421fa524a7"
      id="F_f0c18413-1954-4948-ae40-262175413bbd">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_04c686c1-00aa-44df-916f-76421fa524a7"
      id="F_f4f7be5e-fdf3-4c90-b45d-bcea19aeff17">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_04c686c1-00aa-44df-916f-76421fa524a7"
      id="F_db453332-f4bd-4c1a-88a5-feb68f6cbd53">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_04c686c1-00aa-44df-916f-76421fa524a7"
      id="F_6621a525-715c-4c2f-af97-61ecaf9cfd6f">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_04c686c1-00aa-44df-916f-76421fa524a7"
      id="F_a4b46ce7-baaf-4c84-a3fc-0426dd064a11">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_04c686c1-00aa-44df-916f-76421fa524a7"
      id="F_e83679e6-f0d4-4bf9-b2bf-f970a8e0906c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_04c686c1-00aa-44df-916f-76421fa524a7"
      id="F_903550b7-77c4-4d96-94ed-bc58cddf3628">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_04c686c1-00aa-44df-916f-76421fa524a7"
      id="F_d5cc3fff-4459-430b-a08a-1f6c53695d22">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_04c686c1-00aa-44df-916f-76421fa524a7"
      id="F_bc3d9c29-23f0-4019-b95c-008c3f5646da">&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;6,819,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_04c686c1-00aa-44df-916f-76421fa524a7"
      decimals="0"
      id="F_4bc544e4-7af6-4a80-aaf3-47b79478ea2f"
      unitRef="U_USD">6819000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
