<?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_9a050271-d378-4991-ab99-355d5caa6df0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-27</startDate>
            <endDate>2026-04-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_9a050271-d378-4991-ab99-355d5caa6df0"
      id="F_b20ace78-12fd-422b-b019-9070fc487ae8">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_9a050271-d378-4991-ab99-355d5caa6df0"
      id="F_fc780250-7691-4afb-a054-c8036f2e030c">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_9a050271-d378-4991-ab99-355d5caa6df0"
      id="F_7756737b-1c7b-4d3d-8dc1-f219337fd368">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9a050271-d378-4991-ab99-355d5caa6df0"
      id="F_7b9957e1-565b-449b-a343-2c669efc8a6f">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_9a050271-d378-4991-ab99-355d5caa6df0"
      id="F_c6378262-c193-4507-9a16-39bb66aab032">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_9a050271-d378-4991-ab99-355d5caa6df0"
      id="F_ae7a105f-38f0-4da0-900b-670c8bc81c29">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_9a050271-d378-4991-ab99-355d5caa6df0"
      id="F_55619225-5ca3-46f1-94c7-fd71e5d91224">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_9a050271-d378-4991-ab99-355d5caa6df0"
      id="F_c9e625f0-d959-4d87-907d-424ee5f5a1d2">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_9a050271-d378-4991-ab99-355d5caa6df0"
      id="F_ab2ef5b9-25cd-4db0-a9de-a0323f65dccf">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_9a050271-d378-4991-ab99-355d5caa6df0"
      id="F_4489d31f-89d6-4350-b582-ee489cce7a56">&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;40,285,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_9a050271-d378-4991-ab99-355d5caa6df0"
      decimals="0"
      id="F_a61ec118-c25f-4a6f-ac9f-00619b11f7b2"
      unitRef="U_USD">40285000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>