<?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_4ca2f76b-e1f8-48f8-9f70-d94b68b5ff6e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_4ca2f76b-e1f8-48f8-9f70-d94b68b5ff6e"
      id="F_18695373-d593-48e2-a16e-37b3ebb01879">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4ca2f76b-e1f8-48f8-9f70-d94b68b5ff6e"
      id="F_0e0fd895-e366-49ae-af54-aeb021b7999b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_4ca2f76b-e1f8-48f8-9f70-d94b68b5ff6e"
      id="F_df968122-a444-4561-8d3e-af862a387963">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_4ca2f76b-e1f8-48f8-9f70-d94b68b5ff6e"
      id="F_79627552-8206-47eb-ad0b-0f6f9e6e16f3">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_4ca2f76b-e1f8-48f8-9f70-d94b68b5ff6e"
      id="F_fa67e9f7-2f91-477c-b887-b1ecea0c240a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_4ca2f76b-e1f8-48f8-9f70-d94b68b5ff6e"
      id="F_16ddee96-ae5c-472b-b01b-9353a4386188">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_4ca2f76b-e1f8-48f8-9f70-d94b68b5ff6e"
      id="F_cd9c6860-02af-41c0-8360-ca5cce022172">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_4ca2f76b-e1f8-48f8-9f70-d94b68b5ff6e"
      id="F_4b8cf156-450d-4aaf-a4ca-6923a710ac33">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_4ca2f76b-e1f8-48f8-9f70-d94b68b5ff6e"
      id="F_08bfb3e0-7f68-4c33-9abe-fbd42cf29224">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_4ca2f76b-e1f8-48f8-9f70-d94b68b5ff6e"
      id="F_8df724c5-5be2-4f7a-92d2-13775e333b0a">&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;2,750,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_4ca2f76b-e1f8-48f8-9f70-d94b68b5ff6e"
      decimals="0"
      id="F_213ea623-86be-4ba5-a119-22eb75d9a53a"
      unitRef="U_USD">2750000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
