<?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_a95ded14-80bf-40e6-91e6-02260d4d2ae2">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_a95ded14-80bf-40e6-91e6-02260d4d2ae2"
      id="F_cedf740a-0f06-4d40-a79f-799b7b265c6b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_a95ded14-80bf-40e6-91e6-02260d4d2ae2"
      id="F_bef2d6f0-b794-4d59-a7d5-1673f8ac6310">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_a95ded14-80bf-40e6-91e6-02260d4d2ae2"
      id="F_e9262a95-1702-45a5-9b47-41fdfc3d0e05">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_a95ded14-80bf-40e6-91e6-02260d4d2ae2"
      id="F_d24ea9a1-cb5d-40da-b4d2-a66ef626c04b">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_a95ded14-80bf-40e6-91e6-02260d4d2ae2"
      id="F_2ccea213-9a4a-4cb8-beb7-94d012e96814">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_a95ded14-80bf-40e6-91e6-02260d4d2ae2"
      id="F_c4531397-2c04-4716-94c3-4a86068f7c47">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_a95ded14-80bf-40e6-91e6-02260d4d2ae2"
      id="F_98b4dc0c-1162-4b68-8a4b-27ed48cc3810">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a95ded14-80bf-40e6-91e6-02260d4d2ae2"
      id="F_3e063c7c-7baa-40f2-abaa-8d7a63d65a43">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_a95ded14-80bf-40e6-91e6-02260d4d2ae2"
      id="F_ada5ea6d-b701-43e8-b009-c7cafeb56016">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a95ded14-80bf-40e6-91e6-02260d4d2ae2"
      id="F_d3c4c552-69b1-41a5-be77-e936bf65f6c8">&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;15,612,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_a95ded14-80bf-40e6-91e6-02260d4d2ae2"
      decimals="0"
      id="F_43ef7339-8e8d-40f4-81e7-b511e6c49987"
      unitRef="U_USD">15612000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
