<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_6895026a-2cea-48c8-a541-7b07d58c3ae0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_6895026a-2cea-48c8-a541-7b07d58c3ae0"
      id="F_31713315-f9a6-4223-976c-0cac7419d554">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_6895026a-2cea-48c8-a541-7b07d58c3ae0"
      id="F_a1ab0ece-3ad8-4739-a490-8262eeb4d640">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_6895026a-2cea-48c8-a541-7b07d58c3ae0"
      id="F_44abb6a3-6555-4f80-b274-c34edff3a6b5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_6895026a-2cea-48c8-a541-7b07d58c3ae0"
      id="F_acabdcc6-4438-4e1c-a587-b5cdb80e3ea5">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_6895026a-2cea-48c8-a541-7b07d58c3ae0"
      id="F_b7bc48e3-8a83-462c-b041-533709cc6005">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6895026a-2cea-48c8-a541-7b07d58c3ae0"
      id="F_bae7b96e-bd13-44eb-9cf9-39f0a4b6e5a7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_6895026a-2cea-48c8-a541-7b07d58c3ae0"
      id="F_5fe6f7c7-3d50-4405-a66a-9a5c25d2f269">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_6895026a-2cea-48c8-a541-7b07d58c3ae0"
      id="F_5c7f2824-6b66-4a08-b8fd-66b0f74fe2c2">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_6895026a-2cea-48c8-a541-7b07d58c3ae0"
      id="F_d95430e6-f74b-4d79-8074-741ea5b8dc63">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_6895026a-2cea-48c8-a541-7b07d58c3ae0"
      id="F_37587444-17cf-4dc3-ae8b-94308fa83554">&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;1,117,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_6895026a-2cea-48c8-a541-7b07d58c3ae0"
      decimals="-3"
      id="F_a12ff4b2-f2a6-43ec-896c-580de4e5c04d"
      unitRef="U_USD">1117000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
