<?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_a54cfebc-1366-4044-8599-b99136da38de">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-20</startDate>
            <endDate>2026-04-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_a54cfebc-1366-4044-8599-b99136da38de"
      id="F_3280d881-613d-4060-93c4-3962dd18a2d4">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_a54cfebc-1366-4044-8599-b99136da38de"
      id="F_785cddc2-a13b-43aa-96d2-50aea9063313">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a54cfebc-1366-4044-8599-b99136da38de"
      id="F_42794a24-eb72-4179-a85b-a3d998be6d4c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_a54cfebc-1366-4044-8599-b99136da38de"
      id="F_3fe4f591-bf8f-4dc9-a6ba-bd3558a23963">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a54cfebc-1366-4044-8599-b99136da38de"
      id="F_032ede0f-7c9c-475b-a33e-63e9f332a8f6">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_a54cfebc-1366-4044-8599-b99136da38de"
      id="F_3500143e-76cd-4f2c-be09-3b4f327a2069">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_a54cfebc-1366-4044-8599-b99136da38de"
      id="F_9570a074-6523-42ef-82f5-543a288060d7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a54cfebc-1366-4044-8599-b99136da38de"
      id="F_a64c34b1-ec9f-4763-a3f3-3fb6776c0882">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_a54cfebc-1366-4044-8599-b99136da38de"
      id="F_81deff4c-c33b-4cf7-b4c2-cf4357a05cd0">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_a54cfebc-1366-4044-8599-b99136da38de"
      id="F_c3afb04d-9c4d-427d-a43a-864f2e490684">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:6pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;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:10pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;1,667,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;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_a54cfebc-1366-4044-8599-b99136da38de"
      decimals="0"
      id="F_7e0f7beb-0aec-4085-ba10-365c27f566f8"
      unitRef="U_USD">1667000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
