<?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_c4948ba9-0f67-48c0-a098-8c41c68423de">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-20</startDate>
            <endDate>2026-05-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_c4948ba9-0f67-48c0-a098-8c41c68423de"
      id="F_2c4fe478-7c0a-44b2-bcac-ad82442ad4e7">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_c4948ba9-0f67-48c0-a098-8c41c68423de"
      id="F_819e5da9-a96c-4b3d-9be0-2623dc2d50a5">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_c4948ba9-0f67-48c0-a098-8c41c68423de"
      id="F_c3fb0a15-6ac4-46a0-910c-c548975910dc">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c4948ba9-0f67-48c0-a098-8c41c68423de"
      id="F_f528ccaf-e28f-456b-af82-b2cbb6549238">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_c4948ba9-0f67-48c0-a098-8c41c68423de"
      id="F_c300a887-6a08-4086-b93c-8aba75b752bd">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_c4948ba9-0f67-48c0-a098-8c41c68423de"
      id="F_4187f8da-f967-4d65-b222-1b5cf2303a14">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_c4948ba9-0f67-48c0-a098-8c41c68423de"
      id="F_3f757ae8-aaa7-4d7f-be36-cf730718dc74">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_c4948ba9-0f67-48c0-a098-8c41c68423de"
      id="F_6e337c99-9f50-48e1-b29f-cc5e8b46a633">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c4948ba9-0f67-48c0-a098-8c41c68423de"
      id="F_174b24c8-2528-4202-9d88-32a54fe57666">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c4948ba9-0f67-48c0-a098-8c41c68423de"
      id="F_d470ac63-6cfb-4590-94d0-f4d76def345f">&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;20,000,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_c4948ba9-0f67-48c0-a098-8c41c68423de"
      decimals="0"
      id="F_b4211724-5ba0-4d87-b6e6-ec2ad2485eba"
      unitRef="U_USD">20000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
