<?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_35aed82b-d144-4d1d-a472-0844942755c9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-05</startDate>
            <endDate>2026-10-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_35aed82b-d144-4d1d-a472-0844942755c9"
      id="F_b87971f9-0edb-46cb-be53-b8dd000cec9d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_35aed82b-d144-4d1d-a472-0844942755c9"
      id="F_a07d3b20-d958-40fb-8d12-de37e3a9d8c2">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_35aed82b-d144-4d1d-a472-0844942755c9"
      id="F_1a5aa5aa-8ef5-49d8-946e-d28b7ed92fe8">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_35aed82b-d144-4d1d-a472-0844942755c9"
      id="F_a69d5d15-a85f-4775-8b3f-faf03bf876ea">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_35aed82b-d144-4d1d-a472-0844942755c9"
      id="F_7f928f13-2240-4cc0-ae1e-7e36cf5c9b36">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_35aed82b-d144-4d1d-a472-0844942755c9"
      id="F_910965a7-9a47-4e8c-b4cc-13e4816da80c">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_35aed82b-d144-4d1d-a472-0844942755c9"
      id="F_caddb20a-24cc-4a8d-aac1-d5037a7acb8c">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_35aed82b-d144-4d1d-a472-0844942755c9"
      id="F_573a917c-0dfd-4e98-823a-e76ac37d84c4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_35aed82b-d144-4d1d-a472-0844942755c9"
      id="F_5cbd0938-1c70-461c-82b7-d123f8c0af7e">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_35aed82b-d144-4d1d-a472-0844942755c9"
      id="F_0b06f0e8-7e0e-4fd0-9af9-f70e9e428b9f">&lt;p style="tab-size:26.66px;font-size:12pt;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;646,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_35aed82b-d144-4d1d-a472-0844942755c9"
      decimals="-3"
      id="F_7cdd5222-6ab1-4140-8558-5e7343756f0b"
      unitRef="U_USD">646000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
