<?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_24cb7c4d-b000-4871-8d23-39aabe84c6bc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_24cb7c4d-b000-4871-8d23-39aabe84c6bc"
      id="F_2049e9f2-b5ba-4722-9d65-63e0adbbcdb7">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_24cb7c4d-b000-4871-8d23-39aabe84c6bc"
      id="F_26c02272-5135-4c17-8129-b0d6198ebcd6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_24cb7c4d-b000-4871-8d23-39aabe84c6bc"
      id="F_05eca213-a0ed-4b82-96dd-c5485b37b4c2">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_24cb7c4d-b000-4871-8d23-39aabe84c6bc"
      id="F_ce2f207c-16e9-472a-987c-95fafbc237f3">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_24cb7c4d-b000-4871-8d23-39aabe84c6bc"
      id="F_f9fed2a6-3b1e-474f-9aef-930af00e516e">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_24cb7c4d-b000-4871-8d23-39aabe84c6bc"
      id="F_a94457b2-8353-4a68-9eba-43effde5849b">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_24cb7c4d-b000-4871-8d23-39aabe84c6bc"
      id="F_017c216e-a469-40e7-921b-f31ea24c6f81">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_24cb7c4d-b000-4871-8d23-39aabe84c6bc"
      id="F_41bf4a52-09b3-4a1a-acb8-700e4fae92fe">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_24cb7c4d-b000-4871-8d23-39aabe84c6bc"
      id="F_6c78f4f0-53f1-4048-9589-1fc92ca49360">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_24cb7c4d-b000-4871-8d23-39aabe84c6bc"
      id="F_1b3de482-dd77-4f3f-ae30-542b65a274a5">&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;3,122,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_24cb7c4d-b000-4871-8d23-39aabe84c6bc"
      decimals="-3"
      id="F_eec00116-25ec-42af-b993-faedff863698"
      unitRef="U_USD">3122000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
