<?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_32d92cb7-2c6e-4b4b-9c0f-34fab2b89ff4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-14</startDate>
            <endDate>2026-05-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_32d92cb7-2c6e-4b4b-9c0f-34fab2b89ff4"
      id="F_20a83bbc-0af5-4d5c-b394-f0e28acf81fe">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_32d92cb7-2c6e-4b4b-9c0f-34fab2b89ff4"
      id="F_2bbd06ce-6cc1-49b1-96fd-a354d4612d2e">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_32d92cb7-2c6e-4b4b-9c0f-34fab2b89ff4"
      id="F_dc81a7af-0711-479a-b25c-d3dbf2495d45">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_32d92cb7-2c6e-4b4b-9c0f-34fab2b89ff4"
      id="F_4052c903-992d-468d-ad87-2efe6368bd43">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_32d92cb7-2c6e-4b4b-9c0f-34fab2b89ff4"
      id="F_bc7b3877-6f7d-421d-9ad4-56c3f0a29f59">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_32d92cb7-2c6e-4b4b-9c0f-34fab2b89ff4"
      id="F_b67e3de4-ff28-4fb1-a607-5bdb8f14bf39">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_32d92cb7-2c6e-4b4b-9c0f-34fab2b89ff4"
      id="F_6bb75dcc-2735-41da-af03-9fca1c5e9341">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_32d92cb7-2c6e-4b4b-9c0f-34fab2b89ff4"
      id="F_1d268b11-f4b4-48cb-9871-a6cf30f8a8be">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_32d92cb7-2c6e-4b4b-9c0f-34fab2b89ff4"
      id="F_0d945c41-bae8-4ca3-89bd-e08da4c3c9b9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_32d92cb7-2c6e-4b4b-9c0f-34fab2b89ff4"
      id="F_7454b3de-28ae-4a1f-a9e2-046ab0ded0b8">&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;4,129,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_32d92cb7-2c6e-4b4b-9c0f-34fab2b89ff4"
      decimals="0"
      id="F_3d83c12e-63a0-44fd-b666-98d3711b6d17"
      unitRef="U_USD">4129000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
