<?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_c6ae1106-556f-4760-ae68-794cb95a2974">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-10</startDate>
            <endDate>2026-04-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c6ae1106-556f-4760-ae68-794cb95a2974"
      id="F_371823e2-5d95-410d-b3f6-550b9143cd61">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_c6ae1106-556f-4760-ae68-794cb95a2974"
      id="F_23b6c7ad-05c9-4257-bb52-ad804cc1c563">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_c6ae1106-556f-4760-ae68-794cb95a2974"
      id="F_eb7684c1-d203-41df-9ab6-a79605ce8977">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c6ae1106-556f-4760-ae68-794cb95a2974"
      id="F_9485673c-28e0-40a5-ad18-b06007c79905">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_c6ae1106-556f-4760-ae68-794cb95a2974"
      id="F_298a7808-9983-46ba-829f-a51edb93668f">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_c6ae1106-556f-4760-ae68-794cb95a2974"
      id="F_0504f9ae-f36e-4390-afe2-13870b08f639">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_c6ae1106-556f-4760-ae68-794cb95a2974"
      id="F_68ebe09e-c6d2-4c91-8358-bdec83180ead">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_c6ae1106-556f-4760-ae68-794cb95a2974"
      id="F_91fe57c0-772a-481a-ad51-b4dd418b7c0d">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_c6ae1106-556f-4760-ae68-794cb95a2974"
      id="F_1fd9a234-e39f-450a-ab54-cec0506a07e5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c6ae1106-556f-4760-ae68-794cb95a2974"
      id="F_0e8d7b72-e88a-4fc2-81c4-4c2a8c310d43">&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,606,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_c6ae1106-556f-4760-ae68-794cb95a2974"
      decimals="0"
      id="F_6688d07c-c0b2-4c96-8bae-bfe26ba85a3e"
      unitRef="U_USD">2606000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
