<?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_ce6a7f71-66cf-4f96-86c1-b0c9b516135b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-31</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ce6a7f71-66cf-4f96-86c1-b0c9b516135b"
      id="F_38650c94-62ed-4eb4-a510-fdf662ffd032">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_ce6a7f71-66cf-4f96-86c1-b0c9b516135b"
      id="F_3d73c565-e2e8-48db-903f-fc8dcad6917c">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_ce6a7f71-66cf-4f96-86c1-b0c9b516135b"
      id="F_c5692992-cc1b-44e7-ab52-3dcd10f75323">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_ce6a7f71-66cf-4f96-86c1-b0c9b516135b"
      id="F_68930388-00aa-48f4-8fb9-a34e1aaeb6fd">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_ce6a7f71-66cf-4f96-86c1-b0c9b516135b"
      id="F_c23d0be8-bec7-4f01-9f88-ecd4fda978fe">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_ce6a7f71-66cf-4f96-86c1-b0c9b516135b"
      id="F_c674c1b1-fa7c-456a-a592-1ae3c2b5334e">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_ce6a7f71-66cf-4f96-86c1-b0c9b516135b"
      id="F_60cf41ff-ee13-40d6-b37a-3835282c54e7">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_ce6a7f71-66cf-4f96-86c1-b0c9b516135b"
      id="F_efe15e42-a74d-438a-af47-526d5f963692">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_ce6a7f71-66cf-4f96-86c1-b0c9b516135b"
      id="F_9058ed0c-6d2c-496b-a8c6-0fe86f2091ca">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ce6a7f71-66cf-4f96-86c1-b0c9b516135b"
      id="F_9b72fb40-2943-4c35-9d2e-452c008e7ae5">&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;9,020,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_ce6a7f71-66cf-4f96-86c1-b0c9b516135b"
      decimals="0"
      id="F_be92dc2a-b0b8-4936-8c6d-eff7fbb83a50"
      unitRef="U_USD">9020000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
